xoops forums

altenergy

Just popping in
Posted on: 2008/1/5 15:20
altenergy
altenergy (Show more)
Just popping in
Posts: 44
Since: 2007/7/17
#1

What module xoops.org uses for...

What module xoops.org uses for News spotlights?...

phppp

XOOPS Contributor
Posted on: 2008/1/5 15:21
phppp
phppp (Show more)
XOOPS Contributor
Posts: 2857
Since: 2004/1/25
#2

Re: What module xoops.org uses for...

A modified news block.
Modified news_block_top.html:

<{if $block.displayview==2}>
<{
includeq file="db:news_block_top_tab.html"}>
<{else}>
<
table>
    <
tr>
    <{if 
$block.spotlight}>
        <
td style="width: 60%;">
            <
div style="padding: 2px;">
                <
h2 style="padding: 1px;" class="itemTitle"><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$block.spotlight.id}>" title="<{$block.spotlight.title}>"><{$block.spotlight.title}></a></h2>
                <{
$block.spotlight.author}>
            <{if 
$block.sort=='counter'}>
                (<{
$block.spotlight.hits}>)
            <{elseif 
$block.sort=='published'}>
                (<{
$block.spotlight.date}>)
            <{else}>
                (<{
$block.spotlight.rating}>)
            <{/if}>
                <
div style="margin-top: 5px; padding: 5px 2px;">
                <{
$block.spotlight.image}>
                <{
$block.spotlight.text}>
                </
div>
            </
div>
        </
td>
    <{/if}>
        <
td style="vertical-align: top;">
            <
div style="padding-top: 10px;">
            <
ul style="line-height: 150%; list-style-position: outside;">
                <{foreach 
item=news from=$block.stories}>
                    <{if 
$news.id != $block.spotlight.id}>
                        <
li>
                        <
em style=" font-size: 1.2em; font-style: normal;"><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news.id}>" <{$news.infotips}> title="<{$news.title}>"><{$news.title}></a></em> &nbsp;&nbsp;
                        <{if 
$block.sort=='counter'}>
                            <{
$news.hits}>
                        <{elseif 
$block.sort=='published'}>
                            <{
$news.date}>
                        <{else}>
                            <{
$news.rating}>
                        <{/if}>
                        <{if 
$news.teaser}>                        
                         <
br /><{$news.teaser}>
                        <{/if}>
                        </
li>
                    <{/if}>
                <{/foreach}>
            </
ul>
            </
div>
        </
td>
    </
tr>
</
table>
<{/if}>

script_fu

Friend of XOOPS
Posted on: 2008/1/5 16:12
script_fu
script_fu (Show more)
Friend of XOOPS
Posts: 1494
Since: 2002/12/27
#3

Re: What module xoops.org uses for...

Nice contrib... Ty

altenergy

Just popping in
Posted on: 2008/1/5 16:51
altenergy
altenergy (Show more)
Just popping in
Posts: 44
Since: 2007/7/17
#4

Re: What module xoops.org uses for...

Thanks!(:

Can the News module Team consider this block in the next news module version?

phppp

XOOPS Contributor
Posted on: 2008/1/5 16:55
phppp
phppp (Show more)
XOOPS Contributor
Posts: 2857
Since: 2004/1/25
#5

Re: What module xoops.org uses for...

I believe they will review all possible options.
The news module team is currently busy, they may get time after mid January.