Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
User Profile Buttons NOT working.
Hi. I'm having some trouble with the user profiles buttons not working.
The "About Me" button is on by default. The link is: /profile/view/Andromeda but clicking a button only adds a #buttonname after my username as you can see in my video.
__________________
Failing at being normal since 1990. |
#2
|
||||
|
||||
Re
I had the same problem when I tried to edit the tabs... for me, one of the tab got caught in a foreach loop, but I don't think that' your case right? Is the tab code in the correct place?
Last edited by Hwona; 04-26-2015 at 02:17 AM. |
#3
|
||||
|
||||
I have no idea. As far as I know, I've never touched the tabs code. Anything altered in the template.tpl wasn't to do with the user profiles.
The tabs have always been a problem for me as soon as the site was installed.
__________________
Failing at being normal since 1990. |
#4
|
||||
|
||||
Did this happen after you installed one the Item Shop Mod that I made? If you managed to? If so, read carefully and make sure that you read and did ALL of things, or else you'd have this problem. Be sure to add the lines to your theme's header.tpl, and then, as instructed just two paragraphs down from that, open up inc/tabs.php and delete the contents of the file (but not the file itself). Missing any of that would definitely cause this problem.
__________________
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; 04-26-2015 at 05:09 AM. |
#5
|
||||
|
||||
Yeah I made sure I did those parts.
To be honest, I've never seen them working on my site. They definitely didn't work BEFORE installing ANY of your mods Kyttias. When I mod something, I check a certain set of pages in case they break, one of them being user profiles even if the mod doesn't appear to have anything to do with that particular page. My tabs.php is saved blank. This is my header.tpl Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>{$browser_title}</title> {$header->loadFavicon("{$home}favicon.ico")} {$header->loadStyle("{$home}{$temp}{$theme}/style.css")} {$header->loadStyle("{$home}{$css}/menu.css")} {$header->loadAdditionalStyle()} {$header->loadStyle("{$home}{$css}/tooltip.css")} <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script src="{$home}{$js}/tooltip.js"></script> <script src="{$home}{$js}/tabs.js"></script> <script> $(function() { $("#profile").organicTabs(); }); </script> </head>
__________________
Failing at being normal since 1990. |
#6
|
||||
|
||||
Hmm... what theme are you using? Near the bottom of your template.tpl, is there another link to jQuery? You only need it once in your site, but it must before any other scripts you use. Because we're calling it the header.tpl, we can safely remove it from the end of template.tpl.
And while this shouldn't be relevant, in the header.tpl, that last script tag? Could you add type="text/javascript" to it? Not having it there is HTML5 acceptable, but your page is using a very strict (and very outdated) XHTML as a guideline instead (judging by the top two lines), so it may break it. So um, those last four lines, try replacing them with this: Code:
<script type="text/javascript"> $(function() { $("#profile").organicTabs(); }); </script> </head> Code:
<!DOCTYPE html> <html>
__________________
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; 04-26-2015 at 06:37 PM. |
#7
|
||||
|
||||
AWESOME! I did all that.
There was an identicle jQuery in the template.tpl just above the konami code scripts. Removed that, fixed the header.tpl and ta dah! All working there like it should from the beginning. Thank you Kyttias!
__________________
Failing at being normal since 1990. |
#8
|
||||
|
||||
Yay! I'm glad that got figured out. It's always so confusing when the profile tabs break. They break for soooo many different reasons, it seems.
__________________
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. |
#9
|
||||
|
||||
Well the broken tabs has been a problem from pretty much day 1 of both versions of my site.
I joined that codeacademy but obviously it'll be a while before I learn enough to fix things myself. Just one more step towards allowing a few limited registries for a sort of beta test.
__________________
Failing at being normal since 1990. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Where is the formatting for form buttons? | Infernette | Questions and Supports | 4 | 06-18-2015 07:47 PM |
Code to get user profile image | Hedgen | Questions and Supports | 2 | 04-14-2013 12:46 PM |
Menu bar disappears when viewing user profile? | Aasixx | Questions and Supports | 8 | 08-19-2012 06:01 PM |
Affiliate buttons? | Bibarel | Feedback and Suggestions | 0 | 01-16-2012 02:46 PM |
Better Messages Buttons | Inf3rnal | Mys v1.2.x Mods | 2 | 10-28-2011 12:11 PM |
What's New? |
What's Hot? |
What's Popular? |