News Page Mod
Geplaatst: 19 jul 2006, 21:45
Hoi,
Bij de news page mod is dit de news.php die je in de root van je forum plaatst:
Het gaat me om dit stukje:
Hier in word aangegeven dat de pagina met de nieuwsberichten in template map staat.
Dit zou ik graag veranderd zien.
Graag zou ik de root een map 'newscontent' willen hebben en dat daar het document met nieuws inhoud staat en daar moet naar toe word verwezen.
Maar hoe pak ik dit aan?
Groet,
Maxx.
Bij de news page mod is dit de news.php die je in de root van je forum plaatst:
Code: Selecteer alles
<?
/***************************************************************************
* news.php
* -------------------
* begin : Saturday, April 5th, 2003
* author : Manshu Chhabra
* email : manshuchhabra@hotmail.com
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
//
// Start output of page
//
$page_title = $lang['Index'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
'body' => 'news_body.tpl')
);
//
// Generate the page
//
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Code: Selecteer alles
$template->set_filenames(array(
'body' => 'news_body.tpl')
);
//
// Generate the page
//
$template->pparse('body');
Dit zou ik graag veranderd zien.
Graag zou ik de root een map 'newscontent' willen hebben en dat daar het document met nieuws inhoud staat en daar moet naar toe word verwezen.
Maar hoe pak ik dit aan?
Groet,
Maxx.