Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #11  
Old 10-14-2005, 06:10 PM
PamelaE PamelaE is offline
 
Join Date: Feb 2005
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have to say the hide/show button is much more sophisticated than the usual outdated highlighted text approach.

I think its great. Thanks for shareing this, I have just implemented it.

Thanks
Reply With Quote
  #12  
Old 01-08-2006, 05:18 PM
Alviker Alviker is offline
 
Join Date: Nov 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
Just view the source .........

Code:
<div style="margin:5px 20px 20px 20px">

<div class="smallfont" style="margin-bottom:2px"><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>

<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">

<div style="display: none;">

HIDDEN TEXT HERE

</div>

</div>

</div>
Don't run in my vB 3.5.1!!! Help please!!! How Can I add totally this BBCode??? Sorry for my bad english . Help please. Very thanks.

Atte. Alviker
Reply With Quote
  #13  
Old 01-20-2006, 05:31 PM
simalert simalert is offline
 
Join Date: Jan 2006
Location: UK
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alviker
Don't run in my vB 3.5.1!!! Help please!!! How Can I add totally this BBCode??? Sorry for my bad english . Help please. Very thanks.

Atte. Alviker
It works great for me, I have the following

TITLE : Hide

TAG : hide

REPLACEMENT :

<div style="margin:5px 20px 20px 20px">

<div class="smallfont" style="margin-bottom:2px"><b>{option}:</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('d iv')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('d iv')[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 : [hide=Spoiler]Simalert.com is the best[/hide]

Description : Allows you to hide text until someone presses the button.

Ideal for large code or spoilers.

USE OPTION : Yes



I added {option} in there so you can specify the title.

To use this you type [hide=TITLE HERE] TEXT HERE [/hide]

It works great on my 3.5.3 board (still getting ready to switch to it from PHPBB)
Reply With Quote
  #14  
Old 02-16-2006, 05:21 PM
Cutulus Cutulus is offline
 
Join Date: Feb 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right now your current code has it say --> {option}:
When they use the script tags. What if I wanted to do [script=$$] How would you change the code to show $$?
Reply With Quote
  #15  
Old 02-23-2006, 05:16 PM
yumyumcat's Avatar
yumyumcat yumyumcat is offline
 
Join Date: Jan 2006
Location: Sunny South Kitty Land
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What if you want to just use this in posts and not your signature?

How do you install it? Help! I really would love this for my Board
Thanks in advance.

I just installed this, made a button for my Board and thought I had it figured out, but it's not working ~

Someone out there that can advise?
Reply With Quote
  #16  
Old 02-24-2006, 03:26 PM
Cutulus Cutulus is offline
 
Join Date: Feb 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you use simalert's instructions it should work out just fine. Verify that you it installed as they posted first. If you do not want it used in the signatures you can just use a usergroup's Signature permissions to not allow it.

Just to make sure you know where to put it...
Admin panel
BBcode Manager
Click the Add new BB code
Reply With Quote
  #17  
Old 02-24-2006, 06:12 PM
yumyumcat's Avatar
yumyumcat yumyumcat is offline
 
Join Date: Jan 2006
Location: Sunny South Kitty Land
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did that hon ~ and it's working, but only if I modify it when I post ~ see it shows it's supposed to work in my admin panel, but when I go to use it on my Board it looks totally different!

Check this out: http://www.thecatarena.com/forum/sho...236#post168236
Now, this is how it looks when I press my spoiler button
I'm going to put spaces in the code here cause on my board I can't show the code to others without doing this *beats me*!

[ hide= "this is wrong" ] [ / hide ]

now all I have to do to correct it while posting, which is a pain in the arse is this:

[ hide= Spoiler ] this is correct [ / hide]

see? It's really strange! I didn't modify anything that Simalert posted

How do I get that to include SPOILER close it up and not use the quotation marks as well as that other tag closure on the comment?~

Oh, and it works in my admin panel, but not on the Board! Now that's Weird!
Reply With Quote
  #18  
Old 02-27-2006, 04:09 PM
Cutulus Cutulus is offline
 
Join Date: Feb 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try leaving out the =**** in the code and see if that works. I was having the same problem and we are looking for the same thing here.
What you currently get:
Spoiler: Show

What you want:
Look at my cat: Show

This is what I am looking for, and by the code you list that is what it looks like you want also.
Reply With Quote
  #19  
Old 02-27-2006, 07:14 PM
yumyumcat's Avatar
yumyumcat yumyumcat is offline
 
Join Date: Jan 2006
Location: Sunny South Kitty Land
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cutulus
Try leaving out the =**** in the code and see if that works. I was having the same problem and we are looking for the same thing here.
What you currently get:
Spoiler: Show

What you want:
Look at my cat: Show

This is what I am looking for, and by the code you list that is what it looks like you want also.
Thanks Cutulus and I'll let ya know how it goes!
Reply With Quote
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07561 seconds
  • Memory Usage 2,248KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete