#1 2003-09-27 14:11:35

Guydudeman
Guest

Picture On Home Of Gallery

Just wanted to know how to put a picture on the front page of the gallery...So when the gallery loads up there's the menu on the leftand a welcome pic on the right. Thanks

 

#2 2003-09-28 07:59:57

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14048

Re: Picture On Home Of Gallery

in ./language/english.php (or the language you want), replace :

Code:

$lang['no_category'] = "No category selected<br />choose one...";

par

Code:

$lang['no_category'] = "<img src=\"./images/home.jpg\" alt=\"Welcome to the gallery\" />";

and add a picture called "home.jpg" in the "./images" directory

Offline

 

#3 2003-09-29 12:53:02

Guydudeman
Guest

Re: Picture On Home Of Gallery

Thanks dude!

Picture is huge!! 8-O  Any way to make it a certain size? :D 

 

#4 2003-09-29 22:20:12

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14048

Re: Picture On Home Of Gallery

Thanks dude!

Picture is huge!! 8-O  Any way to make it a certain size? :D

you resize it on your computer and upload it again on your web server. Simply !

Offline

 

#5 2003-10-19 14:37:44

Bernd
Guest

Re: Picture On Home Of Gallery

Hi!
When i make the change in the language file, the picture will be shown, but a thumbnail from every gallery folders too. i only whant a picture on the startpage and nothing else  :( 

 

#6 2003-10-19 17:38:38

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14048

Re: Picture On Home Of Gallery

Hi!
When i make the change in the language file, the picture will be shown, but a thumbnail from every gallery folders too. i only whant a picture on the startpage and nothing else  :(

Your talking about release 1.2 or prior. For release 1.3, if you want the same behaviour as in previous releases, do the following :

in category.php, replace :

Code:

    350 //-------------------------------------------------------------- empty category
    351 elseif ( ( isset( $page['cat'] )
    352            and is_numeric( $page['cat'] )
    353            and $page['cat_nb_images'] == 0 )
    354          or $_GET['cat'] == '' )

by

Code:

//-------------------------------------------------------------- empty category
elseif ( isset( $page['cat'] )
           and is_numeric( $page['cat'] )
           and $page['cat_nb_images'] == 0 )

Offline

 

#7 2003-10-19 18:25:52

Guest
Guest

Re: Picture On Home Of Gallery

Thx. that's exactly what i'm looking for !!

 

Board footer

Powered by FluxBB

github linkedin newsletter Piwigo.org © 2002-2026 · Contact