WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Gigya Socialize - Increase Registration and Engagement using Facebook Connect, Twitter and (4 posts)

  1. pneudralics
    Member
    Posted 4 years ago #

    I was wondering if it was possible to insert the widget to the themes single.php where the comment textarea is located instead of redirecting to the login page?

    I tried it and it said logged in, but I wasn't able to post and I wasn't logged in wordpress.

    http://wordpress.org/extend/plugins/gigya-socialize-for-wordpress/

  2. pneudralics
    Member
    Posted 4 years ago #

    Also is it possible to redirect back to the post where they had to click the login link?

  3. Gigya-inc
    Member
    Posted 4 years ago #

    Hi,

    I left a message to the developer of the plugin. He'll get back to you in the next few days with a more profound answer, but basically you have to look at the code and see what happens in the sidebar widget after a user logs in and try to hook into that.

    Regarding the second question - at the moment you can only redirect to one specific page you choose (using Post Login Redirect in the plugin's settings page) and not to the last page the user visited before logging in. This feature is already on our roadmap and hopefully will be ready soon.

    Regards,
    Miri Oliel,
    -Gigya

  4. Desik
    Member
    Posted 4 years ago #

    I have done this by using a custom widget, here's an example.

    In your theme functions.php add

    //custom widget
    	register_sidebar( array(
    		'name' => 'custom',
    		'id' => 'custom',
    		'before_widget' => '',
    		'after_widget' => '',
    		'before_title' => '',
    		'after_title' => ''
    	) );

    Then in your comments.php ( or whatever you want to put the widget ) call the custom widget using:

    <?php dynamic_sidebar("custom"); ?>

    Don't forget to drop the widget in the new area "custom" in your widgets panels, also remember than the widget can be called only once, so you either call it on your sidebar or your comments form.

    Would be nice if you could duplicate the widget though, hopefully for the next version :)

    You can see it in action here: http://www.doble-h.com

Topic Closed

This topic has been closed to new replies.

About this Topic