treckr Demo Gallery
Forgot password Registration
Username: Password: Auto Login?

4images Template

The template used by this site runs on is free to download, and free to use.

First you will need to download and install the 4images gallery software here: 4homepages

After that, download and install the template: treckr 4images Template Download

Please note, the zip file already contains the treckr directory, so unzip directly to your templates directory!

Important Information

The template is not really plug an play. Please read the instructions below carefully,
back-up all original files, and make note of your current gallery settings.

This text is available in the template zip too.

------------------------------------------------

Find the file nocatimg.png in de images directory of this template,
and copy this to the data/thumbnails directory of your 4images installation.

------------------------------------------------
You need to use the settings below. (See admin, settings)

Category Settings:

Sort Categories by: Default
Ascending/Descending: Ascending
Number of table cells: 1
Table Width: 100%
Cellspacing: 0
Cellpadding: 0

Image settings:

Sort Images by: Date
Ascending/Descending: Ascending
Border of Thumbnails: 0
Image Table Cells: 5
Image table rows: 10
Table Width: 100%

(and select the treckr template)

------------------------------------------------

Now you need to edit some of the 4images php files.

------------------------------------------------

open functions.php

find:

  $categories .= "<table border=\"0\" cellpadding=\"".
  $config['cat_table_cellpadding']."\" cellspacing=\"".
  $config['cat_table_cellspacing']."\">\n";
  
replace with:

    // treckr hack width 100%
  $categories .= "<table border=\"0\" width=\"100%\" cellpadding=\"".
  $config['cat_table_cellpadding'].  "\" cellspacing=\"".
  $config['cat_table_cellspacing']."\">\n";

find:

else {
      $random_cat_image_file = get_random_image($category_id, 0, 1);
    }
	
add after:

	// treckr hack
	
	$the_cat_image = get_the_cat_image($category_id);

find:

      "num_images" => $num_images

add before:
	  
	  "the_cat_image" => $the_cat_image,
  
------------------------------------------------  
  
add the function below to functions.php
  
  function get_the_cat_image($cat_id) {
	global $site_db;
	      $sql = "SELECT image_thumb_file
              FROM ".IMAGES_TABLE."
              WHERE image_active = 1 AND cat_id = $cat_id
			  ORDER BY image_id ASC
			  LIMIT 1";
      $row = $site_db->query_firstrow($sql);
	  if ($row['image_thumb_file'] == "") {
	  return "data/thumbnails/nocatimg.png";
	  } else {
      return "data/thumbnails/" .  $cat_id . "/" . $row['image_thumb_file'];
	  }
	}

------------------------------------------------
	
open the Enligsh main language file:
	
find:
	
	$lang['lang_auto_login'] = "Log me on automatically next visit?";

replace with:
	
	$lang['lang_auto_login'] = "Auto Login?";

------------------------------------------------
open index.php
	
find:
	
	$num_new_images = $config['image_cells'];
	
replace with:
	
	$num_new_images = 50;
	
------------------------------------------------
open details.php
	
find:
	
	  if (!$num_comments) {
    $comments = "<tr><td class=\"commentrow1\" colspan=\"2\">".
	$lang['no_comments']."</td></tr>";
  }
  
replace with:
  
    if (!$num_comments) {
    // treckr hack
    $comments = "<br />" . $lang['no_comments'];
	
------------------------------------------------	

In details.html around line 35 you will find my "addthis" sharing code.
Please go to www.addthis.com and generate your own code.

------------------------------------------------ 

Find:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">

in header.html and replace the "en" with the language of your site.

------------------------------------------------ 



This concludes the changes needed to make the template work.



Photoshop Button template : button.psd included in zip.



Random image


four-seasons
four-seasons
Comments: 0
bert

Template by Bali Property