MyBB Community Forums

Full Version: Cute off announcements on portal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I have a question, I have the portal page as homepage and there I have set to let see 5 post on the portal.

Now I there is made a large post the hole post is seen on the portal, but my question is. Is it possible to have on the portal the option that the half of the post is visible on the portal with the option "click here to read the hole post".

So I search for the option to cute off the hole post and see a little but of the post and do someone want to read the hole post he or she can click on "click here to read the hole post".

I hope averyone knows what I mean!!
Cool thanks, A question of this. is it possible to edit the plugin because now you need to set how many characters before the text is cut off and I want to made it to select how many words because now some post are cut of in a middel of the word and this is not nice. So is it possible to set it to how many words. Is this a little edit in the plugin or not..

Also the question, I have set the link (read more) as a image, is it possible to set the image (link) to a place in the post not after the text is cut so the button get a permanent place???

Thanks!!
Re cutting it off at word count, you would have to edit the plugin file.

As far as the link is concerned you can edit the portal announcement template.

<table cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>{$icon} <a href="{$mybb->settings['bburl']}/{$announcement['threadlink']}">{$announcement['subject']}</a></strong></td>
</tr>
<tr>
<td class="trow2" align="right">
<span class="smalltext">{$lang->posted_by} {$profilelink}  - {$anndate} {$anntime} {$numcomments}</span>
</td>
</tr>
<tr>
<td class="trow1">
<table border="0" cellpadding="{$theme['tablespace']}" width="100%">
	<tr>
		{$avatar}
		<td class="trow1">
			<p>
				{$message}
<br />
<br/>
<a href="{$mybb->settings['bburl']}/showthread.php?tid={$announcement['tid']}"><span class="smalltext"><em>Read More</em></span></a>
			</p>
			{$post['attachments']}
		</td>
	</tr>
	<tr>
		<td align="right" colspan="2" valign="bottom">
			<span class="smalltext">
				<a href="{$mybb->settings['bburl']}/printthread.php?tid={$announcement['tid']}"><img src="{$theme['imgdir']}/printable.gif" alt="{$lang->print_this_item}" title="{$lang->print_this_item}" /></a>&nbsp;<a href="{$mybb->settings['bburl']}/sendthread.php?tid={$announcement['tid']}"><img src="{$theme['imgdir']}/send.gif" alt="{$lang->send_to_friend}" title="{$lang->send_to_friend}" /></a>
			</span>
		</td>
	</tr>
</table>
</td>
</tr>
</table>
<br />

Instead of the read more text you can put an image there.
Thanks, but if I use the code I have 2 times the option on the portal.

Can u check the plugin how to move the read more option, and can u check if this is easy to edit the plugin for hole words??
In the plugin you can choose to have a dot dot dot or read more or something. I left that empty, then replaced it with my own read more link.

That is what the code above does.

Re the whole words - it is harder than you think because of bb codes etc. Maybe you should look for another plugin.
(2012-04-28, 08:10 AM)Leefish Wrote: [ -> ]In the plugin you can choose to have a dot dot dot or read more or something. I left that empty, then replaced it with my own read more link.

That is what the code above does.

Re the whole words - it is harder than you think because of bb codes etc. Maybe you should look for another plugin.

Thanks but if I disable the plugin and use your code the hole post is visible at the portal, and I want to have that you see a little bit of the post and do u want to read the hole topic you can klik on read more....

EDIT....
I have found how I want it haha, not with the hole words but how to cut off the pages and place the button.

Look at my portal Big Grin
http://www.galaxyfreaks.nl/

thanks and greatings!!