chryaner
Forum Replies Created
-
Forum: Plugins
In reply to: [User Meta Manager] query through custom meta key and valueSmall fix –
$department = unserialize($_user->meta_value);
Thank you!
Forum: Plugins
In reply to: [Plugine: Contact Form 7] mandatory drop-down-menu with watermarkHey dhavaljani
There is a problem with regex, try to play around with the expression
If you wont figure it out ill thinl about the right expression for you
Im lack of time right nowThis is my mail if you got any questions
Chryaner@gmail.comIliya
Forum: Plugins
In reply to: [Contact Form 7] WPML and Contact Form 7Hey Takayuki Miyoshi,
In my form, the watermark and the strings I’ve added are not translating, like “Subject”, “Message”. only the “Send” button is translated.
Forum: Plugins
In reply to: [Contact Form 7] WPML and Contact Form 7Hey Takayuki Miyoshi,
First thing I want to say is that I really appreciate your work!
Second, let me explain what is my problem.
I came here after reading this document:
http://wpml.org/documentation/support/translation-for-texts-by-other-plugins-and-themes/how-to-use-contact-form-7-in-multilingual-websites/and after failing using the “icl” tag in your cf7 short tags, i turned to the web to seek after the answer of “how do I get CF7 and WPML work together” and I didn’t find a direct answer.
What do you suggest me to do?
instead of creating a contact form for every language in my site (there is 9 language now), i want to make the watermark/string in my CF7 field translatable, is that possible?Forum: Fixing WordPress
In reply to: Using Page Navigation with custom time based queryHey Christophe
Did you manage to fix this problem?
Iliya
Forum: Plugins
In reply to: [Plugine: Contact Form 7] mandatory drop-down-menu with watermarkHi Akhilesh,
Use this to change each CF7 element individuality
function my_wpcf7_form_elements($html) { ov3rfly_replace_include_blank('cf7_element_name', 'you_watermark', $html); ov3rfly_replace_include_blank('cf7_element_name', 'another_watermark', $html); return $html; } add_filter('wpcf7_form_elements', 'my_wpcf7_form_elements'); function ov3rfly_replace_include_blank($name, $text, &$html) { $matches = false; preg_match('/<select name="' . $name . '"[^>]*>(.*)<\/select>/iU', $html, $matches); if ($matches) { $select = str_replace('<option value="">---</option>', '<option value="">' . $text . '</option>', $matches[0]); $html = preg_replace('/<select name="' . $name . '"[^>]*>(.*)<\/select>/iU', $select, $html); } }Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Set include_blank value diff than —I managed to fix this by taking the “ov3rfly_replace_include_blank”
function out of the “my_wpcf7_form_elements” functionthere is no reason to place a function inside function in this case.
hope that will be helpful for someone one day.
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Set include_blank value diff than —Hey Ov3rfly,
Thanks for your help.Im using your script to change the “—” in my form, but when im trying to put two form in the same page, im getting the message-
Fatal error: Cannot redeclare ov3rfly_replace_include_blank() (previously declared in /home/orkbu/domains/gil.beastserv.com/public_html/hava/wp-content/themes/theme951/GetresForm.php:115) in /home/orkbu/domains/gil.beastserv.com/public_html/hava/wp-content/themes/theme951/GetresForm.php on line 115how can i overcome this issue?
Forum: Plugins
In reply to: [Plugine: Contact Form 7] mandatory drop-down-menu with watermark