Wordpress to use Drupal users' credentials - wordpress

I have both Wordpress and Drupal installed on two domains. I want the users that register via Wordpress to be stored in Drupal's user table. Also, any login attempts should be checked against Drupal's database.
I don't have a lot of experience with either (though I'm fairly confident in my PHP skills). I am not looking for a way to mirror the users, but to actually tell Wordpress to use Drupal's database.
I think I have to rewrite the login and register methods on Wordpress. Am I wrong? And what's the best way to do this? (what files do I need to go into)?

You wouldn't want to tell Wordpress to use Drupal's entire database as it'll just create a lot more headaches. You're better off loading something like Drupal's boostrap and attempting to call the registration functionality, this again would cause more issues.
Is there a particular reason preventing you from using one system? Migration plugins/modules exist for both CMS'.
I'm sure others have come across the same issues.
http://wordpress.org/extend/plugins/external-database-authentication/
Wordpress and Drupal SSO/Single Sign On
How to register a user to Drupal 6.x without using the API?

Related

Reading/writing to the WordPress database using WordPress and Javascript

I am working with a client who is using WordPress. I am not familiar with WP like I am with other frameworks. In this situation, the client wants to allow users to enter data into a form and I will create pages to display this data so it can be managed. I am thinking I need to get the user entered data saved into a table. I will then read from this table to display in another page. I need to do CRUD stuff within WP with JavaScript.
Are there plugins that will allow me to create tables within the WP database? Can I use JavaScript to read/write to them, or do I need to use PHP? I don't have access to the source code so I am doing everything via the functions.php and JS files.
Because I don't have much experience with WP, I am not sure what can be done. Thanks for any suggestions.
While it's definitely doable programmatically, I don't see much reason in recreating the wheel. Perhaps Contact Form 7 would work for you. If not, Gravity Forms can do what you need, but I believe there is a cost for that.

Would like to integrate Cakephp project with Wordpress. Wordpress should be used for login/description of the another system

Would like to integrate Cakephp project with Wordpress. Any ideas how to do it best?
It should be my created information system which several pages could be launched from the Wordpress website.
Would like to have everything under one domain - Wordpress website blog (for describing the system) and the system itself.
At the moment I have my information system and bought a Wordpress theme also. Need Wordpress functionality to enrich my current information system based on CakePHP.
The need is to use Wordpress as the login, description, documentation mechanism. That's why I'm not sure how to do it under one domain the best way. Just need consulatancy how to make these two systems with their own databases to work together withinn one domain name.
If more specific - one of the Wordpress page should be the login page of my information system which is handled by the CakePHP MVC. Is that possible?
Maybe it could be done similarly to this approach:
http://www.eiosys.com/blog/solved-install-run-integrate-wordpress-blog-alogside-with-cakephp/
Or maybe here is almost what I need:
http://www.abhinavsood.com/install-cakephp-in-subdirectory-of-wordpress/
Any better ideas?

Using wordpress as external content management system

We are planning to create an asp.net website (probably mvc), that needs a cms for news items.
Our content managers and others who require to publish news have asked if they can use wordpress for content management.
Our users have different roles, and news items should be visible to certain roles, or even specific users if possible.
The reason they want wordpress is the manager's user friendliness, so if some other alternative with the same kind of user experience would be ok.
Could anyone please point me in some direction?
NOTE: I'm still doing research at the moment, so I've got nothing holding me back at this point.
There is an API plugin that has been developed to spit out information in JSON, but I have not actually implemented a site with it:
http://wordpress.org/extend/plugins/json-api/
Perhaps you could have the authors work on a wordpress install and create your app to draw content via that plugin?
I too was facing the same issue, little different. We want to have WP as CMS so that our site can take the benefit of SEO which is very easy with WP. SO we installed WP under a folder in the Main ASP.net based website. Initially there were issues, I was unable to run it. Finally managed to run it. Solution is posted here - http://www.wwwlabz.com/how-to-run-a-php-based-website-from-a-subfolder-in-asp-net-website. Hope it will help someone. Actual site where we implemented this is http://www.periproperties.com/content/.
Now I want to have specific section of WP to be accessible on my site. SO I am exploring different options and will post, if found something
Thanks.
DotNetNuke is the most popular ASP.NET based CMS (source). I am implementing my first project in it and so far I am very happy with it.
Note the free edition will not work for you since you need customizable security roles and free has a limited set of predetermined roles. You'll need the pro edition.
I don't know how similar it is to WordPress. Overall, WordPress is much more popular but of course there are platform issues with WordPress since it is Apache based and you want to create an ASP.NET website.

Drupal 6: Allow external site to authenticate via Drupal

How would I allow a simple PHP site, which already has a user db, to let Drupal handle the logging in of users? I guess I could use services (but I would need help on this) or alternatively is there some way that users are passed to the Drupal login form to log in, but the simple external PHP site knows, through some kind of cookie arrangement, that the user is logged in?
The main priorities are that the user should only have to log in once for both sites, and the existing users on the external site can be maintained and transitioned smoothly. I want Drupal as the main user db because it's more secure and I think it's easier to have the external authenticate off Drupal rather than the other way around.
Any thoughts?
Bootstrapping Drupal is one way to do this. See : http://drupal.org/node/710560
It does have the overhead of loading other Drupal processes that you may not need, but at least it will give you the ability to add drupal's permissions system into your own app. I found that having the talker .PHP file in the druapl root to be the easiest way of working things; as you see from the above link, the working directories can be problematic.
There are few ways you can do that
Use drupal as OpenId Provider
User services module to expose the login service and call it in your php application. This module has good documentation.
I hope this helps.

Wordpress - Database

New to Wordpress.
I am aware the default database to Wordpress is MySQL.
Like livejournal, i have a small requirement which allows Admin to post content and registered users on the website are allowed to post contents.
I decided to go with Wordpress, but still have not done much research on allowing registered users to post contents as like admin.
I am wondering, What database would be the best to go with ?
SQL or MySQL ?
Also, whether these contents are stored in the Database or in the form of .doc ?
The database you use doesn't matter as long as Wordpress supports it.
Comment functionality is built into Wordpress. You don't need to do any custom development to make it happen. If you only want registered users to be able to comment, you'll have to make a setting requiring users to be registered and logged in to comment. This setting is under Settings - Discussion. Comments are stored in the database.
Those are a few questions in one, so I'll answer each one of its own and paraphrase:
Can Wordpress use some other database than MySQL?
No, Wordpress only supports MySQL, so there is no choice.
Are the posts or pages/content in Wordpress stored in a database or in a .doc file
The contents of posts in Wordpress, just like in liveJournal, are actually stored in a database.
Is it possible to allow users in Wordpress to submit content that an admin can then review and publish/delete later etc.
Yes. Very much so. I believe it's built into Wordpress, you just need to have a registered user and enable the feature.

Resources