Toolbar Avatar

Go down

Solved Toolbar Avatar

Post by inallsorts on July 18th 2014, 10:18 am

Greetings to all,

I have a simple question pertaining to this tutorial: http://help.forumotion.com/t133635-display-the-avatar-of-a-member-on-the-toolbar

Rather than displaying the Avatar of a member, I'd like to display the Avatar of my choice, meaning a "link" to an Image uploaded to a given URL.
So I'd like to replace the '+_userdata.avatar+' (In the JavaScript code) with a URL.
My attempts have come to no avail.

Thanks In advance for all help given.


Last edited by inallsorts on July 18th 2014, 2:37 pm; edited 1 time in total

inallsorts
Forumember

Posts : 246
Reputation : 8
Language : English

Back to top Go down

Solved Re: Toolbar Avatar

Post by Ange Tuteur on July 18th 2014, 11:04 am

Hi inallsorts,

Try replacing the variable with an image tag.
Code:
$(window).load(function(){$('#fa_welcome').prepend('<span class="fa_avatar"><img src="/myimg.gif"/></span>')});

Replace /myimg.gif by the URL of your Image.
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Toolbar Avatar

Post by inallsorts on July 18th 2014, 2:36 pm

@Ange Tuteur wrote:Hi inallsorts,

Try replacing the variable with an image tag.
Code:
$(window).load(function(){$('#fa_welcome').prepend('<span class="fa_avatar"><img src="/myimg.gif"/></span>')});

Replace /myimg.gif by the URL of your Image.

The moment I saw your response, I knew I was In good hands.

Thank you once again, the code works flawlessly.
/Topic.

inallsorts
Forumember

Posts : 246
Reputation : 8
Language : English

Back to top Go down

Solved Re: Toolbar Avatar

Post by Derri on July 18th 2014, 2:44 pm

@Ange Great Work Very Happy
@inallsorts Glad you got your wish and thanks for letting us know this worked!

Topic Archived
avatar
Derri
Helper
Helper

Male Posts : 8712
Reputation : 628
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum