In: Content Management Systems / Seditio / Seditio Tutorials

Xbox Gamertag bbcode [Core-Hack]

Make a bbcode for your users to post their gamertag.

Print
Author: Brock
Submitted by: Brock   Date: 2008-06-03 15:19
Comments: (0)   Ratings:
Average members rating (out of 10) : Not yet rated   
Votes: 0

Introduction and Example

I started doing some gaming on Xbox Live a few months ago, and I noticed the high amount of gaming sites for Xbox that are on the internet. I also noticed that most of them had bbcode or profile option for a gamertag. Since then, I noticed that no one had released this bbcode for Seditio, so I figured that I will show you how to make it. It's quite simple.

Example:

Tutorial

Open:
system/functions.php

Find:
Code:
'[more]' => ''
Replace With:
Code:
'[more]' => '',
'[xbox]' => '<iframe src="http://gamercard.xbox.com/',
'[/xbox]' => '.card" scrolling="no" frameBorder="0" height="140" width="204"></iframe>'
Open:
plugins/textboxer2/inc/textboxer2.inc.php

Find:
Code:
8,
         'page',
//         'pagep',
         'user',
//         'link',
//         'linkp',
         'flag',
         'pfs',
         'topic',
         'post',
         'pm',
Directly Below Add:
Code:
'xbox',
Find:
Code:
//Only in textboxer2
   $res['preview'] = array('', '', 43);
Directly Below Add:
Code:
//XBOX
   $res['xbox'] = array('[xbox]', '[/xbox]', 36);
   $L['bbcodes_ex_xbox'] = "Add your Xbox Live Gamertag.";
   $L['bbcodes_xbox'] = "XBL Gamertag";

To Use:

Simply use the following code in any place that allows bbcode.
Code:
[xbox]YOURGAMERTAGHERE[/xbox]