Author Topic: Less info on the frontpage  (Read 7311 times)

0 Members and 1 Guest are viewing this topic.

Offline Muurtegel

  • Pre-Newbie
  • Posts: 7
    • View Profile
Less info on the frontpage
« on: September 17, 2008, 10:24:54 PM »
Hello everyone,

I'm looking for a way to get less information below the images on my frontpage.
The information that i'd like to get rid of is: The name of the image, the user who uploaded it, the category, the comments and the lightbox button.
(I want to get rid of all the text and only keep the image thumbnail)

A screenshot of my current frontpage:




Thanks in advance,
Matt


edit: nvm i found it already; thumbnail_bit.html was the file i was searching for..!
« Last Edit: September 17, 2008, 10:35:44 PM by Muurtegel »

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Less info on the frontpage
« Reply #1 on: September 17, 2008, 10:45:34 PM »
hello and welcome to 4images forum

... less information for thumbnail / image only on index page (not on category page) ...
... try this ...

1.1 in index.php find the following code line
Code: [Select]
$templates_used = 'home,category_bit,whos_online,thumbnail_bit';
and replace it by
Code: [Select]
$templates_used = 'home,category_bit,whos_online,thumbnail_index_bit';

1.2.  in index.php find the following code line
Code: [Select]
$new_images .= $site_template->parse_template("thumbnail_bit");
and replace it by
Code: [Select]
$new_images .= $site_template->parse_template("thumbnail_index_bit");

2.1 make a copy of your /templates/<your_template>/thumbnail_bit.html and rename it to thumbnail_index_bit.html

2.2 in your new /templates/<your_template>/thumbnail_index_bit.html delete all the informations you won't show with your thumbnails on index page e.g. ...
Code: [Select]
<a href="{cat_url}">{cat_name}</a><br />
{if allow_comments}{lang_comments} {image_comments}{endif allow_comments}<br />
{lightbox_button}<br>
{download_button}

... I think ... that's all ... ;)

Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Muurtegel

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Less info on the frontpage
« Reply #2 on: September 17, 2008, 10:48:36 PM »
hello and welcome to 4images forum

... less information for thumbnail / image only on index page (not on category page) ...
... try this ...

1.1 in index.php find the following code line
Code: [Select]
$templates_used = 'home,category_bit,whos_online,thumbnail_bit';
and replace it by
Code: [Select]
$templates_used = 'home,category_bit,whos_online,thumbnail_index_bit';

1.2.  in index.php find the following code line
Code: [Select]
$new_images .= $site_template->parse_template("thumbnail_bit");
and replace it by
Code: [Select]
$new_images .= $site_template->parse_template("thumbnail_index_bit");

2.1 make a copy of your /templates/<your_template>/thumbnail_bit.html and rename it to thumbnail_index_bit.html

2.2 in your new /templates/<your_template>/thumbnail_index_bit.html delete all the informations you won't show with your thumbnails on index page e.g. ...
Code: [Select]
<a href="{cat_url}">{cat_name}</a><br />
{if allow_comments}{lang_comments} {image_comments}{endif allow_comments}<br />
{lightbox_button}<br>
{download_button}

... I think ... that's all ... ;)



Thank you very much for replying so quickly!
I found the answer to this already though (I just had to edit the thumbnail_bit.html file)

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Less info on the frontpage
« Reply #3 on: September 18, 2008, 05:49:08 PM »
I found the answer to this already though (I just had to edit the thumbnail_bit.html file)

... but if you edit only the thumbnail_bit.html ...
... this affect also categories- and search-pages ...

... but your request was changing of thumbnail design only on frontpage ...  :? ... !
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Muurtegel

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Less info on the frontpage
« Reply #4 on: September 18, 2008, 06:31:24 PM »
Yeah i'm sorry, i didn't know that they were connected to each other..
It does look better w/o the info (on my site) even in the category section.

Thanks again though!