MySite should optionally override /user page

mikesmullin - October 25, 2007 - 03:00
Project:MySite
Version:5.x-2.14
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Description

I have mysite and nodeprofile installed; which means 3 locations for each user (e.g. /user/#, /node/# for the nodeprofile, and /mysite/#/view) as well as /user and /mysite if you want to count those. Pretty confusing, and not good for SEO. If you're like me, you want everything easily displayed and managed on one page.

This patch provides a new option under MySite Behavior called "MySite overrides user page". When checked, it will redirect visits to /user/# (and therefore /user) to the /mysite/#/view page. With the user's nodeprofile displayed as a droplet, this makes for a very simple MySpace/Netvibes/Facebook feel.

(see attached)

AttachmentSize
mysite.module_4.patch1.29 KB

#1

agentrickard - October 25, 2007 - 14:22

Interesting. I'll take a look later.

BTW: Current release is 5.x.2.14. This patch would need to run against the 5--2 branch, as HEAD is unstable.

#2

agentrickard - October 25, 2007 - 14:30

Actually, 5.x.2 is bugfix only, so this is a candidate for 5.x.3.

New features should patch against HEAD -- problem is, HEAD is unstable right now.

#3

agentrickard - October 25, 2007 - 16:41

Question:

How does a user edit their account under this setup?

#4

mikesmullin - October 26, 2007 - 02:23

Good question. Here's what I am doing:

  • Add a new menu item to the Navigation menu like l('Edit Account', '/user/'. $user->uid .'/edit')
  • Add the Navigation menu block to MySite via a Droplet.

#5

mikesmullin - October 26, 2007 - 03:09
Version:5.x-2.9» 5.x-2.14

This patch is actually for 5.x-2.14. For some reason I thought the most recent version would appear at the top of the version dropdown...

#6

WISEOZ - December 10, 2007 - 00:08

I hope it's not too late to jump into this conversation. I picked up on a few great ideas to get my MySite setup working with a nodeprofile setup. I've got a few clarifying questions that I'm hoping someone won't mind taking the time answer.

How do you get the nodeprofile to display as a droplet? Is it a custom droplet or are you somehow converting a block or a view into a droplet?

What specific menu links are you displaying in the navigation menu block that you mentioned? When a user visits another user's MySite are they able to see those menu items? How do you control the display of the edit profile/account links so that a visitor doesn't see another user's edit menu links?

#7

B747 - September 2, 2008 - 12:36

This patch fails for 1.3 - anybody getting it to work?

#8

agentrickard - October 1, 2008 - 13:49
Status:needs review» needs work

#9

Summit - October 5, 2008 - 13:00

Subscribing, greetings, Martijn

 
 

Drupal is a registered trademark of Dries Buytaert.