Can anyone advise if there is a way to display the Recent News Block in a 2 column wide format?
CFodder, I have it in a vb site that I have using vbAdvanced CMPS. I did it using this code:I've been looking at that myself. I think I have a clumsy way of doing it, will let you know if I'm successful.
Would be so much easier if we could adjust the layout and also copy modules. I've asked about the former but have had no response I can remember yet.
<vb:if condition="$newscount % 2">
<table cellpadding="0" width="100%">
<tr>
<td valign="top" style="border:1px solid #e9e9e9;">
<vb:else />
<td valign="top" width="50%" style="border:1px solid #e9e9e9;">
</vb:if>
<h2 class="blockrow">
<a style="color:#930000;" href="{vb:raw vboptions.bburl}/{vb:link thread, {vb:raw news}}"><b><font size="3">{vb:raw news.title}</font></b></a><br />
<i><font size="1">{vb:raw news.dateposted} - {vb:rawphrase by_x, {vb:link member, {vb:raw news}, null, 'postuserid', 'postusername'}, {vb:raw news.postusername}}</font></i>
</h2>
<div class="blockrow">
<blockquote class="postcontent restore">{vb:raw news.message}</blockquote>
</div>
</td>
<vb:if condition="$newscount % 2 != 1">
</tr>
</table>
</vb:if>
Can someone advise how I would exclude Sticky Threads from the list of threads in the RecentThreads block?
$whereConditions = $this->getModelFromCache('XenForo_Model_Thread')->prepareThreadConditions($conditions, $fetchOptions);
$whereConditions .= ' AND thread.sticky != 1 ';
<iframe src="http://cache.www.gametracker.com/components/html0/?host=206.123.95.194:10005&bgColor=333333&fontColor=CCCCCC&titleBgColor=222222&titleColor=FF9900&borderColor=555555&linkColor=FFCC00&borderLinkColor=222222&showMap=0¤tPlayersHeight=160&showCurrPlayers=1&showTopPlayers=0&showBlogs=0&width=220" frameborder="0" scrolling="no" width="240" height="348"></iframe>
Thanks Boban, I will give it a try...Also, with your User Albums block for the portal, is there any way I can make that random instead of latest images?RecentThreads.php
Find:
PHP:$whereConditions = $this->getModelFromCache('XenForo_Model_Thread')->prepareThreadConditions($conditions, $fetchOptions);
Directly after add:
PHP:$whereConditions .= ' AND thread.sticky != 1 ';
...User Albums block for the portal, is there any way I can make that random instead of latest images?
ORDER BY RAND()
So is it possible to use the forum layout and still have rss work?
We use essential cookies to make this site work, and optional cookies to enhance your experience.