vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Banned by moderator... (https://vborg.vbsupport.ru/showthread.php?t=40724)

Glock 07-06-2002 09:11 PM

And will just doing this instead of outcommenting if I don't need to make the database or anything hinky?

Xenon 07-06-2002 09:12 PM

this small change is all what ya need, you don't have to do anything more

Glock 07-06-2002 09:15 PM

Yep, I tried it and it works...I was just wondering if it will still try and add that usergroup and just get denied, or will it really even matter? Also for the user title, I think it edits the same line of code that I had to change for the current hack, what do I do about that to make it update the title?

Xenon 07-06-2002 09:21 PM

it would just try to create another usergoup if your usergroup x won't exist.

you can implement the hack as it is said in the txt-file, just instead of changing the line to
PHP Code:

$bangroup=$DB_site->query_first("SELECT usergroupid,title,usertitle FROM usergroup WHERE title='Banned by Moderators'"); 

you have to change it to
PHP Code:

$bangroup=$DB_site->query_first("SELECT usergroupid,title,usertitle FROM usergroup WHERE usergroupid=x"); 


Glock 07-06-2002 09:27 PM

It exists, so will it still try to create Banned by Moderator, or just ignore that completely?

Xenon 07-06-2002 09:31 PM

it will ignore that passage

Glock 07-06-2002 09:33 PM

Now I'm getting "You may not ban someone who is not a normal registered user!"

Glock 07-06-2002 09:34 PM

After adding the update title hack at least, not from yours...

Xenon 07-06-2002 09:36 PM

are you sure you haven't banned this person before?
if this person isn't in usergroup 2, you cannot ban it with the mod cp

Glock 07-06-2002 09:41 PM

Yeah, they're listed as a member and it's doing it. Do you want to to post a copy of my current user.php so you can confirm I have the coding right?


All times are GMT. The time now is 12:25 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.01622 seconds
  • Memory Usage 1,725KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (3)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