File: $Id: Theme_Upgrades.txt,v 1.4 2002/03/16 21:31:45 niceguyeddie Exp $ $Name:  $

Change History
2002/03/03  --  v. 1.01 Border removed from Admin Messages in CVS
2002/03/03  --  v. 1.02 Changed banners statement per hdonner
2002/03/07  --  v. 1.03 Added a couple of useful vars and got rid of 
$timezone
2002/03/10  --  v. 1.04 Found out where the Anonymous user was set
2002/03/11  --  v. 1.05 Modified this file so it can be displayed correctly 
as plain text

* Quick and Dirty Guide Version 1.05

* Upgrading Postnuke .70x themes to .71

By  fredb86@hotmail.com

If you understand .70x themes, then you can use this guide to
quickly port your theme to the new .71 features.  If you don't
understand .70x themes, you can figure out what to do by
reading through and then looking at the sample theme.php
file thats at the end of this document.

Good Luck!
=========================================================
STEP 1:  Add themes_get_language() function

...
$textcolor1 = "#CCCCCC";
$textcolor2 = "#CCCCCC";
$postnuke_theme = true;

themes_get_language();
=========================================================
STEP 2: Major changes to the themeheader() function

//Remove $sitename, $slogan, $banners, $user, and $cookie from the global 
statement.
global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $index;

//Use pnConfigGetVar to retrieve useful parameters
    $slogan = pnConfigGetVar('slogan');
    $sitename = pnConfigGetVar('sitename');
    $banners = pnConfigGetVar('banners');
    $startpage = pnConfigGetVar('startpage');
    $currentlang = pnConfigGetVar('language');

//New way to get current user
   if (!pnUserLoggedIn()) {
        $username = pnConfigGetVar('anonymous');
        } else {
        $username = pnUserGetVar('uname');
    }

//Banners are managed by calling this function
pnBannerDisplay();

=========================================================
STEP 3:  If you have a user login form in your theme, you need to add this
hidden field to your form:

if (!pnUserLoggedIn()) {

$urivalue=getenv("REQUEST_URI");
..........
."<input type=\"hidden\" name=\"url\" value=$urivalue>\n"

}
else
{
   [Welcome Fredb....blah blah]
}
=========================================================
STEP 4:  To show the Admin Messages (e.g. Welcome to Postnuke...) on
your home page, you need to add this to your theme. This is generally the
very, very last statement in your themeheader() function:

if ($index == 1) {
blocks('centre');
  }
=========================================================
STEP 5: Useful variables for themeindex() and maybe elsewhere.
Remove them from the global variables statement.

//Remove $tipath and $anonymous from the global statement
global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4,  $sepcolor;

//The name of the anonymous user is set in the Comments
//area of Postnuke Administration. The variable tipath is the
//pathname to the topics images.

$anonymous = pnConfigGetVar('anonymous');
$tipath = pnConfigGetVar('tipath');

=========================================================
STEP 6: Changes to themearticle(). This code  replaces the old  
authorisation stuff:

if (pnSecAuthAction(0, 'Stories::', "$info[aid]:$info[cattitle]:$info[sid]", 
ACCESS_EDIT)) {
             echo "<span class=\"pn-sub\"> [ <a 
href=\"admin.php?module=NS-AddStory&amp;op=EditStory&amp;sid=$info[sid]\">"._EDIT."</a>";
             if (pnSecAuthAction(0, 'Stories::', 
"$info[aid]:$info[cattitle]:$info[sid]", ACCESS_DELETE)) {
             echo "| <a 
href=\"admin.php?module=NS-AddStory&amp;op=RemoveStory&a
mp;sid=$info[sid]\">"._DELETE."</a> ]</span>";
             }
         echo "<br /><br />\n";
   }
=========================================================
STEP 7: changes to themesidebox(). Admin messages are displayed using
themesidebox. Admin messages are essentially blocks without titles. So,
you first check to see if the block has a title. If not, it must be an Admin
message, so display  it. Otherwise, it must be a real block, so just use
your usual themesidebox code:

function themesidebox($block) {

// If no title, then it must be an Admin message.
        if (empty($block['title']))   {
        echo "<font class=\"boxcontent\">$block[content]</font>";
        }
        else
        {
                [your old themesidebox code goes here]
        }
}
=========================================================
STEP 8:  To avoid warning messages in PHP 4.1x, make sure that your
blocks parameters are enclosed in single quotes:

blocks('right')
blocks('left')
blocks('centre')

=========================================================
STEP 9:  Remove the variable $timezone from your theme (if its in there).
It is no longer used.
=========================================================
=========================================================
=========================================================
=========================================================
=========================================================
=========================================================


SAMPLE THEME.PHP FILE!!!!!!

<?php

/************************************************************/
/* THEME NAME: BubbleGumMaroon for PostNuke 0.71            */
/* modified: Brumie (http://developer.indonesia.nu)         */
/* copyright 2001 Somara Sem (http://www.pixelmayhem.com)   */
/* (please do not remove copyright notice)                  */
/*                                                          */
/* CREATED: 11/20/2001                                      */
/************************************************************/

/************************************************************/
/* CHANGELOG:                                               */
/* 03/10/2002 - Updated to Postnuke .71 by                  */
/*                fredb86@hotmail.com                       */
/* 12/14/2001 - Javascript line ported to BubbleGumMaroon   */
/*              (By Brumie)                                 */
/*                                                          */
/* 12/12/2001 - Fixed bottom navigation menu links.         */
/*              Added JavaScript line to theme code so you  */
/*              no longer have to edit header.php.          */
/*              (by Somara Sem)                             */
/*              Thanks to Brumie & xtremdj for the tip.     */
/*                                                          */
/* 12/12/2001 - Color Theme Modified (by Brumie)            */
/*                                                          */
/* 12/11/2001 - Ported theme over to PostNuke 0.7x.         */
/*              (by Somara Sem)                             */
/*                                                          */
/* 11/27/2001 - Minor updates. (by Somara Sem)              */
/*                                                          */
/* 11/20/2001 - Theme created. (by Somara Sem)              */
/*                                                          */
/************************************************************/

/************************************************************/
/* Theme Colors Definition                                  */
/*                                                          */
/* Define colors for your web site. $bgcolor2 is generaly   */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the  */
/* other two bgcolor variables follows the same criteria.   */
/* $texcolor1 and 2 are for tables internal texts           */
/************************************************************/

$bgcolor1 = "#EDE3E3";
$bgcolor2 = "#895C5C";
$bgcolor3 = "#B48B8B";
$bgcolor4 = "#D9C7C7";
$textcolor1 = "#000000";
$textcolor2 = "#000000";
$postnuke_theme = true;

themes_get_language();

/************************************************************/
/* OpenTable Functions                                      */
/*                                                          */
/* Define the tables look&feel for you whole site. For this */
/* we have two options: OpenTable and OpenTable2 functions. */
/* Then we have CloseTable and CloseTable2 function to      */
/* properly close our tables. The difference is that        */
/* OpenTable has a 100% width and OpenTable2 has a width    */
/* according with the table content                         */
/************************************************************/

function OpenTable() {
    global $bgcolor1, $bgcolor2;
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" 
cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" 
cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable() {
    echo "</td></tr></table></td></tr></table>\n";
}

function OpenTable2() {
    global $bgcolor1, $bgcolor2;
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" 
bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" 
bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable2() {
    echo "</td></tr></table></td></tr></table>\n";
}

/************************************************************/
/* Function themeheader()                                   */
/*                                                          */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks    */
/* function for left side with: blocks(left);               */
/************************************************************/

function themeheader() {
    global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $index;

    $slogan = pnConfigGetVar('slogan');
    $sitename = pnConfigGetVar('sitename');
    $banners = pnConfigGetVar('banners');
    $startpage = pnConfigGetVar('startpage');
    $currentlang = pnConfigGetVar('language');


    if (!pnUserLoggedIn()) {
        $username = pnConfigGetVar('anonymous');
    } else {
        $username = pnUserGetVar('uname');
    }


    echo "<script type=\"text/javascript\" language=\"JavaScript1.2\" 
src=\"themes/BubbleGumMaroon/jscript/imageswap.js\"></script>\n\n\n";
    echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\" leftmargin=\"0\" 
topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" 
onLoad=\"MM_preloadImages('themes/BubbleGumMaroon/images/nav/news-02.gif','themes/BubbleGumMaroon/images/nav/topics-02.gif','themes/BubbleGumMaroon/images/nav/downloads-02.gif','themes/BubbleGumMaroon/images/nav/youraccount-02.gif','themes/BubbleGumMaroon/images/nav/submitnews-02.gif','themes/BubbleGumMaroon/images/nav/topten-02.gif')\">\n\n\n";

      pnBannerDisplay();


    echo "<!----- PLEASE DO NOT REMOVE COPYRIGHT NOTICE ----->\n";
    echo "<!----- Copyright (c) 2001 Somara Sem (http://www.pixelmayhem.com) 
----->\n";
    echo "<!----- Modified 2001 Brumie aka XbraM 
(http://developer.indonesia.nu) ----->\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";

// Top Images
    echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"780\" 
border=\"0\" bgcolor=\"#ffffff\">\n"
        ."<tr>\n"
    ."<td><a href=\"index.php\"><img 
src=\"themes/BubbleGumMaroon/images/logo.gif\" width=\"267\" height=\"51\" 
alt=\"Welcome!\" border=\"0\"></a></td>\n"
        ."<td><img src=\"themes/BubbleGumMaroon/images/top-image_02.gif\" 
WIDTH=\"513\" HEIGHT=\"51\"></td>\n"
        ."</tr>\n"
    ."</table>\n";

// Top Image Swap Navigation Bar - customize links to your specs
    echo "<table width=\"780\" border=\"0\" cellspacing=\"0\" 
cellpadding=\"0\">\n"
    ."<tr>\n"
    ."<td width=\"42\"><img 
src=\"themes/BubbleGumMaroon/images/main-left-image-01.gif\" width=\"42\" 
height=\"25\"></td>\n"
    ."<td width=\"66\"><a 
href=\"modules.php?op=modload&name=News&file=index\" 
onMouseOut=\"MM_swapImgRestore()\" 
onMouseOver=\"MM_swapImage('news','','themes/BubbleGumMaroon/images/nav/news-02.gif',1)\"><img 
src=\"themes/BubbleGumMaroon/images/nav/news-01.gif\" width=\"66\" 
height=\"25\" name=\"news\" border=\"0\"></a></td>\n"
    ."<td width=\"76\"><a 
href=\"modules.php?op=modload&name=Topics&file=index\" 
onMouseOut=\"MM_swapImgRestore()\" 
onMouseOver=\"MM_swapImage('topics','','themes/BubbleGumMaroon/images/nav/topics-02.gif',1)\"><img 
src=\"themes/BubbleGumMaroon/images/nav/topics-01.gif\" width=\"76\" 
height=\"25\" name=\"topics\" border=\"0\"></a></td>\n"
    ."<td width=\"117\"><a 
href=\"modules.php?op=modload&name=Downloads&file=index\" 
onMouseOut=\"MM_swapImgRestore()\" 
onMouseOver=\"MM_swapImage('downloads','','themes/BubbleGumMaroon/images/nav/downloads-02.gif',1)\"><img 
src=\"themes/BubbleGumMaroon/images/nav/downloads-01.gif\" width=\"117\" 
height=\"25\" name=\"downloads\" border=\"0\"></a></td>\n"
    ."<td width=\"145\"><a href=\"user.php\" 
onMouseOut=\"MM_swapImgRestore()\" 
onMouseOver=\"MM_swapImage('youraccount','','themes/BubbleGumMaroon/images/nav/youraccount-02.gif',1)\"><img 
src=\"themes/BubbleGumMaroon/images/nav/youraccount-01.gif\" width=\"145\" 
height=\"25\" name=\"youraccount\" border=\"0\"></a></td>\n"
    ."<td width=\"126\"><a 
href=\"modules.php?op=modload&name=Submit_News&file=index\" 
onMouseOut=\"MM_swapImgRestore()\" 
onMouseOver=\"MM_swapImage('submitnews','','themes/BubbleGumMaroon/images/nav/submitnews-02.gif',1)\"><img 
src=\"themes/BubbleGumMaroon/images/nav/submitnews-01.gif\" width=\"126\" 
height=\"25\" name=\"submitnews\" border=\"0\"></a></td>\n"
    ."<td width=\"91\"><a 
href=\"modules.php?op=modload&name=Top_List&file=index\" 
onMouseOut=\"MM_swapImgRestore()\" 
onMouseOver=\"MM_swapImage('topten','','themes/BubbleGumMaroon/images/nav/topten-02.gif',1)\"><img 
src=\"themes/BubbleGumMaroon/images/nav/topten-01.gif\" width=\"91\" 
height=\"25\" name=\"topten\" border=\"0\"></a></td>\n"
    ."<td width=\"117\"><img 
src=\"themes/BubbleGumMaroon/images/nav/navbar-right-01.gif\" width=\"117\" 
height=\"25\" name=\"navbarRight\"></td>\n"
    ."</tr>\n"
    ."</table>\n\n\n\n";

// Forms Bar
    echo "<table width=\"780\" cellpadding=\"0\" cellspacing=\"0\" 
border=\"0\">\n"
    ."<tr>\n"
    ."<td width=\"42\" height=\"35\" align=\"left\"><img 
src=\"themes/BubbleGumMaroon/images/main-left-image-02.gif\" width=\"42\" 
height=\"35\" alt=\"\"></td>\n"
    ."<td background=\"themes/BubbleGumMaroon/images/forms-bar-bg.gif\" 
bgcolor=\"#696969\" width=\"12\" height=\"35\" align=\"left\"><img 
src=\"themes/BubbleGumMaroon/images/forms-bar-left.gif\" width=\"12\" 
height=\"35\" alt=\"\"></td>\n"
        ."<td background=\"themes/BubbleGumMaroon/images/forms-bar-bg.gif\" 
bgcolor=\"#696969\" width=\"450\" valign=\"middle\">\n";
    if (!pnUserLoggedIn()) {
    $urivalue=getenv("REQUEST_URI");
        echo "<form action=\"user.php\" method=\"post\" 
style=\"margin:0\">\n"
        ."&nbsp;<font class=\"pinktext\"><b>User: </b></font>\n"
    ."<input type=\"text\" name=\"uname\" size=\"7\" maxlength=\"25\">\n"
    ."&nbsp;<font class=\"pinktext\"><b>Pass: </b></font>\n"
    ."<input type=\"password\" name=\"pass\" size=\"7\" maxlength=\"20\">\n"
    ."<input type=\"hidden\" name=\"url\" value=$urivalue>\n"
    ."<input type=\"hidden\" name=\"module\" value=\"NS-User\">\n"
    ."<input type=\"hidden\" name=\"op\" value=\"login\">\n"
    ."<input type=\"submit\" value=\"login\">\n"
    ."&nbsp;<a href=\"user.php?op=register&amp;module=NS-NewUser\"><font 
class=\"pinktext\"><b>Join</b></font></a>\n"
    ."</form>\n";
    } else {
        echo "&nbsp;&nbsp;<font class=\"pinktext\"><b>Hello 
$username!</b></font>&nbsp; <a 
href=\"user.php?module=NS-User&op=logout\"><font 
class=\"whitetext\">logout</font></a>";
    }
        echo "</td>\n"

        ."<td background=\"themes/BubbleGumMaroon/images/forms-bar-bg.gif\" 
align=\"right\" width=\"264\" valign=\"middle\">\n"
        ."<form action=\"modules.php\" method=\"post\" 
style=\"margin:0\">\n"
            ."<input type=\"hidden\" name=\"name\" value=\"Search\">\n"
            ."<input type=\"hidden\" name=\"file\" value=\"index\">\n"
            ."<input type=\"hidden\" name=\"op\" value=\"modload\">\n"
            ."<input type=\"hidden\" name=\"action\" value=\"search\">\n"
            ."<input type=\"hidden\" name=\"overview\" value=\"1\">\n"
            ."<input type=\"hidden\" name=\"active_stories\" value=\"1\">\n"
            ."<input type=\"hidden\" name=\"bool\" value=\"AND\">\n"
            ."<input type=\"hidden\" name=\"stories_cat\" value=\"\">\n"
            ."<input type=\"hidden\" name=\"stories_topics\" value=\"\">\n"
            ."<input NAME=\"q\" TYPE=\"text\" VALUE=\"\" 
SIZE=\"10\">&nbsp;\n"
        ."<input type=\"submit\" value=\"search\">\n"
            ."</form>\n"
        ."</td>\n"

    ."<td width=\"12\" height=\"35\" align=\"left\"><img 
src=\"themes/BubbleGumMaroon/images/forms-bar-right.gif\" width=\"12\" 
height=\"35\" alt=\"\"></td>\n"
    ."</tr>\n"
    ."</table>\n";

// Begin of Main Content Table
        echo "<table width=\"780\" cellpadding=\"0\" cellspacing=\"0\" 
border=\"0\">\n"
        ."<tr valign=\"top\">\n"
    ."<td width=\"42\" align=\"left\" valign=\"top\"><img 
src=\"themes/BubbleGumMaroon/images/main-left-image-03.gif\" width=\"42\" 
height=\"233\" border=\"0\" alt=\"\"></td>\n"
        ."<td bgcolor=\"#000000\"><img 
src=\"themes/BubbleGumMaroon/images/pixel.gif\" width=\"1\" height=\"1\" 
border=\"0\" alt=\"\"></td>\n"
        ."<td bgcolor=\"#D9C7C7\"><img 
src=\"themes/BubbleGumMaroon/images/pixel.gif\" width=\"10\" height=\"1\" 
border=\"0\" alt=\"\"></td>\n"
        ."<td bgcolor=\"#CEB6B6\" width=\"150\" valign=\"top\">\n";
    blocks('left');
    echo "</td>\n"
    ."<td bgcolor=\"#D9C7C7\"><img 
src=\"themes/BubbleGumMaroon/images/pixel.gif\" width=\"15\" height=\"1\" 
border=\"0\" alt=\"\"></td>\n"
    ."<td width=\"100%\" bgcolor=\"#D9C7C7\">\n";
    if ($index == 1) {
    blocks('centre');
      }

}

/************************************************************/
/* Function themefooter()                                   */
/*                                                          */
/* Control the footer for your site. You don't need to      */
/* close BODY and HTML tags at the end. In some part call   */
/* the function for right blocks with: blocks(right);       */
/* Also, $index variable need to be global and is used to   */
/* determine if the page your're viewing is the Homepage or */
/* and internal one.                                        */
/************************************************************/

function themefooter() {
    global $index, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4;
    if ($index == 1) {
        echo "</td>\n"
            ."<td bgcolor=\"#D9C7C7\"><img 
src=\"themes/BubbleGumMaroon/images/pixel.gif\" width=\"15\" height=\"1\" 
border=\"0\" alt=\"\"></td>\n"
            ."<td bgcolor=\"#CEB6B6\" valign=\"top\" width=\"150\">\n";
        blocks('right');
    }
    echo "</td>\n"
        ."<td bgcolor=\"#D9C7C7\"><img 
src=\"themes/BubbleGumMaroon/images/pixel.gif\" width=10 height=1 border=0 
alt=\"\">\n"
            ."<td bgcolor=\"#000000\"><img 
src=\"themes/BubbleGumMaroon/images/pixel.gif\" width=\"1\" height=\"1\" 
border=\"0\" alt=\"\"></td>\n"
            ."</td>\n"
            ."</tr>\n"
            ."</table>\n\n\n";

// Bottom Image Swap Navigation Bar
    echo "<table width=\"780\" border=\"0\" cellspacing=\"0\" 
cellpadding=\"0\">\n"
    ."<tr>\n"
    ."<td width=\"42\"><img src=\"themes/BubbleGumMaroon/images/pixel.gif\" 
width=\"42\" height=\"25\"></td>\n"
    ."<td width=\"66\"><a 
href=\"modules.php?op=modload&name=News&file=index\" 
onMouseOut=\"MM_swapImgRestore()\" 
onMouseOver=\"MM_swapImage('news2','','themes/BubbleGumMaroon/images/nav/news-02.gif',1)\"><img 
src=\"themes/BubbleGumMaroon/images/nav/news-01.gif\" width=\"66\" 
height=\"25\" name=\"news2\" border=\"0\"></a></td>\n"
    ."<td width=\"76\"><a 
href=\"modules.php?op=modload&name=Topics&file=index\" 
onMouseOut=\"MM_swapImgRestore()\" 
onMouseOver=\"MM_swapImage('topics2','','themes/BubbleGumMaroon/images/nav/topics-02.gif',1)\"><img 
src=\"themes/BubbleGumMaroon/images/nav/topics-01.gif\" width=\"76\" 
height=\"25\" name=\"topics2\" border=\"0\"></a></td>\n"
    ."<td width=\"117\"><a 
href=\"modules.php?op=modload&name=Downloads&file=index\" 
onMouseOut=\"MM_swapImgRestore()\" 
onMouseOver=\"MM_swapImage('downloads2','','themes/BubbleGumMaroon/images/nav/downloads-02.gif',1)\"><img 
src=\"themes/BubbleGumMaroon/images/nav/downloads-01.gif\" width=\"117\" 
height=\"25\" name=\"downloads2\" border=\"0\"></a></td>\n"
    ."<td width=\"145\"><a href=\"user.php\" 
onMouseOut=\"MM_swapImgRestore()\" 
onMouseOver=\"MM_swapImage('youraccount2','','themes/BubbleGumMaroon/images/nav/youraccount-02.gif',1)\"><img 
src=\"themes/BubbleGumMaroon/images/nav/youraccount-01.gif\" width=\"145\" 
height=\"25\" name=\"youraccount2\" border=\"0\"></a></td>\n"
    ."<td width=\"126\"><a 
href=\"modules.php?op=modload&name=Submit_News&file=index\" 
onMouseOut=\"MM_swapImgRestore()\" 
onMouseOver=\"MM_swapImage('submitnews2','','themes/BubbleGumMaroon/images/nav/submitnews-02.gif',1)\"><img 
src=\"themes/BubbleGumMaroon/images/nav/submitnews-01.gif\" width=\"126\" 
height=\"25\" name=\"submitnews2\" border=\"0\"></a></td>\n"
    ."<td width=\"91\"><a 
href=\"modules.php?op=modload&name=Top_List&file=index\" 
onMouseOut=\"MM_swapImgRestore()\" 
onMouseOver=\"MM_swapImage('topten2','','themes/BubbleGumMaroon/images/nav/topten-02.gif',1)\"><img 
src=\"themes/BubbleGumMaroon/images/nav/topten-01.gif\" width=\"91\" 
height=\"25\" name=\"topten2\" border=\"0\"></a></td>\n"
    ."<td width=\"117\"><img 
src=\"themes/BubbleGumMaroon/images/nav/navbar-right-01.gif\" width=\"117\" 
height=\"25\" name=\"navbarRight\"></td>\n"
    ."</tr>\n"
    ."</table>\n\n\n\n";

// Begin Footer Table
    echo "<br><table width=\"780\" cellpadding=\"0\" cellspacing=\"0\" 
border=\"0\" bgcolor=\"#ffffff\">\n"
        ."<tr align=\"center\">\n"
        ."<td width=\"100%\" colspan=\"3\">\n";
    footmsg();
    echo "</td>\n"
        ."</tr>\n"
        ."</table>\n\n\n";
}

/************************************************************/
/* Function themeindex()                                    */
/*                                                          */
/* This function format the stories on the Homepage         */
/************************************************************/

function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, 
$_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, 
$_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
    global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4;

$anonymous = pnConfigGetVar('anonymous');
$tipath = pnConfigGetVar('tipath');

// Story Box Title Table
    echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" 
width=\"100%\">\n"
        ."<tr>\n"
        ."<td align=\"left\"><font class=\"option\" 
color=\"#363636\"><b>$preformat[catandtitle]</b></font>\n"
        ."<br><font class=\"tiny\" size=\"1\">\n"
        .""._POSTEDBY.": $info[informant] "._ON." $info[longdatetime] 
($info[counter] "._READS.")\n"
        ."</font><br><br>\n"
        ."</td>\n"
        ."</tr>\n"
        ."</table>\n\n\n"

// Story Box Content
    ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" 
width=\"100%\">\n"
    ."<tr>\n"
    ."<td>\n"
        ."$preformat[searchtopic]\n"
    ."$info[hometext]\n"
    ."<br><br>$preformat[notes]\n"
    ."</td>\n"
    ."</tr>\n"
    ."</table>\n\n\n"

// Story Box Posted By, Morelink, Print
        ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" 
width=\"100%\">\n"
        ."<tr>\n"
        ."<td align=\"right\">\n"
        ."<br><font class=\"tiny\">$preformat[more]</font>\n"
        ."</td>\n"
        ."</tr>\n"
        ."</table>\n"
        ."<br>\n\n\n";
}

/************************************************************/
/* Function themeindex()                                    */
/*                                                          */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home        */
/************************************************************/

function themearticle ($_deprecated, $_deprecated, $_deprecated, 
$_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, 
$_deprecated, $info, $links, $preformat) {
    global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4;

// Read More Title Area
    echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" 
width=\"100%\">\n"
        ."<tr>\n"
        ."<td align=\"left\">\n"
        ."<font class=\"option\"><b>$preformat[catandtitle]</b></font>\n"
        ."<br>\n"
        ."<font class=\"content\">"._POSTEDBY.": $info[informant] ";



if (pnSecAuthAction(0, 'Stories::', "$info[aid]:$info[cattitle]:$info[sid]", 
ACCESS_EDIT)) {
             echo "<span class=\"pn-sub\"> [ <a 
href=\"admin.php?module=NS-AddStory&amp;op=EditStory&amp;sid=$info[sid]\">"._EDIT."</a>";
        if (pnSecAuthAction(0, 'Stories::', 
"$info[aid]:$info[cattitle]:$info[sid]", ACCESS_DELETE)) {
               echo "| <a 
href=\"admin.php?module=NS-AddStory&amp;op=RemoveStory&amp;sid=$info[sid]\">"._DELETE."</a> 
]</span>";
	                    }
            echo "<br /><br />\n";
	        }

    echo "</td>\n"
        ."</tr>\n"
        ."</table>\n\n\n"

        ."<br>\n\n\n"

// Read More Content
        ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" 
width=\"100%\">\n"
        ."<tr>\n"
        ."<td>\n";
    echo "$preformat[searchtopic]\n";
    echo "$preformat[fulltext]\n";
    echo "</td>\n"
        ."</tr>\n"
        ."</table>\n\n\n"

        ."<br>\n\n\n";
}

/************************************************************/
/* Function themesidebox()                                  */
/*                                                          */
/* Control look of your blocks. Just simple.                */
/************************************************************/

function themesidebox($block) {

if (empty($block['title']))   {
         echo "<font class=\"boxcontent\">$block[content]</font>";
	 } else
	 {

// Side Box Title
    echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" 
width=\"100%\">\n"
        ."<tr>\n"
        ."<td align=left>\n"
        ."<font class=\"content\" 
color=\"#363636\"><b>$block[title]</b></font>\n"
        ."</td>\n"
        ."</tr>\n"
        ."</table>\n"

// Side Box Content
        ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" 
width=\"150\">\n"
        ."<tr valign=\"top\">\n"
        ."<td>\n"
        ."$block[content]\n"
        ."</td>\n"
        ."</tr>\n"
        ."</table>\n\n\n"

        ."<br>\n\n\n";
	}
}

?>





