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)

g-force2k2 09-10-2002 05:23 PM

Mist go in your admin browser to setting.php and the find out what the next settinggroupid is... and replace all of the 40's with whatever the next number should be... see post#107 for references... regards...

g-force2k2

Dean C 09-10-2002 05:33 PM

ok ... but what do i do bout runing the installer again :(???

it will get errors as some of the queries were executed...

- Mist

Parker Clack 09-10-2002 09:43 PM

g-force2k2

This script works great. My moderators love it.

Thanks for all the hard work in putting this together.

Parker

g-force2k2 09-10-2002 10:53 PM

Mist just uninstall it then... and then rerun the installer... regards...

And thanks Parker... means alot :)

g-force2k2

Sc0rp 09-11-2002 10:22 AM

ge-force could u plzzzzzz take a look at my previous post.. still isnt working..:(

Mephisteus 09-11-2002 01:52 PM

I'll take an look at it sc0rp.

g-force2k2 09-11-2002 02:23 PM

Scorp did you update the vbulletin options and make sure that the usergroupids for the staff(admins, mods and smods) were configured correctly with your forum? regards...

g-force2k2

Dean C 09-11-2002 05:31 PM

this is a pain in the ass....

/me goes off to reinstall...

- Mist

Sc0rp 09-11-2002 08:57 PM

Quote:

Originally posted by g-force2k2
Scorp did you update the vbulletin options and make sure that the usergroupids for the staff(admins, mods and smods) were configured correctly with your forum? regards...

g-force2k2

yep.. but $post[warnlink].= ""; is still empty and not visible in the postbit.. :(

[edit]

oh.. darkssj fixed it :) thanx darkie.. and thanx geforce2k2!:D

Parker Clack 09-11-2002 09:16 PM

g-force2k2:

Is there anyway of making this so that the comments are added to the message that gets sent out too?

Parker

g-force2k2 09-12-2002 01:46 AM

good to hear Scorp :)

Parker Clack just edit the warn_pmemail templates and add where you want:

PHP Code:

Comments$comment 

i believe that should do the trick... regards...

g-force2k2

Parker Clack 09-12-2002 12:09 PM

g-force2k2:

Thanks.

Parker

Dean C 09-12-2002 06:59 PM

well i had to teach myself sql to revers the queries of the original hack... lol (probably wasn't needed but it was worth it)

then i changed a few things and did a complete re-install and got this working

Very nice system g-force...

- Mist

Tetchu 09-14-2002 10:12 AM

I must say, it's a good Hack, and the first one to make it onto my boards to.

I have one question though, how do i find out what the User group number is for each user group? Just so i can make sure that the right users can see the right stuff.

Also, how do i set it so that the banned user switched to a new user group? I saw it mentioned earlier but you needed to edit a warnconfig.php file that 2.1 didn't need. so any help would be nice.

Thanks again, and great hack.

g-force2k2 09-14-2002 04:15 PM

Tetchu you have to right click the edit button for the usergroup in the admin cp while editing the usergroups... and for all of the configurations... its now intergrated into the vbulletin options... regards...

g-force2k2

NuclioN 09-14-2002 04:56 PM

--- never mind--- fixed it trough phpadmin

Only one thing remains and that is a double notition of the warnfunctions in the vb options. (??)

a43079 09-15-2002 04:09 AM

please help when i click on view warning logs i get


Warning: Division by zero in /home/www/eroweb/admin/admin_warning.php on line 87



There seems to have been a slight problem with the Ero Web Services database.
Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

this is line 87 what is wrong with it i cant figure it out.
PHP Code:

    $totalpages ceil($totalwarns[0] / $perpage); 


Apok2002 09-15-2002 04:28 AM

I didn't see it...forgive me if it is already here...but is it possible to put a graphic in the postbit of someone who has been warned? That way all members can see that this person has recieved a warning, and why they did?

The above is simliar to the card hack from Lesane for his Store Hack. I like yours in that it is more professional and detailed. But Lesane's is great because of the postbit issue.

Again, sorry if this is already brought up...I'm blind if it's here.

g-force2k2 09-15-2002 04:39 AM

a43079 you have to submit your vbulletin options ;)

