Author Topic: Removing some info from index.php only  (Read 11048 times)

0 Members and 1 Guest are viewing this topic.

Offline Washi

  • Newbie
  • *
  • Posts: 21
    • View Profile
Removing some info from index.php only
« 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.

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Removing some info from index.php only
« Reply #1 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
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 Washi

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Removing some info from index.php only
« Reply #2 on: August 17, 2005, 12:35:57 PM »
Oooh! Thanks! Works like a charm! :D

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Removing some info from index.php only
« Reply #3 on: August 18, 2005, 06:14:55 PM »
Why ... Oooh!  ...  :?: ... it should also work ... :wink:

mawenzi
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 V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Removing some info from index.php only
« Reply #4 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!
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Removing some info from index.php only
« Reply #5 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
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 V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Removing some info from index.php only
« Reply #6 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:)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)