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

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/.

---------------------------------------------------------------------------------------------------------
avatar variable problem Userba12

                                  No Support via. PM
Back to top Go down
http://standyourground.forumotion.com
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.

---------------------------------------------------------------------------------------------------------
avatar variable problem Userba12

                                  No Support via. PM
Back to top Go down
http://standyourground.forumotion.com
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.

---------------------------------------------------------------------------------------------------------
avatar variable problem Userba12

                                  No Support via. PM
Back to top Go down
http://standyourground.forumotion.com
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?

---------------------------------------------------------------------------------------------------------
avatar variable problem Userba12

                                  No Support via. PM
Back to top Go down
http://standyourground.forumotion.com
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.

---------------------------------------------------------------------------------------------------------
avatar variable problem Userba12

                                  No Support via. PM
Back to top Go down
http://standyourground.forumotion.com
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

---------------------------------------------------------------------------------------------------------
avatar variable problem Userba12

                                  No Support via. PM
Back to top Go down
http://standyourground.forumotion.com
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.

---------------------------------------------------------------------------------------------------------
avatar variable problem Userba12

                                  No Support via. PM
Back to top Go down
http://standyourground.forumotion.com
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?

---------------------------------------------------------------------------------------------------------
avatar variable problem Userba12

                                  No Support via. PM
Back to top Go down
http://standyourground.forumotion.com
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.

---------------------------------------------------------------------------------------------------------
avatar variable problem Userba12

                                  No Support via. PM
Back to top Go down
http://standyourground.forumotion.com
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?

---------------------------------------------------------------------------------------------------------
avatar variable problem Userba12

                                  No Support via. PM
Back to top Go down
http://standyourground.forumotion.com
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?

---------------------------------------------------------------------------------------------------------
avatar variable problem Userba12

                                  No Support via. PM
Back to top Go down
http://standyourground.forumotion.com
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.

---------------------------------------------------------------------------------------------------------
avatar variable problem Userba12

                                  No Support via. PM
Back to top Go down
http://standyourground.forumotion.com
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.

---------------------------------------------------------------------------------------------------------
avatar variable problem Userba12

                                  No Support via. PM
Back to top Go down
http://standyourground.forumotion.com
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?

---------------------------------------------------------------------------------------------------------
avatar variable problem Userba12

                                  No Support via. PM
Back to top Go down
http://standyourground.forumotion.com
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

---------------------------------------------------------------------------------------------------------
avatar variable problem Userba12

                                  No Support via. PM
Back to top Go down
http://standyourground.forumotion.com
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

---------------------------------------------------------------------------------------------------------
avatar variable problem Userba12

                                  No Support via. PM
Back to top Go down
http://standyourground.forumotion.com
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
-
» Bai Ling
» The Mushi Master is back!!!!
» an end is also an beginning
» North Chung-Ling; the Fire Fountain City
» Tahno VII

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