Go Back   Pligg CMS Forum > Other > Suggestions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-18-2007, 08:05 AM
Pligg Donor
 
Join Date: Feb 2007
Posts: 28
Thanks: 1
Thanked 2 Times in 1 Post
MultiPLIGG

I have almost set up my 2 pligg sites... YAH!


I would like to save my users time by allowing them to have the same user/login info for each site.


Maybe this would be a good idea to have as admin feature so we can allow niche pliggs sites or subdomains.... kinda like what team sugar does.


.....

some other great features of digg, teamsugar, etc

whos online
users pligg blogg
post my story to my blogg (requires user to fill out his blog login)
Reply With Quote
  #2 (permalink)  
Old 02-18-2007, 01:00 PM
Constant Pligger
 
Join Date: Apr 2006
Location: USA
Posts: 576
Thanks: 31
Thanked 24 Times in 20 Posts
I don't think its to hard to do, just configure the user tables to work together... not sure how to do that though.
__________________
God bless,
-en3r0

Torrop.com - Torrent and P2P News
MemeVote.com - Find and vote on Memes
Reply With Quote
  #3 (permalink)  
Old 02-18-2007, 01:24 PM
Casual Pligger
 
Join Date: Feb 2007
Posts: 30
Thanks: 2
Thanked 3 Times in 2 Posts
I was thinking about doing this too. It would be nice if there was a central database somewhere (maybe here) that all Pligg sites that wished to could use. Some kind of Pligg-net where anytime a user joins a participating Pligg site their login and password are duplicated in this central database that all the sites can use. I'm not sure if this is far fetched though.
Reply With Quote
  #4 (permalink)  
Old 02-18-2007, 05:09 PM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,819
Thanks: 110
Thanked 182 Times in 128 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
I did this on one of my sites that I'll probably never get around to finishing. It's pretty simple to setup, but you will need to have the user table installed on the same database name on both of your pligg installs. I set it up so that it would share the user names/passwords, private messages and friends list between several Pligg installs that all get their information from the same database. I will write up a detailed post about what I did on the Pligg blog sometime soon.

For now I will give you a brief example, by demonstrating what you can do.


Open config.php and edit lines 134-147. If you just want to only share user names and passwords between your sites you will need to edit line 141.

Step 1
Create a new database table global_users.
Log in to phpmyadmin and insert this sql into your database:
These settings do not apply to all language variations or Pligg versions, a more accurate way to do this is to just rename your pligg_users table to global_users. If you rename pligg_users to global_users you can skip this step.
Code:
CREATE TABLE `global_users` (
  `user_id` int(20) NOT NULL auto_increment,
  `user_login` varchar(32) NOT NULL default '',
  `user_level` enum('normal','special','blogger','admin','god') NOT NULL default 'normal',
  `user_modification` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `user_date` timestamp NOT NULL default '0000-00-00 00:00:00',
  `user_pass` varchar(64) NOT NULL default '',
  `user_email` varchar(128) NOT NULL default '',
  `user_names` varchar(128) NOT NULL default '',
  `user_lang` int(11) NOT NULL default '1',
  `user_karma` decimal(10,2) default '10.00',
  `user_url` varchar(128) NOT NULL default '',
  `user_lastlogin` timestamp NOT NULL default '0000-00-00 00:00:00',
  `user_aim` varchar(64) NOT NULL default '',
  `user_msn` varchar(64) NOT NULL default '',
  `user_yahoo` varchar(64) NOT NULL default '',
  `user_gtalk` varchar(64) NOT NULL default '',
  `user_skype` varchar(64) NOT NULL default '',
  `user_irc` varchar(64) NOT NULL default '',
  `public_email` varchar(64) NOT NULL default '',
  `user_avatar_source` varchar(255) NOT NULL default '',
  `user_ip` varchar(20) default '0',
  `user_lastip` varchar(20) default '0',
  `last_reset_request` timestamp NOT NULL default '0000-00-00 00:00:00',
  `user_location` varchar(255) default NULL,
  `user_occupation` varchar(255) default NULL,
  `google_adsense_id` varchar(64) NOT NULL,
  `google_adsense_channel` varchar(64) NOT NULL,
  `google_adsense_percent` tinyint(3) unsigned NOT NULL default '50',
  PRIMARY KEY  (`user_id`),
  UNIQUE KEY `user_login` (`user_login`),
  KEY `user_email` (`user_email`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;

INSERT INTO `pligg_users` (`user_id`, `user_login`, `user_level`, `user_modification`, `user_date`, `user_pass`, `user_email`, `user_names`, `user_lang`, `user_karma`, `user_url`, `user_lastlogin`, `user_aim`, `user_msn`, `user_yahoo`, `user_gtalk`, `user_skype`, `user_irc`, `public_email`, `user_avatar_source`, `user_ip`, `user_lastip`, `last_reset_request`, `user_location`, `user_occupation`) VALUES (1, 'god', 'god', '2007-02-08 20:40:43', '2007-02-04 00:01:44', '1e41c3f5a260b83dd316809b221f581cdbba8c1489e6d5896', 'blank@pligg.com', '', 1, 10.00, 'www.pligg.com', '2007-02-08 20:40:43', '', '', '', '', '', '', '', '', '0', '68.51.132.108', '0000-00-00 00:00:00', '', '');
Step 2
Find:
PHP Code:
if(!defined('table_users')){ define('table_users'table_prefix "users" ); } 
Replace with:
PHP Code:
if(!defined('table_users')){ define('table_users'"global_users" ); } 
As you can see I replaced
PHP Code:
table_prefix "users" 
with:
PHP Code:
"global_users" 
Repeat these steps for each table that you wish to share across multiple Pligg installs.

If many people express interest in having a global pligg user database please let us know so we can look into it.
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
  #5 (permalink)  
Old 02-18-2007, 05:25 PM
Pligg Donor
 
Join Date: Apr 2006
Posts: 12
Thanks: 11
Thanked 0 Times in 0 Posts
Thanks! This opens up some interesting possibilities!

Looking forward to the detailed write up.
Reply With Quote
  #6 (permalink)  
Old 02-19-2007, 12:19 PM
Pligg Donor
 
Join Date: Feb 2007
Posts: 28
Thanks: 1
Thanked 2 Times in 1 Post
I made a donation today ... paypal shows it went out... I then got the thankyou for your donation of $0.00 page = odd

It was thanks for helping on the multipligg idea

Other functions that id love to see/donate for...

1 whos online
2 paypal donate for articles like http://www.plugim.com/story/Why_Bots...es_My_Opinion/

3 integrate multipligg users db
4. users can create their own blog

... ill think of more
Reply With Quote
  #7 (permalink)  
Old 02-19-2007, 02:02 PM
dollars5's Avatar
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
user blogs - is what I am looking forward too.
Reply With Quote
  #8 (permalink)  
Old 02-20-2007, 12:29 AM
New Pligger
 
Join Date: Mar 2006
Posts: 25
Thanks: 28
Thanked 1 Time in 1 Post
i really believe the only 'safe' implementation for this is thru openid , i made a suggestion earlier abt developing a mod using openid here:

http://www.pligg.com/forum/showthread.php?t=3600

if some one can make this happen, it wud b really great =]
Reply With Quote
  #9 (permalink)  
Old 02-20-2007, 03:52 AM
Pligg Donor
 
Join Date: Feb 2007
Posts: 28
Thanks: 1
Thanked 2 Times in 1 Post
I am talking about my users using their same id for only my pligg sites... not a free for all.
Reply With Quote
  #10 (permalink)  
Old 03-30-2007, 05:30 AM
New Pligger
 
Join Date: Mar 2007
Location: Malaysia
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
i have already installed two of my seperate pligg sites. and both of them have been inserted with lots of news.

both of the are on the same server sharing the same mysql database, only different prefixes.

now, a user of my site has pointed out that I should combine the both together in terms of username/password, private messages and friends lists.

so now i'm stuck. Can someone please point out how I could solve this predicament? ;-P
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Search Engine Friendly URLs by vBSEO 3.2.0