Spoiler cmd... - Anime-Planet forum
Why register?

make an anime and manga list, and more! all free!

Theme
Old 11-22-2003, 03:33 PM   #1 (permalink)
Anime Fan in Training
 
Join Date: Jul 2002
Posts: 214
Send a message via ICQ to smash Send a message via AIM to smash Send a message via Yahoo to smash
Default Spoiler cmd...

i was looking to see if, we could have a spoiler command
where i could type
(something like that) and it would put a box around the text... fills in the box with color and then changes the text to that color.. so it just looks like a box of one solid color... untill u highlight it and u can see the text

heres a example (from animesuki forums)



now once highlighted, u can see the text



it can be a solution to the complains of people getting spoiled in new release section ^_^
__________________
#LosslessONE @ irc.rizon.net - the home to anime audiophiles...
"teh Lossless Ones... We dont discriminate.... we just know we are better... all lossless all the time"

/me flacs you
smash is offline   Reply With Quote
Old 11-23-2003, 04:01 AM   #2 (permalink)
Otaku
 
Ketsuron's Avatar
 
Join Date: Jul 2003
Location: somewhere
Posts: 2,148
Send a message via ICQ to Ketsuron
Default

sounds good.. but animesuki uses vBulletin.....
Ketsuron is offline   Reply With Quote
Old 11-23-2003, 04:21 AM   #3 (permalink)
Overlord
 
sothis's Avatar
 
Join Date: May 2002
Location: Seattle, Washington
Age: 32
Posts: 15,671
Default

if you want to find me a phpbb hack that will do this, ill install it.. but i dont think it exists
__________________

Anime-Planet.com - anime | manga | reviews

Adding Anime - Synopsis Templates | Twitter | MySpace

[sixth sense voice] I SEE BRITISH PEOPLE - Control my signature or avatar!
sothis is offline   Reply With Quote
Old 11-23-2003, 08:45 AM   #4 (permalink)
Otaku
 
Ketsuron's Avatar
 
Join Date: Jul 2003
Location: somewhere
Posts: 2,148
Send a message via ICQ to Ketsuron
Default

however there exist some sort of a mod to hide text...

it uses those tags: [hide] hidden text [/hide]

Links: google, smartor site, oasisforum mods, hackhide mod (french!), abyss spoiler/hide tag info.

maybe that works...
Ketsuron is offline   Reply With Quote
Old 11-23-2003, 12:40 PM   #5 (permalink)
Overlord
 
sothis's Avatar
 
Join Date: May 2002
Location: Seattle, Washington
Age: 32
Posts: 15,671
Default

finding another forum with the modification wont help me.. i cant dissect all the forum code (there is a SHITLOAD) by myself and figure it out.

i need a link to the specific modification pack/file/instructions/whatever you want to call it, on a specific site. so, for example, the phpbb.com forums, phpbbhacks, or anywhere else.
__________________

Anime-Planet.com - anime | manga | reviews

Adding Anime - Synopsis Templates | Twitter | MySpace

[sixth sense voice] I SEE BRITISH PEOPLE - Control my signature or avatar!
sothis is offline   Reply With Quote
Old 11-23-2003, 01:14 PM   #6 (permalink)
Otaku
 
Ketsuron's Avatar
 
Join Date: Jul 2003
Location: somewhere
Posts: 2,148
Send a message via ICQ to Ketsuron
Default

maybe this is useful: phpBB_com search results, Spoiler BBcode, phpBB_com View topic - Spoiler BBcode Mod

EDIT: download link doesnt work & sadly, the person who made that mod is no longer involved in phpBB_com
err found another Spoiler Hack (but for phpBB 2.0.4) here.
Ketsuron is offline   Reply With Quote
Old 11-23-2003, 03:46 PM   #7 (permalink)
Overlord
 
sothis's Avatar
 
Join Date: May 2002
Location: Seattle, Washington
Age: 32
Posts: 15,671
Default

unfortunate.. if that link had worked, i would have installed it
__________________

Anime-Planet.com - anime | manga | reviews

Adding Anime - Synopsis Templates | Twitter | MySpace

[sixth sense voice] I SEE BRITISH PEOPLE - Control my signature or avatar!
sothis is offline   Reply With Quote
Old 11-23-2003, 04:25 PM   #8 (permalink)
Anime Fan in Training
 
Join Date: Jul 2002
Posts: 214
Send a message via ICQ to smash Send a message via AIM to smash Send a message via Yahoo to smash
Default

Quote:
Originally Posted by Ketsuron
EDIT: download link doesnt work & sadly, the person who made that mod is no longer involved in phpBB_com
err found another Spoiler Hack (but for phpBB 2.0.4) here.
i looked it up, but this guy isnt the creator of the mod... hes just the guy who posted it... the creator is LifeIsPain
__________________
#LosslessONE @ irc.rizon.net - the home to anime audiophiles...
"teh Lossless Ones... We dont discriminate.... we just know we are better... all lossless all the time"

/me flacs you
smash is offline   Reply With Quote
Old 11-23-2003, 05:04 PM   #9 (permalink)
Otaku
 
Ketsuron's Avatar
 
Join Date: Jul 2003
Location: somewhere
Posts: 2,148
Send a message via ICQ to Ketsuron
Default

Aw, seems i mixed up smthg with the name, however lets hope the guys at phpbb.com fix that link....
Ketsuron is offline   Reply With Quote
Old 11-24-2003, 03:07 AM   #10 (permalink)
Otaku
 
Ketsuron's Avatar
 
Join Date: Jul 2003
Location: somewhere
Posts: 2,148
Send a message via ICQ to Ketsuron
Default

Although the spoiler_bbcode_1_0_0.mod link doesnt work, i've found LiveIsPain code for Spoiler BBcode Mod Version: 1.1.0 (however its not valid (using phpBB MOD's Validator).

Therefore i've edited it (only fixed the header) and you get:

Code:
############################################################## 
## MOD Title: Spoiler BBcode Mod 
## MOD Author: elfy < elfy@tolkien.com.pl > (Marek Sliwinski) http://www.tolkien.com.pl 
##             LifeIsPain < brian@orvp.net > (Brian Evans) 
## MOD Description: adds a spoiler tag to your forum 
##              Text between spoiler tags is invisible till you highlight this block of text. 
## MOD Version: 1.1.0 
## 
## Installation Level: easy 
## Installation Time: 3 Minutes 
## Files To Edit: templates/subSilver/bbcode.tpl, 
##                includes/bbcode.php 
##                templates/subSilver/subSilver.css 
## Included Files: (n/a) 
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: 
## 
## tested with phpBB2 ver 2.0.2/2.0.3 
##   Modified to always hide the text, not just on odd numbered posts 
## 
############################################################## 
## MOD History: 
## 
##   2002-10-19 - Version 1.1.0   
##      - Validated to run with phpBB 2.0.2/2.0.3 
## 
## ############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

# 
#-----[ 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="spoil"><!-- END spoiler_open --> 
<!-- BEGIN spoiler_close --></span><!-- END spoiler_close --> 

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

# 
#-----[ FIND ]------------------------------------------ 
# 
/* Main table cell colours and backgrounds */ 
td.row1   { background-color: #EFEFEF; } 
td.row2   { background-color: #DEE3E7; } 
td.row3   { background-color: #D1D7DC; } 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
/* These lines are for the spoiler mod, each row must 
  have the color changed to match the background */ 
td.row1 span.spoil { color: #EFEFEF; } 
td.row2 span.spoil { color: #DEE3E7; } 
td.row3 span.spoil { color: #D1D7DC; } 
td.quote span.spoil { color: #FAFAFA; } 

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM
Quote:
Originally Posted by LifeIsPain
Spoiler will not work in Opera, but will in IE 5+, NS 4.7+, and Mozilla at least 1.0+, I haven't tested it on any others. If you have users that use Opera, it won't work, because opera simply inverses the color (I think) but it changes the background and the foreground to be the same color.
hm, would that hack work on phpbb 2.0.6.......?
Ketsuron is offline   Reply With Quote
Reply

Bookmarks

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
Trackbacks are Off
Pingbacks are Off
Refbacks are On



All times are GMT -7. The time now is 10:14 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0