ArticleTrader.com
  

 Main Menu

  Home
  Member Login
  Forum
  Submit Article
  RSS Feeds
  Contact Us
  About

 Services

  Article Distribution
  Link Building

 Tools

  ArticleMS
  Directory Tracker

 Categories

  Automotive
  Business
  Computers
  Entertainment
  Finance
  Food
  Health
  Home and Family
  Internet
  Legal
  Science
  Self Improvement
  Shopping
  Society
  Sports
  Technology
  Travel
  Writing





























 
Welcome! ( Login | Register )
» ArticleTrader Forums » ArticleMS » Support » Featured Articles
Members Search Help

Pages: << prev 1 next >>
Featured Articles, how to highlight them
This member is currently offline Anne Kirrin
Pool


Avatar

Member Level

Group: Moderators
Posts: 1,359
Joined: Apr 11, 2006

Go to the bottom of the page Go to the top of the page

How would I go about making the featured articles have a header like:
Quote:

Featured Articles For This Category

1. article
description, blah blah, blah blah

2. article
description, blah blah, blah blah

3. article
description, blah blah, blah blah

Latest Articles For This Category

1. article
description, blah blah, blah blah

2. article
description, blah blah, blah blah


Or putting "Featured" at the end of the article title:

Quote:
1. Article title here  Featured
Description of article, blah balf blag

2. Article title here  Featured
Description of article, blah balf blag

3. Article title here 
Description of article, blah balf blag

4. Article title here 
Description of article, blah balf blag
.........................
Anne Kirrin

ArticleMSSkins.net <<:::: New
Directory of Niche Article Sites <::::: Add your article site for free!!

Posted Nov 13, 2006, 6:38 pm
This member is currently offline nicksumrs
Droplet


Member Level

Group: Moderators
Posts: 129
Joined: Jul 11, 2006

Go to the bottom of the page Go to the top of the page

Hi

For the first option create a new featured articles block by copying the latest articles block. Change the title and in the php instead of "getArticles('','article_id DESC',5)" change it to "getArticles('article_featured_state=1','article_id DESC',5)".

For the second option in the latest articles block php make "getArticles('','article_id DESC',5)" into "getArticles('','article_featured_state DESC, article_id DESC',5)". This will put featured articles to the top of the list. Then in the html at the end of the article heading add {if $Article->featured==1}Featured{/if}. Obviously include any formatting for the word featured within the if.
.........................
Nick Summers

Style your ArticleMS site instantly with ArticleMS Skins

More Than Articles, The Right Article, Content Country, 4 Great Content, Content Cow

Posted Nov 14, 2006, 11:12 am
This member is currently offline Anne Kirrin
Pool


Avatar

Member Level

Group: Moderators
Posts: 1,359
Joined: Apr 11, 2006

Go to the bottom of the page Go to the top of the page

where do I put {if $Article->featured==1}Featured{/if} in the code below
Code:
<h2 class="title">Latest Articles</h3>
{section name=$this->i  loop=$this->articles}
<p>{$this->i|inc}: <a href='{$this->articles[$this->i]->url}'>{$this->articles[$this->i]->title}</a></p>
<div class="summary">
<p>{if $this->articles[$this->i]->summary}
{$this->articles[$this->i]->summary}
{else}
{$this->articles[$this->i]->text|@summary}
{/if}
</p>
</div>
<br>
{/section}

PHP:
$this->articles $this->getArticles('','article_featured_state DESC, article_id DESC',30);

function summary($s){
  return substr(strip_tags($s),0,200);
}
.........................
Anne Kirrin

ArticleMSSkins.net <<:::: New
Directory of Niche Article Sites <::::: Add your article site for free!!

Last edited Nov 15, 2006, 1:07 am by Anne Kirrin
Posted Nov 14, 2006, 2:58 pm
This member is currently offline yagami
Newbie


Member Level

Group: Members
Posts: 8
Joined: Today

Go to the bottom of the page Go to the top of the page

Thak you for the code, I tweaked it so it work for the ams 2.+0v.
But I have one problem.
It include the same article in the list of featured article and in the latest articles for the category.
How can I manage to have the article show only in one of the two places ?

Thanks

Posted Oct 22, 2009, 2:05 pm
This member is currently offline ca.demirandasilva
Newbie


Member Level

Group: Members
Posts: 1
Joined: Today

Go to the bottom of the page Go to the top of the page

Friends,

I´m a newbie here, but I think the correct form to put the HTML at the end of the heading is this:
{if $this->articles[$this->i]->featured_state==1}<span style="color: red; font-size: 16px;">Feature</span>{/if}

Anne Kirrin,
I just put it in "{$Blocks->latestarticles}", after
.
.
.
{$this->i|inc}: <a href='{$this->articles[$this->i]->url}'>{$this->articles[$this->i]->title}</a>
   
{if $this->articles[$this->i]->featured_state==1}<span style="color: red; font-size: 16px;"> Featured</span>{/if}
   
<div class="summary">
.
.
.
hope this helps...
Preview at: Publicar Artigos

Last edited Nov 1, 2009, 11:14 pm by ca.demirandasilva
Posted Nov 1, 2009, 11:12 pm
Pages:<< prev 1 next >>

Dec 4, 2009, 6:44 pm

  

0.0203s