vbGore Free Online RPG Engine

Revolutionizing Visual Basic ORPG Development
It is currently Wed Jun 19, 2013 8:52 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Expand/Spoiler Tag for vbgore forum
PostPosted: Tue Jan 20, 2009 12:05 pm 
Slave to the BB

Joined: Sat Feb 24, 2007 11:17 pm
Posts: 2704
Location: The Aussie Land
This is mainly for Nex666 :D

When i first started the animephantom forum i made an "expand" bbcode tag, and found it really useful for adding detailed descriptions, or adding images without making the post look super long. (but also good for hiding spoilers). Its also good surprising people with goatse.cx images... i mean.

After a while i got frustrated because people were making super long project announcement pages that could be made much neater with this tag.

anyway here is my crappy little contribution to the forum.

Example:
[Expand=Expand to show links]here are the links... http://wat?.com[/spoiler]

Attachment:
fsnvn.jpg


BBcode usage:
Code:
[Expand={SIMPLETEXT}]{TEXT}[/Expand]


HTML Replacement
Code:
<div style="margin:20px; margin-top:5px"><div class="quotetitle"><b>{SIMPLETEXT}:</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><div class="quotecontent"><div style="display: none;">{TEXT}</div></div></div>


Help line text:
Code:
Hide a section of text and give it a title.


Display on posting page: Tick!


Top
 Profile  
 
 Post subject: Re: Expand/Spoiler Tag for vbgore forum
PostPosted: Tue Jan 20, 2009 1:32 pm 
Bit Baby

Joined: Tue Sep 02, 2008 12:33 pm
Posts: 382
Location: United Kingdom
Nice contrib' bake :)


Top
 Profile  
 
 Post subject: Re: Expand/Spoiler Tag for vbgore forum
PostPosted: Tue Jan 20, 2009 4:33 pm 
Hungry Zombie

Joined: Sat Jun 05, 1976 10:06 pm
Posts: 3179
Location: Auckland, New Zealand
O rly:
Ya rly.


Top
 Profile  
 
 Post subject: Re: Expand/Spoiler Tag for vbgore forum
PostPosted: Thu Jan 22, 2009 12:54 pm 
Slave to the BB

Joined: Tue Jul 31, 2007 8:45 am
Posts: 3273
Location: United Kingdom
nex666 wrote:
O rly:
Ya rly.


Epic! :D

Daww.:
Pity you can't stack em though :(


Top
 Profile  
 
 Post subject: Re: Expand/Spoiler Tag for vbgore forum
PostPosted: Thu Jan 22, 2009 4:37 pm 
Slave to the BB

Joined: Sat May 12, 2007 6:20 am
Posts: 3842
Location: Behind you!
bug:
Quote:
[Expand=Expand to show links]here are the links... http://wat?.com[/spoiler]

hmm something is wrong with that line but i cant put my finger on it


Top
 Profile  
 
 Post subject: Re: Expand/Spoiler Tag for vbgore forum
PostPosted: Thu Jan 22, 2009 7:38 pm 
Hungry Zombie

Joined: Sat Jun 05, 1976 10:06 pm
Posts: 3179
Location: Auckland, New Zealand
You can't put them inside each other, not really a bug...


Top
 Profile  
 
 Post subject: Re: Expand/Spoiler Tag for vbgore forum
PostPosted: Fri Jan 23, 2009 1:53 am 
baka

Joined: Tue Jul 08, 2008 12:17 am
Posts: 2304
Location: England, UK
Isn't there some way to do it so that if there's an expand/show tag inside another one it just says [Hidden Text] or something?


Top
 Profile  
 
 Post subject: Re: Expand/Spoiler Tag for vbgore forum
PostPosted: Fri Jan 23, 2009 8:11 am 
Slave to the BB

Joined: Sat May 12, 2007 6:20 am
Posts: 3842
Location: Behind you!
Thats not what i was talking about read the line...


Top
 Profile  
 
 Post subject: Re: Expand/Spoiler Tag for vbgore forum
PostPosted: Fri Jan 23, 2009 8:56 am 
baka

Joined: Tue Jul 08, 2008 12:17 am
Posts: 2304
Location: England, UK
It's not a bug it's a typo...


Top
 Profile  
 
 Post subject: Re: Expand/Spoiler Tag for vbgore forum
PostPosted: Fri Jan 23, 2009 1:19 pm 
Slave to the BB

Joined: Tue Jul 31, 2007 8:45 am
Posts: 3273
Location: United Kingdom
Expand open tag and Spoiler close tag. Just a typo >.>


Top
 Profile  
 
 Post subject: Re: Expand/Spoiler Tag for vbgore forum
PostPosted: Fri Jan 23, 2009 5:11 pm 
Slave to the BB

Joined: Sat May 12, 2007 6:20 am
Posts: 3842
Location: Behind you!
Typo bug big deal... a bug is a part of code that doesn't work right because you typed something wrong correct? Well that looks like bbcode to me.


Top
 Profile  
 
 Post subject: Re: Expand/Spoiler Tag for vbgore forum
PostPosted: Fri Jan 23, 2009 11:39 pm 
Slave to the BB

Joined: Sat Feb 24, 2007 11:17 pm
Posts: 2704
Location: The Aussie Land
the example had a typo (which i did on purpose) but the code i gave didn't, so that typo automatically won't happen if you press the button, get off my nuts notexistant :roll:


Top
 Profile  
 
 Post subject: Re: Expand/Spoiler Tag for vbgore forum
PostPosted: Mon Jan 26, 2009 11:51 am 
Hungry Zombie

Joined: Sat Jun 05, 1976 10:06 pm
Posts: 3179
Location: Auckland, New Zealand
Don't worry, he's just starting to think he knows everything :P


Top
 Profile  
 
 Post subject: Re: Expand/Spoiler Tag for vbgore forum
PostPosted: Mon Jan 26, 2009 2:49 pm 
Slave to the BB

Joined: Sat May 12, 2007 6:20 am
Posts: 3842
Location: Behind you!
>.>


Top
 Profile  
 
 Post subject: Re: Expand/Spoiler Tag for vbgore forum
PostPosted: Tue Jun 16, 2009 10:31 am 
Slave to the BB

Joined: Sat May 12, 2007 6:20 am
Posts: 3842
Location: Behind you!
Bake I used this I hope you don't mind. :P


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC - 8 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group