From 3a166add52dcc557c9091805b78d3585f07dc394 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 30 Jun 2012 02:01:20 -0700 Subject: [PATCH] choose to show 'page' on profile --- page.tgz | Bin 2210 -> 2360 bytes page/page.css | 4 ++-- page/page.php | 11 +++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/page.tgz b/page.tgz index 4c9ef1cbb165ce1f2031350386ab9dc7922b8b37..0db604c2ffae4f8434d9fd0d375c144e6eb63ef7 100644 GIT binary patch literal 2360 zcmV-83CH#yiwFQ)!0t}~1MOLDbK5o&_E+gwY@F@YBOzm`H<9|B-8ug zWMqhhB#ii?BS6Q#YySJ~0w6_7a_mgww0FhYV~fCIfqi>+K`q&g_jVqZ`bZ}yM>_{c zPfiXFp6v9Gjt`EX?CWt$JNx@5Cx=H*knv!rj}QH$9XNX6b7{(@Vi~|r%z~N7u0(PR z-*R?zy#Ms+)30%+uSiSsKmF+jQa;cgclrMSeZKNPj_)5H9v<&N|AEd^qrbTSo6Y9m z$o+egD6+RM;$Pu8B4-6u8%FVbSffl2H`)=#xzQqI)#W&)mgLgL4<043J3lE z@){pwmd!-6H%XOBV;nxB(T~NhF}vQQ53;`D+EyEz;QHntZMpvsTIK(8zI>oPKAr#j z$Ni&|RsJ8E{KsjR|6hRy-=W`|y~mH6@ECq(F+YW0FdFFTM=pa*ER{%;Q+P8^KS+p# zRFF&o2FSFOGpz)xcZQ03y>n@6PA(4UwJ0AxczRQo}cAv zo@S@;N-Q|MDm(y#7@xl{J<`QJM#Mg05_d$=dMj8)IYJ9eZt9|fIYV6fHJ#z#0SQ`) zj47ThS*Ez?hMZ*KZ?D;$=1D;MX@O&rU@SyYt4(;5@fj-1v++Dl7cJi^Gmg^``GoR2 z;IlAHlU^-@XjseI;BTL8$Ta647sz{;$aVI+C61S=yz``6*KCt*uz1YEE0zR2yi@Kv zKguNFuG<_#r)u>)c?i32Nc{qqzf0!tv;C&@FJb*guLl{A(<_ci6y3lcq!XD&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page/page.css @@ -1,13 +1,13 @@ -#page-settings-label, #page-random-label { +#page-settings-label, #page-random-label, #page-profile-label { float: left; width: 200px; margin-bottom: 25px; } -#page-max-pages, #page-random { +#page-max-pages, #page-random, #page-profile { float: left; } diff --git a/page/page.php b/page/page.php index c5cac764..6d0044e0 100755 --- a/page/page.php +++ b/page/page.php @@ -121,6 +121,10 @@ function page_network_mod_init($a,$b) { function page_profile_advanced($a,&$b) { + $profile = intval(get_pconfig($a->profile['profile_uid'],'page','show_on_profile')); + if(! $profile) + return; + $page = '
'.t("Forums:").'
'; @@ -154,6 +158,7 @@ function page_plugin_settings_post($a,$post) { set_pconfig(local_user(),'page','max_pages',intval($_POST['page_max_pages'])); set_pconfig(local_user(),'page','randomise',intval($_POST['page_random'])); + set_pconfig(local_user(),'page','show_on_profile',intval($_POST['page_profile'])); info( t('Page settings updated.') . EOL); } @@ -177,6 +182,9 @@ function page_plugin_settings(&$a,&$s) { $randomise = intval(get_pconfig(local_user(),'page','randomise')); $randomise_checked = (($randomise) ? ' checked="checked" ' : ''); + $profile = intval(get_pconfig(local_user(),'page','show_on_profile')); + $profile_checked = (($profile) ? ' checked="checked" ' : ''); + /* Add some HTML to the existing form */ @@ -189,6 +197,9 @@ function page_plugin_settings(&$a,&$s) { $s .= ''; $s .= ''; $s .= '
'; + $s .= ''; + $s .= ''; + $s .= '
'; $s .= '
';