vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Spoiler For Hide Links From Guests MOD or BBCode (https://vborg.vbsupport.ru/showthread.php?t=307834)

ramesh_umk3 02-01-2014 11:00 PM

Spoiler For Hide Links From Guests MOD or BBCode
 
1 Attachment(s)
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


All times are GMT. The time now is 07:52 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.05841 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete