SimplePortal

Support => English Support => Topic started by: SeeingBlue on August 07, 2015, 04:05:21 PM

Title: Moving Articles above Top Blocks
Post by: SeeingBlue on August 07, 2015, 04:05:21 PM
If you take a look at my site http://seeingblue.us you'll see that my articles are appearing below my Welcome block in the Top block category. Now articles doesn't have an associated block that I can move around. I've looked in the options and cannot find any way to get my articles move to the top, above the top blocks.

Any idea how I can do this?
Title: Re: Moving Articles above Top Blocks
Post by: [SiNaN] on August 07, 2015, 04:25:14 PM
You'll have to make some changes to the code if you want to do exactly that. Maybe you can move all the blocks in the top position to bottom position, so you won't have anything in the top position and the articles will appear at the top. If you still would like to make the code change, this should do it:

Themes/default/Portal.template.php

Code: (Find) [Select]
echo '
<td id="sp_center">';

if (!empty($context['SPortal']['blocks'][2]))
{
foreach ($context['SPortal']['blocks'][2] as $block)
template_block($block);

if (empty($context['SPortal']['on_portal']))
echo '
<br class="sp_side_clear" />';
}
}

function template_portal_below()
{
global $context, $modSettings;

if (!empty($context['SPortal']['blocks'][3]))
{
if (empty($context['SPortal']['on_portal']) || !empty($context['SPortal']['blocks'][2]) || !empty($modSettings['articleactive']))
echo '
<br class="sp_side_clear" />';

foreach ($context['SPortal']['blocks'][3] as $block)
template_block($block);
}

echo '
</td>';

Code: (Replace) [Select]
echo '
<td id="sp_center">';
}

function template_portal_below()
{
global $context, $modSettings;

if (empty($context['SPortal']['on_portal']) || !empty($modSettings['articleactive']))
echo '
<br class="sp_side_clear" />';

if (!empty($context['SPortal']['blocks'][2]))
{
foreach ($context['SPortal']['blocks'][2] as $block)
template_block($block);
}

if (!empty($context['SPortal']['blocks'][3]))
{
foreach ($context['SPortal']['blocks'][3] as $block)
template_block($block);
}

echo '
</td>';
Title: Re: Moving Articles above Top Blocks
Post by: DragoN_PT on September 01, 2015, 05:09:38 PM
Sorry for the dig but i was looking for a way to push mine to the "Bottom Blocks" and maybe one of you guys can help me out.? And if possible i would like to remove the topic icon from the articles in the portal (showing up just the topic title without the icon).
Title: Re: Moving Articles above Top Blocks
Post by: ♦ Ninja ZX-10RR ♦ on September 02, 2015, 02:06:54 AM
Possibly a screenshot of what you need and an URL would help ;)
SimplePortal 2.3.8 © 2008-2024, SimplePortal