LDD Directory Lite
-
My intitall question is here
https://www.ads-software.com/support/topic/submit-listings-without-requiring-the-user-to-login?replies=2While using this plugin, it allows a visitor to submit info and generate a profile. instead of allowing them to create an account, I want them to just submit the information under the admin account. So they don’t need to deal with editing their profile and logging in.
This is the only hint I have
“Right now you would have to remove the is_user_logged_in() checks at various points of the submission process, and you would have to supply a $user_id in ldl_submit_generate_listing(). This would mean all listings would be owned by the same user and you would lose the ability to allow people to manage/update a listing on their own.”
The problem is, I don’t know where to add the $user_id in ldl_submit_generate_listing() – I don’t know how that supposed to be written.
Thanks!
if (!is_user_logged_in()) {
ldl_get_template_part(‘login’);
return;
}if ($lddlite_submit_processor->is_processing() && !$lddlite_submit_processor->has_errors()) {
do_action(‘lddlite_submit_pre_process’, $lddlite_submit_processor);if (ldl_submit_generate_listing()) {
ldl_get_template_part(‘submit’, ‘success’);
do_action(‘lddlite_submit_post_process’, $lddlite_submit_processor);return;
}}
- The topic ‘LDD Directory Lite’ is closed to new replies.