The Best way to make cometchat work with Gavick

Social Joomla! template ideal to promote activities and discussion at various levels with JomSocial support.
GK User
Fri Apr 16, 2010 8:24 pm
In your Gavick Template go to:

...layouts/blocks/

You will need 2 files:
header.php
footer.php

(not head.php) ;)

Open the header.php file, add your cometchat head code on the first 2 lines:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script>jqcc=jQuery.noConflict(true);</script>

Open the footer.php file and again, go to the very bottom and paste the code you get when you install cometchat:
<!-- 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 -->
</body>

Replace the 2 php files in your templates layouts/blocks folder and you're good to go!

I did this on Gavicks Quay Template and I just did it on the new PartyFreak Template.
You can see mine at:
http://www.dpwebagency.com/dpstore

HOPE THIS HELPS!!!
User avatar
Fresh Boarder

GK User
Tue Apr 20, 2010 4:53 pm
Hi,don't Work :( Where do I paste the code[footer.php & header.php]?begin or end of the code? My template is gk_hewahoo.Do you send me your files(footer.php & header.php)?...give up hope
User avatar
Fresh Boarder

GK User
Tue Apr 20, 2010 5:51 pm
gulp65 wrote:
Hi,don't Work :( Where do I paste the code[footer.php & header.php]?begin or end of the code? My template is gk_hewahoo.Do you send me your files(footer.php & header.php)?...give up hope


Hey Gulp,
On the header.php paste your code above everything else without the "head" tag.

On the footer.php paste your code below everything else.

I've attached my header and footer files so you can see how I did it. I use gavicks templates a lot and it works the same on all of their templates (in my experience)

Reply back and let me know if it worked for you
-Abel Ramos
User avatar
Fresh Boarder

GK User
Sat Apr 24, 2010 6:52 am
Thanks!!! Very helpful.
User avatar
Fresh Boarder

GK User
Sun May 23, 2010 4:17 am
hi i have a problem i add the code to the footer and header but he dont work please help me thank you

please send me your header and footer files thanks
User avatar
Fresh Boarder

teitbite
Mon May 24, 2010 12:12 pm
Hi

Could You please tell me how did You add this and where?
User avatar
Moderator

GK User
Mon May 24, 2010 3:21 pm
i add this on footer.php and header.php but dont work :(

This is header original :

<?php

/**
*
* @version 1.0.0
* @package GKTemplate
* @copyright Copyright (C) GavickPro. All rights reserved.
* @license Proprietary - GavickPro eClub members only
*
* ************************
*
* Header block
*
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

?>
<?php if ($this->modules('banner')) : ?>
<div id="gk_banner" class="clearfix">
<jdoc:include type="modules" name="banner" style="raw" />
</div>
<?php endif; ?>

<div id="gk_header">
</body>
<div class="menu_m">
<div class="menu_l">
<div class="menu_r clearfix">
<div id="horiz-menu">
<?php echo $this->main_navigation;?>
</div>
</div>
</div>
</div>
</div>


and this is footer original :

<?php

/**
*
* @version 1.0.0
* @package GKTemplate
* @copyright Copyright (C) GavickPro. All rights reserved.
* @license Proprietary - GavickPro eClub members only
*
* ************************
*
* Footer block
*
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

?>

<div id="gk_footer">
<div class="gk_footer_l">
<div class="gk_footer_r clearfix">
<?php if($this->modules('footer_menu')) : ?>
<div id="footer_menu">
<jdoc:include type="modules" name="footer_menu" style="<?php echo $this->module_types["footer_menu"]; ?>" />
</div>
<?php endif; ?>
<!-- Copyright Information -->
<div id="informations">
<?php echo $this->settings['footer_content']; ?>
</div>
</div>
</div>
</div>
User avatar
Fresh Boarder

GK User
Mon May 24, 2010 3:38 pm
Hey Ben,
In the Header.php file, add the code to the very first line.
In the Footer.php file, add the code to the very last line.

Make sure that the footer code is the one generated by the installation of cometchat. The header code is the same for everyone.

If you're using a pirated version, it will probably not work.

AND if you can't buy it, you can always try WIBIYA. Its free and its a lot easier to install. Just download their plugin, activate it and go to their website to add new features to the bar at the bottom of your page.

Try Wibiya here:
http://www.wibiya.com
User avatar
Fresh Boarder

GK User
Sun Feb 06, 2011 11:30 am
Hi My header and footer files do not look like yours in gamebox... Ive tried pasting the code at hte top of header.php and at the base of footer.php and whilst the chat bar appears it breaks the templates format of Jomsocial and displays all the avatars in one long row... ANYONE HAVE A COMETCHAT SOLUTION?
User avatar
Fresh Boarder

teitbite
Sun Feb 06, 2011 3:06 pm
Hi

Please ask on comchat. They have solved it and posted the solution probably.
User avatar
Moderator

GK User
Sun Feb 06, 2011 4:45 pm
teitbite wrote:Hi

Please ask on comchat. They have solved it and posted the solution probably.


Hi no they haven't and nothing in their forum either.

Surely as there are many posts on here regarding this someone at gavick can post a proper and actual solution for this with step by step details
User avatar
Fresh Boarder

teitbite
Mon Feb 07, 2011 10:29 am
Hi

I have asked my coleque who was dealing with this problem before, maby He will have more information about this fix.
User avatar
Moderator

GK User
Tue Feb 08, 2011 10:59 am
teitbite wrote:Hi

I have asked my coleque who was dealing with this problem before, maby He will have more information about this fix.


Hi...any answer on this? its a very common issue and already many posts on here which do not answer this issue. can i hope for a step by step tutorial today from your colleague as this is slowing up release and development. Hoping for a speedy solution :)
User avatar
Fresh Boarder

GK User
Wed Feb 09, 2011 7:52 pm
Bumps...
User avatar
Fresh Boarder

teitbite
Thu Feb 10, 2011 1:37 am
Hi

Sorry. Still no solution in this case.

The last hope is our programmer. I'm forwarding this to Him.
User avatar
Moderator


cron