You will find a lot of Tips in few days on this page.
In this case, we will use the default one, the “yoga” template.
1 - Replace (around line 62):
<dl> <dt>{lang:identification}</dt> <dd> <!-- BEGIN hello --> <p>{lang:hello} {USERNAME} !</p> <!-- END hello --> <ul>
by:
<dl class=identification> <dt class=identification>{lang:identification}</dt> <dd class=identification> <!-- BEGIN hello --> <p>{lang:hello} {USERNAME} !</p> <!-- END hello --> <ul class=identification>
2 - Create or append template-common/local-layout.css with :
.identification { display: none; } #menubar DL.identification { display: none; } FORM#quickconnect { display: none; }
You are still able to identify with ./identification.php
(Do not forget the leading point to log in you as Administrator, whom should used another template so s/he can log out if needed !!! eg. Using a friend’s computer.)
Level: Beginner
in ./template/yoga/header.tpl
replace :
<div id="theHeader">{PAGE_BANNER}</div>
with :
<div id="theHeader"> <a href="{pwg_root}" title="{GALLERY_TITLE}" style="border: 0px;"> <img src="/path/to/your/banner.png" alt="{GALLERY_TITLE} :: {PAGE_TITLE}"> </a> </div>
/path/to/your/banner.png is to be customized too.
Level: Beginner newbie
In Administration –> General –> Page banner
add the code :
<a href="http://example.com/" title="My Site" style="border: 0px;">
<img src="/path/to/your/banner.png" alt="My banner">
</a>
/path/to/your/banner.png is to be customized too.
Level: Medium
New: This technique allows to have various banners depending of the theme you choose (Also for 1.6) In ./template/.../theme/..../themeconf.inc.php, before ?>
You can add something like this :
global $conf; $conf['page_banner'] = '<a href="http://http://phpwebgallery.net"' . ' title="The best gallery">' . '<img src="http://phpwebgallery.net/graphics/pwg125x100.png" border=0' . ' alt="PhpWebGallery is always one step forward your fancy."/></a>';
And change that for another theme, etc.
If you really really want to add PHP code in their banner can do it in $conf[’page_banner’].
Level: Advanced or Beginner
New: It’s a plugin, so only 1.7 users can use it
Don’t worry to make this plugin fit in your needs. It will be your persoanl plugin. Your banner may be:
(Almost) everything can be done using plugins. Consider “My PhpWebHeader” like a sample and customize to your needs.
To download My PhpWebHeader