vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Warnings System Hack v2.1 (https://vborg.vbsupport.ru/showthread.php?t=43265)

neocorteqz 09-16-2002 06:54 AM

Do I have to install one of the older versions of this? or can i use this one? If I can use this without installing any other version, Then where do I put the user groupid as stated here.

Quote:

// ++++++++++++++++++++
Go to the Admin CP and create a new usergroup.
Call the group Banned by Warnings :: And be sure to restrict all access to the forum from this usergroup!
Then Submit and right click the edit link to that new usergroup. Remember the Usergroupid for the config of the warnconfig.php!
(ie. 8)
or can I skip this step?

Thanks.


edit:
Quote:

Warning Hack v2.1
Copyright g-force2k2
Created on Saturday Semptember 3rd 2002
Please respect my hacks and don't edit (includeds adding on) them unless otherwise permission gained.
Thanks in advance.

MPM.com 09-16-2002 08:19 AM

Hi Everyone

I am VERY new to PHP, but trying to install this brilliant feature on my forum.

I keep getting the following error message. I dont think it is to do with this script, as it has happened with another script I tried.

Fatal error: Call to undefined function: cpheader() in E:\webspace\resadmin\markquayle\mobilephonemadness .com\www\forums\install_warnin g.php on line 7

Anyone Help?

drives fast 09-16-2002 09:26 AM

this is a great hack....I like it a lot and it installs easily.

However I noticed a little possible bug if you can call it that. When I warn a member the last time and his points total enough for the hack to ban the member....it does drop him into the banned usergroup (8) but it does not update the usertitle....it stays as "member" instead of changing to "banned by moderators". Is there an "uptade usertitle" or something missing in there?

MPM.com 09-16-2002 12:03 PM

I was running install script from the wrong directory... it Seems to install this time, but is playing up.

The file warnconfig.php is not in the zip. where do i find this?

Also, should there be a "warn user" option next to report this post to a moderator? coz there isnt.

Sorry for being thick.

Mark

g-force2k2 09-16-2002 01:49 PM

User_001 the 2.1 installer will fully install the warnings hack...

drives fast just edit the update query... its not a bug but it just doesn't update the usertitle... i'll give you the code for that in a few if you'd like....

MPM.com just update the vbulletin options...

regards...

g-force2k2

MPM.com 09-16-2002 05:13 PM

Sorted!!

Thanks for a great hack, and for the help.

drives fast 09-16-2002 09:55 PM

g-force2k2,

thank you for your reply.....I would like the code if it is not too much trouble.....I really don't know what do add in

thanks

g-force2k2 09-16-2002 10:03 PM

open warn.php

find ths code:

PHP Code:

        $DB_site->query("UPDATE user SET usergroupid='$BANgroup' WHERE userid='$userid'"); 

replace with:

PHP Code:

        $DB_site->query("UPDATE user SET usergroupid='$BANgroup', usertitle='Banned by Warnings' WHERE userid='$userid'"); 

Also if you have any banned users you can run this query to update the banned titles...

PHP Code:

UPDATE user SET title='Banned by Warnings' WHERE usergroupid=

This is considering that your banned usergroupid is 8 regards...

g-force2k2

neocorteqz 09-17-2002 05:36 AM

Thanks for the help. I'm gonna install this after a Fresh Backup of the DB.;) :)

drives fast 09-17-2002 08:39 AM

now all of a sudden I am getting this err or when I try to view a thread:
Parse error: parse error, expecting `']'' in /home/xxxxxxxx/xxxxxxxx/xxxxxx/admin/functions.php(278) : eval()'d code on line 46

thsi is line 46:
PHP Code:

eval("\$pagenav .= \"".gettemplate("pagenav_curpage")."\";"); 

this happened while I was customizing the templates and the only change I made was to warn.php as g-force2k2 showed me above.

I have tried uploading an un-hacked functions.php and the same error exists and it won't allow the postbit template to show up on the page

any ideas?


All times are GMT. The time now is 09:16 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.01299 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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