friend/foe image

All style (template, theme and imageset) related questions for the new release; advice, feedback here please.
Post Reply
User avatar
redhair
Registered User
Posts: 31
Joined: Wed May 05, 2004 2:59 am
Location: Netherlands
Contact:

friend/foe image

Post by redhair »

In subsilver imageset.cfg there is:

Code: Select all

img_icon_friend =
img_icon_foe =
Where do these images show up once variables are added?
redhair like no other.

subMerged3 for phpBB3 BETA?
Graham
Registered User
Posts: 1304
Joined: Tue Mar 19, 2002 7:11 pm
Location: UK

Re: friend/foe image

Post by Graham »

In subSilver, nowhere. They are available as images which template designers can use if they wish to do so within viewtopic and view profile IIRC
"So Long, and Thanks for All the Fish"

Graham
Eeek, a blog!
User avatar
redhair
Registered User
Posts: 31
Joined: Wed May 05, 2004 2:59 am
Location: Netherlands
Contact:

Re: friend/foe image

Post by redhair »

Thank's,

I'm one of those template designers, and I'dd like to know how I should code it into those 2 templates since subSilver doesn't have them.
redhair like no other.

subMerged3 for phpBB3 BETA?
User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: friend/foe image

Post by Highway of Life »

Hope you're up for a little PHP editing then...

In memberlist, viewtopic or wherever else you want the friend/foe images to show, add the following to the $template->assign_vars array...

Code: Select all

'FRIEND_IMG'        => $user->img('icon_friend', $user->lang['FRIEND']),
'FOE_IMG'        => $user->img('icon_foe', $user->lang['FOE']),
After creating your custom images friend and foe images...
in imageset.cfg
FIND:

Code: Select all

img_icon_friend =
img_icon_foe =
REPLACE WITH:

Code: Select all

img_icon_friend = your_friend_image.gif*hh*ww
img_icon_foe = your_foe_image.gif*hh*ww
Where hh = Height (in pixels)
Where ww = Width (in pixels)

in en/common.php (if English)
Add:

Code: Select all

'FRIEND'                    => 'Add Friend',
'FOE'                    => 'Add Foe',
Hope that helps. :D
Image
User avatar
redhair
Registered User
Posts: 31
Joined: Wed May 05, 2004 2:59 am
Location: Netherlands
Contact:

Re: friend/foe image

Post by redhair »

Ah. no wonder I had trouble finding it!

Thank's a lot.
redhair like no other.

subMerged3 for phpBB3 BETA?
Graham
Registered User
Posts: 1304
Joined: Tue Mar 19, 2002 7:11 pm
Location: UK

Re: friend/foe image

Post by Graham »

You should not add anything to the code.

If they exist in the config file and template variables are not available on the pages I listed, you should file a bug report so it can be reviewed.
"So Long, and Thanks for All the Fish"

Graham
Eeek, a blog!
Post Reply