Home arrow PHP arrow Page 6 - Building A Quick-And-Dirty Guestbook With patGuestbook (part 2)

When Things Go Wrong - PHP

In this concluding article of our two-part series on rapid guestbook implementation with patGuestbook, find out how to tweak patGuestbook a litle more by controlling the viewable entries, customizing the user interface, and protecting access to the administration module.

TABLE OF CONTENTS:
  1. Building A Quick-And-Dirty Guestbook With patGuestbook (part 2)
  2. Adopting A Moderate Approach
  3. If Looks Could Kill...
  4. Bringing In The Database
  5. A Well-Formed Plan
  6. When Things Go Wrong
  7. Locking It Down
  8. Over And Out
By: Harish Kamath, (c) Melonfire
Rating: starstarstarstarstar / 76
March 11, 2003

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
Finally, patGuestbook includes a template to display an error message to the user when a particular guestbook has been specifically disabled.

<p>&nbsp;</p> <p>&nbsp;</p> <form action="{DISPATCHER}" method="post" name="adder"> <input type="hidden" name="action" value="addEntry"> <input type="hidden" name="save" value="yes"> <img src="skins/melonfire/img/px.gif" width="1" height="30" alt="" border="0"><br> <div align="center"> <table width="550" cellpadding="0" cellspacing="0" border="0"> <tr> <td width="1" ><img src="skins/melonfire/img/px.gif" width="1" height="1" alt="" border="0"></td> <td width="8"><img src="skins/melonfire/img/px.gif" width="8" height="1" alt="" border="0"></td> <td width="532" class="text"> <img src="skins/melonfire/img/px.gif" width="532" height="20" alt="" border="0"><br> Houston, we have a problem...<br>But, the <span class="head">{GB_NAME}</span> will be back soon... <img src="skins/melonfire/img/px.gif" width="1" height="20" alt="" border="0"><br> </td> <td width="8"><img src="skins/melonfire/img/px.gif" width="8" height="1" alt="" border="0"></td> <td width="1" ><img src="skins/melonfire/img/px.gif" width="1" height="1" alt="" border="0"></td> </tr> </table> </div> </form>
Pretty simple, this - plain ol' HTML, no fancy-shmancy gimmicks or convoluted variables. In order to see what it looks like, turn off a guestbook from the administration module and try accessing it - you should see something like this:



That's about it for the user interface templates that can be customized. If you thought that was easy and you're hankering for another challenge, you can always try customizing the administration module as well (alternatively, you could get up from your computer and go get yourself a life).

 
 
>>> More PHP Articles          >>> More By Harish Kamath, (c) Melonfire
 

blog comments powered by Disqus
   

PHP ARTICLES

- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...
- PHP: Building Concrete Validators
- Sanitizing Input with PHP
- Executing Shell Commands with PHP
- Handling File Data with PHP
- File Security and Resources with PHP
- ArrayObject PHP Class Examples
- ArrayObject PHP Class: An Introduction
- Getting File System Data with PHP
- PHP Tools for Working with the File and Oper...
- Working with the File and Operating System w...
- PHP Proxy Patterns: Completing a Blog


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 7 - Follow our Sitemap

Dev Shed Tutorial Topics: