Adding Facebook Login Button to our Ajax based Login Popup

Posted in: Newspaper
Post count: 436

PS: This is just a copy of my comment posted on this link, as many times support team suggests to open a new thread for any issue. that’s why I created this new thread.

Hey,

Following the thread here https://forum.tagdiv.com/topic/where-to-put-this-code/ I tried implementing the process that Lucian suggested in his reply but the screenshot that he had used to show the location is now not working and is invalid. Here is his screenshot link: http://screencast.com/t/a8B0TRtck

Are these method still valid?

I am using WP Facebook Login ( Link ) and it supports following code :

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

It also supports the following shortcode:

[fbl_login_button redirect=”” hide_if_logged=””]

Please let me know where should I add this code? Which code should I insert there the php code or the shortcode? As some commenter suggested above, it should be added here: public_html/wp-content/themes/Newspaper/parts/header/top-menu.php

but then the guy who insitiated this thread said that the code should be added “td_login_widget.php”

I am super confused. This is very important thread and have been referred by many of you under various posts. It will be really great if you can update the solution based on the current requirement.

Thank you very much.

Post count: 23312

Hello nano2408,

Please notice that this type of plugin is not tested with our theme and the solution which Lucian gave at the forum is from a long time ago and the theme’s files were changed in meanwhile. So, please notice that you can add the facebook login without using the Facebook plugin but just following the Facebook implementation from this topic, like this -> https://developers.facebook.com/docs/facebook-login/web/login-button

Hope this helps!

Thanks.

Post count: 436

Hello Catalin,

thank you for the reply.
The WordPress Social plugin that was discussed and solved by Lucian here: was also neither tested nor recommended by Tagdiv but your amazing team and the community still helped the thread creator to solve it and make it work.

So, you or any other concerend team support team member may want to solve it again with reference to the current theme. It was also told that in future you are going to integrate social login plugin in future updates. You must be agreeing to the need of social plugin in today’s time. Should we expect it soon?

About the https://developers.facebook.com/docs/facebook-login/web/login-button , this button is very small and won’t look good as per themes UI but if you will look at the solution provided by Lucian in the past thread, he made it look as intergated and amazing as it should be. ( here is the link : https://drive.google.com/file/d/0Bzax_bFhmTjZeXR0enlOT01OR00/view )

Try to help me else it’s toally fine 🙂

Thank you.

Post count: 23312

Hello nano2408,

Unfortunately, we cannot provide support for untested plugins and please notice that the date of time when Luci have got this implementation was about 2 years ago and since the code of the theme was changed, sorry! If you want to implement any other Facebook login, please notice that here -> http://screencast.com/t/fIL6QPEl you will have to insert the shortcode for this button. Please notice that you should implement this feature by yourself because we cannot provide custom work, sorry!

Thanks.

Post count: 436

Hey Catalin,
I am sure that those files /codes must have been modified in last two years, I am not sure whether support people or their heltping nature or support rules have also changed in these two years. Going to the strict rule book, no cusomizations are allowed by going to the past experience and community building book, you guys have always helped us ( users ) in helping for small customisations.

That’s why Lucian had helped two years back and probably you will help me now too 🙂

taking help from your screenshot, I added the short code here: https://snag.gy/aeiqy5.jpg

The full line that I added is:

' . do_shortcode('[fbl_login_button redirect="" hide_if_logged=""]') . '

In result , I get this in ajax login box: https://i.snag.gy/J0Y6oK.jpg

As you can notice, the only issue now is to move “Connect with Facebook” down below “LOGIN” text. What should I do for this? Should I change the postition of code in td_login_modal.php or add some code in custom CSS.

Please try to look at this.

Thank you.

Post count: 436

Hi, I continued working on it and finally applied this code here: https://snag.gy/Ysg6DV.jpg

Now the resultant output is much closer to what I wanted: Look here: https://snag.gy/jyhxJY.jpg

Now I only need to move the ” Create an account” button little above and you can’t deny helping for this 🙂

Have a look

Thank you.

Post count: 436

One more thing, I noticed that I can’t notice the changed made in desktop login on Mobile browser. Currently I have mobile theme plugin disbled but perhaps mobile ajaz login has seperate php file. Can you please tell me which file I shoudl edit to add Facebook login in mobile version.

Thank you.

Post count: 23312

Hello nano2408,

If you want to make some changes to your modal login for your mobile theme, please notice that you should change the core files from mobile folder, like login.php -> http://screencast.com/t/sdrOdhCFr
Please keep in mind that all of your desired changes involves more additional customizations through the code and we cannot provide custom work at the moment, sorry! You will have to do it yourself or if you are not aware of the steps which are needed to take in this regard, please consider hiring a freelancer/developer to help you in this regard! We would have gladly made it for you but we are a small team and we are working very hard on the development, updates, fixes, and support. If you really need this and you’re not aware of the steps that must be taken in this regard my advice is to look for a developer who can help you with implementation. Here you can consult our support policy -> https://forum.tagdiv.com/support-policy-2/

Hope this helps!

Thanks for your understanding!

Post count: 436

Hmm.. Okay ! I get it.

Thank you for suggesting about hiring a developer ( pun intended ) and yes I know about support policies very well.If the would have taken it literally, I or none of other members had ever felt the awesomeness that gets in various amazing threads here.

Being associated with WordPress for long for I know that the customizations that I asked for here don’t need more than 5 lines of simple CSS ( about changing the position of ” Create an account” button ) but since there is no legal boundation to help for this based on support policy, you have all the right to deny or say No.

On a serious note, I do understand that dealing with so many things by a small team of developers can really be tough so I have nothing but respect and praise for all you guys,

I will surely figure it in someway.. because I will be made if I had to hire a developer for this.

Thank you 🙂

Post count: 23312

Hello nano2408,

Thank you for your understanding! Please notice that we do not have any customization department and also, we cannot provide custom work for the tasks which involve more customizations and also which implies time-consuming. Please notice that we are glad to help our customers but if their requests involve additional customizations we can not honor them because we are unavailable for customization services at the moment, sorry!

Thanks again for your understanding!

Post count: 436

Let’s end this with an attempt to bring smile on your face 🙂

Yes! I do understand you and will continue till we remain part of this amazing community.

Thank you.

Viewing 11 posts - 1 through 11 (of 11 total)
The forum ‘Newspaper’ is closed to new topics and replies.