4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: Sunny C. on October 31, 2009, 12:17:13 AM

Title: - delete -
Post by: Sunny C. on October 31, 2009, 12:17:13 AM
- delete -
Title: Re: [MOD] Linkus Control
Post by: Nicky on October 31, 2009, 01:07:04 AM
Benny,

ich will dir nicht am wecker gehen... ich selber schätze das du dich bemühst aber das hat echt keinen sinn.

einfaches HTML code in der linkus.html würde reichen als die ganzen 4images dateien zu modifizieren..

beispiel:
Code: [Select]
<table width="100%" border="0" cellspacing="0" cellpadding="1">
  <tr>
    <td valign="top" class="head1">
      <table width="100%" border="0" cellpadding="4" cellspacing="0">
        <tr>
          <td colspan="2" valign="top" class="head1">Halbbanner: 234x60 Pixel</td>
          </tr>
        <tr>
          <td colspan="2" align="center" class="row2"><img src="http://4images.trackworx.net/templates/default/images/linkus?sessionid=6048baa1f5667d2171ed237d92dd5f72/halbbanner.png" width="234" height="60" border="0" alt="Beschreibung" title="Beschreibung" /></td>
          </tr>

        <tr>
          <td class="row1"><b>HTML</b></td>
          <td class="row1" align="right"><textarea cols="45" onfocus = "this.select()" onmouseover = "this.focus()"><a href="" target="_blank"><img src="http://4images.trackworx.net/templates/default/images/linkus?sessionid=6048baa1f5667d2171ed237d92dd5f72/halbbanner.png" width="234" height="60" border="0" alt="Beschreibung" title="Beschreibung"></a></textarea></td>
        </tr>
        <tr>
          <td class="row2"><b>XHTML</b></td>
          <td class="row2" align="right"><textarea cols="45" onfocus = "this.select()" onmouseover = "this.focus()"><a href=""><img src="http://4images.trackworx.net/templates/default/images/linkus?sessionid=6048baa1f5667d2171ed237d92dd5f72/halbbanner.png" width="234" height="60" border="0" alt="Beschreibung" title="Beschreibung" /></a></textarea></td>
        </tr>

        <tr>
          <td class="row1"><strong>BBCODE</strong></td>
          <td class="row1" align="right"><textarea cols="45" onfocus = "this.select()" onmouseover = "this.focus()">[URL=http://4images.trackworx.net/index.php?sessionid=6048baa1f5667d2171ed237d92dd5f72][IMG]http://4images.trackworx.net/templates/default/images/linkus?sessionid=6048baa1f5667d2171ed237d92dd5f72/halbbanner.png[/IMG][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table>

FERTIG  :mrgreen:

ausserdem zeigt mir deine demo gerade sowas an = keine banner = bissi was kaputt  :lol:
Code: [Select]
<a href="" target="_blank"><img src="http://4images.trackworx.net/templates/default/images/linkus?sessionid=6048baa1f5667d2171ed237d92dd5f72/vollbanner.png" width="468" height="60" border="0" alt="Beschreibung" title="Beschreibung"></a>
Title: Re: [MOD] Linkus Control [BETA]
Post by: GaYan on February 08, 2010, 07:17:47 PM
i cant understand to install this  :oops: can some1 discribe this in a propert way  :mrgreen: im not a genius guys :( plz hlp/... tnx !
Title: Re: [MOD] Linkus Control
Post by: MrAndrew on September 25, 2010, 11:30:15 AM
Why i see this notice?

Code: [Select]
Notice: Undefined index: sumale_linkus_468x60 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 98

Notice: Undefined index: sumale_linkus_234x60 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 101

Notice: Undefined index: sumale_linkus_156x60 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 104

Notice: Undefined index: sumale_linkus_400x50 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 107

Notice: Undefined index: sumale_linkus_137x60 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 110

Notice: Undefined index: sumale_linkus_88x31 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 113

Notice: Undefined index: sumale_linkus_125x125 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 116

Notice: Undefined index: sumale_linkus_75x75 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 119

Notice: Undefined index: sumale_linkus_120x600 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 122

Notice: Undefined index: sumale_linkus_160x600 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 125

Part from page_header.php

$file = get_included_files();
$file = get_file_name(basename($file[0]));
$list = array("categories", "details", "index", "member", "postcards", "register", "search", "top");
$array = array();
foreach ($list as $name)
{
  $array[$name] = ($name == $file);
}
$site_template->register_vars($array);
//-----------------------------------------------------
//--- Sumale.nin LinkUs Control -----------------------
//-----------------------------------------------------
$sumale_linkus_468x60 = $config['sumale_linkus_468x60'];
$sumale_linkus_468x60_beschreibung = $config['sumale_linkus_468x60_beschreibung'];
$sumale_linkus_468x60_grafik = $config['sumale_linkus_468x60_grafik'];
$sumale_linkus_234x60 = $config['sumale_linkus_234x60'];
$sumale_linkus_234x60_beschreibung = $config['sumale_linkus_234x60_beschreibung'];
$sumale_linkus_234x60_grafik = $config['sumale_linkus_234x60_grafik'];
$sumale_linkus_156x60 = $config['sumale_linkus_156x60'];
$sumale_linkus_156x60_beschreibung = $config['sumale_linkus_156x60_beschreibung'];
$sumale_linkus_156x60_grafik = $config['sumale_linkus_156x60_grafik'];
$sumale_linkus_400x50 = $config['sumale_linkus_400x50'];
$sumale_linkus_400x50_beschreibung = $config['sumale_linkus_400x50_beschreibung'];
$sumale_linkus_400x50_grafik = $config['sumale_linkus_400x50_grafik'];
$sumale_linkus_137x60 = $config['sumale_linkus_137x60'];
$sumale_linkus_137x60_beschreibung = $config['sumale_linkus_137x60_beschreibung'];
$sumale_linkus_137x60_grafik = $config['sumale_linkus_137x60_grafik'];
$sumale_linkus_88x31 = $config['sumale_linkus_88x31'];
$sumale_linkus_88x31_beschreibung = $config['sumale_linkus_88x31_beschreibung'];
$sumale_linkus_88x31_grafik = $config['sumale_linkus_88x31_grafik'];
$sumale_linkus_125x125 = $config['sumale_linkus_125x125'];
$sumale_linkus_125x125_beschreibung = $config['sumale_linkus_125x125_beschreibung'];
$sumale_linkus_125x125_grafik = $config['sumale_linkus_125x125_grafik'];
$sumale_linkus_75x75 = $config['sumale_linkus_75x75'];
$sumale_linkus_75x75_beschreibung = $config['sumale_linkus_75x75_beschreibung'];
$sumale_linkus_75x75_grafik = $config['sumale_linkus_75x75_grafik'];
$sumale_linkus_120x600 = $config['sumale_linkus_120x600'];
$sumale_linkus_120x600_beschreibung = $config['sumale_linkus_120x600_beschreibung'];
$sumale_linkus_120x600_grafik = $config['sumale_linkus_120x600_grafik'];
$sumale_linkus_160x600 = $config['sumale_linkus_160x600'];
$sumale_linkus_160x600_beschreibung = $config['sumale_linkus_160x600_beschreibung'];
$sumale_linkus_160x600_grafik = $config['sumale_linkus_160x600_grafik'];

   if($config['sumale_linkus_468x60_onoff'] == 1)  {
   $sumale_linkus_468x60 .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_468x60']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_468x60_grafik."\" width=\"468\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_468x60_beschreibung."\" title=\"".$sumale_linkus_468x60_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_468x60_grafik."\" width=\"468\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_468x60_beschreibung."\" title=\"".$sumale_linkus_468x60_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_468x60_grafik."\" width=\"468\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_468x60_beschreibung."\" title=\"".$sumale_linkus_468x60_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_468x60_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
   if($config['sumale_linkus_234x60_onoff'] == 1)  {
   $sumale_linkus_234x60 .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_234x60']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_234x60_grafik."\" width=\"234\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_234x60_beschreibung."\" title=\"".$sumale_linkus_234x60_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_234x60_grafik."\" width=\"234\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_234x60_beschreibung."\" title=\"".$sumale_linkus_234x60_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_234x60_grafik."\" width=\"234\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_234x60_beschreibung."\" title=\"".$sumale_linkus_234x60_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_234x60_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
   if($config['sumale_linkus_156x60_onoff'] == 1)  {
   $sumale_linkus_156x60 .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_156x60']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_156x60_grafik."\" width=\"156\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_156x60_beschreibung."\" title=\"".$sumale_linkus_156x60_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_156x60_grafik."\" width=\"156\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_156x60_beschreibung."\" title=\"".$sumale_linkus_156x60_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_156x60_grafik."\" width=\"156\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_156x60_beschreibung."\" title=\"".$sumale_linkus_156x60_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_156x60_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
   if($config['sumale_linkus_400x50_onoff'] == 1)  {
   $sumale_linkus_400x50 .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_400x50']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_400x50_grafik."\" width=\"400\" height=\"50\" border=\"0\" alt=\"".$sumale_linkus_400x50_beschreibung."\" title=\"".$sumale_linkus_400x50_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_400x50_grafik."\" width=\"400\" height=\"50\" border=\"0\" alt=\"".$sumale_linkus_400x50_beschreibung."\" title=\"".$sumale_linkus_400x50_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_400x50_grafik."\" width=\"400\" height=\"50\" border=\"0\" alt=\"".$sumale_linkus_400x50_beschreibung."\" title=\"".$sumale_linkus_400x50_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_400x50_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
   if($config['sumale_linkus_137x60_onoff'] == 1)  {
   $sumale_linkus_137x60 .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_137x60']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_137x60_grafik."\" width=\"137\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_137x60_beschreibung."\" title=\"".$sumale_linkus_137x60_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_137x60_grafik."\" width=\"137\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_137x60_beschreibung."\" title=\"".$sumale_linkus_137x60_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_137x60_grafik."\" width=\"137\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_137x60_beschreibung."\" title=\"".$sumale_linkus_137x60_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_137x60_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
   if($config['sumale_linkus_88x31_onoff'] == 1)  {
   $sumale_linkus_88x31 .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_88x31']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_88x31_grafik."\" width=\"88\" height=\"31\" border=\"0\" alt=\"".$sumale_linkus_88x31_beschreibung."\" title=\"".$sumale_linkus_88x31_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_88x31_grafik."\" width=\"88\" height=\"31\" border=\"0\" alt=\"".$sumale_linkus_88x31_beschreibung."\" title=\"".$sumale_linkus_88x31_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_88x31_grafik."\" width=\"88\" height=\"31\" border=\"0\" alt=\"".$sumale_linkus_88x31_beschreibung."\" title=\"".$sumale_linkus_88x31_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_88x31_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
   if($config['sumale_linkus_125x125_onoff'] == 1)  {
   $sumale_linkus_125x125 .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_125x125']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_125x125_grafik."\" width=\"125\" height=\"125\" border=\"0\" alt=\"".$sumale_linkus_125x125_beschreibung."\" title=\"".$sumale_linkus_125x125_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_125x125_grafik."\" width=\"125\" height=\"125\" border=\"0\" alt=\"".$sumale_linkus_125x125_beschreibung."\" title=\"".$sumale_linkus_125x125_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_125x125_grafik."\" width=\"125\" height=\"125\" border=\"0\" alt=\"".$sumale_linkus_125x125_beschreibung."\" title=\"".$sumale_linkus_125x125_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_125x125_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
   if($config['sumale_linkus_75x75_onoff'] == 1)  {
   $sumale_linkus_75x75 .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_75x75']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_75x75_grafik."\" width=\"75\" height=\"75\" border=\"0\" alt=\"".$sumale_linkus_75x75_beschreibung."\" title=\"".$sumale_linkus_75x75_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_75x75_grafik."\" width=\"75\" height=\"75\" border=\"0\" alt=\"".$sumale_linkus_75x75_beschreibung."\" title=\"".$sumale_linkus_75x75_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_75x75_grafik."\" width=\"75\" height=\"75\" border=\"0\" alt=\"".$sumale_linkus_75x75_beschreibung."\" title=\"".$sumale_linkus_75x75_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_75x75_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
   if($config['sumale_linkus_120x600_onoff'] == 1)  {
   $sumale_linkus_120x600 .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_120x600']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_120x600_grafik."\" width=\"120\" height=\"600\" border=\"0\" alt=\"".$sumale_linkus_120x600_beschreibung."\" title=\"".$sumale_linkus_120x600_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_120x600_grafik."\" width=\"120\" height=\"600\" border=\"0\" alt=\"".$sumale_linkus_120x600_beschreibung."\" title=\"".$sumale_linkus_120x600_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_120x600_grafik."\" width=\"120\" height=\"600\" border=\"0\" alt=\"".$sumale_linkus_120x600_beschreibung."\" title=\"".$sumale_linkus_120x600_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_120x600_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
   if($config['sumale_linkus_160x600_onoff'] == 1)  {
   $sumale_linkus_160x600 .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_160x600']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_160x600_grafik."\" width=\"160\" height=\"600\" border=\"0\" alt=\"".$sumale_linkus_160x600_beschreibung."\" title=\"".$sumale_linkus_160x600_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_160x600_grafik."\" width=\"160\" height=\"600\" border=\"0\" alt=\"".$sumale_linkus_160x600_beschreibung."\" title=\"".$sumale_linkus_160x600_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_160x600_grafik."\" width=\"160\" height=\"600\" border=\"0\" alt=\"".$sumale_linkus_160x600_beschreibung."\" title=\"".$sumale_linkus_160x600_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_160x600_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
$query_string = '';
if (!empty($HTTP_GET_VARS)) {
  foreach ($HTTP_GET_VARS as $key => $val) {
    if ($key != "l") {
      $query_string .= ($query_string != '' ? '&' : '?').$key."=".$val;
    }
  }
}
$lang_url = $site_sess->url($PHP_SELF.$query_string, '&');
$lang_url = preg_replace("'&(amp|#38);'i", "&", $lang_url);
$lang_url = preg_replace("/[?|&]l=[^?|&]*/", "", $lang_url);
Title: Re: [MOD] Linkus Control
Post by: V@no on September 25, 2010, 09:43:04 PM
Failed step 8?
Title: Re: [MOD] Linkus Control
Post by: MrAndrew on September 25, 2010, 09:47:44 PM
No. Checked it now  :cry:

I noticed that from time to time an error:

From 98 rows and then after 3 - 98, 101, 104, 107 and other to 125

and

From 99 rows and then after 3 - 99, 102, 105, 108 and other to 126
Title: Re: [MOD] Linkus Control
Post by: Sunny C. on September 28, 2010, 08:20:14 PM
Give me your page_header.php without the built-in code
Title: Re: [MOD] Linkus Control
Post by: MrAndrew on September 28, 2010, 10:38:16 PM
Ok. Thanks for help

This is page_header without MOD code

<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: page_header.php                                      *
 *        Copyright: (C) 2002-2009 Jan Sorgalla                           *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.7                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) fьr weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

if (!defined('ROOT_PATH')) {
  die("Security violation");
}

// Cache Templates
/*$template_list = 'header,footer,category_dropdown_form,user_logininfo,user_loginform';
if (isset($templates_used) && $templates_used != "") {
  $template_list = $template_list.",".$templates_used;
}
$site_template->cache_templates($template_list);*/

//-----------------------------------------------------
//--- Register Global Vars ----------------------------
//-----------------------------------------------------
$total_images = 0;
$total_categories = 0;
$auth_cat_sql['auth_viewcat']['IN'] = 0;
$auth_cat_sql['auth_viewcat']['NOTIN'] = 0;

$cache_id = create_cache_id(
  'data.auth_and_info',
  array($user_info[$user_table_fields['user_id']])
);

if (!$data = get_cache_file($cache_id, null)) {
  if (!empty($cat_cache)) {
    foreach ($cat_cache as $key => $val) {
      if (check_permission("auth_viewcat", $key)) {
        $total_categories++;
        if (isset($val['num_images'])) {
          $total_images += $val['num_images'];
        }
        else {
          $cat_cache[$key]['num_images'] = 0;
        }
        $auth_cat_sql['auth_viewcat']['IN'] .= ", ".$key;
      }
      else {
        $auth_cat_sql['auth_viewcat']['NOTIN'] .= ", ".$key;
      }
    }
  }

  $data = array();

  $data['total_images'] = $total_images;
  $data['total_categories'] = $total_categories;
  $data['auth_viewcat']['IN'] = $auth_cat_sql['auth_viewcat']['IN'];
  $data['auth_viewcat']['NOTIN'] = $auth_cat_sql['auth_viewcat']['NOTIN'];

  save_cache_file($cache_id, serialize($data));

} else {
  $data = unserialize($data);

  $total_images = $data['total_images'];
  $total_categories = $data['total_categories'];
  $auth_cat_sql['auth_viewcat']['IN'] = $data['auth_viewcat']['IN'];
  $auth_cat_sql['auth_viewcat']['NOTIN'] = $data['auth_viewcat']['NOTIN'];
}

$file = get_included_files();
$file = get_file_name(basename($file[0]));
$list = array("categories", "details", "index", "member", "postcards", "register", "search", "top");
$array = array();
foreach ($list as $name)
{
  $array[$name] = ($name == $file);
}
$site_template->register_vars($array);



$query_string = '';
if (!empty($HTTP_GET_VARS)) {
  foreach ($HTTP_GET_VARS as $key => $val) {
    if ($key != "l") {
      $query_string .= ($query_string != '' ? '&' : '?').$key."=".$val;
    }
  }
}
$lang_url = $site_sess->url($PHP_SELF.$query_string, '&');
$lang_url = preg_replace("'&(amp|#38);'i", "&", $lang_url);
$lang_url = preg_replace("/[?|&]l=[^?|&]*/", "", $lang_url);
$lang_url = str_replace("&", "&amp;", $lang_url);
$handle = opendir(ROOT_PATH."lang");
$lang_select = "";
while ($folder = @readdir($handle)) {
  if (@is_dir(ROOT_PATH."lang/".$folder) && $folder != "." && $folder != "..") {
    if ($folder != $config['language_dir']) {
      $lang_select .= "<a class=\"lang\" href=\"".$lang_url.(preg_match("/\?/", $lang_url) ? "&" : "?")."l=".$folder."\" onMouseOver=\"(window.status='$folder'); return true\" onMouseOut=\"window.status=''; return true\"><img src=\"".TEMPLATE_PATH."/images/".$folder.".gif\" border=\"0\" alt=\"".$folder."\"></a>&nbsp;";
    }else{
    $lang_select .= "<img src=\"".TEMPLATE_PATH."/images/".$folder."2.gif\" border=\"0\" alt=\"".$folder."\">&nbsp;";
    }
  }
}
// Register the dropdown code for the template engine
$sql = "SELECT c.comment_id
      FROM ".COMMENTS_TABLE." c
      LEFT JOIN ".IMAGES_TABLE." i ON i.image_id = c.image_id
      WHERE i.user_id = ".$user_info['user_id']." AND c.is_read = 0";
$result = $site_db->query($sql);
$new_comments = $site_db->get_numrows($result);
$site_template->register_vars("lang_select", $lang_select);
$site_template->register_vars(array(


  "home_url"  => ROOT_PATH,
  "media_url" => MEDIA_PATH,
  "thumb_url" => THUMB_PATH,
  "icon_url" => ICON_PATH,
  "template_url" => TEMPLATE_PATH,
  "template_image_url" => TEMPLATE_PATH."/images",
  "template_lang_image_url" => TEMPLATE_PATH."/images_".$config['language_dir'],
  "site_name" => $config['site_name'],
  "site_email" => $config['site_email'],
  "user_loggedin" => ($user_info['user_level'] == GUEST || $user_info['user_level'] == USER_AWAITING) ? 0 : 1,
  "user_loggedout" => ($user_info['user_level'] == GUEST || $user_info['user_level'] == USER_AWAITING) ? 1 : 0,
  "is_admin" => ($user_info['user_level'] == ADMIN) ? 1 : 0,
  "self" => $site_sess->url($self_url),
  "self_full" => $site_sess->url($script_url."/".$self_url),
  "script_version" => SCRIPT_VERSION,
  "cp_link" => ($user_info['user_level'] != ADMIN) ? "" : "\n<p align=\"center\">[<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php")."\">Admin Control Panel</a>]</p>\n",
  ///// Nuevo tipo de usuario //////
  "cp_moderador" => ($user_info['user_level'] != MODERADOR) ? "" : "\n<p align=\"center\">[<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php")."\">Moderador Control Panel</a>]</p>\n",
  ////// Fin nuevo tipo de usuario ///////
  "total_categories" => $total_categories,
  "total_images" => $total_images,
  "new_comments" => $new_comments,
  "url_comments" => $site_sess->url(ROOT_PATH."member.php?action=readcomments"),
  "url_new_images" => $site_sess->url(ROOT_PATH."search.php?search_new_images=1"),
  "url_all_images" => $site_sess->url(ROOT_PATH."search.php?search_keywords=".str_pad("*", MIN_SEARCH_KEYWORD_LENGTH, "*")),
  "url_new_images_last" => $site_sess->url(ROOT_PATH."search.php?search_new_images=2"),
  "url_new_images_tree" => $site_sess->url(ROOT_PATH."search.php?search_new_images=3"),
    "url_new_images_week" => $site_sess->url(ROOT_PATH."search.php?search_new_images=7"),
      "url_new_images_month" => $site_sess->url(ROOT_PATH."search.php?search_new_images=30"),
        "url_new_images_year" => $site_sess->url(ROOT_PATH."search.php?search_new_images=365"),
        "url_new_images_year" => $site_sess->url(ROOT_PATH."search.php?search_new_images=11"),
  "url_top_images" => $site_sess->url(ROOT_PATH."top.php"),
  //#################################### Start Top Comments #################################################
"url_top_comments" => $site_sess->url(ROOT_PATH."top_member.php"),
//#################################### End Top Comments #################################################
  "url_mypics" => $site_sess->url(ROOT_PATH."search.php?search_user=".$user_info['user_name']),
  "url_potm_link" => $site_sess->url(ROOT_PATH."potm.php"),
  "url_top_cat_images" => $site_sess->url(ROOT_PATH."top.php".(($cat_id && preg_match("/categories.php/", $self_url)) ? "?".URL_CAT_ID."=".$cat_id : "")),
  "url_register" => (!empty($url_register)) ? $site_sess->url($url_register) : $site_sess->url(ROOT_PATH."register.php"),
  "url_search" => $site_sess->url(ROOT_PATH."search.php"),
  "url_lightbox" => $site_sess->url(ROOT_PATH."lightbox.php"),
  "url_awaiting" => $site_sess->url(ROOT_PATH."awaiting.php"),
    "url_userlist" => $site_sess->url(ROOT_PATH."memberlist.php"),
  "url_control_panel" => (!empty($url_control_panel)) ? $site_sess->url($url_control_panel) : $site_sess->url(ROOT_PATH."member.php?action=editprofile"),
  "url_categories" => $site_sess->url(ROOT_PATH."categories.php"),
  "url_home" => $site_sess->url(ROOT_PATH."index.php"),
  "url_comments_all" => $site_sess->url(ROOT_PATH."comments_all.php"),
  "lang_all_comments" => $lang['all_comments'],
  "url_login" => (!empty($url_login)) ? $site_sess->url($url_login) : $site_sess->url(ROOT_PATH."login.php"),
  "url_logout" => (!empty($url_logout)) ? $site_sess->url($url_logout) : $site_sess->url(ROOT_PATH."logout.php"),
  "url_member" => (!empty($url_member)) ? $site_sess->url($url_member) : $site_sess->url(ROOT_PATH."member.php"),
  "url_upload" => (!empty($url_upload)) ? $site_sess->url($url_upload) : $site_sess->url(ROOT_PATH."member.php?action=uploadform"),
  "url_board" => $site_sess->url(ROOT_PATH."board.php"),
"template_image_board" => TEMPLATE_PATH."/board_images",
"lang_image_board" => TEMPLATE_PATH."/board_images/images_".$config['language_dir'],
  "url_lost_password" => (!empty($url_lost_password)) ? $site_sess->url($url_lost_password) : $site_sess->url(ROOT_PATH."member.php?action=lostpassword"),
  "url_captcha_image" => $site_sess->url(ROOT_PATH."captcha.php"),
  "recaptcha" => ($captcha_recaptcha) ? recaptcha_image() : "",
  "recaptcha_public" => @$captcha_recaptcha[0],
  "recaptcha_private" => @$captcha_recaptcha[1],
  "url_top_rated" => $site_sess->url(ROOT_PATH."top_rated.php"),
  "lang_top_rated" => $lang['top_rated'],
  // ---------  MOD TOP 100   ----------
"url_top100" => $site_sess->url(ROOT_PATH."top100.php?action=hits"),
// ---------  MOD TOP 100   ----------
  "thumbnails" => "",
  "paging" => "",
  "paging_stats" => "",
  "has_rss" => false,
  "rss_title" => "",
  "rss_url" => "",
  "copyright" => '
<p id="copyright" align="center">
  Powered by <b>4images</b> '.SCRIPT_VERSION.'
  <br />
  Copyright &copy; 2002-'.date('Y').' <a href="http://www.4homepages.de" target="_blank">4homepages.de</a>
</p>
',
));

if (!empty($additional_urls)) {
  $register_array = array();
  foreach ($additional_urls as $key => $val) {
    $register_array[$key] = $site_sess->url($val);
  }
  $site_template->register_vars($register_array);
}

// Replace Globals in $lang
$lang = $site_template->parse_array($lang);

$site_template->register_vars(array(
  "lang_site_stats" => $lang['site_stats'],
  "lang_mypics" => $lang['mypics'],
  "lang_registered_user" => $lang['registered_user'],
  "lang_random_image" => $lang['random_image'],
  "lang_categories" => $lang['categories'],
  "lang_sub_categories" => $lang['sub_categories'],
  "lang_new_images" => $lang['new_images'],
  "lang_all_images" => $lang['all_images'],
  "lang_today_images" => $lang['today_images'],
  "lang_new_images_last" => $lang['new_images_last'],

  "lang_top_images" => $lang['top_images'],
  "lang_potm_link" => $lang['potm_link'],
  "lang_search" => $lang['search'],
  "lang_advanced_search" => $lang['advanced_search'],
  "lang_lightbox" => $lang['lightbox'],
 
  "lang_userlist_title" => $lang['lang_userlist_title'],
  "lang_register" => $lang['register'],
  "lang_control_panel" => $lang['control_panel'],
  "lang_login" => $lang['login'],
  "lang_auto_login" => $lang['lang_auto_login'],
  "lang_logout" => $lang['logout'],
  "lang_lost_password" => $lang['lost_password'],
  "lang_user_name" => $lang['user_name'],
  "lang_password" => $lang['password'],
  "lang_go" => $lang['go'],
  "lang_images_per_page" => $lang['images_per_page'],
 
  "charset" => $lang['charset'],
  "image_order" => $lang['image_order'],
  "image_sort" => $lang['image_sort'],
  // ---------  MOD TOP 100   ----------
 "lang_top100" => $lang['lang_top100'],
// ---------  MOD TOP 100   ----------
// ---------  Addons home   ----------
  "lang_airlines_aviation_aviaphoto" => $lang['airlines_aviation_aviaphoto'],
// ---------  Addons home   ----------
// ---------  Addons member  ----------
    "lang_upload_page" => $lang['upload_page'],
    "lang_push_to_upload" => $lang['push_to_upload'],
    "lang_attention" => $lang['attention'],
    "lang_upload" => $lang['upload'],
    "lang_photo_information" => $lang['photo_information'],
    "lang_aircraft_airline_of" => $lang['aircraft_airline_of'],
    "lang_change_aircraft_airline_of" => $lang['change_aircraft_airline_of'],
    "lang_spot_location" => $lang['spot_location'],
    "lang_country_city_location" => $lang['country_city_location'],
    "lang_country_select" => $lang['country_select'],
    "lang_change_country" => $lang['change_country'],
    "lang_city_airport" => $lang['city_airport'],
    "lang_change_city" => $lang['change_city'],
    "lang_change_airline_type" => $lang['change_airline_type'],
    "lang_change_type_of_air" => $lang['change_type_of_air'],
    "lang_change_type_of_aircraft_airline" => $lang['change_type_of_aircraft_airline'],
    "lang_airline" => $lang['airline'],
    "lang_what_airline" => $lang['what_airline'],
    "lang_change_airline" => $lang['change_airline'],
    "lang_reg_number" => $lang['reg_number'],
    "lang_type_reg" => $lang['type_reg'],
    "lang_serial_number" => $lang['serial_number'],
    "lang_type_serial" => $lang['type_serial'],
    "lang_type_serial_number_of" => $lang['type_serial_number_of'],
    "lang_date_of_taken" => $lang['date_of_taken'],
    "lang_day" => $lang['day'],
    "lang_mounth" => $lang['mounth'],
    "lang_year" => $lang['year'],
    "lang_unknown" => $lang['unknown'],
    "lang_type_description" => $lang['type_description'],
    "lang_com_screeners" => $lang['com_screeners'],
    "lang_important_information" => $lang['important_information'],
// ---------  Addons member  ----------

    "lang_reviews" => $lang['reviews'],
    "lang_rating" => $lang['rating'],
    "lang_votes" => $lang['votes'],
    "lang_send_email_postcard" => $lang['send_email_postcard'],
    "lang_sponsored_links" => $lang['sponsored_links'],
    "lang_author" => $lang['author'],
    "lang_reg_page" => $lang['reg_page'],
    "lang_latin_symbols" => $lang['latin_symbols'],
    "lang_ac_type" => $lang['ac_type'],
    "lang_see_more_photo" => $lang['see_more_photo'],
    "lang_sponsored_links" => $lang['sponsored_links'],
    "lang_this_is_photo" => $lang['this_is_photo'],
    "lang_link_to_this_photo" => $lang['link_to_this_photo'],
    "lang_all_rights_photo" => $lang['all_rights_photo'],
    "lang_aircraft_information" => $lang['aircraft_information'],
    "lang_aircraft_location" => $lang['aircraft_location'],
    "lang_more_pictures" => $lang['more_pictures'],
    "lang_reg_serial_date" => $lang['reg_serial_date'],
    "lang_spotter" => $lang['spotter'],
    "lang_more_photos_link" => $lang['more_photos_link'],
    "lang_title_photos" => $lang['title_photos'],
    "lang_aviation_photography" => $lang['aviation_photography'],
    "lang_description_of_photo" => $lang['description_of_photo'],
    "lang_photo_was_viewed" => $lang['photo_was_viewed'],
    "lang_hits_from" => $lang['hits_from'],
    "lang_all_rights_on_this_photo" => $lang['all_rights_on_this_photo'],
    "lang_using_photo_terms" => $lang['using_photo_terms'],
    "lang_popular_pictures" => $lang['popular_pictures'],
    "lang_new_added_from_last_vizit" => $lang['new_added_from_last_vizit'],
    "lang_home" => $lang['home'],
    "lang_upload_photos" => $lang['upload_photos'],
    "lang_spot_groups" => $lang['spot_groups'],
    "lang_popular_photos" => $lang['popular_photos'],
    "lang_new_photos" => $lang['new_photos'],
    "lang_copyright" => $lang['copyright'],
    "lang_your_name" => $lang['your_name'],
    "lang_your_email" => $lang['your_email'],
    "lang_contact_form" => $lang['contact_form'],
    //#################################### Start Top Comments #################################################
 "lang_top_comments" => $lang['top_comments'],                         
//#################################### End Top Comments #################################################
//-----------------------------------------------------
//--- Search Parameters -------------------------------
//-----------------------------------------------------   
    "lang_search_by_keyword" => $lang['search_by_keyword'],
    "lang_search_by_username" => $lang['search_by_username'],
    "lang_new_images_only" => $lang['new_images_only'],
    "lang_search_terms" => $lang['search_terms'],
    "lang_search_term" => $lang['search_term'],
    "lang_or" => $lang['or'],
    "lang_and" => $lang['and'],
    "lang_category" => $lang['category'],
    "lang_search_fields" => $lang['search_fields'],
    "lang_all_fields" => $lang['all_fields'],
    "lang_name_only" => $lang['name_only'],
    "lang_description" => $lang['description'],
    "lang_keywords_only" => $lang['keywords_only'],
    "lang_search_results" => $lang['search_results'],
    "category_dropdown" => get_category_dropdown($cat_id),
    "image_name" => $lang['image_name'],
    "image_description" => $lang['description_only'],
    "image_reg" => $lang['image_reg'],
    "image_airline" => $lang['image_airline'],
    "image_military" => $lang['image_military'],
    "image_city" => $lang['image_city'],
    "image_serial" => $lang['image_serial'],
    "image_country" => $lang['image_country'],
    "image_aircraft" => $lang['image_aircraft'],
    "image_aircraftname" => $lang['image_aircraftname'],
    "image_cityalt" => $lang['image_cityalt'],
    "image_aircraftnamealt" => $lang['image_aircraftnamealt'],
    "image_airlinealt" => $lang['image_airlinealt'],
    "lang_january" => $lang['january'],
    "lang_february" => $lang['february'],
    "lang_mart" => $lang['mart'],
    "lang_april" => $lang['april'],
    "lang_may" => $lang['may'],
    "lang_jun" => $lang['jun'],
    "lang_jul" => $lang['jul'],
    "lang_august" => $lang['august'],
    "lang_september" => $lang['september'],
    "lang_october" => $lang['october'],
    "lang_november" => $lang['november'],
    "lang_december" => $lang['december'],
    "lang_civil_aviation" => $lang['civil_aviation'],
    "lang_air_force" => $lang['air_force'],
    "lang_bussines_aviation" => $lang['bussines_aviation'],
    "lang_small_aviation" => $lang['small_aviation'],
    "lang_ch_menu" => $lang['ch_menu'],
    "lang_total_photographers" => $lang['total_photographers'],
    "lang_month_array" => $lang['month_array'],
    "lang_aircraft_generic_name" => $lang['aircraft_generic_name'],
    "lang_new_photos_added_from_last_visit" => $lang['new_photos_added_from_last_visit'],
    "lang_favourite_photos" => $lang['favourite_photos'],
    "lang_favourite_photos_description" => $lang['favourite_photos_description'],
    "lang_screeners_choice" => $lang['screeners_choice'],
    "lang_screeners_choice_description" => $lang['screeners_choice_description'],
    "lang_most_popular_photos" => $lang['most_popular_photos'],
    "lang_most_popular_photos_of_all_time" => $lang['most_popular_photos_of_all_time'],
    "lang_most_popular_photos_of_last_48_hours" => $lang['most_popular_photos_of_last_48_hours'],
    "lang_most_popular_photos_of_last_week" => $lang['most_popular_photos_of_last_week'],
    "lang_most_popular_photos_of_last_30_days" => $lang['most_popular_photos_of_last_30_days'],
    "lang_spotting_group_description" => $lang['spotting_group_description'],
    "lang_site_statistic" => $lang['site_statistic'],
    "lang_in_last_week" => $lang['in_last_week'],
    "lang_in_last_month" => $lang['in_last_month'],
    "lang_peoples_choice" => $lang['peoples_choice'],
    "lang_aviation_photos" => $lang['aviation_photos'],   
    "lang_top_10_users" => $lang['top_10_users'],
    "lang_most_rated_today" => $lang['most_rated_today'],
    "lang_most_rated_3_day" => $lang['most_rated_3_day'],
    "lang_most_rated_week" => $lang['most_rated_week'],
    "lang_more_new_photos" => $lang['more_new_photos'],
    "lang_news_presentation_1" => $lang['news_presentation_1'],
    "lang_top_photos" => $lang['top_photos'],
    "lang_top_of_tree_days" => $lang['top_of_tree_days'],
    "lang_top_of_week" => $lang['top_of_week'],
    "lang_top_of_month" => $lang['top_of_month'],
    "lang_top_of_year" => $lang['top_of_year'],
    "lang_best_photos" => $lang['best_photos'],
    "lang_editors_photos" => $lang['editors_photos'],
    "lang_users_choise" => $lang['users_choise'],
    "lang_lightbox_manage" => $lang['lightbox_manage'],
    "lang_rare_photos" => $lang['rare_photos'],
    "lang_photo_albums" => $lang['photo_albums'],
    "lang_edit_profile" => $lang['edit_profile'],
    "lang_guest_info" => $lang['guest_info'],
    "lang_need_help" => $lang['need_help'],
    "lang_date" => $lang['date'],
    "lang_autofill_location" => $lang['autofill_location'],
    "lang_autofill_location_desc" => $lang['autofill_location_desc'],
    "lang_autofill_reg" => $lang['autofill_reg'],
    "lang_autofill_reg_desc" => $lang['autofill_reg_desc'],   
    "lang_new_comments_for_me" => $lang['new_comments_for_me'],
    "lang_general_roules" => $lang['general_roules'],
    "lang_auto_fill" => $lang['auto_fill'],
    "lang_upload" => $lang['upload'],
    "lang_browse" => $lang['browse'],
    "lang_confirmation" => $lang['confirmation'],
    "lang_all_photos_indb" => $lang['all_photos_indb'],
    "lang_memberlist_desc" => $lang['memberlist_desc'],
    "lang_last_users" => $lang['last_users'],
    "lang_toptwo_photo" => $lang['toptwo_photo'],
    "lang_search_button" => $lang['search_button'],
    "lang_photo_database" => $lang['photo_database'],
    "lang_new_photographers" => $lang['new_photographers'],
    "lang_new_photographers_desc" => $lang['new_photographers_desc'],
    "lang_photo_search_engine" => $lang['photo_search_engine'],
    "lang_msrates" => $lang['msrates'],
    "lang_msvotes" => $lang['msvotes'],
    "lang_min_views" => $lang['min_views'],
    "lang_upload_date" => $lang['upload_date'],
    "lang_photographer_photo_section" => $lang['photographer_photo_section'],
    "lang_thumb_unavailable" => $lang['thumb_unavailable'],
    "lang_thumb_unavailable_short" => $lang['thumb_unavailable_short'],
    "lang_awaiting_images" => $lang['awaiting_images'],
    "lang_aircraft_pictures_photos" => $lang['aircraft_pictures_photos'],
    "lang_desktop_background" => $lang['desktop_background'],
    "lang_search_page_keywords" => $lang['search_page_keywords'],
    "lang_search_page_desc" => $lang['search_page_desc'],
    "lang_detail_page_desc" => $lang['detail_page_desc'],
    "lang_home_page_desc" => $lang['home_page_desc'],
    "lang_home_page_keywords" => $lang['home_page_keywords'],
    "lang_lastforums_all" => $lang['lastforums_all'],
    "lang_lastforums_desc" => $lang['lastforums_desc'],
    "lang_lastforums" => $lang['lastforums'],
    "lang_search_stats_keywords" => $lang['search_stats_keywords'],
    "lang_search_stats_desc" => $lang['search_stats_desc'],
    "lang_search_stats_description" => $lang['search_stats_description'],
    "lang_get_info" => $lang['get_info'],
    "lang_country_help" => $lang['country_help'],
    "lang_location_help" => $lang['location_help'],
    "lang_try" => $lang['try'],
    "lang_for_example" => $lang['for_example'],
    "lang_type_keywords" => $lang['type_keywords'],
    "lang_keywords_textarea" => $lang['keywords_textarea'],
    "lang_latest_awards" => $lang['latest_awards'],
    "lang_airport" => $lang['airport'],
    "lang_user_profile_hits" => $lang['user_profile_hits'],

//-----------------------------------------------------
//--- Search Parameters -------------------------------
//-----------------------------------------------------

    "direction" => $lang['direction']
));

//-----------------------------------------------------
//--- Category Dropdown -------------------------------
//-----------------------------------------------------

if (!$cache_enable) {
    $category_dropdown_selfjump = get_category_dropdown($cat_id, 1);
} else {
  $cache_id = create_cache_id(
    'data.dropdown_selfjump',
    array(
      $user_info[$user_table_fields['user_id']],
      $config['template_dir'],
      $config['language_dir']
    )
  );

  if (!$category_dropdown_selfjump = get_cache_file($cache_id)) {
    // Always append session id if cache is enabled
    $old_session_mode = $site_sess->mode;
    $site_sess->mode = 'get';

    // Set $cat_id to 0 to ensure that no category is selected
    $category_dropdown_selfjump = get_category_dropdown(0, 1);

    $site_sess->mode = $old_session_mode;

    save_cache_file($cache_id, $category_dropdown_selfjump);
  }
}

$site_template->register_vars("category_dropdown_selfjump", $category_dropdown_selfjump);
unset($category_dropdown_selfjump);

// -------------------------------------
if (!$cache_enable) {
    $category_dropdown_form = $site_template->parse_template("category_dropdown_form");
} else {
  $cache_id = create_cache_id(
    'data.dropdown_form',
    array(
      $user_info[$user_table_fields['user_id']],
      // $cat_id, // uncomment if the current category should be selected, will increase the number of cache files
      $config['template_dir'],
      $config['language_dir']
    )
  );

  if (!$category_dropdown_form = get_cache_file($cache_id)) {
    // Always append session id if cache is enabled
    $old_session_mode = $site_sess->mode;
    $site_sess->mode = 'get';

    $category_dropdown_form = $site_template->parse_template("category_dropdown_form");

    $site_sess->mode = $old_session_mode;

    save_cache_file($cache_id, $category_dropdown_form);
  }
}

$site_template->register_vars("category_dropdown_form", $category_dropdown_form);
unset($category_dropdown_form);


//-----------------------------------------------------
//--- Random Image ------------------------------------
//-----------------------------------------------------
$random_image = (defined("SHOW_RANDOM_IMAGE") && SHOW_RANDOM_IMAGE == 0) ? "" : get_random_image();
$site_template->register_vars("random_image", $random_image);
unset($random_image);
//-----------------------------------------------------
//--- Photo Of The Day --------------------------------
//-----------------------------------------------------

$potd_image = (defined("SHOW_POTD_IMAGE") && SHOW_POTD_IMAGE == 0) ? "" : get_potd_image();
$site_template->register_vars("potd_image", $potd_image);
$site_template->register_vars(array("lang_potd_title" => $lang['potd_title']));
$site_template->register_vars(array("lang_potd_type" => $lang['potd_type_'.ereg_replace ("i.image_", "", $select_mode)]));
unset($potd_image);
//--- End Photo Of The Day ----------------------------




//-----------------------------------------------------
//--- Set Paging Vars ---------------------------------
//-----------------------------------------------------
if (isset($HTTP_POST_VARS['setperpage'])) {
  $setperpage = intval($HTTP_POST_VARS['setperpage']);
  if ($setperpage) {
    $site_sess->set_session_var("perpage", $setperpage);
    $session_info['perpage'] = $setperpage;
  }
}

if (isset($session_info['perpage'])) {
  $perpage = $session_info['perpage'];
}
else {
  $perpage = ceil($config['default_image_rows'] * $config['image_cells']);
}

//-----------------------------------------------------
//--- Set Perpage Dropdown ----------------------------
//-----------------------------------------------------
$setperpage_dropdown = "\n<select onchange=\"if (this.options[this.selectedIndex].value != 0 && typeof forms['perpagebox'] != 'undefined'){ forms['perpagebox'].submit() }\" name=\"setperpage\" class=\"setperpageselect\">\n";
for($i = 1; $i <= $config['custom_row_steps']; $i++) {
  $setvalue = $config['image_cells'] * $i;
  $setperpage_dropdown .= "<option value=\"".$setvalue."\"";
    if ($setvalue == $perpage) {
    $setperpage_dropdown .= " selected=\"selected\"";
  }
  $setperpage_dropdown .= ">";
  $setperpage_dropdown .= $setvalue;
  $setperpage_dropdown .= "</option>\n";
}
$setperpage_dropdown .= "</select>\n";
if ($cat_id != 0) {
  $setperpage_dropdown .= "<input type=\"hidden\" name=\"cat_id\" value=\"".$cat_id."\" />\n";
}
if (isset($show_result) && $show_result == 1) {
  $setperpage_dropdown .= "<input type=\"hidden\" name=\"show_result\" value=\"1\" />\n";
}
$site_template->register_vars("setperpage_dropdown", $setperpage_dropdown);
$setperpage_dropdown_form = $site_template->parse_template("setperpage_dropdown_form");
$site_template->register_vars("setperpage_dropdown_form", $setperpage_dropdown_form);

$site_template->un_register_vars("setperpage_dropdown");
unset($setperpage_dropdown);
unset($setperpage_dropdown_form);

//-----------------------------------------------------
//--- Add & Delete from Lists -------------------------
//-----------------------------------------------------
if ($action == "addtolightbox" && $id) {
  if ($user_info['user_level'] >= USER) {
    /*
  MOD MULTI-LIGHTBOXES
  START REPLACE
*/
    $msg = (add_to_lightbox($id)) ? preg_replace("/".$site_template->start."name".$site_template->end."/iU", $user_info['lightboxes'][$user_info['user_lightbox']]['name'], $lang['lightbox_add_success']) : preg_replace("/".$site_template->start."name".$site_template->end."/iU", $user_info['lightboxes'][$user_info['user_lightbox']]['name'], $lang['lightbox_add_error']);
/*
  MOD MULTI-LIGHTBOXES
  END REPLACE
*/
  }
  else {
    $msg = $lang['lightbox_register'];
  }
}
if ($action == "removefromlightbox" && $id) {
  if ($user_info['user_level'] >= USER) {
    /*
  MOD MULTI-LIGHTBOXES
  START REPLACE
*/
    $msg = (remove_from_lightbox($id)) ? preg_replace("/".$site_template->start."name".$site_template->end."/iU", $user_info['lightboxes'][$user_info['user_lightbox']]['name'], $lang['lightbox_remove_success']) : preg_replace("/".$site_template->start."name".$site_template->end."/iU", $user_info['lightboxes'][$user_info['user_lightbox']]['name'], $lang['lightbox_remove_error']);
/*
  MOD MULTI-LIGHTBOXES
  END REPLACE
*/
  }
  else {
    $msg = $lang['lightbox_register'];
  }
}
if ($action == "clearlightbox") {
  if ($user_info['user_level'] >= USER) {
    /*
  MOD MULTI-LIGHTBOXES
  START REPLACE
*/
    $msg = (clear_lightbox()) ? preg_replace("/".$site_template->start."name".$site_template->end."/iU", $user_info['lightboxes'][$user_info['user_lightbox']]['name'], $lang['lightbox_clear_success']) : preg_replace("/".$site_template->start."name".$site_template->end."/iU", $user_info['lightboxes'][$user_info['user_lightbox']]['name'], $lang['lightbox_clear_error']);
/*
  MOD MULTI-LIGHTBOXES
  END REPLACE
*/
  }
  else {
    $msg = $lang['lightbox_register'];
  }
}
/*
  MOD MULTI-LIGHTBOXES
  START INSERT
*/
//-----------------------------------------------------
//--- Multi-Lightboxes ---------------------------------
//-----------------------------------------------------
if ($user_info['user_level'] >= USER && $config['lightbox_count'])
{
  $user_lightbox_dropdown = (count($user_info['lightboxes_list']) > 1) ? get_dropdown_options("user_lightbox", $user_info['lightboxes_list'], $user_info['user_lightbox'], 1, 0, 1, 0, "", "lightboxidropdown") : "";
}
else
{
  $user_lightbox_dropdown = "";
}
$site_template->register_vars(array(
  "user_lightbox_dropdown" => $user_lightbox_dropdown,
  "lang_lightbox_select" => $lang['lightbox_select'],
));
$user_lightbox_dropdown = ($user_lightbox_dropdown) ? $site_template->parse_template("lightbox_dropdown") : "";
$site_template->register_vars("user_lightbox_form", $user_lightbox_dropdown);
/*
  MOD MULTI-LIGHTBOXES
  END INSERT
*/
//-----------------------------------------------------
//--- Save Rating -------------------------------------
//-----------------------------------------------------
/* [MOD] Ajax Star Rating. Code block disabled. Modified code in /ajaxrating.php
if ($action == "rateimage" && $id) {
  $rating = intval($HTTP_POST_VARS['rating']);
  $cookie_name = (defined("COOKIE_NAME")) ? COOKIE_NAME : "4images_";
  $cookie_rated = isset($HTTP_COOKIE_VARS[$cookie_name.'rated']) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$cookie_name.'rated'])) : array();
  if ($rating && $rating <= MAX_RATING && $id) {
    if (!isset($session_info['rated_imgs'])) {
      $session_info['rated_imgs'] = $site_sess->get_session_var("rated_imgs");
    }
    $split_list = array();
    if (!empty($session_info['rated_imgs'])) {
      $split_list = explode(" ", $session_info['rated_imgs']);
    }
    if (!in_array($id, $split_list) && !in_array($id, $cookie_rated)) {
      $session_info['rated_imgs'] .= " ".$id;
      $session_info['rated_imgs'] = trim($session_info['rated_imgs']);
      $site_sess->set_session_var("rated_imgs", $session_info['rated_imgs']);
      $cookie_rated[] = $id;
      $cookie_expire = time() + 60 * 60 * 24 * 4;
      setcookie($cookie_name.'rated', serialize($cookie_rated), $cookie_expire, COOKIE_PATH, COOKIE_DOMAIN, COOKIE_SECURE);
      update_image_rating($id, $rating);
      $msg = $lang['voting_success'];
    }
    else {
      $msg = $lang['already_voted'];
    }
  }
  else {
    $msg = $lang['voting_error'];
  }
}*/

//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------
if ($user_info['user_level'] >= USER) {
  $site_template->register_vars("lang_loggedin_msg", preg_replace("/".$site_template->start."loggedin_user_name".$site_template->end."/siU", format_text($user_info['user_name'], 2), $lang['lang_loggedin_msg']));
  $user_box = $site_template->parse_template("user_logininfo");
  $site_template->register_vars(array(
    "user_box" => $user_box,
    "user_loggedin" => 1,
    "user_loggedout" => 0,
    "is_admin" => ($user_info['user_level'] == ADMIN) ? 1 : 0
  ));
  $site_template->un_register_vars("user_logininfo");
  unset($user_box);
}
else {
  $user_box = $site_template->parse_template("user_loginform");
  $site_template->register_vars(array(
    "user_box" => $user_box,
    "user_loggedin" => 0,
    "user_loggedout" => 1,
    "is_admin" => 0
  ));
  $site_template->un_register_vars("user_loginform");
  unset($user_box);
}
//-----------------------------------------------------
//--- Set Images Sort ---------------------------------
//-----------------------------------------------------
if (isset($HTTP_POST_VARS['imagesorder'])) {
  $imagesorder = $HTTP_POST_VARS['imagesorder'];
  if ($imagesorder) {
    $site_sess->set_session_var("imgs_order", $imagesorder);
    $session_info['imgs_order'] = $imagesorder;
  }
}

if (isset($session_info['imgs_order'])) {
  $config['image_order'] = $session_info['imgs_order'];
}

if (isset($HTTP_POST_VARS['imagessort'])) {
 // $imagessort = intval($HTTP_POST_VARS['imagessort']);
 $imagessort = $HTTP_POST_VARS['imagessort']; //Added 03-11-2003
  if ($imagessort) {
    $site_sess->set_session_var("imgs_sort", $imagessort);
    $session_info['imgs_sort'] = $imagessort;
  }
}

if (isset($session_info['imgs_sort'])) {
  $config['image_sort'] = $session_info['imgs_sort'];
}
//----End Images Sort----------------------------------

//-----------------------------------------------------
//--- Set Images Sort Dropdown ------------------------
//-----------------------------------------------------
  $imgsort_dropdown="\n<select name=\"imagesorder\" class=\"setperpageselect\">\n";
  foreach ($image_order_optionlist as $key => $val) {
    $imgsort_dropdown .= "<option value=\"$key\"";
    if ($config['image_order'] == $key) {
      $imgsort_dropdown .= " selected=\"selected\"";
    }
    $imgsort_dropdown .= ">".$val."</option>\n";
  }
  $imgsort_dropdown .= "</select>\n";
  foreach ($image_sort_optionlist as $key => $val) {
  $imgsort_dropdown .= "<INPUT type=\"radio\" name=\"imagessort\" value=\"$key\"";
  if ($config['image_sort'] == $key) {
      $imgsort_dropdown .= " checked";
  }
  $imgsort_dropdown .= ">".$val."\n";
  }
if ($cat_id != 0) {
  $imgsort_dropdown .= "<input type=\"hidden\" name=\"cat_id\" value=\"".$cat_id."\" />\n";
}
if (isset($show_result) && $show_result == 1) {
  $imgsort_dropdown .= "<input type=\"hidden\" name=\"show_result\" value=\"1\" />\n";
}
$site_template->register_vars("imgsort_dropdown", $imgsort_dropdown);
$imgsort_dropdown_form = $site_template->parse_template("imgsort_dropdown_form");
$site_template->register_vars("imgsort_dropdown_form", $imgsort_dropdown_form);

$site_template->un_register_vars("imgsort_dropdown");
unset($imgsort_dropdown);
unset($imgsort_dropdown_form);
//-----End Images Sort Dropdown------------------------
$last_action_user_list = "";
$sql = "SELECT user_t_images, user_name, user_id FROM ".USERS_TABLE."
WHERE user_level >= '".USER."'
ORDER BY user_t_images DESC
LIMIT 10";
$result = $site_db->query($sql);

while ($row = $site_db->fetch_array($result)) {
$last_action_user_list .= "<table width=\"250\" border=0 cellspacing=0 selpadding=0>";
$last_action_user_list .= "<tr>";
$last_action_user_list .= "<td width=\"200\" align=\"left\">";
$last_action_user_list .= '<a href ="'.ROOT_PATH.'search.php?search_user='.$row['user_name'].'"><b>'.$row['user_name'].'</b></a>';
$last_action_user_list .= "</td>";
$last_action_user_list .= "<td width=\"50\" align=\"right\">";
$last_action_user_list .= '<span class="smalltext">'.$row['user_t_images'].'</span>';
$last_action_user_list .= "</td>";
$last_action_user_list .= "</tr>";
$last_action_user_list .= "</table>";
}

$site_template->register_vars(array(
"user_uploaders_list" => $last_action_user_list,
));
unset($user_uploaders_list);
//-----------------------------------------------------
//--- NEW PHOTOGRAPHER LIST ---------------------------
//-----------------------------------------------------

$new_photographer_list = "";
$sql = "SELECT user_t_images, user_name, user_id, user_joindate FROM ".USERS_TABLE."
WHERE user_level >= '".USER."'
ORDER BY user_joindate DESC
LIMIT 20";
$result = $site_db->query($sql);

while ($row = $site_db->fetch_array($result)) {
$new_photographer_list .= "<table width=\"200\" border=0 cellspacing=0 selpadding=0>";
$new_photographer_list .= "<tr>";
$new_photographer_list .= "<td width=\"200\" align=\"left\">";
$new_photographer_list .= '<a href ="'.ROOT_PATH.'search.php?search_user='.$row['user_name'].'"><b>'.$row['user_name'].'</b></a>';
$new_photographer_list .= "</td>";
$new_photographer_list .= "</tr>";
$new_photographer_list .= "</table>";
}

$site_template->register_vars(array(
"new_photographer_list" => $new_photographer_list,
));
unset($new_photographer_list);
//-----------------------------------------------------

?>
Title: Re: [MOD] Linkus Control
Post by: V@no on September 29, 2010, 06:22:39 AM
Failed step 8?

Actually it's Step 10 I meant, the very last step, which is mistakenly marked as "Step 8" in the instructions.
Title: Re: [MOD] Linkus Control
Post by: MrAndrew on September 29, 2010, 08:48:58 AM
Yes, i did this.

In my phpMyAdmin i`ve insert to my 5images_settings next:

Code: [Select]
INSERT INTO `5images_settings` (`setting_name`, `setting_value`) VALUES
('sumale_linkus_468x60_onoff', '1'),
('sumale_linkus_234x60_beschreibung', 'Beschreibung'),
('sumale_linkus_234x60_grafik', 'halbbanner.png'),
('sumale_linkus_234x60_onoff', '1'),
('sumale_linkus_156x60_beschreibung', 'Beschreibung'),
('sumale_linkus_156x60_grafik', 'drittelbanner.png'),
('sumale_linkus_156x60_onoff', '1'),
('sumale_linkus_400x50_beschreibung', 'Beschreibung'),
('sumale_linkus_400x50_grafik', 'omsbanner.png'),
('sumale_linkus_137x60_beschreibung', 'Beschreibung'),
('sumale_linkus_137x60_grafik', 'kleinerbutton.png'),
('sumale_linkus_400x50_onoff', '1'),
('sumale_linkus_137x60_onoff', '1'),
('sumale_linkus_88x31_beschreibung', 'Beschreibung'),
('sumale_linkus_88x31_grafik', 'mikrobutton.png'),
('sumale_linkus_88x31_onoff', '1'),
('sumale_linkus_125x125_beschreibung', 'Beschreibung'),
('sumale_linkus_125x125_grafik', 'grossesquadrat.png'),
('sumale_linkus_75x75_beschreibung', 'Beschreibung'),
('sumale_linkus_75x75_grafik', 'kleinesquadrat.png'),
('sumale_linkus_120x600_beschreibung', 'Beschreibung'),
('sumale_linkus_120x600_grafik', 'skyscraper.png'),
('sumale_linkus_160x600_beschreibung', 'Beschreibung'),
('sumale_linkus_160x600_grafik', 'breiterskyscraper.png'),
('sumale_linkus_125x125_onoff', '1'),
('sumale_linkus_75x75_onoff', '1'),
('sumale_linkus_120x600_onoff', '1'),
('sumale_linkus_160x600_onoff', '1');

MOD work fine, but with notices. Maybe error in setting group?
Title: Re: [MOD] Linkus Control
Post by: MrAndrew on September 29, 2010, 11:45:01 AM
Very very strange. Notices again :-(

Notice: Undefined index: sumale_linkus_468x60 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 99

Notice: Undefined index: sumale_linkus_234x60 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 102

Notice: Undefined index: sumale_linkus_156x60 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 105

Notice: Undefined index: sumale_linkus_400x50 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 108

Notice: Undefined index: sumale_linkus_137x60 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 111

Notice: Undefined index: sumale_linkus_88x31 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 114

Notice: Undefined index: sumale_linkus_125x125 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 117

Notice: Undefined index: sumale_linkus_75x75 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 120

Notice: Undefined index: sumale_linkus_120x600 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 123

Notice: Undefined index: sumale_linkus_160x600 in /home/users2/d/drandrew/domains/skyphotos.ru/includes/page_header.php on line 126

And else... I haven`t this path in my settings.php

show_form_footer($lang['save_changes'], "", 2);

 Where it should be?
Title: Re: [MOD] Linkus Control
Post by: MrAndrew on September 29, 2010, 01:10:18 PM
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: settings.php                                         *
 *        Copyright: (C) 2002-2009 Jan Sorgalla                           *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.7                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) fьr weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

define('IN_CP', 1);
define('ROOT_PATH', './../');
require('admin_global.php');

if ( $action == "") {
  $action = "modifysettings";
}

function show_template_dir_select($setting_name, $setting_value) {
  echo "<select name=\"setting_item[".$setting_name."]\">";
  $handle = opendir(ROOT_PATH.TEMPLATE_DIR);
  while ($folder = @readdir($handle)) {
    if (@is_dir(ROOT_PATH.TEMPLATE_DIR."/".$folder) && $folder != "." && $folder != "..") {
      $folderlist[] = $folder;
    }
  }
  sort($folderlist);
  for($i = 0; $i < sizeof($folderlist); $i++) {
    echo "<option value=\"".$folderlist[$i]."\"";
    if ($setting_value == $folderlist[$i]) {
      echo " selected=\"selected\"";
    }
    echo ">".$folderlist[$i]."</option>\n";
  }
  closedir($handle);
  echo "</select>";
}

function show_cat_order_select($setting_name, $setting_value) {
  global $cat_order_optionlist;
  echo "<select name=\"setting_item[".$setting_name."]\">";
  foreach ( $cat_order_optionlist as $k => $v ) {
    echo "<option value=\"".$k."\"";
    if ($setting_value == $k) {
      echo " selected=\"selected\"";
    }
    echo ">".$v."</option>\n"; 
  }
  echo "</select>\n";
}

function show_cat_sort_select($setting_name, $setting_value) {
  global $cat_sort_optionlist;
  echo "<select name=\"setting_item[".$setting_name."]\">";
  foreach ( $cat_sort_optionlist as $k => $v ) {
    echo "<option value=\"".$k."\"";
    if ($setting_value == $k) {
      echo " selected=\"selected\"";
    }
    echo ">".$v."</option>\n"; 
  }
  echo "</select>\n";
}


function show_language_dir_select($setting_name, $setting_value) {
  echo "<select name=\"setting_item[".$setting_name."]\">";
  $handle = opendir(ROOT_PATH."lang");
  while ($folder = @readdir($handle)) {
    if (@is_dir(ROOT_PATH."lang/$folder") && $folder != "." && $folder != "..") {
      $folderlist[] = $folder;
    }
  }
  sort($folderlist);
  for($i = 0; $i < sizeof($folderlist); $i++) {
    echo "<option value=\"".$folderlist[$i]."\"";
    if ($setting_value == $folderlist[$i]) {
      echo " selected=\"selected\"";
    }
    echo ">".$folderlist[$i]."</option>\n";
  }
  closedir($handle);
  echo "</select>\n";
}

function show_convert_tool_select($setting_name, $setting_value) {
  global $convert_tool_optionlist;
  echo "<select name=\"setting_item[".$setting_name."]\">";
  foreach ($convert_tool_optionlist as $key => $val) {
    echo "<option value=\"$key\"";
    if ($setting_value == $key) {
      echo " selected=\"selected\"";
    }
    echo ">".$val."</option>";
  }
  echo "</select>";
}

function show_image_order_select($setting_name, $setting_value) {
  global $image_order_optionlist;
  echo "<select name=\"setting_item[".$setting_name."]\">";
  foreach ($image_order_optionlist as $key => $val) {
    echo "<option value=\"$key\"";
    if ($setting_value == $key) {
      echo " selected=\"selected\"";
    }
    echo ">".$val."</option>";
  }
  echo "</select>";
}

function show_image_sort_select($setting_name, $setting_value) {
  global $image_sort_optionlist;
  echo "<select name=\"setting_item[".$setting_name."]\">";
  foreach ($image_sort_optionlist as $key => $val) {
    echo "<option value=\"$key\"";
    if ($setting_value == $key) {
      echo " selected=\"selected\"";
    }
    echo ">".$val."</option>";
  }
  echo "</select>";
}

function show_upload_mode_options($setting_name, $setting_value) {
  global $upload_mode_optionlist;
  foreach ($upload_mode_optionlist as $key => $val) {
    echo "<input type=\"radio\" name=\"setting_item[".$setting_name."]\" value=\"$key\"";
    if ($setting_value == $key) {
      echo " checked=\"checked\"";
    }
    echo "> ".$val."<br />";
  }
}

function show_auto_thumbnail_resize_type_options($setting_name, $setting_value) {
  global $auto_thumbnail_resize_type_optionlist;
  foreach ($auto_thumbnail_resize_type_optionlist as $key => $val) {
    echo "<input type=\"radio\" name=\"setting_item[".$setting_name."]\" value=\"$key\"";
    if ($setting_value == $key) {
      echo " checked=\"checked\"";
    }
    echo "> ".$val."<br />";
  }
}

function show_account_activation_options($setting_name, $setting_value) {
  global $account_activation_optionlist;
  foreach ($account_activation_optionlist as $key => $val) {
    echo "<input type=\"radio\" name=\"setting_item[".$setting_name."]\" value=\"$key\"";
    if ($setting_value == $key) {
      echo " checked=\"checked\"";
    }
    echo "> ".$val."<br />";
  }
}

function show_setting_row($setting_name, $value_option = "", $htmlspecialchars = 0) {
  global $config, $setting;
    $config_value = $config[$setting_name];
  $config_value = ($htmlspecialchars) ? htmlspecialchars($config[$setting_name]) : $config[$setting_name];
  $setting[$setting_name] = replace_url($setting[$setting_name]);
  if ($value_option == "") {
    show_input_row($setting[$setting_name], "setting_item[".$setting_name."]", $config_value);
  }
  elseif ($value_option == "textarea") {
    show_textarea_row($setting[$setting_name], "setting_item[".$setting_name."]", $config_value, "", 6);
  }
  elseif ($value_option == "radio") {
    show_radio_row($setting[$setting_name], "setting_item[".$setting_name."]", $config_value);
  }
  else {
    echo "<tr class=\"".get_row_bg()."\">\n<td valign=\"top\"><p class=\"rowtitle\">".$setting[$setting_name]."</p></td>\n";
    echo "<td><p>";
    $value_option($setting_name, $config_value);
    echo "</p></td>\n</tr>\n";
  }
}
// Sumale.nin Metatag Control
function show_setting_row_title($setting_name, $value_option = "", $htmlspecialchars = 0) {
  global $config, $setting;

   

$config_value = $config[$setting_name];
  $config_value = ($htmlspecialchars) ? htmlspecialchars($config[$setting_name]) : $config[$setting_name];
  $setting[$setting_name] = replace_url($setting[$setting_name]);
  if ($value_option == "") {
    show_input_row_title($setting[$setting_name], "setting_item[".$setting_name."]", $config_value);
  }
  elseif ($value_option == "textarea") {
    show_textarea_row_title($setting[$setting_name], "setting_item[".$setting_name."]", $config_value, "", 6);
  }
  elseif ($value_option == "radio") {
    show_radio_row_title($setting[$setting_name], "setting_item[".$setting_name."]", $config_value);
  }
  else {
    echo "<tr class=\"".get_row_bg()."\">\n<td valign=\"top\"><p class=\"rowtitle_title\">".$setting[$setting_name]."</p></td>\n";
    echo "<td><p>";
    $value_option($setting_name, $config_value);
    echo "</p></td>\n</tr>\n";
  }
}
function show_news_display_options($setting_name, $setting_value) {
  global $news_display_optionlist;
  foreach ($news_display_optionlist as $key => $val) {
    echo "<input type=\"radio\" name=\"setting_item[".$setting_name."]\" value=\"$key\"";
    if ($setting_value == $key) {
      echo " checked=\"checked\"";
    }
    echo "> ".$val."<br />";
  }
}
// end of functions

show_admin_header();

if ($action == "updatesettings") {
  $setting_item = $HTTP_POST_VARS['setting_item'];
  foreach ($setting_item as $key => $val) {
    $val = trim($val);
   
    $sql = "SELECT * FROM ".SETTINGS_TABLE." WHERE setting_name = '$key'";
    $res = $site_db->get_numrows($site_db->query($sql));

    if ( !$res > 0 ) {
        $sql = "INSERT INTO ".SETTINGS_TABLE." (setting_value, setting_name)
                VALUES ('$val', '$key');";
    } else {
        $sql = "UPDATE ".SETTINGS_TABLE."
                SET setting_value = '$val'
                WHERE setting_name = '$key'";   
    }
   
    $res = $site_db->query($sql);
  }

  if ($HTTP_POST_VARS['setting_item']['language_dir'] != $config['language_dir']) {
    include(ROOT_PATH.'lang/'.$HTTP_POST_VARS['setting_item']['language_dir'].'/admin.php');
?>
    <script language="javascript">
    <!--
    top.head.location = '<?php echo $site_sess->url(ROOT_PATH."admin/index.php?action=head"); ?>';
    top.nav.location = '<?php echo $site_sess->url(ROOT_PATH."admin/index.php?action=nav"); ?>';
    top.main.location = '<?php echo $site_sess->url(ROOT_PATH."admin/settings.php?action=modifysettings&settings_msg=".urlencode($lang['save_settings_success'])); ?>';
    // -->
    </script>
<?php
    printf("<b>%s</b><p>", $lang['save_settings_success']);
    show_admin_footer();
  }
  else {
    $msg = sprintf("<b>%s</b><p>", $lang['save_settings_success']);
    $action = "modifysettings";
  }
}

if ($action == "modifysettings") {
  if (isset($HTTP_GET_VARS['settings_msg'])) {
    printf("<b>%s</b><p>", trim($HTTP_GET_VARS['settings_msg']));
  }
  elseif (!empty($msg)) {
    echo $msg;
  }

  $sql = "SELECT setting_name, setting_value
          FROM ".SETTINGS_TABLE;
  $result = $site_db->query($sql);
  $config = array();
  while ($row = $site_db->fetch_array($result)) {
    $config[$row['setting_name']] = $row['setting_value'];
  }

  show_form_header("settings.php", "updatesettings");
  show_table_header($lang['nav_general_settings'], 2);
  echo "<tr class=\"tablerow\"><td colspan=\"2\">";
  echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\"><tr valign=\"top\">\n";
  $numgroups = sizeof($setting_group);
  $percolumn = ceil($numgroups / 2);
  $settingcounter = 0;
  foreach ($setting_group as $key => $val) {
    $settingcounter++;
    echo "<td>";
    show_text_link($val,"#setting_group_".$key);
    echo "<br /></td>\n";
    if ($settingcounter == 4) {
      echo "</tr><tr>";
      $settingcounter = 0;
    }
  }

  echo "</tr></table>\n";
  echo "</td></tr>";
  show_table_separator($setting_group[1], 2, "setting_group_1");
  //--------------------------------------- Start News Ticker--------------------------------------
  show_setting_row("news_ticker", "textarea");
//--------------------------------------- End News Ticker --------------------------------------
  show_setting_row("site_name", "", 1);
  show_setting_row("site_email");
  show_setting_row("use_smtp", "radio");
  show_setting_row("smtp_host");
  show_setting_row("smtp_username");
  show_setting_row("smtp_password");
  show_setting_row("template_dir", "show_template_dir_select");
  show_setting_row("language_dir", "show_language_dir_select");
  show_setting_row("date_format");
  show_setting_row("time_format");
  show_setting_row("convert_tool", "show_convert_tool_select");
  show_setting_row("convert_tool_path");
  show_setting_row("gz_compress", "radio");
  show_setting_row("gz_compress_level");

  show_table_separator($setting_group[2], 2, "setting_group_2");
  show_setting_row("cat_order", "show_cat_order_select");
  show_setting_row("cat_sort", "show_cat_sort_select");
  show_setting_row("cat_cells");
  show_setting_row("cat_table_width");
  show_setting_row("cat_table_cellspacing");
  show_setting_row("cat_table_cellpadding");
  show_setting_row("num_subcats");

  show_table_separator($setting_group[3], 2, "setting_group_3");
  show_setting_row("image_order", "show_image_order_select");
  show_setting_row("image_sort", "show_image_sort_select");
  show_setting_row("new_cutoff");
  show_setting_row("image_border");
  show_setting_row("image_cells");
  show_setting_row("default_image_rows");
  show_setting_row("custom_row_steps");
  show_setting_row("image_table_width");
  show_setting_row("image_table_cellspacing");
  show_setting_row("image_table_cellpadding");

  show_table_separator($setting_group[4], 2, "setting_group_4");
  show_setting_row("upload_mode", "show_upload_mode_options");
  show_setting_row("allowed_mediatypes");
  show_setting_row("max_thumb_width");
  show_setting_row("max_thumb_height");
  show_setting_row("max_thumb_size");
  show_setting_row("max_image_width");
  show_setting_row("max_image_height");
  show_setting_row("max_media_size");
  show_setting_row("upload_notify", "radio");
  show_setting_row("upload_emails");
  show_setting_row("auto_thumbnail", "radio");
  show_setting_row("auto_thumbnail_dimension");
  show_setting_row("auto_thumbnail_resize_type", "show_auto_thumbnail_resize_type_options");
  show_setting_row("auto_thumbnail_quality");

  show_table_separator($setting_group[5], 2, "setting_group_5");
  show_setting_row("badword_list", "textarea");
  show_setting_row("badword_replace_char");
  show_setting_row("wordwrap_comments");
  show_setting_row("html_comments", "radio");
  show_setting_row("bb_comments", "radio");
  show_setting_row("bb_img_comments", "radio");

  show_table_separator($setting_group[6], 2, "setting_group_6");
  show_setting_row("category_separator", "", 1);
  show_setting_row("paging_range");

  show_table_separator($setting_group[7], 2, "setting_group_7");
  show_setting_row("user_edit_image", "radio");
  show_setting_row("user_delete_image", "radio");
  show_setting_row("user_edit_comments", "radio");
  show_setting_row("user_delete_comments", "radio");
  show_setting_row("account_activation", "show_account_activation_options");
  show_setting_row("activation_time");
  show_setting_row("session_timeout");
  show_setting_row("display_whosonline", "radio");
  show_setting_row("highlight_admin", "radio");
 
show_table_separator($setting_group[8], 2, "setting_group_8");
  show_setting_row_title("sumale_linkus_468x60_onoff", "radio");
  show_setting_row("sumale_linkus_468x60_grafik");
  show_setting_row("sumale_linkus_468x60_beschreibung");
  show_setting_row_title("sumale_linkus_234x60_onoff", "radio");
  show_setting_row("sumale_linkus_234x60_grafik");
  show_setting_row("sumale_linkus_234x60_beschreibung");
  show_setting_row_title("sumale_linkus_156x60_onoff", "radio");
  show_setting_row("sumale_linkus_156x60_grafik");
  show_setting_row("sumale_linkus_156x60_beschreibung");
  show_setting_row_title("sumale_linkus_400x50_onoff", "radio");
  show_setting_row("sumale_linkus_400x50_grafik");
  show_setting_row("sumale_linkus_400x50_beschreibung");
  show_setting_row_title("sumale_linkus_137x60_onoff", "radio");
  show_setting_row("sumale_linkus_137x60_grafik");
  show_setting_row("sumale_linkus_137x60_beschreibung");
  show_setting_row_title("sumale_linkus_88x31_onoff", "radio");
  show_setting_row("sumale_linkus_88x31_grafik");
  show_setting_row("sumale_linkus_88x31_beschreibung");
  show_setting_row_title("sumale_linkus_125x125_onoff", "radio");
  show_setting_row("sumale_linkus_125x125_grafik");
  show_setting_row("sumale_linkus_125x125_beschreibung");
  show_setting_row_title("sumale_linkus_75x75_onoff", "radio");
  show_setting_row("sumale_linkus_75x75_grafik");
  show_setting_row("sumale_linkus_75x75_beschreibung");
  show_setting_row_title("sumale_linkus_120x600_onoff", "radio");
  show_setting_row("sumale_linkus_120x600_grafik");
  show_setting_row("sumale_linkus_120x600_beschreibung");
  show_setting_row_title("sumale_linkus_160x600_onoff", "radio");
  show_setting_row("sumale_linkus_160x600_grafik");
  show_setting_row("sumale_linkus_160x600_beschreibung");
}

show_admin_footer();
?>
Title: Re: [MOD] Linkus Control
Post by: Sunny C. on September 29, 2010, 01:16:55 PM
I'm sorry, but I know absolutely can not be the problem. It may also occur by other modifications to complications.
Title: Re: [MOD] Linkus Control
Post by: MrAndrew on October 01, 2010, 10:39:39 AM
Ok. It`s possible to create a php file out of page_header.php with code? I created a links.php with code

<?php
$templates_used = 'linkus';
$main_template = 'linkus';

define('GET_CACHES', 1);
define('ROOT_PATH', './');
define('GET_USER_ONLINE', 1);
define('MAIN_SCRIPT', __FILE__);
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
$user_access = get_permission();
include(ROOT_PATH.'includes/page_header.php');

$file = get_file_name(basename(MAIN_SCRIPT));
$array = array(
    "categories" => false,
    "details"    => false,
    "index"      => false,
    "member"     => false,
    "postcards"  => false,
    "register"   => false,
    "search"     => false,
    "top"        => false
);
if ( isset($array[$file]) ) {
  $array[$file] = true;
}
$site_template->register_vars($array);
$sumale_linkus_foursix = $config['sumale_linkus_foursix'];
$sumale_linkus_foursix_beschreibung = $config['sumale_linkus_foursix_beschreibung'];
$sumale_linkus_foursix_grafik = $config['sumale_linkus_foursix_grafik'];
$sumale_linkus_twosix = $config['sumale_linkus_twosix'];
$sumale_linkus_twosix_beschreibung = $config['sumale_linkus_twosix_beschreibung'];
$sumale_linkus_twosix_grafik = $config['sumale_linkus_twosix_grafik'];
$sumale_linkus_onesix = $config['sumale_linkus_onesix'];
$sumale_linkus_onesix_beschreibung = $config['sumale_linkus_onesix_beschreibung'];
$sumale_linkus_onesix_grafik = $config['sumale_linkus_onesix_grafik'];
$sumale_linkus_fourfive = $config['sumale_linkus_fourfive'];
$sumale_linkus_fourfive_beschreibung = $config['sumale_linkus_fourfive_beschreibung'];
$sumale_linkus_fourfive_grafik = $config['sumale_linkus_fourfive_grafik'];
$sumale_linkus_onesixzero = $config['sumale_linkus_onesixzero'];
$sumale_linkus_onesixzero_beschreibung = $config['sumale_linkus_onesixzero_beschreibung'];
$sumale_linkus_onesixzero_grafik = $config['sumale_linkus_onesixzero_grafik'];
$sumale_linkus_eightthree = $config['sumale_linkus_eightthree'];
$sumale_linkus_eightthree_beschreibung = $config['sumale_linkus_eightthree_beschreibung'];
$sumale_linkus_eightthree_grafik = $config['sumale_linkus_eightthree_grafik'];
$sumale_linkus_oneone = $config['sumale_linkus_oneone'];
$sumale_linkus_oneone_beschreibung = $config['sumale_linkus_oneone_beschreibung'];
$sumale_linkus_oneone_grafik = $config['sumale_linkus_oneone_grafik'];
$sumale_linkus_seven = $config['sumale_linkus_seven'];
$sumale_linkus_seven_beschreibung = $config['sumale_linkus_seven_beschreibung'];
$sumale_linkus_seven_grafik = $config['sumale_linkus_seven_grafik'];
$sumale_linkus_onesixzerozero = $config['sumale_linkus_onesixzerozero'];
$sumale_linkus_onesixzerozero_beschreibung = $config['sumale_linkus_onesixzerozero_beschreibung'];
$sumale_linkus_onesixzerozero_grafik = $config['sumale_linkus_onesixzerozero_grafik'];
$sumale_linkus_onesixsixzerozero = $config['sumale_linkus_onesixsixzerozero'];
$sumale_linkus_onesixsixzerozero_beschreibung = $config['sumale_linkus_onesixsixzerozero_beschreibung'];
$sumale_linkus_onesixsixzerozero_grafik = $config['sumale_linkus_onesixsixzerozero_grafik'];

   if($config['sumale_linkus_foursix_onoff'] == 1)  {
   $sumale_linkus_foursix .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_foursix']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_foursix_grafik."\" width=\"468\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_foursix_beschreibung."\" title=\"".$sumale_linkus_foursix_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_foursix_grafik."\" width=\"468\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_foursix_beschreibung."\" title=\"".$sumale_linkus_foursix_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_foursix_grafik."\" width=\"468\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_foursix_beschreibung."\" title=\"".$sumale_linkus_foursix_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_foursix_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
   if($config['sumale_linkus_twosix_onoff'] == 1)  {
   $sumale_linkus_twosix .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_twosix']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_twosix_grafik."\" width=\"234\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_twosix_beschreibung."\" title=\"".$sumale_linkus_twosix_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_twosix_grafik."\" width=\"234\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_twosix_beschreibung."\" title=\"".$sumale_linkus_twosix_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_twosix_grafik."\" width=\"234\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_twosix_beschreibung."\" title=\"".$sumale_linkus_twosix_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_twosix_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
   if($config['sumale_linkus_onesix_onoff'] == 1)  {
   $sumale_linkus_onesix .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_onesix']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_onesix_grafik."\" width=\"156\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_onesix_beschreibung."\" title=\"".$sumale_linkus_onesix_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_onesix_grafik."\" width=\"156\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_onesix_beschreibung."\" title=\"".$sumale_linkus_onesix_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_onesix_grafik."\" width=\"156\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_onesix_beschreibung."\" title=\"".$sumale_linkus_onesix_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_onesix_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
   if($config['sumale_linkus_fourfive_onoff'] == 1)  {
   $sumale_linkus_fourfive .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_fourfive']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_fourfive_grafik."\" width=\"400\" height=\"50\" border=\"0\" alt=\"".$sumale_linkus_fourfive_beschreibung."\" title=\"".$sumale_linkus_fourfive_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_fourfive_grafik."\" width=\"400\" height=\"50\" border=\"0\" alt=\"".$sumale_linkus_fourfive_beschreibung."\" title=\"".$sumale_linkus_fourfive_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_fourfive_grafik."\" width=\"400\" height=\"50\" border=\"0\" alt=\"".$sumale_linkus_fourfive_beschreibung."\" title=\"".$sumale_linkus_fourfive_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_fourfive_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
   if($config['sumale_linkus_onesixzero_onoff'] == 1)  {
   $sumale_linkus_onesixzero .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_onesixzero']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_onesixzero_grafik."\" width=\"137\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_onesixzero_beschreibung."\" title=\"".$sumale_linkus_onesixzero_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_onesixzero_grafik."\" width=\"137\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_onesixzero_beschreibung."\" title=\"".$sumale_linkus_onesixzero_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_onesixzero_grafik."\" width=\"137\" height=\"60\" border=\"0\" alt=\"".$sumale_linkus_onesixzero_beschreibung."\" title=\"".$sumale_linkus_onesixzero_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_onesixzero_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
   if($config['sumale_linkus_eightthree_onoff'] == 1)  {
   $sumale_linkus_eightthree .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_eightthree']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_eightthree_grafik."\" width=\"88\" height=\"31\" border=\"0\" alt=\"".$sumale_linkus_eightthree_beschreibung."\" title=\"".$sumale_linkus_eightthree_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_eightthree_grafik."\" width=\"88\" height=\"31\" border=\"0\" alt=\"".$sumale_linkus_eightthree_beschreibung."\" title=\"".$sumale_linkus_eightthree_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_eightthree_grafik."\" width=\"88\" height=\"31\" border=\"0\" alt=\"".$sumale_linkus_eightthree_beschreibung."\" title=\"".$sumale_linkus_eightthree_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_eightthree_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
   if($config['sumale_linkus_oneone_onoff'] == 1)  {
   $sumale_linkus_oneone .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_oneone']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_oneone_grafik."\" width=\"125\" height=\"125\" border=\"0\" alt=\"".$sumale_linkus_oneone_beschreibung."\" title=\"".$sumale_linkus_oneone_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_oneone_grafik."\" width=\"125\" height=\"125\" border=\"0\" alt=\"".$sumale_linkus_oneone_beschreibung."\" title=\"".$sumale_linkus_oneone_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_oneone_grafik."\" width=\"125\" height=\"125\" border=\"0\" alt=\"".$sumale_linkus_oneone_beschreibung."\" title=\"".$sumale_linkus_oneone_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_oneone_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
   if($config['sumale_linkus_seven_onoff'] == 1)  {
   $sumale_linkus_seven .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_seven']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_seven_grafik."\" width=\"75\" height=\"75\" border=\"0\" alt=\"".$sumale_linkus_seven_beschreibung."\" title=\"".$sumale_linkus_seven_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_seven_grafik."\" width=\"75\" height=\"75\" border=\"0\" alt=\"".$sumale_linkus_seven_beschreibung."\" title=\"".$sumale_linkus_seven_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_seven_grafik."\" width=\"75\" height=\"75\" border=\"0\" alt=\"".$sumale_linkus_seven_beschreibung."\" title=\"".$sumale_linkus_seven_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_seven_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
   if($config['sumale_linkus_onesixzerozero_onoff'] == 1)  {
   $sumale_linkus_onesixzerozero .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_onesixzerozero']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_onesixzerozero_grafik."\" width=\"120\" height=\"600\" border=\"0\" alt=\"".$sumale_linkus_onesixzerozero_beschreibung."\" title=\"".$sumale_linkus_onesixzerozero_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_onesixzerozero_grafik."\" width=\"120\" height=\"600\" border=\"0\" alt=\"".$sumale_linkus_onesixzerozero_beschreibung."\" title=\"".$sumale_linkus_onesixzerozero_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_onesixzerozero_grafik."\" width=\"120\" height=\"600\" border=\"0\" alt=\"".$sumale_linkus_onesixzerozero_beschreibung."\" title=\"".$sumale_linkus_onesixzerozero_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_onesixzerozero_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
   if($config['sumale_linkus_onesixsixzerozero_onoff'] == 1)  {
   $sumale_linkus_onesixsixzerozero .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td valign=\"top\" class=\"head1\">
      <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
        <tr>
          <td colspan=\"2\" valign=\"top\" class=\"head1\">".$lang['sumale_linkus_onesixsixzerozero']."</td>
          </tr>
        <tr>
          <td colspan=\"2\" align=\"center\" class=\"row2\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_onesixsixzerozero_grafik."\" width=\"160\" height=\"600\" border=\"0\" alt=\"".$sumale_linkus_onesixsixzerozero_beschreibung."\" title=\"".$sumale_linkus_onesixsixzerozero_beschreibung."\" /></td>
          </tr>
        <tr>
          <td class=\"row1\"><b>HTML</b></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\" target=\"_blank\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_onesixsixzerozero_grafik."\" width=\"160\" height=\"600\" border=\"0\" alt=\"".$sumale_linkus_onesixsixzerozero_beschreibung."\" title=\"".$sumale_linkus_onesixsixzerozero_beschreibung."\"></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row2\"><b>XHTML</b></td>
          <td class=\"row2\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\"><a href=\"".$site_sess->url($script_url."/".$self_url)."\"><img src=\"".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_onesixsixzerozero_grafik."\" width=\"160\" height=\"600\" border=\"0\" alt=\"".$sumale_linkus_onesixsixzerozero_beschreibung."\" title=\"".$sumale_linkus_onesixsixzerozero_beschreibung."\" /></a></textarea></td>
        </tr>
        <tr>
          <td class=\"row1\"><strong>BBCODE</strong></td>
          <td class=\"row1\" align=\"right\"><textarea cols=\"45\" onfocus = \"this.select()\" onmouseover = \"this.focus()\">[URL=http://".$site_sess->url($script_url."/".$self_url)."][IMG]http://".($script_url."/".SUMALE_TEMPLATE_PATH."/images/linkus")."/".$sumale_linkus_onesixsixzerozero_grafik."[/img][/URL]</textarea></td>
        </tr>
      </table>
    </td>
  </tr>
</table><br />";
   }
   
   $site_template->register_vars(array(

  "lang_sumale_linkus" => $lang['sumale_linkus'],
  "lang_sumale_linkus_url" => $lang['sumale_linkus_url'],
  "sumale_linkus_foursix" => $sumale_linkus_foursix,
  "lang_sumale_linkus_foursix" => $lang['sumale_linkus_foursix'],
  "sumale_linkus_twosix" => $sumale_linkus_twosix,
  "lang_sumale_linkus_twosix" => $lang['sumale_linkus_twosix'],
  "sumale_linkus_onesix" => $sumale_linkus_onesix,
  "lang_sumale_linkus_onesix" => $lang['sumale_linkus_onesix'],
  "sumale_linkus_fourfive" => $sumale_linkus_fourfive,
  "lang_sumale_linkus_fourfive" => $lang['sumale_linkus_fourfive'],
  "sumale_linkus_onesixzero" => $sumale_linkus_onesixzero,
  "lang_sumale_linkus_onesixzero" => $lang['sumale_linkus_onesixzero'],
  "sumale_linkus_eightthree" => $sumale_linkus_eightthree,
  "lang_sumale_linkus_eightthree" => $lang['sumale_linkus_eightthree'],
  "sumale_linkus_oneone" => $sumale_linkus_oneone,
  "lang_sumale_linkus_oneone" => $lang['sumale_linkus_oneone'],
  "sumale_linkus_seven" => $sumale_linkus_seven,
  "lang_sumale_linkus_seven" => $lang['sumale_linkus_seven'],
  "sumale_linkus_onesixzerozero" => $sumale_linkus_onesixzerozero,
  "lang_sumale_linkus_onesixzerozero" => $lang['sumale_linkus_onesixzerozero'],
  "sumale_linkus_onesixsixzerozero" => $sumale_linkus_onesixsixzerozero,
  "lang_sumale_linkus_onesixsixzerozero" => $lang['sumale_linkus_onesixsixzerozero'],
  "url_linkus" => $site_sess->url(ROOT_PATH."links.php"),
   
    ));
 
?>

But i`m not programmer, and can not do this right. Please help me to complete this code. Many many thanks for help!
Title: Re: [MOD] Linkus Control
Post by: ASAD on October 25, 2011, 02:50:24 AM
@Sumale.nin
Hi,
 es funktioniert auf 1.7.10?
Step 1.1 finde ich nicht, nur so was hab gefunden:
if (isset($array[$file])) {
  $array[$file] = true;
}
if (isset($array["page_" . $file])) {
  $array["page_" . $file] = true;
}
$site_template->register_vars($array);

$site_template->register_vars(array(
Title: Re: [MOD] Linkus Control
Post by: ASAD on October 25, 2011, 10:02:07 PM
Ja bei 1.7.10 musst du das suchen
if (isset($array["page_" . $file])) {
  $array["page_" . $file] = true;
}
$site_template->register_vars($array);

Ich schau mal das ich das auf 1.7.10 update
Danke.
Title: Re: [MOD] Linkus Control
Post by: ASAD on November 04, 2011, 05:13:31 PM
BBCODE funktioniert nicht:

[IMG]http://http://grozny.eu/templates/default_960px/images/linkus/ban4.gif[/img] (http://http://grozny.eu/index.php)

und die 2-e ist kleine buchstabe, vielleicht habe ich irgendwo fehler gemacht?
Title: Re: [MOD] Linkus Control
Post by: ASAD on May 15, 2012, 10:06:02 PM
Hi, Sumale.nin
kannst du sagen warum bei mir 2 mal http://http:// steht in BBCODE?