[BETA] Spoiler BBcode MOD++

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Me-Crazy
I've Been Banned!
Posts: 142
Joined: Thu Apr 27, 2006 4:45 am

Post by Me-Crazy »

Hej, I did installl this spoiler but i don´t see any changes on my board, i´ve to mention this that i´ve installed advanced bbcode box on my forum and wanted to get this spoiler all together.

I add this code. I request the author to have a look on it, and help me with it, I really need this MOD. Thankyou..

Code: Select all

#-----[ OPEN ]------------------------------------------ 
# 
includes/bbcode.php 
# 
#-----[ FIND ]------------------------------------------ 
# 

// [b] and [/b] for bolding text    
$text = str_replace("[b:$uid]", $bbcode_tpl['b_open'], $text); 
$text = str_replace("[/b:$uid]", $bbcode_tpl['b_close'], $text); 
# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

// Begin 'SPOILER BBcode MOD' 
// [spoiler] and [/spoiler] for spoiler-text    
$text = str_replace("[spoiler:$uid]", $bbcode_tpl['spoiler_open'], $text); 
$text = str_replace("[/spoiler:$uid]", $bbcode_tpl['spoiler_close'], $text); 
// End 'SPOILER BBcode MOD' 

# 
#-----[ FIND ]------------------------------------------ 
# 

// [b] and [/b] for bolding text. 
$text = preg_replace("#\[b\](.*?)\[/b\]#si", "[b:$uid]\\1[/b:$uid]", $text); 
# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

// Begin 'SPOILER BBcode MOD' 
// [spoiler] and [/spoiler] for setting spoiler-text 
$text = preg_replace("#\[spoiler\](.*?)\[/spoiler\]#si", "[spoiler:$uid]\\1[/spoiler:$uid]", $text); 
// End 'SPOILER BBcode MOD' 
# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/bbcode.tpl 

# 
#-----[ FIND ]------------------------------------------ 
# 

<!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open --> 
<!-- BEGIN b_close --></span><!-- END b_close --> 
# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

<!-- BEGIN spoiler_open --><span class="spoiler" onmouseover="this.style.color='#FFFFFF';" onmouseout="this.style.color=this.style.backgroundColor='#000000'"><!-- END spoiler_open --> 
<!-- BEGIN spoiler_close --></span><!-- END spoiler_close --> 

# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/subSilver.css 

# 
#-----[ FIND ]------------------------------------------ 
# 

/* This is the outline round the main forum tables */ 
.forumline   { background-color: white; border: 0px black solid; } 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

/* BBcode Spoiler MOD++ - by cheesypeanut */ 
.spoiler { color: black; text-decoration: none; background-color: black; font-weight: normal; } 

deejaybet
Registered User
Posts: 1814
Joined: Thu Dec 08, 2005 2:01 pm
Location: Derry, Northern Ireland
Contact:

Post by deejaybet »

did u install the multi-bbcode mod?

khsjr1970
Registered User
Posts: 242
Joined: Fri Aug 19, 2005 5:59 pm

Post by khsjr1970 »

Me-Crazy wrote: i´ve installed advanced bbcode box on my forum


that already has some version of a spolier, which would have to be removed first and advanced bbcode box, as of version 5.0.0a still had javascript errors that needed to be worked out.

I suggest NOT using advanced bbcode box, if you want other bbcodes to be added in and work properly. There are already a few different mods on phpbb.com that handle bbcodes with some ease. as previously mentioned by this MOD's author in his installation text.

Me-Crazy
I've Been Banned!
Posts: 142
Joined: Thu Apr 27, 2006 4:45 am

Post by Me-Crazy »

That means i can´t get any MOD tobe suite with advanvced bbcode, i need this mod the most have you noticed it has these tags.

This is amazing MOD, i have never seen like that. Could you recommand me any MOD to have tags like these?

[flash width=250 height=250]http://[/flash]
[video width=400 height=350]http://[/video]
[stream]http://[/stream]
[ram width=220 height=140]http://[/ram]

and i wanted to have mod to hide these tags, it would be like [hide][/hide] or [spoiler][/spoiler]. Can recommand any?

User avatar
Saeru
Registered User
Posts: 622
Joined: Sun Feb 19, 2006 5:44 am
Location: Under a pile of PHP code.
Contact:

Post by Saeru »

Nice, but personally I would rather just sellect the text in the spoil tag. So a user don't run their mouse over it by accident just by moving the cursor across the page and catching a glance at something they didn't wish to read.

It's why I stopped using another spoil tag that acted like this one. There were to many complaints about the very thing I mentioned. ^^
"Naku ga yousuru ichidanto tsuyosa kyaku ga icchuu wo yusuru."[/size]

someone222
Registered User
Posts: 76
Joined: Sat Mar 25, 2006 12:56 am

Post by someone222 »

I tried finding the text in the step below but it's not in the document! I've done all the other steps in the multi BBcoe mod but it won't work! #31p p10x?

Code: Select all

#-----[ FIND ]---------------------------------
#
$EMBB_keys = array(''
$EMBB_widths = array(''
$EMBB_values = array('

martynball
Registered User
Posts: 44
Joined: Sat Dec 29, 2007 1:52 pm

Re: [BETA] Spoiler BBcode MOD++

Post by martynball »

I couldnt find:

// and for bolding text
$text = str_replace("[b:$uid]", $bbcode_tpl['b_open'], $text);
$text = str_replace("[/b:$uid]", $bbcode_tpl['b_close'], $text);

In the bbcode.php

Post Reply

Return to “[2.0.x] MODs in Development”