Author Topic: [Mod] Verschiedene thumbnail_bit Templates  (Read 47052 times)

0 Members and 1 Guest are viewing this topic.

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Re: [Mod] Verschiedene thumbnail_bit Templates
« Reply #30 on: February 22, 2011, 06:14:49 PM »
Ok. A little problem... I have this parameters for show thumnails in my categories.php

  $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_neu get_cat_template($thumb_art$cat_id);
    
$thumbnails .= $site_template->parse_template("$thumbnails_neu");
    
$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";


See this part:

if ($count == $config['image_cells']) {

In my config in ACP this parameter set is 1...

For new template i need to change this part to 3, but if i will do this it will give affect on all categories templates.... Please, any ideas?

Many thanks


Offline khansahib

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: [Mod] Verschiedene thumbnail_bit Templates
« Reply #31 on: September 11, 2011, 07:35:52 PM »
MrAndrew are u looking for this???
Code: [Select]
http://www.4homepages.de/forum/index.php?topic=28703

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Re: [Mod] Verschiedene thumbnail_bit Templates
« Reply #32 on: September 11, 2011, 07:41:43 PM »
Many thanks! But i`ve resolved this problem...