https://www.icyphoenix.com/viewtopic.php?f=26&t=1370&p=16388#p16388
-----------------------------------
OryNider
Mon 11 Jun, 2007 00:39

Re: FAP Module For MxBB-Portal
-----------------------------------
This may help:

In album_rss.php and album_rdf.php

[u]Find[/u]:

[code linenumbers=false]
// Get general album information
if (!isset($album_root_path) || empty($album_root_path))
{
	$album_root_path = $module_root_path . ALBUM_MOD_PATH . '';
}
[/code]

[u]Replace with[/u]:

[code linenumbers=false]
// Get general album information
if (!isset($album_root_path) || empty($album_root_path))
{
	$album_root_path = $phpbb_root_path . ALBUM_MOD_PATH . '';
}
[/code]

[u]Find[/u]:

[code linenumbers=false]
// Create main board url (some code borrowed from functions_post.php)
$script_name = preg_replace('/^/?(.*?)/?$/', '1', trim($board_config['script_path']));
$site = 'index.php';
$index = this_fap_rssurl();
$thumbs = this_album_rssurl("smartor_mode=album_thumbnail");
$server_name = trim($board_config['server_name']);
$server_protocol = ( $board_config['cookie_secure'] ) ? 'https://' : 'http://';
$server_port = ( $board_config['server_port'] <> 80 ) ? ':' . trim($board_config['server_port']) . '/' : '/';
$site_name = strip_tags($board_config['sitename']);
$site_description = strip_tags($board_config['site_desc']);

// Change below to point to your rss-logo
$logo = 'logo.gif';
// Change above to point to your rss-logo


if (!isset($mx_images['logo_url']) || empty($mx_images['logo_url']))
{
	$mx_images['logo_url'] = PORTAL_URL . 'templates/' . $theme['template_name'] . '/images/' . $logo;
}
elseif (!isset($theme['template_name']) || empty($theme['template_name']))
{
	$mx_images['logo_url'] = PORTAL_URL . 'templates/subSilver/images/' . $logo;
}


$index_site = PORTAL_URL . $site;
$index_url = PORTAL_URL . $index;
$thumb_url = PORTAL_URL . $thumbs;
[/code]

[u]Replace with[/u]:

[code linenumbers=false]
// Create main board url (some code borrowed from functions_post.php)
$script_name = preg_replace('/^/?(.*?)/?$/', '1', trim($board_config['script_path']));
$site = ( $script_name != '' ) ? $script_name . '/album.' . $phpEx : 'album.'. $phpEx;
$index = ( $script_name != '' ) ? $script_name . '/album_page.' . $phpEx : 'album_page.'. $phpEx;
$thumbs = ( $script_name != '' ) ? $script_name . '/album_thumbnail.' . $phpEx : 'album_thumbnail.'. $phpEx;
$server_name = trim($board_config['server_name']);
$server_protocol = ( $board_config['cookie_secure'] ) ? 'https://' : 'http://';
$server_port = ( $board_config['server_port'] <> 80 ) ? ':' . trim($board_config['server_port']) . '/' : '/';
$site_name = strip_tags($board_config['sitename']);
$site_description = strip_tags($board_config['site_desc']);

// Change below to point to your rss-logo
$mx_images['logo_url'] = 'http://yoursite.com/images/logorss.gif';
// Change below to point to your rss-logo

$index_site = $server_protocol . $server_name . $server_port . $site;
$index_url = $server_protocol . $server_name . $server_port . $index;
$thumb_url = $server_protocol . $server_name . $server_port . $thumbs;
[/code]

This is just an example and I may missed someting, anyway the addons from both rss versions have been upgraded in the SQL sintaxes based on album_rss.php by chyduskam but not using the phpbb rss mod, and rss 2 has more features that I have seen in gallery 2 rss feed, but I figured myself, and str_replace example for some diacritics that usualy can crash the xml files. The rss include file are not used yet or ported/included in mxBB couse now is the time to make the core more compatibe with Olympus.  :)


