View previous topic :: View next topic |
Author |
Message |
Aussie Dave
Joined: 09 Feb 2006 Posts: 17
|
Posted: Mon Mar 20, 2006 3:37 pm Post subject: Recent visitors |
|
|
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}}
</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 |
|
|
abacquer
Joined: 22 Mar 2004 Posts: 193
|
Posted: Mon Mar 20, 2006 4:44 pm Post subject: |
|
|
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 |
|
|
john Site Admin
Joined: 16 Mar 2004 Posts: 3434
|
Posted: Mon Mar 20, 2006 10:33 pm Post subject: |
|
|
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 |
|
|
Search all BlogHarbor support resources.
|
View previous topic :: View next topic |
|
|
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
|
|