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

Reply
 
Thread Tools
direct banned users to new window(DBU) v2.0 Details »»
direct banned users to new window(DBU) v2.0
Version: 2.0, by AcoDe AcoDe is offline
Developer Last Online: Jul 2020 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.x Rating:
Released: 12-20-2009 Last Update: 12-20-2009 Installs: 7
Template Edits
Re-useable Code Translations  
No support by the author.

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 Now

File Type: txt DBU_Install.txt (3.7 KB, 16 views)

Screenshots

File Type: jpg mod1.JPG (16.7 KB, 0 views)
File Type: jpg mod2.JPG (14.2 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 12-22-2009, 04:50 AM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A screenshot would be nice.
Reply With Quote
  #3  
Old 12-22-2009, 08:40 AM
bleros's Avatar
bleros bleros is offline
 
Join Date: Oct 2008
Location: Macedonia
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screenshot please
Reply With Quote
  #4  
Old 12-22-2009, 02:12 PM
AcoDe AcoDe is offline
 
Join Date: Nov 2007
Location: Israel
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screen shot added!
Reply With Quote
  #5  
Old 12-24-2009, 04:43 AM
bleros's Avatar
bleros bleros is offline
 
Join Date: Oct 2008
Location: Macedonia
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice bro thnx
Reply With Quote
  #6  
Old 12-24-2009, 05:29 PM
AcoDe AcoDe is offline
 
Join Date: Nov 2007
Location: Israel
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad that you loved it Blero.
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 11:13 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.09722 seconds
  • Memory Usage 2,296KB
  • 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_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (3)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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