Tips and Tricks HQ Support Portal › Forums › General Stuff › Instructions/F.A.Q › How to customize various text/messages displayed by the plugin
Tagged: change text, customize messages, Customize Text Messages, Edit Messages, modify plugin text message
- This topic has 11 replies, 8 voices, and was last updated 13 years, 6 months ago by amin007.
-
AuthorPosts
-
June 3, 2010 at 1:53 am #1296IvyMember
Customizing the customer viewable text/messages displayed by the plugin is easy to do.
Please see the following steps:
Step 1: Open the directory for the plugin in question (example: “wp-eMember” folder for eMember plugin).
Step 2: Find the language folder within this plugin’s directory (it will have a name of “language” or “lang”). Here are some examples of where you can find the language file:
WP eStore Plugin - "../plugins/wp-cart-for-digital-products/languages/eng.php"
WP eMember Plugin - "../plugins/wp-eMember/lang/eng.php"
WP Affiliate Platform - "../plugins/wp-affiliate-platform/affiliates/lang/eng.php"
Payment Gateway Bundle - "../plugins/wp-payment-gateway/lang/eng.php"Step 3: Save a backup copy of the file that you wish to modify (example, eng.php for English) 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 the text 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:
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.
Keep Customized Language File in a Separate Folder
WP eStore plugin – https://support.tipsandtricks-hq.com/forums/topic/how-to-load-the-wp-estores-language-file-from-another-folder
WP eMember plugin – https://support.tipsandtricks-hq.com/forums/topic/how-to-load-the-wp-emembers-language-file-from-another-folder
September 30, 2010 at 6:47 pm #21160pilotjoeMemberHi 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
December 12, 2010 at 10:14 am #21161designthemediaMemberIvy,
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?
December 12, 2010 at 11:12 pm #21162amin007ParticipantThis option is for you (the admin) to localize your website language. It doesn’t give any option to the user.
February 22, 2011 at 3:46 pm #21163RossMemberdeleted
May 6, 2011 at 6:37 pm #21164verityMemberThanks for the explanation.
A few questions.
- 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.”
- And for the free members, I want them to see “To download our videos, please join as a paid member.”
- 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 />
}May 7, 2011 at 12:44 am #21165amin007ParticipantHi, 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.
May 7, 2011 at 4:01 pm #21166adam_paxtonMemberSorry 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
May 7, 2011 at 4:14 pm #21167adam_paxtonMemberI’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
May 8, 2011 at 12:09 am #21168amin007ParticipantAs 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.
May 12, 2011 at 9:15 am #21169susanne10MemberHi I want to get rid og the >> sign before forgot password and join us. How can I do that?
I have been looking in the css file, php file for the login form and the lang file, without finding the code that put the signs into the loginform.
Regards
Susanne
May 13, 2011 at 12:21 am #21170amin007ParticipantPlease 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 guide you
-
AuthorPosts
- The topic ‘How to customize various text/messages displayed by the plugin’ is closed to new replies.