here are the changes I make for my galleries
My evolutions and modifications for 1.4 (surely not the best but my choice)
I will add on this post all new modifications I will do.
I'm definitively not a programer but I will be happy to show this and help people who need exemples too.
______________________________________________________________________________
1) To my free gallery, I like to have most registered visitors, to know who they are.
In index.php
Change :
if ( isset( $_COOKIE['id'] ) ) $url = 'category';
else $url = 'identification';
}
else $url = ' category ';
to :
if ( isset( $_COOKIE['id'] ) ) $url = 'category';
else $url = 'identification';
}
else $url = 'identification';
also :
in identification.tpl :
put the line :
<p><a href="./category.php">[ {L_GUEST} ]</a></p>
After
<a href="mailto:{MAIL_ADMIN}?subject=[PhpWebGallery] {L_FORGET}"><img src="./template/{T_STYLE}/theme/lost.gif" style="border:0;" alt=""/> {L_FORGET}</a>
______________________________________________________________________________
2) to change place and size of logo on top of the gallerie
a) cut, in "category.tpl" : ( width="360" height="100" ) and modify : style="padding:3px ;
you will can put a logo with different sizes.
b) cut : "<div align="center" style="padding:3px;"><img src="template/default/images/logo.jpg" ></div>"
and paste in ligne 4 on the top of menu, to earn place for the thumbnails...
______________________________________________________________________________
3) to create a new menu and open links on a new small window :
in italics and blue, the exemple for my own gallery
a) write in "categorie.tpl" after <div class="table1"> :
<div class="titreMenu">your title</div>
<div class="menu">
<a href="#" onClick="MM_openBrWindow('.../aaaaa.htm','contact','width=240,height=360')" >contact</a><br>
<a href="#" onClick="MM_openBrWindow('.../bbbbb.htm','news','width=300,height=400')" >news</a><br>
<a href="#" onClick="MM_openBrWindow('.../ccccc.htm','infos','width=390,height=390')" >services</a><br>
<a href="#" onClick="MM_openBrWindow('.../ddddd.htm','recommander','width=390,height=390 ')" >recommander</a><br>
<a href="../abonnes/index.php" target="_blank">Galerie privée - Private gallery</a><br>
</div>
b) write in "script.js": (to open a new small window)
<script language="JavaScript">
<!--
function MM_displayStatusMsg(msgStr) { //v1.0
status=msgStr;
document.MM_returnValue = true;
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
______________________________________________________________________________
4) put on the top of the thumbnails the navigation bar :
write on "categorie.tpl" on line 74 after <div class="titrePage">{TITLE}</div>:
<!-- BEGIN navigation -->
<div class="navigationBar">{cat_infos.navigation.NAV_BAR}</div>
<!-- END navigation -->
<!-- BEGIN comment -->
<div class="info">{cat_infos.comment.COMMENTS}</div>
<!-- END comment -->
<!-- END cat_infos -->
______________________________________________________________________________
5)Permettre le retour à la ligne dans le menu
Dans « default.css », pour : [b] menu , enlever le :[/b]
white-space:nowrap;
_____________________________________________________________________________
6) to erase rates and hints under the pictures : (I have two galleries, one with all features and one with only the most important)
go to "picture.php"
and write "//" in front of the selected lines
______________________________________________________________________________
7) to erase metadata title on picture page :
go to "picture.tpl" and erase : "<th colspan="2">{metadata.headline.TITLE}</th>"
______________________________________________________________________________
8) to show always metadata on picture page : (I search how to let the metadata lignes allways open):
not finish
to hide links , go to "picture.tpl" close the lines
[ <a href="{show_metadata.URL}">{L_PICTURE_SHOW_METADATA}</a> ]
and
[ <a href="{hide_metadata.URL}">{L_PICTURE_HIDE_METADATA}</a> ]
with <!-- and -->
______________________________________________________________________________
9) time number of comments displayed
go to "comment.php" and change number of [max day] on ligne 37
______________________________________________________________________________
10) To erase number of total images in the category menu :
In category.tpl erase :
<div class="totalImages">[ {NB_PICTURE} {L_TOTAL} ]</div>
</div>
______________________________________________________________________________
11) to erase number of pictures after each category on the menu :
in fonctions_html.inc.php erase :
if ($category['nb_images'] > 0)
{
$menu.= '
<span class="menuInfoCat"
title="'.$category['nb_images'].'
'.$lang['images_available'].'">
['.$category['nb_images'].']
</span>
'.get_icon($category['date_last']);
}
______________________________________________________________________________
12) to change number of pictures view (best rated, most visited) :
in config.inc.php Change :
$conf[top_number] = 30;
______________________________________________________________________________
Offline