Author Topic: more new images show on the index pages  (Read 3274 times)

0 Members and 1 Guest are viewing this topic.

Offline samacsahara

  • Pre-Newbie
  • Posts: 4
    • View Profile
more new images show on the index pages
« on: September 24, 2007, 02:08:30 AM »
please help me how to add more new images on the index page, my page now look like that

http://206.221.180.50/~ibvn/baodoanket/buttonanhmore/ScreenHunter_5.jpg


anh now i want it look like that


http://206.221.180.50/~ibvn/baodoanket/buttonanhmore/ScreenHunter_4.jpg

Please help. thank you

Offline n3w

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: more new images show on the index pages
« Reply #1 on: September 24, 2007, 05:15:36 AM »
In index.php

in:
Quote
//-----------------------------------------------------
//--- Show New Images ---------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  "has_rss"   => true,
  "rss_title" => "RSS Feed: ".format_text($config['site_name'], 2)." (".str_replace(':', '', $lang['new_images']).")",
  "rss_url"   => $script_url."/rss.php?action=images"
));

$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;
  }
}

$num_new_images = $config['image_cells'];

Search:
Quote
$num_new_images = $config['image_cells'];

Replace:
Quote
$num_new_images = 15;

Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.423
    • View Profile
    • 4images - Image Gallery Management System
Re: more new images show on the index pages
« Reply #2 on: September 24, 2007, 09:04:02 AM »
Yes. It's also mentioned in the F.A.Q.:
http://www.4homepages.de/forum/index.php?board=14.0
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search