Extra BBcode
I am not sure if this counts as a mod or not, feel free to move if need be.
Go to your INC folder and then find the bbcode.php file. There is a chunk of code starting with // PARSE BB CODE - go to the bottom of this chunk, above // RETURN HTML RESULT and put whatever ones of the following you want. Headers Code:
Anchor This is a code for creating an anchor in a page. (example - faq.php#Adoptable Questions) http://www.w3schools.com/HTML/html_links.asp - more info on anchors here. Code:
$text = preg_replace('|\[anchor=(.+?)\](.+?)\[\/anchor\]|i', '<a name="$1">$2</a> ', $text); I added this one because when I was using tables, I wanted to have them on seperate lines. Code:
$text = preg_replace('|\[br\]|i', '<br>', $text); Tables Thank you to fadillzzz for showing me how to do this one. Code:
$text = preg_replace('|\[table\](.+?)\[\/table\]|i', '<table>$1</table>', $text); Tables with borders. Code:
$text = preg_replace('|\[table2\](.+?)\[\/table2\]|i', '<table border="2" cellpadding="2" cellspacing="2">$1</table>', $text); That's all I've got for now, I will include more later. I'm working on a few of my own custom ones as well. ALSO: While we're on the subject - I use this code as well, it's not mine however; http://www.mysidiaadoptables.com/for...ead.php?t=1908 Just thought I'd include it. |
All times are GMT -5. The time now is 04:57 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.