BlogHarbor Home Page
FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  UsergroupsRSS   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Recent visitors
 
Post new topic   Reply to topic    BlogHarbor Community Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
Aussie Dave



Joined: 09 Feb 2006
Posts: 17

PostPosted: Mon Mar 20, 2006 3:37 pm    Post subject: Recent visitors Reply with quote

Hi John,

My blog currently shows the 10 most recent visitors to the blog, despite the fact that I set the number to 20 in the relevant component. This is the code in the component:

{{if blog.recent_visitors}}
<div class="component">
<div class="componentHead">Recent Visitors</div>
<div class="componentContent">
<div class="componentRecentVisitors">
{{loop name=blog.recent_visitors limit=20}}
<div class="componentRecentVisitorsItem">
{{name}} - {{visit_time.month_name_short}} {{visit_time.day}}, {{visit_time.hour}}:{{visit_time.min}}{{visit_time.ampm}}&nbsp;
</div>
{{/loop}}
</div> <!-- componetRecentVisitors -->
</div> <!-- componentContent -->
</div> <!-- component -->
{{/if}} <!-- blog.recent_visitors -->

Why won't my blog show the 20 most recent visitors?

Thanks,

Dave
_________________
http://www.israellycool.com
Back to top
View user's profile Send private message Send e-mail
abacquer



Joined: 22 Mar 2004
Posts: 193

PostPosted: Mon Mar 20, 2006 4:44 pm    Post subject: Reply with quote

Because BlogHarbor's database retrieval routines will only show 10 or less. I'd like to have the 25 most recent articles listed in my sidebar but that's capped at 10 too. I believe this is done for performance reasons.
_________________
-- Abacquer, A.K.A. Chuck Seggelin
Back to top
View user's profile Send private message Send e-mail Visit poster's website
john
Site Admin


Joined: 16 Mar 2004
Posts: 3434

PostPosted: Mon Mar 20, 2006 10:33 pm    Post subject: Reply with quote

Chuck's right, those Recent Articles, Recent Comments etc. components have a limit of 10 for performance reasons. That helps us to reduce the number of database queries required to construct a given page. Right now, we know we can't change that limit but will revisit the possibility of changing those limits in the future.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Search all BlogHarbor support resources.
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    BlogHarbor Community Forum Index -> General Discussion All times are GMT - 5 Hours
Page 1 of 1

 
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