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.

Usermenu gone wrong and other forum bugs

View previous topic View next topic Go down

Solved Usermenu gone wrong and other forum bugs

Post by Pizza Boi on June 30th 2015, 1:01 am

Technical Details

Forum version : #PunBB
Position : Founder
Concerned browser(s) : Google Chrome
Screenshot of problem : http://i.imgur.com/rTACw3v.png http://i.imgur.com/JWQp0dm.png
Who the problem concerns : All members
When the problem appeared : 30/6 7:00 GMT+8
Forum link : http://redlustempire.forumtl.com/

Description of problem

Hi Very Happy

So basically, I have a problem with the usermenu. In the screenshot, one of them works; however, in the forum link I posted, it does not. I would like to know what's causing the problem since I'm using the same code in implementing it.

Regards,
Pizza Boi


Last edited by Pizza Boi on July 2nd 2015, 1:54 pm; edited 2 times in total

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: Usermenu gone wrong and other forum bugs

Post by Ange Tuteur on June 30th 2015, 5:08 am

Hello @Pizza Boi,

It uses JavaScript to get the avatar, no ? From what I can tell, it's attempting to get the avatar from the toolbar, however, the toolbar is disabled on your forum. Could you provide the script being used ? I can modify it to work without the toolbar if it's what you want. Wink

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Usermenu gone wrong and other forum bugs

Post by Pizza Boi on June 30th 2015, 10:12 pm

Hi Very Happy

Code:
$(window).load(function(){
var x = document.getElementById('fa_usermenu').getElementsByTagName('img')[0].src;
document.getElementById('usermenu').insertAdjacentHTML('afterbegin', '<span id="fa_proxy"><img src="'+x+'" width="75" height="73"/></span>');
});

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: Usermenu gone wrong and other forum bugs

Post by Ange Tuteur on June 30th 2015, 10:56 pm

Try replacing it with this :
Code:
$(function(){
  var a = document.getElementById('usermenu');
  a && a.insertAdjacentHTML('afterbegin', '<span id="fa_proxy">' + _userdata.avatar + '</span>');
});

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Usermenu gone wrong and other forum bugs

Post by Pizza Boi on July 1st 2015, 5:49 am

Hi Very Happy

._." I think I'd rather stick with the original one even though it needs a userbar to produce a result.

But yeah, I'm gonna make the topic one,http://prntscr.com/7ne60o . The reputation system's butchered whether it's on Chrome or Firefox (I gave up on Chrome). What happened?

Also, is it possible if you can check on other errors?

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: Usermenu gone wrong and other forum bugs

Post by Ange Tuteur on July 1st 2015, 6:51 am

@Pizza Boi wrote:Hi Very Happy

._." I think I'd rather stick with the original one even though it needs a userbar to produce a result.
Does it need to be adjusted ?

@Pizza Boi wrote:But yeah, I'm gonna make the topic one,http://prntscr.com/7ne60o . The reputation system's butchered whether it's on Chrome or Firefox (I gave up on Chrome). What happened?

Also, is it possible if you can check on other errors?

Regards,
Pizza Boi
Error checking is pretty easy. You just have to open the console ( F12 ), and then go to the console tab. JavaScript errors are usually marked with an X + red background. Clicking the link all the way to the right will take you directly to the file which contains an error.

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Usermenu gone wrong and other forum bugs

Post by Pizza Boi on July 1st 2015, 7:02 am

Hi Very Happy

Okay, I get it, also what about that screenshot? How do I fix it?

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: Usermenu gone wrong and other forum bugs

Post by Ange Tuteur on July 1st 2015, 7:43 am

Uhh.. in the screenshot I see Skype ?

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Usermenu gone wrong and other forum bugs

Post by Pizza Boi on July 1st 2015, 7:47 am

Hi Very Happy

OMG, I copy pasted Noodle's chat p-p"... I'm so sorry e.e" anyway the bug seems to have fixed itself so I guess this is fixed now x_x". I also did some adjustments for height and width of the avatar so all is well now.

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: Usermenu gone wrong and other forum bugs

Post by APE on July 3rd 2015, 9:55 pm

Topic solved and archived





APE
Manager
Manager

Male Posts : 8648
Reputation : 759
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

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