Jump to content
[MUST READ] Forum Rules ×

MOFHY Lite || MOFHY Feature Request


Recommended Posts

Hi there, 

I have seen there are many feature lags in MOFHY Lite. Here you can request any feature by presenting its reference.

All updates will be performed on MOFHY Lite github repository. Old versions will be archived as soon as new version release.

There can be only one admin per MOFHY installation. 

MOFHY Lite is open source as well HUSTAL PROJECT. 

Link to comment
Share on other sites

  • Replies 347
  • Created
  • Last Reply

Top Posters In This Topic

Just now, Santiago said:

Hi everyone,
I have created a MOFHY Lite repository in Spanish and English, I will be adding any update in the original repository, I am working in the multi-language system when I have it I will transfer the repository to @Shen Wei 

My repository: https://github.com/santydesignscr/MOFHY-Lite-Multi-Language

I wil to add my SSL Modification

Link to comment
Share on other sites

After giving it a lot of thought and testing, I have found that it is better to perform 2 installations of MOFHY Lite using the same database in different directories and replace all the occurrences of to your clientarea url (example: https://santyhost.ga/en/clientarea/) (I do that whith VS Code)

<?php echo $AreaInfo['area_url'];?>

In one of the installations

And use this code to swich the languages 

<?php
    $lang = "en";
    $allowedlangs = array(
        "en",
        "es"
    );
    if (!empty($_GET["lang"])) {
        $rlang = $_GET["lang"];
    } else if (!empty($_COOKIE["lang"])) {
        $rlang = $_COOKIE["lang"];
    }
    if (isset($rlang) && !empty($rlang) && in_array($rlang, $allowedlangs)) {
        $lang = $rlang;
        setcookie("lang", $lang,time()+31536000);
    }
    $langmaps = array(
        "en" => "/en",
        "es" => "/es"
    );
    header("Redirecting to the Site");
    header("Location: https://santyhost.ga$langmaps[$lang]");
    exit;
?>

You need to give a url on your site whith this estructure yourdomain.com?lang=en, (Replace en whith the language to be set whit the link)

And you need to edit the final of the file whith your domain

Link to comment
Share on other sites

2 hours ago, Santiago said:

After giving it a lot of thought and testing, I have found that it is better to perform 2 installations of MOFHY Lite using the same database in different directories and replace all the occurrences of to your clientarea url (example: https://santyhost.ga/en/clientarea/) (I do that whith VS Code)



<?php echo $AreaInfo['area_url'];?>

In one of the installations

And use this code to swich the languages 



<?php
    $lang = "en";
    $allowedlangs = array(
        "en",
        "es"
    );
    if (!empty($_GET["lang"])) {
        $rlang = $_GET["lang"];
    } else if (!empty($_COOKIE["lang"])) {
        $rlang = $_COOKIE["lang"];
    }
    if (isset($rlang) && !empty($rlang) && in_array($rlang, $allowedlangs)) {
        $lang = $rlang;
        setcookie("lang", $lang,time()+31536000);
    }
    $langmaps = array(
        "en" => "/en",
        "es" => "/es"
    );
    header("Redirecting to the Site");
    header("Location: https://santyhost.ga$langmaps[$lang]");
    exit;
?>

You need to give a url on your site whith this estructure yourdomain.com?lang=en, (Replace en whith the language to be set whit the link)

And you need to edit the final of the file whith your domain

Ok nice work won't it takes much resources? 

Edited by Shen Wei
Link to comment
Share on other sites

10 minutes ago, Shen Wei said:

Ok nice work won't it takes much resources? 

The truth is I am testing it in the Hosting that I had sent you, but I am going to test it in SantyHost, I made some modification in the installer and now you only need to edit the language file

Link to comment
Share on other sites

8 hours ago, Santiago said:

After giving it a lot of thought and testing, I have found that it is better to perform 2 installations of MOFHY Lite using the same database in different directories and replace all the occurrences of to your clientarea url (example: https://santyhost.ga/en/clientarea/) (I do that whith VS Code)


<?php echo $AreaInfo['area_url'];?>

In one of the installations

And use this code to swich the languages 


<?php
    $lang = "en";
    $allowedlangs = array(
        "en",
        "es"
    );
    if (!empty($_GET["lang"])) {
        $rlang = $_GET["lang"];
    } else if (!empty($_COOKIE["lang"])) {
        $rlang = $_COOKIE["lang"];
    }
    if (isset($rlang) && !empty($rlang) && in_array($rlang, $allowedlangs)) {
        $lang = $rlang;
        setcookie("lang", $lang,time()+31536000);
    }
    $langmaps = array(
        "en" => "/en",
        "es" => "/es"
    );
    header("Redirecting to the Site");
    header("Location: https://santyhost.ga$langmaps[$lang]");
    exit;
?>

You need to give a url on your site whith this estructure yourdomain.com?lang=en, (Replace en whith the language to be set whit the link)

And you need to edit the final of the file whith your domain

Now I have the Multi Language Working in (santyhost.ga), but I will upload when is finished

 

Link to comment
Share on other sites

Is there a way to send the IP that the account was created with to the MOFH panel? Or increase the security of the Admin area so it can be hosted there? The main point is so there is a way to search the IPs.

 

Can't wait for those extra tools to be posted, the others you created look amazing!

 

Also, why did you delete the other topics?

Edited by TinkerMan
Link to comment
Share on other sites

3 hours ago, TinkerMan said:

Is there a way to send the IP that the account was created with to the MOFH panel? Or increase the security of the Admin area so it can be hosted there? The main point is so there is a way to search the IPs.

 

Can't wait for those extra tools to be posted, the others you created look amazing!

 

Also, why did you delete the other topics?

I didn't deleted any topic. they were deleted by the mediator.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...