Stand Your Ground Forums
Welcome to Stand Your Ground Forums! Hosted by Forumotion. You can talk about forum/hardware support and anime here!
Stand Your Ground Forums
Welcome to Stand Your Ground Forums! Hosted by Forumotion. You can talk about forum/hardware support and anime here!
Stand Your Ground Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Stand Your Ground Forums

Welcome to Stand Your Ground Forums! Do register an account before browsing the forum!
 
HomeHome  PortalPortal  Latest imagesLatest images  RegisterRegister  Log in  
Welcome to Anime World and Support of Forums! Free to interact with everyone and talk about anime , manga and also talk about problems involving connection problems, designs and appearance problems, scripts(coding) problems and much more! Please log in or register if you have not yet. As always, please do not violate the rules and be kind to each other. Have a nice day, folks!

 

 avatar variable problem

Go down 
AuthorMessage
Daichi
Senior Member
Senior Member
Daichi


Posts : 446
Join date : 2013-03-02
Location : Reykjavik

avatar variable problem Empty
PostSubject: avatar variable problem   avatar variable problem EmptySat Mar 23, 2013 4:59 am


^
I follow that tutorial but it is not working for me.

I'm using this JS script
CODE: ----------SELECT CONTENT
$(function() {
var sidebar = document.getElementById('right');
var default = 'https://2img.net/h/i855.photobucket.com/albums/ab117/jan2xonline/default_avatar_zpsa91409e3.jpg';
if(!sidebar) return;
var x = $('.module', sidebar)[0].getElementsByTagName('img');
$('.AVATAR').html('');
});


And this for the html
CODE: ----------SELECT CONTENT



testingggggggg




I placed the "Log In" widget at the top right side of my forum so what's wrong?

Here's my forum, http://animeph.4umer.com/.
Back to top Go down
https://standyourground.rpg-board.net
Daichi
Senior Member
Senior Member
Daichi


Posts : 446
Join date : 2013-03-02
Location : Reykjavik

avatar variable problem Empty
PostSubject: Re: avatar variable problem   avatar variable problem EmptySat Mar 23, 2013 4:59 am

Try changing the widget to the left and do not forget to change it in the JavaScript.
Back to top Go down
https://standyourground.rpg-board.net
Daichi
Senior Member
Senior Member
Daichi


Posts : 446
Join date : 2013-03-02
Location : Reykjavik

avatar variable problem Empty
PostSubject: Re: avatar variable problem   avatar variable problem EmptySat Mar 23, 2013 5:00 am

^
Not working sir.
Back to top Go down
https://standyourground.rpg-board.net
Daichi
Senior Member
Senior Member
Daichi


Posts : 446
Join date : 2013-03-02
Location : Reykjavik

avatar variable problem Empty
PostSubject: Re: avatar variable problem   avatar variable problem EmptySat Mar 23, 2013 5:00 am

Where did you add the HTML code?
Back to top Go down
https://standyourground.rpg-board.net
Daichi
Senior Member
Senior Member
Daichi


Posts : 446
Join date : 2013-03-02
Location : Reykjavik

avatar variable problem Empty
PostSubject: Re: avatar variable problem   avatar variable problem EmptySat Mar 23, 2013 5:01 am

^
In a widget.
Back to top Go down
https://standyourground.rpg-board.net
Daichi
Senior Member
Senior Member
Daichi


Posts : 446
Join date : 2013-03-02
Location : Reykjavik

avatar variable problem Empty
PostSubject: Re: avatar variable problem   avatar variable problem EmptySat Mar 23, 2013 5:01 am

What exactly are you trying to do with this tutorial? Did you read the last reply by LGForum? http://www.avacweb.com/t129p15-user-avatar-variable#10341
Back to top Go down
https://standyourground.rpg-board.net
Daichi
Senior Member
Senior Member
Daichi


Posts : 446
Join date : 2013-03-02
Location : Reykjavik

avatar variable problem Empty
PostSubject: Re: avatar variable problem   avatar variable problem EmptySat Mar 23, 2013 5:01 am

^
Yes and I'm not planning to make a last post avatar or avatar in chatbox. I'm just trying to make a custom user control panel sir.
Back to top Go down
https://standyourground.rpg-board.net
Daichi
Senior Member
Senior Member
Daichi


Posts : 446
Join date : 2013-03-02
Location : Reykjavik

avatar variable problem Empty
PostSubject: Re: avatar variable problem   avatar variable problem EmptySat Mar 23, 2013 5:01 am

