Author |
Topic |
leatherlips
Senior Member
USA
1838 Posts |
|
Carefree
Advanced Member
Philippines
4207 Posts |
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). |
|
|
Giumer
Junior Member
Italy
163 Posts |
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! |
======================= http://www.Giumer.it/forum
======================= |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
Giumer
Junior Member
Italy
163 Posts |
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 |
======================= http://www.Giumer.it/forum
======================= |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
Carefree
Advanced Member
Philippines
4207 Posts |
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):
|
Edited by - Carefree on 27 January 2012 09:09:42 |
|
|
Giumer
Junior Member
Italy
163 Posts |
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
|
======================= http://www.Giumer.it/forum
======================= |
Edited by - Giumer on 27 January 2012 09:32:46 |
|
|
Giumer
Junior Member
Italy
163 Posts |
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? |
======================= http://www.Giumer.it/forum
======================= |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
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
Junior Member
Italy
163 Posts |
|
Giumer
Junior Member
Italy
163 Posts |
Posted - 01 February 2012 : 07:09:51
|
wow mod finish visible oly membner thx ian |
======================= http://www.Giumer.it/forum
======================= |
|
|
Giumer
Junior Member
Italy
163 Posts |
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] |
======================= http://www.Giumer.it/forum
======================= |
|
|
Topic |
|