
06-07-2005, 08:30 AM
|
 |
|
|
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
I've looked through the many pages and done a couple of searches to no avail. I'm having a little trouble when trying to view an articles forum. Have re-installed - no difference. Only hacks other hacks I have installed are CMPS & vBAGallery. Running 3.07 - all file edits were done manually, for some reason the script wasn't picking up the fact the folder existed. Here's the error...
Quote:
Database error in vBulletin 3.0.7:
Invalid SQL:
SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS preview,
thread.threadid, thread.title AS threadtitle, lastpost, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,
lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach , ga.iconpath,ga.synopsis, ga.byline
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
, NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid,
deletionlog.username AS del_username, deletionlog.reason AS del_reason
FROM thread AS thread
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1) LEFT JOIN geek_articles as ga ON(ga.threadid = thread.threadid)
LEFT JOIN geek_articles as ga ON(ga.threadid = thread.threadid)
LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
WHERE thread.threadid IN (0)
ORDER BY sticky DESC, lastpost DESC
mysql error: Not unique table/alias: 'ga'
mysql error number: 1066
|
Incase it makes a difference my showthread.php is named thread.php and forumdisplay.php is named forum.php - the references in the files are all amended as appropriate as far as I can tell.
Thanks Geek.
|