Dragonfly CMS v9 ⇒ Gamers Modules & Blocks :: Archives ⇒ Xbox Live Gamer Card bbCode :: Archived ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum Index Modules & Blocks Gamers Modules & Blocks ⇒ Archives

Archived ⇒ Xbox Live Gamer Card bbCode


this going to be hidden bbcode.

# [card] and [/card] for Xbox Live Card. $patterns[] = '#\[card\](.*?)\[/card\]#si'; $replacements[] = '<iframe src="http://gamercard.xbox.com/\\1.card" scrolling="no" frameborder="0" height="140" width="204"></iframe>';

ADD BEFORE

$replacements[] = '<span style="text-decoration: underline">\\1</span>';

in nbbcode.php

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Apache/1.3.34 (Unix)/4.0.25-standard/4.4.1/CVS


I have added this code But please explane what this does and where to find it after the code has been entered.

I do know that its for the Xbox Live Gamer Card just need to know how to use it after the code is installed...

Thanks

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
9.0.6.1


killerbud99 wrote
I have added this code But please explane what this does and where to find it after the code has been entered.

I do know that its for the Xbox Live Gamer Card just need to know how to use it after the code is installed...

Thanks


[card]XBL GameTag Name[/card]

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Apache/1.3.34 (Unix)/4.0.25-standard/4.4.1/CVS


Thank you xfsunoles
for your responce and the great code

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
9.0.6.1


Prior to 9.1.1 I had edit nbbcode.php with the gamercard code found in the forums. I had it working with the exception that the bbcode buttons seemed to get squished together. I left this alone knowing that'd I'd be upgrading soon.

Now however I am trying to insert the code again after the install and keep getting

T_CONSTANT_ENCAPSED_STRING on line 124 of nbbcode.php

$content .= "<td><a href=\"javascript:emoticon('".$form."', '".$field."', "',"',"','".$data['code']."')\"><img src=\"" . $smilies_path . $smile_url . "\" border=\"0\" alt=\"".$data['emoticon']."\" title=\"".$data['emoticon']."\" /></a></td>"; $s_colspan = max($s_colspan, $col + 1);

Thats line 123, 124. I have no touched these lines at all.

# [card] and [/card] for Xbox Live Card. $patterns[] = '#\[card\](.*?)\[/card\]#si'; $replacements[] = '<iframe src="http://gamercard.xbox.com/\\1.card" scrolling="no" frameborder="0" height="140" width="204"></iframe>';
I inserted the code as indicated in the post but can't seem to get it to work. Anyone got a suggestion?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux 2.4.21-27, DF 9.1.1, PHP 4.3.11, MYSQL 4.0.27


belongs here Smile

DonationsPro for DragonflyCMS & SMF

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):

All times are UTC