Calculator  Home  Frequently Asked Questions  Search This Site  Guestbook  Feedback   

SAM-Consult
Machteld van 
Meterenlaan 30
2628 LR  Delft
The Netherlands
Tel: +31-15-2616939
Fax: +31-15-2569303
Email:
info@samconsult.biz
Map of Delft
 
Home
Up
My Web News Help
My Weather Help
My File Manager Help
MCE Outlook Help
History
Download
Register
User Screens
The Green Button
MCE-Community
De Groene Knop
XPMCE-NL
XPMCE-AU
MCE-Soft

 
My Web News package

My Web News
RSS Feed Filters
Screenshots

Top

My Web News

My Web News consists of the following applications:
  1. My Web News (WebNews.htm), parameters: 
    "?instance=myinstance"
  2. My Weather (Weather.htm), parameters: 
    "?instance=mycity"
  3. My Weather Map Viewer (ShowMaps.htm)
  4. My Weather World Weather (World Weather.htm)
  5. My File Manager (FileManager.htm), parameters: 
    "?path=mypath " or "?file=myfile"
  6. My Readme Manager (ReadmeManager.htm), parameters: 
    "?path=mypath " or "?file=myfile"
  7. My Special Folders (SpecialFolder.htm), parameters: 
    "?path=mypath " or "?file=myfile" or ?spec=specialfolder"
  8. My Thumbnail Viewer (BrowseMedia.htm), parameters: 
    "?path=mypath "
  9. My Start Menu (NavToPage.htm)
  10. About Page (NewsAbout.htm)

Go to the readme files of the different applications to see how they work and make full use of them.

Please visit www.samconsult.biz for more information.
Top

My Web News

My Web News is a menu system developed to process RSS Feeds, but it can also be used as a menu system. On the Main Page, Genres are shown, which contain Categories. A Category can be an RSS Feed or a hosted HTML page (use go directly to URL).
Go to Setup to Add, Modify or Delete Genres and Categories and to set the language and background.

Setup

My Web News comes with many predefined RSS feeds and menu items as they are used for the development of My Web News.
The predefined feeds and meny items are located in the "WebNews.reg" file in the "C:/Program Files/MCE-SAMConsult/Registry" directory.
If you did not choose to install them when you installed this package, you can still do it by double clicking on the "WebNews.reg" file.

To setup your own menu and RSS feeds, go to Setup on the main page.
First choose a language and a background image. Right now only the English language is supported fully.
Secondly define genres, which will be the buttons on the left of the screen.
You can define up to 8 genres, but its recommended to limit it to 6.
Thirdly define categories. A category can be an RSS feed or a link to another hosted HTML page.
There are 3 fields, the description which will appear on the button on the right side of the screen, the RSS feed or link and the genre the link belongs to.

RSS feeds can be found on internet and there are thousands available. For BBC, CNN, Elsevier, Reuters and Nieuws.nl, filters are build in, so you can see the news articles in MCE style. For other RSS feeds, a popup browser is used to display the internet page of the article.

There are a number of HTML pages available with the My Web News package:

  1. My Web News (WebNews.htm), parameters: 
    "?instance=myinstance"
  2. My Weather (Weather.htm), parameters: 
    "?instance=mycity"
  3. My Weather Map Viewer (ShowMaps.htm)
  4. My Weather World Weather (World Weather.htm)
  5. My File Manager (FileManager.htm), parameters: 
    "?path=mypath " or "?file=myfile"
  6. My Readme Manager (ReadmeManager.htm), parameters: 
    "?path=mypath " or "?file=myfile"
  7. My Special Folders (SpecialFolder.htm), parameters: 
    "?path=mypath " or "?file=myfile" or ?spec=specialfolder"
  8. My Thumbnail Viewer (BrowseMedia.htm), parameters: 
    "?path=mypath "
  9. My Start Menu (NavToPage.htm)
  10. About Page (NewsAbout.htm)

The different parameters are discussed in the readme files of the different programs.

You can also make links to other MCE related hosted HTML pages you have installed on your MCE computer, for example:
"?../../mcesoft/webmedia/webmedia.htm", if you have WebMedia installed.

You can make links directly to watch internet pages by:
"newsarticle.htm?url=myurl"
But this will only show well if you first add a filter for the specific page to extract the article from the page.
As an example I added traffic information in My Menu - Tests, the filter can be found in Filters.INI.

Instances

My Web News can have multiple instances by adding "?instance=description" after "webnews.htm", when you define this new instance as a category (Go directly to URL).
For example: "webnews.htm?instance=My Menu". Extra instances of My Web News give you the ability to extend your RSS feed/menu system and keep it organized. The number of extra instances is unlimited.
Don't forget to make an entry to go back to the primary My Web News instance with: "?instance=0" or "instance="
Please visit www.samconsult.biz for more information.
Top

RSS Feed Filters

With RSS Feed Filters you can extract the article from the HTML page containing the article.

