Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-30-2015, 12:28 AM
SapphirePhoenix's Avatar
SapphirePhoenix SapphirePhoenix is offline
Adoptable Site Owner
 
Join Date: Nov 2015
Location: Australia
Posts: 81
Gender: Female
Credits: 8,279
SapphirePhoenix is on a distinguished road
Default 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>
<html>
<head>
<title>{$browser_title}</title>
{$header->loadFavicon("{$home}favicon.ico")}
{$header->loadStyle("{$home}{$temp}{$theme}/media/style-city.css")}
{$header->loadStyle("{$home}{$css}/menu.css")}
{$header->loadAdditionalStyle()}
<!--[if lte IE 6]>
{$header->loadStyle("{$home}{$css}/media/dropdown_ie.css")}
<![endif]-->
</head>
</html>
Reply With Quote
  #2  
Old 12-30-2015, 12:55 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 88,043
Kyttias is on a distinguished road
Default

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>
<html>
<head>
<title>{$browser_title}</title>
{$header->loadFavicon("{$home}favicon.ico")}
{$header->loadStyle("{$home}{$temp}{$theme}/media/style-city.css")}
{$header->loadStyle("{$home}{$css}/menu.css")}
{$header->loadAdditionalStyle()}
<!--[if lte IE 6]>
{$header->loadStyle("{$home}{$css}/media/dropdown_ie.css")}
<![endif]-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> 
<script src="{$home}{$js}/tabs.js"></script>
<script> $(function() { $("#profile").organicTabs(); }); </script>
</head>
Now check your template.tpl file - if you're loading jQuery at the end of your template file - remove it from template.tpl. We only need it in the header. (Alternatively, leave it there, and add the new lines I added to the end of your header below where jQuery loads in your template.tpl instead of putting them in the header as I did.) Either way, only load jQuery once and load all embedded scripts after it.

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.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 12-30-2015 at 01:01 AM.
Reply With Quote
  #3  
Old 12-30-2015, 01:15 AM
SapphirePhoenix's Avatar
SapphirePhoenix SapphirePhoenix is offline
Adoptable Site Owner
 
Join Date: Nov 2015
Location: Australia
Posts: 81
Gender: Female
Credits: 8,279
SapphirePhoenix is on a distinguished road
Default

Thank you! But will the giftbox mod still work?
Reply With Quote
  #4  
Old 12-30-2015, 01:40 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 88,043
Kyttias is on a distinguished road
Default

It should! So long as jQuery is loading once and only once on the page, and before any embedded scripts.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:00 PM.

Currently Active Users: 375 (0 members and 375 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636