Pligg integration with SMF Forum

Register an Account
Reply
 
Thread Tools Display Modes
  #21 (permalink)  
Old 05-20-2007, 05:34 PM
911 911 is offline
Casual Pligger
 
Join Date: May 2007
Posts: 33
Any Progress?

Is somebody working on a SMF bridge for Pligg 9.5?

Best Regards
Reply With Quote
  #22 (permalink)  
Old 05-20-2007, 06:00 PM
New Pligger
 
Join Date: Mar 2007
Posts: 20
This mod allows the integration between SMF and Pligg (open source social bookmarking tool).

Introduction

It only works with PLIGG 9.1 (not 9.5 which just appeared).

THIS IS CONSIDERED BETA STAGE and should not be used on live forums. (even if I do use it ).

Functionality

a) Let's you copy the users from SMF Database to Pligg's database [allows to copy only new users, or all the users]
b) Everytime a user logs into their SMF account, a cookie is created for Pligg too, and user is automatically logged on there too.
c) When the user logs off from SMF, it will automatically be logged off from Pligg too.
d) Users can use the same username/password to login on their Pligg account (once their accout on Pligg is created using this mod).
e) If the user changes his/her email/password, these will be reflected on their Pligg account too.
f) Pligg account is automatically created on each registration of a new member on the SMF forum. If you have selected 'member activation', their Pligg account is only created when they activate their account.
g) If a user account is deleted from the SMF forum, their account is also removed from Pligg.
h) Admins on SMF will automatically be God on Pligg, and global moderators it's up for you to decide what their rank will be on Pligg (there's a dropdown from which you can select).

Limitations

a) As the mod uses SMF Integration API, you can't have other integrations active. I've coded it so if the SMF_INTEGRATION_SETTINGS is defined, then the mod will fail to run and ask you to remove it so it won't break your other integrations.
b) This mod is one way only integration, as Pligg is under heavy development at the moment. This means that users created on Pligg side won't have their accounts created back on SMF. Also, passwords resetted on Pligg won't be reflected on the SMF side. Only registrations on SMF will automatically create accounts on Pligg.
c) Pligg source code needs to be modified for Pligg to recognise SMF encrypted passwords. The mod's zip file includes all the files from Pligg 9.1 that I've updated and you need to replace those in the original 9.1 distribution. More on the Installation part, below.
d) Passwords that are reset (and thus changed) on Pligg will not be reflected back on SMF.

License
The mod's code is offered under the rules governing SimpleMachine's mods.
The Pligg's changed code is offered in compliance with Pligg's license.

Installation

Pligg Setup - first step.

a) First you need to install Pligg 9.1. Please have the database user name and database password handy.
b) Then you need to replace the files found on the 'pligg' directory in the mod's archive with their corresponding Pligg files. The changes are related to the way Pligg handles the passwords (make Pligg's password hashing compatible with SMF).
At this moment, your 'god' account on Pligg will not work anymore as the password in the database is encrypted with the original Pligg algorithm and doesn't match SMF one.

Mod Setup - second step (last)

a) You need to install the mod.
b) You need to go to 'Pligg Bridge' found under the main menu to the right:
(PS: don't worry if you see a warning, each time you click it the module tries to connect to the Pligg database, and the first time settings are not correct, hence the warning).

http://www.hex.ro/files/pliggintegra...ligg11_scr.png

c) You need to provide informations about Pligg's database / domain and save it. If there are errors, you will be notified by a red message what the error was.
d) Then you need to go to the second tab, "Copy Users":

http://www.hex.ro/files/pliggintegra...igg11_copy.png

There you can select what the rank the Global Moderators from SMF will have, and if you need to replace the users you already copied on Pligg from SMF (UPDATE operation), or only add the new ones.
On first run, you need to copy all of them, on subsequent runs you need to update only if something has changed (such as the user websiteUrl/email/password on SMF and somehow the module didn't update at the moment when it was changed). One other reason I found I need to UPDATE previously copied users is when a user changed their Pligg password and now when they logged onto SMF they were not automatically logged onto Pligg.

To verify
To verify, you need to log out of SMF and log back in. If everything is alright, when you switch to Pligg you should already be connected as your username and be God [SMF admins will always be created with God rank on Pligg]

That's it

So far I run it on three forums [all of them are SMF 1.1.2] each with Pligg 9.1 installed. No problems
However there might be bugs and I'm looking forward to hear what you guys have to say.
Also, I tried to keep the Pligg's cookie as long as SMF's cookie. If you log out, Pligg's cookie is also deleted (this can be changed if you edit a like found at the beginning of the PliggIntegration.php file in SMF's Sources directory).

One thing about the domain (that you are asked).
Cookies need to belong to a certain domain. If your Pligg site is pligg.yourdomain.com you can either enter a domain like
pligg.yourdomain.com (and path /), or .yourdomain.com (. at the beggining meaning on any subdomain) and / as path.
If you have your pligg under for example yourdomain.com/pligg , then the domain should be yourdomain.com and the path /pligg/
ATTENTION: http path must always end with / for cookie to be set.

I've tested with IE 6 and Firefox 2.0.2 -> but should work on Opera/Safari too (the cookies, I mean).

Good luck
Attached Files
File Type: zip PliggBridge_1.1(for_9.1).zip (27.0 KB, 31 views)
File Type: zip PliggBridge_1.1(for_9.5).zip (28.0 KB, 71 views)

Last edited by viulian; 05-21-2007 at 03:51 PM. Reason: Added support for Pligg 9.5
Reply With Quote
  #23 (permalink)  
Old 05-21-2007, 09:02 AM
911 911 is offline
Casual Pligger
 
Join Date: May 2007
Posts: 33
Thanks for you work viulian! Sounds good.

Will you release a bridge for 9.5 or upcoming versions in future too? Think their is an vBulletin bridge for 9.5 under development, but an alternative for the free SMF would be great.

Best Regards
Reply With Quote
  #24 (permalink)  
Old 05-21-2007, 09:50 AM
New Pligger
 
Join Date: Mar 2007
Posts: 20
I'll investigate Pligg 9.5 in the following days and see what I can do. The code doesn't seem to different (related to the logins) - I just wanted to release the working 9.1 version I finished

Will keep you guys up to date..
Reply With Quote
  #25 (permalink)  
Old 05-21-2007, 03:53 PM
New Pligger
 
Join Date: Mar 2007
Posts: 20
Ok, I did it.

I have made the changes to Pligg 9.5 code too and attached them to the second post from above (mine) along with that for Pligg 9.1.

I have also polished a bit the version for 9.1 I offered, renamed the directory in the zip from pligg/lib to pligg/libs to be less confusing, and gave up some settings file that were there since I was conding the software.

Hope you guys enjoy it
Reply With Quote
  #26 (permalink)  
Old 05-21-2007, 09:00 PM
apostaganha's Avatar
New Pligger
 
Join Date: May 2007
Posts: 18
I have both forum and pligg on diferent subdomais, can this be a problem?
Reply With Quote
  #27 (permalink)  
Old 05-22-2007, 01:19 AM
New Pligger
 
Join Date: Mar 2007
Posts: 20
Nope, no problem with that. It should work.
Reply With Quote
  #28 (permalink)  
Old 05-24-2007, 03:03 PM
911 911 is offline
Casual Pligger
 
Join Date: May 2007
Posts: 33
Thanks viulian!

I am currently on fixing some other Probs I have setting up pligg for a german site (hope I pass this until a new Beta is released ). So I will test it when I have solved this first.

Looking forward to an stable release for your smf bridge and hoping you will keep up developing on future Pligg releases.

Keep up the nice work.

Best Regards
Holger
Reply With Quote
  #29 (permalink)  
Old 05-24-2007, 04:33 PM
New Pligger
 
Join Date: Mar 2007
Posts: 20
Thanks for your support

I will keep the mod updated on future releases of Pligg (hopefully Pligg will have an integration API by itself and won't require any source code update).

My code is stable (for me) so but no one seems to have tested it so far - so I can't say anything about general stability.

I am looking forward to your results,

Iulian
Reply With Quote
  #30 (permalink)  
Old 05-24-2007, 05:29 PM
911 911 is offline
Casual Pligger
 
Join Date: May 2007
Posts: 33
Quote:
Originally Posted by viulian View Post
Thanks for your support

I will keep the mod updated on future releases of Pligg (hopefully Pligg will have an integration API by itself and won't require any source code update).
Nice to hear that.

Quote:
Originally Posted by viulian View Post
My code is stable (for me) so but no one seems to have tested it so far - so I can't say anything about general stability.

I am looking forward to your results,

Iulian
I am only a bit scared in mixing up the two CMS with one User database and it gets broken for some reason (special if I make an update because of new releases for Pligg/SMF). Individually I know there will no Problems, and if they are more easy to fix then a bridged one.

Does stable for you means you eliminate the points you mentioned in "Limitations"? So every registration, deleting accound, passwort change etc. is updated both in Pligg and SMF nevertheless if I make this in Pligg or SMF?
As I am just testing at this moment with pligg, but I want to set up a Live Pligg Site and enhance it to a later time with an SMF Forum. It would enhence the site a lot if this is done with a bridge so Users dont have to register twice (think this will improve the activity for both areas, pligg and smf, a bit too). But I am a bit scared of have problems with broken User Accounts on a live Site.

Best Regards
Holger
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
READ FIRST: Pligg Template Forum Rules Yankidank Free Templates 2 02-01-2010 09:53 AM
Pligg 1.0.0 RC3 Yankidank Current Version 2 04-02-2009 12:21 PM
Pligg 1.0.0 RC2 Yankidank Current Version 1 04-02-2009 12:21 PM
Pligg 1.0.0 RC1 Yankidank Current Version 1 01-30-2009 02:51 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development