Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares > Mods & Themes
Reply
  #1  
Old 9th July 2011, 21:05
Edgein's Avatar
Edgein Edgein is offline
Senior Member
 
Join Date: Sep 2008
Netherlands
Posts: 154
Smile TSSE 5.6 You, Spoiler and Mod bbtag
Upload the attachment to you´r include folder

Open global.lang.php

and add

PHP Code:
'spoiler'=>'Spoiler (click to show/hide)'
open you´re style.css
and add

PHP Code:
.spoiler
{
    
background#ccd065;
    
border1px solid #424312;
    
color#000000;
    
margin-bottom1.6em;
    
padding.8em;
}

.
mod_bb
{
    
background#F5C7CD;
    
border2px solid #DC364E;
    
color#8a1f11;
    
margin-bottom1.6em;
    
padding.8em;
}
.
mod_bb img
{
    
positionrelative;
    
top2px;

greetzz Edgein
Attached Files
File Type: php ts_custom_bbcode.php (1.9 KB, 266 views)
Reply With Quote
The Following 9 Users Say Thank You to Edgein For This Useful Post:
DARCK (9th July 2011), FENIX (26th January 2013), Fynnon (10th July 2011), lafouine022 (10th July 2011), Marco (19th July 2011), MeNe (11th January 2012), mmisu120000 (11th July 2011), PAX (19th March 2012), Titya (14th July 2011)
  #2  
Old 9th July 2011, 23:00
DARCK's Avatar
DARCK DARCK is offline
Senior Member
 
Join Date: Apr 2011
P2P
Posts: 69
Thumbs up hi
good job !
Reply With Quote
  #3  
Old 10th July 2011, 02:46
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Smile
good job
Reply With Quote
  #4  
Old 10th July 2011, 10:14
smoky28's Avatar
smoky28 smoky28 is offline
Senior Member
 
Join Date: Aug 2010
Hungary
Posts: 82
Smile
Hi a little update in the bb-cod engine codes

they do it in a custom ts to bbcode.php

PHP Code:
$text preg_replace("/\[question\]\s*((\s|.)+?)\s*\[\/question\]\s*/i","<hr color=\"#00CCFF\"><b><font color=black>Question: </font> <font color=blue>\\1</font><hr color=\"#00CCFF\">"$text);
   
$text preg_replace("/\[winner\]\s*((\s|.)+?)\s*\[\/winner\]\s*/i","<hr color=\"#00CCFF\"><b><font color=yellow>Winner: </font> <font color=blue>\\1</font><hr color=\"#00CCFF\">"$text);
 
$text preg_replace
   
"/(http:\/\/www.google.hu[^<>\s]+)/i"
   
"<a class=\"bblink\" target=\"_new\" href=\"\\1\"><font style=\"color:blue;\">g</font><font style=\"color:red;\">o</font><font style=\"color:yellow;\">o</font><font style=\"color:blue;\">g</font><font style=\"color:green;\">l</font><font style=\"color:red;\">e</font></a>"$text);
   
   
$text preg_replace
   
"/(http:\/\/www.facebook.com[^<>\s]+)/i"
   
"<a class=\"bblink\" target=\"_new\" href=\"\\1\"><font style=\"color:white;background-color:#3b5998;\">facebook</font></a>"$text); 
$text preg_replace
   
"/(https:\/\/www.facebook.com[^<>\s]+)/i"
   
"<a class=\"bblink\" target=\"_new\" href=\"\\1\"><font style=\"padding:2px;color:white;background-color:#3b5998;\">facebook</font></a>"$text); 
__________________
Sky-Tech Developer Team Hungary

Reply With Quote
  #5  
Old 10th July 2011, 15:22
DARCK's Avatar
DARCK DARCK is offline
Senior Member
 
Join Date: Apr 2011
P2P
Posts: 69
Wink scrollamount
little update
PHP Code:
$text preg_replace("/\[scro\]\s*((\s|.)+?)\s*\[\/scro\]\s*/i","<marquee direction=right behavior=alternate loop=\"-1\" scrollamount=\"4\" width=\"100%\">\\1</marquee>"$text);
$text preg_replace("/\[led\]\s*((\s|.)+?)\s*\[\/led\]\s*/i","<div align=center>
<embed FlashVars=\"bt=\\1 &cl=red\" src=\"http://www.superpimper.com/generators/LED_Scroller/LED_Scroller.swf\" quality=\"high\" wmode=\"transparent\" bgcolor=\"000000\" width=\"380\" height=\"50\" name=\"blipsy-sign\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\"><br />
</div>
<img style=\"visibility:hidden;width:0px;height:0px;\" border=0 width=0 height=0 src=\"http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyMzMzMjE5NDU4NzUmcHQ9MTIzMzMyMTk1NjQ2OCZwPTE5NTAxJmQ9Jmc9MSZ*PSZvPTc3NDA*ODdmODJmNTRkOGVhN2NjZjQ1OWIxMzczZDlj.gif\" />
"
$text); 

Last edited by DARCK; 10th July 2011 at 15:45.
Reply With Quote
  #6  
Old 11th March 2012, 15:31
Marco Marco is offline
Senior Member
 
Join Date: Jun 2009
Seychelles
Posts: 327
Default Hello
BBCode:)

guys i have a problem ....

i've tried a bbcode ( image & url ) on ts 5.6 Nightcrawler edition and did not working, any ideea?

i use it:

[xxxurl=link][img]image[/img][/url] (those xxx is just for visualisation)
any advice ?

thanks in advance:)

PS. i tested the bbcode on other site and there is worked well.
Reply With Quote
  #7  
Old 19th March 2012, 15:17
PAX's Avatar
PAX PAX is offline
Senior Member
 
Join Date: Nov 2010
P2P
Posts: 41
Default
Reply With Quote
  #8  
Old 6th July 2013, 12:50
Titya Titya is offline
Banned
 
Join Date: Dec 2010
Belgium
Posts: 30
Default Hide from users......
PHP Code:
// Spoiler Hack.

    
if ($is_mod)
    
$SDiv '<div><div><a href="#" onclick="n = this.parentNode.parentNode.lastChild; if(n.style.display == \'none\') { n.style.display = \'block\'; } else {    n.style.display = \'none\';    } return false;">'.$lang->global['spoiler'].'</a></div><div class="spoiler" style="display: none;">{param}</div></div>';
    
$text preg_replace('@\[spoiler\](.*)\[/spoiler\]@is'str_replace('{param}''\\1'$SDiv), $text); 
Only staff can see
Reply With Quote
The Following User Says Thank You to Titya For This Useful Post:
FENIX (6th July 2013)
  #9  
Old 27th November 2013, 11:56
Marco Marco is offline
Senior Member
 
Join Date: Jun 2009
Seychelles
Posts: 327
Default
Hello i wish to use multiple time the spoiler bbcode


like : news1 [spoiler] hided text[/spoiler]
news2 [spoiler] hided text [/spoiler] the second time it isn't working... like other bbcode so what i have to do?? to use multiple time in news spoiler bbcode?

Any advice will be welcomed
Reply With Quote
Reply

Tags
56 , bbtag , mod , spoiler , tsse

Thread Tools

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



All times are GMT +2. The time now is 23:23. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.