Page 1 of 1

[Release] Random Post for B3P v2.0.0b1

Posted: 25. April 2012 16:36
by Nekstati
Addon: Random Post
Addon Version: 1.0.0
Addon Author: Nekstati
Addon Description:
Displays a random post from defined topic (or several topics). Can be used e. g. to display a random quotations or random anecdotes.

Addon Requirements: Board3 Portal 2.0.0b1 and newer.
Download Link is here: http://www.phpbbguru.net/community/topic36557.html.
Note: Prosilver only.

Instructions:
1. Upload the module package via the ACP (ACP > MODS > Portal > Upload Module) or just upload the content of the ZIP file into the root of your forum.
2. Add new module into center, left or right column of the portal (ACP > MODS > Portal > Portal Modules).

Screenshots:

Image

Image

Re: [Release] Random Post for B3P v2.0.0b1

Posted: 3. May 2012 01:13
by Crocodile
Just a suggestion here. It would be more useful if we could pull posts from selected forums, also a link to the post only shows if the random post is shortened by the minimum text length, it would be better if the link was a constant.

Otherwise nice module, thanks.

Re: [Release] Random Post for B3P v2.0.0b1

Posted: 17. May 2012 07:57
by giardiniere
Crocodile wrote:Just a suggestion here. It would be more useful if we could pull posts from selected forums, also a link to the post only shows if the random post is shortened by the minimum text length, it would be better if the link was a constant.

Otherwise nice module, thanks.
+1

Great module. Thanks :) 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"?

Re: [Release] Random Post for B3P v2.0.0b1

Posted: 7. July 2012 18:25
by noth
this is a great addition for a portal, very nice!! :D
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} &raquo; {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} &raquo; {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 :D

Re: [Release] Random Post for B3P v2.0.0b1

Posted: 21. January 2013 01:17
by crustyz
if anyone has figured out how to resize images?
Image