Chooseable External Output
This modification is in the archives.
If you have External data enabled in the options, you can have xml and rss feeds for your forums. By default, the ost previews strip all bbcodes and only show portions of the text. This hack lets you choose how you want the output to be like.
The bbcode, smiles, and html output depends on the forum settings of that post. The choices are: Default: Short preview with no BBcodes. 1: Full text with no bbcodes 2: Full text with bbcodes These can be selected via the browser query string. Example: http://www.yourforum.com/external.php?type=RSS2&format=2 In forum/root/external.php find: PHP Code:
$permissions = cache_permissions($bbuserinfo);
PHP Code:
$format = iif($_GET['format'],intval($_GET['format']),0);
PHP Code:
echo "\t\t<content:encoded><![CDATA[". htmlspecialchars_uni(fetch_trimmed_title(strip_bbcode($thread['preview'], false, true), $vboptions['thread'])) ."]]></content:encoded.\r\n";
PHP Code:
if (function_exists('format_external_text'))
Found here: Additional external.php feed format Find: PHP Code:
else if ($_REQUEST['type'] == 'PHP')
PHP Code:
foreach ($threadcache AS $key => $thread)
Now in file forum/root/includes/functions_external.php find: PHP Code:
?>
PHP Code:
function format_external_text($text,$format,$forumid=0) {
Download No files for download. |