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:

Business Opportunities Weblog

Write

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

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

Tue, 17 Oct 2017 12:18:06 +0000
The original blog about business opportunities and business ideas for small business entrepreneurs
Tue, 17 Oct 2017 02:38:04 +0000 Bizop Team

4 SEO Mistakes You Don’t Have to Make

Ryan Stewart’s new SEO office in San Francisco is teaching people about the importance of SEO. However, it is not the only SEO office that is doing so.

For the uninitiated, SEO stands for “search engine optimization,” and it refers to practices that help you make the most of the search algorithms that allow users to find your website.

Content marketing has reached a milestone, thanks to the evolution of SEO. With more than 2 trillion Google searches happening every year, SEO is needed now more than ever so that your website can rank better on the search engine results pages, or SERPs.

Most website owners understand these concepts. However, despite the fact that they are applying SEO basics on their websites, their rankings don't always improve. In fact, they continue to lose traffic on a daily basis. There's only one reason behind it. They are making mistakes when they apply their understanding of SEO techniques.

If you want to find your website at the top spot on the search engines, you need to make sure that you follow proper SEO guidelines and avoid making the same mistakes.

 

RELATED ARTICLE: AFFORDABLE MARKETING STRATEGIES FOR YOUR ONLINE BUSINESS

 

4 SEO Mistakes to Avoid

Here is a quick guide to some common mistakes that website owners make with regard to SEO. Are you making these mistakes? If so, correct them now and get more traffic.

 

1. Not Including Relevant and Internal and External Links

An article with no links in it fails to promote engagement. When your goal is to captivate a larger audience, you must create ways for users to get more valuable information from your website. Here's where internal and external links can help.

If yours is simply a review-providing website, then you can place links to manufacturers’ websites so that visitors can learn more about the companies behind the products you review. Make it easy for people to gain more information about those products. Similarly, you can link out to other websites that are relevant to the article.

 

SEO - 2

 

On the other hand, internal linking encourages your website’s visitors to spend more time on your site. This, too, is a good SEO tactic.

 

2. Choosing One Word as a Keyword

In the old days when SEO wasn't that big of a deal, website owners used single-word keywords. Surprisingly, this tactic worked like a charm. Now, however, there is far more traffic. As a matter of fact, more than 40,000 searches are conducted on Google every single second of every single day.  In this heady milieu, one-word keywords just aren’t enough. They won't get you traffic like they used to.

 

SEO - 3 300w" sizes="(max-width: 700px) 100vw, 700px" />

 

With the increase in competition among websites and businesses, you need to think of longer keywords. Phrases would be even better. For instance, if you have chosen a keyword for an article to be “Iphone X,” you can change that to “features of Iphone X.” Longer keywords, often referred to as “long tail keywords,” bring more traffic from search engines than do shorter keywords. And that’s why all of your articles should have long tail keywords.

 

3. Discounting Dated Content

Content is king. We have all heard this phrase. What it means is that we need to continuously come up with new content if we wish to bring in new audience members and retain our position on search engines. However, old content can be of help as well.

According to reports, changing old content by adding images and updating it can result in a 111% bump in organic traffic. What’s more, this strategy will probably cost you less than coming up with new content on a continuous basis.

Pick your old content strategically and start making changes to it. Then republish it to increase engagement on your site.

 

 

4. Forgetting Mobile Users

According to W3Tech stats, 40% of people use a smartphone to make Google searches every day. Therefore, don’t neglect mobile users. If you do, you’ll end up with less traffic, and it could also affect your SEO ranking. This is because Google considers mobile-friendliness a key factor in how it ranks websites.

 

Conclusion

SEO is a complex field, and it is common for people to make mistakes. However, you don’t have to make the same mistakes everyone else is making. Use what you’ve learned here to be aware of SEO mistakes to avoid. Then correct these issues on your website and start seeing great results.

The post 4 SEO Mistakes You Don’t Have to Make appeared first on Business Opportunities.

Mon, 16 Oct 2017 08:31:53 +0000 Bizop Team

Should Your Small Business File Bankruptcy?

If cash flow is low and you're struggling to make ends meet, you've probably considered bankruptcy. Although the notion sounds scary and like it might spell the end for your small business, that's not always the case. Understanding the fundamentals of bankruptcy and knowing how and when to file for your small business can help you through a difficult time. As a matter of fact, it can get you back on the road to success.

 

Bankruptcy Basics

At its most basic level, bankruptcy helps you gain control of your finances when your assets and business earnings are not enough to cover your debts. According to Indiana attorney Rowdy G. Williams, it can be a good way to eliminate unsecured debts, including credit card debts or business loans. It cannot be used for other legally obligated debts, such as child support or tax debts.

''Some types of bankruptcy may also eliminate liens on your property,'' Williams explains. ''Liens are creditors’ rights to take portions of your property to repay a debt. However, bankruptcy can't always eliminate all these liens, so creditors may still be able to take some of your property before the debt is wiped clean.''

In other words, bankruptcy isn't always a cure-all move. However, it can be a way to significantly lighten the load.

 

RELATED ARTICLE: 5 THINGS SMALL BUSINESS OWNERS SHOULD CONSIDER BEFORE APPLYING FOR LOANS

 

When to Consider Declaring Bankruptcy

Bankruptcy is an option for debt-laden enterprises, but it may not always be the right one. As a small business, it's sometimes best to simply reorganize funds and assets to accommodate the debt.

If personal assets are not at risk, then there's often no need to file. You can simply close the doors and walk away without risk to your personal credit. However, organizing your business as a corporation, LLC, or other limited-liability entity won't always protect your personal assets.

''Businesses that operate as sole proprietorships or partnerships expose their personal assets to greater risks,'' explains an article from the Intuit Small Business Blog. ''But even when you've set up a limited-liability structure for your company, your personal assets may still be in jeopardy, depending on how you run your business.''

Too often, business owners fail to properly separate their personal assets from their businesses, and the courts won't confirm the separation. The business owner will be liable for company debts, and bankruptcy will be one of the only options.

 

 

Types of Business Bankruptcy

There are three types of business bankruptcy in the US. If your business is not in the US, consult with legal experts for the specifics that affect businesses where you are.

The type that matches your needs largely depends on your business structure. Sole proprietors in the US, such as small businesses, may file for Chapter 7, Chapter 11, or Chapter 13.

 

Chapter 7

This is best for when a business will entirely liquidate its assets and won't continue. An example of this is when the business is run by a single owner or is based on the owner's skills. They will not be able to reorganize, so the bankruptcy will simply absolve them of their financial obligations.

 

Chapter 11

If the business has a future, this is a better option. The company will file a plan of reorganization with the court and their creditors. If approved, your business will follow a payment plan over a certain time period. The business will be allowed to continue as long as the plan is approved and the company can keep up with its payments. Getting approval is very difficult, and many businesses don't succeed with their filings. As such, it's the least common type of bankruptcy for small businesses.

 

Chapter 13

Usually, Chapter 13 is reserved for consumers, but sole proprietorships may also use this option. It also involves applying for a repayment plan with the court so that your business may be allowed to continue. Chapter 13 bankruptcy can be a good option for sole proprietors who have their personal assets mixed in with their business assets. It protects them from losing their home, vehicle, or other personal assets.

 

How Bankruptcy Will Affect Your Business

As mentioned previously, filing for Chapter 7 bankruptcy means that your business will have to shut down. Unfortunately, the business owner may not escape unscathed in a sole proprietorship structure. It can also affect your personal credit. This can make it difficult for you to open future businesses or take out loans.

It's a little different if the business is a partnership. ''The bankruptcy does not automatically touch the assets of any of the other partners initially,'' explains an article from Kabbage. ''The trustee will have to sue to liquidate any assets that the remaining partners have.''

With both Chapter 11 and Chapter 13 filings, your business can continue. However, it will make filing taxes and making payments more difficult. You'll want to consider having an accountant and bankruptcy attorney on retainer to help with the more complicated paperwork.

Bankruptcy may leave a mark on your business, but it doesn't mean things are over. It can be the solution to overcoming financial burdens and creating a firmer pathway to success.

The post Should Your Small Business File Bankruptcy? 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