Myrianne
Forum Replies Created
-
AuthorPosts
-
the account menu that appears when clicking the “user icon” on the directory starter theme…
click the “mon compte” menu item… http://intouchdev.wpengine.com/
October 17, 2016 at 9:47 pm in reply to: aby ways to enable us to post answers or reply to questions? #286185here is my original request… reply #284960
how would I go about to override the geodir_loginwidget_output() function in /wp-content/plugins/geodirectory/geodirectory-functions/general_functions.php ?
October 17, 2016 at 9:43 pm in reply to: aby ways to enable us to post answers or reply to questions? #286182id like to override some functions you guys define in your plugin with my own modified version of it. maintaining plugin updatability
October 17, 2016 at 9:41 pm in reply to: aby ways to enable us to post answers or reply to questions? #286180October 15, 2016 at 9:15 pm in reply to: aby ways to enable us to post answers or reply to questions? #284960how would I go about to override the geodir_loginwidget_output() function in /wp-content/plugins/geodirectory/geodirectory-functions/general_functions.php ?
im looking for ways to modify without losing updatability or do some weird js hacks like the one ive posted up this discussion…
btw… ill have lots of questions at first, but ill get the hang of it and stop bugging you so often soon!
ive added the js code that hides the “conditionally required” infos, and now the item publishes fine…
it would be nice for you guys to officially support conditionally required field… the logic for this isn’t too complicated… just hide the fields with a little js/jquery.
it would really add to the capacities of the signup form to have better field management. ive had to twist the system quite a bit to make it require some confirmation certification # only when those certifications are selected from the dropdown.
anyways here is the code if you have any use for it!
ive had to put it on the front and backend JS./* empreintes contextual fields */ $('select#geodir_empreinte').change(function() { $( "select#geodir_empreinte option" ).each(function() { var slug = $(this).val().substr(5); var toShowId = "#geodir_empr_details_"+slug+"_row"; if (this.selected){ $( toShowId ).slideDown('fast'); }else{ $( toShowId ).slideUp('fast'); } }); }); /* certifications contextual fields */ $('select#geodir_certifications').change(function() { $( "select#geodir_certifications option" ).each(function() { var slug = $(this).val().substr(5); slug = slug.replace('-','_'); var toShowId = "#geodir_cert_details_"+slug+"_row"; if (this.selected){ $( toShowId ).slideDown('fast'); }else{ $( toShowId ).slideUp('fast'); } }); }); $('select#geodir_empreinte').trigger('change'); $('select#geodir_certifications').trigger('change');
Thanks for your support, its really appreciated
I see the /wp-content/plugins/geodirectory/geodirectory-assets/js/listing_validation.min.js
file is doing the validation and have added the extra js in there to validate my field, but im worried that a plugin update would break that functionality.i know you can unqueue scripts and replace them with a modified copy that lies inside you child theme… would that be the best way to go?
Would there be a way to just add some js on top of the present validation without touching the plugin code?
If I wanted to add some server-side php logic to the fields saving – is there a hook for that?
thanks for your support
any progress? sorry to pressure you – my client needs this to work this weekend, absolutely…
im out now, you can change anything in this article
did so right now with the “test item” – doesnt change the fact its not showing in this page http://intouchdev.wpengine.com/c/alimentation/
if its of any help – even hitting the “preview” link from the admin renders a 404 error page, and that with the post published, visible, and not private… you can try with item “test”
hello – those mandatory fields are also not filled up in the demo content supplied, but they do publish correctly.
please take the time to figure out the real reason why they dont publish –
is there a condition in the backend tom prevent publishing of items with required fields missing – and if so – where can I override this?
my client has a presentation in a few days, we really need those user-supplied t=items to publish asap… thanks
This reply has been marked as private.ok, but im puzzled, what does the second parameter in that call stands for, then? do_action(‘geodir_top_content’, ‘add-listing-page’) ;
i feel im close with
add_action('geodir_top_content', array('huge_home_top_content', 'add-listing-page'));
but not quite there yet 😉
-
AuthorPosts