FreiChat related discussions
Display Freichat on joomla page when I choose phpbb integration

Hello,

First, thank for your extension, it works very well. smile

I use Joomla 3.4 and phpbb 3.4, both forked with P8Pbb Bridge.
The forum is also encapsuled in the Joomla template.

I installed freichat with phpbb integration (to have users avatars displaying correctly because I have no avatar system on Joomla), and I put the given code in overall_header.html as mentionned during the installation.

It works fine, my users are displayed correctly, and also the phpbb avatars.

But freichat is only displaying on forum pages, not on Joomla pages.
I try to put the given code in index.php of my joomla template rather than in overall_header.html, but it don't work.

Is there a possibility to display the chat module in all my website pages (Joomla and phpbb) by changing something in the code ?

The code is the following :

<!--===========================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(!function_exists("freichatx_get_hash")){
function freichatx_get_hash(){
global $user;
$ses = $user->session_id;
       if(is_file("/home/xxx/www/freichat/hardcode.php")){
               require "/home/xxx/www/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;
}
}
<!-- ENDPHP -->
<script type="text/javascript" language="javascipt"
src="http://www.xxx.fr/freichat/client/main.php?id={SESSION_ID}&xhash=<!-- PHP --> echo freichatx_get_hash(); <!-- ENDPHP -->">
</script><link rel="stylesheet" href="http://www.xxx.fr/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">
<!--===========================FreiChatX=======END=========================-->

I tried to install Freichat with Joomla integration, but the random avatars displayed are not those of phpbb, so I have choose phpbb integration instead. smile

Thank for your help.

Bye.

Hello, First, thank for your extension, it works very well. :) I use Joomla 3.4 and phpbb 3.4, both forked with P8Pbb Bridge. The forum is also encapsuled in the Joomla template. I installed freichat with phpbb integration (to have users avatars displaying correctly because I have no avatar system on Joomla), and I put the given code in overall_header.html as mentionned during the installation. It works fine, my users are displayed correctly, and also the phpbb avatars. But freichat is only displaying on forum pages, not on Joomla pages. I try to put the given code in index.php of my joomla template rather than in overall_header.html, but it don&#039;t work. Is there a possibility to display the chat module in all my website pages (Joomla and phpbb) by changing something in the code ? The code is the following : ```` &amp;lt;!--===========================FreiChatX=======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;amp; frei_chat if necessary The best/recommended way is using the module for installation --&amp;gt; &amp;lt;!-- PHP --&amp;gt; if(!function_exists(&quot;freichatx_get_hash&quot;)){ function freichatx_get_hash(){ global $user; $ses = $user-&amp;gt;session_id; if(is_file(&quot;/home/xxx/www/freichat/hardcode.php&quot;)){ require &quot;/home/xxx/www/freichat/hardcode.php&quot;; $temp_id = $ses . $uid; return md5($temp_id); } else { echo &quot;&amp;lt;script&amp;gt;alert(&#039;module freichatx says: hardcode.php file not found!&#039;);&amp;lt;/script&amp;gt;&quot;; } return 0; } } &amp;lt;!-- ENDPHP --&amp;gt; &amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascipt&quot; src=&quot;http://www.xxx.fr/freichat/client/main.php?id={SESSION_ID}&amp;amp;xhash=&amp;lt;!-- PHP --&amp;gt; echo freichatx_get_hash(); &amp;lt;!-- ENDPHP --&amp;gt;&quot;&amp;gt; &amp;lt;/script&amp;gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;http://www.xxx.fr/freichat/client/jquery/freichat_themes/freichatcss.php&quot; type=&quot;text/css&quot;&amp;gt; &amp;lt;!--===========================FreiChatX=======END=========================--&amp;gt; ```` I tried to install Freichat with Joomla integration, but the random avatars displayed are not those of phpbb, so I have choose phpbb integration instead. :) Thank for your help. Bye.
edited Jul 23 '15 at 2:01 am

Hi,

Does it display in all pages if you install it with Joomla integration ?

If yes, you can just modify the code slightly to use phpbb avatars.

Hi, Does it display in all pages if you install it with Joomla integration ? If yes, you can just modify the code slightly to use phpbb avatars.

Hello,

Yes it displays on all pages with joomla integration.
How can I modifiy the code to display phpbb avatars with joomla integration ?

Thank for your reply smile

Hello, Yes it displays on all pages with joomla integration. How can I modifiy the code to display phpbb avatars with joomla integration ? Thank for your reply :)

Hi,

Try this:

Open freichat/hardcode.php

Replace

$driver = 'Joomla';

with

$driver = 'Phpbb';
Hi, Try this: Open freichat/hardcode.php Replace ``` $driver = &#039;Joomla&#039;; ``` with ``` $driver = &#039;Phpbb&#039;; ```

Hello,

It's not working by changing driver.
I have, of course, changed the prefix database too, to make it match with phpbb tables.
But don't worry about that, it's not very important if Freichat is displaying only on forum pages. smile

However, my second problem on the other topic is more important for me smile

Thank you Adesh.

Hello, It&#039;s not working by changing driver. I have, of course, changed the prefix database too, to make it match with phpbb tables. But don&#039;t worry about that, it&#039;s not very important if Freichat is displaying only on forum pages. :) However, my second problem on the other topic is more important for me :) Thank you Adesh.
241
4
2
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