1
altenergy
What module xoops.org uses for...
  • 2008/1/5 15:20

  • altenergy

  • Just popping in

  • Posts: 44

  • Since: 2007/7/17


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

2
phppp
Re: What module xoops.org uses for...
  • 2008/1/5 15:21

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


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}>

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

Nice contrib... Ty

4
altenergy
Re: What module xoops.org uses for...
  • 2008/1/5 16:51

  • altenergy

  • Just popping in

  • Posts: 44

  • Since: 2007/7/17


Thanks!(:

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

5
phppp
Re: What module xoops.org uses for...
  • 2008/1/5 16:55

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


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

Login

Who's Online

323 user(s) are online (272 user(s) are browsing Support Forums)


Members: 0


Guests: 323


more...

Donat-O-Meter

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

Latest GitHub Commits