Urgent: Comments Stopped Diplaying after #500
Posted: 01 April 2005 05:59 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  258
Joined  01-21-2003

Anyone have an idea why this would happen, or better yet, what setting did I miss to cause this? I have over 500 comments on a time-critical post, and yet none of the ones after 500 are displaying.

Profile
 
 
Posted: 01 April 2005 06:00 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

EE has an inbuilt limit of 500 on the tags, for safety reasons.  You can override this by adding limit=“999” to the exp:comments tag.

 Signature 
Profile
MSG
 
 
Posted: 01 April 2005 06:05 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  258
Joined  01-21-2003

Thank you LJ. Is that documented anywhere? BTW, you may have saved me but only for a little while; I need to go higher than 999.

Profile
 
 
Posted: 01 April 2005 06:07 PM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  258
Joined  01-21-2003

And BTW, is that new? Because I did not know this before, and as recently as two months ago, I easily went past 500 comments on a post, and did not have the limit=999 in my tags then.

Profile
 
 
Posted: 01 April 2005 06:42 PM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

So put in 9999999. =)

No, that’s not new.  It’s been in forever.  I’m not sure if it’s documented anywhere, I learned about it a long time ago when Patch asked why his monthly archives were cutting off early. =)

 Signature 
Profile
MSG
 
 
Posted: 01 April 2005 06:42 PM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

Er, maybe not *forever* forever.  But it’s been in for as long as I’ve been using EE, I’m pretty sure. =)

 Signature 
Profile
MSG
 
 
Posted: 01 April 2005 06:55 PM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  258
Joined  01-21-2003

Oh, okay, so 999 is not an inherent limit either. Cool. Thanks. Wonder why I had no problem in January.

Profile
 
 
Posted: 01 April 2005 06:58 PM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

500 is the only automatic limit that I know of.  I just use 999 habitually for examples.

 Signature 
Profile
MSG
 
 
Posted: 01 April 2005 07:26 PM   [ Ignore ]   [ # 8 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

I would seriously encourage you to make use of comment pagination.  Displaying that many comments on a single page just seems crazy to me; I can’t imagine what the load time would be.  Paginations ought to make things a lot more manageable.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 01 April 2005 07:32 PM   [ Ignore ]   [ # 9 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  258
Joined  01-21-2003

Chris: Normally I would, and I still probably after my fundraiser is over, but right now, with a very stripped down display, it loads fine.

Check it out:

California Hammonds

Profile
 
 
Posted: 01 April 2005 07:34 PM   [ Ignore ]   [ # 10 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

12 mississippis on a pretty fast cable connection.  I’d suggest you paginate.  From what I’ve read, people give up after about 8 seconds =/

 Signature 
Profile
MSG
 
 
Posted: 01 April 2005 08:11 PM   [ Ignore ]   [ # 11 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  258
Joined  01-21-2003

But unless I missed something, comments get re-numbered on each page, yes? If so, that is no good for this exercise.

Profile
 
 
Posted: 02 April 2005 03:40 PM   [ Ignore ]   [ # 12 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

“re-numbered”?  I’m not sure what you’re referring to.

If you’re using an ordered list (<ol>) to display the comments then you’re right that the list would default to starting with 1 on each page unless you specify otherwise.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 03 April 2005 07:03 AM   [ Ignore ]   [ # 13 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  258
Joined  01-21-2003

Sorry I was unclear Chris, but you surmised correctly. Now that my fundraiser is over, I have in fact implemented comment pagination, and it seems to work well, but each page starts the numbering over. My guess is that there would not be much demand for comment numbering functionality that would transcend this limitation of the ordered list, but maybe I will throw in an FR anyway. I appreciated everyone’s very quick response. Thanks much.

Profile
 
 
Posted: 03 April 2005 10:31 AM   [ Ignore ]   [ # 14 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

You can specify the start value of the list if you want:

<ol start="50">

To get the value dynamically, you’d probably need to look in the URL for the pagination segment (”/P50/”).  Let’s say you have this URL:  http://www.example.com/index.php/weblog/comments/my_entry_title/P50/

In this case, the pagination information is in segment 4.  So, you need some PHP to grab the value:

<?php

$page
= "{segment_4}";

// set the offset to the pagination value, otherwise set to one
$offset = substr($page, 0, 1) == "P" ? substr($page, 1) : 1;

?>
<ol start="<?php echo $offset; ?>">


You’ll obviously need PHP parsing turned on in the Template.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 03 April 2005 11:24 AM   [ Ignore ]   [ # 15 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  258
Joined  01-21-2003

Hey thanks. If I can get that nailed down, it will make this sort of thing work better in the future.

I agree with LJ’s assessment that slow page loads can deter readers, though in this case, my readers had strong motivations to stick with it, and they did. Still, I don’t want to take it for granted, and anything I can do to get my desired functionality and a better viewer experience is worth exploring.

Thanks again.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64978 Total Logged-in Users: 28
Total Topics: 82017 Total Anonymous Users: 16
Total Replies: 440817 Total Guests: 177
Total Posts: 522834    
Members ( View Memberlist )