Back to vBulletin 3.8 Template Modifications

direct banned users to new window(DBU) v2.0
Mod Version: 2.0, by AcoDe

vB Version: 3.8.x Rating: (2 votes - 5.00 average) Installs: 7
Released: 21 Dec 2009 Last Update: 21 Dec 2009 Downloads: 17
Not Supported Template Edits Re-usable Code Translations External Content  

What is he doing?

This mini-mode allow you to direct banned users at you forum, into a specific URL.
for example:
you have a forum that in this forum the banned users can appeal on there ban reason.

What have changed?this is only one main change. from now the user can press on 'cancel' in the confirm box,
A new cookie will be saved on his computer. The script will check every time if the cookie exsists. if yes, the confirm box will not open again until the cookie is gone.

Demo

first time message


after pressing 'cancel' and cookie is created

Sorry about the heberw, it is froum my vBulletin Powered webforum.


Installation
  1. Go to your AdminCP
  2. Styles & Templates
  3. Style Manager
  4. Edit Template
  5. headinclude
Code

The Full code. you can Delete the "<!-- Optional -->" or "//optional" Lines

PHP Code:
#####################################
#        DBU Ver 2.0    Start            #
#        By Hagai(aka AcoDe)            #
#####################################
<if condition="$forumid != Change to your appealing forum"><!-- Optional -->
<if 
condition="$bbuserinfo[usergroupid] == Change to your banned user group (Deafult is 8)">
    <
script type="text/javascript" src="http://www.google.com/jsapi"></script>
    <
script>
        
google.load("jquery""1.3.2");
    </
script>
    <
script type="text/javascript" src="http://www.kaktos.co.il/cookie.js"></script><!-- Do not Delete! -->
    <
script type="text/javascript">
    
/*<![CDATA[*/
    
if ( $.cookie("dbu") == null) {
        var 
appeal confirm("Do you want to appeal about your ban reason?");
        if (
appeal)
        {
            
open("Change to your appealing page");
        }
        else
        {
            $.
cookie("dbu"1, { expires360path'/'domain''securefalse });
            
alert("You won't see this message again."); //Optional
        
}
    }
    
/*]]>*/
    
</script>
</if>
</if><!-- If 
you deleted the first line delete this too -->
#####################################
#        DBU Ver 2.0 End                #
#        By Hagai(aka AcoDe)            #
##################################### 
</b>
Code with no optional lines
PHP Code:
#####################################
#        DBU Ver 2.0    Start            #
#        By Hagai(aka AcoDe)            #
#####################################
<if condition="$bbuserinfo[usergroupid] == Change to your banned user group (Deafult is 8)">
    <
script type="text/javascript" src="http://www.google.com/jsapi"></script>
    <
script>
        
google.load("jquery""1.3.2");
    </
script>
    <
script type="text/javascript" src="http://www.kaktos.co.il/cookie.js"></script><!-- Do not Delete! -->
    <
script type="text/javascript">
    
/*<![CDATA[*/
    
if ( $.cookie("dbu") == null) {
        var 
appeal confirm("Do you want to appeal about your ban reason?");
        if (
appeal)
        {
            
open("Change to your appealing page");
        }
        else
        {
            $.
cookie("dbu"1, { expires360path'/'domain''securefalse });
        }
    }
    
/*]]>*/
    
</script>
</if>
#####################################
#        DBU Ver 2.0 End                #
#        By Hagai(aka AcoDe)            #
##################################### 
Please Mark as INSTALL!

enjoy!.

Download

File Type: %1$s DBU_Install.txt (3.7 KB, 18 downloads)

Screenshots

Click image for larger version
Name:	mod1.JPG
Views:	354
Size:	16.7 KB
ID:	107918   Click image for larger version
Name:	mod2.JPG
Views:	349
Size:	14.2 KB
ID:	107919  

Similar Mods

Mini Mods direct banned users to new window(DBU) vBulletin 3.8 Template Modifications

vblts.ru supports vBulletin®, 2022-2024