Paid affiliate advertisement

User profile page (module customization and/or development)

David N - December 4, 2006 - 19:30

A few Drupal users with a common interest have agreed to split the cost of developing or modifying a module in order to achieve a MySpace functionality. We had agreed to work with someone but things didn't work out with that developer and we are now starting the search again.

The goal is to provide each user with their own profile page that contains elements from the existing user profile module in addition to showing a list of friends and groups, as well as the user's photo galleries and if possible, the ability for users to post comments to a user's profile page.

Features we're looking for:

1. every user has a profile page that can be viewed upon clicking their user name or user avatar/picture

2. text fields for typical profile information: name, location, about me, etc.

3. galleries can be named by user

4. limit on number of galleries each user can create; to be determined by admin via settings menu

5. limits on number of pictures, file size, and resolution can be toggled/selected by admin via settings menu

6. allows for comments to be posted for each picture as well as general profile; functionality can be turned on or off via admin settings menu

7. Buddy list shows user image + user name

There are already existing modules that provide some of these functions, such as the user profile, image, acidfree, image exact, shoutbox and gallery modules. That leads me to believe that one or more modules simply need to be modified or patched to give us the results we're looking for. My logical guess would be to modify the user profile module and have it hook into other modules.

Time is of the essence in this case, and we would like to have this completed ASAP. If you are interested in taking on this task, please contact me and we can begin a dialogue between all parties.

i am one of the people

apina - December 4, 2006 - 19:42

i am one of the people looking to contribute towards this module..
please someone come from the heavens above and develope this for us.
lolol
i waited months for a module like this and still have not got my hands on one!!

Have you seen the profile snippets stuff?

duggoff@drupal.org - December 4, 2006 - 21:46

Take a look here:
http://drupal.org/node/35728

duggoff

I ran the Microsoft Malicious Software Removal tool, but Internet Explorer is still installed on my computer.

re: profile snippets

David N - December 5, 2006 - 03:02

Yes, I've taken a look at the various profile snippets, which is what led me to believe this task wouldn't be too hard to accomplish, as most of the elements can simply be pulled into a page. The sticky issue is being able to control things on the admin end like the number of galleries per user, resolution of images, number of images, and at the same time, allowing users to control things on their end such as the naming of galleries and text associated with images.

Sounds good!

tadashi - December 5, 2006 - 09:50

I'd love to see a fully customizable profile module which replicated MySpace functionality.

I wonder what happened to that MySpace module I saw floating around...

Hi, i believe alot of this

thomjjames - December 5, 2006 - 10:15

Hi,

i believe alot of this functionality can come from overriding the theme_user_profile function with a template.php in your theme.

i have custom user profile pages as a major feature of my new and recently finished site, this is my profile on the site http://adrenalinehub.com/thomjjames.
I did have to modify a few core modules to achieve this functionality, but i could definately help with the theme side of the work.

i have emailed this to David (who started the thread) as well.

cheers
Tom

www.adrenalinehub.com

How to do this exactly?

bjraines - March 3, 2007 - 21:06

This is exactly what I want to do . http://adrenalinehub.com/thomjjames

I think many people in the community would love to know how to do it.

Please email me if help is still available but I think a descriptive how to in the handbook would be awesome.

I will write it as I implement it if you want.

Really look forward to hearing back from you

http://www.shareyourexpertise.com

your profile link is really nice

gurukripa - July 21, 2007 - 04:58

could u share your user profile code....maybe we cld learn from it..and modify it to suit our needs..
thanks..

Custom User Profiles - Myspace like

pkoura - December 8, 2006 - 00:30

Hi,

I've chosen to override the userprofile page and have individually themed the profile pages to include myspace features:

personal image galleries
buddies
comments (testimonials)

etc.

you can see the user profiles at

http://criticalsole.com

you have to sign up (auto login via logintobbagan) but then you should check out the following link for a sample profile:

http://criticalsole.com/user/pk

let me know and I can help by posting code etc.

PK

Nice work. Can u help me?

chamara - December 21, 2006 - 06:17

Hi PK,
I saw your profile page that is exactly what i want to implement in my site. I hope u can guide me how to do like that. Right now I can manage overriding the user profile page up
to some extend. I need your help on following areas.
1) can u send me the code to display my buddy list just like in your profile page?
2) How can I display uploaded images by each user just like in your my sneaker collection. what modules do I need for this?
3) How can I setup my guestbook just like in your user profile page?

If you can guide me with the coding will be a big help for my project

Chamaar

Hi Chamaar, Got your pm, so

pkoura - December 21, 2006 - 19:29

Hi Chamaar,

Got your pm, so here's what you need to get started:

1. To get the code to display the buddylist there is a nice snippet that you can use. Just search for "buddylist php snippet" and you'll find it. You can display 15 buddies by default but you can always up that or lower that if you want.

