Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/67259?pagenum=1
04 November 2025, 20:48
Topic
leatherlips
Spoiler Tag Links
14 June 2008, 07:30
If you place a link inside of a spoiler tag, it is not hidden. I am trying to figure out how to make links hidden like the regular text is. I've tried a couple of things so far but they are not working.
Here is one thing I've tried (the part in red is what I've added():
It doesn't work. Can a link be hidded in a spoiler tag? If so, how can it be done?
Edit: I had to put a space after the two spoiler references above to keep them visible. My code does not have those spaces in them.
Replies ...
leatherlips
14 June 2008, 07:58
I've found a variation on Snitz that has a cool spoiler tag feature that hides everything and also includes a Show/Hide button.
The link for it is here:
I've renamed the original spoiler tag to spoiler2 and called the new one spoiler. Now I need to find a good button to place it among the other format code buttons.
Log in is demo/demo
leatherlips
14 June 2008, 08:33
Does anyone already have a spoiler button they have made?
Carefree
14 June 2008, 08:49
The css coding isn't my forte. Has anyone converted the css coding from Leather's link to Response Write standard?
leatherlips
14 June 2008, 09:40
I've made myself a button now: Now I'm trying to add it along with the other format buttons. I've got it in place but I can't get it to work. I think I am doing the spots in inc_func_common.asp wrong.
Here is what I have:
and then ask that the function and possible spoilers only registered members can see it? and non-registered bait must register to see the writing!
ESS : Response.Write "<a href=""policy.asp""><B>Not registered? Then you're not seeing all there is to see. Register now by clicking HERE!</A></B></DIV></DIV><BR>" & vbNewLine
inc_func_common.asp the code in the file so it included:
and then if it was possible that this' covering the spoiler and you can make it visible only forum members
ESS: yuo not login and clik show spoiler and then if it was possible that this' covering the spoiler and you can make it visible only forum members
and do not see what they conceal and maybe get out the message that you need to register to see the link
leatherlips
26 January 2012, 06:09
Try this code:
In inc_func_common.asp look for:
extratags = fString end function Above that add this:
Code:
if mLev=0 and inStr(fString,"[spoiler") then for i = 1 to len(fString) if mid(fString,i,6)="[spoilerCODE]" then ij=i if mid(fString,i,7)="[/spoilerCODE]" then ik=i strTextString=left(fString,ij-1)+"<a href=""register.asp"">You must login or register to see this content.</a>"+mid(fString,ik+7) end if next strTempString=strTextString end if
A few years ago I was being helped with a similar situation and I was given this code (most likely by Carefree). I've changed it to fit your spoiler code. Hopefully it will work.
Carefree
26 January 2012, 07:34
Originally posted by leatherlips
(most likely by Carefree)
LOL - yeah, looks like something I wrote (dual letter variables).
Giumer
26 January 2012, 09:49
might not understand me for my English! I apologize, and the mod works spoilers! and that I wanted to change that so that users do not see are resting and when clicked show the message comes out that you must register!
leatherlips
26 January 2012, 15:43
The code I posted above should hide the spoiler from nonmembers and show them a link to register. Did it not work?
Giumer
26 January 2012, 22:41
exactly does not work! I need the code to hide the spoiler from non-registered and will read them appear you need to register
leatherlips
27 January 2012, 06:04
I had the wrong tag in the code above. Try it again. You will need to change the two sections that say spoilerCODE to spoiler. I had to do that or else it was being hidden.
Carefree
27 January 2012, 09:07
Originally posted by leatherlips I had the wrong tag in the code above. Try it again. You will need to change the two sections that say spoilerCODE to spoiler. I had to do that or else it was being hidden.
Like this, Giumer (delete the bits in red):
Code:
if mLev=0 and inStr(fString,"[spoiler") then for i = 1 to len(fString) if mid(fString,i,6)="[spoilerCODE]" then ij=i if mid(fString,i,7)="[/spoilerCODE]" then ik=i strTextString=left(fString,ij-1)+"<a href=""register.asp"">You must login or register to see this content.</a>"+mid(fString,ik+7) end if next strTempString=strTextString end if
Giumer
27 January 2012, 09:31
I figured if I insert it so? :
Code:
if mLev=0 and inStr(fString,"[spoiler") then for i = 1 to len(fString) if mid(fString,i,6)="[spoilerCODE]" then ij=i if mid(fString,i,7)="[/spoilerCODE]" then ik=i strTextString=left(fString,ij-1)+"<a href=""register.asp"">You must login or register to see this content.</a>"+mid(fString,ik+7) end if next strTempString=strTextString end if
function extratags(fString) fString = doCode(fString, "