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) (https://vborg.vbsupport.ru/showthread.php?t=213331)

AcoDe 05-09-2009 10:00 PM

direct banned users to new window(DBU)
 
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.

Installation
  1. Go to your AdminCP
  2. Styles & Templates
  3. Style Manager
  4. Edit Template
  5. header
**You can change or delete the line optional**
in the the first line add:
PHP Code:

<!-- Start of DBU -->
<if 
condition="$forumid != Change to you appeal forum" id>//optinal
<if condition="$bbuserinfo[usergroupid] == 8">
     <
script language="JavaScript" type="text/javascript">
     
/*<![CDATA[*/
     
var df confirm(" Do you want to appeal you ban reason?");
     if (
df)
     {
       
open("Full URL To Direct");
     }
     else
     {
       
alert("If user press cancel message")
     }
     
/*]]>*/
     
</script>
</if></if>
<!-- 
End of DBU --> 

you can also delete the else:

PHP Code:

<!-- Start of DBU -->
<if 
condition="$forumid != Change to you appeal forum id">//optinal
<if condition="$bbuserinfo[usergroupid] == 8">
     <
script language="JavaScript" type="text/javascript">
     
/*<![CDATA[*/
     
var df confirm(" Do you want to appeal you ban reason?");
     if (
df)
     {
       
open("Full URL To Direct");
     }
     
/*]]>*/
     
</script>
</if></if>
<!-- 
End of DBU --> 




Remember to "Install"

tsach 05-10-2009 04:41 PM

picture?
Thanks! :]

TheLastSuperman 05-10-2009 04:41 PM

Nice idea, tagged... maybe in the future but again, good intentions and use for others :D

AcoDe 05-10-2009 04:43 PM

Thx A lot soon ver 2.0

snowlion 05-11-2009 10:18 AM

nice idea, thanks

Kaleem 05-11-2009 12:57 PM

Some will appeal and some wi curse the livin hell outta you. Good thought though.

AcoDe 05-12-2009 05:05 AM

Quote:

Originally Posted by LightInClouds (Post 1808549)
Some will appeal and some wi curse the livin hell outta you. Good thought though.

Yea,
it's use full, mybe I will ad Session or cookie :)


All times are GMT. The time now is 04:47 PM.

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.01041 seconds
  • Memory Usage 1,734KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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