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 +