1
I HAVE MY OWN XMSPOTLIGHT WITH 8 TOPICS!
www.counter-strike.es/images/news2.JPG
What I have done:
-Added as many times the code for xmspotlight_block_news.php (got it in previous posts)
-On template searched for the last repeating bunch of code like this:
Copyied and pasted just underneath.
*6 = your numbers!
Then change:
Copy them and change the numbers for the number you want. I did this to get my 8 topics.
And thats it! I'ts not perfect, as for example if there are no news in a topic the image will still show but I'ts ok for me and hope that for someone else too.
www.counter-strike.es/images/news2.JPG
What I have done:
-Added as many times the code for xmspotlight_block_news.php (got it in previous posts)
-On template searched for the last repeating bunch of code like this:
<tr>
<td style="width: 50%; padding: 2px; border: 1px solid #999999; background-color: #EEEEEE; font-weight: bold"><{$block.category3}></td><td style="width: 50%; padding: 2px; border: 1px solid #999999; background-color: #EEEEEE; font-weight: bold;"><{$block.category4}></td>
</tr>
<tr>
<td><img src="<{$block.imgpath3}>/<{$block.image3}>" align="left" style="margin: 8px;"><{foreach item=news4 from=$block.stories4}><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news4.storyid}>"><{$news4.newstitle}></a><br><br><{/foreach}></td>
<td><img src="<{$block.imgpath4}>/<{$block.image4}>" align="left" style="margin: 8px;"><{foreach item=news5 from=$block.stories5}><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news5.storyid}>"><{$news5.newstitle}></a><br><br><{/foreach}></td>
</tr>
Copyied and pasted just underneath.
*6 = your numbers!
Then change:
<tr>
<td style="width: 50%; padding: 2px; border: 1px solid #999999; background-color: #EEEEEE; font-weight: bold">[color=CC0000]Title[/color]</td><td style="width: 50%; padding: 2px; border: 1px solid #999999; background-color: #EEEEEE; font-weight: bold;">[color=CC0000]Title[/color]</td>
</tr>
<tr>
<td><img src="[color=CC0000]/modules/news/images/topics/topic.gif[/color]" align="left" style="margin: 8px;"><{foreach item=news[color=CC0000]6[/color] from=$block.stories[color=CC0000]6[/color]}><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news[color=CC0000]6[/color].storyid}>"><{$news[color=CC0000]6[/color].newstitle}></a><br><br><{/foreach}></td>
<td><img src="[color=CC0000]/modules/news/images/topics/topic.gif[/color]" align="left" style="margin: 8px;"><{foreach item=news[color=CC0000]7[/color] from=$block.stories[color=CC0000]7[/color]}><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news[color=CC0000]7[/color].storyid}>"><{$news[color=CC0000]7[/color].newstitle}></a><br><br><{/foreach}></td>
</tr>
Copy them and change the numbers for the number you want. I did this to get my 8 topics.
And thats it! I'ts not perfect, as for example if there are no news in a topic the image will still show but I'ts ok for me and hope that for someone else too.