I wanted to show links to latest news from WB site A on WB site B. I could not find information on this in the forum, so I have used a little trick to do it using RSS. Maybe others will find this useful too. I used the free script "RSS2HTML" from
http://www.feedforall.com/download.htm.
Site A:
www.bereikbaarheid. nlSite B:
www.itojaarcongres. nlYou can see the 5 latest news items from site A in the left column on site B. Clicking on an item will open the news item on site B in a new window.
1. Install and configure the RSS2HTML script on site B, for example in a subdir of your template. There are good instructions supplied, and a sample template. The bare minimum to show clickable links only:
~~~BeginItemsRecord~~~
<a href="~~~ItemLink~~~">~~~ItemTitle~~~</a><br>
~~~EndItemsRecord~~~
2. Include the PHP file from the script in the (index.php probably) template of site B, like so:
<?php include("http://www.your-domain-here.com/wb/path-to-template/rss2html/rss2html.php"); ?>
3. Open the rss.php file from the news module of site A. Add the number of items from site A you want to show on site B, for example the latest 5, by adding "LIMIT 0, 5" to the end of the query. Like so:
$query = "SELECT * FROM ".TABLE_PREFIX."mod_news_posts WHERE page_id=".$page_id." AND active=1 ORDER BY posted_when DESC LIMIT 0, 5";
And modify the rss.php further if needed.
4. Find out what the page ID is of the new you want to show (hover above the news items in the admin, and you'll see the page ID in the urls'). This ID has to be used when calling the rss.php file. So for example:
http://www.your-domain-here.com/wb/modules/news/rss.php?page_id=xx (where xx will be a number)
5. Put the above line in the rss2html.php file of the script. You'll see where.
After uploading it all, it should work. That's it

Of course you can use the script to show RSS content from other (non WB) sites on your site as well. It's a cool little script I think.