Welcome to Geeklog, Anonymous Thursday, December 26 2024 @ 12:19 pm EST
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 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.
Text Formatted Code
{site_admin_url}/plugins/{plugin}/images/{plugin}.phpI probably explained my question really badly, so if you can't understand it, I'll try to explain it better.
8
8
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.
Keep in mind, it's only for the plugin icons like calendar, polls, links, spamx, static pages etc.
10
12
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):
* 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
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
8
10
Quote
Jay
Anonymous
Perfect, thanks.
9
6
Quote
All times are EST. The time is now 12:19 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