From bda43f7315209cbef7bbe9ceaaf991aa15552f79 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 1 Apr 2012 17:54:17 -0700 Subject: [PATCH 1/2] improved irc with some alternate channel selections --- irc.tgz | Bin 920 -> 1075 bytes irc/irc.php | 21 +++++++++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/irc.tgz b/irc.tgz index c6ba1bffea99337a2a278039f796c4fdc599649b..b5285cee705913acb91b57491b711d429a3785aa 100644 GIT binary patch literal 1075 zcmV-31kC#%iwFR-_;^nM1MO99PvbZc?pOLNM%ii;P-)uI7t~FQ(C+FE>2$0RclQCI z%1PYD!nGsEfkmhN?>FPV0lR!UvG?KpNKnTa&ph+Ycp^*|H{KXs#CSYx^oN6SzdvYn zhok;z&~y76GCbs zgVRrh!207~r!2}hi$Mh*jRvpP|Kwyieo_CE?qJw}?wc`sg8zB_lQXP*Gd?MQy z#V2ra^$|W6%)%F0FNMPWPrS;ED6P$l&=!xudoz*L@EF&4nfY>8>V!6qvv*K~VzQ(z}tLZ|WiF~>+f~#C)Y_j%) z*(_?6IVZR?#}q7+GCG96n}#omrD6oxOR zRI6YXLI-RVZo7}_79QeWn8a+B#OPucx)h&NSn0f$d?TN&jrxI2rm*AK81kT{DG6NRl3J?5M`jFrjKW=Y!*)ooHa{uL?r>RX zYwHvj=qP0d7db=uDYJHHIW?2KbHbu$qZBz*{H;5Kjeo3}85C*>iL zaf;CJqRYOW46rab^V|%mG%gCel62YAM_>|5CDhW{2fIXfE(0i;v7i^u;E$`{+HMYI zj3!hb8@|%_E|5Fd0U*EU7M>5gHe755*4g(V+I!oe4OmHV_gQ7Ujgu5~iPP@g&e~=1 zZhyoL8vyKH)HO*G_I69D> zsX8Q40Qk+sj+h4XR5EoJ%+6tJ5mvCQv7W@Ru1G*U-+>#hZr2@9Vob5ty)xM@=mSrQ zREH8!I_Dkyxa>9A^+13_I=96%7<>B3PWGat4FN_2+n@u{S$#^yzjXTL? zI+~7$*1kh$IGmkMW~a$4LHlqx8ILZKH_-=xj({GIh_ycl_#dG98|so&5|> zKM@S)kDsWn>KChF20WdPzc>F89-quV!TFyir_&B3FUIHz{^#>g&vEiz-0ypR_((Q% z4i{JN;9W&D{Lb5w3AF!0n_RJ4Gb!dkiUNp$3!$kJRKpeJt-IuYenfvMeeDHq$=ZD$u;9NHqM#Xk3FOZRFD;? zfMKNAFmaOAmR;jPA0A~34~%or6%}9-fsdL#@bQ7OMpNXijW06OG$wUzgNZ0i9N>AI zM783XBW5ywh0NOx6`Ghf7ze{1$s3lt8$}x$SLAbC$h+1o)Hy2_YsIK2SWf2KJb0UR zD{`9zEla$DCY*;o_{&qYG(6R^lJYJLkkJw=w!r`b?79^3lVvqV6Mt~(z45;MEq5!P zW^cuh=KrR^{?D*W2Cus-Q>DAQIVQfnxrGG;X~FIx=cH*CKK^&2nda2bQUaBt>xG$> zp9K(s4oyufCNsC7hqfS%NtVW#A`9#lpHtY#qUChgKHVzu4?ej>u?ii&?h@mN97#i4 z#gSW=oMa`{%bg{(72`uUuwqx5E8q{Wi+U1*@&*lI_&Mw@e|>*F2=>;X*MoDg#+#$@ z7UmEfL}0s!YBoz`M7LKctQGE_)nX&@N2NF1h;H==gyY1RD6PN0&wJFB4>eI53-lokwyd;i#D@nZj8|(nK-bnM` ue(@a~92^`R92^`R92^`R92^`R92^`R92^`R92^|}i}(sKil!I'; +$b['app_menu'][] = ''; } @@ -33,8 +33,21 @@ return; function irc_content(&$a) { -$baseurl = $a->get_baseurl() . '/addon/irc'; -$o = ''; + $baseurl = $a->get_baseurl() . '/addon/irc'; + $o = ''; + + $chats = array('friendica','chat','chatback','hottub','ircbar','dateroom','teentalk'); + + + $a->page['aside'] .= '

' . t('Popular Channels') . '

    '; + foreach($chats as $chat) { + $a->page['aside'] .= '
  • ' . '#' . $chat . '
  • '; + } + $a->page['aside'] .= '
