Home  |  Tutorial

   1) Overview:
PSM are totally contained into one directory that you must to copy into your htdocs directory.
this is the actual tree:

+---psm/          :directory of psm module
+---datastore/    :contains the content and file upload data
¦   +---contents/ :contains the content data
¦   +---files/    :contains the file uploaded (for example images)
+---htmlArea/     :javascript WYSIWYG editor

2) Installation:
- copy the psm directory into your htdocs directory
- configure the file psm/config.php with your preferred values

3) Developing:
PSM is very simple to integrate in any php site. You can build a site from scrach, using PSM or you can integrate PSM into an existing php site.
For do this you must import psm_lib.php in every page where you want to use PSM.

  • For displaying the admin bar you must call the admin_bar() function like this:
    <?echo admin_bar();?>
    This code doesn't display anything for every user, and the admin bar if you are logged as administrator.

  • For displaying a content you must call the content(name) function with a name for the content passed as parameter like this:
    <?echo content("content_name");?>
    This code display the content for every user, and the editor bar if you are logged as administrator.

  • The index.php in the root directory of psm is an example:
    <title>Psm Demo</title>
    <?echo admin_bar();?>
    <table border=1 width=100% height=100%>
      <td valign=top><?echo content("content_1");?> </td>
      <td valign=top><?echo content("content_2");?> </td>
      <td valign=top><?echo content("content_3");?> </td>

    PSM - Personal Site Manager Demo Site. For more info visit: psm.sourceforge.net