Vbulletin + Pligg bridge co-op

Register an Account
Pligg Chat Room
Closed Thread
 
LinkBack Thread Tools Display Modes
  #31 (permalink)  
Old 01-24-2007, 10:18 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 3,803
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
I had some issues when enabling the cookie. I think I set up everything correctly, but I just couldn't get it to work. Right now the pligg demo isn't using the cookie, but is using version 1.10. Once again, thanks Simon.
I sent Simon a donation on behalf of Pligg, I hope a few of you will do the same.

Now Available: Facebook Connect Module !
  #32 (permalink)  
Old 01-24-2007, 10:43 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
Quote:
Originally Posted by Yankidank View Post
I had some issues when enabling the cookie. I think I set up everything correctly, but I just couldn't get it to work. Right now the pligg demo isn't using the cookie, but is using version 1.10.
Interesting. I think i know why it won't work on the iforum, but as yet i'm not sure why. When i check the cookies this forum sets, i see:

bbsessionhash
bblastactivity
bblastvisit

Now when i was making this bridge, i based it off my forum cookies, which consisted of all of the above, AND bbuserid and bbpassword. It was the userid and password cookies that i used (if they aren't present, it reverts to the non-cookie sharing version automatically). What i don't know is why they aren't present on this forum. I'll do some testing and see whether there is a particular setting needed to produce those 2 extra cookies.

EDIT: ok, i know the cause of the problem. The extra 2 cookies that i use in this bridge only appear if the user clicks on "remember me". Now the reason i never had a problem is that i was a bit sneaky and in my vB template, i forced all users to be permenantly logged in, by removing the Remember Me checkbox, and replacing it with:

Code:
<input type="hidden" name="cookieuser" value="1" />
So that is the quick way round the problem. The other will be to base the cookie sharing off the bbsessionhash file. I'm sure it can be done, but first i need to find how the bbsessionhash content is derived, and then use that to match to the correct pligg user table row.

Last edited by Simon; 01-24-2007 at 10:54 PM.
  #33 (permalink)  
Old 01-25-2007, 12:55 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
Updated to v1.11 - this updates the cookie sharing for those who don't use the "Remember Me" function. To upgrade from the previous version, simply re-upload the login.php file in the pligg upload directory, and then follow step 2 of the installation guide.

As always, please report any problems in this thread.
  #34 (permalink)  
Old 01-27-2007, 07:45 PM
New Pligger
 
Join Date: Dec 2006
Posts: 2
Awesome!! I've been waiting for this for quite a while now. A few requests/ideas... if I may be so bold.
  • Any way to sync the avatars on both systems? It would be nice to keep the users "brand" consistent.
  • Auto-login with cookies. When I first send my users from the forums over to the pligg, I would like it to detect the cookies and automatically log them in. Having to login is kinda lame... or is mine just not working right?
  • One profile. Pull in homepage, location, AIM, ICQ, etc from VB database. No sense in them entering it all again.
  • Registering sends them over to vBulletin.

That's my wishlist after an afternoon of playing. May be more later.

I will definitely give a decent donation if a few of these can be implemented.
  #35 (permalink)  
Old 01-27-2007, 11:26 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
Quote:
Originally Posted by disneysites
Auto-login with cookies. When I first send my users from the forums over to the pligg, I would like it to detect the cookies and automatically log them in. Having to login is kinda lame... or is mine just not working right?
That should work in the latest version. As long as you have at least the sessionhash cookie in the browser, it should pick it up and log you into pligg. If it's not working, make sure you followed the instructions in step 2 to the letter (configuring libs/login.php).
Quote:
Originally Posted by disneysites
Registering sends them over to vBulletin.
That's going to need a pligg template change. I removed the register input boxes, and replaced them with a link to the forum registration. Tighter integration of profiles and avatars is possible, but its not on my to-do list at the moment, although i might have a look at it at some point. Anyone else is welcome to add features to the bridge.
  #36 (permalink)  
Old 01-28-2007, 10:06 AM
Casual Pligger
 
Join Date: Jan 2007
Posts: 53
Quote:
Originally Posted by Yankidank View Post
I sent Simon a donation on behalf of Pligg, I hope a few of you will do the same.
Done


<3
  #37 (permalink)  
Old 01-30-2007, 08:43 PM
New Pligger
 
Join Date: Dec 2006
Posts: 2
Quote:
Originally Posted by Simon View Post
make sure you followed the instructions in step 2 to the letter (configuring libs/login.php).
I did follow every instruction in step 2 to the letter... I just forgot that pesky "saving" part. (In my defence, that wasn't in the instructions )

Works all spiffy after actually saving the file. Thanks!
  #38 (permalink)  
Old 01-31-2007, 12:45 AM
Casual Pligger
 
Join Date: Jan 2007
Posts: 53
I followed the steps as completely as I could. I don;t get any error messages, but the login still gives me an error in Pligg. How can I troubleshoot?
  #39 (permalink)  
Old 01-31-2007, 12:14 PM
Casual Pligger
 
Join Date: Jan 2007
Posts: 53
I was able to use debug mode to find some errors in the import process. See attached screenshot. Does this tell you anything?
Attached Thumbnails
Vbulletin + Pligg bridge co-op-pligg_populate.jpg  
  #40 (permalink)  
Old 02-01-2007, 08:00 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
First thing to check would be that you have the correct pligg database details in the "Pligg Integration Options" admin section of vBulletin.

You might also want to try removing the following from the pligg_populate.php file:
Code:
if (!can_administer('canadminusers')){
    print_cp_no_permission();
}
Other than that, i'm not sure what the problem could be.
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pligg Donation Drive 2009 chuckroast Questions and Comments 0 03-23-2009 04:42 PM
Vbulletin user : Pligg ? frack Questions and Comments 8 12-20-2007 02:16 AM
Vbulletin + Pligg bridge built in as option pipin Questions and Comments 0 02-20-2007 02:28 AM


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