The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Usermenu gone wrong and other forum bugs

3 posters

Go down

Solved Usermenu gone wrong and other forum bugs

Post by Pizza Boi Tue 30 Jun - 2:01

Technical Details

Forum version : #PunBB
Position : Founder
Concerned browser(s) : Google Chrome
Screenshot of problem : https://i.imgur.com/rTACw3v.png https://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 Thu 2 Jul - 14:54; edited 2 times in total
Pizza Boi
Pizza Boi
Hyperactive

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

Back to top Go down

Solved Re: Usermenu gone wrong and other forum bugs

Post by Ange Tuteur Tue 30 Jun - 6:08

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
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Usermenu gone wrong and other forum bugs

Post by Pizza Boi Tue 30 Jun - 23:12

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
Pizza Boi
Hyperactive

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

Back to top Go down

Solved Re: Usermenu gone wrong and other forum bugs

Post by Ange Tuteur Tue 30 Jun - 23:56

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
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Usermenu gone wrong and other forum bugs

Post by Pizza Boi Wed 1 Jul - 6:49

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
Pizza Boi
Hyperactive

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

Back to top Go down

Solved Re: Usermenu gone wrong and other forum bugs

Post by Ange Tuteur Wed 1 Jul - 7:51

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.
Usermenu gone wrong and other forum bugs Captur28
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Usermenu gone wrong and other forum bugs

Post by Pizza Boi Wed 1 Jul - 8:02

Hi Very Happy

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

Regards,
Pizza Boi
Pizza Boi
Pizza Boi
Hyperactive

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

Back to top Go down

Solved Re: Usermenu gone wrong and other forum bugs

Post by Ange Tuteur Wed 1 Jul - 8:43

Uhh.. in the screenshot I see Skype ?
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Usermenu gone wrong and other forum bugs

Post by Pizza Boi Wed 1 Jul - 8:47

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
Pizza Boi
Hyperactive

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

Back to top Go down

Solved Re: Usermenu gone wrong and other forum bugs

Post by Ape Fri 3 Jul - 22:55

Topic solved and archived


Usermenu gone wrong and other forum bugs Left1212Usermenu gone wrong and other forum bugs Center11Usermenu gone wrong and other forum bugs Right112
Usermenu gone wrong and other forum bugs Ape_b110
Usermenu gone wrong and other forum bugs Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19122
Reputation : 1993
Language : fluent in dork / mumbojumbo & English haha

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

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum