From da05c0f2083c68de2f80a18a56168e0f9e07d288 Mon Sep 17 00:00:00 2001 From: mbirth Date: Fri, 4 Aug 2006 07:11:50 +0000 Subject: [PATCH] Initial import v1.04 --- package-info.xml | 66 +++++++ sbox.php | 38 ++++ sbox.template.php | 77 +++++++++ sboxDB.php | 165 ++++++++++++++++++ sbox_angry.gif | Bin 0 -> 289 bytes sbox_bad.gif | Bin 0 -> 4713 bytes sbox_bang.gif | Bin 0 -> 904 bytes sbox_cheerio.gif | Bin 0 -> 5433 bytes sbox_church.gif | Bin 0 -> 3822 bytes sbox_cry.gif | Bin 0 -> 416 bytes sbox_funny.gif | Bin 0 -> 749 bytes sbox_grin.gif | Bin 0 -> 267 bytes sbox_hand.gif | Bin 0 -> 655 bytes sbox_kiss.gif | Bin 0 -> 1777 bytes sbox_laugh.gif | Bin 0 -> 226 bytes sbox_oops.gif | Bin 0 -> 388 bytes sbox_refresh.gif | Bin 0 -> 614 bytes sbox_remove.php | 96 +++++++++++ sbox_setup.php | 119 +++++++++++++ sbox_smile.gif | Bin 0 -> 331 bytes sbox_smoke.gif | Bin 0 -> 614 bytes sbox_v1.04.mod | 428 ++++++++++++++++++++++++++++++++++++++++++++++ sbox_yeah.gif | Bin 0 -> 343 bytes 23 files changed, 989 insertions(+) create mode 100644 package-info.xml create mode 100644 sbox.php create mode 100644 sbox.template.php create mode 100644 sboxDB.php create mode 100644 sbox_angry.gif create mode 100644 sbox_bad.gif create mode 100644 sbox_bang.gif create mode 100644 sbox_cheerio.gif create mode 100644 sbox_church.gif create mode 100644 sbox_cry.gif create mode 100644 sbox_funny.gif create mode 100644 sbox_grin.gif create mode 100644 sbox_hand.gif create mode 100644 sbox_kiss.gif create mode 100644 sbox_laugh.gif create mode 100644 sbox_oops.gif create mode 100644 sbox_refresh.gif create mode 100644 sbox_remove.php create mode 100644 sbox_setup.php create mode 100644 sbox_smile.gif create mode 100644 sbox_smoke.gif create mode 100644 sbox_v1.04.mod create mode 100644 sbox_yeah.gif diff --git a/package-info.xml b/package-info.xml new file mode 100644 index 0000000..1f36013 --- /dev/null +++ b/package-info.xml @@ -0,0 +1,66 @@ + + + + SMF Shoutbox + Deep:SMF_Shoutbox + modification + 1.04 + + + + + + + + + + + + + + + + + + + + + sbox_setup.php + + + + sbox_v1.04.mod + + + Uninstall will remove all the changes made by the shoutbox. You must do this before upgrading! + sbox_v1.04.mod + + + + + + + + + + + + + + + + + + + + sbox_remove.php + + + Sorry, but the SMF Shoutbox Mod doesn't support your SMF version! + + diff --git a/sbox.php b/sbox.php new file mode 100644 index 0000000..ab1820b --- /dev/null +++ b/sbox.php @@ -0,0 +1,38 @@ + diff --git a/sbox.template.php b/sbox.template.php new file mode 100644 index 0000000..cc6a909 --- /dev/null +++ b/sbox.template.php @@ -0,0 +1,77 @@ + +
+ *'.$txt['sbox_ModTitle'].' +
+ + '; +} +?> \ No newline at end of file diff --git a/sboxDB.php b/sboxDB.php new file mode 100644 index 0000000..b57d29c --- /dev/null +++ b/sboxDB.php @@ -0,0 +1,165 @@ + + + + + + Shoutbox + + + + + '; + + +switch ($_REQUEST['action']) +{ + + case "write": + if ((!$context['user']['is_guest']) || ($modSettings['sbox_GuestAllowed'] == "1")) + { + // empty messages are not allowed + $content=$_REQUEST['sboxText']; + if(chop($content."") != "") + { + // get actual weekday + $days = array($txt['sbox_Sunday'],$txt['sbox_Monday'],$txt['sbox_Tuesday'],$txt['sbox_Wednesday'],$txt['sbox_Thurday'],$txt['sbox_Friday'],$txt['sbox_Saturday']); + $day=$days[date("w")]; // weekday + $date=$day." | ". date("G:i"); // time + + // handle spacial characters + $content=addslashes($content); + + // insert shout message into database + $sql = "insert into ".$db_prefix."sbox_content (name,content,time) values ('".$user_info['username']."','".$content."','$date')"; + db_query($sql,__FILE__,__LINE__); + + // delete old shout messages (get id of last shouting and delete all shoutings as defined in settings + $result = db_query("select id from ".$db_prefix."sbox_content where name='".$user_info['username']."' and content='".$content."' and time='$date'",__FILE__,__LINE__); + $rows = mysql_fetch_assoc($result) ; + $sql = "delete from ".$db_prefix."sbox_content where id < '".($rows["id"]-$modSettings['sbox_MaxLines'])."'"; + db_query($sql,__FILE__,__LINE__); + } + } + break; + case "kill": + if ($context['user']['is_admin']) + { + $id = "".$_REQUEST['kill']; + if ($id != "") + { + $sql = "delete from ".$db_prefix."sbox_content where id=".$id.""; + db_query($sql,__FILE__,__LINE__); + } + } + break; +} + +// close header and open body +echo ' + +'; + +// get smilie path +$themedir = $settings['default_theme_url']; // smf theme path +$imgdir = $themedir."/images/"; // smilie path + +// get shout messages out of database +$result = db_query("select * from ".$db_prefix."sbox_content order by id desc, time asc limit ".$modSettings['sbox_MaxLines'],__FILE__,__LINE__); +if(mysql_num_rows($result)) +{ + $count=0; // counter to distinguish font color + while($row = mysql_fetch_assoc($result)) + { + $count = $count + 1; // increase counter + $name = $row["name"]; // user name + $date = $row["time"]; // shouting date and time + $content = stripslashes($row['content']); // shouting content + + // replace smilie code with path to smilie image + $content = str_replace ($txt['sbox_smilie01_code'], ''.$txt['sbox_smilie01_text'].'', $content); + $content = str_replace ($txt['sbox_smilie02_code'], ''.$txt['sbox_smilie02_text'].'', $content); + $content = str_replace ($txt['sbox_smilie03_code'], ''.$txt['sbox_smilie03_text'].'', $content); + $content = str_replace ($txt['sbox_smilie04_code'], ''.$txt['sbox_smilie04_text'].'', $content); + $content = str_replace ($txt['sbox_smilie05_code'], ''.$txt['sbox_smilie05_text'].'', $content); + $content = str_replace ($txt['sbox_smilie06_code'], ''.$txt['sbox_smilie06_text'].'', $content); + $content = str_replace ($txt['sbox_smilie07_code'], ''.$txt['sbox_smilie07_text'].'', $content); + $content = str_replace ($txt['sbox_smilie08_code'], ''.$txt['sbox_smilie08_text'].'', $content); + $content = str_replace ($txt['sbox_smilie09_code'], ''.$txt['sbox_smilie09_text'].'', $content); + $content = str_replace ($txt['sbox_smilie10_code'], ''.$txt['sbox_smilie10_text'].'', $content); + $content = str_replace ($txt['sbox_smilie11_code'], ''.$txt['sbox_smilie11_text'].'', $content); + $content = str_replace ($txt['sbox_smilie12_code'], ''.$txt['sbox_smilie12_text'].'', $content); + $content = str_replace ($txt['sbox_smilie13_code'], ''.$txt['sbox_smilie13_text'].'', $content); + $content = str_replace ($txt['sbox_smilie14_code'], ''.$txt['sbox_smilie14_text'].'', $content); + $content = str_replace ($txt['sbox_smilie15_code'], ''.$txt['sbox_smilie15_text'].'', $content); + + // display shouting message and use a different color each second row + if ($count % 2) + echo ' +
'; + else + echo ' +
'; + if ($context['user']['is_admin']) + echo '[X]'; + + echo '[ '.$date.' ] <'.$name.'> '.$content.'
'; + } + + echo ' + +'; +} +?> + \ No newline at end of file diff --git a/sbox_angry.gif b/sbox_angry.gif new file mode 100644 index 0000000000000000000000000000000000000000..11a2574ca7dafa829597ea8e0eef67d2857c0cc1 GIT binary patch literal 289 zcmZ?wbhEHbi_@% literal 0 HcmV?d00001 diff --git a/sbox_bad.gif b/sbox_bad.gif new file mode 100644 index 0000000000000000000000000000000000000000..acbc01debc80dce595b5d71db3139e1121ba8902 GIT binary patch literal 4713 zcmc(jYfuzd7RPUQ&qzB8C_^wdJs?S3n9aHhJ5XbwTn031sVgzY-MSUG606oK_ls`j zL;Mh3)352CN6)}Km|}`3m3m@ocnPshzAh@;5dGb!H<7{J$drvqpWGEsi`McN6WIDm6dgJ zE!FwQ7^~HKJuB-*e*T#=XF{P+I2?AlTz!3gS7Ku~M)T(78zYC_iX2S*3-;ITv5WtW z;{yY4#Kgp0yLN5Ws#T}gry2}~@4x^4dS>QTz5cV$J}W3F_>Q9Pbaky?zdkQ7FFHDU z?b@|HJv}r{pFe-zkyY}bbMd!Vu58}C`F=P|QB-zz_H{A3zrX+7xpUuKym;x-rA3Pt zMIwHOje7L2h zrL(iMx3^cX*PGK^t5>hKSS*#5l}C>r{p6ERy7z9lD6hKn>8Ceu+yMXcU&@n7zgw{K z{d`lwf{b6!Aut4x(yN-N0TBF3fl+J%QT8p6VL6@$q9`yTCgZq;1DIQuK_Tk~gx3=+ zfu%$+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X#MyZxKJRESE zgH=^!4W34!aR-kPyPF9qQ-kkmmQb{PQU+Y6U*3uE#~Nqdb2` z&Q*iqo|E_z+bhFnSABVd91w_|O+x0jK%*)EWn=bD+9}`s2(9{Rl7#J!%x?Efj@C zexafi%#fA@#sEnmYLfFvJvx=p79x!-XB=q2WH14}n5w+UU>FA^z*t$Jau%wrV8uL( z57KOshGTSG?#%L$K{23&RZ`2{0s+SH7^)FLkgPIhF>`h&kGl$4yPF4W(1DVxat4Et zc8E}?U#<~FnuOcZl@8PE5=Lb5?4$4eq!+8mC5d*Mosods#zU9C*hiEG%0m@aj|a}5 z2UHDPRs1SLwL9>8O(o0?jQHHpe+W|$<9hVD=Wpnu4Gvz=fiF-j1uTSA~@@OM=_|HF)zLmq()83K_JK>}Ii6ap5B6YTp2Lxn5a@XekkO>1hT)tBvW++CMP5 Ll!65DbCCTX5b(1j literal 0 HcmV?d00001 diff --git a/sbox_bang.gif b/sbox_bang.gif new file mode 100644 index 0000000000000000000000000000000000000000..d269ad50665417023265ee6cf9eeb86dea4b1a28 GIT binary patch literal 904 zcmZ?wbhEHblw=TL*v!KK1jiH^jy?bX--+RWw&MR5r~gxu|F3QNf9=@+=M4Y$MU}whwS0g;!hS%5e6Ox9gq@`u?#HT6Ha<+vs&EFb<}ib zC|L5OHOVt=)~-s{31M%3G;PXda`ESx;iqB#u-48_VQrd{2u~aTvgJB;ZOhb6c13(x zb(8Vh4%3p|5(W%Yjk37Y-#eWxk$?Dn{<+P0-`{z7Ry!oymD^@!DKQ$`*xB_ty87^B z_xC4RO$|4mnlxjki9*EWq-B%Db7ooV%9;vdbzdKT_Z_<5P`dEWkzx%wJBz5ZAr=Y( zu0H<98(4kMsh4cD2=otMBzEv=QjK#+*9_Y!yScygh2~0icRwzX;I4n?YFMIXS6A<5 z$do1ya-oM|TD*5C^F;aP8U^EN(><6MhLkRx8_KY7rM*ek;^hb@a-jwxh7%u6NmSju z>D_nU56?s$Udit9DPDeunxJFBfQPWVKfvJhROHE&m*{CyGp-+!_ zrrm<6>h)T63l>kE-#c%4iL5>}6w#bG4I>my{btQd6yF`y70#fUy{qBT{2e#FI)2vF zEnMK2W@FK>AMyP08oTWIPquWukYi|<_o&t^*xj*VecP#xXP#%R7t@W7_v06HFgv)P ziGiun+_t7BkH@TmyNSD()n19Q)6BfTm#H^9(70}Te_wlqLT4AVJi|i$I_6rPb<9Cp zx$}%R+ekv3%8KUHi5O0eR1IFXGDvB*{DeahO@_;DC(S&c-oW|OLgHbfWyxEs`AesG z%G}dq)l6D#-Qahu%l-7!%FY$qxw~vt_-xh7UPXQ5YADdo7H43otEg<(|~R$?W21UtKY&lgY@+CTyk}^TbX|`-H3|)BKY%7whWF`T<>O4FJ5COo0FZ literal 0 HcmV?d00001 diff --git a/sbox_cheerio.gif b/sbox_cheerio.gif new file mode 100644 index 0000000000000000000000000000000000000000..15387ed4e50337a55c1f45668fe3dfeeb2a96990 GIT binary patch literal 5433 zcmeHKdo+}LzklZT%nUPTrZHp8o_U5bF6m;DBq7ESwreDXj7%|d?IO7~jA2kH(nPrz zaw$SlF(@JJQc)?A(oHvM@11sU&a`{qb@tisUVEK$*7@`N^Q>n*>si0``+jcU?{}@E zz1gb3mB0evG5`ny0#t9z&)+q>Q?cyU&`{%C-LG=D)tkObJo< zuu*ILWq$Iv`S}-?H5shZY`3w8557z{TUc1Wd;50&)2pLLkKVZp>+kFPG7roTE}x&D z2LM3%)Sg#$we#|{wQ;vIUdlzllwY;ykXQg<0gILIz_)7vsF?}<%*`9KLryg;7R7}f z4gVO^8oPPKHzuceu&z}ymAx>>Wh0rsrc3+!?Ux264#(>UDpxt)3LnnA-s%*z=mwhd zq54Iw<{sVJqK+32mZCenjeK@TZ{HgczsJo>v^6Uz)6>twGA+>4KU3uGSeSbxFW)%5 z)H5mBF}b)hKP)bi@2XooT4#$`@7})t_1%{*?mbhvnv%1pOS;s+ z-{$($!pHMcznIIc<;0sTN|l#2g9QI86h8hRps@YJij}(OW?GCs>(w@TiQJNd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+)Ug)l24r?~vb>c#X9dPIGuuU{wqQg6p1XOlsL{+pe)tB16K)&BvojcgMD literal 0 HcmV?d00001 diff --git a/sbox_church.gif b/sbox_church.gif new file mode 100644 index 0000000000000000000000000000000000000000..2b5a22f8c0fec1a23f1ef9f4024ca119f8be312d GIT binary patch literal 3822 zcmcJSX;c%38ips6Atq+SNeE#nB??DN(O}hr#e$Yw5qq`Pdh5ci3tF@o7OAp}K!C7@ z5Ed!i0+vk<`JJH?U-3u=tiU@NA$B~yM)VXsBEqh;^j5QAi2(4?1)99t9xZ~g=wp* zz0;v*V7z~z#h5+ZnL9SFz-i3bAko%=)V&~w=I>}l6bQu3&OyLpplcZO#7;COeOs0& zH@ngMLx=#x@FZ-YWVSEMR-nb8!SyurttY<$m1h@VI|~(0%fYPs_?XSmKI4rB>%KY` zqa0Wli#fI7AMc1=LF6~5Fiy_dYpn_nW-!ifRupVEBP=O`KF7HJuw~|X^~kg(XWhOW zyNNLG%kDuz9^|OlSk&H&(U*1nQc{Vj*aRmM7P>!-thS}D9^ckLZx%Q@qS4|3Ra<-Mw~`)*e)Ytlx}%d)0ZV%{6YaQ3 zljibKW>nw3HfZtgbSLy20`YU9^DaY6X0>{MZnDS#8u}*uD19iN3$;4zVCoBjI^d@upskx+dI#2)@c)}pL zgvw32c8z%zE(CD3xMI(eGD<~~x3oqfs>Q47i%V}9NOX~_yVa^{GjuC!f_tQWxS?tF zP&=(@{1?Z_f$7^*w~gj$l7RkYJk<7Nn1%--5Z+VN-J0e16xw7i(wA=w2Wh?RXq!p# z1*36>SYJE%`5DMuyLqesuDodOfXuR2M9#xp_`s@(;_^v+q=()4(L*rmJ#_Rnv}NZV ze!P!d$6Pe01ezyt2()H7B_J?70_mug-)T?s6& z0No7)X-T}iJZ1)5tb<1LD=Rao;Ca1gki+8lD;&Zifj(kTtGx zh|o^8;ie5RAjIl!zV9{gNCiFArlp*e0O9OTo1HUvmb6m68S`W22bQ&AA%BK8xB@oj zb+LMziPrijcRGa~{_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Sofa*xuuywL25v-=0^lW(q|5*0>W^?nCQla6~ zOlf>kq8vm$&)kRgxuLQ5{~K_l|Iq=qoViVht)JiNKDvraSDZSHiC1hRcDQ-GfMx$* DBzS zNa!aECl>=7gAS0*0MgFDoRqOE=ADk-rBge^{XBb*CIo2AeUfqNDE?hRzAo1wd13NX3=PfCUulT8GEBN8xBZv^ c$F{7XgJ;clyuV~UckTPvues~W^*I@=0R*6&s{jB1 literal 0 HcmV?d00001 diff --git a/sbox_funny.gif b/sbox_funny.gif new file mode 100644 index 0000000000000000000000000000000000000000..a16bde1a92daa85b442486b3a652d8730f923f48 GIT binary patch literal 749 zcmZ?wbhEHbRAdllSj5KgpMm4bb;dvc8BU%!@&EsS1_lNQsraAU&ow02*)hP?NY8+o z5h$VflZBIkfsH{2$Yua(XJDS5vDNjP!Ks}gflKb5+&Jvh8%^;L@=A2oJ zmMmdg=Cy3avZbr}*KS^)Ox3@%A(^ zwaJ^Wa#{R47U}%QUP#;h3TNX%?f}UnrYz?fg1604wXw4Q8Y~(_+e4@KgBLlr77>A7~Y5-{1|+(W%$> za$lTeEWO+;Nd241{RhSUd^;aJ`m9_HbZcE!g9u|FLvv4gdxwyDOK)?1F*sbg`}$zv lx@1aE^YUf0*DapAdf{yT4IQ&Yw^oAP%ZiZ>25Hz@0|2uAFn9m} literal 0 HcmV?d00001 diff --git a/sbox_grin.gif b/sbox_grin.gif new file mode 100644 index 0000000000000000000000000000000000000000..eb98fde52134b5451664328d985633c1ae5fac84 GIT binary patch literal 267 zcmZ?wbhEHb>sh}%H9nYN@+_{diF3z&QQy0IUce&qE6&ij^xv=g?l+SFDTwK z@3p88_lIo8a+hoGUU(WY?B=}qWlq$}R)+8@^2F&gX7taQJ6n~F6Pv3V zK&}$l^^$MnjI8GOcSEK(PBk~1_{GKLwp@nDl4;TV&lq0$b7t3$<9r#j3p+NnzGJhI zuv~d3fn#R^+xZJ3hxaB-zV-IC=~=&$%Xfuj4Z<&d*mC)A-|D#uy~W2H~jS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box_oops.gif new file mode 100644 index 0000000000000000000000000000000000000000..32eb60fb987f7dcf27d9369addd21a5e7ba26884 GIT binary patch literal 388 zcmZ?wbhEHblw}ZNSj5Kgmx1BRb;dvc8BU%!@&EsS1{hHM&+X?L671|4;A*62z|05~ zSNzGsn!>=wpaW6^($2sfm$7Tj*Yzh)#_ce_l*{!`(p=OjGjd_XOqbhLjtljc1PJig zP5yXi$1&E=bx!StYiRL$;H6Lz{$W3v{ED^Z0p+A2^QjkJ06|g{Xan?iDw#EAt%&r zj6k>X0u>r%L@nLdYpbqavPfXj&($J71i3OR#4bCme!3}NXLpu$`=hn*Yu?}ADW9t7 z!^p7h(Nl;qtYG^PUJTCIb?0BfRH3Z7hL;U~>fH?HaB>t-t7<(vW1a!)rc)7%p0#kv zU!n($Z@tVkL5%2$L_(@N&}g<$GM$V$Y{0rmVPT7>(+{rdck-Aq6R#(r7g5 z^?I#V(=@G8scbs==jOkIs&3U`SP*kGo0^|sE${9HgRQ3MbQGV8MY?C{8#lLf;>1j3 zTsNmXMIOM98fMJb9|i(W=Z@WNEiv<4;PTj*XJ|W)>tm*a-F{!vH{3;03sa_@SAAah zXlk#+@gYd;y5croNRC+d9m)|$t{G39@9XQee$Q + + SMF DataBase Editor - Ultimate Shoutbox + + +
+ + + + '; + +if (!isset($_REQUEST['sa'])) +{ + echo' + +
SMF DB Editor - SMF-Shoutbox MOD - SQL UNINSTALL
+ Click here to start shoutbox uninstallation
+ '; +} +else +{ + echo ''; + + if ((isset($_REQUEST['man'])) || (!isset($db_name))) + { + include_once ("Settings.php"); + $dbcon = mysql_connect($db_server, $db_user, $db_passwd); + mysql_select_db($db_name); + } + + $error=0; + $shoutChunkSize = 350; + $timeLimitThreshold = 10; + $self = &$_SERVER['PHP_SELF']; + $start_time = time(); + + // Now time to make the new table + $result = mysql_query("DROP TABLE {$db_prefix}sbox_content;"); + if (!$result) + { + echo "Error removing shoutbox table. SQL Error: ".mysql_error()."
"; + $error++; + } + else + echo "Shoutbox table deleted!
"; + + $result = mysql_query("DELETE FROM {$db_prefix}settings WHERE variable LIKE 'sbox_%';"); + if(!$result) + { + echo "Settings: ".mysql_error().".
"; + $error++; + } + else + echo "Settings removed correctly!
"; + + $done = 1; + + // Result + if (isset($done)) + { + echo ""; + if($error==0) + echo "

Downgrade of SQL was successfull."; + elseif ($error==1) + echo "

There was one error when downgrading your SQL."; + elseif ($error>1) + echo "

There were $error errors when downgrading your SQL."; + } +} +echo ''; + +?> diff --git a/sbox_setup.php b/sbox_setup.php new file mode 100644 index 0000000..5bbf66d --- /dev/null +++ b/sbox_setup.php @@ -0,0 +1,119 @@ + + + SMF DataBase Editor - SMF-Shoutbox + + +

+ + + + '; + +if (!isset($_REQUEST['sa'])) +{ + echo' + +
SMF DB Editor - SMF-Shoutbox MOD - SQL INSTALL
+ Click here to start shoutbox installation
+ '; +} +else +{ + echo ''; + + if ((isset($_REQUEST['man'])) || (!isset($db_name))) + { + include_once ("Settings.php"); + $dbcon = mysql_connect($db_server, $db_user, $db_passwd); + mysql_select_db($db_name); + } + + $error=0; + $shoutChunkSize = 350; + $timeLimitThreshold = 10; + $self = &$_SERVER['PHP_SELF']; + $start_time = time(); + + // Now time to make the new table + $result = mysql_query(" + CREATE TABLE {$db_prefix}sbox_content + (id int(11) NOT NULL auto_increment, + time varchar(25) NOT NULL default '', + name varchar(80) NOT NULL default '', + content text NOT NULL, + PRIMARY KEY (id)) TYPE=MyISAM;"); + if (!$result) + { + echo "Error creating shoutbox table. SQL Error: ".mysql_error()."
"; + $error++; + } + else + echo "Shoutbox table created!
"; + + $toSet = array(); + $toSet['sbox_Visible'] = '1'; + $toSet['sbox_GuestAllowed'] = '0'; + $toSet['sbox_MaxLines'] = '30'; + $toSet['sbox_Height'] = '180'; + $toSet['sbox_SmiliesVisible'] = '1'; + $toSet['sbox_TextSize1'] = 'x-small'; + $toSet['sbox_TextColor1'] = '#123456'; + $toSet['sbox_TextSize2'] = 'x-small'; + $toSet['sbox_TextColor2'] = '#000000'; + $toSet['sbox_RefreshTime'] = '20'; + $toSet['sbox_BackgroundColor'] = '#E5E5E8'; + $toSet['sbox_FontFamily1'] = 'Verdana, sans-serif'; + $toSet['sbox_FontFamily2'] = 'Verdana, sans-serif'; + + // Insert settings + foreach ($toSet as $key => $value) + { + $result = mysql_query("INSERT INTO {$db_prefix}settings (`variable`, `value`) VALUES ('$key', '$value');"); + if(!$result) + { + echo "Table: ".mysql_error()." Already exists, skipping.
"; + $error++; + } + else + echo "Data inserted correctly!
"; + } + $done = 1; + + // Result + if (isset($done)) + { + echo ""; + if($error==0) + echo "

Upgrade of SQL was successfull."; + elseif ($error==1) + echo "

There was one error when upgrading your SQL."; + elseif ($error>1) + echo "

There were $error errors when upgrading your SQL."; + } +} +echo ''; +?> diff --git a/sbox_smile.gif b/sbox_smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..a30039b80836e4f3f8d59212fd5f572a20205bd6 GIT binary patch literal 331 zcmZ?wbhEHb zNa!aEs}3V8gAPa@q@95|Fk;p9y&HBIr!8^s*mE#)hFVtp@sPz4bt1QNB42JTynEL9 z+*{^`=b}ERuQNzB+6Av>S|T9Xkfxm36tq(QgvjhrmVJ#U8D%skoX;?}+8a?X&Iz`K zfdOa>GXo<7Cj$r27Lf?k%?r9un)mH}e(>z>_Ao&wpCu~D3YmclS%C`qEp~Ag8^{%~ zZ24-#Ia3~Dm=VM<7N8ntpc)R4nh&mS!pH`|B)KBC*Jv$ucqyfg;t-hmd=}el3Y5Gy OYOMJYclDYFgEasG*j?EG literal 0 HcmV?d00001 diff --git a/sbox_smoke.gif b/sbox_smoke.gif new file mode 100644 index 0000000000000000000000000000000000000000..e105adf9cff601371d7f77aefe8fc2d97ba51853 GIT binary patch literal 614 zcmZ?wbhEHb6laiRSj5iogrC2^zyHd0#y|fVPM$dN|Nnmm1_mIh_@CR)H6+;CF~HSG z&w!Z`D606Ag_D7Sok0i4W&mktU@oiJbw^guOGA6H*<+iX->xo`Q2D95)NqN|QYlx) z(@lbM`D>25-F<33?>uAR+7tt!+=_#|eWzA5tSqqYH@cUQ)h#i9$<&S4OKaA@m?Cw- zb~(S}JVpbdC0Bn`?lgb<{j``$ooRy*OFK(e2a9NTUw?1^1j$M5lAO4lA_sFy<=r@D zEw{+11(`grwy$vuJhC~Vgk9(TrbKrU+4bLrC$g=HToa zeZ0D)ie;r&CeNy7xz&LpM!FIT!sq|w+~K*h?m07?xVD(D+a^iFm5rM`MQs*(s-899 z@JJ~#Oy}ost3#KzM1(TcTzn~2$mzj(<&DkB-YviWr-`Z5n>Pxvbg<-fvIzI|Pw1O4 TQG9ZTI5=2XvBc0o1dBBQTlMlo literal 0 HcmV?d00001 diff --git a/sbox_v1.04.mod b/sbox_v1.04.mod new file mode 100644 index 0000000..ce3e5d2 --- /dev/null +++ b/sbox_v1.04.mod @@ -0,0 +1,428 @@ + +SMF Shoutbox + + + +1.04 + + + +This is a shoutbox with seamless integration into SMF. + +Any registered user and any guest (if you allow them to use it) can type in a message and click shout. +The shoubox appears above the board index of the default theme. To do that, BoardIndex.template.php +of the default theme will be modified. +If you are using another theme, please modify the BoardIndex.template.php of that theme manually. +Maybe you have to modify sbox.template.php a little bit if u are using an "unusual" theme. + +Instructions: +1. Install SMF shoutbox using boardmod (itīs too complex to install manually) +2. Go into the Feature Settings page and choose the appropriate settings +3. Type in a message and click Shout! + +If you really want to install this mod manually, please use this file as a "how to". + +Author: +The SMF shoutbox was written by Deep, some code ist "stolen" from Matthew Wolf (a.k.a Grudge). +Thanks a lot, Grudge! + +Please direct any questions regarding this version to Deep, either by email (diem4@gmx.net) or by posting +in the appropriate place at www.simplemachines.org (the preferred option!) + +History: +version 1.04 +1. font family is now adjustable +2. german language pack extracted + +version 1.03 +1. another refreshing bug fixed +2. help texts (admin interface) added +3. javascript bug (opera and netscape only) fixed +4. smilie window now can be made invisible +5. shouts can be deleted by admin +6. font color, font size and background color can be adjusted + +version 1.02 +1. javascript/html bugs fixed +2. error when shouting empty string fixed + +version 1.01: +1. some debug code removed +2. refreshing bug fixed +3. file path bug fixed + +version 1.00: +Original Version + + + +Deep + + + +No homepage available at the moment + + + +$languagedir/Modifications.english.php + + + +?> + + + +//SMF Shoutbox +$txt['sbox_ModTitle'] = 'SMF Shoutbox'; +$txt['sbox_Visible'] = 'Shoutbox is visible'; +$txt['sbox_GuestAllowed'] = 'Guests are allowed to shout'; +$txt['sbox_MaxLines'] = 'Maximum number of displayed lines'; +$txt['sbox_Height'] = 'Shoutbox height'; +$txt['sbox_SmiliesVisible'] = 'Smilie window is visible'; +$txt['sbox_smilie01_text'] = 'blblbl!'; +$txt['sbox_smilie02_text'] = 'grinning'; +$txt['sbox_smilie03_text'] = 'laughing'; +$txt['sbox_smilie04_text'] = 'kissing'; +$txt['sbox_smilie05_text'] = 'smiling'; +$txt['sbox_smilie06_text'] = 'thatīs okay!'; +$txt['sbox_smilie07_text'] = 'smoking'; +$txt['sbox_smilie08_text'] = 'greeting'; +$txt['sbox_smilie09_text'] = 'cheerio!'; +$txt['sbox_smilie10_text'] = 'oops'; +$txt['sbox_smilie11_text'] = 'praying'; +$txt['sbox_smilie12_text'] = 'crying'; +$txt['sbox_smilie13_text'] = 'angry'; +$txt['sbox_smilie14_text'] = 'baaaaaad'; +$txt['sbox_smilie15_text'] = 'headbanging'; +$txt['sbox_smilie01_code'] = ':frech:'; +$txt['sbox_smilie02_code'] = ';-)'; +$txt['sbox_smilie03_code'] = ':-]'; +$txt['sbox_smilie04_code'] = ':-s'; +$txt['sbox_smilie05_code'] = ':-)'; +$txt['sbox_smilie06_code'] = ':-!'; +$txt['sbox_smilie07_code'] = ':smoking:'; +$txt['sbox_smilie08_code'] = ':greeting:'; +$txt['sbox_smilie09_code'] = ':cheerio:'; +$txt['sbox_smilie10_code'] = ':-O'; +$txt['sbox_smilie11_code'] = ':praying:'; +$txt['sbox_smilie12_code'] = ':crying:'; +$txt['sbox_smilie13_code'] = ':-('; +$txt['sbox_smilie14_code'] = ':bad:'; +$txt['sbox_smilie15_code'] = ':bang:'; +$txt['sbox_smilie01_file'] = 'sbox_funny.gif'; +$txt['sbox_smilie02_file'] = 'sbox_grin.gif'; +$txt['sbox_smilie03_file'] = 'sbox_laugh.gif'; +$txt['sbox_smilie04_file'] = 'sbox_kiss.gif'; +$txt['sbox_smilie05_file'] = 'sbox_smile.gif'; +$txt['sbox_smilie06_file'] = 'sbox_yeah.gif'; +$txt['sbox_smilie07_file'] = 'sbox_smoke.gif'; +$txt['sbox_smilie08_file'] = 'sbox_hand.gif'; +$txt['sbox_smilie09_file'] = 'sbox_cheerio.gif'; +$txt['sbox_smilie10_file'] = 'sbox_oops.gif'; +$txt['sbox_smilie11_file'] = 'sbox_church.gif'; +$txt['sbox_smilie12_file'] = 'sbox_cry.gif'; +$txt['sbox_smilie13_file'] = 'sbox_angry.gif'; +$txt['sbox_smilie14_file'] = 'sbox_bad.gif'; +$txt['sbox_smilie15_file'] = 'sbox_bang.gif'; +$txt['sbox_Monday'] = 'Monday'; +$txt['sbox_Tuesday'] = 'Tuesday'; +$txt['sbox_Wednesday'] = 'Wednesday'; +$txt['sbox_Thurday'] = 'Thurday'; +$txt['sbox_Friday'] = 'Friday'; +$txt['sbox_Saturday'] = 'Saturday'; +$txt['sbox_Sunday'] = 'Sunday'; +$txt['sbox_KillShout'] = 'Dou you want to kill this shout?'; +$txt['sbox_TextSize1'] = '1. Font size'; +$txt['sbox_TextColor1'] = '1. Font color'; +$txt['sbox_TextSize2'] = '2. Font size'; +$txt['sbox_TextColor2'] = '2. Font color'; +$txt['sbox_RefreshTime'] = 'Refresh time'; +$txt['sbox_BackgroundColor'] = 'Background color'; +$txt['sbox_FontFamily1'] = '1. Font family'; +$txt['sbox_FontFamily2'] = '2. Font family'; + + + + +$languagedir/Help.english.php + + + +?> + + + +//SMF Shoutbox +$helptxt['sbox_Visible'] = 'Here you can decide wether the shoutbox is visible or not,'; +$helptxt['sbox_GuestAllowed'] = 'Here you can decide wether the shoutbox smilies are visible or not'; +$helptxt['sbox_MaxLines'] = 'Here you can enter the maximal count of lines display by shoutbox.'; +$helptxt['sbox_Height'] = 'Here you can enter the height (pixels) of the shoutbox.'; +$helptxt['sbox_SmiliesVisible'] = 'Here you can decide wether smilies are visible or not.'; +$helptxt['sbox_TextSize1'] = 'Here you can adjust the 1. font size'; +$helptxt['sbox_TextColor1'] = 'Here you can adjust the 1. font color'; +$helptxt['sbox_TextSize2'] = 'Here you can adjust the 2. font size'; +$helptxt['sbox_TextColor2'] = 'Here you can adjust the 2. font color'; +$helptxt['sbox_RefreshTime'] = 'Here you can adjust the refresh time'; +$helptxt['sbox_BackgroundColor'] = 'Here you can adjust the background color'; +$helptxt['sbox_FontFamily1'] = 'Here you can adjust the 1. font family.'; +$helptxt['sbox_FontFamily2'] = 'Here you can adjust the 2. font family.'; + + + + +$sourcedir/ModSettings.php + + + + 'karma' => 'ModifyKarmaSettings', + + + + 'sbox' => 'ModifySboxSettings', + + + + 'layout' => array( + 'title' => $txt['mods_cat_layout'], + 'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'], + ), + + + + 'sbox' => array( + 'title' => $txt['sbox_ModTitle'], + 'href' => $scripturl . '?action=featuresettings;sa=sbox;sesc=' . $context['session_id'], + ), + + + +function ModifyKarmaSettings() + + + +function ModifySboxSettings() +{ + global $txt, $scripturl, $context, $settings, $sc; + + $config_vars = array + ( + array('check', 'sbox_Visible'), + array('check', 'sbox_GuestAllowed'), + array('check', 'sbox_SmiliesVisible'), + array('int', 'sbox_MaxLines'), + array('int', 'sbox_Height'), + array('int', 'sbox_RefreshTime'), + array('select', 'sbox_FontFamily1', array( + 'Garamond, serif' => 'Garamond, serif', + 'Times, serif' => 'Times, serif', + 'Arial, Helvetica, sans-serif' => 'Arial, Helvetica, sans-serif', + 'Tahoma, Helvetica, sans-sarif' => 'Tahoma, Helvetica, sans-sarif', + 'Verdana, sans-serif' => 'Verdana, sans-serif', + 'cursive' => 'cursive', + 'Palatino, fantasy' => 'Palatino, fantasy', + 'Courier, monospace' => 'Courier, monospace' + ), + ), + array('select', 'sbox_FontFamily2', array( + 'Garamond, serif' => 'Garamond, serif', + 'Times, serif' => 'Times, serif', + 'Arial, Helvetica, sans-serif' => 'Arial, Helvetica, sans-serif', + 'Tahoma, Helvetica, sans-sarif' => 'Tahoma, Helvetica, sans-sarif', + 'Verdana, sans-serif' => 'Verdana, sans-serif', + 'cursive' => 'cursive', + 'Palatino, fantasy' => 'Palatino, fantasy', + 'Courier, monospace' => 'Courier, monospace' + ), + ), + array('select', 'sbox_TextSize1', array( + '8px' => '8xp', + '9px' => '9xp', + '10px' => '10xp', + '11px' => '11xp', + '12px' => '12xp', + '13px' => '13xp', + '14px' => '14xp', + '15px' => '15xp', + '16px' => '16xp', + 'xx-small' => 'xx-small', + 'x-small' => 'x-small', + 'small' => 'small', + 'medium' => 'medium', + 'large' => 'large', + 'x-large' => 'x-large', + 'xx-large' => 'xx-large' + ), + ), + array('text', 'sbox_TextColor1'), + array('select', 'sbox_TextSize2', array( + '8px' => '8xp', + '9px' => '9xp', + '10px' => '10xp', + '11px' => '11xp', + '12px' => '12xp', + '13px' => '13xp', + '14px' => '14xp', + '15px' => '15xp', + '16px' => '16xp', + 'xx-small' => 'xx-small', + 'x-small' => 'x-small', + 'small' => 'small', + 'medium' => 'medium', + 'large' => 'large', + 'x-large' => 'x-large', + 'xx-large' => 'xx-large' + ), + ), + array('text', 'sbox_TextColor2'), + array('text', 'sbox_BackgroundColor') + ); + + // Saving? + if (isset($_GET['save'])) + { + saveDBSettings($config_vars); + redirectexit('action=featuresettings;sa=sbox'); + } + + $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=sbox'; + $context['settings_title'] = $txt['sbox_ModTitle']; + + prepareDBSettingContext($config_vars); +} + + + + +$sourcedir/Subs.php + + + + log_error('Copyright removed!!'); + } +} + + + + +function sbox() +{ + global $sourcedir; + + include_once("$sourcedir/sbox.php"); + sbox_display(); +} + + + + +$themedir/BoardIndex.template.php + + + + + + + '; + } + + + + + // display shoutbox + if (function_exists('sbox')) sbox(); + + + +$themedir/index.template.php + + + + echo $context['html_headers'], ' + + + + + + + + +$themedir/script.js + + + + doForm.admin_hash_pass.value = hex_sha1(hex_sha1(username.toLowerCase() + doForm.admin_pass.value) + cur_session_id); + doForm.admin_pass.value = doForm.admin_pass.value.replace(/./g, "*"); +} + + + + +function clearSbox() +{ + // Delete shoutbox message text after shout has been submitted + if (document.sbox) + document.sbox.sboxText.value=""; +} + +function insertSmilie(smilieCode) +{ + // insert smilie code into shoutbox text + if (document.sbox) + { + var smilie = " " + smilieCode; + var sboxText = document.sbox.sboxText; + + if (sboxText.textLength) + if (sboxText.textLength >= 0) + { + sboxText.focus(); + var startSelection = sboxText.selectionStart; + var endSelection = sboxText.textLength; + sboxText.value = sboxText.value.substring(0,startSelection) + smilie + sboxText.value.substring(sboxText.selectionEnd,endSelection); + sboxText.selectionStart = startSelection; + sboxText.selectionEnd = startSelection; + sboxText.selectionStart = sboxText.selectionStart + smilie.length; + return; + } + var browser = navigator.userAgent.toLowerCase(); + var browserInternetExplorer = ((browser.indexOf("msie") != -1) && (browser.indexOf("opera") == -1)); + var platformWindows = ((browser.indexOf("win")!=-1) || (browser.indexOf("16bit")!=-1)); + if (browserInternetExplorer && platformWindows && (parseInt(navigator.appVersion) >= 4)) + { + if(sboxText.isTextEdit) + { + sboxText.focus(); + var selection = document.selection; + var range = selection.createRange(); + range.colapse; + if (range != null && (selection.type == "Text" || selection.type == "None")) + range.text = smilie; + return; + } + } + sboxText.value += smilie; + sboxText.focus(); + } +} + + diff --git a/sbox_yeah.gif b/sbox_yeah.gif new file mode 100644 index 0000000000000000000000000000000000000000..e1f0b81c58f81921d8d1c3489653500809aa2a3e GIT binary patch literal 343 zcmZ?wbhEHb6lV}&Sj5V36o9uz3N0x;)n71+-@@Pd1b$@Mrn z;`Tm*OQv%E>C+ljr5RjlzAb)6E`F@7y?w1c6DIa|3s2$Z1iOU+