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.

Avatar Variable Problem Invision

View previous topic View next topic Go down

Avatar Variable Problem Invision

Post by DossettH on March 28th 2013, 5:03 pm

Hello, I followed the AvacWeb Avatar Variable semi-tutorial and the avatar variable isn't working. I followed the tutorial completely , I filled in all the necessary elements and it's still not working.
Javascript:
Code:
$(function() {
    var sidebar = document.getElementById('left');
    var default = 'http://images.onesite.com/fans.marvel.com/avatar/default_avatar_150x150.jpg';
    if(!sidebar) return;
    var y = $('.module', sidebar)[0], x = y.getElementsByTagName('img'); y.style.display = 'none';
    $('.AVATAR').html('<img src="'http://images.onesite.com/fans.marvel.com/avatar/default_avatar_150x150.jpg + (x.length > 0 ? x[0].src : default) + '">');
});

I am making a User Control Panel and I need the avatar to be in a certain section:
PS: My forum is Invision

DossettH
New Member

Posts : 11
Reputation : 1
Language : English

http://crazedoutsiders.niceboard.com

Back to top Go down

Re: Avatar Variable Problem Invision

Post by DossettH on March 28th 2013, 8:29 pm

bump

DossettH
New Member

Posts : 11
Reputation : 1
Language : English

http://crazedoutsiders.niceboard.com

Back to top Go down

Re: Avatar Variable Problem Invision

Post by SLGray on March 28th 2013, 9:46 pm

Please don't double/triple post. Your post need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button instead!


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36701
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

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