2. That one is a bit tough, but there is a php snippet that displays X snippets. Look on the user profile php snippet page it should be there. You have to modify your style.css to achieve the spacing etc.

3. Here is my guestbook code:

<?php
$uid
= arg(1);
  if (
_guestbook_access('administer', $uid) && is_numeric($op_id)) {
    switch (
$op) {
      case
"delete":
      
$y = guestbook_delete_entry_confirm($uid, $op_id);
      case
'comment':
       
$comment_entry = $op_id;
        break;
    }
  }
// Fetch guestbook entries
 
$userid4 = arg(1);
 
$limit = variable_get('guestbook_entries_per_page', 20);
 
$result = pager_query(
   
"SELECT g.*, u1.name, u1.data, u1.picture, u2.name as commentby
    FROM {guestbook} g
    LEFT JOIN {users} u1 ON g.author = u1.uid
    LEFT JOIN {users} u2 ON g.commentauthor = u2.uid
    WHERE g.recipient = $userid4
    ORDER BY g.created DESC"
,
   
$limit, 0, "SELECT COUNT(*) FROM {guestbook} WHERE recipient = %d", $userid4);
 
$entries = array();
  while (
$entry = db_fetch_array($result)) {
   
$entries[] = $entry;
  }
 
$output = theme('guestbook', $userid4, $entries, $comment_entry, $limit);
  print
$output;
?>

Hope that helps.
PK

Criticalsole.com rolls on Drupal!

Big Thanks

chamara - December 22, 2006 - 06:02

Hi PK,
Thanks for your advice and quick reply. Following is my code to dispaly buddy list. Anyone can assign the number of columns they want to print with $numcols = 4; For example in my case i want to print 4 buddies per row. But I cant limit the number of buddies to display. Any idea to limit it? Another thing i want to get from you is how can i display "Send Message" link insted of displaying the send message form on top of the guest book entries? And once the users clicks on the "Send Message" link how can i direct them to that form?

<?php
 
global $user;
$numcols = 4; // how many columns to display
$numcolsprinted = 0; // no of columns so far
  
$userid = arg(1);

if (
user_access('view buddy lists') || user_access('administer users') ) {
   
// if thisuser has friends, show friends
   
$output = "<h4>My Buddy List:</h4><br />".'';
   
$output .= "<table cellspace=2 cellpadding=2><tr>";
   
$numcolsprinted = 0;
   
$i = 0;
   
$cnt = variable_get('buddylist_prof_buddies', 15);
    if (
$buddies = buddylist_get_buddies($userid)) {
      foreach(
array_keys($buddies) as $buddy) {
             
$account = user_load(array('uid' => $buddy));
            if (
$numcolsprinted == $numcols) {
           
$output .="</tr><tr>";//if $numcols = 4 print </tr> and <tr>
           
$numcolsprinted = 0;
            }       
           
$output .="<td>".theme('user_picture', $account).$account->name."</td>";
           
$numcolsprinted++;
           
$listbuddies[] = $account;
           
$i++;
              if (
$i > $cnt) {
                  break;
              }
      }
     
$output .= "</tr></table>";
     print
$output;
    }
   }
?>

PK Thanks a lot once again.

Chamara

Sending quote today

bpocanada - December 21, 2006 - 19:21

David,

You should have got my quote today for this. Sorry about the delay in responding.

--
Roshan Shah
CEO & Chief Solutions Architect
BPO Canada Global Services Corporation, Canada
T : 604-630-4292
--
"Building Drupal Center of Excellence in Ahmedabad, India"
http://www.bpocanada.com : Skype : 'bpocanada' Yahoo IM : 'bpocanada'

Building on Bio module?

kreynen - December 25, 2006 - 18:01

We've been able to get some of the functionality/control you are looking for by hacking the Bio module.

http://journalism.unr.edu/grad/kingdon

I have been working on updating Bio to work with Drupal 5 and including some of these 'hacks', if anyone is interested helping with that project.

___

Kevin Reynen
Integrated Media Coordinator
Reynolds School of Journalism and
Advanced Media Research
University of Nevada, Reno

Tracking

kirkcaraway - April 1, 2007 - 16:13

Very interesting stuff. Is anyone still working on it? thanks.

Profile Extended

wundo - December 29, 2006 - 13:50

Hey folks,
I forked the Drupal core profile module trying to make an more flexible module, it's just in the begining, but it's already stable, and maybe it helps you with the things you want to do in it.

Here is the URL:
http://drupal.org/project/profile-ng

It implements an hook that allows external modules to implement custom profile types. ;)

[]s
Fabiano

is this user profile module coming soon?

gurukripa - July 29, 2007 - 13:22

any progress on this...
has anyone got something nice for 5.1 or 5.2 Drupal..wld be nice to see this..

or if someone has some advice on good code for template.php override with user page code...

thanks

 
 

Drupal is a registered trademark of Dries Buytaert.