diff --git a/mod/profile.php b/mod/profile.php index 94e86e151d..c0321e620e 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -98,6 +98,11 @@ function profile_content(&$a) { require_once("include/bbcode.php"); require_once('include/security.php'); + $tab = 'posts'; + + if(x($_GET,'tab')) + $tab = notags(trim($_GET['tab'])); + // $tpl = file_get_contents('view/profile_tabs.tpl'); @@ -111,7 +116,12 @@ function profile_content(&$a) { $contact_id = $r[0]['id']; } + if($tab == 'profile') { + require_once('view/profile_advanced.php'); + + return $o; + } if(can_write_wall($a,$a->profile['profile_uid'])) { $tpl = file_get_contents('view/jot-header.tpl'); diff --git a/view/profile_advanced.php b/view/profile_advanced.php new file mode 100644 index 0000000000..b36e335828 --- /dev/null +++ b/view/profile_advanced.php @@ -0,0 +1,216 @@ +Profile + + +EOT; + +if($a->profile['name']) { +$o .= <<< EOT +
+
Full Name:
+
{$a->profile['name']}
+
+
+EOT; +} + +if($a->profile['gender']) { +$o .= <<< EOT +
+
Gender:
+
{$a->profile['gender']}
+
+
+EOT; +} + +if($a->profile['dob']) { +$o .= <<< EOT +
+
Birthday:
+EOT; +$o .= '
' + . ((intval($a->profile['dob'])) + ? datetime_convert('UTC',date_default_timezone_get(),$a->profile['dob'],'j F, Y') + : datetime_convert('UTC',date_default_timezone_get(),substr($a->profile['dob'],6),'j F')) + . "
\r\n
"; + +$o .= '
'; + +} + +if($age = age($a->profile['dob'],$a->profile['timezone'],'')) { +$o .= <<< EOT +
+
Age:
+
$age
+
+
+EOT; +} + +if($a->profile['marital']) { +$o .= <<< EOT +
+
Status:
+
{$a->profile['marital']}
+
+
+EOT; +} + +if($a->profile['sexual']) { +$o .= <<< EOT +
+
Sexual Preference:
+
{$a->profile['sexual']}
+
+
+EOT; +} + +if($a->profile['homepage']) { +$o .= <<< EOT +
+
Homepage:
+
{$a->profile['homepage']}
+
+
+EOT; +} + +if($a->profile['politic']) { +$o .= <<< EOT +
+
Political Leaning:
+
{$a->profile['politic']}
+
+
+EOT; +} + +if($a->profile['religion']) { +$o .= <<< EOT +
+
Religion:
+
{$a->profile['religion']}
+
+
+EOT; +} + +if($txt = bbcode($a->profile['about'])) { +$o .= <<< EOT +
+
About:
+
+
$txt
+
+
+EOT; +} + +if($txt = bbcode($a->profile['interest'])) { +$o .= <<< EOT +
+
Interests/Hobbies:
+
+
$txt
+
+
+EOT; +} + +if($txt = bbcode($a->profile['contact'])) { +$o .= <<< EOT +
+
Contact:
+
+
$txt
+
+
+EOT; +} + +if($txt = bbcode($a->profile['music'])) { +$o .= <<< EOT +
+
Music:
+
+
$txt
+
+
+EOT; +} + +if($txt = bbcode($a->profile['book'])) { +$o .= <<< EOT +
+
Books:
+
+
$txt
+
+
+EOT; +} + +if($txt = bbcode($a->profile['tv'])) { +$o .= <<< EOT +
+
Television:
+
+
$txt
+
+
+EOT; +} + +if($txt = bbcode($a->profile['film'])) { +$o .= <<< EOT +
+
Film:
+
+
$txt
+
+
+EOT; +} + +if($txt = bbcode($a->profile['romance'])) { +$o .= <<< EOT +
+
Romance:
+
+
$txt
+
+
+EOT; +} + +if($txt = bbcode($a->profile['work'])) { +$o .= <<< EOT +
+
work:
+
+
$txt
+
+
+EOT; +} + +if($txt = bbcode($a->profile['education'])) { +$o .= <<< EOT +
+
Education:
+
+
$txt
+
+
+EOT; +} + diff --git a/view/style.css b/view/style.css index 35f66ccff8..7b1a1beb5b 100644 --- a/view/style.css +++ b/view/style.css @@ -548,3 +548,106 @@ input#dfrn-url { background: #FFCCCC; padding: 4px; } + + +#advanced-profile-name-wrapper, +#advanced-profile-gender-wrapper, +#advanced-profile-dob-wrapper, +#advanced-profile-age-wrapper, +#advanced-profile-marital-wrapper, +#advanced-profile-sexual-wrapper, +#advanced-profile-homepage-wrapper, +#advanced-profile-politic-wrapper, +#advanced-profile-religion-wrapper, +#advanced-profile-about-wrapper, +#advanced-profile-interest-wrapper, +#advanced-profile-contact-wrapper, +#advanced-profile-music-wrapper, +#advanced-profile-book-wrapper, +#advanced-profile-tv-wrapper, +#advanced-profile-film-wrapper, +#advanced-profile-romance-wrapper, +#advanced-profile-work-wrapper, +#advanced-profile-education-wrapper { + margin-top: 20px; +} + +#advanced-profile-name-text, +#advanced-profile-gender-text, +#advanced-profile-dob-text, +#advanced-profile-age-text, +#advanced-profile-marital-text, +#advanced-profile-sexual-text, +#advanced-profile-homepage-text, +#advanced-profile-politic-text, +#advanced-profile-religion-text, +#advanced-profile-about-text, +#advanced-profile-interest-text, +#advanced-profile-contact-text, +#advanced-profile-music-text, +#advanced-profile-book-text, +#advanced-profile-tv-text, +#advanced-profile-film-text, +#advanced-profile-romance-text, +#advanced-profile-work-text, +#advanced-profile-education-text { + width: 250px; + float: left; +} + +#advanced-profile-name-end, +#advanced-profile-gender-end, +#advanced-profile-dob-end, +#advanced-profile-age-end, +#advanced-profile-marital-end, +#advanced-profile-sexual-end, +#advanced-profile-homepage-end, +#advanced-profile-politic-end, +#advanced-profile-religion-end { + clear: both; +} + +#advanced-profile-about-end, +#advanced-profile-interest-end, +#advanced-profile-contact-end, +#advanced-profile-music-end, +#advanced-profile-book-end, +#advanced-profile-tv-end, +#advanced-profile-film-end, +#advanced-profile-romance-end, +#advanced-profile-work-end, +#advanced-profile-education-end { + + +} + +#advanced-profile-name, +#advanced-profile-gender, +#advanced-profile-dob, +#advanced-profile-age, +#advanced-profile-marital, +#advanced-profile-sexual, +#advanced-profile-homepage, +#advanced-profile-politic, +#advanced-profile-religion { + float: left; + +} + + +#advanced-profile-about, +#advanced-profile-interest, +#advanced-profile-contact, +#advanced-profile-music, +#advanced-profile-book, +#advanced-profile-tv, +#advanced-profile-film, +#advanced-profile-romance, +#advanced-profile-work, +#advanced-profile-education { + margin-top: 10px; + margin-left: 50px; + margin-right: 20px; + padding: 10px; + border: 1px solid #CCCCCC; +} \ No newline at end of file diff --git a/wip/todo b/wip/todo index 69a981d7fb..cf99ca750a 100644 --- a/wip/todo +++ b/wip/todo @@ -16,7 +16,9 @@ contact editor reputation -profile advanced details display +profile "you name it" field + +profile display restrict/check access publish to external directory