avatar variable
3 posters
Page 1 of 1
avatar variable
Is there a way to get an avatar variable, which I can put in an announcement?
I already tried this tutorial; http://www.avacweb.com/t129-user-avatar-variable, but it doesn't work for me.
I already tried this tutorial; http://www.avacweb.com/t129-user-avatar-variable, but it doesn't work for me.
sun1994- Forumember
- Posts : 81
Reputation : 1
Language : dutch
Re: avatar variable
Yes, and I put them on the right side, just like it says in the code.
Do you just have to insert <span class="AVATAR"></span> in you announcement to get the avatar, or do you have to put something between the >< tags?
Do you just have to insert <span class="AVATAR"></span> in you announcement to get the avatar, or do you have to put something between the >< tags?
sun1994- Forumember
- Posts : 81
Reputation : 1
Language : dutch
Re: avatar variable
Did you add the default avatar URL in the JavaScript code?
if (x.length>0){ uav='<img src="'+x[0].src+'" />'; } else { uav='<img src="DEFAULT AVATAR URL HERE" />'; }
Also the log in widget as to the at the top of all the widgets.
if (x.length>0){ uav='<img src="'+x[0].src+'" />'; } else { uav='<img src="DEFAULT AVATAR URL HERE" />'; }
Also the log in widget as to the at the top of all the widgets.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
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.
Re: avatar variable
Yes, did that. Also put the widget at the right top. So I don't get what I'm doing wrong. xD
sun1994- Forumember
- Posts : 81
Reputation : 1
Language : dutch
Re: avatar variable
Do you have JavaScript Management on?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
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.
Re: avatar variable
It sounds like you may have errors in other Javascripts. Could you post your forum URL.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: avatar variable
http://layouttest-m.actieforum.com/
It's suppossed to show up above gast/guest in the log-in widget on the banner. And I didn't use any other javascript yet.
It's suppossed to show up above gast/guest in the log-in widget on the banner. And I didn't use any other javascript yet.
sun1994- Forumember
- Posts : 81
Reputation : 1
Language : dutch
Re: avatar variable
It doesn't look like you have a sidebar. No sidebar, no widgets.
Unless phpbb2 has it completely different. Which wouldn't surprise me too much.
Unless phpbb2 has it completely different. Which wouldn't surprise me too much.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: avatar variable
No I have, but I hid it with the javascript code from the tutorial.
Now to hide that widget if you don't want it,
Add this code underneath the line '$('.AVATAR').html(uav);'
- Code:
$('.module', sidebar)[0].style.display="none";
sun1994- Forumember
- Posts : 81
Reputation : 1
Language : dutch
Similar topics
» Help with a widget variable
» Avatar variable
» Avatar Variable Problem
» Avatar Variable Problem Invision
» What variable is this?
» Avatar variable
» Avatar Variable Problem
» Avatar Variable Problem Invision
» What variable is this?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum