• Resolved blumbreras

    (@blumbreras)


    Hi,

    Would it be possible to show my login form instead of a message for login when a user try to insert a new place?

    Thanks!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Stiofan

    (@stiofansisland)

    Hi @blumbreras,

    We don’t have an option for that yet, though the html login message can be filtered and replaced with anything which would let you do it.

    apply_filters( ‘geodir_login_link’, $output, $login_title, $login_link, $redirect );

    The reason we do it like that is if you need to register then we show both links and we try to redirect you back after.

    We are working on a solution with our other free plugin UsersWP.

    If you need help with the filter let me know.

    Thanks,

    Stiofan

    Thread Starter blumbreras

    (@blumbreras)

    Hi Stiofan,

    Thanks for your help.
    I would need to know where I must to put the url of the login page, in login_link?

    Thanks!

    Plugin Author Stiofan

    (@stiofansisland)

    In the add listing page please change the add listing shortcode to [gd_add_listing show_login=1]
    then you can add the below snippet (either to your theme functions.php or via the code snippet plugin)

    add_filter('geodir_login_link','wp_login_form');

    This will show the standard wp login box.

    Thanks,

    Stiofan

    Thread Starter blumbreras

    (@blumbreras)

    Hi Stiofan,

    It does not work. I have change the code [gd_add_listing] for this [gd_add_listing show_login=1] in the add listing page and after that, I have created a new code snippet only with this code:
    add_filter(‘geodir_login_link’,’wp_login_form’);

    But if I am not registered, it shows me the message “You must login to post.” but it doesn’t redirect me to anyway….apart from that, I want that it redirects me to a page of my site, is it possible?

    Thanks!

    Plugin Author Stiofan

    (@stiofansisland)

    It should show the message and then below it should show the login form?
    If you don’t at least see links to login/register then the show_login=1 part is not working right, make sure that is saved in the add listing page and it is the add listing page set in GD > General > Pages > add listing page.

    Thanks,

    Stiofan

    Thread Starter blumbreras

    (@blumbreras)

    Hi Stiofan,

    No, it only shows the message, not the login form….
    I have add to the page this shortcode -> [gd_add_listing show_login=1] and I have checked that the page seleted in “add listing page” is the same where I have inserted the shortcode.

    What more must I checked?

    Thanks!

    Plugin Author Stiofan

    (@stiofansisland)

    I am afraid this is as much as i can help with this info.

    If you post on our support forums a member of our support team will assist further.
    https://wpgeodirectory.com/support/forum/geodirectory-core-plugin-forum/general-discussion/#new-post

    Thanks,

    Stiofan

    Hi Stiofan,

    I’m having an issue with the login or register dialog box disappearing when clicking OK, so I’m looking to replace that floating modal window with a regular register/login form. I did what you suggested here and it successfully shows the standard login form, but there’s no option to Register. How could I accomplish that? Thanks

    Plugin Support alexrollin

    (@alexrollin)

    Hello @getyler3

    Please post to our forum where our support team can help.

    Thanks

    https://www.ads-software.com/support/topic/read-this-before-posting-for-support-free-premium/

    Plugin Author Stiofan

    (@stiofansisland)

    @getyler3,

    If there is no option to register then you may have user registration disabled in your WordPress settings. WP > Settings > General > Anyone can register?

    Thanks,

    Stiofan

    Thanks guys,

    Yes, Anyone Can Register is checked. I was able to bypass the Register Lightbox feature by unchecking that option in WPusers so it loads a page instead. Looks like it was a Javascript error I don’t have time to run down, and this works.

    Appreciate the quick reply. Was under the gun and glad the option to bypass it is there.

    Thanks,
    Gerald

    Plugin Author Stiofan

    (@stiofansisland)

    Hi @getyler3,

    You are welcome, if you would like our help tracking down the JS issue please post on our support forums and a member of the support team will help with that.
    https://userswp.io/support/

    Thanks,

    Stiofan

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘User registration’ is closed to new replies.