this is a great addition for a portal, very nice!!
Enter here an ID of one topic, or IDs of several topics, separated by comma. 0 = show messages from all topics.
does using 0 place a great load onto the forums? when I insert 0 the response takes 5 - 10 seconds to load the portal, sometimes 20 seconds! without 0 it takes 1 or 2 seconds
0 seems to place a huge ton of resources looking for topics or something, it slows the portal down to slow motion, 0 setting NOT RECOMMENDED
SubSilver2 - randompost_side
Code: Select all
{$LR_BLOCK_H_L}{$TITLE}{$LR_BLOCK_H_R}
<table class="tablebg" cellspacing="1" width="100%">
<tr>
<td class="row1" rowspan="2" align="center" valign="middle">
<!-- IF S_RNDP_NO_POSTS -->
{L_NO_MESSAGES}
<!-- ELSE -->
<!-- IF RNDP_AUTHOR --><p class="author" style="margin: 0 0 0.6em 0"><a href="{U_RNDP_POST}"><img src="{T_IMAGESET_PATH}/icon_post_target.gif" alt="" title="{L_POST}" /></a> {RNDP_AUTHOR} » {RNDP_TIME}</p><!-- ENDIF -->
<div class="content" style="white-space: normal !important; word-wrap: break-word !important">{RNDP_TEXT}</div>
<hr style="clear: both" />
<form style="clear: both" action="{U_RNDP_NEXT}" method="post"><fieldset><!-- IF RNDP_STRIPPED --><a href="{U_RNDP_POST}">{L_RNDP_FULL}</a><!-- ENDIF --><input type="submit" class="button2" name="" value="{L_NEXT}" style="float: right" /></fieldset></form>
<!-- ENDIF -->
</td>
</tr>
</table>
{$LR_BLOCK_F_L}{$LR_BLOCK_F_R}
SubSilver2 - randompost_center
Code: Select all
{$C_BLOCK_H_L}{$TITLE}{$C_BLOCK_H_R}
<table class="tablebg" cellspacing="1" width="100%">
<tr>
<td class="row1" valign="middle">
<!-- IF S_RNDP_NO_POSTS -->
{L_NO_MESSAGES}
<!-- ELSE -->
<!-- IF RNDP_AUTHOR --><p class="author"><a href="{U_RNDP_POST}"><img src="{T_IMAGESET_PATH}/icon_post_target.gif" alt="" title="{L_POST}" /></a> {RNDP_AUTHOR} » {RNDP_TIME}</p><!-- ENDIF -->
<div class="content"><span style="font-size:medium;">{RNDP_TEXT}</span></div>
<hr style="clear: both" />
<form style="clear: both" action="{U_RNDP_NEXT}" method="post"><fieldset><!-- IF RNDP_STRIPPED --><a href="{U_RNDP_POST}">{L_RNDP_FULL}</a><!-- ENDIF --><input type="submit" class="button2" name="" value="{L_NEXT}" style="float: right" /></fieldset></form>
<!-- ENDIF -->
</td>
</tr>
</table>
{$C_BLOCK_F_L}{$C_BLOCK_F_R}
giardiniere wrote: I've tried to put two blocks (on the right side and on the center) but the random posts shown are the same. Is it possible to have differents random posts?
And what about "Random topic"?
I think random post is better than Random Topic, much better but giardiniere does have a point, being able to have "Random Posts" maybe 1 either side of the centre, on top of that ..... being able to have "Random Member" maybe 1 either side of the centre but as giardiniere has alluded, it's no good if the block is just a duplicate, the content needs to display different posts/ members