Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password?

Search the Forum

Tips and Tricks HQ Forum » General Stuff » Instructions/F.A.Q
[closed]

How to customize various text/messages displayed by the plugin

(12 posts) (8 voices)
  • Started 1 year ago by Ivy
  • Latest reply from amin007
  • Related Topics:
    1. How do i customize the message that members and non members get
    2. Is there a Japanese language file translation available?
    3. Multilanguage support
    4. Product name in cyrillic (product name getting messed up in the email)
    5. Which language-plugin works well with estore to set up a multilingual shop?

Tags:

  • customise registration form
  • Customize Text Messages
  • Language
  • logged in customise
  • login customise
  • login form customise
12Next »
  1. Ivy
    Administrator

    Customizing the customer viewable text/messages displayed by the plugin is easy to do.

    Please see the following steps:

    Step 1: Open the plugin's (example: "wp-eMember") directory.

    Step 2: Find the language folder within the plugin directory (it will have a name of "language" or "lang").

    Step 3: Save a backup copy of the corresponding language file (e.g "eng.php" for English) you wish to edit before you make changes, in case you need to revert back to the original file.

    Step 4: Open the language file that corresponds to your language.

    Step 5: Find the text you want to edit in this language file. The best way to find the text/message in question is to search for it in the language file. Once you find the text then you can customize it to whatever you like.

    The entries will look similar to this:

    define("ESTORE_AVAILABLE_QTY", "Available Qty");

    You only need to customize the 2nd argument. So in the above line you will customize the "Available Qty" part. For example, if you want to display "Available Quantity" then change it to the followoing:

    define("ESTORE_AVAILABLE_QTY", "Available Quantity");

    Do the same for all the lines in that file that you want to customize.

    Step 6: Save and upload the new file via FTP to the language directory replacing the existing file.

    All done!

    Note for Non-English Language Users: You need to make sure that you save the language file in UTF-8 format after you do the modifications otherwise the accented characters may have issues. There are a few free text editors that lets you save a file in UTF-8 format. Here is one that I use:

    http://www.pspad.com/en

    Note for future plugin updates: Before you update the plugin in the future make sure to keep a backup copy of the customized language file. This way you will be able to apply the customizations back to the plugin easily after the update.

    Posted 1 year ago #
  2. pilotjoe
    Member

    Hi Ivy,
    I'm working with Section protected content and only allowing certain content to be viewed when a member hits a certain membership level.

    I'm using the [emember_protected] shortcode which works fine however I want to edit the output message fore protected content.

    I see I can edit part of the message in the lang/eng.php file however this won't change the entire message.

    "Hidden content is forbidden for this membership level.
    Please Renew your account. "

    The second line looks like it is created by multiple variables. Is there a way where I can just edit the shortcode for [emember_protected] itself?

    Essentially this is for a classroom page where new content (lessons) are delivered every two weeks. I would like either to have nothing show or a custom message show for higher membership levels.

    Thanks in advance!

    Joe

    Posted 1 year ago #
  3. designthemedia
    Member

    Ivy,
    ok for languages.
    But ... if I understood how to change the default language in admin page, how customer can change their language?

    I own emember + estore (+ the others)
    Is there a solution to make my customers always see their pages in their language?

    Posted 1 year ago #
  4. amin007
    Key Master

    This option is for you (the admin) to localize your website language. It doesn't give any option to the user.

    Posted 1 year ago #
  5. Ross

    deleted

    Posted 11 months ago #
  6. verity
    Member

    Thanks for the explanation.

    A few questions.

    1. I want the visitors of the site to see: "Thank for you visiting. To download our free still images, please join as a free member. To download our videos, please join as a paid member."
    2. And for the free members, I want them to see "To download our videos, please join as a paid member."
    3. I was able to edit the message. But is there a way to make the CSS styling of the message look a little more friendly? The big orange bar and warning symbol are a little too serious for my purposes. Is there a way to just hide the protected content, instead of hiding it AND having that big bar?
      I'm thinking that this part is what I need to edit somehow, but I'm worried what will happen if I just delete it. (This is from wp_eMember1.php) Do I edit the CSS, or can I edit this PHP to simply have the protected content hidden?
    }
    function eMember_is_post_protected ($post_id){<br />
        global $wpdb;<br />
        $wpdb->prefix . "wp_eMember_membership_tbl";<br />
        $query = "SELECT post_list FROM " . $wpdb->prefix . "wp_eMember_membership_tbl WHERE id = 1;";<br />
        $post_list = unserialize($wpdb->get_var($wpdb->prepare($query)));<br />
        if(!$post_list) return false;<br />
        return in_array($post_id, $post_list);<br />
    }
    Posted 9 months ago #
  7. amin007
    Key Master

    Hi, This is an information only thread. Please open a new thread for your request under the proper plugin category (for the plugin that you are using) and I will be able to tell you the CSS that you can modify.

    Posted 9 months ago #
  8. adam_paxton
    Member

    Sorry if this is the wrong place to post but I'm hoping to edit the code to give me a little more flexibility for styling the login and register forms.

    I'm not looking to do anything dramatic just add a few div's and spans in around certain inputs, labels, text, etc to allow me to change the aesthetic layout a little.

    Can someone tell me which file I need to start working in?

    Many thanks

    Posted 9 months ago #
  9. adam_paxton
    Member

    I'm part way there,

    I can drop span and div tags in the lang file but if I wanted to do something more dramatic, for instance spread the registration form across two columns rather than just a single column, which file would I edit to add a div wrapping around the fields I want in column 1 and another for column 2?

    Regards

    Posted 9 months ago #
  10. amin007
    Key Master

    As mentioned in my previous post...

    Please open a new thread for your request under the proper PLUGIN CATEGORY (for the plugin that you are referring to) and I will be able to tell you the CSS that you can modify.

    Posted 9 months ago #

RSS feed for this topic

12Next »

Topic Closed

This topic has been closed to new replies.

Tips and Tricks HQ Forum is proudly powered by bbPress

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin