|  Leitwolf 
 
   Try to beat me
 
 
  
 
 
 Beiträge: 188
 
 | # Thema - 23.09.2015 um 17:40 Uhr Durch das update das mit an allen Stellen AYAH eingebaut hat, wurde auch die navlist.php und navlist.tpl des Shoutboxmoduls geändert. Ich hatte ein Shoutboxmodul verwendet wo auch Smily´s durch anklicken eingefügt werden konnten, die Funktion ist leider weg. Könntet Ihr mir helfen den code so wieder umzuschreiben das AYAH bleibt & die Smiylies wieder zur Auswahl stehen? Hier noch die alten und neuen Versionen der php und tpl Dateien:
 
 navlist.tpl mit Smilys
   
| 
 1. 2.
 3.
 4.
 5.
 6.
 7.
 8.
 9.
 10.
 11.
 12.
 13.
 14.
 15.
 16.
 17.
 18.
 19.
 20.
 21.
 22.
 23.
 24.
 
 | 1. / 2. / ... 
  <div style="overflow:auto; height:{height:shoutbox}px" id="cs_shoutbox_navlist2">{loop:shoutbox}
 <div style="text-align:left; color:#{color:shoutbox};">{shoutbox:shoutbox_name}</div>
 <div style="padding-left:3px;">{shoutbox:shoutbox_text}</div>
 <div style="text-align:right; color:#{color:shoutbox};"><font size="1">({shoutbox:shoutbox_date})</font></div>
 <hr style="width:100%; color: #feb407" />
 {stop:shoutbox}
 </div>
 <br />
 
 <form method="post" id="shout_navlist" name="shout_navlist" action="{form:url}">
 <fieldset style="border: 0; padding: 0">
 <input type="text" name="sh_nick" value="{form:nick}" onfocus="if(this.value=='Nick') this.value=''" onblur="if(this.value=='')this.value='Nick'" maxlength="40" size="15" /> {characters_left:shoutbox}<br />
 <textarea  name="sh_text" id="sh_text" cols="15" rows="0" class="form" maxlength="500" onkeydown="CheckLen(this)" onkeyup="CheckLen(this)" onfocus="CheckLen(this)"  wrap="VIRTUAL"  onchange="CheckLen(this)"></textarea><br />
 {if:captcha}
 <input type="text" name="captcha" value="" maxlength="3" size="3" /> {captcha:img}
 {stop:captcha}<br />
 <input type="submit" name="submit" value="Speichern" />
 <input type="hidden" name="uri" value="{form:uri}" />
 </fieldset>
 </form>
 <br />
 {abcode:smileys}
 <a href="{url:archieve}">{lang:archieve}</a>
 | 
 
 navlist.tpl mit AYAH
   
| 
 1. 2.
 3.
 4.
 5.
 6.
 7.
 8.
 9.
 10.
 11.
 12.
 13.
 14.
 15.
 16.
 17.
 18.
 19.
 20.
 21.
 22.
 23.
 24.
 25.
 26.
 27.
 
 | 1. / 2. / ... 
  <div style="overflow:auto" id="cs_shoutbox_navlist2">{loop:shoutbox}
 <div style="text-align:left; color:#e70505;">{shoutbox:shoutbox_name}</div>
 <div style="padding-left:3px;">{shoutbox:shoutbox_text}</div>
 <div style="text-align:right; color:#e70505;"><font size="1">({shoutbox:shoutbox_date})</font></div>
 <hr style="width:100%; color:#feb407" />
 {stop:shoutbox}
 </div>
 <br />
 
 {if:form}
 <form method="post" id="shout_navlist" action="{form:url}">
 <fieldset style="border: 0; padding: 0">
 <input type="text" name="sh_nick" value="{form:nick}" onfocus="if(this.value=='Nick') this.value=''" onblur="if(this.value=='')this.value='Nick'" maxlength="40" size="15" /><br />
 <textarea name="sh_text" cols="15" rows="2"></textarea><br />
 {if:captcha}
 {captcha:img}
 {stop:captcha}<br />
 <input type="submit" name="submit" value="Speichern" />
 <input type="hidden" name="uri" value="{form:uri}" />
 </fieldset>
 </form>
 <br />
 
 {stop:form}
 
 <a href="{url:archieve}">{lang:archieve}</a>
 | 
 
 Und die PHP´s:
 
 navlist.php mit Smilys
   
