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)

John 10-27-2002 04:31 PM

I don't see any link in postbit :(

Perhaps someone should make clear that warnconfig.php is no longer needed...

When I click on "View Warning Logs", I get:

Warning: Division by zero in c:\program files\apache group\apache\htdocs\forums\admin\admin_warning.php on line 87

Invalid SQL:
SELECT logid, username, userid, target, targetid, timestamp, type, postid, comment
FROM warnings_log
ORDER BY logid
LIMIT 0,
mysql error: You have an error in your SQL syntax near '' at line 5

mysql error number: 1064

Help? :(

John 10-27-2002 04:51 PM

Weird. I went into vBulletin options, saved them, and it started to work.

Still a few minor niggles though - sometimes, when I warn a user I get this on the redirect page:

Warning: Failed to Receive in c:\program files\apache group\apache\htdocs\forums\warn.php on line 165

Any ideas? Not a real problem, just annoying ;)

Apart from that small thing, an absolutely fantastic hack. We're going to be using this a lot!

Erwin 10-27-2002 05:21 PM

Quote:

Originally posted by WoodiE
Thanks Link14716 that fixed the problem, but now when I log in the admin control panel under:

vBulletin Options -> I have two [Warnings System] links listed. How do i remove the old one?

-WoodiE

Open up phpMyAdmin, go to the "setting" table, and scroll down to the end of the table, and just drop the extra columns. :)

WoodiE 10-28-2002 06:05 PM

Erwin - your a good man...thanks!

-WoodiE

Erwin 10-28-2002 06:37 PM

No problems. :)

desi 10-29-2002 05:47 AM

awesome hack...... installed without any problems .

thankx g-force2k2 :)

Miztah 10-30-2002 01:26 AM

I need help in having the forums display your current warning points in the welcome panel... how can I go about doing this?

Mr_P 11-01-2002 06:45 AM

Latest Version Warnings System Hack v2.1 Can be Found [ Here ]

After a Successful first release i decided to make a more customizeable and more optimizeable Warnings Hack well here it is...

For new installers simply run the auto installer (install_warning.php) and then use the installation_txt.php to make template and file modifications.

Ok is this the complete hack if we download the new version as im a bit confused.
As in the Install Instructions it says :

Notice ::
Open warnconfig.php and configure this according to your forum!

Yet this file is not included in the new zip so does this mean just grab this from the orginal zip or what ?

Kuipo 11-01-2002 06:59 AM

Workd Great, Using 2.2.8 and i did the folowing. Didn't deal with this part of the read me at all
Quote:

Something Different?
// ++++++++++++++++++++
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)

Notice ::
Open warnconfig.php and configure this according to your forum!
i made the rest of the changes that the "installation_txt.php" says to make. then i put the files in the dir and used the "install_warning.php" (i had an error here, dunno why i just had to deleate 2 lines from "installation_txt.php": cpheader(); and cpfooter(); they kept giving me problems.)

after that the auto installer did the rest and i went into the CP and set up the options. It's just what i was thinking of earlier today... I wanted a warning script, and this is all i wanted and more.
GREAT JOB g-force2k2. btw, you might want to update the "installation_txt.php" so people dont have to dig through 17 pages of posts to figure out that there doesnt need to be a warnconfig.php ;) anyways.. good job!! *clicks install*

Mr_P 11-01-2002 07:04 AM

hmm so if no warnconfig then how do u select which usergroup is affected by this hack ?

Even in the readme it says the following :
Files to Upload (4)
// ++++++++++++++++++++
install_warning.php (admin directory - auto_installer)
warnconfig.php (admin directory)
admin_warning.php (admin directory)
warn.php (forum directory)

and cheers for quick reply m8

so something aint right or im looking at it different.I did install the old version before and it worked well but i since cleared the board and lost everything.So would like to know for sure that warn config aint needed before going ahead.

also as a final note does anyone know what queries this adds to the board ?

Kuipo 11-01-2002 07:29 AM

just ignore the line "warnconfig.php (admin directory)"

that file doesnt exist anymore ^^

You can make a user group later. But its not needed for instalation. It's an option in the control panel. ^^ see attached picture ^^

So the user group can be changed later on anyways ^^ i did all that last ;) :bunny:

:banana:

Mr_P 11-01-2002 08:07 AM

gotya and cheers Kuipo

Its different to version 1 so thats what threw me a bit.

Kuipo 11-01-2002 08:26 AM

yup yup, i figured after reading about 15 of the 17 pages of posts. Got a lof of user on our forums at all times, dont wana make a fool of us by installing somthing wrong ;) you know how it is.

I just wanted to make it a little more clear for people hehe ^^ :bunny: cheers :bunny:

Dynamic One 11-01-2002 06:48 PM

Thanks for this super hack m8.

Martin64 11-02-2002 12:36 AM

