View Single Post
  #1  
Old 02-12-2011, 04:12 PM
The Codfin Keeper's Avatar
The Codfin Keeper The Codfin Keeper is offline
A Codfin draws near!
 
Join Date: Jan 2011
Location: Either CT or the Slug's house
Posts: 91
Gender: Male
Credits: 11,202
The Codfin Keeper is on a distinguished road
Default BBCode Adoptable Reference - VERY SMALL MOD

Okay, this is a code so users can reference adoptables on your site without having to use img and url codes wherever there's BBCode enabled.

Under the folder inc, open up bbcodes.php:

Where it has all the BBCodes, under one of them put:

PHP Code:
$text preg_replace('|\[adoptable\](.+?)\[\/adoptable\]|i''<a href="/levelup.php?id=$1"><img src="/siggy.php?id=$1"></a>'$text); 
...where "adoptable" can be changed to your liking.

Have fun, and this is a very small mod, if you didn't see so by the title.
__________________

Yacker
Quote:
Originally Posted by Mankey Pokemon Card when another one is on top of it
([33) Ka\______
Does 40 damage\___
counter on Mankey. \______

Last edited by The Codfin Keeper; 02-13-2011 at 05:54 AM.
Reply With Quote