'; + + + + $channels = ((x($_GET,'channels')) ? $_GET['channels'] : 'friendica'); @@ -44,7 +57,7 @@ $channels = ((x($_GET,'channels')) ? $_GET['channels'] : 'friendica'); */ $o .= <<< EOT

IRC chat

-

a beginner's guide to using IRC.

+

A beginner's guide to using IRC. [en]

EOT; From 3b2cf61a554bd852aed0bfafc37dc2b14ee83729 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 1 Apr 2012 18:11:11 -0700 Subject: [PATCH 2/2] provide optional sitewide channel list --- irc.tgz | Bin 1075 -> 1117 bytes irc/irc.php | 6 +++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/irc.tgz b/irc.tgz index b5285cee705913acb91b57491b711d429a3785aa..cb86460599f429d1304f82ec46525225d70f591f 100644 GIT binary patch literal 1117 zcmV-j1fu&NiwFRv{CH0Q1MOAYZrer>)vNdw14amGLl!03k_?5CVYoqSpr`}GZ66Fn zSduGo;ngm&T>63{|K1tuYA1dwoIYd^ka)G6%b7XDp)hIGcxQAGqtT$zADoQ({gXy_ zFzgRcdiDJpjb3kbJnW5z-NC5Q?ezwOK?4TwO^i^LmKlJ?lBEk_9)x9)z0=dv zAHnGdLZJTmuT$j3yX7E(hr^S%^gkZ-hp+TM?hbkl=)N1HJ^bYQ$7iU#7abmYhwukm z@-bXqU%*AqEPRpGLMXidg_o%jg%w(jfn^ym1((Wlqqv1@F4^c7VSCc)-m*kbLEt%S0)lG|P2yW2aMKoDo*0aD4za^mB&BP*=r{xoKg8$O?q zR{k`A4%jf*OdshM9N=9LM{F8L7-AaKCBCGv)LA9@x_!1X>N_^6#$i=9{Mce-=QUdi zD|uxkl54S}>4MwY`X;PXM%#8^%4SPb5qQEQO$3cqiC5%?q32=|QmcY?fKQa-vZQ7; z#XQ`ZA9&4XYvahD3aK+5qDOnr1bxt#?^`ls*mD?chiH|W4Z} z?biXIxaSsL?$kD1uJ_{Ew<+2?TfYscB-Cp|rM!&`8+3t7^~2V>uHwVarQT@(_>y2> z<2Z)TS2tdq_owtGQv+~L`cp41c4BWfr_73a;s18^_svy=_ECZx3fY;mLoMIa5ig`Ij>DeApiJJ^6v*aqxBt)Kt2$0RclQCI z%1PYD!nGsEfkmhN?>FPV0lR!UvG?KpNKnTa&ph+Ycp^*|H{KXs#CSYx^oN6SzdvYn zhok;z&~y76GCbs zgVRrh!207~r!2}hi$Mh*jRvpP|Kwyieo_CE?qJw}?wc`sg8zB_lQXP*Gd?MQy z#V2ra^$|W6%)%F0FNMPWPrS;ED6P$l&=!xudoz*L@EF&4nfY>8>V!6qvv*K~VzQ(z}tLZ|WiF~>+f~#C)Y_j%) z*(_?6IVZR?#}q7+GCG96n}#omrD6oxOR zRI6YXLI-RVZo7}_79QeWn8a+B#OPucx)h&NSn0f$d?TN&jrxI2rm*AK81kT{DG6NRl3J?5M`jFrjKW=Y!*)ooHa{uL?r>RX zYwHvj=qP0d7db=uDYJHHIW?2KbHbu$qZBz*{H;5Kjeo3}85C*>iL zaf;CJqRYOW46rab^V|%mG%gCel62YAM_>|5CDhW{2fIXfE(0i;v7i^u;E$`{+HMYI zj3!hb8@|%_E|5Fd0U*EU7M>5gHe755*4g(V+I!oe4OmHV_gQ7Ujgu5~iPP@g&e~=1 zZhyoL8vyKH)HO*G_I69D> zsX8Q40Qk+sj+h4XR5EoJ%+6tJ5mvCQv7W@Ru1G*U-+>#hZr2@9Vob5ty)xM@=mSrQ zREH8!I_Dkyxa>9A^+13_I=96%7get_baseurl() . '/addon/irc'; $o = ''; - $chats = array('friendica','chat','chatback','hottub','ircbar','dateroom','teentalk'); + $sitechats = get_config('irc','channels'); + if($sitechats) + $chats = explode(',',$sitechats); + else + $chats = array('friendica','chat','chatback','hottub','ircbar','dateroom','teentalk'); $a->page['aside'] .= '

' . t('Popular Channels') . '

    ';