Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Manny

Pages: [1]
1
Discussion & Troubleshooting / Re: Seitenzähler und Bildzähler
« on: December 30, 2014, 07:26:47 PM »
Ich bin jetzt mal hergegangen, und habe mir meine Categories.php gesichert und mit der Orginal Categories.php ausgetauscht
und siehe da, alles ist wieder da.

Ich habe den verdacht, das ich den Fehler gefunden habe.

In Zeile 129 habe ich folgendes stehen -> $num_rows_all = $num_rows_all + $multicount;

das habe ich jetzt mit der orginal Datei verglichen
und da steht das drin -> $num_rows_all = (isset($cat_cache[$cat_id]['num_images'])) ? $cat_cache[$cat_id]['num_images'] : 0;

das scheint es zu sein.

Grüße Manny

2
Discussion & Troubleshooting / Re: Seitenzähler und Bildzähler
« on: December 29, 2014, 04:57:26 PM »
Vor ca. 3 Monate, hatte jeman ein ähnliches Problem.

http://www.4homepages.de/forum/index.php?topic=31616.0

3
Discussion & Troubleshooting / Re: Seitenzähler und Bildzähler
« on: December 29, 2014, 03:47:17 PM »
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: categories.php                                       *
 *        Copyright: (C) 2002-2012 Jan Sorgalla                           *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.11                                               *
 *                                                                        *
 *    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.                              *
 *                                                                        *
 *************************************************************************/

$templates_used 'categories,category_bit,thumbnail_bit';
$main_template 'categories';

define('GET_CACHES'1);
define('ROOT_PATH''./');
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');

if (!
$cat_id || !isset($cat_cache[$cat_id]) || !check_permission("auth_viewcat"$cat_id)) {
  
redirect("index.php");
}

$cache_id create_cache_id(
  
'page.categories',
  array(
    
$user_info[$user_table_fields['user_id']],
    
$cat_id,
    
$page,
    
$perpage,
    isset(
$user_info['lightbox_image_ids']) ? substr(md5($user_info['lightbox_image_ids']), 08) : 0,
    
$config['template_dir'],
    
$config['language_dir']
  )
);

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

ob_start();

//-----------------------------------------------------
//--- SEO variables -----------------------------------
//-----------------------------------------------------

$meta_description = !empty($cat_cache[$cat_id]['cat_description']) ? htmlspecialchars(strip_tags(trim($cat_cache[$cat_id]['cat_description']))) . ". " "";
    
$meta_description preg_replace('/[\n\t\r]+/'' ',$meta_description);
    
$meta_keywords preg_replace("#[-_'`´\^\$\(\)<>\"\|,@\?%~\+\.\[\]{}:\/=!§\\\\]+#s"" "$meta_description);
    
    
$meta_keywords_array array_unique(explode(" ",$meta_keywords));
    
$meta_keywords "";
      foreach(
$meta_keywords_array as $val){
        
$len strlen($val);
        if (
$len >= 5) {
          
$meta_keywords .=  $val.",";
        }
      } 

    
$site_template->register_vars(array(
      
"detail_meta_description"   => $meta_description,
      
"detail_meta_keywords"      => $meta_keywords,
      
"prepend_head_title"        => $cat_cache[$cat_id]['cat_name'] . " - "
      
));

//-----------------------------------------------------
//--- Show Categories ---------------------------------
//-----------------------------------------------------
if (!check_permission("auth_upload"$cat_id)) {
  
$upload_url "";
  
$upload_button "<img src=\"".get_gallery_image("upload_off.gif")."\" border=\"0\" alt=\"\" />";
  
$multi_upload_url "";
  
$multi_upload_button "<img src=\"".get_gallery_image("multiupload_off.gif")."\" border=\"0\" alt=\"\" />";
}
else {
  
$upload_url $site_sess->url(ROOT_PATH."member.php?action=uploadform&amp;".URL_CAT_ID."=".$cat_id);
  
$upload_button "<a href=\"".$upload_url."\"><img src=\"".get_gallery_image("upload.gif")."\" border=\"0\" alt=\"\" /></a>";
  
$multi_upload_url $site_sess->url(ROOT_PATH."member.php?action=multi_upload&".URL_CAT_ID."=".$cat_id);
  
$multi_upload_button "<a href=\"".$multi_upload_url."\"><img src=\"".get_gallery_image("multiupload.gif")."\" border=\"0\" alt=\"\" /></a>";
}

$random_cat_image = (defined("SHOW_RANDOM_IMAGE") && SHOW_RANDOM_IMAGE == 0) ? "" get_random_image($cat_id);
$site_template->register_vars(array(
  
"categories" => get_categories($cat_id),
  
"cat_name" => format_text($cat_cache[$cat_id]['cat_name'], 2),
  
"cat_description" => format_text($cat_cache[$cat_id]['cat_description'], 101),
  
"cat_hits" => $cat_cache[$cat_id]['cat_hits'],
  
"upload_url" => $upload_url,
  
"upload_button" => $upload_button,
  
"multi_upload_url" => $multi_upload_url,
  
"multi_upload_button" => $multi_upload_button,
  
"random_cat_image" => $random_cat_image
));

unset(
$random_cat_image);





//-----------------------------------------------------
//--- Show Images -------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  
"has_rss"   => true,
  
"rss_title" => "RSS Feed: ".format_text($cat_cache[$cat_id]['cat_name'], 2)." (".str_replace(':'''$lang['new_images']).")",
  
"rss_url"   => $script_url."/rss.php?action=images&amp;".URL_CAT_ID."=".$cat_id
));

$num_rows_all $num_rows_all $multicount;
$link_arg $site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id);

include(
ROOT_PATH.'includes/paging.php');
$getpaging = new Paging($page$perpage$num_rows_all$link_arg);
$offset $getpaging->get_offset();

$site_template->register_vars(array(
  
"paging" => $getpaging->get_paging(),
  
"paging_stats" => $getpaging->get_paging_stats()
));

$imgtable_width ceil((intval($config['image_table_width'])) / $config['image_cells']);
if ((
substr($config['image_table_width'], -1)) == "%") {
  
$imgtable_width .= "%";
}

$additional_sql "";
if (!empty(
$additional_image_fields)) {
  foreach (
$additional_image_fields as $key => $val) {
    
$additional_sql .= ", i.".$key;
  }
}

$sql "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.""user_name")."
        FROM ("
.IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)
        LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = i.user_id)
        WHERE i.image_active = 1 AND i.cat_id = 
$cat_id AND c.cat_id = i.cat_id
        ORDER BY "
.$config['image_order']." ".$config['image_sort'].", i.image_id ".$config['image_sort']."
        LIMIT 
$offset$perpage";
$result $site_db->query($sql);
$num_rows $site_db->get_numrows($result);

if (!
$num_rows)  {
  
$thumbnails "";
  
$msg $lang['no_images'];
}
else {
  
$thumbnails "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">\n";
  
$count 0;
  
$bgcounter 0;
  while (
$image_row $site_db->fetch_array($result)){
    if (
$count == 0) {
      
$row_bg_number = ($bgcounter++ % == 0) ? 2;
      
$thumbnails .= "<tr class=\"imagerow".$row_bg_number."\">\n";
    }
    
$thumbnails .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n";

    
show_image($image_row);
    
$thumbnails .= $site_template->parse_template("thumbnail_bit");
    
$thumbnails .= "\n</td>\n";

    
$count++;
    if (
$count == $config['image_cells']) {
      
$thumbnails .= "</tr>\n";
      
$count 0;
    }
  } 
// end while

  
if ($count 0)  {
    
$leftover = ($config['image_cells'] - $count);
    if (
$leftover 0) {
      for (
$i 0$i $leftover$i++){
        
$thumbnails .= "<td width=\"".$imgtable_width."\">\n&nbsp;\n</td>\n";
      }
      
$thumbnails .= "</tr>\n";
    }
  }
  
$thumbnails .= "</table>\n";
//end else
$site_template->register_vars("thumbnails"$thumbnails);
unset(
$thumbnails);

//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].get_category_path($cat_id)."</span>";

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  
"msg" => $msg,
  
"clickstream" => $clickstream
));

