Page Index Toggle Pages: [1] 2  ReplyAdd Poll Send Topic
Hot Topic (More than 10 Replies) Spoiler Tag (Derek's) (Read 13305 times)
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Spoiler Tag (Derek's)
Jun 25th, 2014 at 6:55pm
Mark & QuoteQuote  
This Derek Barnstrom's Spoiler tag

Spoiler Tag for YaBB 2.6.0
Version 2.0

Adds Spoiler Tag to YaBB 2.6.0

History
1.0 - Written by Derek Barnstorm for YaBB 2.2.3 - 30th July 2008
1.1 - Added to Instant Messages - 31st July 2008
1.2 - Added to Live Preview, Print Page and also added description function - 12th August 2008
1.3 - Updated for YaBB 2.3 - 14th October 2008
1.4 - Updated for YaBB 2.3.1 - 5th January 2009
1.5 - Updated for YaBB 2.4 - 15th April 2009
2.0 - Updated for YaBB 2.6.0 25 June, 2014 by Dandello
2.1 - Chrome javascript fix

Files to edit
Admin/ModList.pm
Languages/English/InstantMessage.lng
Languages/English/Main.lng
Languages/English/Post.lng
Sources/InstantMessage.pm
Sources/MyCenter.pm
Sources/Post.pm
Sources/Printpage.pm
Sources/YaBBC.pm

ubbc.js

default.css

Note: I'm still not happy with the ContextHelp for it as it doesn't show the actual function of the tag.
« Last Edit: Jun 30th, 2014 at 5:08am by Dandello »  

Spoiler_Tag_260_2_1.zip ( 3 KB | 146 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Spoiler Tag (Derek's)
Reply #1 - Jun 27th, 2014 at 3:39am
Mark & QuoteQuote  
Works so far perfectly. Only problem is that the noparse-button is shifted further to the right and superimposed on the green tick of the spell checker. If you click now in the middle of noparse button, comes the spell check. To get noparse, you have to click at the bottom. The spell checker must therefore be shifted to the right. In addition, both buttons should be reversed because under the spoiler button still should come the off-topic button. However, this is a matter for the eye and not absolutely necessary.

One mistake that we had in the past:
Before I try to open the spoiler is indeed only once "Show" button. Is the spoiler then opened, should actually be in the "Hide" button. However, it is still "show" is displayed. I'm doing some Screener.

  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Spoiler Tag (Derek's)
Reply #2 - Jun 27th, 2014 at 3:42am
Mark & QuoteQuote  
Code
Select All
<edit file>
 Languages/German/ContextHelp.lng
 </edit file>

 <search for>
 'noparse' => "Keine Syntaxanalyse:<br /><br />Wählen Sie die YaBBC Code:<br />[SELECT]
Diese Tabelle wird nicht analysiert werden
[/SELECT]<br /><br />Klicken Sie auf den \"[TITLE]\" -Button: [BUTTON]<br /><br /><b>YaBBC Code:</b><br />[table][tr][td]Diese Tabelle wird nicht analysiert werden[/td][/tr][/table]<br /><br /><b>Ergebnis:</b><br />
Diese Tabelle wird nicht analysiert werden
"); </search for> <add before> 'spoiler' => "Spoiler oder Warnungen ausblenden:<br /><br />Wählen Sie den Text: bla bla [SELECT]Hallo Welt[/SELECT] bla bla<br /><br />Klicken Sie auf den \"[TITLE]\" -Button: [BUTTON]<br /><br /><b>YaBBC Code:</b> bla bla
Spoiler:
Hallo Welt
bla bla<br /><br /><b>Ergebnis:</b> bla bla
Spoiler:
Hallo Welt
bla bla", </add before> <search for> 'right', '$contextxt{'right'}', </search for> <add after> 'spoiler', '$contextxt{'spoiler'}', </add after> <search for> 1; </search for> <add before> %spoiler_txt =( '01' => 'Spoiler', '02' => 'Zeigen', '03' => 'Verstecken', '04' => 'für', '05' => 'Spoiler einfügen', );  </add before> <edit file> Languages/German/InstantMessage.lng </edit file> <search for> '84' => 'Code wurde gelöscht', </search for> <add after> '85' => 'Spoiler wurde gelöscht', </add after> <edit file> Languages/German/Main.lng </edit file> <search for> 1; </search for> <add before> ## spoiler text %spoiler_txt =( '01' => 'Spoiler', '02' => 'Zeigen', '03' => 'Verstecken', '04' => 'für', ); </add before> <edit file> Languages/German/Post.lng </edit file> <search for> 1; </search for> <add before> ## spoiler text %spoiler_txt =( '01' => 'Spoiler', '02' => 'Zeigen', '03' => 'Verstecken', '04' => 'für', '05' => 'Spoiler einfügen', ); </add before>


« Last Edit: Jun 28th, 2014 at 7:46pm by pyragony54 »  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Spoiler Tag (Derek's)
Reply #3 - Jun 27th, 2014 at 3:42am
Mark & QuoteQuote  
Code
Select All
<edit file>
 Languages/German_Du/ContextHelp.lng
 </edit file>

 <search for>
 'noparse' => "Keine Syntaxanalyse:<br /><br />Wähle die YaBBC Code:<br />[SELECT]
Diese Tabelle wird nicht analysiert werden
[/SELECT]<br /><br />Klicke auf den \"[TITLE]\" -Button: [BUTTON]<br /><br /><b>YaBBC Code:</b><br />[table][tr][td]Diese Tabelle wird nicht analysiert werden[/td][/tr][/table]<br /><br /><b>Ergebnis:</b><br />
Diese Tabelle wird nicht analysiert werden
"); </search for> <add before> 'spoiler' => "Spoiler oder Warnungen ausblenden:<br /><br />Wähle den Text: bla bla [SELECT]Hallo Welt[/SELECT] bla bla<br /><br />Klicke auf den \"[TITLE]\" -Button: [BUTTON]<br /><br /><b>YaBBC Code:</b> bla bla
Spoiler:
Hallo Welt
bla bla<br /><br /><b>Ergebnis:</b> bla bla
Spoiler:
Hallo Welt
bla bla", </add before> <search for> 'right', '$contextxt{'right'}', </search for> <add after> 'spoiler', '$contextxt{'spoiler'}', </add after> <search for> 1; </search for> <add before> ## spoiler text %spoiler_txt =( '01' => 'Spoiler', '02' => 'Zeigen', '03' => 'Verstecken', '04' => 'für', '05' => 'Spoiler einfügen', ); </add before> <edit file> Languages/German_Du/InstantMessage.lng </edit file> <search for> '84' => 'Code wurde gelöscht', </search for> <add after> '85' => 'Spoiler wurde gelöscht', </add after> <edit file> Languages/German_Du/Main.lng </edit file> <search for> 1; </search for> <add before> ## spoiler text %spoiler_txt =( '01' => 'Spoiler', '02' => 'Zeigen', '03' => 'Verstecken', '04' => 'für', ); </add before> <edit file> Languages/German_Du/Post.lng </edit file> <search for> 1; </search for> <add before> ## spoiler text %spoiler_txt =( '01' => 'Spoiler', '02' => 'Zeigen', '03' => 'Verstecken', '04' => 'für', '05' => 'Spoiler einfügen', ); </add before>
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Spoiler Tag (Derek's)
Reply #4 - Jun 27th, 2014 at 1:04pm
Mark & QuoteQuote  
pyragony54 wrote on Jun 27th, 2014 at 3:39am:
Before I try to open the spoiler is indeed only once "Show" button. Is the spoiler then opened, should actually be in the "Hide" button.


I suspect this is one of the problems that was making Derek unhappy with this mod. (I didn't mess with the javascript.)

And I'll get on moving the spellcheck over (This will need to be done for Off Topic as well, I think.)
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Spoiler Tag (Derek's)
Reply #5 - Jun 27th, 2014 at 4:53pm
Mark & QuoteQuote  
pyragony54 wrote on Jun 27th, 2014 at 3:39am:
Works so far perfectly. Only problem is that the noparse-button is shifted further to the right and superimposed on the green tick of the spell checker.


Make sure that in the default.css this is correct:
Code (CSS)
Select All
.style_ubbc_box {
     float: left;
     width: 493px !important;
 } 



That's the section that pushes over the spell check div.

Edited:
I also cannot reproduce the Show/Hide issue - it switches over fine when I install it on a fresh YaBB install. I also made a different button. (Not in the zip yet.)

  

spoiler.gif ( 0 KB | 141 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Spoiler Tag (Derek's)
Reply #6 - Jun 27th, 2014 at 6:28pm
Mark & QuoteQuote  
Perfect.

Dandello wrote on Jun 27th, 2014 at 4:53pm:
I also cannot reproduce the Show/Hide issue - it switches over fine when I install it on a fresh YaBB install. I also made a different button. (Not in the zip yet.)



Is actually not a big problem. The main thing it works and it does.
Will test on occasion with a fresh installation.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Spoiler Tag (Derek's)
Reply #7 - Jun 29th, 2014 at 6:54pm
Mark & QuoteQuote  
pyragony54 wrote on Jun 27th, 2014 at 3:39am:
Before I try to open the spoiler is indeed only once "Show" button. Is the spoiler then opened, should actually be in the "Hide" button.


XTC and I have found that it does not work on Google Chrome and Opera. In Firefox and IE it works.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box XTC
Global Moderator
*****
Offline


YaBB 2.6.0/1/11 Mods

Posts: 174
Location: @ustria
Joined: Feb 12th, 2014
Gender: Male
Mood: Freaky
Zodiac sign: Aquarius
Re: Spoiler Tag (Derek's)
Reply #8 - Jun 29th, 2014 at 6:55pm
Mark & QuoteQuote  
Hello

Nice old Spoiler Tag in YaBB 1.3 .... with more Style versions ... maybe an option ....

YaBBC Code (The table should be revised) attach IMG attach ...

The Spoiler looks like this ...
http://www.xonder.com/cgi-bin/yabb13_off/YaBB.cgi?action=portal

lg XTC
  

code.txt ( 5 KB | 149 Downloads )
minimize.gif ( 0 KB | 147 Downloads )
maximize.gif ( 0 KB | 145 Downloads )

Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Spoiler Tag (Derek's)
Reply #9 - Jun 29th, 2014 at 8:00pm
Mark & QuoteQuote  
pyragony54 wrote on Jun 29th, 2014 at 6:54pm:
XTC and I have found that it does not work on Google Chrome and Opera. In Firefox and IE it works.



Two out of four ain't bad  Wink At least now I know where to look for the problem.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Spoiler Tag (Derek's)
Reply #10 - Jun 29th, 2014 at 8:38pm
Mark & QuoteQuote  
Well, Opera uses in the meantime, the engine of Google Chrome.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Spoiler Tag (Derek's)
Reply #11 - Jun 30th, 2014 at 5:05am
Mark & QuoteQuote  
Found it  Smiley
New zip in first post
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Spoiler Tag (Derek's)
Reply #12 - Jun 30th, 2014 at 5:45am
Mark & QuoteQuote  
Great.   Smiley
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Batchman
Full Member
***
Offline


I Love YaBB!

Posts: 165
Location: Somewhere just East of Crazy
Joined: Jul 25th, 2014
Gender: Male
Mood: Depressed
Zodiac sign: Libra
Re: Spoiler Tag (Derek's)
Reply #13 - Aug 1st, 2014 at 8:09am
Mark & QuoteQuote  
Just checking in on this one.

Installed, and the actual functionality is there. But for some reason, the button doesn't insert it. The button does not do anything for me. I have to manually type in the [ spoiler ] [ /spoiler ] tags to get them to work.

In addition the googie spell still needs to be moved over.

Next, I do agree with Pyragony ... I think most people who want to install one of Derek's extra UBBC codes will probably want to install both ... so the no parse should probably be left where it is, and the spoiler button be added between no parse and the spell checker, so the off topic button can go right below it, and not mess up any of the justify buttons.

I would also suggest an extra mod file for either Spoiler or Off Topic, which expects the other to already have been installed, because right now you can only have one or the other. (Or know enough to tweak all the code enough to make both fit.)

Finally, I will admit the new Hide/Show button looks nicer than than the old one did ... but the loss of the 'box' that used to surround the 'spoiled' text does hurt a little. (Not much, as it doesn't seem like it was much of a box to begin with.  Wink )
  

If you don't know where you are, but you don't care, you're not lost ... you're exploring!
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Spoiler Tag (Derek's)
Reply #14 - Aug 1st, 2014 at 2:14pm
Mark & QuoteQuote  
Did ubbc.js get updated? That's what controls the button functions.

As for the positioning of the buttons - that's been one of the ongoing problems with adding buttons to the UBBC controls.

What I want to see for the future is a method where the div widths are auto-calculated based on how many buttons are listed for a grouping and extra rows for the buttons appearing when a line or section gets too long. That would take care of a lot of the compatibility issues.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
Spoiler Tag (Derek's)

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 10000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry