2008-10-20, 09:16 PM
Hi,
I searched and learned from the Mycode threads, but still need some help.
This works fine to build a url based on user input:
\[ma\](.*?)\[/ma\]
<a href="http://example.com/a/$1">$1</a>
Now I need to add a variable from the custom profile fields:
<a href="http://example.com/a/$1?$post['fid7']">$1</a>
or
<a href="http://example.com/a/$1?{$post['fid7']}">$1</a>
Neither one will work...
Since this type of variable " {$post['fid7']} " works in MyBB templates, I'm needing to know how to use it in a MyCode built URL also.
Thanks
////////
EDIT:
OK forget the details...
Can someone please, show any example of using an 'available' MyBB variable in custom MyCode?
Thank you
I searched and learned from the Mycode threads, but still need some help.
This works fine to build a url based on user input:
\[ma\](.*?)\[/ma\]
<a href="http://example.com/a/$1">$1</a>
Now I need to add a variable from the custom profile fields:
<a href="http://example.com/a/$1?$post['fid7']">$1</a>
or
<a href="http://example.com/a/$1?{$post['fid7']}">$1</a>
Neither one will work...
Since this type of variable " {$post['fid7']} " works in MyBB templates, I'm needing to know how to use it in a MyCode built URL also.
Thanks
////////
EDIT:
OK forget the details...
Can someone please, show any example of using an 'available' MyBB variable in custom MyCode?
Thank you