1tens will ich das ezPortal in einen Unterordner packen. Also root/ezportal/portal.php. Was muss ich dafür alles anpassen?
Den rootpath muss ich ändern und den Pfad zum fetchpost.php auch.
Code: Alles auswählen
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'ezportal/fetchposts.'.$phpEx);
2tens würd ich gerne eine Userabfrage hinzufügen, die bewirkt, dass nur Einträge von einem User als News auf dem Portal angezeigt werden.
Code: Alles auswählen
// Number of news on portal
$CFG['number_of_news'] = '5';
// Length of news
$CFG['news_length'] = '200';
// News Forum ID: separate by comma for multi-forums, eg. '1,2,5'
$CFG['news_forum'] = '20';
// Poll Forum ID: separate by comma for multi-forums, eg. '3,8,14'
$CFG['poll_forum'] = '1';
//User ID: ?
$CFG['user_id'] = '77';
fetchposts.txt
portal.txt