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! Do register an account before browsing the forum!
 
HomeHome  PortalPortal  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!

Share | 
 

 avatar variable problem

View previous topic View next topic Go down 
AuthorMessage
Daichi
Senior Member
Senior Member
avatar

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

PostSubject: avatar variable problem   Sat 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 = 'http://illiweb.com/fa/pbucket.gif';
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/.

---------------------------------------------------------------------------------------------------------


                                  No Support via. PM
Back to top Go down
http://standyourground.forums.fm
Daichi
Senior Member
Senior Member
avatar

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

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

Try changing the widget to the left and do not forget to change it in the JavaScript.

---------------------------------------------------------------------------------------------------------


                                  No Support via. PM
Back to top Go down
http://standyourground.forums.fm
Daichi
Senior Member
Senior Member
avatar

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

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

^
Not working sir.

---------------------------------------------------------------------------------------------------------


                                  No Support via. PM
Back to top Go down
http://standyourground.forums.fm
Daichi
Senior Member
Senior Member
avatar

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

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

Where did you add the HTML code?

---------------------------------------------------------------------------------------------------------


                                  No Support via. PM
Back to top Go down
http://standyourground.forums.fm
Daichi
Senior Member
Senior Member
avatar

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

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

^
In a widget.

---------------------------------------------------------------------------------------------------------


                                  No Support via. PM
Back to top Go down
http://standyourground.forums.fm
Daichi
Senior Member
Senior Member
avatar

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

PostSubject: Re: avatar variable problem   Sat 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

---------------------------------------------------------------------------------------------------------


                                  No Support via. PM
Back to top Go down
http://standyourground.forums.fm
Daichi
Senior Member
Senior Member
avatar

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

PostSubject: Re: avatar variable problem   Sat 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.

---------------------------------------------------------------------------------------------------------


                                  No Support via. PM
Back to top Go down
http://standyourground.forums.fm
Daichi
Senior Member
Senior Member
avatar

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

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

So this will be a widget?

---------------------------------------------------------------------------------------------------------


                                  No Support via. PM
Back to top Go down
http://standyourground.forums.fm
Daichi
Senior Member
Senior Member
avatar

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

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

^

Yap, just a widget.

---------------------------------------------------------------------------------------------------------


                                  No Support via. PM
Back to top Go down
http://standyourground.forums.fm
Daichi
Senior Member
Senior Member
avatar

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

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

Have you checked that all your javascripts are error-free?

---------------------------------------------------------------------------------------------------------


                                  No Support via. PM
Back to top Go down
http://standyourground.forums.fm
Daichi
Senior Member
Senior Member
avatar

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

PostSubject: Re: avatar variable problem   Sat 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='http://illiweb.com/fa/pbucket.gif';if(!sidebar)return;var x=$('.module',sidebar)[0].getElementsByTagName('img');$('.AVATAR').html('')});


And that's the script for the avatar variable right?

---------------------------------------------------------------------------------------------------------


                                  No Support via. PM
Back to top Go down
http://standyourground.forums.fm
Daichi
Senior Member
Senior Member
avatar

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

PostSubject: Re: avatar variable problem   Sat 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.

---------------------------------------------------------------------------------------------------------


                                  No Support via. PM
Back to top Go down
http://standyourground.forums.fm
Daichi
Senior Member
Senior Member
avatar

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

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

I tried def like this

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

$(function() {
var sidebar = document.getElementById('right');
var def = 'http://illiweb.com/fa/pbucket.gif';
if(!sidebar) return;
var x = $('.module', sidebar)[0].getElementsByTagName('img');
$('.AVATAR').html('');
});


and still not working sir.

---------------------------------------------------------------------------------------------------------


                                  No Support via. PM
Back to top Go down
http://standyourground.forums.fm
Daichi
Senior Member
Senior Member
avatar

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

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

Is there no error anymore then?

---------------------------------------------------------------------------------------------------------


                                  No Support via. PM
Back to top Go down
http://standyourground.forums.fm
Daichi
Senior Member
Senior Member
avatar

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

PostSubject: Re: avatar variable problem   Sat 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

---------------------------------------------------------------------------------------------------------


                                  No Support via. PM
Back to top Go down
http://standyourground.forums.fm
Daichi
Senior Member
Senior Member
avatar

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

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

bump alert

---------------------------------------------------------------------------------------------------------


                                  No Support via. PM
Back to top Go down
http://standyourground.forums.fm
Sponsored content




PostSubject: Re: avatar variable problem   

Back to top Go down
 
avatar variable problem
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Sugar Cane Problem!!
» Avatar: War of the 4 Kingdoms (Always Open)
» Pro bending in avatar thread
» Seishinism, The Religion of the Avatar World [Four Nations and Nippon Versions]
» Martini Henry Mark I/II 1874 Problem

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