Following the creation of the zpArdoise theme, many people have asked me how to install and use a guestbook.

Rather than respond to every request, I dedicate a post on the subject.

Here is the method used to install a guestbook on ZenPhoto:

  1. install a guestbook script on your site (personally, I use the script AlexGuestBook, installed at the root of my site, but there are many others),
  2. configure the script as recommended by the publisher, your desires and your purpose (personally, I use the AguestNew skin),
  3. on your ZenPhoto site, activate the ZenPage plugin,
  4. create a page called « Guestbook » (or another name to your convenience), and in the « Code block 1 » from this page, copy the code attached,
  5. if necessary, adapt the theme of the script to match with your ZenPhoto site (personally, I modified the file templates/skins/AguestNew/alex_livre.css to match it with my zpArdoise theme).

That's all folks!

 

<script type="text/javascript">
   function setHeight(){
var hauteur;
var monFrm = document.getElementById('forum');
if(document.all){
hauteur = monFrm.contentWindow.document.body.scrollHeight;
}else{
hauteur = monFrm.contentWindow.document.body.offsetHeight;
}
monFrm.setAttribute("height", hauteur);
}
</script>

<div style="width: 800px; margin-right: auto; margin-left: auto;">
<iframe id="forum" name="livre-d-or" onload="setHeight()" src="../agb/index.php" width="100%" scrolling="no" frameborder="0" align="middle">
</iframe>
</div>