This hack is just gold, and was very easy to install. I gave my moderators the Warn options in the Mod CP, and they're loving it (perfect for keeping track of who has been banned, been warned and why. Thanks!

drumsy 11-07-2002 03:29 PM

What kind of query can I run to clear out the "40" portion. It seems like unless you do this install right the first time, I'm jinxed to this error, and I don't know how to go about doing the switching the number to 99 or so. What can I do to clear that out and start a-fresh???

ryans 11-07-2002 04:53 PM

in the instructions you say upload warnconfig.php but in your zip file there is no such file?

drumsy 11-07-2002 05:20 PM

There is no need for warnconfig. Originally, you would have to edit the group ID number for the "Banned by Warning" group in the warnconfig.php file, but now all you do is updated it under vBulletin Options > Warnings System in the Admin CP

Also, a fix for those of you who have installed it, uninstalled it, and get the "40" error.

In install_warning.php find:

PHP Code:

$DB_site->query("DELETE FROM settinggroup WHERE displayorder=44");
$DB_site->query("DELETE FROM setting WHERE settinggroupid=44"); 

and replace with:

PHP Code:

$DB_site->query("DELETE FROM settinggroup WHERE displayorder=40");
$DB_site->query("DELETE FROM setting WHERE settinggroupid=40"); 

Upload to your admin directory and now you can install/uninstall at your whim without worrying about getting the "40" error.

ryans 11-07-2002 05:32 PM

Ok, great! I got it working, well mostly. Now when I go to warn a user the warn box comes up and I put in the warning text. After hitting submit it goes to the next page and says this:

Please go back and fill in the reason for warning and then resubmit!

I checked the source on the page it looks correct:

<table cellpadding="4" cellspacing="1" border="0" width="100%" bgcolor="#cfd7e0"><tr>
<form action="/boards/warn.php" method=post>
<input type="hidden" name="action" value="insert_warn">
<input type="hidden" name="postid" value="xxxx"> "x'd out for security reasons"
<input type="hidden" name="userid" value="xxx">
<td bgcolor="#1B1B4B" align="center"><font face="arial, helvetica" size="2" color="#EEEEFF"><b>Warning ryanstest</b></font></td></tr><tr>
<td bgcolor="#879CB4"><font face="verdana,arial,helvetica" size="1" color="#000000">Reason for Warning:<br><input type="text" name="reason" value="" maxlength="100" size="30">
<!-- go button -->
<input type="image" src="images/new/go.gif" border="0"
align="absbottom"></td></tr><tr>
<td bgcolor="#B4C0CF"><font face="verdana,arial,helvetica" size="1" color="#000000">Send Warning PM to User?&nbsp;<input type="checkbox" name="dowarnpm" value="yes" CHECKED></td></form></tr><tr>
<td bgcolor="#879CB4" align="center"><font face="verdana,arial,helvetica" size="1" color="#000000"><a href="javascript:window.close();">[ Close Window ]</a></font></td></tr></table>

drumsy 11-07-2002 06:04 PM

Did you click the dropdown and select the warning you wished to use?

ryans 11-07-2002 07:11 PM

It doesn't give me that option.

drumsy 11-08-2002 02:52 PM

Double check to make sure on the install all templates were added for the warning system and that you made all the necessary template edits.

mheinemann 11-08-2002 10:43 PM

This hack works great, but I'm having one small problem, when I warn a user, and have "Send Warning PM to User?" checked, I get this error.

Quote:

Database error in vBulletin 2.2.8:

Invalid SQL:
INSERT INTO privatemessage
(privatemessageid, userid, touserid, fromuserid, title, message, dateline, showsignature, iconid, messageread, folderid, receipt)
VALUES
(NULL, '28', '28', '2', 'Dolphin's Bay Warning Notification', 'test,

You have been issued a warning by Mike on the account of Spamming!
You now have 2 Warning Points.
The ban limit is currently set to 25 Total Warning Points.

Thanks,
Dolphin's Bay team.', '1036801329', '0', '0', '0', '0', '1') mysql error: You have an error in your SQL syntax near 's Bay Warning Notification', 'test,

You have been issued a warning by Mike on' at line 5

mysql error number: 1064
if I have it unchecked, it doens't give me this.

partang2 11-10-2002 02:52 PM

Can anyone tell me how I get the link in postbit showing up?
Have installed the latest version on a 2.2.8 and all is ok, only this problem.... I am using the Ravio template.

Barret 11-10-2002 08:41 PM

partang2 Read back its been posted here 50 times. ;)
Now for my problem.
When I go to warn a person I get a page that says this.
Quote:

The page cannot be found
Now I can see warning.php and all the seetings but cant seem to modify it like in warning a user. I have the warning file in the root folder of the board so it should show up "which it does" and add/modify.
After going through all 18 pages I cant see where anyone else had this problem. :(
Any ideas?
Thanks

partang2 11-10-2002 09:44 PM

I must be blind! I have read all the posts in this thread 2 times now... I can see that many peoples have asked the same thing, but I cant see a answer to this issue. The only thing I see is "Update in controlpanel...." and I have done that but still no link in postbit.....!! What else do I have to do?

Barret 11-10-2002 10:37 PM

You updated vBulletin Options/[Warnings System]?
Thats all I had to do. :)

partang2 11-10-2002 10:56 PM

Yes I have done that. In fact all works, but the link will not show up in postbit template. I see it there when I preview the template, but not in the "real" page..... Any suggestions?

Barret 11-10-2002 11:26 PM

This is how mine looks.
PHP Code:

<p align="right"><b><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]<br>$post[warnlink]</smallfont></b></p

Hope this helps. :)

mheinemann 11-11-2002 01:11 AM

Quote:

Originally posted by mheinemann
This hack works great, but I'm having one small problem, when I warn a user, and have "Send Warning PM to User?" checked, I get this error.



if I have it unchecked, it doens't give me this.

I just did some more testing, and if I leave the comment blank, I don't get the error either. Any Ideas?

Barret 11-11-2002 03:35 AM

Well, I go to the post "showthread" and click warn this user..
If self I get a message saying why warn self. Good!
If I try to warn another user I get the page to set what to warn them about and then I click go and get a blank page.
Now why is this?
Does anyone anywhere have this problem or know why I am getting it?

KelteN 11-11-2002 05:25 AM

Great Hack :)

partang2 11-11-2002 09:35 AM

Quote:

Originally posted by Barret
This is how mine looks.
PHP Code:

<p align="right"><b><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]<br>$post[warnlink]</smallfont></b></p

Hope this helps. :)


I have the same but it still not wanna show up...!!?? Is there something else that can be wrong?

Hey!, I found one other thing that do not show up! It is the $onlinestatus.... Can this two issues be related?

Barret 11-11-2002 11:44 PM

Onless you have deleted onlinestatus I have no idea..
As for me, I am deleting this hack myself as it seems far to buggy to work properly at this point.

partang2 11-12-2002 10:18 PM

Hey g-force2k2!

Can you please answer my question over here?
Think this is a very nice hack, but as said I can`t get the link for warning members to show up anywhere... Have tried some days now to get it work without any luck.

mheinemann 11-12-2002 11:27 PM

partang2, just in case you didn't see this, here it is. Hopefully he'll be back soon to answer our questions, but until then you're probably going to have to sit tight. My only other suggestion is to make sure you read through the whole thread to see if you've missed anything.

Quote:

Originally posted by g-force2k2
im sorry for my awayness as of late... but i don't know when i will be back... im sorry to everyone that i have let down but i have other priorities at the moment...

as for the warnconfig.php i don't know how many times in my thread that i have stated there isn't one ;P its been replaced by the vbulletin options in version 2.0...

etones im not sure but i will take a look...

Apok if you look back i did answer your second question... you have to find the <smallfont color="#FFFFFF" and replace it with <smallfont

regards... again im sorry...

g-force2k2


Barret 11-13-2002 03:10 AM

**grrrrrrrr** Even the uninstall function doesnt work properly as I still have all the info in my db and have to "delete" manually.
I must say this. This hack is a great idea and I do appreciate all the work that has gone into this hack. However I am using 2.2.6 version of vbb and I find this hack flawed to the hilt. I personally feel this is NOT a finished version "Full Released" but rather still a beta and should not be stated as full released as it has far too many bugs on install and uninstall to be treated as full released. I have done a many a hacks and never have I come upon anything so incomplete as this. I dont mean to sound cruel but this is the truth! It is however a very big hack and a great idea and I hope the txt file and the rest of the script gets updated as I think many people are getting messed up as the files arent updated properly to conform with the new download. Or maybe it just doesnt work on all boards, I just do not know. What I do know is the whole thing is messed up and never have I ever come upon a hack this far out of whack with how bad it is flawed. I'm going to delete this out of my db "manually" and write my own but in a simpler easier manner as the one here that should actually work. I just wished people had access to both files as I have a feeling the first file worked better and "was less confusing" than the last updated file.
As for me, I'm done with this hack unless something gets alot better. I have wasted too much time on it allready and the uninstall didnt uninstall and when I tried to reinstall, well, now I have two entires of all!
Nuff said.
People leave this hack where it is and dont waste your time with it atm.

marcel-ea 11-13-2002 08:51 AM

Notice ::
Open warnconfig.php and configure this according to your forum!

I found no warnconfig.php?!?!?!

marcel-ea 11-13-2002 08:51 AM

Notice ::
Open warnconfig.php and configure this according to your forum!

I found no warnconfig.php?!?!?!

mheinemann 11-13-2002 08:58 AM

Skip that instruction, as that file is no longer needed.


All times are GMT. The time now is 10:46 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.01668 seconds
  • Memory Usage 1,846KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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