Integrating PunBB login system with the rest of my site - punbb

First off, I am presuming this is possible please correct me if I am wrong.
I have a simple login / registration system on my site now, however decided to delete this when installing PunBB discussion board. I prefer PunBB's login to my own so I was wondering whether it is possible to make login to the site only achievable through PunBB. Is their an extension for this? Or do you know of any useful sources that will help me implement this? Thank you in advance.

Undoubtedly, PunBB uses some kind of cookie or hash to determine if a user is logged in or not. Simply use that cookie or hash in your own pages to determine who is logged in when you're not on a PunBB page.
There's probably an include file you can use for that purpose.

Please see this page for information on implementing PunBB functionality into other parts of your website and details of the database schema.

Related

How can I create a ParseUser from an already logged in Facebook user?

I have an android app that already have a Facebook login using the Facebook SDK.
Now, I would like to take the already logged-in user and create a ParseUser for it.
I tried a few approaches and failed with each and every one of them (like become and linkace).
Can you please help out? I couldn't find anything in the docs too. it was always referring to the case when I'll use Parse's Facebook login avtivity...
Thanks,
Nimrod
OK, After a while digging in... I'm pretty sure it's not possible.
I suggest the Parse team to add this feature as it will make existing apps migration to Parse easier.

Add Facebook log-in button

Edicy.com doesn't support php and I was wondering what html code to add to enable Facebook log-in that doesn't require php.
I'm also wondering if I need to sign up as developer and get an ID in Facebook to be able to use the code.
Thanks in advance for any help!
Follow these steps:
You need to register as a developer here (free of course).
Then create an app from here. And configure the appropriate settings.
This will get you an app id, which is used in the code
Without PHP, yes of course, integrating the javascript sdk is too simple.
Integrate the facebook login from here - trust me too simple!
Rest, if you find any difficulty you'll find its solution here in stack!
I hope that helps. Good luck!

How implement Facebook-Login / facilitate site-register using Facebook

I want my users to be able to login or register on my Site using their Facebook-Account. Could be either like the user clicks the "Login using Facebook"-Button and is automatically logged in, while his data is saved to the db or he clicks "Login using Facebook" and gets my register-page filled with his data from Facebook.
I already tried the Facebook-register, but I think it doesn't solve the problem for me, because I don't want to change my entire register-dialog to Facebook. I want it additionally.
I managed to generate the "Login using Facebook"-Button using the Java-API. I also managed to get user-data via FQL using the PHP-API. But then I run into huge problems with the token.
I guess I read the (poor) documentation on FB-Developers for 20 times now. The Tutorials I found where either outdated or treat other cases. Besides that seemingly everyone uses another way to access FB.
Does anybody know an easy way to realize that and could clearly explain which functions, APIs, ... to use? Especially I feel like I still haven't totally understood that token-thing.
If someone is stuck with the same problems... For me it helped a lot to drop the JAVA-API and only rely on PHP.
See as well this tutorial: http://thinkdiff.net/facebook/php-sdk-graph-api-base-facebook-connect-tutorial/ (It's also a bit outdated, therefore you have to delete the call to the getSession-Method.)

Twitter + SAOAuthTwitterEngine

So, I have been reading into the whole OAuth stuff the recent days, trying to find something to help me authenticate with twitter. Since most of the topics in this forum pointed to Ben Gottliebs Framework I tried to include it in my TestApp which went fine.
Inserting my tokens, logging in went easy. Next thing I wanted to do, was using my own login screen. So I have to replace the Webview which is used with my own (e.g.) UIView.
The thing is, I couldn't find out how to do that. I have absolutely no idea at what point 'interfere' since everything is so obscure (on purpose?)...
So my questions are:
1) Has anyone approached the issue in any way and can you give me a hint on what there is to do?
2) Is is generally ok to change the framework in that way? I couldn't find anything which would prohibit me of doing that...
The whole idea behind OAuth is that you don't provide the login screen. That way, the user doesn't have to give you his password. Instead, he is taken out of your app temporarily, passed to Twitter (or Facebook, or whatever), authenticated with them, and then Twitter (or Facebook, or whatever) gives you a token that you can use for as long as the user still gives you permission to use it.
That all being said, Twitter does actually provide a way for you to customize your own login screen, called xAuth. However, you need special permission from Twitter to get access to create an xAuth app.
Information about xAuth: http://dev.twitter.com/pages/xauth
Another Question about this: #iPhone : how to create twitter + OAuth custom login in our application

Creating a custom Facebook login form

Does anyone know if it is possible to create our own user interface for Facebook connect instead of having to use FBLoginDialog?
If YES, how?
IF NO, can I format FBLoginDialog to have the look that I want just like the FBStreamDialog (POST message to wall)?
Any suggestion would be highly appreciated.
The FB authorization process is based on OAuth, and the whole idea is that users should never have to give you their user name or password. If you implement your own login interface, that means all information users type in is passed through your code, and that would mean that you break the intention of OAuth, even if you could get it to work (which is not very easy).
An alternative is to modify the appearance of the page by running some Javascript code on the FB web page after it has been loaded from the network. (You'd do that using -[UIWebView stringByEvaluatingJavaScriptFromString]) But even though this is possible, like taskinoor I don't think it's a good idea, because the main thing is that users should feel confident that it the FB page and nothing else that they are typing their info into.
It's in fact not possible for iPhone users to be sure that you haven't faked the whole web view, but at least you shouldn't try to make them suspicious.
I'm not sure whether it can be done or not. But the thing is you most probably should not try to change this. The reason is many user (including me) won't put password if the login page is not from FB. Though I agree that this decision is highly depended on the designer.