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?

New bbcodes (adding an icon)

Asked Modified Viewed 3,556 times
R
rsmarsha
R
  • Junior Member, joined since
  • Contributed 27 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
asked
Junior Member

Does anyone know how to add an icon to a custom created bbcode? I've added the bbcode which works fine, but at the moment it just has the text value showing.
0 replies

9 posts

W
Wooya
W
Wooya 10
PHP-Fusion DEV Team
It's not a bug, it's undocumented feature...
  • Senior Member, joined since
  • Contributed 205 posts on the community forums.
  • Started 11 threads in the forums
answered
Senior Member

Uplad icon into includes/bbcodes/images/ folder. Icon should have the same name as bbcode name, ex. [ b] bbcode has got b.png (.gif, .jpg) icon.
0 replies
A
afaaro
A
afaaro 10
  • Senior Member, joined since
  • Contributed 295 posts on the community forums.
  • Started 68 threads in the forums
answered
Senior Member

Hi Wooya!

Is it possible to create Windows Media bbcode
0 replies
W
Wooya
W
Wooya 10
PHP-Fusion DEV Team
It's not a bug, it's undocumented feature...
  • Senior Member, joined since
  • Contributed 205 posts on the community forums.
  • Started 11 threads in the forums
answered
Senior Member

Yep. With a little bit knowledge of V7 BBCODES CODING
0 replies
A
afaaro
A
afaaro 10
  • Senior Member, joined since
  • Contributed 295 posts on the community forums.
  • Started 68 threads in the forums
answered
Senior Member

I have tried it in this way


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

$text = preg_replace('#\[wmv\](.*?)\[/wmv\]#si', '<embed src='1' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='400' height='350' autostart='1' showcontrols='1' CONTROLS='ImageWindow' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed>', $text);



but its not working, A blank page comes up
Edited by afaaro on 25-09-2008 02:46,
0 replies
R
rsmarsha
R
  • Junior Member, joined since
  • Contributed 27 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
answered
Junior Member

Thanks, I've added an item.png for the item tag and it doesn't seem to work. :( I'll keep trying.
0 replies
A
afaaro
A
afaaro 10
  • Senior Member, joined since
  • Contributed 295 posts on the community forums.
  • Started 68 threads in the forums
answered
Senior Member

Anyone wants to help how to windows media bbcode
0 replies
W
Wooya
W
Wooya 10
PHP-Fusion DEV Team
It's not a bug, it's undocumented feature...
  • Senior Member, joined since
  • Contributed 205 posts on the community forums.
  • Started 11 threads in the forums
answered
Senior Member

Quote

Afaaro wrote:
I have tried it in this way


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

$text = preg_replace('#\[wmv\](.*?)\[/wmv\]#si', '<embed src='1' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='400' height='350' autostart='1' showcontrols='1' CONTROLS='ImageWindow' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed>', $text);


but its not working, A blank page comes up


Almost good :) Try this and find differences with your code :)

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

$text = preg_replace("#\[wmv\](.*?)\[/wmv\]#si", "<embed src='\1' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='400' height='350' autostart='1' showcontrols='1' CONTROLS='ImageWindow' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed>", $text);
0 replies
A
afaaro
A
afaaro 10
  • Senior Member, joined since
  • Contributed 295 posts on the community forums.
  • Started 68 threads in the forums
answered
Senior Member

Thanks @Wooya

But the problem is the video doesn't start at all; its just plain
0 replies
A
afaaro
A
afaaro 10
  • Senior Member, joined since
  • Contributed 295 posts on the community forums.
  • Started 68 threads in the forums
answered
Senior Member

Anyhelp
0 replies

Labels

None yet

Statistics

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

3 participants

W
W
Wooya 10
PHP-Fusion DEV Team
It's not a bug, it's undocumented feature...
  • Senior Member, joined since
  • Contributed 205 posts on the community forums.
  • Started 11 threads in the forums
R
R
  • Junior Member, joined since
  • Contributed 27 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
A
A
afaaro 10
  • Senior Member, joined since
  • Contributed 295 posts on the community forums.
  • Started 68 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet