FreiChat related discussions
rename freichat folder

Hello. I know that i can have access to freichat settings writing the following url: www.mydomain.com/freichat/adm......
I know that user have to insert the right password, but i want to protect better the chat settings so i wish i know if i can rename the freichat folder using another name so to change this standard url.
Thanks.
Best regards

Hello. I know that i can have access to freichat settings writing the following url: www.mydomain.com/freichat/adm...... I know that user have to insert the right password, but i want to protect better the chat settings so i wish i know if i can rename the freichat folder using another name so to change this standard url. Thanks. Best regards

You can rename the folder to anything you want .

But , you will have to change two paths .
Just tell me which installation type you have used i.e Modular or Manual installation.


But there is one problem , that for every new version , you will have to repeat the same
process of renaming the two paths .

Yet i will try to make things simpler , so that code editing is not required.
But that will take time .

You can rename the folder to anything you want . But , you will have to change two paths . Just tell me which installation type you have used i.e Modular or Manual installation. But there is one problem , that for every new version , you will have to repeat the same process of renaming the two paths . Yet i will try to make things simpler , so that code editing is not required. But that will take time .
Necessity is the mother of all inventions!

Hi. Please let me know which two paths i have to change and where i have to change them.
Thanks

Hi. Please let me know which two paths i have to change and where i have to change them. Thanks

First atleast tell me , did you install freichat by editing template or by
installing module

First atleast tell me , did you install freichat by editing template or by installing module
Necessity is the mother of all inventions!

You installed for me yesterday, remember?. I suppose using module. Please also consider that i don't want show standard module chat but only window chat. How can i do?
Thanks.

You installed for me yesterday, remember?. I suppose using module. Please also consider that i don't want show standard module chat but only window chat. How can i do? Thanks.

You can try using manual install , which will not show any extra module .

You can try using manual install , which will not show any extra module .
Necessity is the mother of all inventions!

Sorry interpreted wrongly , you will have to change four paths ,

Go to modules/mod_freichatx/mod_freichatx.php

Now , consider two cases ,

Remember the case that you want i will use them below.




  • CASE 1:. You want the folder to be inside Joomla directory

  • consider it to be in
    Joomla_installed_folder/IN_FOLDER/freichat


  • CASE 2:. You want the folder outside joomla directory


consider it to be in
OUT_FOLDER/freichat





  • On line 15 you will find

  • if(is_file(JPATH_SITE."/freichat/arg.php")){


    The JPATH_SITE is a constant that returns the path to the Joomla directory

    for CASE 1 :
    replace the code by
    if(is_file(JPATH_SITE."/IN_FOLDER/freichat/arg.php")){


    for CASE 2 :

    replace the code by
    if(is_file("/root path to someotherfolder/freichat/arg.php")){


    Make appropriate changes

  • On line 19 you will find

  • require(JPATH_SITE.'/images/freichat/arg.php');


    Make the same changes as you did in line 15.

  • Now come to line 35

  • you should find

    $document->addScript($host.'freichat/client/main.php?id='.$ses.'&xhash='.freichatx_get_hash($ses));


    for CASE 1:

    Replace it by

    $document->addScript($host.'IN_FOLDER/freichat/client/main.php?id='.$ses.'&xhash='.freichatx_get_hash($ses));


    for CASE 2 :

    Replace it by

    $document->addScript('http://blerit.com/OUT_FOLDER/freichat/client/main.php?id='.$ses.'&xhash='.freichatx_get_hash($ses));


    Make appropriate changes

    Similarly for the next line
    $document->addStyleSheet($host.'freichat/client/jquery/freichat_themes/freichatcss.php');


  • Make the same change as you did for line 35


It looks a little complicated but it isn't.
If you are unable to get it , then please let me know , i will do it for you .
Sorry interpreted wrongly , you will have to change four paths , Go to modules/mod_freichatx/mod_freichatx.php Now , consider two cases , Remember the case that you want i will use them below. <ul> <li> CASE 1:. You want the folder to be inside Joomla directory </li> consider it to be in Joomla_installed_folder/IN_FOLDER/freichat <li> CASE 2:. You want the folder outside joomla directory </li> </ul> consider it to be in OUT_FOLDER/freichat <hr/> <ul> <li> On line 15 you will find </li> <code> if(is_file(JPATH_SITE."/freichat/arg.php")){ </code> The JPATH_SITE is a constant that returns the path to the Joomla directory for CASE 1 : replace the code by <code> if(is_file(JPATH_SITE."/IN_FOLDER/freichat/arg.php")){ </code> for CASE 2 : replace the code by <code> if(is_file("/root path to someotherfolder/freichat/arg.php")){ </code> Make appropriate changes <li>On line 19 you will find </li> <code> require(JPATH_SITE.'/images/freichat/arg.php'); </code> Make the same changes as you did in line 15. <li>Now come to line 35 </li> you should find <code> $document->addScript($host.'freichat/client/main.php?id='.$ses.'&xhash='.freichatx_get_hash($ses)); </code> for CASE 1: Replace it by <code> $document->addScript($host.'IN_FOLDER/freichat/client/main.php?id='.$ses.'&xhash='.freichatx_get_hash($ses)); </code> for CASE 2 : Replace it by <code> $document->addScript('http://blerit.com/OUT_FOLDER/freichat/client/main.php?id='.$ses.'&xhash='.freichatx_get_hash($ses)); </code> Make appropriate changes Similarly for the next line <code> $document->addStyleSheet($host.'freichat/client/jquery/freichat_themes/freichatcss.php'); </code> <li>Make the same change as you did for line 35 </li></ul> It looks a little complicated but it isn't. If you are unable to get it , then please let me know , i will do it for you .
Necessity is the mother of all inventions!

I hope that you'll add this feature prox during chat settings or administration
Thanks

I hope that you'll add this feature prox during chat settings or administration Thanks

I will try to make this much more easier , in the next version .

I will try to make this much more easier , in the next version .
Necessity is the mother of all inventions!
76
9
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