Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.2.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04-14-2011, 01:48 PM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 47,159
AlexC is an unknown quantity at this point
Default 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:
        
$text = preg_replace('|\[h1\](.+?)\[\/h1\]|i', '<center><font size="+3" color="#000000">$1</font></center>', $text);
        $text = preg_replace('|\[h2\](.+?)\[\/h2\]|i', '<center><font size="+2" color="#000000">$1</font></center>', $text);
        $text = preg_replace('|\[h3\](.+?)\[\/h3\]|i', '<center><font size="+1" color="#000000">$1</font></center>', $text);
        $text = preg_replace('|\[h4\](.+?)\[\/h4\]|i', '<font size="+3" color="#000000">$1</font>', $text);
        $text = preg_replace('|\[h5\](.+?)\[\/h5\]|i', '<font size="+2" color="#000000">$1</font>', $text);
        $text = preg_replace('|\[h6\](.+?)\[\/h6\]|i', '<font size="+1" color="#000000">$1</font>', $text);
Change the font color to whatever you'd like to have the headers as. The first three are centered, and the last three are the same sizes, but not centered.

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);
<br>

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);
I use two <br> tags because I prefer to have my lists with gaps.

Tables

Thank you to fadillzzz for showing me how to do this one.

Code:
        $text = preg_replace('|\[table\](.+?)\[\/table\]|i', '<table>$1</table>', $text);
        $text = preg_replace('|\[th\](.+?)\[\/th\]|i', '<th>$1</th>', $text);
        $text = preg_replace('|\[tr\](.+?)\[\/tr\]|i', '<tr valign="top">$1</tr>', $text);
        $text = preg_replace('|\[td\](.+?)\[\/td\]|i', '<td>$1</td>', $text);
OR

Tables with borders.

Code:
$text = preg_replace('|\[table2\](.+?)\[\/table2\]|i', '<table border="2" cellpadding="2" cellspacing="2">$1</table>', $text);
You can customize the borders however you like. The way they are now is how your tables will be by default in the script.

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extra click SleepWalker Addons/Mods Graveyard 6 12-06-2009 11:53 AM
Extra Options for ROOT Admins Ashje Questions and Supports 7 07-14-2009 11:44 PM
[Theme] - Smile - Extra Mods Built In! Rsmiley Templates and Themes 25 04-01-2009 03:33 PM
Adopting "Extra" Pets - Exploiting a bug Seapyramid Questions and Supports 3 02-07-2009 10:55 PM
Extra Pages? rosepose Questions and Supports 2 02-05-2009 10:28 AM


All times are GMT -5. The time now is 11:12 PM.

Currently Active Users: 293 (0 members and 293 guests)
Threads: 4,078, Posts: 31,984, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636