Page 1 of 1

Top Exits Plugin Title edit

Posted: Mon Jan 23, 2006 11:56 am
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

Re: Top Exits Plugin

Posted: Mon Jan 23, 2006 12:01 pm
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

Posted: Mon Jan 23, 2006 12:18 pm
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...

Posted: Mon Jan 23, 2006 4:52 pm
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 )