Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   User Profile Buttons NOT working. (http://www.mysidiaadoptables.com/forum/showthread.php?t=4836)

AndromedaKerova 04-26-2015 12:59 AM

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.

http://i.imgur.com/VakuDkA.gif

Hwona 04-26-2015 01:10 AM

Re
 
Quote:

Originally Posted by AndromedaKerova (Post 32462)
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.

http://i.imgur.com/VakuDkA.gif

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?

AndromedaKerova 04-26-2015 01:19 AM

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.

Kyttias 04-26-2015 04:03 AM

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.

AndromedaKerova 04-26-2015 03:57 PM

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>


Kyttias 04-26-2015 05:33 PM

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>

(I'd also like you to get your pages HTML5 ready, so, I'd recommend you change the first two lines to simply:)

Code:

<!DOCTYPE html>
<html>

Err, you can read more about doctype stuff here. It may not actually be the issue, but it helps me rule stuff out.

AndromedaKerova 04-26-2015 05:43 PM

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!

Kyttias 04-26-2015 06:11 PM

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. :angrybracket:

AndromedaKerova 04-26-2015 06:19 PM

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.


All times are GMT -5. The time now is 10:05 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.