-
AuthorPosts
-
September 11, 2010 at 10:00 pm #154236
I want to add a custom JavaScript code before </head> and </body> of the website. Where can I put the code?
Laura Rubino FriendLaura Rubino
- Join date:
- September 2014
- Posts:
- 86
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 2
- Thanked:
- 15 times in 14 posts
September 12, 2010 at 12:31 am #355220Go to layouts folder in the template/blocks and add it to the head.php
September 12, 2010 at 2:37 am #355227Thanks. I have already seen it. Here is the issue:
1) Whatever I put in blocks/header.php doesn’t appear above </head> tag.
2) Whatever I put in blocks/footer.php doesn’t appeat above </body> tag. It is appearing above </div></body> and so my Cometchat integration appears within the footer <div> tags, and disappears when I scroll up.There needs to be a solution for this.
Laura Rubino FriendLaura Rubino
- Join date:
- September 2014
- Posts:
- 86
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 2
- Thanked:
- 15 times in 14 posts
September 12, 2010 at 2:39 am #355228i said head.php not header.php These are two different files. Add your javascript code below the css in head.php
September 12, 2010 at 5:53 pm #355266Laura Rubino FriendLaura Rubino
- Join date:
- September 2014
- Posts:
- 86
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 2
- Thanked:
- 15 times in 14 posts
September 12, 2010 at 6:23 pm #355270check the plugins folder.
September 14, 2010 at 4:12 am #355440Hello everyone I’m also using the template JA-social and can not find where to insert the code for the proper functioning of CometChat, if anyone has solved the problem and can help me thank you.
Ciao a tutti anche io sto utilizzando il template JA-Social e non trovo dove inserire il codice per il corretto funzionamento di CometChat, se qualcuno ha risolto il problema e mi può aiutare grazie mille
lpeet01 Friendlpeet01
- Join date:
- February 2010
- Posts:
- 11
- Downloads:
- 11
- Uploads:
- 0
- Thanks:
- 8
- Thanked:
- 2 times in 1 posts
September 14, 2010 at 5:23 am #355446Try this 😉
This works when the user logs in it will show the chat bar, when user logs out bar goes away.
plugins/system/jat3/base-themes/default/blocks/head.php
top of head.php
<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js”></script>
<script>jqcc=jQuery.noConflict(true);</script>bottom of head.php
<?php
$my =& JFactory::getUser();
if (!empty($my->id)) {
?>
<!– CometChat Footer Code Start –>
<link type=”text/css” rel=”stylesheet” media=”all” href=”/cometchat/cometchatcss.php” charset=”utf-8″ />
<script type=”text/javascript” src=”/cometchat/cometchatjs.php” charset=”utf-8″></script>
<!– CometChat Footer Code End –>
<?php
}
?>September 14, 2010 at 5:43 am #355449tank tank tank tank tank tank perfect veryyyyy goooddddd tanksssss
AuthorPostsViewing 9 posts - 1 through 9 (of 9 total)This topic contains 9 replies, has 4 voices, and was last updated by Fabio Capogna 14 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Template question
Viewing 9 posts - 1 through 9 (of 9 total)