News:

SMF 2.0.19 has been released! Please update. Read more.

Main Menu

Spoiler Tag

Started by Anguz, November 13, 2004, 06:56:09 PM

Previous topic - Next topic

Emilie

Quote from: Anguz on May 24, 2005, 06:12:23 PM
You're right. I just haven't bothered adding the buttons for any of my bbcode tag mods so far. In Post.template.php you look for the function template_postbox and it'll be pretty plain to see where you add the button. Don't forget to have an image ready for it. ;)

Oh, thank you :)

And do you know how I can replace the ": my text" with "Spoiler: my text" after the code has been used?

Anguz

If you're using a language other than english, you'll need to copy the language strings that the mod adds to your language's Modifications.language.php file as well.
Cristián Lávaque http://cristianlavaque.com

DBUFile

I just installed this mod, and I have the current version of Faster Parse Code installed.

I am using SMF 1.0.3.

When I make the tag [spoiler=Test]this is a test[/spoiler]

The poast looks like Spoiler: Test but when I click the link, nothing is happening. Looking at my java errors it says:

Error: spoiler is not defined
Source File: javascript:spoiler('spoiler0');
Line: 1

Anguz

#63
That problem came up a while ago, did you read the posts in this topic regarding it? I'm afraid I'm not a JavaScript genius, so if someone else has an idea why this could be happening--other than the reason I found that other time it came up--the help would be really welcome.
Cristián Lávaque http://cristianlavaque.com

DBUFile

I tried what you said to try and I came up with the same error.

azuregenesis

doesn't work in 1.0.5 yet...

:) i await patiently.

azuregenesis

yeah! spoiler tag for 1.0.5 is up!

still requires fasterparsecode, but that's done already for 1.0.5! here's the link:

http://www.simplemachines.org/community/index.php?topic=18659.msg294991#msg294991

go thank sheepy!


and here is spoiler tag for 1.0.5: (in my own webspace)

http://azuregenesis.com/share_files/SpoilerTag103_SMF105.zip

just use package manager to install :)

enjoy!

Anguz

Cristián Lávaque http://cristianlavaque.com

azuregenesis

^^ ah. :) i see. thank you for updating your mod anguz! :)

i shall remove the updated spoiler tags from myserver as well. my apologies to you. *bows*

take care and good luck! :)

Anguz

NP. Thanks Azuregenesis. I'll post the updated Spoiler Tag in a moment if nothing stops me first.
Cristián Lávaque http://cristianlavaque.com

Anguz

1.04


  • Updated for SMF 1.0.5.
Cristián Lávaque http://cristianlavaque.com

Superschaapje

#71
oke it might be a dump question but i red al the post on this tread and i have got this question:


i use smf 1.05 and would like to use the spoiler tag but when i try to run the install of the fasterparasec code i get this "error" afther pressing apply mod - if i press proceed i do get a installed with succes but it doesn't work






and i get the same error if i try to install the spoilertag with or without parasec installed


does anybody know what to do, or what i am doing wrong




Anguz

Spoiler Tag won't install cause Faster Parsecode wasn't installed before. I don't know why people insist on doing it, but if you get an error when previewing the install, and you don't know well why that is and the consequences it'll have, then don't proceed! :)

The reason why Faster Parsecode is not installing is most probably because you previously installed a mod that modified the function parsecode() in Subs.php so now my mod can't find the exact code to replace. What mods do you have installed?
Cristián Lávaque http://cristianlavaque.com

Minsc

Quote from: Anguz on May 07, 2005, 03:40:20 AM
Hmm... I hadn't seen that error before, it always worked fine in FF for me. So I went and tried it in a 1.0.3 install again and it actually gave me that error. After some search, I went to the FF Tools/Options.../Web Features. There's a pref to "Enable JavaScript" there with an Advanced button. I had all exept the last option there disabled, so I enabled them to see if it had something to do with the error, and after saving the settings and refreshing the page, the spoiler worked. Then I went back to the JS options and set them as they were before, saved and refreshed and spoiler still works. I don't know what the problem could be, but you can try telling your users having that problem, to try that.
Did what you said and it fixed that problem. :)

Anguz

Quote from: Minsc on July 08, 2005, 09:13:15 PM
Did what you said and it fixed that problem. :)

Great. :)
Cristián Lávaque http://cristianlavaque.com

Superschaapje

Quote from: Anguz on July 07, 2005, 11:42:15 AM
Spoiler Tag won't install cause Faster Parsecode wasn't installed before. I don't know why people insist on doing it, but if you get an error when previewing the install, and you don't know well why that is and the consequences it'll have, then don't proceed! :)

The reason why Faster Parsecode is not installing is most probably because you previously installed a mod that modified the function parsecode() in Subs.php so now my mod can't find the exact code to replace. What mods do you have installed?

I can't remeber installing a mod that modified subs.php

These mods i have got installed:

Enhanced Quick Reply
Download Center
SMF 1.0.5 Update Package      1.0.5      
OnLine Users Today    1.2    
SMF 1.0.4 Update Package    1.0.4    
SMF 1.0.3 Update Package

Anguz

I don't know then. Could you compare the files Subs.php from 1.0.5 with the one you have in your server and see if you find any difference in the parsecode function?

Is anyone else having trouble installing this mod? Just checking.
Cristián Lávaque http://cristianlavaque.com

ArkServer

#77
i have trouble with the style..
hope you can help me this is my css:


/* Normal,standard links. */
a:hover{color:#C16100;text-decoration:underline}
/* Navigation links - for the link tree. */
.nav,.nav:link,.nav:visited{color:#000000;text-decoration:none}
a.nav:hover{font-weight:bold;color:#cc3333;text-decoration:underline}
/* Tables should show empty cells. */
table{empty-cells:show}
/* By default (td,body..) use Tahoma in black. */
body,td{color:#000000;font-size:small;font-family:Verdana,arial,helvetica,serif}
/* The main body of the entire forum. */
body{background-color:#838383;margin:0px;padding:0px;background-image:url(images/bg.gif)}
/* Input boxes - just a bit smaller than normal so they align well. */
input,textarea,button{font-size:9pt;color:#000000;font-family:Verdana,arial,helvetica,serif}
/* All input elements that are checkboxes or radio buttons. */
input.check{}
/* Selects are a bit smaller,because it makes them look even better 8). */
select{font-size:8pt;font-weight:normal;color:#000000;font-family:Verdana,arial,helvetica,serif}
/* Standard horizontal rule.. ([hr],etc.) */
hr,.hrcolor{height:1px;border:0;color:#666666;background-color:#9B0000}
/* A quote, perhaps from another post. */
.quote, .spoiler
{
     width: 95%;
     background-color: #dcd8eb;
     border-left: #808080 0px solid;
     border-right: #808080 0px solid;
     border-bottom: #808080 1px solid;
     padding: 4px;
     margin: 0px auto 8px;
     color: #000000;
     font-weight: bold;
}

/* Nested quotes alternating color. */
.quote .quote, .quote .quote .quote .quote, .quote .quote .quote .quote .quote .quote, .spoiler
{
     background-color: #EBEBEB;
}
.quote .quote .quote, .quote .quote .quote .quote .quote, .spoiler
{
     background-color: #dcd8eb;
}


/* The "Quote:" header parts... */
.quoteheader
{
     width: 95%;
     border-left: 0;
     border-right: 0;
     border-top: #808080 1px solid;
     padding: 3px;
     font-style: italic;
     font-weight: bold;
     font-size: x-small;
     font-color: #4D4D4D;
     margin: 8px auto 0px;
     background-position: center right;
     background-image: url(images/quote1.gif);
     background-repeat: no-repeat;
     background-color: #C5BEE3;
}

/* Nested quoteheaders alternating color. */
.quote .quoteheader, .quote .quote .quote .quoteheader, .quote .quote .quote .quote .quote .quoteheader
{
     background-color: #B9B9BA;
     background-position: center right;
     background-image: url(images/quote2.gif);
     background-repeat: no-repeat;
}
.quote .quote .quoteheader, .quote .quote .quote .quote .quoteheader
{
     background-color: #C5BEE3;
}
/* A code block - maybe even PHP;). */
.code{color:#000000;background-color:#cccccc;border:1px solid #000000;padding:1px;font-family:"courier new",helvetica,"times new roman",serif;font-size:x-small;width:99%;margin:1px auto 1px auto;white-space:nowrap;overflow:auto}
/* The "Quote:" and "Code:" header parts... */
.quoteheader,.codeheader{color:#000000;text-decoration:none;font-style:normal;font-weight:bold;font-size:x-small}
/* Generally,those [?] icons.  This makes your cursor a help icon. */
.help{cursor:help}
/* /me uses this a lot. (emote,try typing /me in a post.) */
.meaction{color:red}
/* The main post box - this makes it as wide as possible. */
.editor{width:96%}
/* Highlighted text - such as search results;). */
.highlight{background-color:yellow;font-weight:bold;color:black}
/* Alternating backgrounds for posts,and several other sections of the forum. */
.windowbg{color:#000000;background-color:#E1E1E1}
.windowbg2{color:#000000;background-color:#F0F0F0}
/* All the signatures used in the forum.  If your forum users use Mozilla,Opera,or Safari,you might add max-height here;). */
.signature{}
/* These are used primarily for titles,but also for headers (the row that says what everything in the table is.) */
.titlebg,tr.titlebg td,.titlebg a:link,.titlebg a:visited{color:white;font-style:normal;background-color:#898989}
.titlebg a:hover{color:#dfdfdf}
/* This is used for categories,page indexes,and several other areas in the forum. */
.catbg{background-image:url(images/catbg.jpg)}
/* This is used for a category that has new posts in it... to make it light up. */
.catbg2{background-image:url(images/catbg2.jpg)}
.catbg,.catbg2{font-weight:bold;background-color:silver;color:#000000}
/* This is used for tables that have a grid/border background color (such as the topic listing.) */
.bordercolor{background-color:#828181}
/* This is used on tables that should just have a border around them. */
.tborder{border:1px solid #828181;background-color:#FFFFFF;padding:2px}
/* Default font sizes:small (8pt),normal (10pt),and large (14pt). */
.smalltext{font-size:x-small;font-family:Tahoma,arial,helvetica,serif}
.normaltext{font-size:small}
.largetext{font-size:large}
/* This is the main area of the forum,the part that's gray. */
/* And this is the bottom,where the copyright is,etc. */
#footerarea{color:black;background-color:white}
/* This is for the special header boxes on the top (user info,key stats,news box.) */
.headertitles{border:0px solid #00CC00}
.headerbodies{border:1px solid #7A7777;background-color:#EFEFEF}
.navigation{background-color:#C60000;padding-top:3px;padding-left:8px;border-bottom:1px solid Black;background-repeat:repeat-x;background-position:top;background-image:url(images/topbar_bg.gif)}
.logo{background-color:#9B0000;padding-top:3px;padding-left:8px;border-bottom:1px solid #131313}
.welcome{color:#D2D2D2;font-size:11px;text-align:right;text-transform:uppercase;padding-right:8px}
a:link,a:visited{color:#B90000;text-decoration:none}
#bodyarea,.okvir{background-color:White}
.border{background-color:#898989;border-bottom:1px solid #3F3F3F;padding:2px;padding-left:10px;color:White;font-size:11px}
.search{background-color:#A5A5A5;border:1px inset #898989;color:White}
.foot{background-color:#860000;border-bottom:1px solid #0F0F0F;color:White;font-size:10px;padding-left:2px;padding-left:10px;padding-right:10px}
#adv,.foot a,.foot a:visited{color:White}


Edit: Put code inside code tags, it's better than using the quote ones. ;) -Anguz

Anguz

If you mean the nesting alternating colors, then the problem would be that you're not writting the nested spoiler selectors as you did with the quotes.
Cristián Lávaque http://cristianlavaque.com

ArkServer

Quote from: Anguz on July 27, 2005, 04:32:21 PM
If you mean the nesting alternating colors, then the problem would be that you're not writting the nested spoiler selectors as you did with the quotes.

uhm, i have trouble adding spoiler tag in the stylesheet.

Advertisement: