• MODX.com

    2,734 downloads

UserUrls

UserUrls is an extra by yoleg, first released on 2011-06-09.

Package Description

Friendly URLs for your website users. Use with NetworkIt, Peoples, Quip, Profile, and other snippets to build a social networking website or just for user profiles. 

Docs: https://github.com/yoleg/UserUrls/wiki 

Bugs: https://github.com/yoleg/UserUrls/issues 

Questions: http://modxcms.com/forums/index.php?topic=58068 

Usage/Installation Instructions

1. (Required) Set the "uu.start" system setting to the resource id used for the user home pages (without a sub-action). So when someone visits yoursite.com/johnsmith/ (where johnsmith is an active user's username), it will show them the content of the resource you set here.

2. (Optional) Set additional sub-pages ("action") by setting the "uu.action_map" in the format id:action,id2:action2. 

  • Example: "21:messages,131:history". 
  • - So, when someone visits yoursite.com/johnsmith/history, it will show them resource #131 with userid set to (johnsmith's userid) and action set to "history"

3. On the landing pages specified above, call the following snippets uncached as needed:

  • [[!UserUrls]] (helper snippet). See snippet code for available options.
  • [[!uuUrl]] - Generates a URL to a UserUrl page (by default to the current page). To another user's page: [[!uuUrl? &user=`21` &action=`messages`]]. Use as output filter: [[!+userid:uuUrl=`action`]].
  • [[!uuId]] - gets the UserUrl userid
  • [[!uuAction]] - gets the UserUrl action

Details

Developer(s)
yoleg
Released
2011-06-09
First seen
2011-06-09
License
GPLv2
Supported databases
Minimum MODX Requirement
2.0

UserUrls Releases

Vendor Signature Released on
MODX.com 0.1.3-beta 2011-06-09 (14 years ago)