PG-author.tpl not displaying?

triangular

Joined: 2005-12-21
Posts: 138
Posted: Tue, 2005-12-27 07:38

I have edited author.tpl in a local dir and all was well, it seems until I turned on the equipment.tpl and portfolio.tpl. Now I only see the author.tpl message when I log in as Admin. No other users see it. How can I remedy this?

Also, is it possible to have separate author.tpl messages appear as per specific albums? The author.tpl is great on the front page for sites featuring only one photographer, but what if I have several photographers galleries? I can do this with the portfolio and equipment lists by simply renaming the tpl's and referencing them in each album configuration, but how can I do something similar with the main author.tpl?

Christian

 
pgilbert

Joined: 2005-03-28
Posts: 157
Posted: Tue, 2005-12-27 10:06

triangular,
this is the original code from author.tpl:

Quote:
{if $user.isAdmin && ($theme.guestPreviewMode !=1)}

Here you could show your information.
<br/>
To do so you should costumize the "author.tpl",<br />
Open the file edit t and add any text and HTML you want.

{/if}

{*
* -------------------- Begin of comment lines -----------------------
*
The comments above are the ones currently shown to Administrator at "author message" on Gallery's 1st page .
To customize this file, yoo shoul delete all this and add the information you want to display on first page.
*
*
* -------------------- end of comment lines -------------------------
*}

sorry my english and some typing errors but as it's wrote you shoud create the author.tpl from a blank file or write your code after "comment lines"

http://pedrogilberto.net/gallery2/theme.html
http://pedrogilberto.net/gallery2/

 
pgilbert

Joined: 2005-03-28
Posts: 157
Posted: Tue, 2005-12-27 10:07

triangular,
this is the original code from author.tpl:

Quote:
{if $user.isAdmin && ($theme.guestPreviewMode !=1)}

Here you could show your information.
<br/>
To do so you should costumize the "author.tpl",<br />
Open the file edit t and add any text and HTML you want.

{/if}

{*
* -------------------- Begin of comment lines -----------------------
*
The comments above are the ones currently shown to Administrator at "author message" on Gallery's 1st page .
To customize this file, yoo shoul delete all this and add the information you want to display on first page.
*
*
* -------------------- end of comment lines -------------------------
*}

sorry my english and some typing errors but as it's wrote you shoud create the author.tpl from a blank file or write your code after "comment lines"

http://pedrogilberto.net/gallery2/theme.html
http://pedrogilberto.net/gallery2/

 
triangular

Joined: 2005-12-21
Posts: 138
Posted: Tue, 2005-12-27 14:05

PG,

Thank you for being so supportive of your theme. Starting from a blank tpl does work.

Regarding the other part of my question, is there a way to have different author.tpl files display in different albums? Such as the tpl being a different bio in different photographer's galleries?

Christian

 
pgilbert

Joined: 2005-03-28
Posts: 157
Posted: Tue, 2005-12-27 15:10
 
pgilbert

Joined: 2005-03-28
Posts: 157
Posted: Tue, 2005-12-27 17:28

This will work but you have to add the differente tpl files manualy:

download and substitute the "album.tpl" file by this one: http://www.pedrogilberto.net/gallery2/album.tpl

Then for the users create:

[username]_author.tpl (eg. "pgilbert_author.tpl")
and if you use the links at this page:
[username]_[link1].tpl (eg. "pgilbert_equipment.tpl")
[username]_[link2].tpl (eg. "pgilbert_portfolio.tpl")

http://pedrogilberto.net/gallery2/theme.html
http://pedrogilberto.net/gallery2/

 
triangular

Joined: 2005-12-21
Posts: 138
Posted: Wed, 2005-12-28 08:17

Thanks, I will try that.

 
triangular

Joined: 2005-12-21
Posts: 138
Posted: Wed, 2005-12-28 08:20

Thanks, I will try that.

 
pgilbert

Joined: 2005-03-28
Posts: 157
Posted: Thu, 2005-12-29 09:37

forget that, it will work only when you are logged on as a user.
I think the best way to do that is to put the bio informations on album description...

http://pedrogilberto.net/gallery2/theme.html
http://pedrogilberto.net/gallery2/