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 08:39 PM

$DB_site->query("UPDATE user SET usergroupid=$bangroup[usergroupid] WHERE userid=$banuser[userid]");

For that hack...this isn't in my file at ALL...and how exactly do I integrate these two?

Xenon 07-06-2002 08:44 PM

outcomment means to make a /* at the beginning of the passage and a */ at the end :)
i hope this phrase exists in english ^^

this line must be in your mod/user.php, if not, you should take the standart file from vb and not a hacked one ;)

Glock 07-06-2002 08:47 PM

So put a slash and then an asterik right before and right after that passage?

Xenon 07-06-2002 08:49 PM

yes, so php will handle it as a comment and wont parse it anymore..:

it should look so:
PHP Code:

/*if (!$bangroup) {
    $DB_site->query("INSERT INTO usergroup
                       (usergroupid, title, usertitle, cancontrolpanel, canmodifyprofile, canviewmembers,
                        canview, cansearch, canemail, canpostnew, canmove, canopenclose, candeletethread, canreplyown,
                        canreplyothers, canviewothers, caneditpost, candeletepost, canusepm, canpostpoll, canvote,
                        canpostattachment, ismoderator, canpublicevent, canpublicedit, canthreadrate, cantrackpm,
                        candenypmreceipts)
                     VALUES
                        (NULL, 'Banned by Moderators', 'Banned', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0')");
    $bangroup['usergroupid'] = $DB_site->insert_id();
    $bangroup['title'] = 'Banned by Moderators';
  }*/ 


Glock 07-06-2002 08:56 PM

I'm getting An unknown error occured while attempting to ban eigthlegion (32). The group the user was supposed to be moved to was "" after outcommenting it...

Xenon 07-06-2002 08:58 PM

yes, you have to apply logicians modifications too
just outcommenting would always produce an error

Glock 07-06-2002 09:02 PM

I did...it's only error when I outcomment it.

Xenon 07-06-2002 09:03 PM

oh, i see, instead of doing all this changes in this thread, you can do a very small change to get what ya want.

take your original user.php

find
PHP Code:

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

and replace it with this:
PHP Code:

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

replace th x with the usergroupid of your bangroup ;)

Glock 07-06-2002 09:09 PM

Should I still do the outcomment then?

Xenon 07-06-2002 09:10 PM

no, don't use any of the changes here in the thread, wether logicians nor mine, just make the last change i post, this should be enough


All times are GMT. The time now is 12:26 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.01818 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
  • (3)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