Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Spoiler Tag Links

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
leatherlips Posted - 14 June 2008 : 07:30:56
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():

fString = doCode(fString, "[spoiler ]", "[/spoiler ]", "<font color=""" & CColor & """>", "</font id=""" & CColor & """>", "<a:link=""" & CColor & """>")

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.
15   L A T E S T    R E P L I E S    (Newest First)
Giumer Posted - 05 February 2012 : 05:53:36
ok http://www.giumer.it/forum/topic.asp?rand=6760591&TOPIC_ID=292

spoiler visible only member code is this


[code]function extratags(fString)
fString = doCode(fString, "[quote]", "[/quote]", "<div class=""quoteboxhead"">" & fLang("strLangI_F_Common00780") & "</div><div class=""quotebox"">", "</div>")
fString = doCode(fString, "[spoiler2]", "[/spoiler2]", "<font color=""" & CColor & """>", "</font id=""" & CColor & """>")
if mLev >= 1 then
fString = doCode(fString, "[spoiler]", "[/spoiler]", "<div style=""margin:1em auto; width: 100%;"">" & vbNewline & " <div><b> Spoiler: </b><input type=""button"" value=""Show"" style=""width:45px;font-size:10px;margin:0px;padding:0px;"" 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>" & vbNewline & " <div style=""margin: 0px; padding: 0px; border: 1px solid; border-color: #333399;"">" & vbNewline & " <div style=""display: none;"">" & vbNewline, " </div>" & vbNewline & " </div>" & vbNewline & "</div>" & vbNewline)
else
fString = doCode(fString, "[spoiler]", "[/spoiler]", "<div style=""margin:1em auto; width: 100%;"">" & vbNewline & " <div><b> Spoiler: </b><a href=""policy.asp""><B>" & fLang("strLangRegister00560") & "</B></div>" & vbNewline & " <div style=""margin: 0px; padding: 0px; border: 1px solid; border-color: #333399;"">" & vbNewline & " <div style=""display: none;"">" & vbNewline, " </div>" & vbNewline & " </div>" & vbNewline & "</div>" & vbNewline)
end if
extratags = fString
end function[/code]
Giumer Posted - 01 February 2012 : 07:09:51
wow mod finish visible oly membner thx ian
Giumer Posted - 27 January 2012 : 22:21:00
http://www.giumer.it/public/filesText/inc_func_common.txt
Carefree Posted - 27 January 2012 : 15:10:48
Giumer, post a link to your "inc_func_common.asp" in .txt format and we'll edit it for you.
Giumer Posted - 27 January 2012 : 12:22:19
ok I understand that you must enter the code
here:
fString = doCode(fString, "", "", "<div style=""margin:1em auto; width: 100%;"">" & vbNewline & " <div><b> Spoiler: </b><input type=""button"" value=""Show"" style=""width:45px;font-size:10px;margin:0px;padding:0px;"" 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>" & vbNewline & " <div style=""margin: 0px; padding: 0px; border: 1px solid; border-color: #333399;"">" & vbNewline & " <div style=""display: none;"">" & vbNewline, "  </div>" & vbNewline & " </div>" & vbNewline & "</div>" & vbNewline)


and do I integrate this code
<a href=""register.asp"">You must login or register to see this content.</a>


I tried in every way by entering what you suggested, but if dislocates comes out the words, but this code and java?
Giumer Posted - 27 January 2012 : 09:31:13
I figured if I insert it so? :

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, "
quote:
", "
", "<div class=""quoteboxhead"">" & fLang("strLangI_F_Common00780") & "</div><div class=""quotebox"">", "</div>") fString = doCode(fString, "[spoiler2]", "[/spoiler2]", "<font color=""" & CColor & """>", "</font id=""" & CColor & """>") fString = doCode(fString, "", "", "<div style=""margin:1em auto; width: 100%;"">" & vbNewline & " <div><b> Spoiler: </b><input type=""button"" value=""Show"" style=""width:45px;font-size:10px;margin:0px;padding:0px;"" 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>" & vbNewline & " <div style=""margin: 0px; padding: 0px; border: 1px solid; border-color: #333399;"">" & vbNewline & " <div style=""display: none;"">" & vbNewline, " </div>" & vbNewline & " </div>" & vbNewline & "</div>" & vbNewline) extratags = fString end function
Carefree Posted - 27 January 2012 : 09:07:47
quote:
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):


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
leatherlips Posted - 27 January 2012 : 06:04:40
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.
Giumer Posted - 26 January 2012 : 22:41:03
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 Posted - 26 January 2012 : 15:43:03
The code I posted above should hide the spoiler from nonmembers and show them a link to register. Did it not work?
Giumer Posted - 26 January 2012 : 09:49:29
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!
Carefree Posted - 26 January 2012 : 07:34:58
quote:
Originally posted by leatherlips
(most likely by Carefree)



LOL - yeah, looks like something I wrote (dual letter variables).
leatherlips Posted - 26 January 2012 : 06:09:09
Try this code:

In inc_func_common.asp look for:

extratags = fString
end function


Above that add this:

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.
Giumer Posted - 26 January 2012 : 05:52:27
quote:
Originally posted by Giumer

Can anyone help me please? thanks



I do not finish, I wanted to know if the file inc code.asp and just so the code:

spoiler function () {
var text = getText ();
if (helpstat) {
alert ("<% = flange (" strLangInc_Code00250 ") %>");
} Else if (basic) {
AddTxt = "[spoiler]" + text + "[/ spoiler]";
AddText (AddTxt);
Else {}
if (text) {
txt = prompt ("<% = flange (" strLangInc_Code00260 ")%>", text);
Else {}
txt = prompt ("<% = flange (" strLangInc_Code00260 ") %>"," Text");
}
if (txt! = null) {
AddTxt = "[spoiler]" + txt + "[/ spoiler]";
AddText (AddTxt);
}
}
}


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
Carefree Posted - 26 January 2012 : 05:26:14
Thought you had it working, Giumer.

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000 Version 3.4.07