From b16a40b13ecfa7e64a849c126abe2b45604418c4 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 10 Oct 2012 21:13:37 -0700 Subject: [PATCH] profile in a window for those who think all profiles and all pages on the internet should look exactly like theirs --- mod/abook.php | 54 ++++++++++++++++++++++++++++++++++++++++++++ view/css/default.css | 1 + 2 files changed, 55 insertions(+) diff --git a/mod/abook.php b/mod/abook.php index ee402d394..7aa4e9e05 100644 --- a/mod/abook.php +++ b/mod/abook.php @@ -153,6 +153,60 @@ function abook_content(&$a) { if(argc() == 3) { + + $cmd = argv(1); + if($cmd === 'profile') { + $xchan_hash = argv(2); + + if($xchan_hash) { + $r = q("select * from xchan where xchan_hash = '%s' limit 1", + dbesc($xchan_hash) + ); + if($r && count($r)) { +$o .= <<< EOT + + + + + +EOT; + + + // $o .= '
'; + return $o; + } + } + } + $contact_id = intval(argv(1)); if(! $contact_id) return; diff --git a/view/css/default.css b/view/css/default.css index 7846a09ac..80ec47722 100644 --- a/view/css/default.css +++ b/view/css/default.css @@ -20,4 +20,5 @@ section { top: 64px; left: 250px; display: block; + right: 15px; }