I have originally planned on using Organic Groups to allow specific functionality, but now I am not sure if this is the module I am looking for, or if I will have to generate my own.
I essentially want people to login and create their own web page. I figured this could be done by giving the user a specific "group". Really, I am looking for similar functionality to MySpace, in how users can create their own content based on an input field. I plan on using CCK to give them the ability to add text to predefined text boxes. I plan to have several thousand users with a unique group for each. Is there a module that will fit this need better than organic groups? Are there similar sites out there that are similar to this? I can give additionally details if needed, but those are my main requirements.
Thanks for any assistance or suggestions
Comments
Organic Groups + Views, CCK,
Organic Groups + Views, CCK, Panels + several other
Take a look at sample pages http://drupal.org/project/og and watch this video "Intro to Organic Groups" on http://www.doitwithdrupal.com/free-videos.
I work with a page for some norwegian students that will resemble some of http://www.break.com/, but with very different features in addition. Among other things, their own independent groups to have forum, blog, flash, etc. (a site in a mainsite) So I believe that you can use OG here if you want a "clone" of MySpace.
Thanks for the links. They
Thanks for the links. They are certainly great videos. In the videos, I got a little confused about panels. It looks like they were really pressing views over panels, but I am not sure why. What are the benefits of views over panels? Using the admin interface for views, it is a bit overwhelming, and I am not sure if that is what I am looking to use. Then again, the entire community stresses the importance of them, so maybe I am wrong. I assumed views would be like making a template within the main content section of the site, but I cannot understand how to get that going.
As for the weight of having CCK, views, panels, and OG enabled, wouldn't that be heavy on a production environment? It seems like loading that much content would cause performance issues.
i have the same idea with you
i have the same idea with you, i want to build a site similar with MySpace, and choose og as the group function module,
when i buid the user own web page , i also think if i can use specific OG as "user own web page ", it is very easy if i buid "user own web page " base on og."user own web page " is specific group that only have 1 person.
but at last i build my own module to complete the functtion of "user own web page ", this way i can have more control of it . the key idea of my module is come from og
module . I build a context for user, it is very similar like og module's context. i just copy og function to my module ,and change some some code .
if you can understand og's context, you can solve this issue easily. the theme, language , block, menu, all of this can be determine by the context of user.
Chinese drupal tutorials Think in Drupal
It sounds like you have
It sounds like you have exactly what I am looking to accomplish, but I cannot really understand how OG works from implementation levels. I understand it is used to categorize into groups, and like you said I want a "group" to really just be one person's custom page, but what do you mean by OG's context?
I have tried using views, but I do not think they are what I want. It seems like you would have to have an individual view for every person. On each page, or "group" if you consider module terminology, I want to allow users to have the ability to upload images to a carousel, a main image, and certain text fields, which most can be accomplished with CCK. The kicker here is just getting a user friendly admin site where the user will only see their page and be able to add what they want.
Panels seemed awesome, but it doesn't sound like it is well supported for Drupal 6....
Make up a demo page and the
Make up a demo page and the "play" around with CCK, OG, Views and Panels. So can you post more spesific questions around it. I'm not sure if you can have your own carusel for each user, but as you say, the other fields can be arranged via CCK.
Here I'm litle bit unsure.
Others I know will not use the Panels "yet. I hope Panels will be more ready soon. (But I'm using it for two site I'm building now)
Could you explained better what you want to create with Views? I have startet to build my site so I could try it out. It will take some litle time but at least we can try.
At last, to be sure that I'm understanding you, each user should have their own "page" without any contact with each other? Different themes (that's easy) and choises to different contents (easy to)?
Hi. could you share your
Hi.
could you share your "extra" module so that we can look at it. What you say sounds very interesting.
What I mean by "getting a
What I mean by "getting a user friendly admin site where the user will only see their page and be able to add what they want", is that a user can login, just like myspace, and then create the page that they want. It would be cool, but not really needed to have custom themes. I am more concerned with getting the right content for the right users. I am looking for a solution to have them pop in text into the CCK fields and even upload images, but I cannot really see how views can enable this. There seems to be a lot of hype of them, but I must not be using them right. Views seems to be individual to a page you create. I am looking to create sort of an internal template within the site, that will hold the CCK fields, which I thought Views would solve. Also, I need ctools for the panels in Drupal6, and I cannot find a stable release of ctools.
Anyway, I am not sure if views or panels are what I can use. I want to give the end user as basic of site creation as possible. I have been playing around with the views, but either I am not using them right, or they simply won't do what I am looking for them to do.
You guys have been great with the answers. I appreciate all of the feedback.
here is the meat of my extra module
the code is copy from og module, i just change some place.
then i have a context for every user, from this context, i can build a "user own web page " which like myspace. User can post blog, upload picture on his own page.
here is the code:
function zpuser_init(){
// Set group context and language if needed.
if ($zpuser = zpuser_determine_context()) {
zpuser_set_user_context($zpuser);
}
}
function zpuser_determine_context() {
$item = menu_get_item();
$object = menu_get_object('user');
// Use the menu system to get the path.
$path = $item['path'];
// Check if this is an existing node.
if (!empty($object->uid)) {
$zpuser = $object;
}
elseif ( strpos($path,'user') === 0 && is_numeric(arg(1))) {
$zpuser = user_load(arg(1));
}
elseif ( strpos($path,'relationships') === 0) {
global $user;
$zpuser = $user;
}
elseif ( $path == 'node/%') {
$node = menu_get_object();
if($node->type == 'blog'){
$zpuser = user_load(array('uid' => $node->uid));
}
}
elseif ( strpos($path, 'node/add') === 0 && arg(2) == 'blog') {
global $user;
$zpuser = $user;
}
elseif ( $path == 'blog/%') {
$zpuser = user_load(arg(1));
}
elseif ( $path == 'comment/reply/%') {
$node = menu_get_object('node', 2);
if($node->type == 'blog'){
$zpuser = user_load(array('uid' => $node->uid));
}
}
if (!empty($zpuser)) {
return $zpuser;
}
}
function zpuser_get_user_context(){
return zpuser_set_user_context();
}
function zpuser_set_user_context($user){
static $stored_zpuser;
if (!empty($user) && $user->uid > 0) {
$stored_zpuser = $user;
}
return !empty($stored_zpuser) ? $stored_zpuser : NULL;
}
Chinese drupal tutorials Think in Drupal
Tanks, I will try it out.
Tanks, I will try it out.
Is this your whole module? As
Is this your whole module? As in, zpuser.module file? Or are these modifications you hand made to the OG module?
Thanks
this is key point of my
this is key point of my module. not all of my module.
I have write some other code to tweak the function of default user. If you can tweak og module, according the above code, you can tweak the default function of user.
Chinese drupal tutorials Think in Drupal