- Joined
- Jan 21, 2011
- Messages
- 91
- Points
- 0
- Location
- Either CT or the Slug's house
- Mysidian Dollar
- 7,522
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:
...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:
PHP:
$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.
Last edited: