• Resolved modhem

    (@modhem)


    Hi Marcel!
    I have authorized only registered users to post on our guestbook…
    the problem is that if you are not registered you don’t see anything ??
    I would like the button “insert your post” to be visible the same and then it to require to login or register..
    how can i get that? thanks in advance!

    https://www.ads-software.com/plugins/gwolle-gb/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi, that is a good request.
    It is part of the next version. You can get the developers version from the corresponding page:
    https://www.ads-software.com/plugins/gwolle-gb/developers/

    Thread Starter modhem

    (@modhem)

    ?? thanks Marcel!
    do u advise me to install the developer version?

    Plugin Author Marcel Pol

    (@mpol)

    Yes, there are only two small changes. This one and another small one in the export admin page.

    Thread Starter modhem

    (@modhem)

    Hi Marcel, thank you. I installed the update and it works!
    You can c it here
    https://www.tinobagdad.com/rewrite/
    and here
    https://www.tinobagdad.com/rewrite/read/
    with 2 differents layout options.
    Just 2 questions:
    – i was noticing that alignment is not very good…
    – most important: i am using the social login plugin to connect to my website… but i saw it is not integrated with the guestbook … how can i get that?
    thanks a lot!

    Plugin Author Marcel Pol

    (@mpol)

    Hmm, there is a line that sets the width of the input to 60%, even for the checkbox. It is in your theme or plugin, so you might want to take a look at that.

    The plugin uses simply the wp_login_form function.
    I’m not sure how things integrate with that…
    Do you have a link to that social plugin?

    Thread Starter modhem

    (@modhem)

    Ok it’s my fault then ?? i ll fix it.
    The plugin i am using is
    https://www.ads-software.com/plugins/wordpress-social-login/
    and i think it should integrate automatically in the login form
    as it happens here:
    https://www.tinobagdad.com/wp-login.php

    Thread Starter modhem

    (@modhem)

    I FOUND THIS:
    Custom integration

    If you want to add the widget to another location in your website, you can insert the following code in that location:

    <?php do_action( ‘wordpress_social_login’ ); ?>

    For posts and pages, you may use this shortcode:
    [wordpress_social_login]

    Notes:
    1. WSL Widget will only show up for non connected users.
    2. In case you are using a caching plugin on your website, you might need to empty the cache for any change to take effect.
    3. Adblock Plus users with “antisocial filter” enabled may not see the providers icons.

    Tip:
    You can use HTML Javascript Adder plugin in combination with WSL to display the Widget in your website sidebar by using the shortcode [wordpress_social_login].

    Plugin Author Marcel Pol

    (@mpol)

    Yes, but that is really specific to that plugin, and I don’t like adding specific code to this plugin for anyone of the 37000 plugins :).

    You can use this code in your theme or own plugin:

    function test_social($arg) {
            if (function_exists('wsl_render_auth_widget') ) {
                    $arg .= wsl_render_auth_widget();
            }
            return $arg;
    }
    add_filter( 'login_form_middle', 'test_social' );
    Plugin Author Marcel Pol

    (@mpol)

    Mind your head, I just edited it for a typo.

    Thread Starter modhem

    (@modhem)

    yes u are right!
    but i could modify either the plugin or your guestbook code just on my website…
    where do I have to put that code?
    not a programmer here ??

    Thread Starter modhem

    (@modhem)

    should i put it in functions.php?

    Plugin Author Marcel Pol

    (@mpol)

    yes, functions.php of your theme.

    Thread Starter modhem

    (@modhem)

    i wouldn’t like to modify the theme because it’s a pro one and i would loose the changes once it is updated…. where else could i put this code?

    Thread Starter modhem

    (@modhem)

    one more note: i noticed that the default form which appears only show the login option… but not the link to register

    Plugin Author Marcel Pol

    (@mpol)

    Hi, I will take a look at a register link.

    You can make a modhem.php file and put it in /wp-content/plugins/modhem/
    Then add content like this:

    <?php
    /*
    Plugin Name: Modhem
    Plugin URI: https://domain.com/
    Description: My own Plugin.
    Version: 1.0
    Author: Modhem
    Author URI: https://domain.com
    Text Domain: modhem
    Domain Path: /lang/
    
    /* Add social plugin to all loginforms */
    function test_social($arg) {
            if (function_exists('wsl_render_auth_widget') ) {
                    $arg .= wsl_render_auth_widget();
            }
            return $arg;
    }
    add_filter( 'login_form_middle', 'test_social' );

    You should then see it in the admin plugin list.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘LOGIN TO POST BUTTON’ is closed to new replies.