Top Exits Plugin Title edit

Creating and modifying plugins.
Post Reply
BabeSpot
Regular
Posts: 30
Joined: Sun Dec 04, 2005 8:42 pm

Top Exits Plugin Title edit

Post by BabeSpot »

Hi all,

Can somebody tell me how to edit the title of the "Top exits plugin"?

In the admin panel I can't give this plugin a title... It says:

Name Exits
Description Shows top exit links from your blogs

and 3 fields to configure.

Thanks a lot
Last edited by BabeSpot on Mon Jan 23, 2006 12:16 pm, edited 1 time in total.
My Serendipity: BabeSpot !
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Top Exits Plugin

Post by garvinhicking »

Yes, actually that is not configurable. But you can either edit the plugin file (include/plugins_internal.inc.php) and search for "EXITS", or you can edit your language file (lang/serendipity_lang_XX) and replace "Top Exits" there with how you want it to read...

Best regards,
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 »

Thanks Garvin. I already figured that out. The problem is that the namefield of the # of exits in the entries also changes this way...

I'll have a look...
My Serendipity: BabeSpot !
BabeSpot
Regular
Posts: 30
Joined: Sun Dec 04, 2005 8:42 pm

Post by BabeSpot »

I figured it out...

Code: Select all

class serendipity_topexits_plugin extends serendipity_plugin {
    var $title = TOP_EXITS2;

    function introspect(&$propbag)
    {
        $propbag->add('name',          TOP_EXITS2);
In plugin_internal.inc.php, I renamed the plugin to TOP_EXITS2, and in the language file I defined this as:

Code: Select all

@define('TOP_EXITS2', 'Top 20 most exited links this week');
Thanks Garvin ! (again... :D )
My Serendipity: BabeSpot !
Post Reply