Home « Server software «
Documentation: users/view.php
users/view.php - View one user profile
This script displays one user profile. Depending on who the surfer is, more or less information is provided.- surfer is the user: view any detail, may edit the page
- surfer is associate: view any detail, may edit and delete the page
- else: view the user profile
The script also lists sections where this user may act as a managing editor, if any.
Addresses are showed to the surfer only if the surfer has been duly authenticated as a member, or if this has been explicitly required (parameter
users_with_email_display set in control/configure.php).The list of most recent pages from this user is displayed in the main panel. Only the author and associates can see articles that have not been published yet.
Articles appear in the Watch list in following cases:
- the user is the initial poster of the page
- the user has edited the page
- the user has added a comment, or an image, or a file
- the surfer has explicitly asked for it
The extra panel has following components:
- An extra box with shortcuts to contribute to the server, including bookmarklets, if this is the surfer profile
- A link to the related rss feed, as an extra box
- The list of most popular articles, if any, as an extra box
- The list of most popular files, if any, as an extra box
- The nearest locations, if any, into an extra box
- Means to reference this page, into a sidebar box
- Top popular referrals, if any
- Browser time shift information, if this is the surfer profile
Several HTTP headers, or <meta> attributes of the displayed page, are set dynamically here to help advanced web usage. This includes:
- a link to a RSS feed for this user profile (e.g., '<link rel="alternate" href="http://127.0.0.1/yacs/users/feed.php/4038" title="RSS" type="application/rss+xml" />')
- a link to a RDF description of this page (e.g., '<link rel="meta" href="http://127.0.0.1/yacs/users/describe.php/4310" title="rdf" type="application/rdf+xml" />')
Restrictions apply on this page:
- associates are allowed to move forward
- this is the personal record of the authenticated surfer
- access is restricted ('active' field == 'R'), but the surfer is an authenticated member
- public access is allowed ('active' field == 'Y')
- permission denied is the default
If a secret handle has been provided, and if the surfer has not been authenticated, he is automatically logged in as the target user.
Accept following invocations:
- view.php (show my profile if I am logged)
- view.php/12 (view the first page of the user profile)
- view.php?id=12 (view the first page of the user profile)
- view.php/12/actions/2 (view the page 2 of the list of actions given to this user)
- view.php?id=12&actions=2 (view the page 2 of the list of actions given to this user)
- view.php/12/articles/2 (view the page 2 of the list of articles contributed by this user)
- view.php?id=12&articles=2 (view the page 2 of the list of articles contributed by this user)
- view.php/12/files/2 (view the page 2 of the list of files sent by this user)
- view.php?id=12&files=2 (view the page 2 of the list of files sent by this user)
- view.php/12/links/1 (view the page 1 of the list of links sent by this user)
- view.php?id=12&links=1 (view the page 1 of the list of links sent by this user)
- view.php/12/bookmarks/2 (view the page 2 of the list of pages bookmarked by this user)
- view.php?id=12&bookmarks=2 (view the page 2 of the list of pages bookmarked by this user)
This script is a reference file of this system.
Voir aussi:
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com
Testeurs:
- Moi-meme
- Guillaume Perez
Reste à faire:
- add 10 preferred blogs/links
- add birthday