Welcome to Geeklog, Anonymous Thursday, April 25 2024 @ 12:32 pm EDT

Geeklog Forums

Where are icons for plugins defined?


Jay

Anonymous
On the admin panel, moderation.php, the regular icons are defined under IMAGE_TYPE in the index or whatever, I got those to change to gif (instead of png) but the icons for the plugins on the moderation page, i.e. Calendar, links, polls, etc.. are still png. I figured out where to define the icon once you're in that section by changing the line in the corresponding admin.php from
Text Formatted Code
{site_admin_url}/plugins/{plugin}/images/{plugin}.php
to [code][{site_admin_url}/plugins/{plugin}/images/{plugin}.gif[/code] but can't find where it's defined for the mod panel icons.

I probably explained my question really badly, so if you can't understand it, I'll try to explain it better.
 Quote

Jay

Anonymous
oops, I meant I figured out how to change them once in the page by changin png to gif in the index.php for each plugin admin. I still have no clue how to change them for the mod panel though.

Keep in mind, it's only for the plugin icons like calendar, polls, links, spamx, static pages etc.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The plugins have a geticon method that returns the URL to their icon. I guess that is what you're looking for.

E.g. for the calendar plugin (in plugins/calendar/functions.inc):
Text Formatted Code
/**
* Returns the URL of the plugin's icon
*
* @return   string      URL of the icon
*
*/
function plugin_geticon_calendar ()
{
    global $_CONF;

    return $_CONF['site_url'] . '/calendar/images/calendar.png';
}

Older plugins have the URL in the cclabel method usually.

bye, Dirk
 Quote

Jay

Anonymous
Perfect, thanks.
 Quote

All times are EDT. The time is now 12:32 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content