mirror of https://github.com/BOINC/boinc.git
When vieweing profiles the output is now based on the logged in user's forum output preferences.
svn path=/trunk/boinc/; revision=7601
This commit is contained in:
parent
7fa39a4d13
commit
039eb9a0dc
|
@ -11159,3 +11159,15 @@ David 29 Aug 2005
|
|||
|
||||
html/inc/
|
||||
email.inc
|
||||
|
||||
Janus 30 Aug 2005
|
||||
- When viewing profiles the output text is now based on the logged in
|
||||
user's forum output preferences (ie. links in new window, images as
|
||||
links etc).
|
||||
|
||||
html/
|
||||
inc/
|
||||
profile.inc
|
||||
user/
|
||||
view_profile.inc
|
||||
|
||||
|
|
|
@ -433,8 +433,7 @@ function show_profile($userid, $verify_mode = FALSE) {
|
|||
}
|
||||
$profile = get_profile($userid);
|
||||
if (!$profile) {
|
||||
echo "No user profile exists for that user ID.";
|
||||
exit();
|
||||
profile_error_page("No user profile exists for that user ID.");
|
||||
}
|
||||
if (!$verify_mode) {
|
||||
$logged_in_user = get_logged_in_user(false);
|
||||
|
@ -467,10 +466,16 @@ function show_profile($userid, $verify_mode = FALSE) {
|
|||
|
||||
show_user_summary_public($user);
|
||||
|
||||
//Setup text output options based on logged in user forum settings
|
||||
$logged_in_user = get_logged_in_user(true);
|
||||
$logged_in_user = getForumPreferences($logged_in_user);
|
||||
$options = get_transform_settings_from_user($logged_in_user);
|
||||
|
||||
row1(show_profile_heading1());
|
||||
row1($profile->response1, 2, "foobar");
|
||||
row1(output_transform($profile->response1,$options), 2, "foobar");
|
||||
row1(show_profile_heading2());
|
||||
row1($profile->response2, 2, "foobar");
|
||||
row1(output_transform($profile->response2,$options), 2, "foobar");
|
||||
|
||||
if (!$can_edit and !$verify_mode) {
|
||||
row1("Your feedback on this profile");
|
||||
row2(
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
<?php
|
||||
|
||||
require_once("../inc/forum.inc");
|
||||
require_once("../inc/profile.inc");
|
||||
require_once("../inc/text_transform.inc");
|
||||
|
||||
db_init();
|
||||
|
||||
|
|
Loading…
Reference in New Issue