1
stinkbug
insert image into news "Scoop"
  • 2006/2/17 11:38

  • stinkbug

  • Just popping in

  • Posts: 27

  • Since: 2005/4/4 2


Hi, Is there a way to insert an image (from either the image manager or with straight HTML) into the "Scoop" section of the News module article? I'm running News 1.3.1, and would like custom images to appear in front of each news item which is shown in a block on my home page.

Currently, it only allows for an image to be shown in the spolight feature, and the module removes that image once I update my news section.

Here is the code for the news_block_top.html:

<ul id="tabNavigation">
<{foreach item=onetab from=$block.tabs}>
<{if $block.current_tab == $onetab.id}>

<li class="selectedTab"><a href='#'><{$onetab.title}></a></li>
<{else}>

<li><a href="<{$block.url}>NewsTab=<{$onetab.id}>"><{$onetab.title}></a></li>
<{/if}>
<{/foreach}>

<li class="fixTabsIE"><a href="javascript:void(0);">&nbsp;</a></li>
</ul>

<{if $block.current_is_spotlight}>
<div style="border-top: 1px solid rgb(0, 0, 0); background: <{$block.color1}> none repeat scroll 0%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"><{$block.spotlight.author}> <{$block.lang_on}> <{$block.spotlight.date}> <{if $block.use_rating}> - <{$block.spotlight.rating}>/10 (<{$block.spotlight.number_votes}>)<{/if}>, <{$block.spotlight.hits}> <{$block.lang_reads}><br /></div>
<{else}>
<div style="border-top: 1px solid rgb(0, 0, 0); background: <{$block.color1}> none repeat scroll 0%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;">
<{foreach item=onesummary from=$block.smallheader}>
<{$onesummary}>&nbsp;
<{/foreach}>
<br /></div>
<{/if}>
<div id="fullSupport"> <{if $block.current_is_spotlight && $block.tabs.id==0}>
<table border=0>
<tr>
<td colspan='2'> <table border=0>
<tr>
<td><img src='<{$block.spotlight.topic_image}>' border=0></td>
<td align='left'><{$block.spotlight.topic_description}></td>
</tr>
</table>
<div class="itemBody"><{$block.spotlight.title_with_link}></div></td>
</tr>
<tr>
<td><{$block.spotlight.image}>&nbsp;</td>
<td><p class="note"><{$block.spotlight.text}></p></td>
</tr>
</table>
<br />
<center>
<hr width='85%'>
</center>
<ul>
<{foreach item=onenews from=$block.spotlight.news}>
</ul>
</div>
<div id="fullSupport"><{$onenews.date}> - <{$onenews.title_with_link}></div>
<div>
<ul>
<{/foreach}>
</ul>
<{else}>
<table border=0>
<tr>
<td><img src='<{$block.topic_image}>' border=0></td>
<td align='left'><{$block.topic_description}></td>
</tr>
</table>
<{foreach item=onenews from=$block.news}> </div>
<div>
<div class="itemBody"><{$onenews.title}></div>
</div>
<div>
<div class="itemBody"><span class="itemStats">&nbsp;&nbsp;<{$onenews.author}>
<{$block.lang_on}> <{$onenews.date}> - <{if $block.use_rating}> <{$onenews.rating}>/10
(<{$onenews.number_votes}>)<{/if}>, <{$onenews.hits}> <{$block.lang_reads}></span></div>
<p class="note"><{$onenews.text}></p>
<{/foreach}> <{/if}> </div>
<{else}>
<table>
<{if $block.spotlight}>
<tr>
<td><table>
<tr>
<td colspan=2>
<table border=0>
<tr><td><img src='<{$block.spotlight.topic_image}>' border=0></td><td align='left'><{$block.spotlight.topic_description}></td></tr>
</table>
<font color="#FF6600"><b><{$block.spotlight.title}></b></font> <{$block.spotlight.author}>
<{if $block.sort=='counter'}>
(<{$block.spotlight.hits}>)
<{elseif $block.sort=='published'}>
(<{$block.spotlight.date}>)
<{else}>
(<{$block.spotlight.rating}>)
<{/if}>
</td>
</tr>
<tr>
<td><{$block.spotlight.image}></td><td><{$block.spotlight.text}></td>
</tr>
<tr>

<td colspan=2> <{if $block.spotlight.read_more}> <a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$block.spotlight.id}>"><{$block.lang_read_more}></a>
&nbsp;&nbsp;&nbsp;
<hr width='98%'>
<{/if}>
</td>
</tr>
</table></td>
</tr>
<{/if}>

<tr>
<td> <ul>
<{foreach item=news from=$block.stories}> <{if $news.id != $block.spotlight.id}>
</ul>
<p><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news.id}>" <{$news.infotips}>><strong><{$news.title}></strong></a>
- <{if $block.sort=='counter'}> [<{$news.hits}>] <{elseif $block.sort=='published'}>
[<{$news.date}>] <{else}> [<{$news.rating}>] <{/if}> <br />
<{$news.teaser}></p>
<ul>
<{/if}> <{/foreach}> </ul></td>
</tr>
</table>

Login

Who's Online

182 user(s) are online (104 user(s) are browsing Support Forums)


Members: 0


Guests: 182


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