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 June 30th 2015, 1:01 am

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 July 2nd 2015, 1:54 pm; 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 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
Ange Tuteur
Forumaster

Male Posts : 13207
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 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
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 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
Ange Tuteur
Forumaster

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

Male Posts : 13207
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 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
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 July 1st 2015, 7:43 am

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

Male Posts : 13207
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 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
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 July 3rd 2015, 9:55 pm

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 : 19450
Reputation : 2011
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