<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:
Posts: 53
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.
Posts: 55
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?
Posts: 53
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.
Posts: 10
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
Posts: 32509
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.
Posts: 17
I know this is an old thread, but does it still hold true to create the Local directory as mentioned above?