• How can I show more new images on home page? 2 0 5 1
Currently:  

Author Topic: How can I show more new images on home page?  (Read 190972 times)

0 Members and 1 Guest are viewing this topic.

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
How can I show more new images on home page?
« on: July 20, 2005, 02:59:41 AM »
If you would like to show more new images on your 4images homepage, you will need:
Open index.php
Find:
Code: [Select]
$num_new_images = $config['image_cells'];Replace it with:
Code: [Select]
$num_new_images = XX;Where XX is the number of images.
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 Egly

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: How can I show more new images on home page?
« Reply #1 on: September 04, 2005, 11:21:18 PM »
Great! Thats exactly what i´ve been searching for :!:

Offline HaveFun

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: How can I show more new images on home page?
« Reply #2 on: December 05, 2005, 11:42:42 PM »
Thanks for the tipp.

I set the value to 0, to deactivate the "new pics".
The border and the heading is still there ... but I found no other way to deactivate it.

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: How can I show more new images on home page?
« Reply #3 on: December 05, 2005, 11:51:34 PM »
The border and the heading is still there ... but I found no other way to deactivate it.

... delete the table-code around the {new_images}-Tag in /templates/<your_template>/home.html.
( but ... make a backup from your original home.html )

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 HaveFun

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: How can I show more new images on home page?
« Reply #4 on: December 06, 2005, 12:02:28 AM »
wow ... thanks for your "realtime-reply" :)

I deleted
Code: [Select]
<td class="head1">{new_images}</td>
Now, its a little bit better ... it looks like this, now:
(Neue Bilder = New images)


Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: How can I show more new images on home page?
« Reply #5 on: December 06, 2005, 12:17:56 AM »
@ HaveFun,

... but i mean delete all table-code around the {new_images}-Tag ...
... example for default template ...
Code: [Select]
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr><td class="head1">
       <table width="100%" border="0" cellspacing="0" cellpadding="4">
       <tr><td class="head1" valign="top">{lang_new_images}</td>
       </tr></table>
</td></tr>
<tr><td class="head1">{new_images}</td>
</tr></table>

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 HaveFun

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: How can I show more new images on home page?
« Reply #6 on: December 06, 2005, 12:39:43 AM »
great, mawenzi! Works perfectly  :lol:

Offline kajkool

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: How can I show more new images on home page?
« Reply #7 on: December 22, 2005, 06:41:00 PM »
thanx my problem has been solved :)

Offline lorddean

  • Newbie
  • *
  • Posts: 20
    • View Profile
    • ElitePhoto.eu
Re: How can I show more new images on home page?
« Reply #8 on: February 05, 2006, 04:20:03 PM »
If you would like to show more new images on your 4images homepage, you will need:
Open index.php
Find:
Code: [Select]
$num_new_images = $config['image_cells'];Replace it with:
Code: [Select]
$num_new_images = XX;Where XX is the number of images.
What do I do, if this don't work? If I set XX to 3 it shows 3 new pictures on the front, but if I set the number above 4 it only shows 4 pictures. How do I get it to add an extra row with more pictures?

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: How can I show more new images on home page?
« Reply #9 on: February 05, 2006, 09:01:13 PM »
below that line insert:
Code: [Select]
$config['image_cells'] = XX;Where XX is the number of images per row.
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 egyptsons

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Egypt Sons
Re: How can I show more new images on home page?
« Reply #10 on: March 25, 2006, 07:39:51 PM »
 8) Thanks V@n  :wink:
Thanx God

Offline error

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: How can I show more new images on home page?
« Reply #11 on: April 19, 2006, 01:24:52 PM »
OK. Everythig is fine, but what should I do if I want to show "New More Images" not only on home page, but on the others sites too? Can yuo help me to solve this problem?

Offline Robertoj

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: How can I show more new images on home page?
« Reply #12 on: May 05, 2006, 06:20:21 PM »
Was really usefull, thanx mawenzi and v@no  :wink:

Offline proverbdoll

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://www.jovonna-rose.org
Re: How can I show more new images on home page?
« Reply #13 on: May 20, 2006, 05:33:19 AM »
Sweet! Thank you!

Offline mstgokcen

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: How can I show more new images on home page?
« Reply #14 on: July 20, 2006, 06:57:48 PM »
OK. Everythig is fine, but what should I do if I want to show "New More Images" not only on home page, but on the others sites too? Can yuo help me to solve this problem?


+1 Yes I need it to. In my frontpage there are 20 photos but I need next button for another recently 20 photos... I think it is not so hard but it is for me :)

Anyone can help plz?