Usermenu gone wrong and other forum bugs
3 posters
Page 1 of 1
Usermenu gone wrong and other forum bugs
Technical Details
Forum version : #PunBBPosition : 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
HiSo 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
- Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!
Re: Usermenu gone wrong and other forum bugs
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.
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.
Re: Usermenu gone wrong and other forum bugs
Hi
Regards,
Pizza Boi
- 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
- Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!
Re: Usermenu gone wrong and other forum bugs
Try replacing it with this :
- Code:
$(function(){
var a = document.getElementById('usermenu');
a && a.insertAdjacentHTML('afterbegin', '<span id="fa_proxy">' + _userdata.avatar + '</span>');
});
Re: Usermenu gone wrong and other forum bugs
Hi
._." 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
._." 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
- Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!
Re: Usermenu gone wrong and other forum bugs
Does it need to be adjusted ?Pizza Boi wrote:Hi
._." I think I'd rather stick with the original one even though it needs a userbar to produce a result.
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.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
Re: Usermenu gone wrong and other forum bugs
Hi
Okay, I get it, also what about that screenshot? How do I fix it?
Regards,
Pizza Boi
Okay, I get it, also what about that screenshot? How do I fix it?
Regards,
Pizza Boi
Pizza Boi- Hyperactive
- Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!
Re: Usermenu gone wrong and other forum bugs
Hi
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
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
- Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!
Similar topics
» Forum Domain Registered to Wrong Forum
» Wrong forum name on browser tab
» Forum address is wrong
» What's wrong with the Forum Donation?*
» Forum's Appearance is Very Wrong
» Wrong forum name on browser tab
» Forum address is wrong
» What's wrong with the Forum Donation?*
» Forum's Appearance is Very Wrong
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum