vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Mini Mods - direct banned users to new window(DBU) v2.0 (https://vborg.vbsupport.ru/showthread.php?t=230703)

AcoDe 12-20-2009 10:00 PM

direct banned users to new window(DBU) v2.0
 
1 Attachment(s)
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
https://vborg.vbsupport.ru/attachmen...1&d=1261498114

after pressing 'cancel' and cookie is created
https://vborg.vbsupport.ru/attachmen...1&d=1261498114
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!.

Kolbi 12-22-2009 04:50 AM

A screenshot would be nice.

bleros 12-22-2009 08:40 AM

screenshot please :)

AcoDe 12-22-2009 02:12 PM

Screen shot added!
:)

bleros 12-24-2009 04:43 AM

nice bro thnx

AcoDe 12-24-2009 05:29 PM

Glad that you loved it Blero.


All times are GMT. The time now is 11:56 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.01046 seconds
  • Memory Usage 1,750KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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