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)

solent 05-08-2003 05:06 AM

had the same problem and here is what i did

donwload the new zip file located somewhere on the 2-3 page dont quite remember.

Then remove everything back as they were. (note i had some problems with the queries as they didn't alter the tables back to their previous state when you click the unistall hack on the intall.php file) so you have to go and remove those coloumn manually with phpMyAdmin. easy.

Then i re install and change files/templates and it worked like a charm.

i am using vb 2.3.0 as well.

GunsNetwork 05-08-2003 05:21 AM

I got it fixed. I did not put in the Banned by Warnings Group # under vb options in the Admin area.

It works just fine now. My bad.

solent 05-08-2003 05:24 AM

apparently my problem was different cause i had my warnings group setup correcly under the admin cp vb options.

anyway its good that it worked

Gary King 05-08-2003 10:55 AM

To solve this problem, all you need to do is submit the vBulletin Options even if you have not made any changes. This is so that the options are actually recorded into the database.

Holidazed 05-13-2003 12:45 AM

I have given rights to moderators to give warnings. However, how do I stop them from being able to give warnings in forums they do NOT moderate?

Andrew111888 05-13-2003 10:47 PM

I recently had to re-install this hack.

I am using all the correct codes, yet when I try to click "View user warnings" or "warn user" under the report to mod function, they do not click or open or anything.

Why is this? PLEASE HELP!

Gary King 05-13-2003 11:44 PM

Quote:

Today at 07:47 PM Andrew111888 said this in Post #446
I recently had to re-install this hack.

I am using all the correct codes, yet when I try to click "View user warnings" or "warn user" under the report to mod function, they do not click or open or anything.

Why is this? PLEASE HELP!

Have you uploaded the files? (warn.php and admin_warn.php I believe)

Also, make sure you go to vBulletin Options and hit Submit, even though you don't want to make any changes.

Andrew111888 05-14-2003 12:42 AM

Yes, I did all that. I went into phpmyadmin and found two warning tables. One was warnings which was fine, and when I clicked warnings_log it was empty. No rows, no nothing. I haven't issued a warning yet, but should it be empty? Also, are those the only two tables? Warnings and warnings_log? Thanks!

Andrew111888 05-14-2003 12:47 AM

UPDATE: It was unable to modify the user table. How do I manually update the user table, and do whatever it is I have to do?

Gary King 05-14-2003 12:49 AM

Please copy and paste what you see, it would certainly make things clearer.

sajjid 05-14-2003 01:46 AM

i am getting the following error when i try to install any help please

Database error in vBulletin Control Panel 2.3.0:

Invalid SQL: INSERT INTO settinggroup VALUES (40, 'Warnings System', 40)
mysql error: Duplicate entry '40' for key 1

mysql error number: 1062

Date: Wednesday 14th of May 2003 02:45:20 AM
Script: http://www.spinzone.org/forums/forums/admin/query.php
Referer:
Repair Report: This type of error cannot be automatically repaired.

Gary King 05-14-2003 02:08 AM

Looks like you already have it installed.

maxxxxxx 05-14-2003 11:21 AM

Hello i have installed this hack and become this message if i will see a user profile:

Fatal error: Call to undefined function: checkwarnlink() in /home/www/web3/html/vbulletin2/forum/member.php on line 1388


and on this line is this code
PHP Code:


$warntype 
checkwarnlink($bbuserinfo[usergroupid], 0); 

cu
thomas

Gary King 05-14-2003 07:42 PM

Quote:

Today at 08:21 AM maxxxxxx said this in Post #453
Hello i have installed this hack and become this message if i will see a user profile:

Fatal error: Call to undefined function: checkwarnlink() in /home/www/web3/html/vbulletin2/forum/member.php on line 1388


and on this line is this code
PHP Code:


$warntype 
checkwarnlink($bbuserinfo[usergroupid], 0); 

cu
thomas

You did not properly make the changes in functions.php

atomic fireball 05-15-2003 12:49 AM

Hey, I just wanted to say thanks for this excellent hack!

I installed 2.1 on my vB 2.30 system and it works great.

However, I am running into one issue with the showthread template in regards to the usertrade (eBay feedback tyep) hack I also have installed.

It looks like they both call for a window to be opened in their scripts, and since they are located in the same spot, it causes some code to be shown at the bottom of the showthread, and then the entire showthead repeats.

I know this isn't an issue related to this hack, but I'd like to have both working properly. Here's the problem area in showthead:

<script language="javascript" type="text/javascript">
<!--
function aimwindow(aimid) {
window.open("member.php?s=$session[sessionhash]&action=aimmessage&aim="+aimid,"_blank","toolbar=n o,location=no,menubar=no,scrol lbars=no,width=175,height=275,resizeable=yes,statu s=no")

}
function whotrade(userid) {

window.open("usertrade.php?s=$session[sessionhash]&action=show&rateuser="+userid, "whorated", "toolbar=no,scrollbars=yes,resizable=yes,width=640 ,height=480,left=0,top=0") ; }

// -->
<!-- Warnings Hack v2.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=400 ,height=200"); }

<!-- Warnings Hack v2.0 [ g-force2k2 ] -->
</script>
</head>

Could someone with some PHP guru skills, please point me in the right direction to a correction which can be made to get the script working correctly?

Thanks!

Gary King 05-15-2003 01:58 AM

Got a screenshot of the problem?

atomic fireball 05-15-2003 03:17 AM

Ewww...sorry, I don't. I just uninstalled the Warning System Hack until I could get it resolved. So I can't take a screenshot.

Basically, everything looked normal, but at the end of the page, you'd see:
----
w.open("usertrade.php?s=$session[sessionhash]&action=show&rateuser="+userid, "whorated", "toolbar=no,scrollbars=yes,resizable=yes,width=640 ,height=480,left=0,top=0") ; }
----

