![]() |
User Profile Buttons not working
I'm currently using the main theme and the user profile buttons (adoptables, visitor messages...) are not working. This is my header.tpl:
Code:
<!DOCTYPE html> |
After inspecting your pages directly, what I've determined to likely be the problem is that two versions of jQuery are loading and conflicting. This is caused primarily by adding jQuery to a theme, and it's happened to various users in the past -- the thing is, the jQuery is a profile asset and I use it for many things while making mods. But originally, it was really only used to control things like the tabs on the profile, so rather than include it as part of the theme, it was loaded only on the profile page. This means that, if it's part of your theme, two copies of jQuery try to load - and bad things happen.
First, remove </html> from the end of your header. That belongs at the end of the page, not at the end of your header. In fact, I'm just going to recommend you change your header.tpl to this (I added a couple lines) - Code:
<!DOCTYPE html> That said, the tabs on the profile actually load their own copy of jQuery and it's causing conflict. Open up inc/tabs.php and delete the contents of the file (but not the file itself). That'll remove the reference to the older version of jQuery and will stop the profile from loading it's own copy and confusing the other one, which was causing all the scripts to come to a screeching halt and stopping the tabs from switching. This should fix things up. |
Thank you! But will the giftbox mod still work?
|
It should! So long as jQuery is loading once and only once on the page, and before any embedded scripts.
|
All times are GMT -5. The time now is 08:54 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.