Anope IRC Services

Anope.org => Anope General => Topic started by: NoMiaus on October 26, 2013, 01:07:34 AM

Title: Wordpress integration
Post by: NoMiaus on October 26, 2013, 01:07:34 AM
Hello!
I saw some websites that allow post comments (or identify on the website) using the nickname and password of the IRC network, so I would like to know if it's possible in Wordpress and how to do it.

Thanks  :)
Title: Re: Wordpress integration
Post by: Adam on October 26, 2013, 01:10:52 AM
You would probably have to modify wordpress or find a plugin for it to auth against services's database.
Title: Re: Wordpress integration
Post by: NoMiaus on October 26, 2013, 01:16:44 AM
You would probably have to modify wordpress or find a plugin for it to auth against services's database.

Thanks for answering! I found this: http://wordpress.org/plugins/external-db-auth-reloaded/screenshots/
The problem is that I don't know how to check the nicks and passwords database of anope..
Title: Re: Wordpress integration
Post by: Adam on October 26, 2013, 01:18:12 AM
You would need to enable MySQL support or similar and then just query the database...
Title: Re: Wordpress integration
Post by: NoMiaus on October 26, 2013, 11:22:03 AM
Could you explain the second part? 'query the database'
Title: Re: Wordpress integration
Post by: katsklaw on October 26, 2013, 06:36:20 PM
It requires that you know a bit about mysql queries. There is no checkbox to mark or no module to load. You are required to learn a bit of php/html/sql coding to do it which is well outside the scope of this forum. You need to configure wordpress or any other webapp to query Anope's sql database.

In short, it has nothing to do with Anope directly.
Title: Re: Wordpress integration
Post by: NoMiaus on October 27, 2013, 01:27:54 AM
Well today I created a php script to do it and i got it with a simple website (i can identify with the nick and password of IRC... it works!), the problem will be integrate it on wordpress..  i don't know how start... :'(
Title: Re: Wordpress integration
Post by: CrazyCat on October 29, 2013, 03:13:24 PM
user_table: [prefix]_ns_core
External Database Source Fields :
username: display
password: password

If your passwords are plaintext in db, you have to select "other" as "Password encryption method" in the configuration and it runs.
If you use real md5 or sha1, select the good "Password encryption method".