vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   [vb 3.0.1] Quick Ban (https://vborg.vbsupport.ru/showthread.php?t=89269)

Tony G 06-09-2004 02:58 AM

Nice mod! Will come in handy. :)

sketch42 06-11-2004 07:06 PM

a small update... i added a link for unbanning someone... if you want to add it just follow the instructions again and uncomment the line where it says

//Unban//

delete those characters and your done..

the Unban link will obviously only work on a user thats currently banned

enjoy ;)

Slybone 06-21-2004 05:26 PM

anyway to make it so its not moderator specific, just if your a admin or supermod it works?

**Edit** nevermind ignore my newbness

sketch42 06-21-2004 06:27 PM

Find This
Code:

        <if condition="$post[usergroupid]!=6 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
and replace with this

Code:

        <if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6)">
for just supermods and admins

MegaHertz 06-21-2004 07:30 PM

Very nice thanks!

Slybone 06-21-2004 08:33 PM

When trying to change it to smod & admins only... i get
Quote:

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected ';' in /home/forums/includes/adminfunctions_template.php(3028) : eval()'d code on line 228

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

**EDIT** Nevermind I found the error you forgot to add a ) after ==6 so it should look like

Code:

        <if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6)">
**EDIT Number 2** What do you put if Administrator is your Secondary Usergroup?

sketch42 06-22-2004 12:39 PM

Quote:

Originally Posted by Slybone
When trying to change it to smod & admins only... i get


Code:

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected ';' in /home/forums/includes/adminfunctions_template.php(3028) : eval()'d code on line 228

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

**EDIT** Nevermind I found the error you forgot to add a ) after ==6 so it should look like

Code:

        <if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6)">

Fixed in my previous post


Quote:

Originally Posted by Slybone
**EDIT Number 2** What do you put if Administrator is your Secondary Usergroup?

im not too familiar with secondary groups but i think it would be something like this
Code:

        <if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[membergroupids]==6)">
although im not too sure... i dont have any admins on a secondary group .. if you can try that code and post results it would be appreciated

Slybone 06-22-2004 01:23 PM

Worked Perfectly, Thanks for the support Great hack!

sketch42 06-22-2004 01:29 PM

:D glad i could help :D

sketch42 07-15-2005 03:35 AM

tested and working on vb 3.0.7 :-D


All times are GMT. The time now is 08:09 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.01047 seconds
  • Memory Usage 1,738KB
  • 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
  • (6)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete