Headlines Plugin

Description

This plugin displays RSS and ATOM feeds from news sites. Use it to build news portals that show headline news.

Note: Syndic8.com ( http://www.syndic8.com/ ) lists many RSS feeds.

Syntax Rules

%HEADLINES{"..."}%

Parameter Explanation Default
"..." source of RSS feed; this can be an url (starting with http) or a web.topic location for internal feeds None; is required
href="..." (Alternative to above) N/A
refresh="60" Refresh rate in minutes for caching feed; "0" for no caching Global REFRESH setting
limit="12" Maximum number of items shown Global LIMIT setting
touch="..." Touch (edit/save) topics if the feed has updates. Specify a comma-space delimited list of TopicNames or Web.TopicNames, such as "%TOPIC%, NewsLetter". Useful to send out newsletter using MailerContrib, showing new feeds since last newsletter. To update feeds, visit topics with feeds in regular intervals (using cron with wget or the like). N/A
header Header. Can include these variables: - $channeltitle, $title: title of channel (channel.title)
- $channellink, $link: link of channel (channel.link)
- $channeldescription, $description: description (channel.description)
- $channeldate, $date: publication date of the channel (channel.pubDate)
- $rights: copyrights of the channel (channel.copyright)
- $imagetitle: title text for site (image.title)
- $imagelink: link for site (image.link)
- $imageurl: URL of image (image.url)
- $imagedescription: description of image (image.description)
Global HEADER setting
format Format of one item. Can include these variables:
- $title: news item title (item.title)
- $link: news item link (item.link)
- $description: news item description (item.description)
- $date: the publication date (item.pubDate, item.date)
- $category: the article category (item.category)
Global FORMAT setting

The header and format parameters might also use variables rendering the dc, image and content namespace information. Note, that only bits of interest have been implemented so far and those namespaces might not be implemented fully yet.

Rendering the dc namespace

The following variables are extracting the dc namespace info, that could be used in header and format. Nnote, that some of the variables are already used above. This is done by purpose to use different feeds with the same formating parameters. If there's a conflict the non-dc tags have higher precedence, i.e. a <title> content </title> is prefered over <dc:title> content </dc:title> .

  • $title: channel/article title (dc:title)
  • $creator: channel creator (dc:creator)
  • $subject: subject text; this will also add an image according to the subject hash list, see above (dc:subject)
  • $description: ... (dc:description)
  • $publisher: the channel/article publisher (dc:publisher)
  • $contributor: ... (dc:contributor)
  • $date: ... (dc:date)
  • $type: ... (dc:type)
  • $format: ... (dc:format)
  • $identifier: ... (dc:identifier)
  • $source: ... (dc:source)
  • $language: ... (dc:language)
  • $relation: ... (dc:relation)
  • $coverage: ... (dc: coverage)
  • $rights: ... (dc: rights)

Rendering the image namespace

An image:item is converted into an <img> tag using the following mappings:

  • src: image url (rdf:about attribute of the image.item tag)
  • alt: image title (title)
  • width: image width (image:width)
  • height: image height image:height)

Rendering the content namespace

The variable $content is refering to the <content:encoding> content </content:encoding>.

Examples

Slashdot News

Write

%HEADLINES{ "http://slashdot.org/slashdot.rdf" 
  header="*[[$link][$title]]:* $description" 
  format="$t* [[$link][$title]]"
  limit="4"
}%
to get the latest Slashdot news as a bullet list format:

HeadlinesPlugin ERROR: 500 Can't connect to slashdot.org:443

Business Opportunities Weblog

Write

%HEADLINES{ "http://www.business-opportunities.biz/feed" limit="2" }%

to get the latest postings on the "Business Opportunities" weblog:

Fri, 25 May 2018 05:55:10 +0000
The original blog about business opportunities and business ideas for small business entrepreneurs
Fri, 25 May 2018 05:55:10 +0000 Bizop Team

Do you own a jewelry store, either online or in the brick-and-mortar world? If so, you might want to set aside this handy guide to give to your loyal customers.

 

RELATED ARTICLE: HOW TO KNOW WHEN YOU’RE READY TO LAUNCH YOUR ECOMMERCE STORE

 

Jewelry: A Cherished Accessory

Jewelry is often one of a woman’s most cherished accessories. Women like to flaunt their sparkling finery and dream of passing it onto future generations with pride.

Precious rings, necklaces, bracelets, and other fancy treasures often come with memories attached. This is especially true for proposal or wedding rings. What’s more, a ring is an ornament that many women wear every day. Other regalia are brought out only for special occasions.

Of course, we love our fine jewels. But do you know that along with love, your jewelry requires care and maintenance, too?

To keep your valuables bright and beautiful, you need to understand how to care for and protect them. Here are some tips for maintaining your precious possessions.

 

1. Avoid Light and Heat

Light and heat can affect the durability and color of both precious metals and fine gems. Just as the sun's rays are harmful for our skin, similarly excess light and heat can fade or damage some gemstones. For instance, topaz, kunzite, and amethyst do not fare well with excessive heat and light.

Also, pearls left out in the sunlight will bleach. Conversely, gems such as amber can grow dark if exposed to too much light. What’s more, excessive heat or a sudden change in temperature can even spoil few gems. For example, pearls may dry out, discolor, or even crack under such conditions.

 

2. Keep Treasured Trinkets Away from Certain Chemicals

When some fine metals and precious gemstones come in contact with certain chemicals, they can easily become damaged or discolored. Keep in mind that there are chemicals in everyday products. For instance, hairspray, perfume, deodorants, lotion, and cosmetics can all be harmful to your rings, earrings, necklaces and bracelets.

Additionally, both chlorine and ammonia-frequently found in swimming pools and some household cleaners-can be harsh on your gems and the precious metals they’re mounted in.

Therefore, while you’re doing household chores or swimming in a pool, remove all your fine jewelry.

 

3.  Give It Regular Check-Ups

Even if there is no occasion, take your jewels out once in a while. Check to see if anything needs cleaning. When you notice any tarnishing or dullness, take necessary actions to clean or polish each piece.

 

4. Store Your Beautiful Baubles Properly

One common mistake is not storing valuable jewels properly. Not all jewelries can be stored in a single box. There is a specific way to store different types.

For example, precious metals should not be stored in a humid place. Humidity will tarnish them. If you happen to live in a humid place, take extra care of your jewelry.

While traveling, be sure to carry your expensive pieces in a properly padded pouch to avoid scratches and other damage.

 

 

5. Invest in an Ultrasonic Cleaner

For cleaning beloved baubles at home, invest in an ultrasonic cleaner. Many are available at low prices. But remember not all jewelry can be cleaned with ultrasonic cleaners. Avoid using such cleansers on organic gemstones such as pearls, coral, or ivory. Nor should you use them for cleaning heat-treated gemstones. Additionally, you should never subject gems that are susceptible to heat-such as kunzite, opal, topaz, and turquoise-to ultrasonic waves.

For those pieces that you are unable to clean at home, look for professional cleaning at a nearby retail jewelry store. If you happen to be the owner of such an establishment, consider offering professional cleaning to your customers.

 

Conclusion

All of this just goes to say that if you take loving care of your cherished jewelry, you’ll be able to enjoy it for many years to come. And when the time comes for you to pass it down, your children and grandchildren will treasure it even more.

The post A Brief Guide for Taking Care of Your Valuable Jewelry appeared first on Business Opportunities.

Fri, 25 May 2018 05:51:13 +0000 Bizop Team

Investment is a funny old game. You could funnel money into one product only to find it’s obsolete long before it lands on store shelves. Or you could place a pittance into the research of a brand and watch it take off like a rocket to Pluto. You're spinning a roulette wheel every time you write a check. But sometimes your gamble pays off. And when it does, you could enjoy more cash than you might imagine.

Just look at the people who invested in Amazon. Founded in 1994, the Internet was barely a germ of an idea. Yet founder Jeff Bezos had the confidence to pioneer a web-based delivery service. Now a multi-billion dollar enterprise, those initial investors make thousands every second.

 

RELATED ARTICLE: THESE 4 EMOTIONS LEAD TO INVESTING MISTAKES

 

An industry gaining traction right now is in health and fitness. Yes, health-based industries are rife with investment opportunities. So are you looking for ways to fund your startup idea or expand your existing business? Then you should check out our list to find out a few of our hot tips.

 

Gyms

The population is becoming increasingly aware of the benefits of keeping fit. As a result, gym memberships have soared within the past decade.

More than this, gyms have become more affordable to the general public. Companies like Pure Gym have figured out how to operate gyms that require little outlay compared to their more expensive counterparts. For one thing, they've dispensed with the need for lots of staff members. One of the reasons is that they trust members to stay hygienic and be respectful of one another.

The total number of gym memberships in the UK stands at 9.7 million. What’s more, it looks like it'll continue to grow. So this is the perfect opportunity for this health-based investment.

 

Big Pharma

The pharmaceutical industry is one of the biggest in the world. Every day, their researchers are searching for solutions to fight the opioid crisis. Or they’re looking for new synthetics to treat heretofore intractable diseases. Others are researching the cure for cancer.

Coming up with new pharmaceutical breakthroughs is an expensive proposition. Therefore, these health-based companies, especially the smaller ones, are continuously looking for new investors. A good option for the small investor, moreover, could be to purchase shares in a pharmaceutical company that looks primed for success.

Companies such as GSK have been around for awhile. However, they are still prime candidates on the stock market. So look into their portfolio for more details.

 

 

Natural Skincare

Consumers are increasingly interested in seeing the phrases “organic” and “natural” on their purchases. And, as such, organic skincare solutions like Kijani Living have been growing by leaps and bounds in the marketplace.

These products can boast of being healthy for skin. That’s because, among other reasons, they are generally alcohol- and perfume-free. As such, they appeal to consumers who have a little bit of extra cash in their purses. It goes without saying that some view these health-based products as luxury items.

But these are luxuries that many increasingly view as necessities. Therefore, a company like this one could be ideal for investment.

That's our list of health-based businesses and sectors you could invest in. Can you think of any more?

The post 3 Health-Based Industries That Are Primed for Investment appeared first on Business Opportunities.

Plugin Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, for example, %HEADLINESPLUGIN_SHORTDESCRIPTION%. Note: Don't modify the settings here; copy and customize the settings in Main.TWikiPreferences. For example, to customize the USERAGENTNAME setting, create a HEADLINESPLUGIN_USERAGENTNAME setting in Main.TWikiPreferences.

  • One line description, shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Show headline news in TWiki pages based on RSS and ATOM news feeds from external sites

  • Refresh rate in minutes for cached feeds. Disable caching: 0, default: 60
    • Set REFRESH = 60

  • Maximum number of items shown. Default: 100
    • Set LIMIT = 100

  • Use LWP::UserAgent, or fallback to TWiki's internal getUrl() method. Default: yes
    • Set USELWPUSERAGENT = yes

  • Timeout fetching a feed using the LWP::UserAgent. Default: 20
    • Set USERAGENTTIMEOUT = 20

  • Name of user agent. Default: TWikiHeadlinesPlugin/2.21
      * Set USERAGENTNAME = TWikiHeadlinesPlugin/2.21

  • Default header: (variables are explained in the syntax rules)
      * Set HEADER = <div class="headlinesChannel"><div class="headlinesLogo"><img src="$imageurl" alt="$imagetitle" border="0" />%BR%</div><div class="headlinesTitle">$n---+!! <a href="$link">$title</a></div><div class="headlinesDate">$date</div><div class="headlinesDescription">$description</div><div class="headlinesRight">$rights</div></div>

  • Default format of one item: (variables are explained in the syntax rules)
      * Set FORMAT = <div class="headlinesArticle"><div class="headlinesTitle"><a href="$link">$title</a></div>$n<span class="headlinesDate">$date</span> <span class="headlinesCreator"> $creator</span> <span class="headlinesSubject"> $subject </span>$n<div class="headlinesText"> $description</div></div>

  • Values taken from configure: (only supported if CPAN:LWP is installed)
    • $TWiki::cfg{PROXY}{HOST} - proxy host, such as "proxy.example.com";
    • $TWiki::cfg{PROXY}{PORT} - proxy port, such as "8080";
    • $TWiki::cfg{PROXY}{SkipProxyForDomains} - domains excluded from proxy, such as "intra.example.com, bugs.example.com";

Style Sheets

The default HEADER and FORMAT settings use the following styles. See the style.css file defining the default CSS properties (indentation illustrates enclosure).

  • headlinesRss: output of the HeadlinesPlugin (div)
    • headlinesChannel: channel header (div)
      • headlinesLogo: channel logo (div)
      • headlinesTitle: channel title (div)
      • headlinesDate: channel date (div)
      • headlinesDescription: channel description (div)
      • headlinesRight: channel copyright (div)
    • headlinesArticle: one news item (div)
      • headlinesTitle: article title (div)
      • headlinesDate: article date (span)
      • headlinesCreator: author of article (span)
      • headlinesSubject: subect category of the article (span)
      • headlinesText: article text (div)

Plugin Installation Instructions

  • Download the ZIP file.
  • Unzip it in your twiki installation directory. Content:
    File: Description:
    data/TWiki/HeadlinesPlugin.txt plugin topic
    pub/TWiki/HeadlinesPlugin/style.css default css
    lib/TWiki/HeadlinesPlugin.pm plugin perl module
    lib/TWiki/HeadlinesPlugin/Core.pm plugin core
    Check if above examples show a news feed instead of variable.
  • Optionally, run HeadlinesPlugin_installer.pl to automatically check and install other TWiki modules that this module depends on. You can also do this step manually.
  • Alternatively, manually make sure the dependencies listed in the table below are resolved.
    NameVersionDescription
    Digest::MD5>=2.33Required. Download from CPAN:Digest::MD5
    LWP::UserAgent>=5.803Optional. Download from CPAN:LWP::UserAgent

Plugin Info

Plugin Author: TWiki:Main.PeterThoeny, TWiki:Main.MichaelDaum
Copyright: © 2002-2009, Peter Thoeny, TWIKI.NET; 2005-2007, Michael Daum http://wikiring.de
License: GPL (GNU General Public License)
Plugin Version: v2.3 - 29 Aug 2009
Change History:  
29 Aug 2009: added touch parameter -- Peter Thoeny
12 Feb 2009: {PROXY}{HOST} supports domain with and without protocol -- Peter Thoeny
06 Feb 2009: added {PROXY}{SkipProxyForDomains} configure setting, added USERAGENTNAME plugin setting -- Peter Thoeny
11 Dec 2008: added {PROXY}{HOST} and {PROXY}{PORT} configure settings -- Peter Thoeny
13 Sep 2007: fixed parsing of content:encoded
23 Jul 2006: improved atom parser; if a posting has no title default to 'Untitled'
26 Apr 2006: added lazy compilation
10 Feb 2006: packaged using the TWiki:Plugins/BuildContrib; minor fixes
03 Feb 2006: off-by-one: limit="n" returned n+1 articles; make FORMAT and HEADER format strings more robust
23 Jan 2006: released v2.00
05 Dec 2005: internal feed urls must be absolute
02 Dec 2005: added web.topic shorthand for internal feeds
29 Nov 2005: fixed CDATA handling
21 Nov 2005: added ATOM support; extended RSS support; added dublin core support; added content support; optionally using LWP to fetch feeds to follow redirections; corrected CPAN dependencies ; recoding special chars from html integer to entity encoding to increase browser compatibility; added css support; use getWorkArea() if available
11 May 2005: TWiki:Main.WillNorris: added DevelopBranch compatability
31 Oct 2004: Fixed taint issue by TWiki:Main.AdrianWeiler; small performance improvement
29 Oct 2004: Fixed issue of external caching if mod_perl or SpeedyCGI is used
02 Aug 2002: Implemented caching of feeds, thanks to TWiki:Main/RobDuarte
11 Jun 2002: Initial version (V1.000)
Perl Version: 5.8
TWiki:Plugins/Benchmark: GoodStyle 100%, FormattedSearch 99.5%, HeadlinesPlugin 94%
Plugin Home: TWiki:Plugins/HeadlinesPlugin
Feedback: TWiki:Plugins/HeadlinesPluginDev
Appraisal: TWiki:Plugins/HeadlinesPluginAppraisal

-- TWiki:Main.PeterThoeny - 29 Aug 2009

Log In, to register you need to be a member of the club and contact the webmaster.
Topic revision: r2 - 2009-08-29 - 21:55:14 - TWikiContributor
 

This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.HeadlinesPlugin