$site_template->print_template($site_template->parse_template($main_template));

$content ob_get_contents();
ob_end_clean();

if (
$cache_page_categories) {
  
// Reset session mode
  
$site_sess->mode $old_session_mode;

  
save_cache_file($cache_id$content);
}

// end if get_cache_file()

echo $content;

//Update Category Hits
if ($user_info['user_level'] != ADMIN && $page == 1) {
  
$sql "UPDATE ".CATEGORIES_TABLE."
          SET cat_hits = cat_hits + 1
          WHERE cat_id = 
$cat_id";
  
$site_db->query($sql);
}

include(
ROOT_PATH.'includes/page_footer.php');
?>

4
Discussion & Troubleshooting / Re: Seitenzähler und Bildzähler
« on: December 29, 2014, 11:50:15 AM »
Ich benutze das default_full und da ist es drin???

Zeile 167 ??

{header}
<
table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <
tr>
    <
td>
      <
table width="100%" border="0" cellspacing="0" cellpadding="0" class="tablehead">
        <
tr>
          <
td width="100%" colspan="4"><table cellpadding="0" cellspacing="0" width="100%">
    <
tr>
        <
td width="6"><img src="{template_url}/images/header_top_left.gif" width="6" height="6" alt="" /></td>
        <
td width="100%"><img src="{template_url}/images/header_top.gif" width="100%" height="6" alt="" /></td>
        <
td width="6"><img src="{template_url}/images/header_top_right.gif" width="6" height="6" alt="" /></td>
    </
tr>
</
table>
</
td>
        </
tr>
        <
tr>
          <
td width="6"><img src="{template_url}/images/header_left.gif" width="6" height="120" alt="" /></td>
          <
td width="100%"><img src="{template_url}/images/kbs761.gif" height="120" alt="" /></td>
          <
td width="225" align="right">
            <
form method="post" action="{url_search}">
              <
table border="0" cellspacing="0" cellpadding="1">
                <
tr>
                  <
td>
                    <
input type="text" name="search_keywords" size="15" class="searchinput" />
                  </
td>
                  <
td>
                    <
input type="submit" value="{lang_search}" class="button" name="submit" />
                  </
td>
                </
tr>
                <
tr valign="top">
                  <
td colspan="2"><a href="{url_search}" class="smalltext">{lang_advanced_search}</a></td>
                </
tr>
              </
table>
            </
form>
          </
td>
          <
td align="right" width="6"><img src="{template_url}/images/header_right.gif" width="6" height="120" alt="" /></td>
        </
tr>
      </
table>
    </
td>
  </
tr>
  <
tr>
    <
td class="bordercolor">
      <
table width="100%" border="0" cellspacing="1" cellpadding="0">
        <
tr>
          <
td class="tablebgcolor">
            <
table width="100%" border="0" cellspacing="1" cellpadding="0">
              <
tr>
                <
td class="navbar" height="23">
                  <
table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <
tr>
                      <
td><img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />{clickstream}</td>
                      <
td align="right">
                                                <
a href="{url_new_images}"><b>{lang_new_images}</b></a>&nbsp;&nbsp;|&nbsp;&nbsp;
                                                <
a href="{url_top_images}"><b>{lang_top_images}</b></a>&nbsp;
                                          </
td>
                    </
tr>
                  </
table>
                </
td>
              </
tr>
            </
table>
            <
table width="100%" border="0" cellspacing="0" cellpadding="0">
              <
tr>
                <
td width="160" class="row2" valign="top">
                  <
table width="160" border="0" cellspacing="0" cellpadding="0">
                    <
tr>
                      <
td class="head2" height="20">&nbsp;&nbsp;<img src="{template_url}/images/people.png" alt="" />&nbsp;<img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_registered_user}</td>
                    </
tr>
                    <
tr>
                      <
td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </
tr>
                    <
tr>
                      <
td align="center" class="row1">{user_box} </td>
                    </
tr>
                    <
tr>
                      <
td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </
tr>
                  </
table>
                  {if 
random_cat_image}
                  <
table width="160" border="0" cellspacing="0" cellpadding="0">
                    <
tr>
                      <
