Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > RPG Integration Hack
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
QUestion in FAQ Details »»
QUestion in FAQ
Version: , by asianboi asianboi is offline
Developer Last Online: Oct 2007 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-02-2005 Last Update: Never Installs: 0
 
No support by the author.

I know you have stated the solution to the problem below, but somehow I do not understand your solution. Please help me

Your Solution
Quote:
eh?
Well then, all you have to do is delete the "AND type = 'post'", then it will go away.
But I really suggest to upgrade to the latest version, as this query appears to come from an outdated and unsupported version.
Can you tell me which file to edit?




PHP Code:
Database error in vBulletin 3.0.7:

Invalid SQL: 
    SELECT
        post.*, post.username AS postusername, post.ipaddress AS ip,
        user.*, userfield.*, usertextfield.*,
        userfield.field5 AS rpgname,
        user.ma AS uma,user.hp AS uhp,user.pp AS upp,user.ap AS uap,
        rpg_items_user.*,
        rpg_battle_stats.*,
        rpg_race.name AS rpgracename,
        rpg_race.alignment AS rpgalignmentname,
        rpg_class.name AS classname,
           rpg_class.folder AS classfolder,
        rpg_element.name AS elename,
        rpg_clan.title AS clantitle,

        icon.title as icontitle, icon.iconpath,
        IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
        ,avatar.avatarpath, NOT ISNULL(customavatar.avatardata) AS hascustomavatar, customavatar.dateline AS avatardateline
        ,
        NOT ISNULL(deletionlog.primaryid) AS isdeleted,
        post_parsed.pagetext_html, post_parsed.hasimages
        
    FROM post AS post
    LEFT JOIN user AS user ON(user.userid = post.userid)
    LEFT JOIN userfield AS userfield ON(userfield.userid = user.userid)
    LEFT JOIN rpg_items_user AS rpg_items_user ON(rpg_items_user.userid=user.userid)
    LEFT JOIN rpg_battle_stats AS rpg_battle_stats ON(rpg_battle_stats.userid=user.userid)
    LEFT JOIN rpg_class AS rpg_class ON(rpg_class.id=user.rpgclass)
    LEFT JOIN rpg_element AS rpg_element ON(rpg_element.elementid=user.element)
    LEFT JOIN rpg_clan AS rpg_clan ON(rpg_clan.clanid=user.clan)
    LEFT JOIN rpg_race AS rpg_race ON(rpg_race.raceid=user.rpgrace)
        AND rpg_race.alignmentid=user.alignment

    LEFT JOIN usertextfield AS usertextfield ON(usertextfield.userid = user.userid)
    LEFT JOIN icon AS icon ON(icon.iconid = post.iconid)
    LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)
    LEFT JOIN deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
    LEFT JOIN post_parsed AS post_parsed ON(post_parsed.postid = post.postid)
    WHERE post.postid = 5064

mysql error: Column: 'type' in on clause is ambiguous

mysql error number: 1052 

Show Your Support

  • If you like to thanks you by the author -> Click Thanks to the Author
  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-03-2005, 04:31 AM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well the edit should be done to the same file in which you are recieving the error, IIRC showthread.php
Reply With Quote
  #3  
Old 05-03-2005, 11:22 AM
asianboi asianboi is offline
 
Join Date: Apr 2005
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks works like a charm in showpost.php
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:20 AM.


Powered by vBulletin® Version 3.9.0
Copyright ©2000 - 2017, vBulletin Solutions Inc.