Then, the page would repeat. The header would follow again (at the bottom of the page...not a typo, it would be the header), and the entire thread would be displayed again, within one page.

Looks like both scripts are calling for the same open window action which is causing it to trip out.

Dark Shogun 05-17-2003 05:28 AM

Is there a way to use this for the warning system and not for the banning because I am going to be using the miserable banning system and just need something so people know they are warned.

Dark Shogun

Radgam 05-17-2003 09:24 AM

I guess you could just set the amount of points given for each warning to 0, or if it doesn't allow that ((i've not tested) then set each warning to 1 point and the points people are banned at to 100. Eitherway, that's a lot of warnings ;)

PixelFx 05-17-2003 09:25 AM

I just installed it, works good :)

Dark Shogun 05-18-2003 01:16 AM

Got it working.

Dark Shogun

Pezman 05-19-2003 10:01 PM

Quote:

05-14-03 at 12:47 AM Andrew111888 said this in Post #446
I recently had to re-install this hack.

I am using all the correct codes, yet when I try to click "View user warnings" or "warn user" under the report to mod function, they do not click or open or anything.

Why is this? PLEASE HELP!

I have the same problem.

I have upgraded to 2.3.0 from 2.2.9

Everything works fine in the admin control panel. I go into any forum and the Warn button and Warning Level produce blank pages. The only content when I view the source is:

<!-- BEGIN TEMPLATE: warn_add -->

<!-- END TEMPLATE: warn_add -->

I can't find a template named: warn_add

I already have this installed so I can't rerun the install_warnings.php again. Does anyone have advice?

Gary King 05-19-2003 10:44 PM

It's more than likely that you either didn't follow the template instructions properly, or one of your hacks doesn't work well with the warnings system hack.

Koutaru 05-19-2003 10:57 PM

Quote:

05-06-03 at 11:16 PM Fusion said this in Post #437
Does this hack support automatic decrease of warning-points in any way?

If members behave for awhile, this feature would be a good add on :) -- .. .. .. anyone?

Pezman 05-19-2003 11:24 PM

Quote:

Today at 12:44 AM Gary W said this in Post #463
It's more than likely that you either didn't follow the template instructions properly, or one of your hacks doesn't work well with the warnings system hack.
So it seems that the revised template system in 2.3.0 totally screwed me over. It deleted all non edited addon templates so I lost everything that I didn't mess with.

I fixed it by manually adding all the templates back to each set.



-------------------

I have a coded "delete warning points" hack I would have to ask the author before I pass it around but I'm willing to share it.

Holidazed 05-20-2003 01:17 AM

I have given rights to moderators to give warnings. However, how do I stop them from being able to give warnings in forums they do NOT moderate?

Draddog 05-24-2003 03:38 PM

