41
Addons / Re: [ADDON] SimplePortal
Last post by Spuds -Quote from: Burke Knight –Code: [Select]class Recent_Ex_Block extends SP_Abstract_Block
Code: (find) [Select]
// We'll need the utility functions from here.
require_once(SUBSDIR . '/PortalAdmin.subs.php');
require_once(SUBSDIR . '/Portal.subs.php');
Code: (replace) [Select]
// We'll need the utility functions from here.
require_once(SUBSDIR . '/PortalAdmin.subs.php');
require_once(SUBSDIR . '/Portal.subs.php');
require_once(SUBSDIR . '/spblocks/SPAbstractBlock.class.php');
Quote from: Burke Knight – Board News Block...
Code: (find) [Select]
// Output all the details we have foundand just add a div to the start of that like
foreach ($data['news'] as $news)
{
$attachment = $news['attachment'];
echo '
<h3 class="category_header">' . (empty($modSettings['messageIcons_enable'])
Code: (replace) [Select]
// Output all the details we have foundI used the class well (that is roundframe), but content, or forumpost or ... whatever you want would work fine. Also be sure to close that new div at the end of the function, so it looks like:
foreach ($data['news'] as $news)
{
$attachment = $news['attachment'];
echo '
<div class="well">
<h3 class="category_header">' . (empty($modSettings['messageIcons_enable'])
Code: (replace) [Select]
echo $news['body'], '
</div>
<div class="submitbutton">', $news['link'], ' ', $news['new_comment'], '</div>
</div>
</div>
</div>';