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:
Janus B. Kristensen 2005-08-30 09:41:47 +00:00
parent 7fa39a4d13
commit 039eb9a0dc
3 changed files with 23 additions and 4 deletions

View File

@ -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

View File

@ -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(

View File

@ -1,6 +1,8 @@
<?php
require_once("../inc/forum.inc");
require_once("../inc/profile.inc");
require_once("../inc/text_transform.inc");
db_init();