MyBB Community Forums

Full Version: mycode help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
i want to ask this from last many days but always forget whenever logged in to mybboard.net

My question is :- can we use $1 , $2 , $3 , $4 in mycode and how ?

like we are using
\[field=(.*?)\](.*?)\[/field\]

one is (.*?) for $1
another is (.*?) for $2

how can we use more ?
It depends on your mycode..

$1 = first value
$2 = second value

and so on
(2009-12-26, 10:47 AM)n1tr0b Wrote: [ -> ]It depends on your mycode..

$1 = first value
$2 = second value

and so on

Thing is if i use $3 where i can use that what value = $3 ?

like we are using
\[field=(.*?)\](.*?)\[/field\]

one is (.*?) for $1
another is (.*?) for $2
since we have
like we are using
\[field=(.*?)\](.*?)\[/field\]

we are only using
$1 and $2

if you are going to do this

\[field=(.*?)=(.*?)\](.*?)\[/field\]

if you have knowledge at php you should know what parameters should be in each place
(2009-12-26, 10:57 AM)n1tr0b Wrote: [ -> ]if you are going to do this

\[field=(.*?)=(.*?)\](.*?)\[/field\]

if you have knowledge at php you should know what parameters should be in each place

Ok thanx , i will try this and will update if any problem comes. Thanx once again.
np... glad could help in a big community
(2009-12-26, 11:02 AM)n1tr0b Wrote: [ -> ]np... glad could help in a big community

This is not working with [url] tag when i tried like this

\[field=(.*?)=(.*?)\](.*?)\[/field\]

and used the thing like this

[field=[url tag]=[url tag]][url tag][/field]

is there any solution for this kind of mybb code ?
(2009-12-26, 11:48 AM)alirex Wrote: [ -> ]
(2009-12-26, 11:02 AM)n1tr0b Wrote: [ -> ]np... glad could help in a big community

This is not working with [url] tag when i tried like this

\[field=(.*?)=(.*?)\](.*?)\[/field\]

and used the thing like this

[field=[url tag]=[url tag]][url tag][/field]

is there any solution for this kind of mybb code ?

That was an example, it will not work with most mycode.
(2009-12-26, 12:15 PM)Jammerx2 Wrote: [ -> ]That was an example, it will not work with most mycode.

Oh ok thank you , if u have any solution so that it can work with [url] tag then let me know.

Thank You
(2009-12-26, 12:21 PM)alirex Wrote: [ -> ]Oh ok thank you , if u have any solution so that it can work with [url] tag then let me know.

Thank You

what are you planning adding in the url tag??
Pages: 1 2