MyBB Community Forums

Full Version: [Resolved]How To: Portal Posts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How to put news forums on the portal?
How to remove avatars pictures from the guy who posted on the portal?
How to put a like [Read More] so news are little more small on portal?

Thanks in advance Wink
ACP > Configuration > Portal Settings > Forum ID to pull announcements from

ACP > Templates & Style > Templates > **expand template set** > Portal Templates > portal_announcement > find and remove:

{$avatar}

That might not 100% work, but see how it looks...
Ok, lets see...
Is working, thanks!
Thanks MattR..
and for [Read more..]? Smile
(2008-12-30, 04:45 AM)FBI Wrote: [ -> ]Thanks MattR..
and for [Read more..]? Smile

Waiting for it too...Undecided
That'll require a bit more coding I think and I'm not sure how to do it Toungue
I dont know how to coding in PHP.. It just limiting mysql post retrieve. Need to make a different class?
(2008-12-30, 10:28 AM)MattR Wrote: [ -> ]That'll require a bit more coding I think and I'm not sure how to do it Toungue

I used this Plugin that added [Read More...] but it was for MyBB 1.2, also i don't see it anymore on the mods database.
In portal.php, find:
$announcement['message'] = $posts[$announcement['tid']]['message'];
Replace with:
if(strlen($announcement['message']) > 100)
{
    $announcement['message'] = substr($posts[$announcement['tid']]['message'], 0, 100);
    $announcement['message'] .= "\n\nRead more: ".get_thread_link($announcement['tid']);
}
else
{
    $announcement['message'] = $posts[$announcement['tid']]['message'];
}
Ok, thanks for the code, lets see how it works...
Pages: 1 2