vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Major Help Needed with Warning System Hack (https://vborg.vbsupport.ru/showthread.php?t=51757)

Rynthar 04-18-2003 03:09 AM

Major Help Needed with Warning System Hack
 
Hey guys. Really want Warning System, but it just wont seem to work =( Here is a conversation with Davey that explains the entire situation, what we tried, what I get, etc.

EDIT: Forgot to say I am on 2.3.0 and that I double checked that my code is correct numerous times

_______________________________________________


<Rynthar> Alright
<Rynthar> once I go to install_warning.php
<Rynthar> I click continue
<Rynthar> then I get...
<Rynthar> Query Installer: Running Queries Now!
<Rynthar> Creating Warning Logs Table.
<Rynthar> Warning Logs Table Successfully Created!
<Rynthar> Creating Warnings Table.
<Rynthar> Warnings Table Successfully Created!
<Rynthar> Inserting Defualt Warnings Into Warnings Table
<Rynthar> Defualt Warning Values Successfully Inserted!
<Rynthar> Altering User Table: Adding Warning Level.
<Rynthar> under that I get
<Rynthar> There seems to have been a slight problem with the Xoxide Forum Network database
<Rynthar> inside the database error box is
<Rynthar> Database error in vBulletin Control Panel 2.3.0:
<Rynthar> Invalid SQL: ALTER TABLE user ADD warninglvl int(10) NOT NULL DEFAULT '0'
<Rynthar> mysql error: Duplicate column name 'warninglvl'
<Rynthar> mysql error number: 1060
<Rynthar> Date: Thursday 17th of April 2003 09:46:44 PM
<Rynthar> Script: http://www.xoxideforums.com/admin/in...ing.php?step=2
<Rynthar> Referer: http://www.xoxideforums.com/admin/install_warning.php
<Rynthar> I mean, when I click on the links inside the admin cp it works
<Rynthar> the view warning list link works
<Rynthar> but like, nowhere in the postbit or anything does it show the persons warn levels or anything
<Rynthar> any help is extremely appreciated, the warning system is something i looked very forward to having
<Davey> Delete 'warninglvl'
<Rynthar> ?
<Rynthar> What do you mean
<Davey> You have access to phpMyAdmin?
<Rynthar> no I do not, I have SSH tho
<Rynthar> and the run db query from admin cp
<Davey> Ok umm.
<Rynthar> so those are what all those errors are tho lol
<Davey> Try running this query.
<Davey> ALTER TABLE user DEL warninglvl;
<Davey> Then try reinstalling the hack and tell me what happens.
<Rynthar> when i run the query
<Rynthar> I get Database error in vBulletin Control Panel 2.3.0:
<Rynthar> Invalid SQL: ALTER TABLE user DEL warninglvl;
<Rynthar> mysql error: You have an error in your SQL syntax near 'DEL warninglvl' at line 1
<Rynthar> mysql error number: 1064
<Rynthar> lol
<Davey> Try ALTER TABLE user DROP warninglvl;
<Davey> Sorry I'm not very good with ALTER TABLE.
<Davey> I don't exactly "use" it.
<Rynthar> its weird tho, I dont get any of the things that GForce has in screenie A, B, C, or D
<Rynthar> lol, i understand
<Rynthar> Running ALTER TABLE user DROP warninglvl; ... Success! =)
<Rynthar> I get this now... Database error in vBulletin Control Panel 2.3.0:
<Rynthar> Invalid SQL: INSERT INTO settinggroup VALUES (40, 'Warnings System', 40)
<Rynthar> mysql error: Duplicate entry '40' for key 1
<Rynthar> mysql error number: 1062
<Rynthar> *sighs*
<Davey> Now install it again.
<Rynthar> I did
<Rynthar> thats what I got
<Davey> Hmm.
<Rynthar> like, instead of that error 1060, i got the erro 1064
<Rynthar> you want admin access?
<Davey> Nah I'm okay.
<Davey> I can't help anymore than that.
<Rynthar> *sighs*
<Davey> Ask on vBulletin.org.
<Davey> Um.
<Rynthar> well, do you know where you actually see the screenshots A,B,C, and D?
<Davey> I would ask in Support.
<Davey> Sec.
<Rynthar> like as to why the postbit isnt there, etc
<Davey> ?
<Rynthar> https://vborg.vbsupport.ru/attachmen...&postid=296290
<Rynthar> like that
<Rynthar> I dont know where to see that or anything
<Rynthar> https://vborg.vbsupport.ru/attachmen...&postid=296292 and that and https://vborg.vbsupport.ru/attachmen...&postid=296293
_________________________________________

And thats where it ended =) When I get this working I got a spare Ekko Licence if someone wants one =)

EDIT: Also, I would be willing to give any of you dummy admin access since I am not sure whether I did some of the templates right since we have a custom postbit much different then the postbit in the install.txt file =(

DigitalDesktops 04-18-2003 03:34 AM

hmm, it looks like you have a duplicate column "warninglvl". try going into the user table and dropping that. try using this:

use these queries:

PHP Code:

DROP TABLE warnings_log

DROP TABLE warnings

ALTER TABLE user DROP warninglvl

DELETE FROM settinggroup WHERE displayorder
=44

DELETE FROM setting WHERE settinggroupid
=44

DELETE FROM template WHERE title IN
('warn_add','warn_banemail_notify','warn_banemail_subject','warn_error_cantwarngroup','warn_error_emptyreason','warn_error_maxwarnlimit','warn_error_noaccess','warn_error_noexist','warn_error_nowarnings','warn_error_postnoexist','warn_error_whywarnself','warn_getinfo_warning','warn_list','warn_listing','warn_pmemail_notify','warn_pmemail_subject','warn_pmno','warn_pmyes','warn_redirect_userban','warn_redirect_warnsuccess','warn_seelink','warn_show','warn_show_warn','warn_userinfo','warn_viewlink','warn_warnlink') AND templatesetid=-

Run install_warning.php again and see if it works.

Rynthar 04-18-2003 03:46 AM

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

I get that now

Rynthar 04-18-2003 03:53 AM

for the record, when I run /warn.php I get

Invalid SQL:
SELECT name, warnlvl, points
FROM warnings
ORDER BY (warnlvl) ASC, (worder) ASC
mysql error: Table 'xoxideforums_com.warnings' doesn't exist

mysql error number: 1146

drives fast 05-01-2003 07:00 PM

Quote:

Invalid SQL: INSERT INTO settinggroup VALUES (40, 'Warnings System', 40)
mysql error: Duplicate entry '40' for key 1
you have to go into your database and into the settinggroup table and remove that entry as well.
Quote:

Invalid SQL:
SELECT name, warnlvl, points
FROM warnings
ORDER BY (warnlvl) ASC, (worder) ASC
mysql error: Table 'xoxideforums_com.warnings' doesn't exist

mysql error number: 1146
you are getting that because you have not re-installed the database parts of the hack again after removing everything mentioned in this thread


All times are GMT. The time now is 01:10 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.00993 seconds
  • Memory Usage 1,743KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete