Topic: ERROR: Cannot Fetch Post Info
Ok, I just had the reputation mod installed worked 100% then I decided to add the image awards mod .... and I notice the 2 mods conflict a bit .. but I went through it anyways (they edited the same line, and just squeezed the rep mod code I was suppost to add back into the line where the image award mod told me to replace) and I get the error CANNOT FETCH POST INFO..... so I remove the little rep mod code I'm suppost to add in ... and everything is fine...... >__> but I need to fit this Rep Mod code back in so the reputation mod will work properly...
any suggestions??
code that I need to add back in somehow
#---------[ 7. FIND (line:186) ]---------------------------------------------------
#
u.num_posts, u.registered, u.admin_note,
#
#---------[ 8. AFTER ADD ]---------------------------------------------------
#
SUM(r.rep_plus) AS count_rep_plus, SUM(r.rep_minus) AS count_rep_minus, u.reputation_enable,
My current code w/ image awards mod and rep mod in there in there
(I've tried just to add it in there normally where it says ... but that doesn't work)
// Retrieve the posts (and their respective poster/online status)
$result = $db->query('SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note,SUM(r.rep_plus) AS count_rep_plus, SUM(r.rep_minus) AS count_rep_minus, u.reputation_enable, u.imgaward, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'users AS u ON u.id=p.poster_id INNER JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id LEFT JOIN '.$db->prefix.'online AS o ON (o.user_id=u.id AND o.idle=0) WHERE p.topic_id='.$id.' ORDER BY p.id LIMIT '.$start_from.','.$pun_user['disp_posts'], true) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
while ($cur_post = $db->fetch_assoc($result))
{
Thanks in advance.
-Geoff