Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
Spoiler For Hide Links From Guests MOD or BBCode Details »»
Spoiler For Hide Links From Guests MOD or BBCode
Version: 1.00, by ramesh_umk3 ramesh_umk3 is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.x.x Rating:
Released: 02-01-2014 Last Update: Never Installs: 5
Re-useable Code Translations  
No support by the author.

Hey friends today i share my spoiler which is pretty impressive way to show bulk links in that

Make sure you have installed below mod
Code:
https://vborg.vbsupport.ru/showthread.php?t=123415&page=25
if above plugin is not working then try corrected plugin from Ozzy for vBulletin 4.2.2 is listed below
Code:
https://vborg.vbsupport.ru/showpost.php?p=2468629&postcount=102
After installing follow below procedure:
AdminCP --> Settings --> Options --> Hide Links From Guests

Change text option
Replace with below code

Code:
<span style="background: #a3c8e0; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; -khtml-border-radius: 10px; behavior: url(http://www.mobilescommunity.com/images/border-radius.htc); display: inline-block">
	<div style="float: right; width: 45px; height: 34px; background: url(http://www.mobilescommunity.com/images/dlink.gif) top right; "></div>
	<div style="width: 120px; height: 34px; background: url(http://www.mobilescommunity.com/images/dlink.gif);"></div>
	<div style="border: 1px solid #F0F; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; -khtml-border-radius: 4px; margin: 5px 15px 0px 15px; padding: 0px; border: 1px solid #5a7f97; background: #fff;">
		<div style="font: 12px Verdana, Geneva, sans-serif; color: #666; padding: 0px;">
			    <div align="center" class="pre-spoiler">
			    <input value="Show" style="min-width:150px;font-size:14px;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 = 'Show';}" type="button">
			    </div>
			    <div>
			        <div class="spoiler" style="display: none;">
						<div style="background-color:transparent; margin: 0px; padding: 4px;">
						<p style="margin: 5px; font-family: Arial; font-size: 12px; color: #707070; text-align: center;"><br>
<font color="red"><b>[Only registered and activated users can see links. <a href="register.php" onclick="alert('You made the correct decision :)')"><input value="Click Here To Register..." onclick="javascript:window.location.href='register.php'" type="button"></a>]</b></font></p><p></p></div>
			        </div>
			    </div>
		</div>
	</div>
</span>
You can also Use it for BBCode:

Title: Spoiler

BB Code Tag Name: Spoiler

Replacement:
Code:
<span style="background: #a3c8e0; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; -khtml-border-radius: 10px; behavior: url(http://www.mobilescommunity.com/images/border-radius.htc); display: inline-block">
	<div style="float: right; width: 45px; height: 34px; background: url(http://www.mobilescommunity.com/images/dlink.gif) top right; "></div>
	<div style="width: 120px; height: 34px; background: url(http://www.mobilescommunity.com/images/dlink.gif);"></div>
	<div style="border: 1px solid #F0F; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; -khtml-border-radius: 4px; margin: 5px 15px 0px 15px; padding: 0px; border: 1px solid #5a7f97; background: #fff;">
		<div style="font: 12px Verdana, Geneva, sans-serif; color: #666; padding: 0px;">
			    <div align="center" class="pre-spoiler">
			    <input value="Show" style="min-width:150px;font-size:14px;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 = 'Show';}" type="button">
			    </div>
			    <div>
			        <div class="spoiler" style="display: none;">
						<div style="background-color:transparent; margin: 0px; padding: 4px;">
						<p style="margin: 5px; font-family: Arial; font-size: 12px; color: #707070; text-align: center;"><br>
{param}
						</p><p></p></div>
			        </div>
			    </div>
		</div>
	</div>
</span>
Example: [Spoiler]Some Text[/Spoiler]

Description: Allows you to hide text or images.

Image Path: Choose an image and upload it to your server.

Use {option}: No

Remove Tag If Empty: Yes

Disable BB Code Within This BB Code: No

Disable Smilies Within This BB Code: No

Disable Word Wrapping Within This BB Code: No

Disable Automatic Link Parsing Within This BB Code: No

===================

You can check your code here
Spoiler design Inspired from: ipmart forum

Screenshots

File Type: png spoiler.png (17.4 KB, 0 views)

Show Your Support

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

Thread Tools

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 11:00 AM.


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.05325 seconds
  • Memory Usage 2,213KB
  • Queries Executed 15 (?)
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
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete