Neil Hall
Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.
Hi Alex
I think I have looked at most of them. A lot of them have not been updated for a long time so I tend to discount those ones. But if you have any experience of other Geodirectory succesfully using a plugin that works I would be interested to here about it.
Best Regards
NeilHi Alex
I have been doing a bit of further investigation to see if I can get this to work. I have now disabled the TinyMCE Comment Field plugin.
Instead I have entered some code in to my functions.php.
/* ========================================================== WYSIWYG comments ========================================================== */ add_filter( 'comment_form_field_comment', 'comment_editor' ); function comment_editor() { global $post; ob_start(); wp_editor( '', 'comment', array( 'textarea_rows' => 15, 'teeny' => true, 'quicktags' => true, 'media_buttons' => true ) ); $editor = ob_get_contents(); ob_end_clean(); return $editor; }
This renders in the page correctly, and the user can type their review.
The problem I have is that in visual mode when the ‘Post Review’ button is clicked the message comes up saying “Please type a Review”. However, when the text option is used then it will save correctly.
I can understand why because in text mode it still keeps the textarea name=comment. But if this is switched to visual mode it adds a number of iframes, html, body etc. Although the text area is still there.
I have burnt out google trying to find a solution but without succeeding. Do you know if there is a way in which I can fix this? The only way I have done it so far is use version 1.39 of GeoDirectory Review Rating Manager, but that is not the best solution moving forward, and I did notice it also does not refresh the comment box when submitted in ‘visual’ mode.
Best Regards
NeilHi Kiran
Thanks for looking into this, and the suggestion for the fix but that is not what I am looking for as this disables the ability for the user to create a better looking review.
I will contact the author of the TinyMCE Comment Field.
But could you also tell me where the code is that does the field validation for the comment field?
Best Regards
NeilThis reply has been marked as private.Hi Kor
OK, thanks, I’ll look in to it and see if I can find a solution
This reply has been marked as private.Hi Guust and Kiran
Absolutely fantastic support, you guys are just so good.
I have tested the site with the amendment and seems to work. Perfect!
Will this be released in the next version of the Location Manager?
Best Regards
NeilThis reply has been marked as private.This reply has been marked as private.Hi Kiran
Many thanks for your help. That does submit a warning on the other browsers. I’ll see what I can come u with to stop it submitting the form.
Best Regards
NeilThis reply has been marked as private.Hi Paolo
It does work in Chrome and Firefox, but I needed to enclose it with script
<script>if (jQuery('textarea#post_desc').length ) { jQuery('textarea#post_desc').attr('minlength', "100"); } </script>
For some reason it does not seem to work in Internet Explorer, Safari
Best Regards
NeilHi Kor
Thank you for the tip, but I’m not sure where that code needs to be inserted. Could you give me some pointers?
Best Regards
NeilWeird Science. Thank you for letting me know.
-
AuthorPosts