boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Latest n Comments -- Rev. 0.5.2
Goto page Previous  1, 2, 3, 4, 5, 6, 7
 
Post new topic   Reply to topic    boardom Forum Index -> Hacks
View previous topic :: View next topic  
Author Message
Cyberian75



Joined: 26 Sep 2002
Posts: 1267
Location: Oregon

PostPosted: Thu Feb 12, 2004 9:38 pm    Post subject: Reply with quote

A popup option has been added. Please refer back to the instruction file for a modified function and a call method (new parameter at the end).

Smile
_________________
Michael P.

Back to top
View user's profile Send private message AIM Address
Sigg3



Joined: 03 Jul 2003
Posts: 779
Location: Oslo, Norway

PostPosted: Thu Feb 12, 2004 10:38 pm    Post subject: Reply with quote

Thanks, mate:)
It works just fine!
_________________
Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
evelyne



Joined: 12 Dec 2002
Posts: 23
Location: Delft - The Netherlands

PostPosted: Thu Feb 26, 2004 8:11 pm    Post subject: too many records bug Reply with quote

what kind of mysql settings are you refering to?
I do have the same problem with:
The SELECT would examine too many records and probably take a very long time. Check your WHERE and use SET OPTION SQL_BIG_SELECTS=1 if the SELECT is ok
_________________
--
Anything About Everything (in Dutch)
http://www.veel-in-een.nl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Cyberian75



Joined: 26 Sep 2002
Posts: 1267
Location: Oregon

PostPosted: Thu Feb 26, 2004 8:24 pm    Post subject: Reply with quote

That's probably something that your host set. I never saw that error myself. Try limitting it to 5 or less comments.
_________________
Michael P.

Back to top
View user's profile Send private message AIM Address
ranmajen



Joined: 22 Nov 2004
Posts: 6

PostPosted: Wed Nov 24, 2004 4:56 pm    Post subject: :) Reply with quote

I have installed this hack and it runs successfully.

But could I add one more feature to it? That is to add the post title & post id to the lastest comment shown after the date.

Someone said....
XXXXXXXXXXXXXXXXXX
Date
Post Title <- add this one with the post url....

How to do it?
Back to top
View user's profile Send private message
Cyberian75



Joined: 26 Sep 2002
Posts: 1267
Location: Oregon

PostPosted: Wed Nov 24, 2004 7:05 pm    Post subject: Reply with quote

It already has direct links, and adding more would clutter it up.
_________________
Michael P.

Back to top
View user's profile Send private message AIM Address
ranmajen



Joined: 22 Nov 2004
Posts: 6

PostPosted: Thu Nov 25, 2004 2:43 am    Post subject: Hm.... Reply with quote

That's suggested by my visitors since they don't know the shown comments in this section refer to which posts....especially someone add comments in older posts.. (I have experienced this before and tried hard to find which post that comment is referring to)

Or do you have another ideas?
Back to top
View user's profile Send private message
Cyberian75



Joined: 26 Sep 2002
Posts: 1267
Location: Oregon

PostPosted: Thu Nov 25, 2004 4:01 am    Post subject: Reply with quote

Don't you get links in forms of "[...]" or "[Post]"???
_________________
Michael P.

Back to top
View user's profile Send private message AIM Address
Sigg3



Joined: 03 Jul 2003
Posts: 779
Location: Oslo, Norway

PostPosted: Thu Nov 25, 2004 9:15 am    Post subject: Reply with quote

ranmajen, if you have a clear <h1> - sized "Comment on <?php the_title() ?>" on the top of your comments-popup, then the visitor will know what is commented. You can also include a link to that post, if necessary.
(The latter is not such a bad idea....:p)

Cyberian is right, though. Adding that feature would make it look really messy. And if you had _no_ comment on a post? It would look really messy.
_________________
Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Cyberian75



Joined: 26 Sep 2002
Posts: 1267
Location: Oregon

PostPosted: Thu Nov 25, 2004 9:44 pm    Post subject: Reply with quote

I'm trying to modify this, I need help with it. The following is a part of the code...
Code:
Deleted


The value for the LIMIT is passed as a parameter, and the SQL statement works fine in phpMyAdmin; however, it only displays 3 results no matter what I do. I believe the problem lies within the while statement, but I can't figure it out.
_________________
Michael P.



Last edited by Cyberian75 on Fri Nov 26, 2004 1:32 am; edited 1 time in total
Back to top
View user's profile Send private message AIM Address
stevem



Joined: 15 Mar 2003
Posts: 323

PostPosted: Thu Nov 25, 2004 11:43 pm    Post subject: Reply with quote

If you put
Code:
echo "Number of rows = ".mysql_num_rows($result)."<br>";
before the while loop do you get the same as the limit parameter or 3?
If it's correct the problem is probably in the while loop. It could be that there's something strange with the data you are using - maybe you should echo the first 4 rows and see if the 4th looks different from the other 3?
Back to top
View user's profile Send private message
Cyberian75



Joined: 26 Sep 2002
Posts: 1267
Location: Oregon

PostPosted: Fri Nov 26, 2004 12:40 am    Post subject: Reply with quote

It was a misplaced brace.
_________________
Michael P.

Back to top
View user's profile Send private message AIM Address
Cyberian75



Joined: 26 Sep 2002
Posts: 1267
Location: Oregon

PostPosted: Fri Nov 26, 2004 1:33 am    Post subject: Reply with quote

Updated. Smile
_________________
Michael P.

Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Hacks All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4, 5, 6, 7
Page 7 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group