displaying a banner & logo as header for the gallery

adu
adu's picture

Joined: 2003-09-03
Posts: 55
Posted: Fri, 2005-01-14 05:02

<TYPE YOUR MESSAGE HERE, ENTER SYSTEM DETAILS BELOW>
Does anybody know where could I put the listed code in the main.php file. Please I just want to display banners on top of the gallery... thank u in advance for the help. regards,

Quote:
<table width="100%" border="1">
<tr>
<td width="25">
<div align="center"><img src="/pres/almadies_logo_white.gif" width="110" height="25"></div></td>
<td width="70%">
<div align="center"><img src="/pub/banner01.gif"></div></td>
</tr>
</table>

<Please check the G2 FAQ (sticky topic in this forum) before posting!>
----

Gallery URL (optional):
Gallery version:
Webserver (with version):
Datatabase (with version):
PHP version (eg 4.2.1):
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:
Web browser/version:

 
Kirill
Kirill's picture

Joined: 2004-12-22
Posts: 53
Posted: Fri, 2005-01-14 05:39

Remove that from main.php, that file is just for scripting and shouldn't be edited.

You want to edit templates/global.tpl

1. Make a new directory in templates called 'local'
2. Go to templates/, cp global.tpl local/
3. Open up global.php and edit to your heart's desire (you're looking at line 27ish)
4. Save, close, changes should be reflected.

 
adu
adu's picture

Joined: 2003-09-03
Posts: 55
Posted: Fri, 2005-01-14 14:15

thanx for the quick reply kirill,

but let me ask u... in that new global can I include that quoted code only and it'll read it well?

 
Kirill
Kirill's picture

Joined: 2004-12-22
Posts: 53
Posted: Fri, 2005-01-14 17:30

All the *.tpl files accept standard HTML, yes.

As for if it'll achieve the look you want, I don't know. Try tinkering around.

 
techbot
techbot's picture

Joined: 2004-07-15
Posts: 10
Posted: Thu, 2005-10-20 17:43

that file global.tpl...where is that located? are you editing the file in a postnuke install? i'm looking through my Gallery folder and I don't see that file anywhere

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-10-20 19:14

global.tpl doesn't exist for a long time now. since beta 4 things have changed.

themes/matrix/templates/theme.tpl is what global.tpl was once before.

 
PerformanceImagery

Joined: 2007-12-12
Posts: 17
Posted: Mon, 2007-12-17 01:11

I know this is an old thread, but does it still hold true to create the Local directory as mentioned above?