english 
Thread Options  Search this Thread  
Post: #1
28-05-2011 21:27 PM
Amz


Joined: 05-09-2010
Posts: 119
Country: Australia
Female Amz is Offline now
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
02-06-2011 21:25 PM
Amz


Joined: 05-09-2010
Posts: 119
Country: Australia
Female Amz is Offline now
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: Romania
Awards:    
Male Sniper is Offline now
Auto Edit Torrents
Originally Posted by Amz
would like some help on this please if anyone could

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]

The following 2 users say thank you to Sniper for this useful post:

Post: #4
03-06-2011 17:22 PM
Amz


Joined: 05-09-2010
Posts: 119
Country: Australia
Female Amz is Offline now
 System Message
This post awaiting moderation!

Quick Reply
Decrease Size
Increase Size
Insert bold text Insert italic text Insert underlined text Align text to the left Align text to the centerr Align text to the right Justify text Insert quoted text Code Insert formatted PHP code Insert formatted SQL code
Colors
Insert hyperlink Insert image Insert email address
Smilies
Insert hidden text



Forum Jump: