Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
October 24, 200618 yr See this site.http://www.klanrur.co.yu/forum/index.php?showtopic=38998The spoiler thing is good.
October 24, 200618 yr I want the code for that....Cool Surfer. Any idea where I can get it from?I think you can try to pm the admin of that site.
October 24, 200618 yr I already have that exact spoiler, it was from Invisionize. The problem is for 2.2 it won't work, I am sure. Thus I used strange_will's for that.
October 24, 200618 yr I have to say I'm very much disappointed in IPS with the spoiler tag. With all the new stuff you have added, ajax and other big changes that have been made, the best spoiler tag you came up with was blacking it out?You're very disappointed with IPS because of one custom bbcode? Seriously? :unsure:
October 24, 200618 yr I'm still annoyed with the fact that we can't use the spoiler tag for images. How is this possible ... >_<I almost got the code done for a cool one, but I can't get control of the 2nd div! Damn Javascript. You'd think "parent.parent.getElementsByTagName('div')[1]" would go: div(parent)->main div(parent)->2nd div(for spoiler info)Grr such a pain.^I'm being a dope, I should KNOW that method wouldn't work...Fixed: <div> <div style="background: #B7E5CE;border: 1px dotted #000; border-bottom: 0; border-left: 4px solid #429E6F; color: #000; font-weight: bold; font-size: 10px; margin: 8px auto 0 auto; padding: 3px;"> Spoiler! <a href="java script:void(0);" onclick="java script:if(parentNode.parentNode.getElementsByTagName('div')[1].style.display=='block'){parentNode.parentNode.getElementsByTagName('div')[1].style.display='none';this.innerHTML='--Click here to view--';}else {parentNode.parentNode.getElementsByTagName('div')[1].style.display='block';this.innerHTML='--Click here to hide--';}">--Click here to view--</a> </div> <div style="color: #000000; background: #FAFCFE; border: 1px dotted #000; border-left: 4px solid #429E6F; border-top: 0; padding: 4px; margin: 0 auto 8px auto;display:none;">{content}</div> </div> Ah geez, it's automatically putting a space between java and script, I think I found a bug in IPB (for security?) Remove it manually! There are 2 instances of "java script" make sure you get them both to "javascript"!:DAdd that to the custom BBCode for spoiler :D a little credit would be nice in the description too :thumbsup: Point out any mistakes I made, I just finished it. (is <a href=""...> propper? <a href="#"...> makes it jump to the top. :()View it Here :DSo far IE6 and Firefox 1.5.0.7 work fine.
October 24, 200618 yr See this site.http://www.klanrur.co.yu/forum/index.php?showtopic=38998The spoiler thing is good.100x better than IPS spoiler. :whistle:
October 24, 200618 yr I also use this spoiler tag and it's amazing ! It's a pitty the IPS spoiler is so disappointing :(
October 24, 200618 yr strange_will's is just as good EXCEPT the nesting doesn't work though. That is the only difference between it and the other from that site (which I use on my main site).
October 25, 200618 yr You're very disappointed with IPS because of one custom bbcode? Seriously? :unsure:Your missing the point. IPS added it because either it was request lot by members or they felt they need to make a spoiler bbcode. Whatever the reason is, they decided to add one. Over making something that would be very cool and useful to IPB users, and adding it next to the image bbcode IPS add it the lazy way. I could have done that, and it doesn't even work right. if you nest them it breaks down, you can only hide text not images. But its ok because its a custom bbcode and can be removed if we don't like it, so they don't need to bother making it good. :thumbsup:
November 2, 200618 yr I almost got the code done for a cool one, but I can't get control of the 2nd div! Damn Javascript. You'd think "parent.parent.getElementsByTagName('div')[1]" would go: div(parent)->main div(parent)->2nd div(for spoiler info)Grr such a pain.^I'm being a dope, I should KNOW that method wouldn't work...Fixed: <div> <div style="background: #B7E5CE;border: 1px dotted #000; border-bottom: 0; border-left: 4px solid #429E6F; color: #000; font-weight: bold; font-size: 10px; margin: 8px auto 0 auto; padding: 3px;"> Spoiler! <a href="java script:void(0);" onclick="java script:if(parentNode.parentNode.getElementsByTagName('div')[1].style.display=='block'){parentNode.parentNode.getElementsByTagName('div')[1].style.display='none';this.innerHTML='--Click here to view--';}else {parentNode.parentNode.getElementsByTagName('div')[1].style.display='block';this.innerHTML='--Click here to hide--';}">--Click here to view--</a> </div> <div style="color: #000000; background: #FAFCFE; border: 1px dotted #000; border-left: 4px solid #429E6F; border-top: 0; padding: 4px; margin: 0 auto 8px auto;display:none;">{content}</div> </div> Ah geez, it's automatically putting a space between java and script, I think I found a bug in IPB (for security?) Remove it manually! There are 2 instances of "java script" make sure you get them both to "javascript"! :D Add that to the custom BBCode for spoiler :D a little credit would be nice in the description too :thumbsup: Point out any mistakes I made, I just finished it. (is <a href=""...> propper? <a href="#"...> makes it jump to the top. :( )View it Here :D So far IE6 and Firefox 1.5.0.7 work fine.Wish they would put that in the final it works just like I want it to.
November 3, 200618 yr Wish they would put that in the final it works just like I want it to.hehe I'd be quite honored if they would, but I doubt it. :P
November 3, 200618 yr strange_will's is just as good EXCEPT the nesting doesn't work though. That is the only difference between it and the other from that site (which I use on my main site).That was a bug in IPB with nesting user made BBCode, I submitted a bug report, and they said it's fixed in 2.2So it should work fine in 2.2 :D
November 3, 200618 yr Hmm strange, the code itself has no reason to not nest fine, it's the BBCode parser, so I'd re-submit a bug report.
November 3, 200618 yr hehe I'd be quite honored if they would, but I doubt it. :PNow, that looks more like IPB and more professional then the current spoiler tag.
November 3, 200618 yr I believe Strange_Will's idea should be implemented as it's a lot better and more professional than IPB's current one, and just has the "general IPS touch of quality" to it. :)
November 3, 200618 yr All you guys have to do is add it, like I did. I agree it would be better as default, but just do it yourself and then you will be more unique since most sites won;'t have strange_will's good one. :)The one from Invisionize for 2.1 is SOMEWHAT better than any of these, because it nests. However, it involves several template changes and file edits, rather than being a custom bbcode.strange_will, I just tried again in RC3 and indeed it still does not nest, but my 2.1.7 board still has them nesting with that mod there.I am personally using strange_will's options spoiler tag because my site is a video game site and I figure it is good for people to see the TYPE of spoiler it is (thus the option).I wish it could somehow be set to have examples of options and they can select one, but I dont see how it would work in the editor, how it would show options for them to pick...
November 3, 200618 yr http://forums.wolfram-studios.com/blog/str...ndex.php?cat=12While we're talking about code, I organized the code better for my spoiler tag:http://forums.wolfram-studios.com/blog/str...hp?showentry=48And put up some other useful (yet they layout isn't very creative ;)) code for a youtube and google video code (though my thanks goes out to you guys here, showing an effective way to create secure youtube videos)I also uploaded the code as txt attachments to prevent the "java script:" from turning into "java script:" bug. :P
November 3, 200618 yr ... stop ragging on IPS for making the basic one look 'unprofessional' in your opionion. Why are people's opinions you don't agree with 'ragging'?... and wanted to remind everyone that the goal for this forum was to get feedback on 2.2. ....... What we're really looking for in this forum is feedback on what you think about 2.2, what can be done to improve it ...Feedback is feedback, good or bad, if IPS didn't want to hear it, this section wouldn't be here.Ok, move along now folks, nothing to see here. :whistle:
November 3, 200618 yr I do happen to agree and I will say I did not say the spoiler looked unprofessional by any means I just wanted a hide bbcode which was it seems what others want as well. If it is added that would be great if not it can still be added. ^_^
November 3, 200618 yr Man, I don't understand the negativity towards the bbcode IPB has included. I'm sure it will suffice for the vast majority of boards out there (like my own). If you don't like it, and want to create your own, that's what the custom bbcode system is for, have at it. But stop ragging on IPS for making the basic one look 'unprofessional' in your opionion.Who cares if it's professional or not, it's at least easily editable, and people have options to download better ones without modifying any code. :P Good enough for me. Actually I used the simple highlite for a long time, then I made the box you see now appear on rollover, but that didn't hide images (text same color as background till rollover) then someone suggested this, so I modified the code as such. So I had a time with all kinds of spoiler code. :PnestedspoilerSee even IPB's nested spoiler doesn't work, it's the BBCode parser for custom code.
November 3, 200618 yr Who cares if it's professional or not, it's at least easily editable, and people have options to download better ones without modifying any code. :P Good enough for me. Actually I used the simple highlite for a long time, then I made the box you see now appear on rollover, but that didn't hide images (text same color as background till rollover) then someone suggested this, so I modified the code as such. So I had a time with all kinds of spoiler code. :PThats what I was trying to say with my above post.
November 3, 200618 yr Hi,Strange Will's version is miles better than the current one +1 from me...Currently, unless you know what it is, users will just think there is a big thick black line in the post....Rob D.
Archived
This topic is now archived and is closed to further replies.