PunBB Logo Mod
Installation instructions
##
##
## Mod title: PunMyLogo
##
## Mod version: 1.0
## Works on PunBB: 1.2.8, 1.2.9, 1.2.10 (may be run under 1.2.x - but not tested)
## Release date: 2005-10-30, start with release 0.9 2005-10-15
## Author: Frank Wittke (webadmin@macfrognet.de)
##
## Description: Adds a logo to the forum
##
## Affects DB: Yes
##
## Affected files: header.php
##
## Notes: After you install this you can configure the logo mod
## in the forum admin area.
##
## Update: see update.txt
##
## DISCLAIMER: Please note that 'mods' are not officially supported by
## PunBB. Installation of this modification is done at your
## own risk. Backup your forum database and any and all
## applicable files before proceeding.
##
#
#---------[ 1. UPLOAD ]-------------------------------------------------------
#
plugins/AP_Logo.php to <PUN_ROOT>/plugins/AP_Logo.php
a logo file
#
#---------[ 2. CONFIGURE ]----------------------------------------------------
#
Configure the logo plugin in the forum admin area
#
#---------[ 3. OPEN ]---------------------------------------------------------
#
header.php
#
#---------[ 4. FIND ]---------------------------------------------------------
#
// START SUBST - <pun_title>
$tpl_main = str_replace('<pun_title>', '<h1><span>'.pun_htmlspecialchars($pun_config['o_board_title']).'</span></h1>', $tpl_main);
// END SUBST - <pun_title>
#
#---------[ 5. BEFORE, ADD ]--------------------------------------------------
#
// <----- Logo Plugin
if ($pun_config['o_board_mylogo'] == "0")
// -----> Logo Plugin
#
#---------[ 6. FIND AGAIN ]---------------------------------------------------
#
// START SUBST - <pun_title>
$tpl_main = str_replace('<pun_title>', '<h1><span>'.pun_htmlspecialchars($pun_config['o_board_title']).'</span></h1>', $tpl_main);
// END SUBST - <pun_title>
#
#---------[ 7. AFTER, ADD ]---------------------------------------------------
#
// <----- Logo Plugin
else {
$logo_string = '<table><tr><td style="border:none"><a href="index.php" target="_self"><img src="'.$pun_config['o_board_mylogofile'].'" alt="'.pun_htmlspecialchars($pun_config['o_board_title']).'" title="'.pun_htmlspecialchars($pun_config['o_board_title']).'" border="0"></a>';
$logo_string_end = '</td></tr></table>';
if ($pun_config['o_board_mylogo'] == "1") // Logo, no title, description below the logo
$tpl_main = str_replace('<pun_title>', $logo_string.$logo_string_end , $tpl_main);
elseif ($pun_config['o_board_mylogo'] == "2") // Logo, title and description below the logo
$tpl_main = str_replace('<pun_title>', $logo_string.$logo_string_end.'<h1><span>'.pun_htmlspecialchars($pun_config['o_board_title']).'</span></h1>', $tpl_main);
elseif ($pun_config['o_board_mylogo'] == "3") // Logo, title right and description below the logo
$tpl_main = str_replace('<pun_title>', $logo_string.'</td><td style="border:none"><h1><span>'.pun_htmlspecialchars($pun_config['o_board_title']).'</span></h1>'.$logo_string_end, $tpl_main);
elseif ($pun_config['o_board_mylogo'] == "4") // Logo, title and description right of the logo
$tpl_main = str_replace('<pun_title>', $logo_string.'</td><td style="border:none"><h1><span>'.pun_htmlspecialchars($pun_config['o_board_title']).'</span></h1><p><span>'.$pun_config['o_board_desc'].'</span></p>'.$logo_string_end, $tpl_main);
}
if ($pun_config['o_board_mylogo'] <> "4")
// -----> Logo Plugin
#
#---------[ 8. SAVE/UPLOAD ]--------------------------------------------------
#
#
#---------[ 9. RUN ]----------------------------------------------------------
#
Update instructions
##
##
## Mod title: PunMyLogo
##
## Mod version: 1.0
## Update from: 0.9
##############################################################################
## Update from version 0.9:
##############################################################################
#
#---------[ 1. OPEN ]---------------------------------------------------------
#
header.php
#
#---------[ 2. FIND ]---------------------------------------------------------
#
$logo_string = '<table><tr><td style="border:none"><a href="index.php" target="_self"><img src="'.$pun_config['o_board_mylogofile'].'" alt="'.pun_htmlspecialchars($pun_config['o_board_title']).'" border="0"></a>';
#
#---------[ 3. REPLACE WITH ]-------------------------------------------------
#
$logo_string = '<table><tr><td style="border:none"><a href="index.php" target="_self"><img src="'.$pun_config['o_board_mylogofile'].'" alt="'.pun_htmlspecialchars($pun_config['o_board_title']).'" title="'.pun_htmlspecialchars($pun_config['o_board_title']).'" border="0"></a>';
#
#---------[ 4. SAVE/UPLOAD ]--------------------------------------------------
#
Additional links