Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Hide Inferno Shoutbox When Nobody Uses It. Details »»
Hide Inferno Shoutbox When Nobody Uses It.
Version: 1.00, by RazerZoneX RazerZoneX is offline
Developer Last Online: Feb 2009 Show Printable Version Email this Page

Category: Chat Modifications - Version: 3.7.x Rating:
Released: 10-02-2008 Last Update: Never Installs: 8
Template Edits
Re-useable Code Translations  
No support by the author.

This code will hide inferno shoutbox pro/basic when nobody is using the shoutbox. If you wanna use the ShoutBox, you have to click Show to see it and press Hide to hide it. The code would've never happen if nobody made the spoiler code.

Following People That Helped Me With This Code Are:
**Gadget** (My Bro)
**lilmetal**
**Duce** (My Bro Also The Best Designer In The World)
^^ They are not members on this site ^^

Without them I could've never done it. Please see the screenies to see how the code works
Screen:

Description For Picture 1: This is how it looks like when nobody interacts with the ShoutBox. Even if you log in it stays like that. If you wanna see the shoutbox and would like to talk in it. You Press the See Button. Look at Picture 1 & 2

1:


Description For Picture 2:Well, When I click on to See the ShoutBox. The ShoutBox Appears. And You chat on it. So this way it wont slow the server down .


2:


Tutorial On How To Do This: Well First Login To Admin CP by going to the Admin CP. Than from the Admin CP Go To Styles & Templates on the left.



When you Click on Styles & Templates, the button will scroll down and click on Style Manager. After you click on Style Manager Go to Our Style and Click On The Left Scroll Down and Click Edit Templates. After this will pop up:



When it does scroll all the way down to Forum Home Templates and on the right hand corner click Expand/Collapse. When you do that it will Expand and You will see FORUMHOME. Click on Edit, if edit isn't click able. Click Customize. When you do that this will come up:



After it does put this code under $navbar by removing the old
<!--{%SHOUTBOX%}--> code and replacing with that:

Code:
 <div>
<div class="pre-spoiler" align="center">
<span style="float:center; padding-top: 2px;">Shoutbox: </span> <input type="button" value="See" style="width:80px;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.value = 'See';}">
	</div>
	<div>
		<div class="spoiler" style="display: none;">

<!--{%SHOUTBOX%}-->

</div>
	</div>
</div><BR>
And press save your done.

NOTE: If you have the <!--{%SHOUTBOX%}--> located in other place remove it and replace it with:

Code:
 <div>
<div class="pre-spoiler" align="center">
<span style="float:center; padding-top: 2px;">Shoutbox: </span> <input type="button" value="See" style="width:80px;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.value = 'See';}">
	</div>
	<div>
		<div class="spoiler" style="display: none;">

<!--{%SHOUTBOX%}-->

</div>
	</div>
</div><BR>
Please click Mark As Installed If You Used This! Took me a long time to work on this.

Thanks

-RazerZoneX

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-02-2008, 11:56 PM
Gadget1 Gadget1 is offline
 
Join Date: Oct 2008
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for sharing it here, I hope the users find it as useful as I have!.. Nice to you can change the "see" & "hide" text to what ever you want & increase or decrease the button size... On one of my templates I use the code to also his my SOTW header display so this is really universal & helpful! THUMBS UP!
Reply With Quote
  #3  
Old 10-03-2008, 06:49 AM
saviola8x's Avatar
saviola8x saviola8x is offline
 
Join Date: May 2006
Location: Paris
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks su much !
ins
Reply With Quote
  #4  
Old 10-04-2008, 01:42 AM
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Jul 2005
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice idea mate. Great job to all
Reply With Quote
  #5  
Old 10-04-2008, 01:50 AM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whats wrong with just click the arrow in the right hand corner?
Its sad to say no one can get the pro inferno shoutbox anymore every since there site went down. Seems the mod will be unsupported.
Reply With Quote
  #6  
Old 10-04-2008, 02:03 AM
RazerZoneX RazerZoneX is offline
 
Join Date: Jun 2008
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Shazz View Post
Whats wrong with just click the arrow in the right hand corner?
Its sad to say no one can get the pro inferno shoutbox anymore every since there site went down. Seems the mod will be unsupported.
Well hardly nobody uses that.
Reply With Quote
  #7  
Old 10-18-2008, 08:06 AM
silver surfer's Avatar
silver surfer silver surfer is offline
 
Join Date: Aug 2007
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Work !

Just What I Was Looking For !

Reply With Quote
  #8  
Old 11-01-2008, 11:18 AM
killa seven killa seven is offline
 
Join Date: Aug 2007
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think if you had it so the shoutbox hid into the category strip, it would look much cleaner, as it it now it just has a button and says shoutbox, looks quite tacky on the forums, none the less, very nice lil tool, unfortunately had to take it off, as it looked unproffesional on the forum, until next time.
Reply With Quote
  #9  
Old 08-09-2011, 03:16 PM
Brexen Brexen is offline
 
Join Date: Jul 2011
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do you hide inferno from a certain group ?
Reply With Quote
Reply


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 06:30 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04698 seconds
  • Memory Usage 2,282KB
  • Queries Executed 22 (?)
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
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete