Adding friend and foe images

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Scam Warning
User avatar
Registered User
Posts: 60
Joined: Tue Jul 25, 2006 8:23 pm
Location: Finland

Adding friend and foe images

Post by carita »

I would like to have images for adding a friend or a foe, instead of the text saying [ Add friend | Add foe ]
How do I replace that text with images?

User avatar
Former Team Member
Posts: 5406
Joined: Mon Mar 19, 2007 2:04 pm
Location: Southern California

Re: Adding friend and foe images

Post by prototech »

In memberlist_view.html, find:

Code: Select all

<td class="genmed" align="center">[ <!-- IF U_ADD_FRIEND and U_ADD_FOE--><a href="{U_ADD_FRIEND}">{L_ADD_FRIEND}</a> | <a href="{U_ADD_FOE}">{L_ADD_FOE}</a><!-- ENDIF --><!-- IF U_REMOVE_FRIEND --><a href="{U_REMOVE_FRIEND}">{L_REMOVE_FRIEND}</a><!-- ENDIF --><!-- IF U_REMOVE_FOE --><a href="{U_REMOVE_FOE}">{L_REMOVE_FOE}</a><!-- ENDIF --> ]</td>
Replace {L_ADD_FRIEND} with something similar to:

Code: Select all

<img src="" alt="{L_ADD_FRIEND}" />
Do the same for {L_ADD_FOE}, then refresh your template - ACP => Styles => Style Components => Templates.
Need help with MOD/style installations or other phpBB problems? Contact me for a quote.


Return to “[3.0.x] Styles Support & Discussion”