Post: #1
|
||
Amz Joined: 05-09-2010 Posts: 119 Country: |
Auto Edit Torrents Hi,
Would like to know how to autoedit torrents with Bold, Underline, Navy and Verdana. With just a simple BBCode in the details page as another site has it but they use CODE: [staff99] Thanks Amz |
|
|
||
Post: #2
|
|
Amz Joined: 05-09-2010 Posts: 119 Country: |
Auto Edit Torrents would like some help on this please if anyone could
|
|
|
Post: #3
03-06-2011 09:20 AM (This post was last modified: 03-06-2011 09:24 AM by Sniper)
|
|
Sniper Joined: 03-10-2007 Posts: 1,430 Country: Awards: |
Auto Edit Torrents Originally Posted by Amz
Edit on your server /include/ts_custom_bbcode.php Find this line CODE: # Add your custom bbcode above this line. Add this above and save file CODE: //[staff99]Text[/staff99] $text = preg_replace("/\[staff99\]((\s|.)+?)\[\/staff99\]/", "<font face=\"verdana\" color=\"navy\"><b><u>\1<u></b></font>", $text); Because of forum editor deletes something... please replace in this code \1 with \\1 Now you can use the tag you specified to automaticaly format text CODE: [staff99]Your text here[/staff99] |
|
|
Post: #4
|
|||
Amz Joined: 05-09-2010 Posts: 119 Country: |
This post awaiting moderation!
|
||
|
|||
«
Previous Thread
|
Next Thread
»
|