2 yabba Jun 28, 2006 11:09

Hmm ... that didn't work - it just put a 1 in front of the parentheses. Also, I'm getting an SQL error on my comments page - any other thoughts?
Warning: Invalid argument supplied for foreach() in /usr/local/4admin/apache/vhosts/autodogmatic.com/httpdocs/b2evocore/_functions_comments.php on line 41
MySQL error!
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') GROUP BY comment_post_ID, comment_type' at line 3(Errno=1064)
Your query:
SELECT comment_post_ID, comment_type, COUNT(*) AS type_count
FROM evo_comments
WHERE comment_post_ID IN ()
GROUP BY comment_post_ID, comment_type
Are you sure that $BItem is set? Your sql error is caused because the query isn't being given a post_ID.
¥
I'm not sure if the $BItem is set - how would I check?
replace the echo from the previous post and see if you get a screenfull of garbage ;)
// comment number stuff
print_r( $BItem );
if($recent_ShowCommentNumber)
¥
Recently
Jesus Loves You: Meaningful Love, Part IIitem Object ( [ID] => 163
*edit*
Removed bits to do with your DB
Doh!
Ok, try this :-
// comment number stuff
$savedItem = $Item;
$Item = $BItem;
if($recent_ShowCommentNumber)
{
echo '&npsp;<span class="dimmed">';
echo '(' . generic_ctp_number($Item->ID, 'feedbacks') . ')';
echo '</span>';
}
$Item = $savedItem;
¥
Hmm ... still getting this error:
MySQL error!
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') GROUP BY comment_post_ID, comment_type' at line 3(Errno=1064)
Your query:
SELECT comment_post_ID, comment_type, COUNT(*) AS type_count
FROM evo_comments
WHERE comment_post_ID IN ()
GROUP BY comment_post_ID, comment_type
[offtopic]
NealO, Is there any reason you decided not to inlcude a linkback to b2evolution in your blog skin? A linkback is not required, but it is considerate. Most skins include it by default. And many people in the forum like to see that link before they start giving you free tech support ([url=http://forums.b2evolution.net/viewtopic.php?t=7063]including YaBBa[/url].) Surely you have room for a b2evolution button at the bottom of your page with all fof the other badges. Every linkback helps promote the project.
[/offtopic]
personman wrote:
... Most skins include it by default ...
ALL skins include it, meaning everyone without it chose to remove it. Add me to the list of forum players who don't help those who can't give a little link-love to b2evolution.net.
the offtopic personman wrote:
NealO, Is there any reason you decided not to inlcude a linkback to b2evolution in your blog skin? A linkback is not required, but it is considerate. Most skins include it by default. And many people in the forum like to see that link before they start giving you free tech support (including YaBBa.) Surely you have room for a b2evolution button at the bottom of your page with all fof the other badges. Every linkback helps promote the project.
Damn, I'm getting old :p
As it happens, this one's got me stumped so I can't be of further use anyway.
¥
Personman,
Yeah I took that off way back when I first started tweaking b2e - I pretty much just wiped the footer clean. That said, I definitely owe some link love back to b2e and shouldn't have removed all homage to b2e. Thanks for pointing out my sloth - I'll get on fixing it.
Added it back - now all the world knows that the power behind autoDogmatic is b2e!
As it happens, this one's got me stumped so I can't be of further use anyway.
Unfortunately having a link hasn't unstumped me.
¥
Yeah I didn't expect that to change
I'd try adding an echo to make sure that $recent_ShowCommentNumber is set ;)
¥