Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration
You are here: Home

duncaagnes

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • September 15, 2020 at 4:07 pm in reply to: How to Load the WP eMember's Language File from Another Folder #78094
    duncaagnes
    Member

    I have no idea why it is not working. Is there a workaround for this problem?

    September 15, 2020 at 4:03 pm in reply to: How to Load the WP eMember's Language File from Another Folder #78093
    duncaagnes
    Member

    If I put the code in the hello.html, nothing happens, but if I create a .PHP file with the this code alone, ‘<?php echo getcwd(); ?>’ it provides the exect same result I’m using in “test.html” and “functions.php”:

    /home/username/public_html/wp-content/plugins/wp-emember-child-lang

    It seems,

    September 15, 2020 at 7:59 am in reply to: How to Load the WP eMember's Language File from Another Folder #78091
    duncaagnes
    Member

    Thanks for the quick answer.

    hello.html works (displays “Hello World’; ?>”)

    test.html does not work (blank page appears)

    On the other hand, I created a .php file with the following content, to get the absolute root from server:

    <?php

    echo $_SERVER[“DOCUMENT_ROOT”]

    ?>

    The result was:

    /home/username/public_html

    The root path seems to be ok, but not working for some reason. Any ida, why? Or any other solution?

    September 14, 2020 at 8:16 pm in reply to: How to Load the WP eMember's Language File from Another Folder #78089
    duncaagnes
    Member

    My storage provider uses Cpanel. As long as I know, absolute path in Cpanel always starts with /home/username/..

    Cpanel has a built in editor for php files, that shows the path. I copied that and pasted in the code.

    Is there a way to check if the path is correct?

    September 13, 2020 at 4:16 pm in reply to: How to Load the WP eMember's Language File from Another Folder #78087
    duncaagnes
    Member

    I’ve inserted the below code (real username is used in the code) into my Enfold-child themes functions.php, but the changes I make in the hun.php do not take affect.

    If I change the hun.php in the original folder, changes appear immediately, so changes in hun.php should be ok. The functions.php language override code works for the theme itself, so the setup of the child theme should be also ok.

    Please help! How can I make this work?

    Inserted code:

    add_filter(’emember_language_loading_override’, ‘load_my_custom_emember_language’);

    function load_my_custom_emember_language()

    {

    $language_file = “/home/username/public_html/wp-content/plugins/wp-emember-child-lang/hun.php”;

    include_once($language_file);

    return “custom-file-loaded”;

    }

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