View previous topic :: View next topic |
Author |
Message |
Cyberian75
Joined: 26 Sep 2002 Posts: 1267 Location: Oregon
|
Posted: Thu Feb 12, 2004 9:38 pm Post subject: |
|
|
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).
 _________________ Michael P.
 |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 779 Location: Oslo, Norway
|
|
Back to top |
|
 |
evelyne
Joined: 12 Dec 2002 Posts: 23 Location: Delft - The Netherlands
|
Posted: Thu Feb 26, 2004 8:11 pm Post subject: too many records bug |
|
|
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 |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 1267 Location: Oregon
|
Posted: Thu Feb 26, 2004 8:24 pm Post subject: |
|
|
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 |
|
 |
ranmajen
Joined: 22 Nov 2004 Posts: 6
|
Posted: Wed Nov 24, 2004 4:56 pm Post subject: :) |
|
|
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 |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 1267 Location: Oregon
|
Posted: Wed Nov 24, 2004 7:05 pm Post subject: |
|
|
It already has direct links, and adding more would clutter it up. _________________ Michael P.
 |
|
Back to top |
|
 |
ranmajen
Joined: 22 Nov 2004 Posts: 6
|
Posted: Thu Nov 25, 2004 2:43 am Post subject: Hm.... |
|
|
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 |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 1267 Location: Oregon
|
Posted: Thu Nov 25, 2004 4:01 am Post subject: |
|
|
Don't you get links in forms of "[...]" or "[Post]"??? _________________ Michael P.
 |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 779 Location: Oslo, Norway
|
Posted: Thu Nov 25, 2004 9:15 am Post subject: |
|
|
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 |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 1267 Location: Oregon
|
Posted: Thu Nov 25, 2004 9:44 pm Post subject: |
|
|
I'm trying to modify this, I need help with it. The following is a part of the code...
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 |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 323
|
Posted: Thu Nov 25, 2004 11:43 pm Post subject: |
|
|
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 |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 1267 Location: Oregon
|
Posted: Fri Nov 26, 2004 12:40 am Post subject: |
|
|
It was a misplaced brace. _________________ Michael P.
 |
|
Back to top |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 1267 Location: Oregon
|
Posted: Fri Nov 26, 2004 1:33 am Post subject: |
|
|
Updated.  _________________ Michael P.
 |
|
Back to top |
|
 |
|