Social Login?

This topic contains 14 replies, has 4 voices, and was last updated by  Hefin Dsouza 8 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #66015

    Hefin Dsouza
    Expired Member
    Post count: 48

    So If I want users to login using social account what is the best plugin which would be compatible with GD?

    I checked this plugin on wordpress “WordPress Social Login” will this be compatible?

    #66019

    Guust
    Moderator
    Post count: 29970

    That one will work well.

    #66026

    Hefin Dsouza
    Expired Member
    Post count: 48

    Thank you!!

    You may mark this resolved!! and close this

    I tried using “WordPress Social Login” By Miled and it works like a charm!!

    I still need to figure out how to make those icons display on the Home Page under “My Dashboard” though im using the “directory-starter” theme…if anyone can tell me where to do that it would be great!!

    So far only a few more questions to be answered and this would definitely be the product im looking for!!!

    #66031

    Guust
    Moderator
    Post count: 29970

    They will only display on your registration page: /gd-login

    #66060

    Hefin Dsouza
    Expired Member
    Post count: 48

    So there is no way I could customize the Home Template to display the Login Icons? may be use a shortcode or something?

    #66081

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the only way would be by customizing the GD loginbox widget.

    Or if the social plugin provides a shortcode, you could add a text widget right below the login widget and add the shortcode there.

    Let us know if this helped,

    Thanks

    #66136

    Hefin Dsouza
    Expired Member
    Post count: 48

    Ok..So to should I directly modify the GD loginbox from the lib/widgets/ folder would that have any effect when the plugin gets updated or something?

    Is there an other way to customize it which would be update safe?

    #66144

    step8601
    Expired Member
    Post count: 215

    if you don’t mind, please post your solution, i’d like to use a social login system too

    thanks 🙂

    #66149

    Hefin Dsouza
    Expired Member
    Post count: 48

    @step8601 For the Login as of now I have used “WordPress Social Login” By Miled and just activate the plugin and follow the instructions there and your Login integration with Facebook would be activated…but the default functionality of the plugin just Adds the Login and other Social Logins just to the Register/Login page not to the Home Page Widget and as per the above reply from “paolo” we can do that if we edit the GD Loginbox Widget… 😉 still waiting for the reply from “paolo” about how to do it in such a way that it would not be affected when we update the plugin!!

    #66294

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you can copy the entire class of the loginbox widget in your theme functions.php, rename the class and the function, plus add the snippet to add your social login. Now register the new widget.

    You will have a 2nd login box widget to use and updates will not cause any troubles.

    Let us know if this helped,

    Thanks

    #66358

    Hefin Dsouza
    Expired Member
    Post count: 48

    @paolo I tried creating a copy of the Loginbox Widget which was a code snippet in “/plugins/geodirectory/geodirectory_widgets.php” to create a new widget out of it…but the Loginbox widget output is a call to the geodir_loginwidget_output function in “plugins/geodirectory/geodirectory-functions/general_functions.php”

    so I thought it would be too complex to create everything again…so I just added the WordPress Login Code do_action shortcode directly to the “geodir_loginwidget_output” function and it works now..

    But i have to be careful when updating the plugin..

    #66381

    Paolo
    Site Admin
    Post count: 31206

    Just FYI, if you copy and rename the widget in your fucntions.php file, you can also rename the function geodir_loginwidget_output to my_geodir_loginwidget_output.

    Copy geodir_loginwidget_output as well in functions.php, rename it my_geodir_loginwidget_output and add your social login.

    This way you won’t have to worry about updates and it really will take you 2 minutes to achieve this.

    Let me know if this helped,

    Thanks

    #66382

    Hefin Dsouza
    Expired Member
    Post count: 48

    Yeah…Thanks i was actually thinking it was too much to handle…if I make a new PHP file for it…can u guide me how and where should I register the Widget?

    I was thinking of making it a new file and then use it…but then I was unable to register the widget… ;(

    #66390

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    this must be done via function.php. If you want to do it in a new file, than you will have to inlucde that file from functions.php.

    I’d just do it in functions.php directly.

    Thanks

    #66395

    Hefin Dsouza
    Expired Member
    Post count: 48

    @paolo did as per your suggestions!!

    Thanks 😉

    Attached the screenshot of how the end result looks!!! Thanks @paolo could u please look at some of my other topics too would really appreciate ur help there too!!! Im slow with PHP since im a hardcore ASP.NET developer and ive worked with customizing wordpress themes and plugins before but I must say WpGeoDirectory is completely different and its quite a challenge to get things done if guys like you and Gusst are not around “Hats off to you guys!!!” keep up the great work..

Viewing 15 posts - 1 through 15 (of 15 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket