4images Forum & Community

4images Help / Hilfe => FAQ, Tips => Topic started by: V@no on July 20, 2005, 02:59:41 AM

Title: How can I show more new images on home page?
Post by: V@no 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.
Title: Re: How can I show more new images on home page?
Post by: Egly on September 04, 2005, 11:21:18 PM
Great! Thats exactly what i´ve been searching for :!:
Title: Re: How can I show more new images on home page?
Post by: HaveFun 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.
Title: Re: How can I show more new images on home page?
Post by: mawenzi 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
Title: Re: How can I show more new images on home page?
Post by: HaveFun 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)

(http://img488.imageshack.us/img488/6962/image11fs.gif)
Title: Re: How can I show more new images on home page?
Post by: mawenzi 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
Title: Re: How can I show more new images on home page?
Post by: HaveFun on December 06, 2005, 12:39:43 AM
great, mawenzi! Works perfectly  :lol:
Title: Re: How can I show more new images on home page?
Post by: kajkool on December 22, 2005, 06:41:00 PM
thanx my problem has been solved :)
Title: Re: How can I show more new images on home page?
Post by: lorddean 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?
Title: Re: How can I show more new images on home page?
Post by: V@no 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.
Title: Re: How can I show more new images on home page?
Post by: egyptsons on March 25, 2006, 07:39:51 PM
 8) Thanks V@n  :wink:
Title: Re: How can I show more new images on home page?
Post by: error 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?
Title: Re: How can I show more new images on home page?
Post by: Robertoj on May 05, 2006, 06:20:21 PM
Was really usefull, thanx mawenzi and v@no  :wink:
Title: Re: How can I show more new images on home page?
Post by: proverbdoll on May 20, 2006, 05:33:19 AM
Sweet! Thank you!
Title: Re: How can I show more new images on home page?
Post by: mstgokcen 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?
Title: Re: How can I show more new images on home page?
Post by: Lysander on August 10, 2006, 04:50:02 PM
Hi,
I need this for new version too... Its not workin on new version  :cry:
Title: Re: How can I show more new images on home page?
Post by: V@no on August 11, 2006, 01:10:11 AM
yes, it does...
Title: Re: How can I show more new images on home page?
Post by: CharlieF. on August 12, 2006, 06:38:02 PM
Hi,
i have a little problem when i want to display more than 3 images in a row.
The first 3 images get displayed normally, but the 4th, 5th etc. image gets "squeezed" into the table.

I cant explain it very well, so heres a link of how it looks like when i want to display 5 images in a row:
Link (http://charliefirpo.ch.funpic.de/4images/index.php)

Regards,
CharlieF.
Title: Re: How can I show more new images on home page?
Post by: mawenzi on August 12, 2006, 06:52:47 PM
@ CharlieF.
... du solltest maximal 4 Bilder po Zeile verwenden ...
... also im ACP ändern wie folgt ...

ACP -> Allgemein -> Einstellungen -> Bild Einstellungen -> Wieviele Zellen soll die Tabelle der Bilder haben -> 4
Title: Re: How can I show more new images on home page?
Post by: CharlieF. on August 12, 2006, 11:32:50 PM
Ah sehr cool, danke mawenzi.
Da schämt man sich richtig wenn die Antwort dann doch so einfach is  :oops:

Ich hatte sowieso vor nur 4 Bilder pro Zeile zu nehmen. Die 5 hab ich nur reingemacht, um es etwas besser zu verdeutlichen.

Nochmals danke :)
Title: Re: How can I show more new images on home page?
Post by: son_gokou on October 05, 2006, 05:58:31 PM
How I Add border for more new images?
Title: Re: How can I show more new images on home page?
Post by: *handsome* on October 07, 2006, 10:28:47 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.

Its not working when i change the   $num_new_images = $config['image_cells'];   with $num_new_images = XX;   following error coming

Parse error: syntax error, unexpected T_VARIABLE in /home/funny/public_html/funny_stuff/index.php on line 1

I am using  1.7.3   please help me in this matter replay me as sooooooooooon as possible!

Title: Re: How can I show more new images on home page?
Post by: V@no on October 07, 2006, 08:25:29 PM
error on line 1?
obviously you do something else to the file besides these changes...like uploading it in binary mod instead of ASCII or saving it in UNICODE/UTF8 encoding without using a special for PHP editor - which is wrong. who knows....
Title: Re: How can I show more new images on home page?
Post by: son_gokou on October 09, 2006, 12:44:17 AM
Fodasse, ninguem me pode ajudar a colocar a puta da borda no caralho das imagens novas? Em duas ou três linhas e 5 minutos resolviam-me o problema. Puta que vos foda.
Title: Re: How can I show more new images on home page?
Post by: KimmyMarie on October 12, 2006, 04:33:48 PM
This is a wonderful thing, thank you very much!





Best wishes,
Kimmy


Title: Re: How can I show more new images on home page?
Post by: __G__ on November 07, 2006, 05:09:09 AM
hi for me up to 06 images it works as soon i do 09 it says 371 images in 35 categories.

New images
Currently there are no new images. how can i fix this
Title: Re: How can I show more new images on home page?
Post by: mawenzi on November 07, 2006, 09:49:42 AM
New images
Currently there are no new images. how can i fix this

... upload new images ...  :wink:
Title: Re: How can I show more new images on home page?
Post by: __G__ on November 07, 2006, 03:30:21 PM
there r more than 40 new images
Title: Re: How can I show more new images on home page?
Post by: mawenzi on November 07, 2006, 03:58:34 PM
... remove the modification ... and test your "New Images " ... if all is ok ...
... install this smallest modification again ... ;)
Title: Re: How can I show more new images on home page?
Post by: __G__ on November 07, 2006, 05:39:36 PM
i did try that it does show two rows and 6 images but as soon i do 09 it doesnt show anything :(
Title: Re: How can I show more new images on home page?
Post by: Nicky on November 07, 2006, 06:19:11 PM
try 9 and not 09!
then will it work..
Title: Re: How can I show more new images on home page?
Post by: __G__ on November 07, 2006, 09:09:56 PM
wow nicky it works too good thanks a lot  :lol:
Title: Re: How can I show more new images on home page?
Post by: hyde101 on November 12, 2006, 07:34:54 AM
Thank You, just what I have been looking for, since 4 pics were looking good under categories but was messing up tables in home page.
thanks again, looks great now.
Title: Re: How can I show more new images on home page?
Post by: thomaswolf on February 03, 2007, 10:22:33 AM
okay, my problem ist i do not find

$num_new_images.....          in index.php

who can help me?
Title: Re: How can I show more new images on home page?
Post by: Acidgod on February 03, 2007, 10:24:44 AM
welche version?
Title: Re: How can I show more new images on home page?
Post by: thomaswolf on February 03, 2007, 10:25:44 AM
version1.7.4

ach ja , vielleicht sollte ich noch erwähnen das ich ein ziemlicher neuling bin :oops:


okay, ich denke ich habs, danke schön
Title: Re: How can I show more new images on home page?
Post by: KurtW on February 03, 2007, 04:57:37 PM
Hallo thomaswolf ,

suche in Zeile 106,
falls du noch keine anderen Modifikationen an der index.php gemacht hast.  :wink:


Gruß
Kurt
Title: Re: How can I show more new images on home page?
Post by: Acidgod on February 03, 2007, 05:00:40 PM
@Kurt
okay, ich denke ich habs, danke schön
Title: Re: How can I show more new images on home page?
Post by: KurtW on February 03, 2007, 05:04:29 PM
@Kurt
okay, ich denke ich habs, danke schön

 :oops:
Title: Re: How can I show more new images on home page?
Post by: shaiba81 on March 29, 2007, 05:47:32 AM
Great!
Title: Re: How can I show more new images on home page?
Post by: kakoshirazi on May 14, 2007, 03:36:26 PM
 :P :P :PWow Tnx >:D<
Title: Re: How can I show more new images on home page?
Post by: e@agle on July 06, 2007, 05:22:00 PM
doesn't work.

i wanna to somethink, i like to show more random images on tte home how can i do?
Title: Re: How can I show more new images on home page?
Post by: webmaster73 on August 08, 2007, 11:45:08 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.

am thankful to this very helpful post V@no

Title: Re: How can I show more new images on home page?
Post by: webmaster73 on August 09, 2007, 04:29:51 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.

this is nice, but should be a setting in the admin panel, not a mod....

Title: Re: How can I show more new images on home page?
Post by: son_gokou on August 09, 2007, 05:08:08 PM
 :?
Title: Re: How can I show more new images on home page?
Post by: thunderstrike on August 10, 2007, 12:06:38 AM
This might help:

http://www.4homepages.de/forum/index.php?topic=15057.0
Title: Re: How can I show more new images on home page?
Post by: webmaster73 on August 10, 2007, 12:24:16 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.

this is nice, but should be a setting in the admin panel, not a mod....



it helps and it works..... and I am thankful to your generous help. I really am.....

I yet believe that this should be a setting in the admin panel, not a mod....

Hacking the code for so many reasons is not a good idea at all. And all hacking has to be re-done over and over at any security patch that touches upon what you changed.



Title: Re: How can I show more new images on home page?
Post by: thunderstrike on August 10, 2007, 01:53:40 AM
Textarea in setting and define in constant ... is diff ? Mine is no crack ...
Title: Re: How can I show more new images on home page?
Post by: webmaster73 on August 10, 2007, 03:07:13 AM
Textarea in setting and define in constant ... is diff ? Mine is no crack ...

yes dear, and if tomorrow there is patch or security release that replaces the constants.php, would I need to re-apply those changes or not? of course yes. Why?

Just tell me why ??

As long as it is easily doable to define a new var, why go to file.php and find text_string1 and replace with text_string2 and and ....  ??

Why are not all of those wonderful mods such as "check new images in all categories and subcategories", "exclude certain categories from home" and "include only from this category in home" and "set how many thumbnails to appear on home" included in the core of the script?

How many users like me are hiring outside-your-team independent coders to apply mods and fix non-ascii issues with your own script?

Why do you accept that somebody else receives money for your work ????

Tell me why....

 
Title: Re: How can I show more new images on home page?
Post by: thunderstrike on August 10, 2007, 03:26:13 AM
Quote
yes dear, and if tomorrow there is patch or security release that replaces the constants.php, would I need to re-apply those changes or not? of course yes. Why?

FTP Server security - no just 4images.

Quote
Just tell me why ??

Just did !

Quote
As long as it is easily doable to define a new var, why go to file.php and find text_string1 and replace with text_string2 and and ....  ??

To count easy 1-2-3 and save SQL ressourc.

Quote
Why are not all of those wonderful mods such as "check new images in all categories and subcategories", "exclude certain categories from home" and "include only from this category in home" and "set how many thumbnails to appear on home" included in the core of the script?

No author of 4images ... can no answer that - no satis ? Send message to one of admin. They say !

Quote
How many users like me are hiring outside-your-team independent coders to apply mods and fix non-ascii issues with your own script?

Why do you accept that somebody else receives money for your work ????

Off topic - nothing do with new images !

No like ? No install it - just wait for user to post it - I proud what did from beginning !
Title: Re: How can I show more new images on home page?
Post by: Nicky on August 10, 2007, 04:45:23 PM
and again,

PEACE please  8)

brothers:
for wishes post your wishes and suggestions here > http://www.4homepages.de/forum/index.php?board=2.0 :)
Title: Re: How can I show more new images on home page?
Post by: thunderstrike on August 10, 2007, 08:16:36 PM
Thank Nicky.
Title: Re: How can I show more new images on home page?
Post by: IndianMonk on August 19, 2007, 09:57:31 PM
below that line insert:
Code: [Select]
$config['image_cells'] = XX;Where XX is the number of images per row.

Not working for me. I m using 1.7.4. Pls help.
Title: Re: How can I show more new images on home page?
Post by: thunderstrike on August 19, 2007, 11:16:20 PM
Quote
Not working for me.

Is say ?  :roll:
Title: Re: How can I show more new images on home page?
Post by: IndianMonk on August 22, 2007, 06:57:47 AM
Ya...I did all edits..but nothing happening to me. How to make it work?
Title: Re: How can I show more new images on home page?
Post by: thunderstrike on August 22, 2007, 07:01:11 AM
Quote
How to make it work?

By post exact error.
Title: Re: How can I show more new images on home page?
Post by: skidpics on September 26, 2007, 05:40:24 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.

What can you adjust to allow the image_cells variable to be used, but adding additional rows instead of allowing it to overflow into 1 row only - in other words, use that variable, but make it wrap around to keep the theme together?  At this point, 5 looks fine, but if you want 20 new image_cells, which is the setting new_images uses, it will make it one giant row, instead of making 4 rows of 5 each.,  Random images will then also use the same variable, if you have that mod installed, or even better yet, have a seperate setting for this MOD in the admin area all together..  Any suggestions?
Title: Re: How can I show more new images on home page?
Post by: ka on October 01, 2008, 05:38:50 PM
what if i want to insert bunch of random images instead new images at home page ?