4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: Washi on August 17, 2005, 04:05:49 AM

Title: Removing some info from index.php only
Post by: Washi on August 17, 2005, 04:05:49 AM
Hey,

I'm having a small problem here. I'm trying to remove the image data (user name, comments and lightbox) from the index.php page. I tried messing around with it a bit, and couldn't remove the user name of the person who uploaded it. Then, I tried messing a bit with the thumbnail_bit.html, and the thumbnails changed on alll the pages. Is there a way to make the change only on the index.php page? Thanks.
Title: Re: Removing some info from index.php only
Post by: mawenzi on August 17, 2005, 11:18:29 AM
hi Washi,

1. provide a thumbnail_bit_less.html from a copy of thumbnail_bit.html, save your old thumbnail_bit.html

2. delete in thumbnail_bit_less.html all {tags} which you not need on your index.php/home.html

3. find in index.php the following on the top :
Code: [Select]
$templates_used = 'home,category_bit,thumbnail_bit, ... ';
and replace it by the following :
Code: [Select]
$templates_used = 'home,category_bit,thumbnail_bit_less, ... ';

4. find in index.php the following after //--- Show New Images ---  :
Code: [Select]
$new_images .= $site_template->parse_template("thumbnail_bit");
and replace it by the following :
Code: [Select]
$new_images .= $site_template->parse_template("thumbnail_bit_less");

now is indicated your thumbnail_bit_less.html on index.php/home.html and your thumbnail_bit.html on all other sides ...  :wink:

mawenzi
Title: Re: Removing some info from index.php only
Post by: Washi on August 17, 2005, 12:35:57 PM
Oooh! Thanks! Works like a charm! :D
Title: Re: Removing some info from index.php only
Post by: mawenzi on August 18, 2005, 06:14:55 PM
Why ... Oooh!  ...  :?: ... it should also work ... :wink:

mawenzi
Title: Re: Removing some info from index.php only
Post by: V@no on September 22, 2005, 01:21:27 AM
IMO, this should have been done since 4images was released - different templates for different pages...
good job mawenzi!
Title: Re: Removing some info from index.php only
Post by: mawenzi on September 22, 2005, 10:37:36 AM
... V@no is back (your last comment : 17.08.2005) ...  :wink:
... it is nice to read some new comments / statements of you here in the forum. 
Thanks for your note.

mawenzi
Title: Re: Removing some info from index.php only
Post by: V@no on September 22, 2005, 02:30:21 PM
yeah, was on a vocation 1 month...now I have to catch up by reading 33 pages with new posts...8O (hopefuly there are many in deutsch...:lol:)