Jump to content

Adding .js in custom pages for whmcs (facebox)


stilv

Recommended Posts

am i doing something wrong?

 

ok php tags working had to change the code to {php} include('pages/intro.txt'); {/php}

 

** but facebox is not, am i doing something working?

 

header.tpl

<link rel=alternate type=application/rss+xml title=Las Vegas and Henderson Pest Control href=http://feeds.feedburner.com/Las-Vegas/Pest-Control />
<link rel="stylesheet" type="text/css" href="templates/{$template}/style.css" />
<link rel="stylesheet" type="text/css" href="templates/{$template}/extra.css" />
<link rel="stylesheet" type="text/css" href="templates/{$template}/glossy-buttons.css" />

<!-- The Pop -->
{literal}
<script src="templates/{$template}/jquery.js" type="text/javascript"></script>
{/literal}
<link href="templates/{$template}/facebox.css" media="screen" rel="stylesheet" type="text/css"/>
{literal}
<script src="templates/{$template}/facebox.js" type="text/javascript"></script>
{/literal}

homepage.tpl

{literal}
<script type="text/javascript"> 
jQuery(document).ready(function($) { 
$('a[rel*=facebox]').facebox() 
}) 
</script> 
{/literal}

<div class="downarrowdiv">


{php} include('pages/intro.txt'); {/php}


</div>

Link to comment
Share on other sites

Please read http://www.smarty.net/docsv2/en/language.function.literal.tpl

 

<link rel="alternate" type="application/rss+xml" title="Las Vegas and Henderson Pest Control" href="http://feeds.feedburner.com/Las-Vegas/Pest-Control" />
<link rel="stylesheet" type="text/css" href="templates/{$template}/style.css" />
<link rel="stylesheet" type="text/css" href="templates/{$template}/extra.css" />
<link rel="stylesheet" type="text/css" href="templates/{$template}/glossy-buttons.css" />

<!-- The Pop -->
<script src="templates/{$template}/jquery.js" type="text/javascript"></script>
<link href="templates/{$template}/facebox.css" media="screen" rel="stylesheet" type="text/css"/>
<script src="templates/{$template}/facebox.js" type="text/javascript"></script>

 

 

{literal}
<script type="text/javascript"> $(function(){$('a[rel="facebox"]').facebox(); }); </script> 
{/literal}

<div class="downarrowdiv">
{php} echo file_get_contents('pages/intro.txt');{/php}
</div>

 

 

should be fixed

Edited by k1ng440
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