TinyPortal
Development => Support => Topic started by: Racenut on September 04, 2005, 04:58:04 PM
Is there anyway to make the blocks pull the catbg of your forum rather than the titlebg?
The call for titlebg in blocks is found in TPortal.Template.php file. Just edit it to reflect what you want.
Actually its in the TPortalBlocks.template.php. :) TPortal.tempalte is only for the articles/news, even frontblocks use TPortalBlocks.
Find :
echo '<div class="titlebg" style="padding: 4px; font-weight: bold;">', $block['title'], '</div>';
echo '<div', ($theme ? ' class="windowbg"' : ''), ' style="padding: 4px;">';
$func = 'TPortal_' . $block['type'];
if (function_exists($func))
$func();
else
echo doUBBC($block['body']);
And just change "titlebg" there to "catbg".
Quote from: Bloc on September 05, 2005, 11:09:32 AM
Actually its in the TPortalBlocks.template.php. :) TPortal.tempalte is only for the articles/news, even frontblocks use TPortalBlocks.
Find :
ÂÃ, Ã‚Ã, Ã‚Ã, Ã‚Ã, echo '<div class="titlebg" style="padding: 4px; font-weight: bold;">', $block['title'], '</div>';
ÂÃ, Ã‚Ã, echo '<div', ($theme ? ' class="windowbg"' : ''), ' style="padding: 4px;">';
ÂÃ, Ã‚Ã, $func = 'TPortal_' . $block['type'];
ÂÃ, Ã‚Ã, if (function_exists($func))
ÂÃ, Ã‚Ã, Ã‚Ã, Ã‚Ã, Ã‚Ã, Ã‚Ã, $func();
ÂÃ, Ã‚Ã, else
ÂÃ, Ã‚Ã, Ã‚Ã, Ã‚Ã, Ã‚Ã, echo doUBBC($block['body']);
And just change "titlebg" there to "catbg".
I tried the change. It didnt work. Could it be because i have an image as the titlebg or catbg rather than just a color?
ok, then let me ask this question. Where is the tportalblocks file supposed to be located? The one i tried that code on was in a folder called transfer.
The TPortalBlocks.template.php file should be located in the default theme folder.