The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Toolbar Avatar

View previous topic View next topic 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.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

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


Forum Rules: :Forumotion Staff: :Appeal A Warning: :FAQ: :Tips & Tricks: :Forgotten Password/Login Issues
You need one post to send a PM
When your topic has been solved, ensure you mark the topic solved
Never post your email in public


Derri
Administrator
Administrator

Male Posts : 8355
Reputation : 571
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

View previous topic View next topic Back to top


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