Different providers require different filters, in fact what My Web News is doing is extracting the contents between a start and a end tag. These tags are unique strings inside the source of the HTML of the page containing the article.
My Web News uses 3 parts of the HTML document, a Title, a SubTitle and the Article. Another thing is that some providers use relative addressing for images and some use absolute addressing. Since My Web News first retrieves the article and then show it locally, relative addressing will not show the images, unless the image addresses are transformed to absolute addresses.

Values in the Filters.INI file should be enclosed between quotes. Everything within the outside quotes is part of the value, even if its another quot.

The filters are stored in the Filters.INI file and contain two basic sections.

The [Main] section:

Count=Number - gives the number of filters.
Provider?=URL -  gives the main URL of the Provider, where the question mark is a sequential number, starting at 1.

The [Provider?] section:

Title=YourTitle - gives a Title which will be on the page before the title extracted from the HTML document.
TitleStart=StartTag - unique string in the HTML document just before the title string, you can use the HTML document title which comes after "<title>".
TitleEnd=EndTag - unique string in the HTML document just after the title string, you can use the HTML document title which ends with "</title>".
SubTitle=YourSubTitle - gives a SubTitle which will be on the page before the subtitle extracvted from the HTML document.
SubTitleStart-StartTag - unique string in the HTML document just before the subtitle string, you can use the HTML document meta commands to find a suited subtitle like "<meta name="Section" content="".
SubTitleEnd=EndTag -
unique string in the HTML document just after the subtitle string, you can use the HTML document meta commands to find a suited subtitle which usually ends with a quot.
Article=YourArticle - gives a Title to the article as it appears in the IFrame window.
ArticleStart=StartTag - unique string in the HTML document just before the article string, this is different for each provider.
ArticleEnd=EndTag - unique string in the HTML document just after the article string, this is different for each provider.
ReplaceSource=RelativeImageURL - relative path as used in the "<img src=" tag.
ReplaceWith=AbsoluteImageURL - absolute path to replace the relative path. 

See the Filters.INI file for examples.

The Filters.INI File

[Main]
Count=5
Provider1="http://news.bbc.co.uk"
Provider2="http://www.elsevier.nl"
Provider3="http://www.reuters.com"
Provider4="http://www.nieuws.nl"
Provider5="http://www.cnn.com"

[http://news.bbc.co.uk]
Title="Title: "
TitleStart="<meta name="Headline" content=""
TitleEnd="""
SubTitle="SubTitle: "
SubTitleStart="<meta name="Section" content=""
SubTitleEnd="""
Article="Article:"
ArticleStart="<!-- S BO -->"
ArticleEnd="<!-- E BO -->"
ReplaceSource="src="/nol"
ReplaceWith="src="http://newsimg.bbc.co.uk/nol"

[http://www.elsevier.nl]
Title="Title: "
TitleStart="<title>"
TitleEnd="</title>"
SubTitle="SubTitle: "
SubTitleStart="<p class="pubdatum">"
SubTitleEnd="<br/>"
Article="Artikel:"
ArticleStart="<!-- BEGIN ARTIKEL -->"
ArticleEnd="<p class="
ReplaceSource="src="/artimg"
ReplaceWith="src="http://www.elsevier.nl/artimg"

[http://www.reuters.com]
Title="Title: "
TitleStart="<title>"
TitleEnd="</title>"
SubTitle="SubTitle: "
SubTitleStart="<meta name="description" content=""
SubTitleEnd="">"
Article="Article:"
ArticleStart="<!-- article text begins -->"
ArticleEnd="<!-- article text ends -->"
ReplaceSource=""
ReplaceWith=""

[http://www.nieuws.nl]
Title="Title: "
TitleStart="<title>"
TitleEnd="</title>"
SubTitle="SubTitle: "
SubTitleStart="CONTENT=""
SubTitleEnd="">"
Article="Artikel:"
ArticleStart="<div id="content">"
ArticleEnd="</div>"
ReplaceSource="src="/news"
ReplaceWith="src="http://www.nieuws.nl/news"

[http://www.cnn.com]
Title="Title: "
TitleStart="<meta name="SECTION" content=""
TitleEnd="""
SubTitle="SubTitle: "
SubTitleStart="<title>"
SubTitleEnd="</title>"
Article="Article:"
ArticleStart="<!--===============Paste story between here=================-->"
ArticleEnd="<!--===============Paste story between here=================-->"
ReplaceSource=""
ReplaceWith=""
Please visit www.samconsult.biz for more information.
Top
My Web News
Web News Main Page Web News BBC RSS FEED Web News BBC Article

Web News Main Page Weather   Web News Setup Web News Setup Genres

Web News Setup Categories Web News Extra Settings
Web News About Web News Second Instance
My Start Menu Editor
Menu Editor Main Menu Editor Edit Menu Editor Start Menu
My Start Menu My Translation
Alternative Start Menu Translate Many Languages

Home Up Next


Send mail to webmaster@samconsult.biz with questions or comments about this web site.
Copyright © 2002-2006 SAM-Consult
Last modified: June 01, 2006