Differences
This shows you the differences between the selected revision and the current version of the page.
punbb12:syndication 2009/07/09 02:33 | punbb12:syndication 2020/02/06 11:04 current | ||
---|---|---|---|
Line 16: | Line 16: | ||
* **type:** RSS. Anything else means HTML output. | * **type:** RSS. Anything else means HTML output. | ||
- | Here are some examples using PHP include(). | + | ==== Examples ==== |
+ | |||
+ | == Here are some examples using PHP include(). == | ||
* Show the 15 most recently active topics from all forums: | * Show the 15 most recently active topics from all forums: | ||
include('http://host.com/forums/extern.php?action=active'); | include('http://host.com/forums/extern.php?action=active'); | ||
Line 28: | Line 30: | ||
include('http://host.com/forums/extern.php?action=stats'); | include('http://host.com/forums/extern.php?action=stats'); | ||
- | Here are some examples using SSI. | + | == Here are some examples using SSI. == |
* Show the 5 newest topics from forums with ID 11 and 22: | * Show the 5 newest topics from forums with ID 11 and 22: | ||
''<!--#include virtual="forums/extern.php?action=new&show=5&fid=11,22" -->'' | ''<!--#include virtual="forums/extern.php?action=new&show=5&fid=11,22" -->'' | ||
Line 34: | Line 36: | ||
''<!--#include virtual="forums/extern.php?action=stats" -->'' | ''<!--#include virtual="forums/extern.php?action=stats" -->'' | ||
- | And finally some examples using extern.php to output an RSS 0.91 feed. | + | == And finally some examples using extern.php to output an RSS 0.91 feed. == |
* Output the 15 most recently active topics: | * Output the 15 most recently active topics: | ||
http://host.com/extern.php?action=active&type=RSS | http://host.com/extern.php?action=active&type=RSS | ||
* Output the 15 newest topics from forum with ID=2: | * Output the 15 newest topics from forum with ID=2: | ||
http://host.com/extern.php?action=active&type=RSS&fid=2 | http://host.com/extern.php?action=active&type=RSS&fid=2 | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- |