top exits and top referrers

Creating and modifying plugins.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

For that you need to put the Event plugin of the karma on top of the plugin for paginating the archives.

All event plugins get executed in the order the are arranged in the plugin section, so currently the next/previous entry is included before the karma plugin can print the Exit-Link. If you rearrange it, it should be well.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

For showing the "Exits" correctly in the entries overview, I had to do a fix.

Find this:

Code: Select all

    function prepareExits($entries, $get = false) {
        static $exits = null;
in the karma plugin file, and replace it with:

Code: Select all

    function prepareExits($entries, $get = false) {
        static $exits = null;
        global $serendipity;
(so just add the "global $serendipity;".

HTH,
garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
BabeSpot
Regular
Posts: 30
Joined: Sun Dec 04, 2005 8:42 pm

Post by BabeSpot »

Wow ! Thx Garvin! I'm glad... very glad ! Everything's working fine ...
My Serendipity: BabeSpot !
Post Reply