Advanced Search      

Go Back   Final Fantasy Net - Forum > Neo Final Fantasy Net > Forum Issues > Site Suggestions
Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-02-2005, 05:01 AM
Yunas Flame's Avatar
Yunas Flame Offline:
Newbie Poster
 
Join Date: Aug 2005
Location: New Jersey
Posts: 36
Yunas Flame is on a distinguished road
Send a message via AIM to Yunas Flame Send a message via MSN to Yunas Flame
Default Spoiler BBCODE

This, being a gaming forum, obviously will be full of spoilers so here is a code that could help.
Go to AdminCP > Custom BB Codes > Add New BB Code

Title: Spoiler

Tag: spoiler

Replacement:
HTML Code:
<div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px"> <i>{option}</i>: <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="alt2" style="margin: 0px; padding: 6px; border: 1px inset;"> <div style="display: none;"> {param} </div> </div> </div>

Example: [spoiler=Click Me]This is A Spoiler[/spoiler]
Description: This BB Code allows you to hide spoilers from people, it also warns them about it.

Use {option}? No

--------------------------------

For a preview Click Here
Reply With Quote
  #2  
Old 11-06-2005, 08:34 PM
Kain Highwind's Avatar
Kain Highwind Offline:
Expert Poster
 
Join Date: Jun 2005
Location: United Kingdom
Posts: 1,695
Kain Highwind is just really niceKain Highwind is just really niceKain Highwind is just really niceKain Highwind is just really niceKain Highwind is just really nice
Send a message via ICQ to Kain Highwind Send a message via AIM to Kain Highwind Send a message via MSN to Kain Highwind Send a message via Yahoo to Kain Highwind
Default

Yeah, as soon as we can impliment this, we should.
__________________
I am Kain Highwind, the moderator of pure evil...

...live erup fo rotaredom eht dniwhgiH niaK ma I
Reply With Quote
  #3  
Old 11-24-2007, 06:55 PM
Weed Offline:
Newbie Poster
 
Join Date: Nov 2007
Posts: 9
Weed is on a distinguished road
Default

How to add custom image for the "Show" "Hide" button?

And here is a fix code with param.

Code:
<div style="margin: 5px;"> <div class="smallfont" style="margin-bottom: 2px;"> <b>Content Hidden!</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button"> </div> <div class="alt2" style="border: 1px inset; padding: 6px;"> <div class="spoiler" style="display: none;">{param}</div> </div> </div>
Reply With Quote
  #4  
Old 11-24-2007, 06:58 PM
DragoonKain's Avatar
DragoonKain Offline:
Administrator
 
Join Date: Jun 2006
Location: United States
Posts: 650
DragoonKain is on a distinguished road
Send a message via AIM to DragoonKain Send a message via MSN to DragoonKain Send a message via Yahoo to DragoonKain
Default

I implemented something like this in the KH3 forums.

Test:

Content Hidden!


Good work, Weed. I like yours better than mine.

Usage: [.SPOILER]<text>[/.SPOILER] sans periods.
__________________

Reply With Quote
  #5  
Old 11-24-2007, 07:01 PM
Weed Offline:
Newbie Poster
 
Join Date: Nov 2007
Posts: 9
Weed is on a distinguished road
Default

Quote:
Originally Posted by DragoonKain
I implemented something like this in the KH3 forums.

Test:

Content Hidden!


Good work, Weed. I like yours better than mine.

Usage: [.SPOILER]<text>[/.SPOILER] sans periods.
Thanks, but im still trying to figure out how to add a custom image for the button.

Last edited by Weed : 11-24-2007 at 08:38 PM.
Reply With Quote
  #6  
Old 11-24-2007, 07:03 PM
DragoonKain's Avatar
DragoonKain Offline:
Administrator
 
Join Date: Jun 2006
Location: United States
Posts: 650
DragoonKain is on a distinguished road
Send a message via AIM to DragoonKain Send a message via MSN to DragoonKain Send a message via Yahoo to DragoonKain
Default

http://www.ampsoft.net/webdesign-l/image-button.html
__________________

Reply With Quote
  #7  
Old 11-24-2007, 07:06 PM
Weed Offline:
Newbie Poster
 
Join Date: Nov 2007
Posts: 9
Weed is on a distinguished road
Default

Quote:
Originally Posted by DragoonKain

Ow but the code is in html, and the site u gave me is CSS?

Is there a way to modify the code

Content Hidden!

And add a custom image for it?
Reply With Quote
  #8  
Old 11-24-2007, 07:12 PM
DragoonKain's Avatar
DragoonKain Offline:
Administrator
 
Join Date: Jun 2006
Location: United States
Posts: 650
DragoonKain is on a distinguished road
Send a message via AIM to DragoonKain Send a message via MSN to DragoonKain Send a message via Yahoo to DragoonKain
Default

You would have to use <style type="text/css">.whatever</style> <input class="whatever"> etc etc. Or use <input style="style code here">
__________________

Reply With Quote
  #9  
Old 11-24-2007, 08:53 PM
Weed Offline:
Newbie Poster
 
Join Date: Nov 2007
Posts: 9
Weed is on a distinguished road
Default

i ain't used to CSS, so i dont know any of these.
So if u can help me on it (^ ^,)
Reply With Quote
  #10  
Old 11-24-2007, 09:09 PM
DragoonKain's Avatar
DragoonKain Offline:
Administrator
 
Join Date: Jun 2006
Location: United States
Posts: 650
DragoonKain is on a distinguished road
Send a message via AIM to DragoonKain Send a message via MSN to DragoonKain Send a message via Yahoo to DragoonKain
Default

Well the image would have to be in the forums' image area anyway, which I can't upload to. If I get some time later, I'll craft up some code that should work and show it to you.

Content Hidden!
__________________


Last edited by DragoonKain : 11-24-2007 at 09:22 PM.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT. The time now is 04:11 PM.

vbulletin skin developed by: eXtremepixels

eXTReMe Tracker
Revolved.net | Game | Kingdom Hearts
Revolved.net Topsite

SEO by vBSEO 2.4.5