Interspire Product Knowledge Base

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Export to PDF

User Opinions (8 votes)

75% thumbs up 25% thumbs down

How would you rate this answer?



Thank you for rating this answer.

How can I have author pictures displayed in Featured Articles and not Recent Article or in the categories?

The best way would be to set Enable Author Pictures to On in the settings page, then take out the display code for it in the panels where you don't want them to be displayed.. So, for Recent articles, open up /templates/{your template}/Panels/RecentArticlesPanel.php and find this code:

$output .= sprintf("

    </span>
    <div class=\"Details\">%s <a href='%s'>%s</a>
        | %s %s
        | %s | <span class='RatingDisplay'>%s</span>
    </div>
    <div class=\"Content\">
    <table cellspacing=0 cellpadding=0><tr><td valign=top>
        %s
        </td><td valign=top class=content>
        %s
    </td></tr></table>
    </div>
    <div class=\"SmallLinks\">

", $GLOBALS["AL_LANG"]["hpBy"], AL_HELPER::AuthorLink($articleRow["AuthorID"], $author), $author, $GLOBALS["AL_LANG"]["hpPublished"], AL_HELPER::GetRelativeDate($articleRow["SD"]), AL_HELPER::GetCategoryListCVS($articleRow["ArticleID"]), AL_HELPER::GetRatingBar($articleRow["ArticleID"]), AL_HELPER::GetAuthorPic($articleRow["AuthorID"]), $articleRow["Summary"]);



We need to take out two bits here, the placeholder and variable to fill it. So in the HTML section we are going to take out the one in the first cell of this table:

<table cellspacing=0 cellpadding=0><tr><td valign=top>
        %s
        </td><td valign=top class=content>
        %s
    </td></tr></table>


So it will be like:

<table cellspacing=0 cellpadding=0><tr><td valign=top>
        
        </td><td valign=top class=content>
        %s
    </td></tr></table>


Or you could take the whole cell out, like:

<table cellspacing=0 cellpadding=0><tr><td valign=top class=content>
        %s
    </td></tr></table>


Then we need to remove: AL_HELPER::GetAuthorPic($articleRow["AuthorID"]), (make sure you take out one comma with it).

The result would be:

$output .= sprintf("

    </span>
    <div class=\"Details\">%s <a href='%s'>%s</a>
        | %s %s
        | %s | <span class='RatingDisplay'>%s</span>
    </div>
    <div class=\"Content\">
    <table cellspacing=0 cellpadding=0><tr><td valign=top class=content>
        %s
    </td></tr></table>
    </div>
    <div class=\"SmallLinks\">

", $GLOBALS["AL_LANG"]["hpBy"], AL_HELPER::AuthorLink($articleRow["AuthorID"], $author), $author, $GLOBALS["AL_LANG"]["hpPublished"], AL_HELPER::GetRelativeDate($articleRow["SD"]), AL_HELPER::GetCategoryListCVS($articleRow["ArticleID"]), AL_HELPER::GetRatingBar($articleRow["ArticleID"]), $articleRow["Summary"]);


Then for the categories, just repeat the process in ViewCategoryAdvancedPanel.php (should be the same code).

If you get stuck or have any troubles with this guide, send in a trouble ticket via your client area.


Related Articles

No related articles were found.

Attachments

No attachments were found.

Powered by Interspire Knowledge Manager - World's #1 Best Selling FAQ and Knowledge Base Software