Sorry. I realize this question has probably been asked a million times over but I can't find an answer to this specific issue as of recently --- Cannot get "localhost/uid" to work

I would like my users to see their profile they created (as a view) upon going to mysite.com/uid

example: mysite.com/66

(SALLY IS user #66, or i can use the argument User: Name)

In Views i create my fields, filters, etc

Argument: User:UID

page path: uid%

I click save, preview and it works... I click display page and enter 66 and I can see sally's profile.

when i enter localsite/66 into the address bar it doesn't work.. "PAGE NOT FOUND" and I know it doesn't have anything to do with permissions because I'm actually using the Admin account "1"

I can of course change to path to myprofile/sally using Argument: Username but I'd like someone to just type in mysite.com/username instead of mysite.com/myprofile/username

Question: Is my page path wrong? why can i preview it in Views but not see it on my site? Or is this a back-end job? If so, can you reference a thread that I can view...

Thank you.

Edited by WorldFallz - moved to appropriate forum.

Comments

WorldFallz’s picture

I'm not exactly sure what you're asking, but the proper path for a user profile is http://example.com/user/uid not http://example.com/uid and afaik, views doesn't allow for creating path with an argument at the top level url.

calefilm’s picture

Like how Myspace does it: I'm Sally and want to view my profile at mysite.com/sally

example: myspace.com/username

I see, so if I cannot create a path with an argument at the top level how do I accomplish this task.. or is it impossible with drupal? (and not to forget, I can actually preview this view!! I don't know why... but I'm not going to argue that it doesn't work in views...)

Just trying to find out how i'd go about getting a user to mysite.com/username.

Thanks for your help.

WorldFallz’s picture

From merlin himself: http://drupal.org/node/464726#comment-1597888 (also suggests a possible workaround).

EDIT:
Another option might be to handle it with some apache rewrite fu.

calefilm’s picture

at this time, I'm not familiar enough with coding languages.. good help though!

SamSound’s picture

cant you just use the normal user profile? like drupal/user/uid. You can override the profile page and put your view in the page. Then use pathauto and just put [user-raw], as the user account alias.

calefilm’s picture

For the last couple hours I've been trying to grapple with your suggestion. I like it--just don't know exactly how to apply it----cuz ima leRnIN stillll

Update: I realized that when my users create My Account they are automatically already at: mysite.com/username -- instead, I would like them to be at mysite.com/myaccount/username . . . and when they click on their Company Profile Nodes... they go to: mysite.com/username

What did you mean i can override the profile page and put my view in the page? I tried doing that with a View that I created called Company Profile with an Argument (User: Name) and I add a path: (user/%)

Then I can see my view when i go to: site.com/user/company

But, of course MY ACCOUNT disappears.

Then I go to URL Aliases, click user path settings and find "Pattern for user account page paths:" change from: user/[user-raw] to: [user-raw]

Now when i go to site.com/username I don't see the Company Profile Node view (Which i want to see!) but instead I see the old MY ACCOUNT page without any content (just the header: "View", "Edit", "Track")

So I'm not getting it....

Any changes I'm making to the autopath settings under automated alias settings don't seem to be working.... If instead when someone goes to "MY ACCOUNT", I would prefer their "MY ACCOUNT" url to be site.com/myaccount/username

I go to URL Aliases, click user path settings and find "Pattern for user account page paths:" change from: user/[user-raw] to: user/myaccount/[user-raw]

And nothing happens. I click "MY ACCOUNT" and the url is still: site.com/username

So I'm doing a few things wrong--probably in the wrong place, huh..

Thanks for any responses..
Cale