So this will be a widget?
Back to top Go down
https://standyourground.rpg-board.net
Daichi
Senior Member
Senior Member
Daichi


Posts : 446
Join date : 2013-03-02
Location : Reykjavik

avatar variable problem Empty
PostSubject: Re: avatar variable problem   avatar variable problem EmptySat Mar 23, 2013 5:02 am

^

Yap, just a widget.
Back to top Go down
https://standyourground.rpg-board.net
Daichi
Senior Member
Senior Member
Daichi


Posts : 446
Join date : 2013-03-02
Location : Reykjavik

avatar variable problem Empty
PostSubject: Re: avatar variable problem   avatar variable problem EmptySat Mar 23, 2013 5:02 am

Have you checked that all your javascripts are error-free?
Back to top Go down
https://standyourground.rpg-board.net
Daichi
Senior Member
Senior Member
Daichi


Posts : 446
Join date : 2013-03-02
Location : Reykjavik

avatar variable problem Empty
PostSubject: Re: avatar variable problem   avatar variable problem EmptySat Mar 23, 2013 5:02 am

I tried to check the error console and got this

CODE: ----------SELECT CONTENT

Failed to load resource http://an.z5x.net/ttj?id=1092879
Uncaught SyntaxError: Unexpected token default 23325.js:1


I clicked this "23325.js:1" and got this
CODE: ----------SELECT CONTENT

$(function(){var sidebar=document.getElementById('right');var default='https://2img.net/h/i855.photobucket.com/albums/ab117/jan2xonline/default_avatar_zpsa91409e3.jpg';if(!sidebar)return;var x=$('.module',sidebar)[0].getElementsByTagName('img');$('.AVATAR').html('')});


And that's the script for the avatar variable right?
Back to top Go down
https://standyourground.rpg-board.net
Daichi
Senior Member
Senior Member
Daichi


Posts : 446
Join date : 2013-03-02
Location : Reykjavik

avatar variable problem Empty
PostSubject: Re: avatar variable problem   avatar variable problem EmptySat Mar 23, 2013 5:03 am

Change everywhere in the avatar script where it says 'default' to something else like 'def' or just give it a capital 'D' or something. There's 2 places where you'll need to change it.
Back to top Go down
https://standyourground.rpg-board.net
Daichi
Senior Member
Senior Member
Daichi


Posts : 446
Join date : 2013-03-02
Location : Reykjavik

avatar variable problem Empty
PostSubject: Re: avatar variable problem   avatar variable problem EmptySat Mar 23, 2013 5:03 am

I tried def like this

CODE: ----------SELECT CONTENT

$(function() {
var sidebar = document.getElementById('right');
var def = 'https://2img.net/h/i855.photobucket.com/albums/ab117/jan2xonline/default_avatar_zpsa91409e3.jpg';
if(!sidebar) return;
var x = $('.module', sidebar)[0].getElementsByTagName('img');
$('.AVATAR').html('');
});


and still not working sir.
Back to top Go down
https://standyourground.rpg-board.net
Daichi
Senior Member
Senior Member
Daichi


Posts : 446
Join date : 2013-03-02
Location : Reykjavik

avatar variable problem Empty
PostSubject: Re: avatar variable problem   avatar variable problem EmptySat Mar 23, 2013 5:03 am

Is there no error anymore then?
Back to top Go down
https://standyourground.rpg-board.net
Daichi
Senior Member
Senior Member
Daichi


Posts : 446
Join date : 2013-03-02
Location : Reykjavik

avatar variable problem Empty
PostSubject: Re: avatar variable problem   avatar variable problem EmptySat Mar 23, 2013 5:03 am

^
The only error left in error console is this,
CODE: ----------SELECT CONTENT
Failed to load resource http://an.z5x.net/ttj?id=1092879
Back to top Go down
https://standyourground.rpg-board.net
Daichi
Senior Member
Senior Member
Daichi


Posts : 446
Join date : 2013-03-02
Location : Reykjavik

avatar variable problem Empty
PostSubject: Re: avatar variable problem   avatar variable problem EmptySat Mar 23, 2013 5:04 am

bump alert
Back to top Go down
https://standyourground.rpg-board.net
Sponsored content





avatar variable problem Empty
PostSubject: Re: avatar variable problem   avatar variable problem Empty

Back to top Go down
 
avatar variable problem
Back to top 
Page 1 of 1
 Similar topics
-
» Widget problem?
» Help for avatar pic

Permissions in this forum:You cannot reply to topics in this forum
Stand Your Ground Forums :: Support :: Forum Design & Appearance Help-
Jump to: