Only social login members
-
Dear friends,
How can I, on my forum, “turn off” bbpres member register and login and left just possibility to log in and register over “wordpres social login” plugin?
My forum:
https://www.sobrecroacia.com/forums/
Thank you!
-
bbpress just uses the worpress login.
On first login, users are given the default role on dashboard>settings>forums
so it should all be fine.
Thank you Robin, so..there is no any way to “hide” register form and just left social media login?
Also, can you tell me how can I publish social widget shortcode in header of all forum pages?
Right now is publish in sidebar widget…what is bad becouse mobile phone users need to scroll all way down to find it.
Thank you!so..there is no any way to “hide” register form and just left social media login?
ok, we’re a bit outside bbpress support here, as this is theme/other plugin related.
where is register (I’m not good in your language!)?
Also, can you tell me how can I publish social widget shortcode in header of all forum pages?
if you are ok with copying coding and FTP files, then I may be able to help
Robin,
Register is here:I can modify files over ftp without any problem, just let me what I should modify.
Thank you!ok, can you give me the social widget shortcode you want to use
Im using WordPress Social Login plugin
Shortcode: [wordpress_social_login]
Thank you!add this to your theme’s functions file
add_action( 'bbp_template_before_forums_index' , 'rew_shortcode' ) ; add_action( 'bbp_template_before_topics_loop' , 'rew_shortcode' ) ; function rew_shortcode() { echo '<div class="social_login" >' ; echo '<br>' ; echo do_shortcode('[wordpress_social_login]'); echo '</br>' ; echo '</div>' ; }
It may not be perfect, but without seeing its effect on your theme, I can’t say, so come back when it is in if it needs tidying up
Hi Robin,
That is perfect!
Please, how can I add text:
“Inicia sesión con su cuenta de redes sociales y participa en el foro”
before social login shortcode?
Thank you!add_action( 'bbp_template_before_forums_index' , 'rew_shortcode' ) ; add_action( 'bbp_template_before_topics_loop' , 'rew_shortcode' ) ; function rew_shortcode() { echo '<div class="social_login" >' ; echo '<br>' ; echo 'Inicia sesión con su cuenta de redes sociales y participa en el foro' ; echo '</br><br>' ; echo do_shortcode('[wordpress_social_login]'); echo '</br>' ; echo '</div>' ; }
Works great!
Thank you Robin!Great – glad you are fixed !
Sorry Robing,
I still missing member register on this kind of pages:
Is that thread?
Please…can you tell me code for this? Something like:
add_action( ‘bbp_template_before_topics_?????’ , ‘rew_shortcode’ ) ;
Thanks a lot!ok, I need to know when this page is displayed – from doing what would you get to it?
for example ‘I go into forums, and select x and then click y and this page comes up’
That will let me find the right action for you to link to.
Here is forum index:
sobrecroacia.com/forums/
First forum is “Turismo Croacia”:
sobrecroacia.com/forums/forum/turismo-croacia/
And first post or topic is:
“Por qué no cambiar moneda en España”
sobrecroacia.com/forums/topic/por-que-no-cambiar-moneda-en-espana/
Here I would like to have social login as well.
Thank you!Ufff…not sure if you will able to see entire post I just sent to you?!
When publishing urls here in your forum, page preview cover rest of post and cant be read.
When publishing urls here in your forum, page preview cover rest of post and cant be read.
Hi Robin…
Did you find out how can I add social login to topics?
Thank you!I think it is
add_action( 'bbp_template_before_replies_loop', 'rew_shortcode' ) ;
That’s it!
Thank you!no problem, glad to have helped !
- You must be logged in to reply to this topic.