The Codfin Keeper
02-12-2011, 04:12 PM
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:
$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.
Under the folder inc, open up bbcodes.php:
Where it has all the BBCodes, under one of them put:
$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.