Closed (fixed)
Project:
Front Page
Version:
6.x-1.2
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
28 Dec 2010 at 04:15 UTC
Updated:
10 Mar 2011 at 09:51 UTC
unable to set homepage to user/[account:uid] OR /user/%user.
i am trying to set the home page to go to the users profile. Any suggestions?
On a profile view, The URL appears as http://sitename.com/users/username
thanks,
chris
Comments
Comment #1
dublin drupaller commentedquick fix..use a php snippet in your front page home settings that uses drupal_goto to redirect to the users home page.
e.g. (this is untested..just a general idea)
hope that makes sense..that syntax probably isn't right...am a bit rushed at the moment, but, if you know a little drupal php, it should be easy enough to do. search api.drupal.org for the drupal_goto syntax.
dub
Comment #2
glitz commenteddont know to much php but i will give it a shot.
THANKS!
Comment #3
timhilliard commentedHi glitz,
the easiest way to achieve this is to set the path to "user". This will show the log in page for anon users and the currently logged in users profile page for authenticated users. Therefore if you set "user" to any role other than anon it will show the logged in users profile page.
I am however going to leave this thread open as I like the idea of variable substitution and may well include that in the 2.x version of front page.
Cheers,
Tim
Comment #4
glitz commentedgreat, thanks!! ill try this out and reply back.
-glitz
Comment #5
glitz commentedworks perfect. thank you
Comment #6
timhilliard commentedGlad to hear it!