| 
 1. 2.
 3.
 4.
 5.
 6.
 7.
 8.
 9.
 10.
 11.
 12.
 13.
 14.
 15.
 16.
 17.
 18.
 19.
 20.
 21.
 22.
 23.
 24.
 25.
 26.
 27.
 28.
 29.
 30.
 31.
 32.
 33.
 34.
 35.
 36.
 37.
 38.
 39.
 40.
 41.
 42.
 43.
 44.
 45.
 46.
 47.
 48.
 49.
 50.
 51.
 52.
 53.
 54.
 55.
 56.
 57.
 58.
 59.
 60.
 61.
 62.
 63.
 64.
 65.
 66.
 67.
 68.
 69.
 70.
 71.
 72.
 73.
 74.
 75.
 76.
 77.
 78.
 79.
 80.
 81.
 82.
 83.
 84.
 85.
 86.
 87.
 88.
 89.
 90.
 91.
 
 | 1. / 2. / ... 
 <?php // ClanSphere 2010 - www.clansphere.net
 // $Id$
 
 $cs_lang = cs_translate('shoutbox');
 
 $captcha = extension_loaded('gd') ? 1 : 0;
 
 $shoutbox_count = cs_sql_count(__FILE__,'shoutbox');
 $shoutbox_options = cs_sql_option(__FILE__,'shoutbox');
 
 $data = array();
 
 $data['shoutbox'] = '';
 
 $min = 0;
 
 if ($shoutbox_options['order'] == 'ASC') {
 $order = 'shoutbox_date ASC';
 
 if ($shoutbox_count > $shoutbox_options['limit']) {
 $min = $shoutbox_count - $shoutbox_options['limit'];
 }
 }
 else
 $order = 'shoutbox_date DESC';
 
 $cells = 'shoutbox_name, shoutbox_text, shoutbox_date';
 $data['shoutbox'] = cs_sql_select(__FILE__,'shoutbox',$cells,0,$order,$min,$shoutbox_options['limit']);
 
 $pattern = "=([^\s*?]{".$shoutbox_options['linebreak']."})(?![^<]+>|[^&]*;)=";
 $count_shoutbox = count($data['shoutbox']);
 
 for($i = 0; $i < $count_shoutbox; $i++) {
 $temp = preg_replace($pattern,"\\0 ",$data['shoutbox'][$i]['shoutbox_text']);
 $data['shoutbox'][$i]['shoutbox_text'] = cs_secure($temp,0,1,0);
 $data['shoutbox'][$i]['shoutbox_name'] = cs_secure($data['shoutbox'][$i]['shoutbox_name'],0,0,0);
 $data['shoutbox'][$i]['shoutbox_date'] = cs_date('unix',$data['shoutbox'][$i]['shoutbox_date'],1);
 }
 $data['form']['url'] = cs_url('shoutbox','create');
 $data['form']['nick'] = empty($account['users_nick']) ? 'Nick' : cs_secure($account['users_nick']);
 $data['height']['shoutbox'] = $shoutbox_options['height'];
 $data['color']['shoutbox'] = $shoutbox_options['color'];
 
 $data['if']['captcha'] = FALSE;
 if(!empty($captcha) && empty($account['users_id'])) {
 $data['if']['captcha'] = TRUE;
 $data['captcha']['img'] = cs_html_img('mods/captcha/generate.php?mini');
 }
 
 $data['url']['archieve'] = cs_url('shoutbox','list');
 $data['form']['uri'] = cs_url_self();
 
 $max_text = $shoutbox_options['max_text'];
 
 if ($shoutbox_options['characters_left'] == '1')
 {
 echo "<script type=\"text/javascript\">
 function CheckLen(Target)
 {
 var max_text = \"".$max_text."\";
 StrLen=Target.value.length;
 if (StrLen==1&&Target.value.substring(0,1)==\" \")
 {
 Target.value=\"\";
 StrLen=0;
 }
 if (StrLen>max_text )
 {
 Target.value=Target.value.substring(0,max_text);
 CharsLeft=0;
 }else
 {
 CharsLeft=max_text-StrLen;
 }
 document.shout_navlist.Anzahl.value=CharsLeft;
 }
 </script>";
 $data['characters_left']['shoutbox'] = '<input readonly="readonly" maxlength="3" size="2" name="Anzahl" class="form">{lang:characters_left_short}<br />';
 }
 else {
 $data['characters_left']['shoutbox'] = '';
 }
 
 if ($shoutbox_options['show_smilies'] == '1')
 { $data['abcode']['smileys'] = cs_abcode_smileys('sh_text');
 }
 else {
 $data['abcode']['smileys'] = '';
 }
 echo cs_subtemplate(__FILE__,$data,'shoutbox','navlist');
 | 
 
 navlist.php mit AYAH
   
| 
 1. 2.
 3.
 4.
 5.
 6.
 7.
 8.
 9.
 10.
 11.
 12.
 13.
 14.
 15.
 16.
 17.
 18.
 19.
 20.
 21.
 22.
 23.
 24.
 25.
 26.
 27.
 28.
 29.
 30.
 31.
 32.
 33.
 34.
 35.
 36.
 37.
 38.
 39.
 40.
 41.
 42.
 43.
 44.
 45.
 46.
 47.
 48.
 49.
 50.
 51.
 52.
 53.
 54.
 55.
 56.
 57.
 58.
 59.
 60.
 61.
 
 | 1. / 2. / ... 
 <?php // ClanSphere 2010 - www.clansphere.net
 // $Id$
 
 $cs_lang = cs_translate('shoutbox');
 require_once('mods/captcha/functions.php');
 
 require 'mods/shoutbox/access.php';
 
 $captcha = extension_loaded('gd') ? 1 : 0;
 
 $shoutbox_count = cs_sql_count(__FILE__,'shoutbox');
 $shoutbox_options = cs_sql_option(__FILE__,'shoutbox');
 
 $data = array();
 
 $data['shoutbox'] = '';
 
 $min = 0;
 
 if ($shoutbox_options['order'] == 'ASC') {
 $order = 'shoutbox_date ASC';
 
 if ($shoutbox_count > $shoutbox_options['limit']) {
 $min = $shoutbox_count - $shoutbox_options['limit'];
 }
 }
 else
 $order = 'shoutbox_date DESC';
 
 $cells = 'shoutbox_name, shoutbox_text, shoutbox_date';
 $data['shoutbox'] = cs_sql_select(__FILE__,'shoutbox',$cells,0,$order,$min,$shoutbox_options['limit']);
 
 $pattern = "=([^\s*?]{".$shoutbox_options['linebreak']."})(?![^<]+>|[^&]*;)=";
 $count_shoutbox = count($data['shoutbox']);
 
 for($i = 0; $i < $count_shoutbox; $i++) {
 $temp = preg_replace($pattern,"\\0 ",$data['shoutbox'][$i]['shoutbox_text']);
 $data['shoutbox'][$i]['shoutbox_text'] = cs_secure($temp,0,1,0);
 $data['shoutbox'][$i]['shoutbox_name'] = cs_secure($data['shoutbox'][$i]['shoutbox_name'],0,0,0);
 $data['shoutbox'][$i]['shoutbox_date'] = cs_date('unix',$data['shoutbox'][$i]['shoutbox_date'],1);
 }
 
 $data['url']['archieve'] = cs_url('shoutbox','list');
 
 $data['if']['form'] = $account['access_shoutbox'] >= $axx_file['create'];
 
 if($data['if']['form'] === TRUE) {
 $data['form']['url'] = cs_url('shoutbox','create');
 $data['form']['nick'] = empty($account['users_nick']) ? 'Nick' : cs_secure($account['users_nick']);
 
 $data['if']['captcha'] = FALSE;
 if(!empty($captcha) && empty($account['users_id'])) {
 $data['if']['captcha'] = TRUE;
 $data['captcha']['img'] = cs_captchashow(1);
 }
 
 $data['form']['uri'] = cs_url_self();
 }
 
 echo cs_subtemplate(__FILE__,$data,'shoutbox','navlist');
 | 
 
 Vorab vielen Dank für eure Mühe!
 
 
 
 
 
 
 
 ------------------
 
   |