The Arcive of vBulletin Modifications Site. |
|
Help with a few errors Details »»
|
|||||||||||||||||||||||||
Hi
I upgraded from zero's warning script to this one everything went fine however i am getting the following errors: Code:
Invalid SQL: select w.*,u.username as wusername,u.userid as wuserid,wt.*, wrn.username as warnername, wrn.userid as warnerid, ruser.username as removed_by_v, (w.warned_time+wt.warn_maturity*24*60*60) AS maturitydate from
vb_warnings w
left join vb_user u on(u.userid=383)
left join vb_user wrn on(wrn.userid=w.warned_by)
left join vb_user ruser on(ruser.userid=w.removed_by)
left join vb_warning_types wt on(wt.tid=w.warned_warning_id)
where w.warned_user='383' order by w.warned_time
mysql error: Unknown column 'w.removed_by' in 'on clause'
mysql error number: 1054
Code:
Invalid SQL: select * from vb_warnings where warned_post='12321' AND warned_status='A' mysql error: Unknown column 'warned_status' in 'where clause' mysql error number: 1054 any help please. Kirk Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
hi,
MySQL errors you are for some reason missing some requirerd tables in your database to add the "removed by" field run Code:
ALTER TABLE vb_warnings ADD COLUMN removed_by int(15); Code:
ALTER TABLE vb_warnings ADD COLUMN warned_status char(1); are you using more then one (the default) vbulletin style if so the install script only adds the aws templates to the master (default) style here's a hack that allows you to copy templates from one style to another |
|
#3
|
|||
|
|||
|
Quote:
Code:
alter table ".TABLE_PREFIX."warnings add `warned_status` char(1), add `caused_ban` char(1), add `removed_by` int(15), add `removed_date` int(15) |
![]() |
|
|