Flashblocks Flash CMS
Welcome, Guest
Please Login or Register.    Lost Password?
Remote RSS files in the news & list modules. (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: Remote RSS files in the news & list modules.
#3790
admin ()
User Online Now Click here to see the profile of this user
Flashblocks Birthdate: 2005-02-14
 
Remote RSS files in the news & list modules. 7 Months, 2 Weeks ago
The Flashblocks news and list modules store data in an RSS formatted XML file.

As a result it is possible to populate the Flashblocks news and list modules with many RSS feeds, even those found on other servers. So if you wish to get your news from a Wordpress or Joomla website or other RSS news feed or even the Flashblocks forum you can do this very easily.

Due to security restrictions, Flash will not load files from other servers so what we can do is create a proxy script, in PHP, that reads an XML file from a URL, for use locally in Flash.

We will create a simple PHP file, that loads and displays an RSS file so that we may select this PHP file from the Flashblocks news list modules.

1. Place the following line in a PHP file, in order to read and display the flashblocks.com forum RSS feed.
Code: :

 readfile("http://flashblocks.com/index2.php?option=com_fireboard&func=fb_rss&no_html=1&Itemid=62");



2. Then place this PHP file in the flashblocks/data/xml/ directory on your server.

3. If you are using Flashblocks ML 2.0.2.6 - 1/12/08 or earlier, by default the news and list modules only allow you to select XML files. So we will need to alter these movie clips to allow the selection of PHP files as well. Open the demo site and edit the news and list modules. Look for this line of code,
Code: :

 showExtentions:"xml",


and replace it with this line of code,
Code: :

 showExtentions:"xml|php",



Thats it! Now you may select the PHP script, from the news and list modules, and the contained RSS feed will be displayed in your website.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/01/14 09:24 By admin.
  The administrator has disabled public write access.
#3791
housefly1 ()
User Offline Click here to see the profile of this user

 
Re:Remote RSS files in the news & list modules. 7 Months, 2 Weeks ago
Brilliant!

/jesper
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3815
Re:Remote RSS files in the news & list modules. 7 Months, 2 Weeks ago
Nice one Sunny, look forward to using it. Thx
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop

Thank you