logo phpwebgallery
"simplement puissant"
Dernière version:
1.7.2 - 24 juillet 2008
PhpWebGallery
 Documentation
 

Page setup

You will find a lot of Tips in few days on this page.

Prohibit access to register page

  • Identify template used by visitors (guest account).

In this case, we will use the default one, the “yoga” template.

  • So, you have to modify yoga/menubar.tpl.


1 - Replace (around line 62):

<dl>
  <dt>{lang:identification}</dt>
  <dd>
    <!-- BEGIN hello -->
    <p>{lang:hello}&nbsp;{USERNAME}&nbsp;!</p>
    <!-- END hello -->
    <ul>

by:

<dl class=identification>
  <dt class=identification>{lang:identification}</dt>
  <dd class=identification>
    <!-- BEGIN hello -->
    <p>{lang:hello}&nbsp;{USERNAME}&nbsp;!</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; }


  • Keep in mind that you just hide the main way to log in.

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.)

Adding a banner

[MOD] Way 1 :

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.

[CONF] Way 2 :

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.

[+/- MOD] Way 3 :

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’].

[Plugin] Way 4 :

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:

  • displayed accoridng to a selected language
  • include more features using main.inc.php
  • modify the picture following the page of the sit eyou are on
  • follow your site modifications.

(Almost) everything can be done using plugins. Consider “My PhpWebHeader” like a sample and customize to your needs.

To download My PhpWebHeader

 
en/customization/branch_1.7.txt · Dernière modification: 2008.07.09 23:05 par mathiasm
 
Driven by DokuWiki - RSS notification feed