style imageset + mod problems

Discussion forum for MOD Writers regarding MOD Development.
Locked
alightner
Registered User
Posts: 1118
Joined: Fri Mar 23, 2007 12:42 pm

style imageset + mod problems

Post by alightner »

I'm writing a mod that needs some new icons. Specifically I needed a small "New" button for when the user wanted to create a new item.

I started by copying the prosilver/imageset/icon_post_edit.gif file and renaming it prosilver/imageset/icon_post_my_new_button.gif.

Then I edited the prosilver/imageset/imageset.cfg file to include

Code: Select all

img_icon_post_my_new_button = icon_post_my_new_button.gif*20*42
I uploaded the new icon, and imageset.cfg file and refreshed the imageset and purged my cache (not that I really needed to because my web-browser is set to ignore cached files and always repopulate things - and it hasn't failed me before with many other style changes).

Now in my mod's core php file I tried to use something like this:

Code: Select all

$user->img('icon_post_my_new_button', 'EDIT_POST')
Unfortunately it just returns the null string. It seems I must have missed a few steps in defining my new button.

Any ideas on what else needs to be done?

Thanks!
My phpbb3 mods:
Calendar
User Attachment Quota
Do not PM me with questions about my mods.
Support will only be given through the topic threads above.
alightner
Registered User
Posts: 1118
Joined: Fri Mar 23, 2007 12:42 pm

Re: style imageset + mod problems

Post by alightner »

Hasn't anyone else had to add icons for their mods? :(
My phpbb3 mods:
Calendar
User Attachment Quota
Do not PM me with questions about my mods.
Support will only be given through the topic threads above.
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: style imageset + mod problems

Post by igorw »

Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
alightner
Registered User
Posts: 1118
Joined: Fri Mar 23, 2007 12:42 pm

Re: style imageset + mod problems

Post by alightner »

Great - Thanks!
My phpbb3 mods:
Calendar
User Attachment Quota
Do not PM me with questions about my mods.
Support will only be given through the topic threads above.
Locked

Return to “[3.0.x] MOD Writers Discussion”