1
Norman33
How to add to News module possiblity to add source of news
  • 2007/4/20 9:35

  • Norman33

  • Just popping in

  • Posts: 15

  • Since: 2007/4/13


Hi,

I'm looking for solution, how to add source of news at the same line like author and publish date, eg. "Reuters - Posted by Anon on 2007/4/20 12:05:10". And this "Reuters" is my problem, what i should to implement?

regards, Nom

2
christian
Re: How to add to News module possiblity to add source of news
  • 2007/4/20 10:35

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


Hi,

You can create a topic by source (sample with Reuters)

After, you edit the template news_item.html (look blue text) :
<table cellpadding="0" cellspacing="0" class="item">
<
tr>
    <
td>
        <
table cellpadding="0" cellspacing="0" width="98%">
        <
tr>
            <
td class="itemHead"><span class="itemTitle"><{$story.title}></span></td>
        </
tr>
        <
tr>
            <
td class="itemInfo"><{if $story.files_attached}><{$story.attached_link}>&nbsp;<{/if}>[b][color=0000CC]&nbsp;&nbsp;<{$story.topic_title}> -[/color][/b] <{if $story.poster != ''}><span class="itemPoster"><{$lang_postedby}> <{$story.poster}></span><{/if}> <span class="itemPostDate"><{$lang_on}> <{$story.posttime}></span> (<span class="itemStats"><{$story.hits}> <{$lang_reads}></span>) <{$news_by_the_same_author_link}></td>
        </
tr>
        <
tr>
            <
td><div class="itemBody"><{$story.imglink}><class="itemText"><{$story.text}></p></div></td>
        </
tr>
        <
tr>
            <
td class="itemFoot"><span class="itemAdminLink"><{$story.adminlink}></span><{if $rates}><b><{$lang_ratingc}></b> <{$story.rating}> (<{$story.votes}>) - <a href="<{$xoops_url}>/modules/news/ratenews.php?storyid=<{$story.id}>" rel="nofollow"><{$lang_ratethisnews}></a> - <{/if}><span class="itemPermaLink"><{$story.morelink}></span></td>
        </
tr>
        </
table>
    </
td>
</
tr>
</
table>

3
Norman33
Re: How to add to News module possiblity to add source of news
  • 2007/4/20 11:19

  • Norman33

  • Just popping in

  • Posts: 15

  • Since: 2007/4/13


>You can create a topic by source (sample with Reuters)

Unfortunately I hava categories, and this field is used to select news by category (You know category like sience, tech etc.)

any ideas?

regards, Nom

Login

Who's Online

110 user(s) are online (72 user(s) are browsing Support Forums)


Members: 0


Guests: 110


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits