Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

URL profile #11

Open
inrussiawithhate opened this issue Apr 3, 2015 · 3 comments
Open

URL profile #11

inrussiawithhate opened this issue Apr 3, 2015 · 3 comments

Comments

@inrussiawithhate
Copy link

Hello There! How can I change the URL of the profiles are named? That is not so: profile/1 as: profile/username
Thanks!

@brunnopleffken
Copy link
Owner

Hello @inrussiawithhate
Well, actually there's no way to change it without modifying the way the controller... We can discuss which way is better: profile/1 or profile/username... Although profile/username is more readable and user friendly, we must sanitize special characters, such as $, #, @, etc. (or fully restrict them during registration, allowing only alphanumerics)...

@Thomas89
Copy link

Hello there!
at first, @brunnopleffken - I must just say that I fucking love what you do men! keep it up, and do not lose your insperation on this project!

But, what I wanted to writh here was something completely different ..

@inrussiawithhate - I'm almost completely with my code that changes users' URLs so they look like this:

yoursite.com/username
yoursite.com/username/Forum
yoursite.com/username/Media
etc...
Everything else works exactly the same way as it does when you download it from GitHub, the only difference is that the page has much more practical and simpler Profile URLs ..

My code is really small and fast, and checks the URL in the following order:
1: If the URL in use to any page ... if not.
2: If any member exists with the username that is not banned from the website ... and if it exists, you get a message saying that the user is removed ... but if it does not find anything, and if no member at all has this username ... then we come to the last stage,
3: if no page on the site has the specified URL, and no user either - you get 404 error page ...

I can upload it when I've found the time to fix up the final code so everything will be perfect if you are still looking for such a solution with the URL to the users?

@brunnopleffken
Copy link
Owner

Hello @Thomas89
Seems really nice the mods you're working in!
It will make URLs for profiles a lot easier.

Waiting for it to merge!

And BTW... Thanks for the good words! Currently the project is moving a little more slower because of wage-earning works that occupied my mind, but I still have a lot of ideas to implement on it like articles (#58), more closer to ideal responsive mode and extensions/plugins support (#90) and polish some sharp edges on the framework.

@xQuByte xQuByte mentioned this issue Apr 12, 2017
8 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants