[Release] Random Post for B3P v2.0.0b1

Forum rules
This forum is not for support requests.

Only post Modifications for Board3 Portal 2.0.x in this forum.
Locked

Topic author
Nekstati
Active Member
Posts: 4
Joined: 20. January 2010 19:06
phpBB.com User: Nekstati

[Release] Random Post for B3P v2.0.0b1

Post 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

Crocodile
Active Member
Posts: 21
Joined: 8. April 2009 08:53
phpBB.com User: Crocodile442
Contact:

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

Post 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.

giardiniere
Active Member
Posts: 14
Joined: 18. June 2011 08:03

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

Post 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"?
User avatar

noth
Active Member
Posts: 29
Joined: 4. July 2012 12:58
phpBB.com User: noth
Location: das hund est sehr grossen
Contact:

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

Post 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

crustyz
Active Member
Posts: 1
Joined: 21. January 2013 00:55

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

Post by crustyz »

if anyone has figured out how to resize images?
Image
Locked

Return to “Released Modifications v2.0.x”