Hi, i'm trying to install freichat on elgg but nothing shows up after the install.
I correctly pasted the code i guess
here is the head.php in view/default/page/elements/
Hi, i'm trying to install freichat on elgg i sent the freichat folder into the elgg folder and installed but nothing shows up after the install.
I correctly pasted the code i guess
here is the head.php in view/default/page/elements/
````
<?php
/**
* The HTML head
*
* JavaScript load sequence (set in views library and this view)
* ------------------------
* 1. Elgg's initialization which is inline because it can change on every page load.
* 2. RequireJS config. Must be loaded before RequireJS is loaded.
* 3. RequireJS
* 4. jQuery
* 5. jQuery migrate
* 6. jQueryUI
* 7. elgg.js
*
* @uses $vars['title'] The page title
* @uses $vars['metas'] Array of meta elements
* @uses $vars['links'] Array of links
*/
$metas = elgg_extract('metas', $vars, array());
$links = elgg_extract('links', $vars, array());
echo elgg_format_element('title', array(), $vars['title'], array('encode_text' => true));
foreach ($metas as $attributes) {
echo elgg_format_element('meta', $attributes);
}
foreach ($links as $attributes) {
echo elgg_format_element('link', $attributes);
}
$js = elgg_get_loaded_js('head');
$css = elgg_get_loaded_css();
$elgg_init = elgg_view('js/initialize_elgg');
$html5shiv_url = elgg_normalize_url('vendors/html5shiv.js');
$ie_url = elgg_get_simplecache_url('css', 'ie');
$ie8_url = elgg_get_simplecache_url('css', 'ie8');
$ie7_url = elgg_get_simplecache_url('css', 'ie7');
?>
<!--[if lt IE 9]>
<script src="<?php echo $html5shiv_url; ?>"></script>
<![endif]-->
<?php
foreach ($css as $url) {
echo elgg_format_element('link', array('rel' => 'stylesheet', 'href' => $url));
}
?>
<!--===========================FreiChatX=======START=========================-->
<!-- For uninstalling ME , first remove/comment all FreiChatX related code i.e below code
Then remove FreiChatX tables frei_session & frei_chat if necessary
The best/recommended way is using the module for installation -->
<?php
if(isset($_SESSION["guid"])==true) {$ses=$_SESSION["guid"]; } else {$ses=0;}
if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){
if(is_file("/home/nourislam/public_html/elgg/freichat/hardcode.php")){
require "/home/nourislam/public_html/elgg/freichat/hardcode.php";
$temp_id = $ses . $uid;
return md5($temp_id);
}
else
{
echo "<script>alert('module freichatx says: hardcode.php file not
found!');</script>";
}
return 0;
}
}
?><script type="text/javascript" language="javascipt"src="http://www.nourislam.odns.fr/elgg/freichat/client/main.php?id=<?php echo $ses;?>&xhash=<?php echo freichatx_get_hash($ses); ?>"></script>
<link rel="stylesheet" href="http://www.nourislam.odns.fr/elgg/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">
<!--===========================FreiChatX=======END=========================-->
<!--[if gt IE 8]>
<link rel="stylesheet" href="<?php echo $ie_url; ?>" />
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" href="<?php echo $ie8_url; ?>" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" href="<?php echo $ie7_url; ?>" />
<![endif]-->
<script><?php echo $elgg_init; ?></script>
<?php
foreach ($js as $url) {
echo elgg_format_element('script', array('src' => $url));
}
echo elgg_view_deprecated('page/elements/shortcut_icon', array(), "Use the 'head', 'page' plugin hook.", 1.9);
echo elgg_view_deprecated('metatags', array(), "Use the 'head', 'page' plugin hook.", 1.8);
````