FreiChat related discussions
Code Added

Ok, this is a silly question I know. I forgot to write down the coded added to my files and I wanted to unistall then do a clean reinstall of freichat. Can someone help with the code that is cut and pasted.....that should now be removed? And which file it went into. I would appreciate the help although I know this is a silly question.

Ok, this is a silly question I know. I forgot to write down the coded added to my files and I wanted to unistall then do a clean reinstall of freichat. Can someone help with the code that is cut and pasted.....that should now be removed? And which file it went into. I would appreciate the help although I know this is a silly question.

If you had made a "manual installation", here is the block of code that you had added:

1. into your "index.php" file of your used template
2. and placed just before the

</head>
tag

But, if you had made an "automatic installation", none code is added: you had installed a specific module named "mod_freichatx-i.zip" into your CMS.

Sample of Block of Code:
================
<!--==========================FreiChatX====VERSIONS====5.X====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 $session = JSession::getInstance("none",array());
$host = JURI::root();
$ses=$session->getId();

if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){

if(is_file("/home/claude/joomla6/freichat/arg.php")){

require "/home/claude/joomla6/freichat/arg.php";

$temp_id = $ses . $uid;

return md5($temp_id);

}
else
{
echo "<script>alert('module freichatx says: arg.php file not
found!');</script>";
}

return 0;
}
}
?>
<script type="text/javascript" language="javascipt" src="<?php%20echo%20%24host;%20?>freichat/client/main.php?id=<?php%20echo%20%24ses;?>&xhash=<?php%20echo%20freichatx_get_hash(%24ses);%20?>">
</script><link rel="stylesheet" href="<?php%20echo%20%24host;%20?>freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css"><!-- NOTE:: The copypaste code differs from 4.X to 5.X and may differ for further versions--><!-- So to be at a safer side always replace the entire FreiChatX code during installation-->

If you had made a &quot;manual installation&quot;, here is the block of code that you had added: &amp;lt;strong&amp;gt; 1. into your &quot;index.php&quot; file of your used template 2. and placed just before the &amp;lt;code&amp;gt; &amp;lt;/head&amp;gt; &amp;lt;/code&amp;gt; tag &amp;lt;/strong&amp;gt; But, if you had made an &quot;automatic installation&quot;, none code is added: you had installed a specific module named &quot;mod_freichatx-i.zip&quot; into your CMS. Sample of Block of Code: ================ &amp;lt;code&amp;gt; &amp;lt;!--==========================FreiChatX====VERSIONS====5.X====START========================--&amp;gt; &amp;lt;!-- For uninstalling ME , first remove/comment all FreiChatX related code i.e below code Then remove FreiChatX tables frei_session &amp; frei_chat if necessary The best/recommended way is using the module for installation --&amp;gt; &amp;lt;?php $session = JSession::getInstance(&quot;none&quot;,array()); $host = JURI::root(); $ses=$session-&amp;gt;getId(); if(!function_exists(&quot;freichatx_get_hash&quot;)){ function freichatx_get_hash($ses){ if(is_file(&quot;/home/claude/joomla6/freichat/arg.php&quot;)){ require &quot;/home/claude/joomla6/freichat/arg.php&quot;; $temp_id = $ses . $uid; return md5($temp_id); } else { echo &quot;&amp;lt;script&amp;gt;alert(&#039;module freichatx says: arg.php file not found!&#039;);&amp;lt;/script&amp;gt;&quot;; } return 0; } } ?&amp;gt; &amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascipt&quot; src=&quot;&amp;lt;?php echo $host; ?&amp;gt;freichat/client/main.php?id=&amp;lt;?php echo $ses;?&amp;gt;&amp;xhash=&amp;lt;?php echo freichatx_get_hash($ses); ?&amp;gt;&quot;&amp;gt; &amp;lt;/script&amp;gt; &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $host; ?&amp;gt;freichat/client/jquery/freichat_themes/freichatcss.php&quot; type=&quot;text/css&quot;&amp;gt; &amp;lt;!-- NOTE:: The copypaste code differs from 4.X to 5.X and may differ for further versions--&amp;gt; &amp;lt;!-- So to be at a safer side always replace the entire FreiChatX code during installation--&amp;gt; &amp;lt;/code&amp;gt;
81
1
0
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft