From b863aa697ede1b8de522fe125f9bfd9e7fb1b782 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 19 Jun 2012 02:30:44 -0700 Subject: [PATCH 01/11] page updates --- page/page.php | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/page/page.php b/page/page.php index 129af4124..4ae471bac 100755 --- a/page/page.php +++ b/page/page.php @@ -10,10 +10,18 @@ */ function page_install() { - register_hook('page_end', 'addon/page/page.php', 'page_page_end'); + register_hook('network_mod_init', 'addon/page/page.php', 'page_network_mod_init'); + register_hook('plugin_settings', 'addon/page/page.php', 'page_plugin_settings'); + register_hook('plugin_settings_post', 'addon/page/page.php', 'page_plugin_settings_post'); + } function page_uninstall() { + unregister_hook('network_mod_init', 'addon/page/page.php', 'page_network_mod_init'); + unregister_hook('plugin_settings', 'addon/page/page.php', 'page_plugin_settings'); + unregister_hook('plugin_settings_post', 'addon/page/page.php', 'page_plugin_settings_post'); + + // remove only - obsolete unregister_hook('page_end', 'addon/page/page.php', 'page_page_end'); } @@ -71,5 +79,75 @@ function page_page_end($a,&$b) { $a->page['aside'] = $page . $a->page['aside']; } +function page_network_mod_init($a,$b) { + + $page = '
+
+

'.t("Forums").'

+
"; + if (sizeof($contacts) > 0) + $a->page['aside'] = $page . $a->page['aside']; +} + +function page_plugin_settings_post($a,$post) { + if(! local_user() || (! x($_POST,'page-settings-submit'))) + return; + + set_pconfig(local_user(),'page','max_pages',intval($_POST['page_max_pages'])); + info( t('Page settings updated.') . EOL); +} + + +function page_plugin_settings(&$a,&$s) { + + if(! local_user()) + return; + + /* Add our stylesheet to the page so we can make our settings look nice */ + + $a->page['htmlhead'] .= '' . "\r\n"; + + /* Get the current state of our config variable */ + + $max_pages = get_pconfig(local_user(),'page','max_pages'); + if($max_pages === false) + $max_pages = 6; + + /* Add some HTML to the existing form */ + + $s .= '
'; + $s .= '

' . t('Page Settings') . '

'; + $s .= '
'; + $s .= ''; + $s .= ''; + $s .= '
'; + + /* provide a submit button */ + + $s .= '
'; + +} From eba055ab80326b7775b130eb568f64d3f43f303a Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 19 Jun 2012 02:34:32 -0700 Subject: [PATCH 02/11] page settings css --- page/page.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 page/page.css diff --git a/page/page.css b/page/page.css new file mode 100644 index 000000000..f145ee0f6 --- /dev/null +++ b/page/page.css @@ -0,0 +1,14 @@ + + + +#page-settings-label { + float: left; + width: 200px; + margin-bottom: 25px; +} + +#page-max-pages { + float: left; +} + + From f48b75bb659c074089ec411b5bb4468b3d72c458 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 19 Jun 2012 02:35:57 -0700 Subject: [PATCH 03/11] package update --- page.tgz | Bin 1185 -> 1900 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/page.tgz b/page.tgz index c94f01b214e1c3285c36513420649539f2517c4f..d3f9cac70e9654d6318ef7c3d11141f75c35c17b 100644 GIT binary patch literal 1900 zcmV-y2b1_8iwFSaN8nEY1MOICbK5o&_E+gwYLj#ckgLi58L_q>E6-l z$@$UI$zJdD?C9*|(DoN?@9^;ayw^K9K0U{NeCVC*!RZs*Wm~QdQviDj3+F=Jiu4n5 z+5GhE@WqQ4pTnll*fPSOzB-}SPqfBk_#d8~Y~X)fyHBb2W2r1* z_ig&4xAdS$^FQtLuC3at{Tu1^kHFKu_Os9V(F-A=3-EUdTHQvCu|?oIxm)Bu|A|f-CbtB$<-8Jc5j?nN$f& zLk`%Xz_${9i&Xx^mA2{*J3V^-CN~SIF5tDe;qbad00s#@e_bKc!PQ12K4ltLkZG}K z7U#%8FkRMFg$srR_LH3B_ka{-LNUYBj48uKC*q_FKiy_?mZu^4XBCb`in$QSL5o;R z@i{un)p#N0P2i{8+(~saPGp2~!uSW^vnY~jw^l*aZFOzQxB6Q;o&DpIc^^}`DgL;| zaVGVnmOeNKbrV(B&M<`F9B1T(U{|!-kOy|EA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4I zf2t+uQZJN*(kzvT7!|f_-*?Tjz-u_8W7B2hkRz!|PS`QE?lA)|UXV%7f=yl` z7}b4VlVfxxj;-OL^C3!LEs+!@vP-vu$V^!ar4iz)`We3wwo*J6v6Ar(>I&1n#f7h$ zb-^e9(aKMF`7)SLS4`lOFHkjp2kb_>R02tLT|=BJ#S8oa`$8d&P7+xbiZ9ptSZTT4 zz6X0@P(LVBXH#i58TqYktnNWwh5e=$(_t^=Zz7*PNVo$NJkJylg<&s3pVO(LlMYQh z_-wBJ?eYHWe=rUX4h{|u4h{|u4h{|u4h{|u4h{|u4h{|u4lDct3#u&T04M+e%qc>< From 4cdf19966d4fa9fa20a5883fa6c94bd8e6cbe3ec Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 19 Jun 2012 03:02:42 -0700 Subject: [PATCH 04/11] final cleanup for this round --- page.tgz | Bin 1900 -> 1897 bytes page/page.php | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/page.tgz b/page.tgz index d3f9cac70e9654d6318ef7c3d11141f75c35c17b..7fcbf750c9e8f84ec003a6a59ce90222d415925d 100644 GIT binary patch literal 1897 zcmV-v2bTCBiwFQcPT)@f1MOICbK5o&_E+gwY9kkp+x)BBKQ zB#4A0j7fq8K)>8I|Gm2aDT$I(w{z!Q?@kzvBm#@Y?moK@0OoAY!@Z|%U2JD(Cwqq{ z$7hF!$9vtA)5Fu_p6xH&Uaxm{*6kjjbnB>{G5mX{#})oZCui8-J32Z#-GlBE*;8x(=lD09 z&A$-*ZOx4l*<801HsuNYv)Py>l9_Wz_{{X1jaw0$#W@^yyZIeHrcBL6)}BgZWQyG< z)cdhgma@Ax{n1-`P^9^v_IcMUy0nJ%3Y}g;eM8T3mB@T_FI26raCdBGSP%MkGFE8dpTs zj$87iKn{ZGeO*3n{MyzjS7t${6K@@ejafaV)d2RzcKlb#2MF`dd1k{o{&xA5*z0{09J~#(;6IIvagD|g0sK}loMq66{4N-bb=f4)GMi_$Psl4Hsn#n!1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wQsM4X(2U}wgkk#gG>rYA$jeSCHZ1W3kE4Ci0jSPb`6Z0UJ zA*LQNMbJ913E&_2c!eDoC)ZZrL9(uASn!1nX>EbC{*IFVCn#wh@D@CK23sVxF0kXP zKPO*3bZobrMSm=4X#E$k&H?btFMwV5!T$KitLwLp5>_wBbUsb!va)eH(!ZZk4$AYd z)&I_&_*cUp9OI-j84!?kABS>v$g>D9vrz|8?ZD;Ls|W7~8%_t$?8#C)mfrHW?nf8z z(h(jVbLH^Y3(gI)vO9xYTO{0Z2w4gVrl^xF&5P;4o(jDD)BSo4y@g5Q1!r`$EI2B? z!D~~DNnNet0T4?eFJT>bL#@4%JPNRD^g%q(-MmBLB;OH4g4Du>9$r_8h^W(huimF# z;p5-PDfB4JmBP$NUoouoYJ=QyFv2ZUf=%PnmkJ?F!9TKp6x+wz^xE#Ru9h~B3IZ+h z()9A}>sMv;`90D(h8gG$OJS6D;auBBt3;imVMK!cl^E@)jvj1QU01hcu!!kFV} zXH@Z@1(aTop(}VdbNm6*+!*xlQ52nc6?J4^=c04RjjlViNmSk^G}hcj7_JLiE4S`- mmiFE2pxvAMUE8%?+qGTWwO!k_UE8()>h>#WXAdL*C;$LM9?X9L diff --git a/page/page.php b/page/page.php index 4ae471bac..1d2aec636 100755 --- a/page/page.php +++ b/page/page.php @@ -1,7 +1,7 @@ * based on pages plugin by From 9c4f69cf7fb4637d0dd1b308b105124a78d5a211 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 19 Jun 2012 03:27:51 -0700 Subject: [PATCH 05/11] randomise page results of desired --- page.tgz | Bin 1897 -> 2054 bytes page/page.css | 4 ++-- page/page.php | 21 ++++++++++++++++++--- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/page.tgz b/page.tgz index 7fcbf750c9e8f84ec003a6a59ce90222d415925d..43eb2b5616195fb85ed7713dc21f548ea544dae9 100644 GIT binary patch literal 2054 zcmV+h2>JIPiwFQCRNzkl1MOLDbK5o&_E+gwYRqu5*99mx)$j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j!^~g+m2P_Lrj5XiYzci+QbSxGukCenTVD3Gj`3brC1hG zBBE=|D_rg+PW-l<7rgh^X1+)A^v9tR-eVLA3e~l65`9k}qsXYYUwAca-!$K}qX?x8T_`*dnQQfgNA{Ir-|L zW4q-n`eQ*u>%V|?4uD^N0qnX9_QyY7UcGgcuzEp;m*12wD;uXH{ref^pgR9r{qNj~ ze>MEUF-|s<0Rc((ai~^@B9HMh8+Q=Z4qRNmdhmX*;dJoKo-DOv=`DZjeuQ|Jj`8SN zD2KmZaBh&5-5K24BH@-p#4<=RMV(}2UP1@q=LLgZm=ONxnQSLcag)T>1E~{*Eg|!t|oLT}9B^*yXqb2`Y zK=Jl^gRbD+%<%_I3uDl~M^SX*%cvv!Iv1TgZgkzDO``HXp|R#J!f;j6TD5hrv$XGC j2kqY6@7k{I+OF-|uI<{c?b@#WSGQjQ)@-PY04M+ePXM_z diff --git a/page/page.css b/page/page.css index f145ee0f6..b8d84fefc 100644 --- a/page/page.css +++ b/page/page.css @@ -1,13 +1,13 @@ -#page-settings-label { +#page-settings-label, #page-random-label { float: left; width: 200px; margin-bottom: 25px; } -#page-max-pages { +#page-max-pages, #page-random { float: left; } diff --git a/page/page.php b/page/page.php index 1d2aec636..80d902def 100755 --- a/page/page.php +++ b/page/page.php @@ -26,11 +26,13 @@ function page_uninstall() { } -function page_getpage($uid) { +function page_getpage($uid,$randomise = false) { $pagelist = array(); + $random = (($randomise) ? ' order by rand ' : ' order by name asc '); + $contacts = q("SELECT `id`, `url`, `name`, `micro`FROM `contact` WHERE `network`= 'dfrn' AND `forum` = 1 AND `uid` = %d order by name asc ", @@ -89,7 +91,9 @@ function page_network_mod_init($a,$b) { $show_total = intval(get_pconfig(local_user(),'page','max_pages')); if($show_total === false) $show_total = 6; - $contacts = page_getpage($a->user['uid']); + $randomise = intval(get_pconfig(local_user(),'page','randomise')); + + $contacts = page_getpage($a->user['uid'],$randomise); $total_shown = 0; $more = false; @@ -116,6 +120,8 @@ function page_plugin_settings_post($a,$post) { return; set_pconfig(local_user(),'page','max_pages',intval($_POST['page_max_pages'])); + set_pconfig(local_user(),'page','randomise',intval($_POST['page_random'])); + info( t('Page settings updated.') . EOL); } @@ -134,6 +140,10 @@ function page_plugin_settings(&$a,&$s) { $max_pages = get_pconfig(local_user(),'page','max_pages'); if($max_pages === false) $max_pages = 6; + + $randomise = intval(get_pconfig(local_user(),'page','randomise')); + $randomise_checked = (($randomise) ? ' checked="checked" ' : ''); + /* Add some HTML to the existing form */ @@ -142,7 +152,12 @@ function page_plugin_settings(&$a,&$s) { $s .= '
'; $s .= ''; $s .= ''; - $s .= '
'; + $s .= '
'; + $s .= ''; + $s .= ''; + $s .= '
'; + + $s .= ''; /* provide a submit button */ From 4c2a40ece8731ab4f4a1232c356b83b67e0259d6 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 19 Jun 2012 03:33:40 -0700 Subject: [PATCH 06/11] ordering preference --- page.tgz | Bin 2054 -> 2055 bytes page/page.php | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/page.tgz b/page.tgz index 43eb2b5616195fb85ed7713dc21f548ea544dae9..0523c0fe20b51d89f1c6fdb78eecd0bf4dd7ae98 100644 GIT binary patch literal 2055 zcmV+i2>ACOiwFRJRp3tm1MOK`bK5o+_N(+OPPyKYN_BTEXRJ#%)4H37r0&F-?n9E1 zArg`>CJ8PG`m)>n_dN$7DN=Ikbi2-Grown65jZ$Fmk-|o=!C6!@8EG;AKS^v@xk!; z*~xJD?4W-<8jhX~On=@E27{B6e*buQJnA3x@u5FFfa6ED%d{-jOaUB3%wGw0E#gne zC9C7n;Q90CU&5v@*b>S=eRTaaeWW!W%KvaUD)K)V9by0A=m@`{|48=K+MhiC&1Um2 zl>Sc2wHEOz?SyQ>!#3Dn#o|Clwh#W@Y%D{`^eKdVsmIO6jR^Gm6o&nNa*K}M<*lmY?q;=gpT5&@2{~eV-PuuMOWSuxv$rk?~9X&hR z@Bc5+Cf{M+o4uz`oA4BVVi7-up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1Ab>p|b^%(lxI*0AZ;$OPL$m z3aGd=*s5cMgSRb<{&fTU~<>}k=y1^sOI3x$R67HuDV*PPKHdZ5-{bg7 zXw`$L&Xl~yeBwRc)dra5#$b{kgt8N_pof*!IqLj!qjj&=i;(vTjg6dR#4n1HRUXUg k71(!gCAa?`+O}=mwr$(CZQHhO`|sO-0B^=Z*#Ia203Fg6-~a#s diff --git a/page/page.php b/page/page.php index 80d902def..c79b6bea4 100755 --- a/page/page.php +++ b/page/page.php @@ -31,7 +31,7 @@ function page_getpage($uid,$randomise = false) { $pagelist = array(); - $random = (($randomise) ? ' order by rand ' : ' order by name asc '); + $random = (($randomise) ? ' order by rand() ' : ' order by name asc '); $contacts = q("SELECT `id`, `url`, `name`, `micro`FROM `contact` WHERE `network`= 'dfrn' AND `forum` = 1 AND `uid` = %d From 3e6ccd4c920beed1b45c1a7a25dc84adce682d03 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 19 Jun 2012 03:39:30 -0700 Subject: [PATCH 07/11] push order to sql --- page.tgz | Bin 2055 -> 2051 bytes page/page.php | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/page.tgz b/page.tgz index 0523c0fe20b51d89f1c6fdb78eecd0bf4dd7ae98..b942bad6d8b571f0c6a628f0cae9ffd1a7ea04d5 100644 GIT binary patch literal 2051 zcmV+e2>kaSiwFSTR^U$n1MOK`bKABO_N(+Owmdo^mFn);&e)RLOzWOJBy}gwv=2!} zhDb=lm?T&b^yQr9zjqfPDN=H3cUtFUrown65m+qt^5I*6PS}$7_a3(mupJ#8?2Qhd z9gRlM_67%sqr+!I)1SA!;qd5aFgV!XA06xs@L@38gM&x5%d{-jOabgg%wGz1CE`!W zCCh`u;q&LuKZi}9u_cs$`sn#-`bcZsm;ce|u*m=La3A}J`}_C>gGaKb*8bu7Z#J9% zqV#uDuC<7lX*XnZ9(KU?Di#MavVHKsW@8abrjH@y3w_dTT#G=jj$t$yBscgNF|`zN zcP_P-5q2L?@5f?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AZT3-$IeLY4*rM|(4vFjyMEj&Yb%Jw_o9gWFR) z5UPh`H2{-llbYYqoqJ&J7$}XG2#%)kTO`exg_x1}%E4Sx&Kld>rt3_443ip)nKP!) zRWtDIx6~z;UOg{U7}+?N$^!IS>o$m+XogOL1HH zq42K|SGe3uocMh{&wKAyX1+%XbznwO(Vk1PK-Rb|FphS~1cGX5gD=C7C3pb(gdsUj z0+A*myDRZgV7bxw2!=2y9<)-cjx@6v$(4PMje)hod{T&Mv!~);TrM{dZov%qGwDNM z7$S5T?JC;okn4k;v3tmB`$RybWjX6BC5Xl$Wo~Zpg|_9ThxSH-!C8ux7fK(YM@-?h z+6Dk_+r_)EA!a$?bM8%T4cUoaJu1DY@FKv2ZKf=m(lzHAYlgic7+WOVaPV0S5dz*y z7UqR?ors0c&8vk97S=in*PPM8H)p)~3U7=dZjo{o2Y@&aSq@pD=clPtP*Dz@8W|C* z^tP{$ILWni6CqKtse?ClqBZJt-mCYqll%C0atb~2Go^4Jp|2QLdaXn5*d)R=Q-UqR z!k04N2`HRkfqa-Sm&twu+9qzvliGURCb9>gHoeEcSE^IgsJ&4vNw}&jwr}Zoh4Zq52InK?t9Yld^B(lG-Om-~z8kbH Date: Tue, 19 Jun 2012 19:28:22 +0100 Subject: [PATCH 08/11] Infiniteimprobabilitydrive - kill iframe border. --- infiniteimprobabilitydrive.tgz | Bin 721 -> 724 bytes .../infiniteimprobabilitydrive.css | 7 +++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/infiniteimprobabilitydrive.tgz b/infiniteimprobabilitydrive.tgz index 6d10fb6916d54da79a6931cef3a263ed53d0fc68..8d9a2203fc1b0b29d951461b132ad266a6927e75 100644 GIT binary patch literal 724 zcmV;_0xSI=iwFRy#NbZ=1MQYwYuhjshI_4FaWJ7yLz~!X;y~kg6uLogHW=M@QA$wa zlUUT2jU;akrT=}$X_^K`opdc*$MisuZGFAxOOcQ>A%#Ja6)KG-2kW^c>O)-znX#?N^Q6zDKA}TWyiYxM-WfP|LLyw zRO@H#LH-DOy_)z3y^Z+$;B}9^p0@`tj>#_k=keD#H6oXATktp*a(faB7U|Ijcv913g&oc};|^z4;Azkq>ZuY%b!a?}O&9CY^!P!@7*63cmvNrK7mbSM zeMP00bNsePucxI+ayn5il04%YzKJxY(Yjqf#mGb^rdO8QkLQ>??w0QuxOyOK; zgKC`Q`E}FfMKR7$mhK_AbgbpFCYQIQd9_51i1khfLw2{D?ow_lFXfxizN`3$In4$? z+;2=O3mTKlN6}Z8S13Olq@Kwn{<8xPymsB)sZ?5OgBg{!NJR#VtmQ_-136K3Qv6!XN49KY*%4#|j3 zLND}Z zT-ObIJ;2rrd+vI>0z5D5`(c2M53U!4Ua$wf7gNwcr8Jc&<+ zNR)|FS{RcPN;{KK4fiyj@c#Cy5_dm+!+7Cltm zDr#@x1F4rN>5N_4sm`;M(Zs%jZtY4u7uO(JHnfzUXH2DxX$$ncWJ61{TkYUw%v$=@ z?*1gDyIshZo1W#=4knET*Zlx!4oZ%q2;P0XAS4>gxc-r-j4$LIs3>&GBqU5}F6hGF z-?&Zzzrrdv9=2&vWyMX|QRfAT_*7y!10^T0wx-0IgcGLdFve%89$KF7x)#bvbc!$d zXJo}_3qb=0%M3xY2520BxeOT$27|$1Fc=I5gTY`h7z_r3!C){LUOPVk6P@|l04M+e DgT!YG diff --git a/infiniteimprobabilitydrive/infiniteimprobabilitydrive.css b/infiniteimprobabilitydrive/infiniteimprobabilitydrive.css index f4be60515..7fb4019c9 100644 --- a/infiniteimprobabilitydrive/infiniteimprobabilitydrive.css +++ b/infiniteimprobabilitydrive/infiniteimprobabilitydrive.css @@ -1,4 +1,3 @@ -section { - padding-left: 0px; - -} \ No newline at end of file +section {padding-left: 0px;} + +iframe {border: none;} \ No newline at end of file From d8e403001ff12d007963b8c14a0b4fc3cca5adc1 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 22 Jun 2012 00:29:15 -0700 Subject: [PATCH 09/11] Forums have sparkle links, but missing the sparkle --- page.tgz | Bin 2051 -> 2066 bytes page/page.php | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/page.tgz b/page.tgz index b942bad6d8b571f0c6a628f0cae9ffd1a7ea04d5..0f3ed4cc04525942ca9c9e348cf54197303512c2 100644 GIT binary patch literal 2066 zcmV+t2<`VDiwFS39^_8|1MOLDbK5o&_E+gwYMG#CCA7w=>>* zb}$}4+ZpcdkN2OAY=7Q%Mx%p+(QtGy-p77?7>;*f?~(1YEz^c6fSs5H3!$z=@(H{XpwSTI0U_kH`Bq|HI+lXn&XTzq^ZHFnlC?YV9wc|7NrK zH%fm`b7MrZ(7lMwc+>^gt5_1s*!97$&Bi>E%p5|*=jN!{xE7&V9>RDyOmFZpW@;gl z-b@-JW9;6e-jBrsF}vx}4_(*2p%o`I|JPCZ>$KJWPnYQiSc6O;;pSSZOVA?ZGp0!8&s=G%Zqy&r^NY+Zr8Y94wyr8zG9;^?)bkSpwKw^vg;@D2FjMrOA_{g`DR4y(Nh@&hm(fb+W*$i%R~ zXw>zuws&^&>g2n(a3R8rE?i_PqA!|4-?0dky!heG>1(*ir(HA~jmAG;p1e6hF$aZ< z3Hae$B|g0P@q4(iTylZhNA4NDrKi7#G&6U@>(YZr%oU4lJUY#WvyQy4dya{Eg;@YG z2eagmDmfPs2cdzj@fe;-q~a`CwpUIv4aI}SzgywmhjI-MefB2PLg<}+{?G-Ff>0Z< z9W)}sT0cHguMJjpz_&gA2Lkg)+Vv(=N!zaP@KJ|H0iJe?b)U3m)>`!al+c;ulwv@C z#@99$UY-FD1;Px2f&icam4_#ii-qIfOmo$2;9P_c>rHd`Irjg(P7w%nci zebe@Sur%$0L8U!32OyQWpQt>$o^(h7zk8`TU zDAdLv4-^lD8sJzB$fVh(=y!DIp1Au(;R@i1440UA{050LVG(91x%4o%l*7jQHtKuF z1BOYC#MC>YP*yYY_1DxT=Iwf(Ca~|~UM9<^j33#KRVD@qi4rnPgiMcEf+t2h;N-w8 zyqL2~ZY{-a5=0`nM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mFczGR#kgw%FAD`Z516ef5rVvysF%Fzs<*xSnLnS-f-=8w!}gz@tXVc z?dw+s4EPOJDas2SC~({$J^Qf^Gs_@^1V>D;wAL3vRX&2Uv{+W)n*ZLKB2LebBy?TUb2c~S+xSY h_Fd%epF+E~YrD2 '. + $page .= '
  • ' . $contact['url'] . ' '. $contact["name"]."
  • "; $total_shown ++; if($total_shown == 6) { From 18c59bd2e771da2f8e6935293e1bc5df2b177866 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 22 Jun 2012 00:35:55 -0700 Subject: [PATCH 10/11] put the sparkle in the old interface, should probably put it in the current one. --- page.tgz | Bin 2066 -> 2064 bytes page/page.php | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/page.tgz b/page.tgz index 0f3ed4cc04525942ca9c9e348cf54197303512c2..6c30406afc7df06c7d0148250abf41845821878e 100644 GIT binary patch literal 2064 zcmV+r2=DhFiwFQ$AmmQ~1MOLDbK5o&_E+gwY}WK4wl_F9934Iz+Ww;L4TncZ!@+1U931QohQq_7;T{}3vR$_2+AsyMm#}al)Rjm- zBbO}>4u{X5KmQUoeZiJd{^_F^YW+xS+?W5+=+NeWFgO?bK@JRO5+Fv~X z&1Um&l>V;f#)x#GyD^*bxC5?Nu{4s2>w|wc8}nE)a||(`o0DeaT0~}f45PsyyTQkV zsf9?pGii)Wu={{|Ka~q4?50aUbY1tBR-DlMUq|Jy)7JYxTV{{6#&7R`-0Z{s3jaT| z`+v0C|6in?ev5f;_Mbj&!c+K>CHxqELNw6R_gsfcWJbvJ7~U@BwT4(|19A>JpV8Qi zM-a*+$x~r&!EWyUT&g_LAX7-Wxt8h@w21hODN^|}SK6u@_6GF)A~#E^j^VYq~KJk6LgT=XJN zy6~^xY|isEB>$|!sYnqEaU8UXlN4W|vs_J=QeFmr;mkCV5y}bUcfe;+B-4Iv2T`}x zwI$y^+0yCkpO(yfpUO?~`!!B8sqeM)&N--?h`1gfOmj6tdHNVJ+S2-8h|+yJ|5%(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o<~k zM?m2VWNCBGtCt2?hpYawhuvFBjzYRE?P>QNayg%=?nbTj49q?eo`HRki!Jy!`pvR?%@DEO~H=SC_l)yZIOr zi~HfZ8?U?GmRQgdue~qdzJ67}fZt%1!h8c(xj2uGc6qIwHp=}sLyL*qk5*!I@NleW z;eA%VtpH1UG<;N7x;pF>YOfVbQ?BZY-AQ^=I4?VBa6VGLj`s>nUK0JXBiHlomu$j&>Zp zEy@QQQOZLfL>!NU(+Z*A9iHmHH>$yL{bgj{lz^mc4eV*rz6*V@`? '. + $page .= '
  • ' . $contact['url'] . ' '. $contact["name"]."
  • "; $total_shown ++; if(($show_total) && ($total_shown == $show_total)) { From a60d66c70ae165282ec7851c1c89176e2c7dc99e Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 22 Jun 2012 00:39:47 -0700 Subject: [PATCH 11/11] only sparklify the links, not the photos as they aren't linked --- page.tgz | Bin 2064 -> 2060 bytes page/page.php | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/page.tgz b/page.tgz index 6c30406afc7df06c7d0148250abf41845821878e..f77dcf2364dc8f88319d1df71ee4ad38386f5a2e 100644 GIT binary patch literal 2060 zcmV+n2=n(JiwFQdA>>a01MOLDbK5o&_E+gwYk{7cyM1zSq_r;lE!^&_qEQ2s}wL!1A>;9z*TkNv~_ef)yKBiU1HfAah{ zo6Wya`n#GNBa(&g#%#vp4!B;$l1Q#xAN;G?n8%WtV~F|OoHQFZA~MTk7!3yLEk3T8 zT8N}Olg7vub{|mh$6|pMyY12sUDv&(6(= zf>5qjSt86G*v;LaOO>rO$OIB@Zlt;bEh0W+id6p0mA2}Jy#YPH$jnlzV|XpDIJ_=0 z0H-T_{5^>5mnozAdNHR8<^eIRfS82Wc9OL;O8kRN`+#ECn-~gi(bS@ z7yk8|&3TrDvqq;gaIVU5#N>IW^ocMj?%BCf{=(_D>EmOMs`wzU2iqV$l?-xsGw zzYmJ9dwDl~^N%vr2C zr3dY5k&NB4V_-_LyTF>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JyhNPgaxZb>cg4KmgI}5X0eRGe2}Q>QKFI=E_aGtB2 zFm{ype?)mzK(*n?6WAibs=$s9|D1ey*S*7XBK@#QL+ihS>W+tBe+BHi30l*i&fmUs z1h9U?hqw2HZd)6tG5v7H>XhegtN*>bvaE+cT1LB9-aC7DjooFAhI5^LO;~n zD=DdfPK}g^UHY3>N}S|7+DVYG*x19{JJB0;dLPt>)GK`a2RVfvg}G9=kI+{PE4}I= zcU%(TiYdWnap}t{-w5d6Q|*dkSD9X`byc;8w%q*jT369A4VOH;#H-9*_upa+iN*c! z+zr@WcUM@@60gB8-@SfS!hqjk)xvxOR=uQ%j&^yioIY0jZ-y2Vx1X%V=pf=)&%*od z>g@$s(xc&%y3+OGr&N2bSe9{BSM18nwy^E@$lzjR^?KebEqO`w%hFpYUg@E;1(DJ< zus9H5$u&!v8`=t}xHQeXfu@;;-n umUE2w+oEKZ$Fph$_T9V6-9L?XZP#{f*LH2!c5T-l(*6U`tIh=gC;$K`Ssyw8 diff --git a/page/page.php b/page/page.php index 014cc4995..fd48b4ee6 100755 --- a/page/page.php +++ b/page/page.php @@ -65,7 +65,7 @@ function page_page_end($a,&$b) { $more = false; foreach($contacts as $contact) { - $page .= '
  • ' . $contact['url'] . ' '. + $page .= '
  • ' . $contact['url'] . ' '. $contact["name"]."
  • "; $total_shown ++; if($total_shown == 6) { @@ -99,7 +99,7 @@ function page_network_mod_init($a,$b) { $more = false; foreach($contacts as $contact) { - $page .= '
  • ' . $contact['url'] . ' '. + $page .= '
  • ' . $contact['url'] . ' '. $contact["name"]."
  • "; $total_shown ++; if(($show_total) && ($total_shown == $show_total)) {