td class="head2" height="20">&nbsp;&nbsp;<img src="{template_url}/images/emblem.png" alt="" />&nbsp;<img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_random_image}</td>
                    </
tr>
                    <
tr>
                      <
td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </
tr>
                    <
tr>
                      <
td align="center" class="row1">
                        <
br />
                        {
random_cat_image}
                        <
br />
                        <
br />
                      </
td>
                    </
tr>
                    <
tr>
                      <
td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </
tr>
                  </
table>
                  {endif 
random_cat_image}
                  
                  
                  
                 <
table width="160" border="0" cellspacing="0" cellpadding="0">
                    <
tr>
                      <
td class="head2" height="20">&nbsp;&nbsp;<img src="{template_url}/images/counter.png" alt="" />&nbsp;<img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />Counter</td>
                    </
tr>


                    <
tr>
                      <
td><p align="center"><? include "chCounter/counter.php"?></p></td>
                    </tr>
                    
                    
                    <tr>
                      <td>
                        <br />
                      </td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                  </table>   
                  
                  
                  
                </td>                
                <td width="1" class="bordercolor" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                <td width="18" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="18" height="18" /></td>
                <td width="100%" valign="top"><br />
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><b class="title">{cat_name}</b></td>
                      <td align="right" valign="bottom">{multi_upload_button}&nbsp;{upload_button}</td>
                    </tr>
                  </table>
                  <br />{cat_description} (Hits: {cat_hits})
                  <hr size="1" />
                  {if categories}
                  <table width="100%" border="0" cellspacing="0" cellpadding="1">
                    <tr>
                      <td class="head1">
                        <table width="100%" border="0" cellspacing="0" cellpadding="3">
                          <tr>
                            <td class="head1" valign="top">&nbsp;&nbsp;<img src="{template_url}/images/category.png" border="0" align="bottom"/>&nbsp;&nbsp;{lang_sub_categories}</td>
                          </tr>
                          <tr>
                            <td class="row2" valign="top">{categories}</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                  <br />
                                  {endif categories}
                                  <br />
                                  {paging_stats}
                                  <br />
                                  <br />
                  {if msg}<b>{msg}</b><br /><br />{endif msg}
                  {if thumbnails}
                                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="head1">{thumbnails}</td>
                    </tr>
                  </table>
                                  {endif thumbnails}
                  <br />
                                  {paging}
                                  <br />
                                  
                                  
                                  
                                  <br />
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td>{category_dropdown_form}</td>
                      <td align="right">{setperpage_dropdown_form}</td>
                    </tr>
                  </table>
                  <p>&nbsp;</p>
                  
                  
                  
                                </td>
                <td width="19" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="19" height="19" /></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tablebottom">
        <tr>
          <td width="6" nowrap><img src="{template_url}/images/footer_left.gif" width="6" height="19" alt="" /></td>
          <td width="100%"></td>
          <td width="6" nowrap><img src="{template_url}/images/footer_right.gif" width="6" height="19" alt="" /></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
{footer}

5
Discussion & Troubleshooting / Re: Seitenzähler und Bildzähler
« on: December 29, 2014, 09:53:11 AM »
Hm,
>> {paging}

ist drinn  :(

6
Discussion & Troubleshooting / Seitenzähler und Bildzähler
« on: December 28, 2014, 07:57:09 PM »
Hallo zusammen,
Ich habe auf meiner Seite xxx: kbs761. synology. me/ebbilder/index. php folgendes Problem.
Die Seitenzahlen unterhalb der Bild-Galerie und der Bild/Seitenerzähler oberhalb der Bild-Galerie wird,
wenn ich Neue Bilder oder auf Suchen gehe angezeigt.

Siehe Zwischenablage-1


Sobald ich allerding auf eine Kategorie gehe, sind Seitenzahlen unterhalb der Bild-Galerie und der Bild/Seitenerzähler oberhalb der Bild-Galerie
verschwunden. Da manche Kategorien über 400 Bilder haben kann man nur max. 40 Bilder sehen durch das Menü (Bilder pro Seite)

Siehe Zwischenablage-2


Hätte einer eine Lösung für mich ?

Grüße Manny

Pages: [1]