Template Modification : Question

Cory_

Member
Hello,

I'm looking to modify where the "Avatar" is located.

Apparently, I'm not looking in the right place, but which template do I have to edit to change the code?

outlined.webp

What is the correct syntax for inputting "Custom User Fields" ?

Basically, I have and field name "test" and the code I think would be...

PHP:
{$fieldId.test}

Then I'm going to create another with an option field with "Enable - Default Avatar".

So if "Enabled" you will be disable the code I'm going to add and use the default uploaded avatar or else it will show the altered one we've added.

Too understand what I'm trying to full accomplish, I've coded a site to grab an avatar (Won't be the same) they'll input a "User Field" within there profile to set the proper avatar given...and if it's not set and/or they "Enable - Default Avatar" will be placed with all the options.

Just need to pointed in the right direction.
 
Thanks that does work... Few things...

Where are "ALL" the avatar images are located, as I need to change them all or point me to a wiki/thread to do so.

Secondly, I created a "Custom, Preference Field"...

Main unique identifier...
{$user.customFields.default_avatar} with an "Options Field".

with radio options of "default_avatar_enable" and "default_avatar_disable"...

How would I use an xen if statement to grab the "Enable" and "Disabled" fields?
 
To be sure, debug that profile field by adding {$user.customFields.default_avatar} to the templates to see what it outputs. Then you can create a condition based on the value. For example:

Code:
<xen:if is="{$user.customFields.default_avatar} == 'enabled'">

</xen:if>
 
Top Bottom