I love this package, it has restored order to my forums. However I do have one request/nit pick. The Admin utility should be a bit stronger. It's pretty tough to remove points right now, especially if you want to remove warnings from a user. I don't always want to remove all a users warning points, instead I just may want to remove one particular warning from that user. Part of the problem is we have a lot of different warnings, so my moderation "staff" can't remember if warning X is worth 7 points or 4 points. So basically it just would be nice if, in the Warning Log section, there was the option to revoke the warning there. Also a way to remove warnings by time would be cool as well. I don't want warnings to last more then 90 days, and it would be nice to have a script that I could either remove them manual or cron to run daily.
Just some feedback.

obiwan8472 05-25-2003 12:03 PM

I agree with Draddog, these things would be cool!

Shauk 05-27-2003 05:27 AM

Ok so I took over Rynthars position and he took this hack with him, and the owners want it back on the site and I have the exact same problem as him.

the database appears to be valid and up and running.

the admin panel and the main page are showing the links to the warning hack

but theres nothing over in the post where it should me

heres my bit of code that I have put in there.

Code:

<tr>
        <td background="images/xoxide/postbit/header.gif" width="175" valign="top" nowrap>
        <a name="post$post[postid]"></a>
        $post[firstnewinsert]
        <normalfont><b>$post[username]</b></normalfont><br>
        <smallfont>$post[usertitle]</smallfont><br>
        $post[avatar]<p>
        <smallfont>Registered: $post[joindate]<br>
        Location: $post[field2]<br>
        Posts: $post[posts]<br>$onlinestatus</smallfont><br><br>
<center><a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="{imagesfolder}/edit.gif" border="0" alt="Edit/Delete Message"></a>&nbsp;<a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="{imagesfolder}/quote.gif" border="0" alt="Reply w/Quote"></a></center><center><a href="report.php?s=$session[sessionhash]&postid=$post[postid]" border="0"><img src="images/xoxide/design/report.gif" border="0"></a></center>       
        <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>
        <p align="right"><smallfont>$post[iplogged]<br>
                <p>$post[warnlink]</p></smallfont>
        </td>
</tr>

what is wrong?

tutorials.de 05-27-2003 03:00 PM

Hello,

you can belive me, that I'm not happy. I've lost more than 1 1/2 hours with this hack. I installed exactly as written in install_warning_txt.php but it didn't work. I - as a non-PHPler - noticed an error in the php-code with which I should replace the 'normal' code.

Furthermore, a lot of things weren't displayed. Finally, we decided to uninstall it again. Now it now, why there is uninstall-code in install_warning.php.

At all: Don't install this hack - it still hasn't reached beta.

Radgam 05-27-2003 03:11 PM

I've not actually had any problem with this hack other than my board title had an ' in it which caused the code to break. Everything else worked fine for me.

Shauk 05-27-2003 04:16 PM

well im trying to get this to work on xoxideforums.com

I think this thing busted the quick reply mod too.

I dont have database access (yet) i have a hunch that my problem is in there (sad thing is im better at mySQL than I am at php, which isnt saying much)

drives fast 05-27-2003 05:18 PM

there is nothing wrong with this hack....it workes perfectly on every version of vbulletin I have installed it on (including the latest full release)

if it doesn't work.....there was a mistake made in the install

Shauk 05-27-2003 05:23 PM

im sure the install instructions work for people who dont have heavily modded forums, however if you have checked out the site (http://www.xoxideforums.com) then you will quickly realize that the simple search and replace method isnt going to work.

if the author would please contact me I could get you copies of the edited files if youd like.

Radgam 05-27-2003 05:29 PM

My forums had quite a lot of hacks installed and it still worked fine. I don't really think there is anything wrong with this hack either :)

Shauk 05-27-2003 05:50 PM

ok I just talked to the ex admin who took them out he said it was the database entries dont work correctly because of previous mods using those entries or something. so I'll look into it later, anyone know what the database needs too look like exactly?

Shauk 05-28-2003 03:08 AM

ok I fixed it finally

the db tables on the install file have a ID of 40, changed it to 41 and ran the new amended php and it worked fine, BY THE WAY flaming does not have 2 m's

Intex 05-29-2003 01:16 PM

The instructions suggest there is a file named: warnconfig.php. A quick check of the zip file doesn't show this file.

Shauk 05-29-2003 01:27 PM

yeah that file doesnt exist. I think this hack has gone to the unsupported route, they need to update that text file, seriously.

Gaz.t 05-29-2003 06:59 PM

how do i find out the usergroup id

I can use the point system but its not banning !!

Thanx


All times are GMT. The time now is 10:50 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.02176 seconds
  • Memory Usage 1,838KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (5)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