This patch also includes some changes to empty lines. My editor kills unneded spaces at the end of lines.

- Code: Select all
Index: themes/default/templates/chat.html.tpl.php
===================================================================
--- themes/default/templates/chat.html.tpl.php (Revision 324)
+++ themes/default/templates/chat.html.tpl.php (Arbeitskopie)
@@ -25,10 +25,14 @@
<div class="<?php echo $prefix; ?>btn"><img src="<?php echo $c->getFileUrlFromTheme('images/logout.gif'); ?>" alt="" title="" id="<?php echo $prefix; ?>loginlogout" onclick="pfc.connect_disconnect()" /></div>
<div class="<?php echo $prefix; ?>btn"><img src="<?php echo $c->getFileUrlFromTheme('images/color-on.gif'); ?>" alt="" title="" id="<?php echo $prefix; ?>nickmarker" onclick="pfc.nickmarker_swap()" /></div>
<div class="<?php echo $prefix; ?>btn"><img src="<?php echo $c->getFileUrlFromTheme('images/clock-on.gif'); ?>" alt="" title="" id="<?php echo $prefix; ?>clock" onclick="pfc.clock_swap()" /></div>
+ <?php if ($c->btn_sh_smileys && $c->showsmileys) { ?>
<div class="<?php echo $prefix; ?>btn"><img src="<?php echo $c->getFileUrlFromTheme('images/smiley-on.gif'); ?>" alt="" title="" id="<?php echo $prefix; ?>showHideSmileysbtn" onclick="pfc.showHideSmileys()" /></div>
+ <?php } ?>
+ <?php if ($c->btn_sh_whosonline && $c->showwhosonline) { ?>
<div class="<?php echo $prefix; ?>btn"><img src="<?php echo $c->getFileUrlFromTheme('images/online-on.gif'); ?>" alt="" title="" id="<?php echo $prefix; ?>showHideWhosOnlineBtn" onclick="pfc.showHideWhosOnline()" /></div>
+ <?php } ?>
</div>
-
+
<div id="<?php echo $prefix; ?>bbcode_container">
<div class="<?php echo $prefix; ?>btn"><img src="<?php echo $c->getFileUrlFromTheme('images/bt_strong.gif'); ?>" alt="<?php echo _pfc("Bold"); ?>" title="<?php echo _pfc("Bold"); ?>" id="<?php echo $prefix; ?>bt_strong" onclick="pfc.insert_text('[b]','[/b]')" /></div>
<div class="<?php echo $prefix; ?>btn"><img src="<?php echo $c->getFileUrlFromTheme('images/bt_em.gif'); ?>" alt="<?php echo _pfc("Italics"); ?>" title="<?php echo _pfc("Italics"); ?>" id="<?php echo $prefix; ?>bt_strong" onclick="pfc.insert_text('[i]','[/i]')" /></div>
Index: src/phpfreechatconfig.class.php
===================================================================
--- src/phpfreechatconfig.class.php (Revision 324)
+++ src/phpfreechatconfig.class.php (Arbeitskopie)
@@ -50,16 +50,18 @@
var $openlinknewwindow = true; // used to open the links in a new window
var $showwhosonline = true;
var $showsmileys = true;
-
+ var $btn_sh_whosonline = true; // display show/hide button for who is online
+ var $btn_sh_smileys = true; // display show/hide button for smileys
+
var $theme = "default";
var $themepath = "";
var $themeurl = "";
var $themepath_default = "";
var $themeurl_default = "";
-
+
var $language = ""; // could be something in i18n/* directory ("" means the language is guess from the server config)
var $output_encoding = "UTF-8"; // could be ISO-8859-1 or anything else (which must be supported by iconv php module)
- var $container_type = "File";
+ var $container_type = "File";
var $client_script_path = "";
var $client_script_url = ""; // default is calculated from 'client_script_path'
Bernhard