Top Level Gallery Name and Date Format Change

bofixs

Joined: 2005-07-17
Posts: 6
Posted: Mon, 2005-07-18 11:16

Hello,

I'm a new here, just 2night installed on my localhost the g2. It's really cooool. As soon as possibile i gonna use that on line.

Just 2 questions:

How can I change the top level albums Name (Home Page):

I got:

Gallery
This is the main page of your Gallery

And tried to change it, but no way. Anybody could help me?

And

Is it possible to change date format in any page:
mm/dd/yy format in new dd/mm/yy
I think it's necessary to change some files, just advise me files to control for changes.

Thanx to G2 team for a really cool system.

----
The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): localhost
Gallery version: gallery-2.0-beta-3+G2
Apache version: 2.0.50
PHP version (don't just say PHP 4, please): 4.3.8
Graphics Toolkit:
Operating system: Windows
Web browser/version (if applicable): Explorer/Netscape

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Mon, 2005-07-18 11:23

G2 issues in the G2 forums.

 
bofixs

Joined: 2005-07-17
Posts: 6
Posted: Mon, 2005-07-18 11:49
fryfrog wrote:
G2 issues in the G2 forums.

Sorry fryfrog, but can't' find it here. That's why i opened a new topic.
If u know another discussion about this arguments, please, paste the links here. Thanx ;)

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Mon, 2005-07-18 12:10

Oops, I forgot to move your thread after I posted that reply.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-07-18 13:48

go to main.php, click on edit album for the title / name change.

@date:
see http://php.net/strftime
G2 it defaults to format %x
%x - preferred date representation for the current locale without the time

you can change it in (i assume you have g2 core version 0.9.30 or newer):
modules/core/templates/blocks/
in this folder, create a subfolder /local and copy ItemInfo.tpl to this subfolder, then edit
modules/core/templates/blocks/local/ItemInfo.tpl
find:
{g->date timestamp=$item.originationTimestamp}
replace by:
{g->date format="%d/%m/%Y" timestamp=$item.originationTimestamp}

 
bofixs

Joined: 2005-07-17
Posts: 6
Posted: Mon, 2005-07-18 14:47
valiant wrote:
you can change it in (i assume you have g2 core version 0.9.30 or newer):
modules/core/templates/blocks/
in this folder, create a subfolder /local and copy ItemInfo.tpl to this subfolder, then edit
modules/core/templates/blocks/local/ItemInfo.tpl
find:
{g->date timestamp=$item.originationTimestamp}
replace by:
{g->date format="%d/%m/%Y" timestamp=$item.originationTimestamp}

Thanx a lot, valiant, now the time/date settings are perfect like i wanna do. ;)

What about the Top level gallery name? Anybody changed that?
In other galleries a can edit the name and comments, but i can't find the settings for start (home page) gallery.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-07-18 15:00
Quote:
go to main.php, click on edit album for the title / name change.

 
bofixs

Joined: 2005-07-17
Posts: 6
Posted: Mon, 2005-07-18 15:17
valiant wrote:
Quote:
go to main.php, click on edit album for the title / name change.

Oh, I'm a little bit tired, :lol:
now it's all really perfect.
Thanx valiant, great job 8)

 
MyWebsiteAdviser

Joined: 2007-04-12
Posts: 46
Posted: Mon, 2007-05-07 11:19

You can change the title of gallery from "Edit Album" -> "General" tab -> "Title".

See my gallery example.

Enjoy,
Alex Webs,
Create online photo album or add photo gallery to your website.