Apok2002... open admin/functions.php

find:

PHP Code:

          $post[warnlink].= "";
        }
// +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++ 

replace it with:

PHP Code:

          $post[warnlink].= "";
        }
                                  if(
$post[warninglvl] > 0) {
                                    
$post[warnimg] = "<img src='{imagesfolder}/warn.gif' border='0' alt='$post[username] currently has $post[warninglvl] Warn Points!'>";
                                  } else {
                                    
$post[warnimg] = "";
                                  }
// +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++ 

then place your image in the images folder of your forum... and place $post[warnimg] where ever you would like it to show on the postbit...

sorry i haven't tested it but it should work :) regards...

g-force2k2

a43079 09-15-2002 10:58 AM

THankyou it works great..

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?

g-force2k2 09-17-2002 04:45 PM

hmm... drives fast that is definately weird... there is somethign wrong with the eval code... but i dont' see anything wrong with that one... im not positive probably better of checking up with the support forum... regards...

g-force2k2

Dave-ahfb 09-17-2002 05:27 PM

I must be totally missing something

....like the config file, not included in the zip, any clues?
Dave

g-force2k2 09-17-2002 05:52 PM

yeah its not included in the zip file sorry Dave-ahfb... the Warnings Hack v2.1 doesn't need a warnconfig.php anymore instead the options are in the vbulletin options... i have to update the instructions... just been busy regards... but the hack works fine itself ;) just my instructions are shady...

g-force2k2

Dave-ahfb 09-17-2002 06:22 PM

Sorry I got it now.

I attempted this install the other day and gave up, thought a fresh mind might help today.

I see the question has been answered earlier in the thread so I apologize for not reading through the entire thread.

It took some work but it looks like a great script.

thanks,

Dave Bailey

Neo 09-17-2002 06:38 PM

I got so many errors when I tryed to install this on my forum. The big one was that my site no longer showed since the code edit in the admin/functions.php casued a error. And all the admin files did not parse they just displayed the code... also when I took a look at the code on my computer it was very distorted since it had been text formated which you dont do when coding.

NuclioN 09-18-2002 12:56 PM

Working fine so far but we get this: Fatal error: Call to undefined function: checkwarnlink() in /home/domain/www.oursite.com/HTML/member.php on line 1746

g-force2k2 09-18-2002 01:03 PM

Nuclion did you make the file modification to the admin/functions.php yet? regards...

neo what do you mean text formatted? regards...

g-force2k2

NuclioN 09-18-2002 01:34 PM

Yes g-force i've made those modifications. I've checked it twice.
Maybe it conflicts with another hack, i shall attach admin/functions.php so maybe you can see the source of the error.

g-force2k2 09-18-2002 01:42 PM

definately weird Nuclion...

first remove the file so that you don't get in trouble ;) can't post full vb files here...

second can you show me what is on line 1746 of the member.php? regards...

g-force2k2

NuclioN 09-18-2002 01:46 PM

It's in this...but i've removed that and the error shoots to another line:

// Number of time a profile has been viewed by Pierre-Luc "Fuitad" Brunet
if ($userinfo[profileview]=="") {
$userinfo[profileview]=0;
} <--------------------------------------------- line 1746
$userinfo[profileview]++;

// Update the DB with new count
$updateviews=$DB_site->query("UPDATE user SET profileview=$userinfo[profileview] WHERE userid=$userinfo[userid]");

// End Number of time a profile has been viewed by Pierre-Luc "Fuitad" Brunet


All times are GMT. The time now is 01:02 PM.

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.01956 seconds
  • Memory Usage 1,839KB
  • 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
  • (8)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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