www.macfrognet.de - Tools and more

www.macfrognet.de - Tools and more


Diverse Tools, punBB-Mods und Dokumentationen.
Several tools, punBB mods and documentations.

Sie sind nicht angemeldet.

 

PunBB Portal Mod

Installation instructions

##
##
##        Mod title:  PunMyPortal 
##
##      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-29, start with release 0.9 2005-10-15
##           Author:  Frank Wittke (webadmin@macfrognet.de) 
##
##      Description:  A portal mod for punBB - based on the demo code of Connorhd 
##                    You can find the original documentation here:
##                    http://punres.org/doku.php?id=tutorials:miniportal
##
##       Affects DB:  Yes 
##
##   Affected files:  header.php 
##
##            Notes:  After you install this you can configure the portal
##                    mod in the forum admin area.
##
##                    You can create own portal pages by using the file:
##                    portal_template.php
##
##           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. RENAME ]-------------------------------------------------------
#
 
<PUN_ROOT>/index.php            to <PUN_ROOT>/forum.php
 
#
#---------[ 2. UPLOAD ]-------------------------------------------------------
#
 
lang/English/portal_admin.php   to <PUN_ROOT>/lang/English/portal_admin.php
lang/English/portal.php         to <PUN_ROOT>/lang/English/portal.php
lang/German/portal_admin.php    to <PUN_ROOT>/lang/German/portal_admin.php
lang/German/portal.php          to <PUN_ROOT>/lang/German/portal.php
include/portal_functions.php    to <PUN_ROOT>/include/portal_functions.php
include/template/portal.tpl     to <PUN_ROOT>/include/template/portal.tpl
plugins/AP_Portal.php           to <PUN_ROOT>/plugins/AP_Portal.php
index.php                       to <PUN_ROOT>/index.php
portal_template.php 		to <PUN_ROOT>/portal_template.php
install_mod.php 		to <PUN_ROOT>/install_mod.php
 
#
#---------[ 3. RUN ]----------------------------------------------------------
#
 
install_mod.php
 
#
#---------[ 4. DELETE ]-------------------------------------------------------
#
 
install_mod.php
 
#
#---------[ 5. OPEN ]---------------------------------------------------------
#
 
header.php
 
#
#---------[ 6. FIND ]---------------------------------------------------------
#
 
else
	$tpl_main = file_get_contents(PUN_ROOT.'include/template/main.tpl');
 
#
#---------[ 7. BEFORE,ADD ]---------------------------------------------------
#
 
// -----> Portal Plugin
else if (defined('PUN_PORTAL_TPL'))
	$tpl_main = file_get_contents(PUN_ROOT.'include/template/portal.tpl');
// <----- Portal Plugin
 
#
#---------[ 8. FIND AGAIN ]---------------------------------------------------
#
 
else
	$tpl_main = file_get_contents(PUN_ROOT.'include/template/main.tpl');
 
#
#---------[ 9. AFTER, ADD ]---------------------------------------------------
#
 
// -----> Portal Plugin
// Build the left sidebar, set the counter and declare the portal_functions
require PUN_ROOT.'include/portal_functions.php';
portal_main(PUN_PORTAL_TPL, $tpl_main);
// <----- Portal Plugin
 
#
#---------[ 10. SAVE/UPLOAD ]-------------------------------------------------
#
 
 
#
#---------[ 11. CONFIGURE ]---------------------------------------------------
#
 
1) Configure the portal plugin in the forum admin area
 
2) Insert a link to the old forum page:
   Goto Options 
   Insert in field "Additional menu items":
        1=<a href="forum.php">Forum</a>
 
#
#---------[ 12. RUN ]---------------------------------------------------------
#

Update instructions

##
##
##        Mod title:  PunMyPortal 
##
##      Mod version:  1.0 
##      Update from:  0.9
 
##############################################################################
## Update from version 0.9:
##############################################################################
 
#
#---------[ 1. UPLOAD ]-------------------------------------------------------
#
 
include/portal_functions.php    to <PUN_ROOT>/include/portal_functions.php
include/template/portal.tpl     to <PUN_ROOT>/include/template/portal.tpl
index.php                       to <PUN_ROOT>/index.php
portal_template.php 		to <PUN_ROOT>/portal_template.php

Additional links

 
  punmyportal.txt · Zuletzt geändert: 09.11.2005 07:53 von 84.61.137.212 (MacFrog)
 

Brett Fußzeile

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson