View Full Version : Warnings System Hack v1.0
g-force2k2
08-30-2002, 10:00 PM
Please Notice Warnings System Hack v2.0 has been released.
View Thread Here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=43265)
Yeah i promised a release of this one... its pretty self explanatory... its a warning system devised to help keep forums more secure... allows a new way for moderators to ban users...
First off big thanks to GoldKnight for helping me square thing away again and for beta testing :)
Edit: See quick update [ Here ] (https://vborg.vbsupport.ru/showthread.php?postid=293341#post293341) for a quick template fix thanks to mulimum regards :)
Features?
Config Features - Warn Config
- includes moderator exemption inclusion of warings by other moderators
- includes special usergroup for banned by warnings
- includes setable warninglvl limit before banning
Warning System ::
- includes the warning tabs on posts for warning members
- includes viewable lists of warnings per each member (postbit)
- also includes viewable lists on getinfo template
- includes auto log of each warning issued
- includes pm feature to send the user being warned a warning notification
- includes auto banning once the user's warninglvl has reached the banlimit
Admin Features -
Admin CP Based Setup ::
- include a log of all warnings that have been given out... includes who warned who and the viewable post that the warning was issued on, as well as the date. (with a page navigation feature)
- includes a list of all the users who have been issued warnings as well as different options of revoking warnings and unbanning users who were banned by warnings...
whew... on to the to do list ;)
What to do?
// ++++++++++++++++++++
Queires to Run (2)
File Modifications (4)
Template Modifications (4)
Templates to Add (15)
Files to Upload (3)
Instructions in the install_warning.php
If you like this hack please click install ;) thanks in advance... regards... and as always enjoy :)
g-force2k2
g-force2k2
08-31-2002, 01:41 AM
Screenshot A :: Admin CP Warning List
g-force2k2
g-force2k2
08-31-2002, 01:42 AM
Screenshot B :: Admin CP Warning Log
g-force2k2
g-force2k2
08-31-2002, 01:43 AM
Screenshot C :: Admin CP Warning Menu
g-force2k2
g-force2k2
08-31-2002, 01:43 AM
Screenshot D :: Add Warning Feature
g-force2k2
g-force2k2
08-31-2002, 01:44 AM
Screenshot E :: Warning getinfo template
Notice :: Only appears for Moderators and Administrators if there's warnings to view!
g-force2k2
Goldknight
08-31-2002, 01:45 AM
=D it s my most fav hack
/me install!
Awesome hack!
g-force2k2
08-31-2002, 01:46 AM
Screenshot F :: Warning Postbit Template
Notice :: Only appears for Moderators and Administrators
g-force2k2
g-force2k2
08-31-2002, 01:47 AM
Screenshot G :: View Warning Feature
Last but not least whew... well Enjoy :)
g-force2k2
Link14716
08-31-2002, 01:53 AM
If only I can find a way to get this to my new computer, then I'd install it. :(
Tok Muda
08-31-2002, 01:54 AM
wuhuu!! nice , i'll try this ASAP :D
Erwin
08-31-2002, 02:03 AM
Nice... will install this one... it's a lot better than the previous Warnings Hack. :)
g-force2k2
08-31-2002, 02:05 AM
Originally posted by Erwin
Nice... will install this one... it's a lot better than the previous Warnings Hack. :)
oh i didn't even know there was one :p everyone was just requesting one so i thought i would take it up ;) regards... Enjoy
g-force2k2
assassingod
08-31-2002, 02:07 AM
This is brilliant! Just what I need, thanks alot g-force2k2:)
lordofgun
08-31-2002, 03:45 AM
AMAZING!!! YOU ARE NOW THE MOTHER HACKER!!!
Working perfectly on 2.2.6.
Hack of the century! I've been waiting for this FOREVER! It won't be long til this makes the "top hacks" list on the front page!
/me clicks install!!!
g-force2k2
08-31-2002, 04:10 AM
Originally posted by lordofgun
AMAZING!!! YOU ARE NOW THE MOTHER HACKER!!!
Working perfectly on 2.2.6.
Hack of the century! I've been waiting for this FOREVER! It won't be long til this makes the "top hacks" list on the front page!
* lordofgun clicks install!!!
thanks man for the compliments ;) im glad that this hack was what you're looking for :) regards...
g-force2k2
hypedave
08-31-2002, 05:13 AM
wow this is the first hack im going to implement on the new and improved mindsights
g-force2k2, thanks for all these nice hack releases, i really like how this one looks and might install it tomorrow. :)
Velocd
08-31-2002, 06:01 AM
This does look good, if only I had it in the past! :p
Anyway, I'm defiantly going to install this when I get the chance, good job G-force ;)
* Velocd clicks install
muliman
08-31-2002, 07:21 AM
very nice, but i have more then 1 usergroup for regged user.
In your warnconfig.php there are this line:
$reggroup = "2"; // usergroupid for registered users
can i change this line to more usergroups?
For example:
$reggroup = "2,10,12,13,14";/ usergroupid for registered users
or dosnĀ“t this match?
THX for help
muliman
SaintDog
08-31-2002, 07:31 AM
There was a hack called HellBan I think that used a similiar system, but yours appears to be slightly more advanced and out of the beta stage (I don't think the other one moved out of beta).
Nonetheless, nice hack and great job. I may install this at vBulletinTemplates seeing that some members seem to be having an attitude problem latley, maybe this will help keep them in line :).
- SaintDog
Dean C
08-31-2002, 08:10 AM
this looks awesome... ill let someone else install it and report back with their results first though :D
- Mist
NuclioN
08-31-2002, 08:17 AM
Very nice! ;)
$fdname ="forum" must be a relative path or a full rooth source?
Obi-Wan
08-31-2002, 08:37 AM
Best hack i've seen so far..
Great stuff
*click*
muliman
08-31-2002, 09:13 AM
Originally posted by NuclioN
Very nice! ;)
$fdname ="forum" must be a relative path or a full rooth source?
ralitve path!
Greets,
muliman
muliman
08-31-2002, 10:26 AM
I found a little Bug in the getinfo_warning template:
Here the original (getinfo_warning):
<tr><td bgcolor="#13486D"><normalfont><b>Warning Level:</b></normalfont></td>
<td bgcolor="#13486D"><normalfont>$userinfo[warninglvl] Warnings <a href='javascript:showwarnings($post[userid])'>[ View User Warnings ]</a></normalfont></td></tr>
change to:
<tr><td bgcolor="#13486D"><normalfont><b>Warning Level:</b></normalfont></td>
<td bgcolor="#13486D"><normalfont>$userinfo[warninglvl] Warnings <a href='javascript:showwarnings($userinfo[userid])'>[ View User Warnings ]</a></normalfont></td></tr>
Now the link to "View User Warnings" can be found...
Greets,
muliman
I've got a question, when a user is banned by having warnings, how are they banned? I don't wish for them to have their account removed and such, so I have a request :D :
I've created a new usergroup called "Banned" which's userid=9
Is it possible for some custom code be made for me so when they've received maximum warnings, they go into the banned usergroup instead?
[D]Vincent
08-31-2002, 12:53 PM
Vincent]Great :D I'll install this a little later on :D
:E
X-Fan
08-31-2002, 01:37 PM
Great hack g-force! Does everything a warning hack should do!
Chris M
08-31-2002, 01:40 PM
Works great now that I fixed my Usergroup issue:)
Satan
Goldknight
08-31-2002, 03:27 PM
Originally posted by Tha Rock
I've got a question, when a user is banned by having warnings, how are they banned? I don't wish for them to have their account removed and such, so I have a request :D :
I've created a new usergroup called "Banned" which's userid=9
Is it possible for some custom code be made for me so when they've received maximum warnings, they go into the banned usergroup instead?
I m not sure if I undy your QQ but this warning hack is not "remove" member's accounts whenever their warning level reach maximum. This warning hack is only get any members to get in Banned usergroup and their account is still in database but only that they cannot post, download attachment, etc.. whatever you modify the usergroup (9) permission. But it does not remove any members' accounts at all. You can unban it and it will change to regular usergroup. QQ that you ask, that s what warning hack is. This hack send members into Banned usergroup whenever warning level reach maximum.
So which usergroup does this hack send users into once they've reached maximum warnings? I have a special usergroup for banned users so i'd like them to go into that ;)
Goldknight
08-31-2002, 03:37 PM
Originally posted by Tha Rock
So which usergroup does this hack send users into once they've reached maximum warnings? I have a special usergroup for banned users so i'd like them to go into that ;)
open warnconfig.php and find..
$banusergroup = "8"; // usergroupid of the banned group by warnings!
Change $banusergroup = "8" to $banusergroup = "9" that you made special banned usergroup. That s where your banned members will be if their warning level reach maximum
perfect, great hack, thanks :)
Goldknight
08-31-2002, 03:43 PM
NP =D
g-force2k2
08-31-2002, 03:43 PM
muliman :: i will make a seperate addition to fix your needs for the registered groups issue and thanks for finding the little bug ;) i will update asap :) regards...
g-force2k2
g-force, I just thought i'd show you this page: https://vborg.vbsupport.ru/forumdisplay.php?s=&forumid=4&daysprune=1000&sortorder=asc&sortfield=postusername&perpage=25&pagenumber=14
Almost filled by you :p
g-force2k2
08-31-2002, 03:59 PM
Originally posted by Tha Rock
g-force, I just thought i'd show you this page: https://vborg.vbsupport.ru/forumdisplay.php?s=&forumid=4&daysprune=1000&sortorder=asc&sortfield=postusername&perpage=25&pagenumber=14
Almost filled by you :p
:p damn i didn't even know you could do that... thanks for the linkage :) regards...
g-force2k2
Link14716
08-31-2002, 04:06 PM
Now that I got my proxy to keep me logged in, downloads ;)
Kommissar
08-31-2002, 04:34 PM
Where can I change the text of the "warning pm"?
g-force2k2
08-31-2002, 04:52 PM
Originally posted by Kommissar
Where can I change the text of the "warning pm"?
You can change it in the warn.php file...
find:
$reason = "$username you have been warned by $bbuserinfo[username]! You now have $warninglvl Warnings. The ban limit is currently set to $banlimit Warnings.\n\nReason: $reason";
And you can replace what you'd like there... regards...
g-force2k2
Shouldn't that be template driven? :p
g-force2k2
08-31-2002, 05:14 PM
it could be Tha Rock but then you have to call that template to get the info from it to simply insert it again :p in this case file work does fine for me ;) regards...
g-force2k2
lol ok, it doesn't bother me much, just as long as it's not hard to get to the code ;)
NTLDR
08-31-2002, 05:40 PM
Thanks for yet another superb hack g-force2k2, I'm going to install this one now :D
Dean C
08-31-2002, 07:30 PM
i installed this and its working wonderfully...
do we as admins have the option to delete a warning that a mod makes???
- Mist
Mist: Yes as admins you can revoke warnings/ all warnings, look at the screenshots posted in the first few replies :)
NTLDR
08-31-2002, 07:45 PM
One small suggestion if I can g-force2k2, it would be easier if the templates were all in sperate files with the name so they can be imported quickly ;)
Anyway, hack installed and working a treat, another great addon to my board from you :D
g-force2k2
08-31-2002, 07:55 PM
NTLDR if you want i can easily make an install file for running the templates into the set ;) its like not a problem so if you rather have an auto template install i'll make it regards :)
g-force2k2
NTLDR
08-31-2002, 07:58 PM
I've already installed all the templates, but an auto installer or similar would be good as it saves so much time on installing, something that many people you really like, a bonus of the installer is that they can go in the default template set which also keeps them neater :)
That just my opinion, other users may not share that ;)
The Ghost
08-31-2002, 08:34 PM
Hi,
very Great Hack, thx!!
I love your Hacks!
hypedave
08-31-2002, 08:38 PM
hey g-force2k2 if it wouldnt be a problem can you post a text file of the instructions. for some reaon I see the instructions but they are all close to each other, I cant tell the difference from step 1 and 2 and so on. here is a screenshot of what im getting when I run the install file, maybe you can help me out, who knows it may be my crappy broswer.
Open the attached file in the first post with notepad.
The Ghost
08-31-2002, 08:48 PM
Hi,
I have a Problem.
I don't see the Warning Level: 0 [ View User Warnings ] [ Warn This User ] Links on the Admin User's, I think that is normal, but I don't see this link on some Users, too......
Look here:
http://www.root-shell-club.com/board/showthread.php?postid=28752#post28752
The User "Superw?ss" hasn't the Warning link in his post, but he isn't a Moderator, Super Moderator or Admin.
Can anyone help me?
thx in Advance
hypedave
08-31-2002, 08:49 PM
Originally posted by Tha Rock
Open the attached file in the first post with notepad.
hey thanks I didnt think about opening install_warning.php up in notepad, off to instal now :bunny:
dont know if it will be any user to some, but attached is the install instructions in text file format
hyperdave: some hackers tend to just put install_ into their attachment filenames along with the .php file type thingy on the end ;) Always open them in notepad first and if they loook weird in notepad, it's probably either an install file or a vBhacker file ;)
Goldknight
08-31-2002, 10:34 PM
Originally posted by The Ghost
Hi,
I have a Problem.
I don't see the Warning Level: 0 [ View User Warnings ] [ Warn This User ] Links on the Admin User's, I think that is normal, but I don't see this link on some Users, too......
Look here:
http://www.root-shell-club.com/board/showthread.php?postid=28752#post28752
The User "Superw?ss" hasn't the Warning link in his post, but he isn't a Moderator, Super Moderator or Admin.
Can anyone help me?
thx in Advance
Hmm.. did you add new template and modify showthread and postbit?
And did you edit admin/functions.php and add codes from instruction?
Tim Wheatley
08-31-2002, 10:58 PM
Hi,
On our forums we publically name those who have been warned to show that it's 'three warnings you're out'... Because of this we've NEVER banned anyone from our forums in 3 years, because they KNOW that it'll be known by everyone what's happened. Is there any way the warnings level of a user can be shown to all members, but not allow them to see the 'warn this user' links?
hypedave
08-31-2002, 11:03 PM
I got the following error
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/ochroma/public_html/forums/admin/functions.php(308) : eval()'d code on line 41
when my members fo view threads
http://www.ochroma.net/forums/showthread.php?threadid=5193
Link14716
08-31-2002, 11:08 PM
Installed.... Worked Perfectly... (Found a good proxy...) Thanks for a great hack.
The only problem is I have a trigger happy admin here lol. ;)
Goldknight
09-01-2002, 12:51 AM
Originally posted by Tim Wheatley
Hi,
On our forums we publically name those who have been warned to show that it's 'three warnings you're out'... Because of this we've NEVER banned anyone from our forums in 3 years, because they KNOW that it'll be known by everyone what's happened. Is there any way the warnings level of a user can be shown to all members, but not allow them to see the 'warn this user' links?
Good idea, that s what is in my mind. I hope g-force2k2 will give it a shot. He is few inches away from becoming insane :p
Link14716
09-01-2002, 12:52 AM
sure.
Add $post[warnlvl] to your postbit ;)
Goldknight
09-01-2002, 12:53 AM
Originally posted by hypedave
I got the following error
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/ochroma/public_html/forums/admin/functions.php(308) : eval()'d code on line 41
when my members fo view threads
http://www.ochroma.net/forums/showthread.php?threadid=5193
uh? Can you give your code of that?
X-Fan
09-01-2002, 01:50 AM
Just wondering if there's any way that you can remove warnings from a user, short of having to do it through phpMyAdmin?
Link14716
09-01-2002, 02:06 AM
Admin CP.... the first link under it, it is somewhere there.....
Goldknight
09-01-2002, 02:18 AM
lol @ link14716...
Go to AdminCP --> View Warned List --> [revoke warning] or [revoke all warnings] to delete the warning off from user that you pick.
Tim Wheatley
09-01-2002, 03:19 AM
revoke is another way of saying remove.
'He had his license revoked' (he was banned from driving) is a normal usage of it. - not that I've ever been banned.
X-Fan
09-01-2002, 03:47 AM
Ah, cool, thanks!
The Ghost
09-01-2002, 09:19 AM
Originally posted by Goldknight
Hmm.. did you add new template and modify showthread and postbit?
And did you edit admin/functions.php and add codes from instruction?
Hi,
yes! It work's, but not for all Users......... I'm wondering.... :cry:
The Ghost
09-01-2002, 10:34 AM
hi again,
now I have more Informations.
it work's but not for all Users in all Posts.
Sometimes I see the link, sometimes not. It's not specific Users....
It is so a great Hack, please help me.
Goldknight
09-01-2002, 10:52 AM
Warning system are available only to Admin, SuperMod, and Moderator.
Which users you speak of? members? Moderator? SuperMod?
Edit: I check your link that you post to your board and it look fine to me. What do you mean about "users"?
The Ghost
09-01-2002, 10:59 AM
Hi,
I mean normal Members.
I don't see the link on every Members.
Look at the Screenies.
thx in Advance.
The Ghost
09-01-2002, 11:00 AM
and Screenie 2
Goldknight
09-01-2002, 11:10 AM
Ah, I got it. Thanks
Can you PM me your postbit and showthread template? I ll check thur if I can find the problem.
The Ghost
09-01-2002, 11:19 AM
Hi,
thx for your help!
Mystics from the vB Germany Support helped me.
I had an error in my Functions.php. I use the "Away Hack" and placed your code on the false place, so your Hack displays the link only on Offline Users. Very funny :D
Now it works fine!
Very Great Hack!
thx
Goldknight
09-01-2002, 11:21 AM
That s what I think. It s functions problem after all. Glad that you sort it out. =D Have fun with it. It s one of my fav hack
Edit: fyi it s not my hack, it s g-force2k2. I merely help him by beta testing, thanks to him for this hack but welcome anytime. ;)
Ice Man_00
09-01-2002, 11:22 AM
Originally posted by The Ghost
Hi,
I have a Problem.
I don't see the Warning Level: 0 [ View User Warnings ] [ Warn This User ] Links on the Admin User's, I think that is normal, but I don't see this link on some Users, too......
Look here:
http://www.root-shell-club.com/board/showthread.php?postid=28752#post28752
The User "Superw?ss" hasn't the Warning link in his post, but he isn't a Moderator, Super Moderator or Admin.
Can anyone help me?
thx in Advance
Just want to say, WOW !! Amazing hack if it had worked :p
I also have the same problem as he does, still nothing shown in postbit, and Yes i have installed it twice to be shure. but nothing still shows. Any clue ??
Thx.
Goldknight
09-01-2002, 11:33 AM
Under all members or some of members?
If all member, be sure to check your postbit and showthread
Ice Man_00
09-01-2002, 12:55 PM
This is my showthread template
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><title>$bbtitle - $thread[title]</title>
$headinclude
<script language="javascript" type="text/javascript">
<!--
function aimwindow(aimid) {
window.open("member.php?s=$session[sessionhash]&action=aimmessage&aim="+aimid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=no,wi dth=175,height=275,resizeable=yes,status=no")
}
function openeditsigwindow(x,y,sessionhash,userid) {
window.open("moderator.php?action=editsig&s="+sessionhash+"&userid="+userid, "EditSig", "toolbar=no,scrollbars=yes,resizable=yes,width="+x+",height="+y);
}
// -->
<!-- Warnings Hack v1.0 [ g-force2k2 ] -->
function showwarnings(userid) { window.open
("warn.php?s=&action=show_warn&userid="+userid,
"show_warn", "toolbar=no,scrollbars=yes,resizable=yes,width=600, height=350"); }
function addwarnings(postid) { window.open
("warn.php?s=&action=add_warn&postid="+postid,
"add_warn", "toolbar=no,scrollbars=yes,resizable=yes,width=350, height=150"); }
<!-- Warnings Hack v1.0 [ g-force2k2 ] -->
</script>
</head>
And this is my postbit template :
<td bgcolor="$post[backcolor]" width="100%" valign="top">
<smallfont>$post[icon] <b>$post[title]</b></smallfont>
<p><normalfont>$post[message]</normalfont></p>
$post[attachment]
<p>$post[signature]</p>
<p>$post[editedby]</p>
<!-- Warnings Hack v1.0 [ g-force2k2 ] -->
<p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]<br>
$post[warnings]</smallfont></p>
<!-- Warnings Hack v1.0 [ g-force2k2 ] -->
</td>
</tr>
Hmm....and btw, it dosen`t show on any members, admins, or other registrered members. Can it do something with the config.php file ??
Where the path is: shall it stand the path on the server, i mean like /www/home/vbulletin/forum
or just /forum ??????
And on the usergroupID i have put in more than just one (but i have tried with just one also, same thing) like userid, 2,3,4,5 with "," and not "."
Cheers
NTLDR
09-01-2002, 03:57 PM
Originally posted by hypedave
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/ochroma/public_html/forums/admin/functions.php(308) : eval()'d code on line 41 [/B]
You haven't edited the code correctly ;)
g-force2k2
09-01-2002, 04:11 PM
Ice Man the warnconfig.php goes in the admin directory... also make sure that you edited the admin/functions.php correctly... regards...
g-force2k2
Gohan
09-01-2002, 06:45 PM
Great hack! i love you :p
i'll asap installation it
Hack looks fine and shows on board but i cant warn no one as i get page not displayed
i can enter the details why they were warned then when i press return thats when i get no page so a path is wrong and i thinl ots this one
$fdname = "/VBB/"; // forum directory folder name
that is path to my vbb folder so where am i going wrong ?
Also Just relised from the pics in the first post that my warning box dont have the button GO on it .
I did all templates as well so not sure why the button aint showed.
g-force2k2
09-02-2002, 01:28 AM
Mr_P did you change the global $gobutton template by any chance? because its the same gobutton as everywhere on the forums really... regards...
g-force2k2
eXtremeTim
09-02-2002, 02:28 AM
Very Nice Hack :)
I will most definatly install this one.
nope aint changed the button and the go button appears on the forum as normal (just not on that warn box).
To be honest i would`nt ov even knew it was missing to i compared mine to the pics you posted at beginning of thread.
I re-did hack just in case i missed anything but still same
also $fdname = "/VBB/"; // forum directory folder name
is the above correct ?
got the button to show by robbing the following code from showthread and inserted it in here
<td bgcolor="#13486D"><smallfont color="#FFFFFF">Reason for Warning:<br><input type="text" name="reason" value="" maxlength="100" size="30">
$gobutton $gobutton <input type="image" src="https://vborg.vbsupport.ru/images/go.gif" border="0"
align="absbottom">
</td></tr><tr>
now when i enter data and warn them and then hit go i still get the page not displayed.
This has something to do with this dont it but i tried all sorts and it still page not displayed ........Any Ideas?
also $fdname = "/VBB/"; // forum directory folder name
is the above correct ?
Not Found
The requested URL was not found on this server
What file is it actually looking for when the Go button is pressed is it warn.php if so then the path above is correct to the vbb folder so warn should be found automatically.
nope sorry it fines the extra crap above was me when i was editing the code i forgot to remove excess after messing with it.
I have it all going - everything shows except when i click go i get page not found on this server - if i can solve that then hack is complete and cheers Erwin.
Erwin
09-02-2002, 10:29 AM
Installed with no problems... with some minor modifications, specifically using my own JS window opening script. :) Thanks!
Erwin
09-02-2002, 10:52 AM
Also, don't forget to add the following code to the warn_show and warn_add templates right at the top before any of the HTML:
<head>
$headinclude
</head>
This is so that the < normalfont> tags would work. :)
Gohan
09-02-2002, 10:55 AM
Perfect working but one problem
my forum have not folder just only root folder
http://saxxon.squadcenter.de/
so must i change to?
$fdname = ""; // forum directory folder name
Erwin
09-02-2002, 11:02 AM
No, use this:
$fdname = "/";
Obi-Wan
09-02-2002, 11:34 AM
Originally posted by muliman
I found a little Bug in the getinfo_warning template:
Here the original (getinfo_warning):
change to:
Now the link to "View User Warnings" can be found...
Greets,
muliman
Thx m8...was about to ask about it:)
Gohan
09-02-2002, 03:01 PM
Originally posted by Erwin
No, use this:
$fdname = "/";
Thank ya man!
g-force2k2
09-02-2002, 03:54 PM
thanks for the help Erwin ;)
btw Mr. P do you have this coding in the warn_add template?
<form action="$PHP_SELF" method=post>
<input type="hidden" name="action" value="insert_warn">
because im not sure about why you're getting a blank page... its seems like the action isn't being carried through properly... regards...
g-force2k2
hypedave
09-02-2002, 05:23 PM
Originally posted by Goldknight
uh? Can you give your code of that?
welp that place is about to go through a major re do in a couple of days, so im not gonna worry about it right now. I have installed this on my test board thats going live anyday now
I have to problems
with my server being an NT IIS Server, what is the correct path I need for this coding
$fdname = "forum"; // forum directory folder name
I tryed c:\\folder\\forum location
but that didnt work
aslo when I click the warn user link
I get this following error
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
would it be because of my $fdname path???
g-force2k2
09-02-2002, 05:33 PM
hyperdave for the directory problems try replace all instances of:
/$fdname
with:
..
see if that fixes that problem... as for the warn user link... maybe because its javascript? im not sure...
Edit: you can try replace the javascipt link with:
<a href='warn.php?s=$session[sessionhash]&action=add_warn&postid=$post[postid]'>[ Warn User ]</a>
see if that works? regards...
g-force2k2
hypedave
09-02-2002, 06:02 PM
hey I figured my problem out, it would help if I read the directions on where to upload files, dont me how I did this, but I uploaded all the files to the admin directory. any who going to make atest account and ban the heck out of it.
thanks for the speedy help, i'll beback if I finder more problems
g-force2k2
09-02-2002, 06:21 PM
lol ;) glad that you figured it out hypedave :) enjoy man... have fun banning the heck out of the tester :p regards...
g-force2k2
hypedave
09-02-2002, 06:24 PM
I got a addon request for you. Add an option to email the user to let him know his account has been banned, even if he has the option to recieve emails blocked, cause if you pm the user he cant check his pm if that feature is disabled for that banned group
thanks
seems no matter what i do as soon as i press the go button i get a url not found on this server error
my board is in a folder called vbb so this is correct path so unsure where to go now.
also i tried the different hyperlink as listed above and got nowhere with that.
$fdname = "/vbb"; // forum directory folder name
If i use following hyperlink i get following :
<a href='warn.php?s=$session[sessionhash]&action=add_warn&postid=$post[postid]'>[ Warn User ]</a>
Sorry but the post that you're trying to warn the user for doesn't exist! Please go back and confirm the postid.
ZiRu$
09-02-2002, 08:10 PM
DAMNNNN dogg.....your my favorite hacker now :)
congratz
* ZiRu$ goes off to install it
Erwin
09-02-2002, 08:28 PM
Originally posted by g-force2k2
thanks for the help Erwin ;)
You're welcome. :)
ZiRu$
09-02-2002, 08:40 PM
....hmm.....MODERATORS see it....but I don't see it...I AM NOT A ADMIN....i am a custom group with super mod priviledges ????
ryancooper
09-02-2002, 09:41 PM
looks cool, clicks install
Erwin
09-03-2002, 12:14 AM
You need to edit the user permissions in warn.php in 2 spots - look for where all the usergroupid permissions are listed, and add your own.
g-force2k2
09-03-2002, 12:16 AM
Mr.P where are you placing the link on the postibt? Cause the error you're recieving is an postid error meaning the postid doesn't exist... try putting one in... ie: postid=250
Zirus if you want another usergroup included you have to add them... i can show you how to go about this if you like... regards...
g-force2k2
ZiRu$
09-03-2002, 01:46 AM
Originally posted by g-force2k2
Zirus if you want another usergroup included you have to add them... i can show you how to go about this if you like... regards...
g-force2k2
yep.......thx i really need that
ALSO....in the ugh i forget it...It's the CONFIG php file it asks you for the directory of your forum
the default it "forum" but i have no sub-directory like vbulletin does......and if i remove it....it messes up
so thats 2 problems
g-force2k2
09-03-2002, 01:50 AM
Zirus in the instances of /$fdname in the admin_warning.php just replace them with: .. thats should do the trick ;) regards... and i'll fix in the other usergroup for you if you like... just need a usergroupid? unless you can do it on your own? regards...
g-force2k2
Parker Clack
09-03-2002, 02:58 PM
g-force2k2
I think this is a great hack.
Anyway of making this so that you send an email to the member instead of a private message or in addition to the private message?
Parker
ZiRu$
09-03-2002, 03:09 PM
Originally posted by g-force2k2
Zirus in the instances of /$fdname in the admin_warning.php just replace them with: .. thats should do the trick ;) regards... and i'll fix in the other usergroup for you if you like... just need a usergroupid? unless you can do it on your own? regards...
g-force2k2
ok thx i'll try that........um......where in the hack do i put in the cutom id......let's just say the group is 99....how can i do it?
Originally posted by Link14716
sure.
Add $post[warnlvl] to your postbit ;)
Okay finally managed to sort this hack and it works well so well done m8 but i would like to quote post above as the link dont work.
You need to put <b>$post[warninglvl] <-=- that</b>
I have mine set to 10 warning and your out so it looks like this
$post[warninglvl]/10
All in all top hack.
g-force2k2
09-03-2002, 05:01 PM
glad to hear Mr.P Parker i'll work on an email addon extremely shortly...
Zirus i'll code up your addon as well once i get home from college :P regards...
g-force2k2
Parker Clack
09-03-2002, 06:39 PM
In found a spot in the warn_show_warn template that is hardcoded that can give you some trouble in getting to the correct place.
You have:
<tr><td bgcolor="$backcolor" width="15%"><smallfont color="{pagetextcolor}"><b><a href="/forum/member.php?s=&action=getinfo&userid=$userid">$username</a></b></smallfont></td>
The problem is with the:
<a href="/forum/member.php?
If your board's forum is not in the forum directory then the above link will not work.
Parker
ryans
09-03-2002, 10:28 PM
I'm having problems too. I really need this to get working too. I've looked over everything numerous times.
Is it my user group permission?
1 Unregistered / Not Logged In Guest
2 Registered SRO Member
3 Users Awaiting Email Confirmation
4 (COPPA) Users Awaiting Moderation
29 Super Moderators Super Moderator
31 Moderators
28 super admin
33 Banned by Moderators
36 Banned By Warnings
My warnconfig looks like this:
$logsperpage = "20"; // warning logs to show per page
$fdname = "/web/docs/www.streetracing.org/htdocs/boards";
$reggroup = "2"; // usergroupid for registered users
$banlimit = "5"; // number of warings before user is banned
$banusergroup = "36"; // usergroupid of the banned group by warnings!
$allowmodwarn = "1"; // allows moderators to warn other moderators? (1 for yes :: 0 for no)
// +++++++ warning hack v1.0 configuration [ g-force2k2 ] +++++++
any clues?
do i have to edit my warn.php file? I'm running 2.27.
thanks!
ryan
g-force2k2
09-03-2002, 10:39 PM
yeah ryans... if you look through my hack you have to replace all the usergroupid with the ones that fit your forum needs... if you want i can go through the list for you regards... im currenlty starting a version 2.0 to solve some issues like this and also to make it better... regards...
g-force2k2
Ice Man_00
09-03-2002, 10:43 PM
Hey cool. Then th rest of us who had problems wait for the easier part one :p
Thx g-force2k2 you doing a great work
Cheers
g-force2k2
09-03-2002, 10:47 PM
open admin/functions.php
find:
// +++++++ Warning Hack [ g-force2k2 ] +++++++
if($bbuserinfo[usergroupid] == 5 OR $bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 7) {
$post[warnings] = "<b>Warning Level:</b> $post[warninglvl] <a href='javascript:showwarnings($post[userid])'>[ View User Warnings ]</a> <a href='javascript:addwarnings($post[postid])'>[ Warn This User ]</a>";
} else {
$post[warnings] = "";
}
// +++++++ Warning Hack [ g-force2k2 ] +++++++
replace with:
// +++++++ Warning Hack [ g-force2k2 ] +++++++
if($bbuserinfo[usergroupid] == 31 OR $bbuserinfo[usergroupid] == 28 OR $bbuserinfo[usergroupid] == 29) {
$post[warnings] = "<b>Warning Level:</b> $post[warninglvl] <a href='javascript:showwarnings($post[userid])'>[ View User Warnings ]</a> <a href='javascript:addwarnings($post[postid])'>[ Warn This User ]</a>";
} else {
$post[warnings] = "";
}
// +++++++ Warning Hack [ g-force2k2 ] +++++++
open member.php
find:
// +++++++ Warning Hack [ g-force2k2 ] +++++++
if(($bbuserinfo[usergroupid] == 5 OR $bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 7) AND ($userinfo[warninglvl] > 0)) {
eval("\$getinfo_warning = \"".gettemplate("getinfo_warning")."\";");
} else {
$getinfo_warning = "";
}
// +++++++ Warning Hack [ g-force2k2 ] +++++++
replace with:
// +++++++ Warning Hack [ g-force2k2 ] +++++++
if(($bbuserinfo[usergroupid] == 31 OR $bbuserinfo[usergroupid] == 28 OR $bbuserinfo[usergroupid] == 29) AND ($userinfo[warninglvl] > 0)) {
eval("\$getinfo_warning = \"".gettemplate("getinfo_warning")."\";");
} else {
$getinfo_warning = "";
}
// +++++++ Warning Hack [ g-force2k2 ] +++++++
And then upload this as your new warn.php regards... this should do the trick :)
g-force2k2
g-force2k2
09-03-2002, 10:49 PM
see above ryans :) regards... hopefully it works ;)
g-force2k2
ryans
09-03-2002, 11:01 PM
Awesome, that puts the links in there. But 2 problems. The links show click here:
View Users Warnings:
http://www.sromagazine.com/boards/java%20script:showwarnings(15668)
and
Warn User:
http://www.sromagazine.com/boards/java%20script:addwarnings(252222885)
I did edit the showthread
{htmldoctype}
<html>
<head><title>$bbtitle - $thread[title]</title>
$headinclude
<script language="javascript" type="text/javascript">
<!--
function aimwindow(aimid) {
window.open("member.php?s=$session[sessionhash]&action=aimmessage&aim="+aimid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=no,wi dth=175,height=275,resizeable=yes,status=no")
}
// -->
<!-- Warnings Hack v1.0 [ g-force2k2 ] -->
function showwarnings(userid) { window.open
("warn.php?s=&action=show_warn&userid="+userid,
"show_warn", "toolbar=no,scrollbars=yes,resizable=yes,width=600, height=350"); }
function addwarnings(postid) { window.open
("warn.php?s=&action=add_warn&postid="+postid,
"add_warn", "toolbar=no,scrollbars=yes,resizable=yes,width=350, height=150"); }
<!-- Warnings Hack v1.0 [ g-force2k2 ] -->
</script>
</head>
ryans
09-04-2002, 04:30 AM
any suggestions on this? When I click the link (View Users Warning) it clicks to:
http://www.sromagazine.com/boards/java%20script:showwarnings(19653)
bonnmac
09-04-2002, 08:30 AM
Originally posted by g-force2k2
Zirus if you want another usergroup included you have to add them... i can show you how to go about this if you like... regards...
g-force2k2 [/B]
Hi g-force2k2...
Could you please tell me how to add another usergroup? I've installed the lesser admin hack and I'd like to add that group to the ones that have permissions. The user groupid is 8...
Thanks :)
X-Fan
09-04-2002, 10:21 AM
Apologies in advance if this has been asked before, but how is it possible to have the number of warnings that's displayed in postbit and on the userinfo page made public so that all users can see them? I'd like for those that have been warned to know how many warnings they've got.
g-force2k2
09-04-2002, 11:11 AM
bonnmac i can create it for you if you like...
X-Fan simply but in your postbit...
Warning Level: $post[warninglvl]
regards...
g-force2k2
bonnmac
09-04-2002, 11:27 AM
Originally posted by g-force2k2
bonnmac i can create it for you if you like...
regards...
g-force2k2
That would be greatly appreciated. Thanks... :)
X-Fan
09-04-2002, 11:32 AM
Thanks!
g-force2k2
09-04-2002, 01:23 PM
Originally posted by bonnmac
That would be greatly appreciated. Thanks... :)
okay whats the exact usergroupid and what permissions do you want them having? ability to warn moderators etc? regards...
g-force2k2
bonnmac
09-04-2002, 01:25 PM
It's usergroup id # 8 and I'd like them to have full permissions like admins do. Please. And Thanks. :)
g-force2k2
09-04-2002, 01:27 PM
i will have it done later today right now i have to get back to doing my classwork :p but i'll have it done asap regards ;)
g-force2k2
bonnmac
09-04-2002, 01:40 PM
NP Take your time. Classwork is important. :) I just appreciate the fact that your willing to take the time to help me. Once again I might add.
g-force2k2
09-04-2002, 01:57 PM
btw ryans... im not an expert at javascript so im not sure... make sure that you hacked the admin/functions.php and the showthread.php regards...
g-force2k2
g-force2k2
09-04-2002, 02:03 PM
bonmac...
open admin/functions.php
find:
// +++++++ Warning Hack [ g-force2k2 ] +++++++
if($bbuserinfo[usergroupid] == 5 OR $bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 7) {
$post[warnings] = "<b>Warning Level:</b> $post[warninglvl] <a href='javascript:showwarnings($post[userid])'>[ View User Warnings ]</a> <a href='javascript:addwarnings($post[postid])'>[ Warn This User ]</a>";
} else {
$post[warnings] = "";
}
// +++++++ Warning Hack [ g-force2k2 ] +++++++
replace with:
// +++++++ Warning Hack [ g-force2k2 ] +++++++
if($bbuserinfo[usergroupid] == 5 OR $bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 7 OR $bbuserinfo[usergroupid] == 8) {
$post[warnings] = "<b>Warning Level:</b> $post[warninglvl] <a href='javascript:showwarnings($post[userid])'>[ View User Warnings ]</a> <a href='javascript:addwarnings($post[postid])'>[ Warn This User ]</a>";
} else {
$post[warnings] = "";
}
// +++++++ Warning Hack [ g-force2k2 ] +++++++
open member.php
find:
// +++++++ Warning Hack [ g-force2k2 ] +++++++
if(($bbuserinfo[usergroupid] == 5 OR $bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 7) AND ($userinfo[warninglvl] > 0)) {
eval("\$getinfo_warning = \"".gettemplate("getinfo_warning")."\";");
} else {
$getinfo_warning = "";
}
// +++++++ Warning Hack [ g-force2k2 ] +++++++
replace with:
// +++++++ Warning Hack [ g-force2k2 ] +++++++
if(($bbuserinfo[usergroupid] == 5 OR $bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 7 OR $bbuserinfo[usergroupid] == 8) AND ($userinfo[warninglvl] > 0)) {
eval("\$getinfo_warning = \"".gettemplate("getinfo_warning")."\";");
} else {
$getinfo_warning = "";
}
// +++++++ Warning Hack [ g-force2k2 ] +++++++
last but not least upload the new warn.php in replacement of the older one... (attached below)
hopefull that'll do the trick bonmac :) regards and enjoy...
g-force2k2
bonnmac
09-04-2002, 03:45 PM
Thanks g-force! But I'm sorry to bug you again. After applying the new settings I'm getting this error?
"The requested URL /forums/java script:addwarnings(162) was not found on this server"
Any ideas? It worked before?
ryans
09-04-2002, 03:57 PM
Originally posted by bonnmac
Thanks g-force! But I'm sorry to bug you again. After applying the new settings I'm getting this error?
"The requested URL /forums/java script:addwarnings(162) was not found on this server"
Any ideas? It worked before?
that's pretty much the same error i get. :)
ryans
09-04-2002, 04:51 PM
Originally posted by bonnmac
Thanks g-force! But I'm sorry to bug you again. After applying the new settings I'm getting this error?
"The requested URL /forums/java script:addwarnings(162) was not found on this server"
Any ideas? It worked before?
Ok I figured it out. Edit function.php and where you made the changes, change "java script" to "javascript". This is done in two place i believe.
g-force2k2
09-04-2002, 06:00 PM
thank you much ryans :) i will apply the changes ;) im currently working on version two at the moment since it was very popular :p this one will be easier to configure and alot more expansive if you can believe that :) regards...
g-force2k2
kaost451
09-04-2002, 08:58 PM
this is one of the best hacks I've seen, very nice.
X-Fan
09-04-2002, 11:26 PM
g-force2k2, after adding...
$post[warninglvl]
...to my postbit template, now admins and mods don't get the links to warn the user. Any idea why this might have happened?
g-force2k2
09-05-2002, 12:13 AM
X-Fan just remove the $post[warninglvl] from the postbit template then open admin/functions.php
find:
if($bbuserinfo[usergroupid] == 5 OR $bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 7) {
$post[warnings] = "<b>Warning Level:</b> $post[warninglvl] <a href='javascript:showwarnings($post[userid])'>[ View User Warnings ]</a> <a href='javascript:addwarnings($post[postid])'>[ Warn This User ]</a>";
} else {
$post[warnings] = "";
}
replace with:
if($bbuserinfo[usergroupid] == 5 OR $bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 7) {
$post[warnings] = "<b>Warning Level:</b> $post[warninglvl] <a href='javascript:showwarnings($post[userid])'>[ View User Warnings ]</a> <a href='javascript:addwarnings($post[postid])'>[ Warn This User ]</a>";
} else {
$post[warnings] = "<b>Warning Level:</b> $post[warninglvl]";
}
regards hope that works :)
g-force2k2
ZiRu$
09-05-2002, 12:14 AM
Originally posted by g-force2k2
Zirus i'll code up your addon as well once i get home from college :P regards...
g-force2k2
???????? hehe
g-force2k2
09-05-2002, 12:18 AM
my bad mate... i'll do it now :p regards...
open admin/functions.php
find:
if($bbuserinfo[usergroupid] == 5 OR $bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 7) {
$post[warnings] = "<b>Warning Level:</b> $post[warninglvl] <a href='javascript:showwarnings($post[userid])'>[ View User Warnings ]</a> <a href='javascript:addwarnings($post[postid])'>[ Warn This User ]</a>";
} else {
$post[warnings] = "";
}
replace with:
if($bbuserinfo[usergroupid] == 5 OR $bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 7 OR $bbuserinfo[usergroupid] == 99) {
$post[warnings] = "<b>Warning Level:</b> $post[warninglvl] <a href='javascript:showwarnings($post[userid])'>[ View User Warnings ]</a> <a href='javascript:addwarnings($post[postid])'>[ Warn This User ]</a>";
} else {
$post[warnings] = "";
}
open member.php
find:
if(($bbuserinfo[usergroupid] == 5 OR $bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 7) AND ($userinfo[warninglvl] > 0)) {
eval("\$getinfo_warning = \"".gettemplate("getinfo_warning")."\";");
} else {
$getinfo_warning = "";
}
replace with:
if(($bbuserinfo[usergroupid] == 5 OR $bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 7 OR $bbuserinfo[usergroupid] == 99) AND ($userinfo[warninglvl] > 0)) {
eval("\$getinfo_warning = \"".gettemplate("getinfo_warning")."\";");
} else {
$getinfo_warning = "";
}
And then i'll do the php file right away ;) sorry man... college is >_O btw im working on version 2 it'll be much more versitile... regards...
edit: just upload the new warn.php to the forum directory ... regards again...
g-force2k2
bonnmac
09-05-2002, 02:46 AM
Originally posted by ryans
Ok I figured it out. Edit function.php and where you made the changes, change "java script" to "javascript". This is done in two place i believe.
Thanks very much! That fixed the problem. Much appreciated :)
X-Fan
09-05-2002, 09:44 AM
Originally posted by g-force2k2
regards hope that works :)
Looks like it worked indeed, thanks gf!
thefreestyler
09-05-2002, 09:50 AM
Hello
I have just installed your lovely hack but when i click on a on view warm for a member who haven't yet any warming the following message appears:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in c:\easyphp\www\public_html\forums\warn.php(32) : eval()'d code on line 1
Can you tell me if its a bug or me who have made mistake
thank you
g-force2k2
09-05-2002, 05:07 PM
thefreestyle can you attach the warn.php file? thanks in advance... i will debug it if necessary... regards...
g-force2k2
thefreestyler
09-05-2002, 05:59 PM
hy g-force2k2 for the file it's the same as in the zip you have attached may be i have made a mistake when i installed it
please tell me if it works fine for you when a member have no warm and you click on view warm if so i will reinstall
thank you in advance
regards
g-force2k2
09-05-2002, 07:24 PM
not really sure thefreestyler it seems fine on my side? have any idea if you made any changes to the php file? because its saying that there's a parse error with the file... regards...
g-force2k2
thefreestyler
09-06-2002, 09:42 AM
ok thank you for your help i will reinstall it
Matt87
09-06-2002, 08:46 PM
You say that I can't edit it, that means I can't even modify it to fix the postbit template more nicely? :(
NTLDR
09-06-2002, 08:48 PM
Originally posted by Matt87
You say that I can't edit it, that means I can't even modify it to fix the postbit template more nicely? :(
g-force2k2 means that you can't make and release addons or distribute the code without his consent.
Modifying the post bit will be fine ;)
Matt87
09-06-2002, 08:52 PM
k ;)
So I can modify templates, just not release add ons? ok
I guess this goes the same for the total time online hack too
Great hack, works like a charm:)
Parker Clack
09-06-2002, 09:38 PM
g-force2k2:
Do you have a time frame for version 2.0? I really look forward to seeing what you have done for the next version and having the ability to email a member a warning.
Thanks,
Parker
g-force2k2
09-06-2002, 11:20 PM
Matt87 NTLDR is correct ;)
Parker Clack... release will be later tonight :) its looking extremely nice at this point :) will include and upgrade instructions from version 1.0 and it will require deleting all the templates but it will come with an installer this time ;) regards...
just having my man beta test it and all :) i already did but don't want to pass anything up :p regards...
Expect major modifications Parker... this is 2.0 not 1.1 :p not but seriously its looking really nice... alot more configurable and alot more optimizeable for everyone ;)
g-force2k2
Chris M
09-07-2002, 12:04 PM
Cool!:)
I cant wait!:)
Satan
I seem to be missing a file? warnconfig.php is not in the zip?
Shane_2k
03-30-2003, 06:43 PM
will this work with 2.2.2 has any one tryed
thanks
Willard Reece
12-07-2003, 06:38 PM
I seem to be missing a file? warnconfig.php is not in the zip?
yes really i see that myself..
whats up????
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.