Page 1 of 1
Popular Entries
Posted: Fri Dec 09, 2005 9:02 am
by BabeSpot
Hi Garvin, it's me again ...
I have one question about the "popular entries" plugin. Is it possible to code this plugin in a way that admins can choose to have their entries listed by the number of comments made (like it is now), but also have an option to list them by the amount of entry exits?
Regards, Michel
Re: Popular Entries
Posted: Fri Dec 09, 2005 1:52 pm
by garvinhicking
Yeah, that's possible. Just committed the new version!
Regards,
Garvin
Posted: Sun Dec 11, 2005 11:46 pm
by BabeSpot
Hi Garvin,
Where can I actually find it? I've searched myself a headache...

Posted: Mon Dec 12, 2005 12:52 am
by garvinhicking
It's here:
http://cvs.sourceforge.net/viewcvs.py/p ... arentries/
(Should be fetchable via Spartacus, though)
Regards,
Garvin
Posted: Mon Dec 12, 2005 8:45 pm
by BabeSpot
Thx Garvin! It was indeed fetched in Spartacus...
I have one question; what part of the plugin do I have to edit so that the numbers of hits won't appear behind the links in the side-bar? I noticed that I had to go into the includes.inc.php to remove those numbers behind the top-exits in the side-bar, but I can't find where I have to remove the exits number now.
When I used this plugin before (so in order by most commented), the numbers didn't show up. But since I decided to show them in order of most exited entries the number is there again...
Thx in advance... You're really very helpfull and willing to help in this community...
Regards, Michel
Posted: Tue Dec 13, 2005 10:41 am
by garvinhicking
You can remove those numbers by editing the plugin file in plugins/serendipity_plugin_popularentries/serendipity_plugin_popularentries.php
HTH,
Garvin
Posted: Tue Dec 13, 2005 12:40 pm
by BabeSpot
Thx Garvin, I knew that it should be in that file but everytime I change this, my sidebar gives me an error...
I think I have to change line 194/195:
Code: Select all
echo '<a href="' . $entryLink . '" title="' . htmlspecialchars($entry['title']) . '">' . $entry['title'] . '</a><br />';
echo '<div class="serendipitySideBarDate">(' . (!empty($entry['points']) ? htmlspecialchars($entry['points']) : 0) . ')</div>';
But can you tell me how?
Thanks !
Posted: Tue Dec 13, 2005 2:29 pm
by garvinhicking
Replace it with this:
Code: Select all
echo '<a href="' . $entryLink . '" title="' . htmlspecialchars($entry['title']) . '">' . $entry['title'] . '</a><br />';
Regards,
Garvin
Posted: Wed Dec 14, 2005 2:04 am
by BabeSpot
Yup... that's it ! Thanks a lot again !