| View previous topic :: View next topic |
| Author |
Message |
TaoDo_ul Guest
|
Posted: Mon Jul 25, 2005 5:50 pm Post subject: "Most Popular Posts" links are incorrect |
|
|
My "Most Popular Posts" links don't point to the correct posts.
taodo.blogsome.com |
|
| Back to top |
|
oceanblade
Joined: 21 Jul 2005 Posts: 5
|
Posted: Mon Jul 25, 2005 6:40 pm Post subject: |
|
|
I'm getting the same thing too
oceanblade.blogsome.com |
|
| Back to top |
|
schinckel
Joined: 03 Apr 2005 Posts: 1238 Location: Adelaide, Australia
|
Posted: Wed Jul 27, 2005 4:40 am Post subject: Popular Post Bug |
|
|
The solution can be found here.
Replace this code in your template:
| Code: | | {get_permalink id=$hits.postID} |
with:
| Code: | | <a href="{$siteurl}{$hits.url}" title="{$hits.title}">{$hits.title|truncate:20:".."}{$key}</a> |
|
|
| Back to top |
|
TaoDo-ul Guest
|
Posted: Wed Jul 27, 2005 1:34 pm Post subject: |
|
|
Thanks schinckel, that did the trick!
Nice site, BTW..  |
|
| Back to top |
|
TaoDo_ul Guest
|
Posted: Wed Jul 27, 2005 1:38 pm Post subject: |
|
|
Just gotta clarify what I changed though..
I changed:
<a href="{get_permalink id=$hits.postID}" title="{$hits.title}">{$hits.title|truncate:30:"..."}</a>
to
<a href="{$siteurl}{$hits.url}" title="{$hits.title}">{$hits.title|truncate:20:".."}{$key}</a> |
|
| Back to top |
|
TaoDo_ul Guest
|
Posted: Wed Jul 27, 2005 1:43 pm Post subject: |
|
|
| Oops.. didn't quite work as I wanted, although the links are now correct.. could you please specify what should go precisely between the <ahref=> and the </a> ? |
|
| Back to top |
|
Guest
|
Posted: Wed Jul 27, 2005 2:30 pm Post subject: |
|
|
Removed the last {$key} before the </a>
Thus:
| Code: |
{popularposts}
{if $pposts != ''}
<h2>Most Popular Posts</h2>
<ul>
{foreach from=$pposts key=key item=hits}
<li><a href="{$siteurl}{$hits.url}" title="{$hits.title}">{$hits.title|truncate:20:".."}</a>: {$key}</li>
{/foreach}
</ul>
{/if} |
|
|
| Back to top |
|
villervalla Guest
|
Posted: Mon Sep 19, 2005 12:41 pm Post subject: I did this - now it´s blank! |
|
|
I did exactly this, i removed and copied exactly as above - now my blog is blank! Please help me!
http://villervalla.blogsome.com |
|
| Back to top |
|
zheaton
Joined: 03 Dec 2004 Posts: 532 Location: United States
|
Posted: Mon Sep 19, 2005 5:35 pm Post subject: |
|
|
It loads fine for me now - I'm assuming that you fixed the problem. _________________ I'm no longer a moderator - don't PM me with questions.
Search the forum, check the wiki, and ask smart questions |
|
| Back to top |
|
letsgetpaid Guest
|
Posted: Fri Dec 16, 2005 9:04 am Post subject: |
|
|
my popular post have disappear...
I cant get the popular post link correctly..
http://letsgetpaid.blogsome.com |
|
| Back to top |
|
letsgetpaid Guest
|
Posted: Wed Dec 21, 2005 6:41 am Post subject: |
|
|
something is wrong with my popular link and my monthly link.
i tried everything tht is posted in this forum but still can't manage to get it appear correctly
http://letsgetpaid.blogsome.com |
|
| Back to top |
|
Guest
|
Posted: Wed Dec 21, 2005 6:50 am Post subject: |
|
|
my popular post reappear but keeps showing the same post only.
a month ago still not appearing |
|
| Back to top |
|
zheaton
Joined: 03 Dec 2004 Posts: 532 Location: United States
|
Posted: Wed Dec 21, 2005 9:50 pm Post subject: |
|
|
0.) Please don't double-post.
1.) Please post weblog URLs.
2.) Have you tried all of the steps listed in this thread?
3.) Have you searched the forum?
4.) letsgetpaid - Is there some reason I'm missing that your blog is titled "Let's Get Paid Online?" Based on that, and the content, this really looks like part of an SEO campaign. You might want to read the Terms of Service, particularly with respect to the opening paragraph. _________________ I'm no longer a moderator - don't PM me with questions.
Search the forum, check the wiki, and ask smart questions |
|
| Back to top |
|
|