Jump to content

jquery tools problem


pol2005

Recommended Posts

Hi i designed a layout for whmcs but i have a problem.I've included a jquery tabs animation but it's not working.

Here is my header.tpl :

 

<!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={$charset}" />

<title>{$companyname} - {$pagetitle}{if $kbarticle.title} - {$kbarticle.title}{/if}</title>

{if $systemurl}<base href="{$systemurl}" />

{/if}<link rel="stylesheet" type="text/css" href="templates/{$template}/style.css" />

<script type="text/javascript" src="includes/jscript/jquery.js"></script>

<script type="text/javascript" src="http://cdn.jquerytools.org/1.2.5/jquery.tools.min.js"></script>

{if $livehelpjs}{$livehelpjs}

{/if}

</head>

<body>

 

<div class="default" id="wrapper">

<div class="header">

<div class="logo">

<ul id="nav-primary">

<li><a href="http://www.easyspace.gr">Home</a></li>

<li><a href="cart.php">Προιόντα</a></li>

<li><a href="clientarea.php">Περιοχή Πελατών</a></li>

<li><a href="submitticket.php">Νέο Αιτήμα Υποστήριξης</a></li>

<li><a href="supporttickets.php">Αιτήματα Υποστήριξης</a></li>

<li><a href="domainchecker.php">Domains</a></li>

<li><a href="contact.php">Επικοινωνία</a></li>

</ul>

</div>

</div><!-- end header -->

<div class="header2">

<div class="header2-wrap"></div>

</div> <!-- end header2 -->

 

The site is easyspace.gr

Link to comment
Share on other sites

  • 3 months later...
see google's first result for "smarty manual"

 

Ah, I have been firmly. but politely told to RTFM for which I thank you squire!

 

:D

 

I had completely forgotten WHMCS was Smarty templates and spent far too long searching this forum using the wrong search queries and coming up with nothing.

 

I will go now and read the manual...

 

thanks,

 

 

Hedley

Link to comment
Share on other sites

I have read the docs, followed examples and am still not able to get my Javascript to work correctly.

 

I am using this js to load Tweets into my footer:

 

<script type="text/javascript">
		$(document).ready(function() {
			$("#twitter").getTwitter({ 
				userName: "dedesignandhost",
				loaderText: "Loading tweets..."
			});
		});		
	</script>

 

I have tried wrapping the entire block, including the <script> </script> in {literal} {/literal}, then inside of that, and all over the place.

 

Currently I have:

 

<script type="text/javascript">
{literal}
		$(document).ready(function() {
			$("#twitter").getTwitter({ 
				userName: "dedesignandhost",
				loaderText: "Loading tweets..."
			});
		});	
		{/literal}	
	</script>

 

and the error I get is:

 

$("#twitter").getTwitter is not a function

(?)()hosting.php (line 29)

noConflict(j=function())jquery.min.js (line 29)

j = function()

inArray()jquery.min.js (line 37)

[break On This Error] loaderText: "Loading tweets..."

hosting.php (line 29)

 

This function is working in a normal HTML template and I am at a loss as to why I can't get it to work in my templates.

 

Is this suitable for this forum or should I take it over the Smarty forum?

 

Thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated