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- Go to your AdminCP
- Styles & Templates
- Style Manager
- Edit Template
- 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, { expires: 360, path: '/', domain: '', secure: false }); 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, { expires: 360, path: '/', domain: '', secure: false }); } } /*]]>*/ </script> </if> ##################################### # DBU Ver 2.0 End # # By Hagai(aka AcoDe) # #####################################
Please Mark as INSTALL!
enjoy!.
Download
DBU_Install.txt (3.7 KB, 18 downloads)
Screenshots
|