LOGIN TO POST BUTTON
-
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!
-
Hi, that is a good request.
It is part of the next version. You can get the developers version from the corresponding page:
https://wordpress.org/plugins/gwolle-gb/developers/🙂 thanks Marcel!
do u advise me to install the developer version?Yes, there are only two small changes. This one and another small one in the export admin page.
Hi Marcel, thank you. I installed the update and it works!
You can c it here
http://www.tinobagdad.com/rewrite/
and here
http://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!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?Ok it’s my fault then 🙂 i ll fix it.
The plugin i am using is
https://wordpress.org/plugins/wordpress-social-login/
and i think it should integrate automatically in the login form
as it happens here:
http://www.tinobagdad.com/wp-login.phpI FOUND THIS:
Custom integrationIf 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].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' );Mind your head, I just edited it for a typo.
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 😉should i put it in functions.php?
yes, functions.php of your theme.
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?
one more note: i noticed that the default form which appears only show the login option… but not the link to register
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: http://domain.com/ Description: My own Plugin. Version: 1.0 Author: Modhem Author URI: http://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.
The topic ‘LOGIN TO POST BUTTON’ is closed to new replies.