Support Forums

Full Version: MyCode Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Been Trying To Get Support Everywhere Maybe You Guys Could Help
this code works well with 4share but i need it to work for zshare
how should i configure it?
Code:
My Code:

\[4shared\](.*?)\[/4shared\]

<embed src="$1" width="470" height="320" allowfullscreen="true" allowscriptaccess="always"></embed>

example:
[4shared]http://www.4shared.com/embed/218980104/14867248[/4shared]
Don't do that, pretty dangerous if people can just embed anything, but
Code:
\[4shared\](.*?)\[\/4shared\]

<embed src="$1" width="470" height="320" allowfullscreen="true" allowscriptaccess="always"></embed>

Edit: I've only used MyBB once, can't remember very well, but it uses the preg_replace() function I think; I'm pretty sure it adds this automatically, but you may have to do add / and /, like this

Code:
/\[4shared\](.*?)\[\/4shared\]/
its just for me im not enabling it for other members
Lock requested by OP.