Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

[flash] BBCODE issue

Asked Modified Viewed 3,606 times
H
heavencore
H
Semper in excremento sum, sed solum profunditas mutat...
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
asked
Junior Member

The following url in the [flash] bbcode does not work, how can the following BBcode be changed to make the below work

My current BBcode php code:

if (!defined("IN_FUSION")) { die("Access Denied"); }

$text = preg_replace('#\[flash width=([0-9]*?) height=([0-9]*?)\]([^\s\'\";\+]*?)(\.swf)\[/flash\]#si', '<object type=\'application/x-shockwave-flash\' data=\''.INCLUDES.'bbcodes/flash/flash.swf?path=\3\4\' width=\'\1\' height=\'\2\'><param name=\'movie\' value=\''.INCLUDES.'bbcodes/flash/flash.swf?path=\3\4\'/><img src=\''.INCLUDES.'bbcodes/flash/noflash.gif\' width=\'80\' height=\'60\' alt=\'Flash not found \' /></object>', $text);

?>



The BBCode i am attempting to use:

Quote

[flash width=450 height=80]http://wow.ukgl.co.uk/wow.swf?s=EU&r=Bladefist&n=Mellony&h?=.swf[/flash]


any help would be great thanks.

Regards

Mell.
0 replies

3 posts

H
heavencore
H
Semper in excremento sum, sed solum profunditas mutat...
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

ok managed to get it working by stripping out a bit of security etc, and wrapping the replace function in another replace function to correct &amp;'s. Only thing now is it does not parse when used in a sig, any ideas?

EDIT: Nevermind, figured that out too:

viewthread.php line 310
echo "\n<hr />".nl2br(parseubb(parsesmileys($data['user_sig']), "b|i|u||center|small|url|mail|img|color|flash"));

JUst needed to add flash to the allowed list array.
Edited by heavencore on 17-07-2008 10:52,
0 replies
G
googlebot
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

Quote

heavencore wrote:
Only thing now is it does not parse when used in a sig, any ideas?

Certain bbcodes, including flash and youtube, are not allowed in signatures (and should be for obvious reasons).
0 replies
H
heavencore
H
Semper in excremento sum, sed solum profunditas mutat...
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

googlebot wrote:

Quote

heavencore wrote:
Only thing now is it does not parse when used in a sig, any ideas?

Certain bbcodes, including flash and youtube, are not allowed in signatures (and should be for obvious reasons).


aye, i'd agree with that, but its just a small world of warcraft guild site, tightly moderated. so i think in this case its allowed
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 3 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

H
H
Semper in excremento sum, sed solum profunditas mutat...
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
G
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet