Version: 1.00, by okrogius
Developer Last Online: Dec 2005
Version: 3.0.0
Rating:
Released: 01-02-2004
Last Update: Never
Installs: 10
No support by the author.
Those of you who integrate your feed in a PHP page will appreciate the simplicity of working with this .
Once installed you can just include your therads on your site's pages (example) via simply reading contents of external.php?type=php (be it via fopen, etc), and then processing the results through an unserialize() call.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
for ($i=0; $<count($threads); $i++) {
echo 'thread: '.$threads[$i]['title'].'<br />';
}
?>
its not as simple as that other wise i wouldn't get this error message:
Parse error: parse error, unexpected '<', expecting T_VARIABLE or '$' in G:\wampp2\htdocs\mnracing\index.php on line 230
its not as simple as that other wise i wouldn't get this error message:
Parse error: parse error, unexpected '<', expecting T_VARIABLE or '$' in G:\wampp2\htdocs\mnracing\index.php on line 230
To get this Mod to work with KW802's replacement for external.php in this thread "FPS_EXTERNAL.PHP -- New options added & RSS compliant version of external.php" - https://vborg.vbsupport.ru/showthread.php?t=69834, use the following instructions instead of the ones attached here:
Open fps_external.php (or whatever you renamed it to).
Find:
PHP Code:
case 'JS':
break;
case 'XML':
break;
case 'RSS1':
break;
case 'RSS2':
break;
Under it add:
PHP Code:
case 'PHP':
break;
Find:
PHP Code:
// +=============================================================+
// | Build the RSS feeds |
// +=============================================================+
else if (($_REQUEST['type'] == 'RSS' OR $_REQUEST['type'] == 'RSS1' OR $_REQUEST['type'] == 'RSS2') AND $vboptions['externalrss'])
To get this Mod to work with KW802's replacement for external.php in this thread "FPS_EXTERNAL.PHP -- New options added & RSS compliant version of external.php" - https://vborg.vbsupport.ru/showthread.php?t=69834, use the following instructions instead of the ones attached here:
Open fps_external.php (or whatever you renamed it to).
Find:
PHP Code:
case 'JS':
break;
case 'XML':
break;
case 'RSS1':
break;
case 'RSS2':
break;
Under it add:
PHP Code:
case 'PHP':
break;
Find:
PHP Code:
// +=============================================================+
// | Build the RSS feeds |
// +=============================================================+
else if (($_REQUEST['type'] == 'RSS' OR $_REQUEST['type'] == 'RSS1' OR $_REQUEST['type'] == 'RSS2') AND $vboptions['externalrss'])
If there are no objections I'll incorporate that into the next round of changes I'm working on.
Sorry it took so long to respond, I have only just rechecked this thread. I have no probs you using my instructions, it was just to get okrogius's code to work with your version instead of the original external.php.
The only problem I see with okrogius's code is that there is no mechanism to turn off the php feed in the ACP (whereas you can switch off the others), that needs to be factored in when adding the php feed if okrogius gives permission to use his code.