Page Index Toggle Pages: 1 [2] 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) Spoiler Tag V1.2 for 2.2.1 - 2.2.3 (Read 27154 times)
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Spoiler Tag V1.1 for 2.2.3
Reply #15 - Aug 1st, 2008 at 6:51pm
Print Post  
Okay, thanks for the feedback.

I've added the GermanDU Mod to the zip package in the first post... Thanks for that MeisterGigi!

I have noticed one problem though, this Mod doesn't show up on 'Live Preview'... I don't even know if it's possible to get javascript working with this, I keep getting syntax errors when trying to add it... I'll try to find a fix soon...
« Last Edit: Aug 3rd, 2008 at 11:23pm by Derek Barnstorm »  
Back to top
 
IP Logged
 
Derek Bullock
Full Member
***
Offline


I love Camp Oven Cooking

Posts: 184
Location: Brisbane
Joined: Nov 9th, 2007
Gender: Male
Re: Spoiler Tag V1.1 for 2.2.3
Reply #16 - Aug 2nd, 2008 at 9:50am
Print Post  
Please don't think I am dumb but what exactly does this mod do ????

Thanks
  

Back to top
WWW  
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Spoiler Tag V1.1 for 2.2.3
Reply #17 - Aug 2nd, 2008 at 10:43am
Print Post  
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Derek Bullock
Full Member
***
Offline


I love Camp Oven Cooking

Posts: 184
Location: Brisbane
Joined: Nov 9th, 2007
Gender: Male
Re: Spoiler Tag V1.1 for 2.2.3
Reply #18 - Aug 2nd, 2008 at 10:56am
Print Post  
  

Back to top
WWW  
IP Logged
 
MeisterGigi
Junior Member
**
Offline


xxx

Posts: 74
Location: Germany/Austria
Joined: Dec 4th, 2004
Gender: Male
Re: Spoiler Tag V1.1 for 2.2.3
Reply #19 - Aug 2nd, 2008 at 1:17pm
Print Post  
http://www.meistergigi.com/cgi-bin/yabb222xx/YaBB.pl?num=1216835546/14#14

See it working here, just klick in the last post on "Zeigen"
  
Back to top
 
IP Logged
 
bartez
Ex Member


Re: Spoiler Tag V1.1 for 2.2.3
Reply #20 - Aug 2nd, 2008 at 2:41pm
Print Post  
MeisterGigi i see you've edited the spoilermod a bit. Nice work on that one. What did u do?

And nice to see that you're running Eventcal on 2.2.3 Wink
  
Back to top
 
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Spoiler Tag V1.1 for 2.2.3
Reply #21 - Aug 2nd, 2008 at 2:52pm
Print Post  
he not edit that  Grin only forgot add css code from first post.  Tongue
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
MeisterGigi
Junior Member
**
Offline


xxx

Posts: 74
Location: Germany/Austria
Joined: Dec 4th, 2004
Gender: Male
Re: Spoiler Tag V1.1 for 2.2.3
Reply #22 - Aug 3rd, 2008 at 9:09am
Print Post  
You mean me Jet? I added the code. ?

And Bartez, i did not modify the mod, mhm.

Yes, i am a BetaTester for the Mighty Event Cal Smiley
  
Back to top
 
IP Logged
 
Derek Bullock
Full Member
***
Offline


I love Camp Oven Cooking

Posts: 184
Location: Brisbane
Joined: Nov 9th, 2007
Gender: Male
Re: Spoiler Tag V1.1 for 2.2.3
Reply #23 - Aug 3rd, 2008 at 10:07am
Print Post  
Installed - works well but .......... I and my members don't know what we would use it for.  Grin Grin Grin Grin

Thank you
  

Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Spoiler Tag V1.1 for 2.2.3
Reply #24 - Aug 3rd, 2008 at 11:29pm
Print Post  
MeisterGigi wrote on Aug 3rd, 2008 at 9:09am:
You mean me Jet? I added the code. ?

And Bartez, i did not modify the mod, mhm.

The code isn't in your style sheet MeisterGigi... You can add it through Admin Center - Style Sheet - Source...

@bartez... You can change the look of the Spoiler Tag box by editing the css...

Code
Select All
.spoiler {
	font-size: 12px;
	font-weight: normal;
	font-style: normal;
	font-family: Verdana, Helvetica, Arial, Sans-Serif;
	color: #000000;
	background-color: #CCCCCC;
	border: 1px #34689A solid;
	width: 90%;
	padding: 4px;
} 


  
Back to top
 
IP Logged
 
MeisterGigi
Junior Member
**
Offline


xxx

Posts: 74
Location: Germany/Austria
Joined: Dec 4th, 2004
Gender: Male
Re: Spoiler Tag V1.1 for 2.2.3
Reply #25 - Aug 4th, 2008 at 6:26am
Print Post  
But its in there !?!?
  

beweis.jpg ( 96 KB | Downloads )
beweis.jpg
Back to top
 
IP Logged
 
bartez
Ex Member


Re: Spoiler Tag V1.1 for 2.2.3
Reply #26 - Aug 4th, 2008 at 12:12pm
Print Post  
Thanks Derek Barnstorm! Edited mine, really like it now Smiley
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Spoiler Tag V1.1 for 2.2.3
Reply #27 - Aug 4th, 2008 at 2:26pm
Print Post  
Quote:
Thanks Derek Barnstorm! Edited mine, really like it now Smiley

No problem...

MeisterGigi wrote on Aug 4th, 2008 at 6:26am:
But its in there !?!?


That's the wrong style sheet... If I view the source to your forum, this is the link to your css...

http://www.meistergigi.com/public_html/yabbfiles222/Templates/Forum/default.css

'.spoiler' isn't in there... From that image it looks like you have put it into 'standard.css' but your forum is linking to 'default.css'...
  
Back to top
 
IP Logged
 
MeisterGigi
Junior Member
**
Offline


xxx

Posts: 74
Location: Germany/Austria
Joined: Dec 4th, 2004
Gender: Male
Re: Spoiler Tag V1.1 for 2.2.3
Reply #28 - Aug 5th, 2008 at 6:18am
Print Post  
Ah, okay, thanks, i moved the code now to default Smiley
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Spoiler Tag V1.2 for 2.2.3
Reply #29 - Aug 12th, 2008 at 7:08pm
Print Post  
I've updated this Mod a little... It now works with 'Live Preview' and 'Print Page'. I have also added the ability to add a description by doing this:

Code
Select All
[spoiler=A Film]Your Spoiler[/spoiler] 




I was going to add a seperate language file, but I had to hard code yabbc.js

Code
Select All
ubbcstr=ubbcstr.replace(/\[spoiler=([A-Za-z0-9# -,.]+)\](.*?)\[\/spoiler\]/ig, "<div class=\"message\"><div style=\"padding-bottom: 1px;\"><b>Spoiler:</b> for <i>$1</i>: <input type=\"button\" value=\"Show\" onclick=\"if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';	this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }\"></div><div class=\"spoiler\"><div style=\"display: none;\">$2</div></div></div>"); 


If anyone can point me in the right direction how to add language to this without hard coding, I will be happy to change it.

I've updated the zip package in the first post. If you already have it installed, unistall and reinstall.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 
Send TopicPrint