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:
[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.
This forum is not for support requests.
Only post Modifications for Board3 Portal 2.0.x in this forum.
Re: [Release] Random Post for B3P v2.0.0b1
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.
Otherwise nice module, thanks.
-
- Active Member
- Posts: 14
- Joined: 18. June 2011 08:03
Re: [Release] Random Post for B3P v2.0.0b1
+1Crocodile 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.
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"?
-
- 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
this is a great addition for a portal, very nice!!
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
SubSilver2 - randompost_center
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 secondsEnter here an ID of one topic, or IDs of several topics, separated by comma. 0 = show messages from all topics.
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}
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}
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/ membersgiardiniere 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"?
Re: [Release] Random Post for B3P v2.0.0b1
if anyone has figured out how to resize images?