TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,245
  • Total Topics: 21,354
  • Online today: 565
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 206
  • Total: 207
  • @rjen

Block apperance

Started by Racenut, September 04, 2005, 04:58:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Racenut

Is there anyway to make the blocks pull the catbg of your forum rather than the titlebg?

borgBOB

The call for titlebg in blocks is found in TPortal.Template.php file.  Just edit it to reflect what you want.

bloc

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".

Racenut

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?

Racenut

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.

IchBin

The TPortalBlocks.template.php file should be located in the default theme folder.

This website is proudly hosted on Crocweb Cloud Website Hosting.