UserUrls

userurls

  • By yoleg
  • Latest release June 9, 2011 (15 years ago)

About

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 

Installation & usage

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

At a glance

MODX 3 compatibility unknown. Based on our testing and community reports where available.

  • Developer yoleg
  • Latest release June 9, 2011 (15 years ago)
  • First seen in SiteDash June 9, 2011 (15 years ago)
  • License GPLv2
  • MODX support 2.0 – 100.0

Releases 1 indexed release

Changelog
MODX.com

0.1.3-beta

June 9, 2011

15 years ago

<p>0.1.3 - Minor fixes to transport package.</p><p>0.1.2 - Initial content</p>