Support Forums
MyCode Help - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Webmaster Support (https://www.supportforums.net/forumdisplay.php?fid=36)
+---- Forum: Web Server Support and Setup Help (https://www.supportforums.net/forumdisplay.php?fid=37)
+---- Thread: MyCode Help (/showthread.php?tid=7371)



MyCode Help - awww - 05-26-2010

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]



RE: MyCode Help - Cida - 05-26-2010

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\]/



RE: MyCode Help - awww - 05-26-2010

its just for me im not enabling it for other members


RE: MyCode Help - Elektrisk - 05-26-2010

Lock requested by OP.