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,966
  • Latest: safir45
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 777
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 102
  • Total: 102

Recent Topics block - Way too big. (Firefox ONLY.)

Started by youngjoonshi, July 16, 2006, 06:19:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

youngjoonshi

So, another 'minor' issue that came up just a few weeks ago...my Recent Topics block is looking way too big (in normal text size), compared to the other bits:



This is only true for FireFox (both 1.5 and 2.0)...IE and Opera render it properly:



Also, (if that cannot be fixed), how would you put a center block down to the bottom and not the top? (like at the bottom of the index, not at the very top...)

Any help would be appreciated..

PS: Why is it always FireFox causing problems?? >:(

Nokonium

#1
I have some customised code you could use. I have added a spot like the User block and 'New' will display after the user name. All the text is given the smalltext style so that it matches the user block.

In TPortalBlocks.template.php find the code for the 'Recent Topics Block' and replace it with

// TPortal recent topics blockÃ,  Nokonium version
function TPortal_recentbox()
{
global $context, $settings, $options, $txt , $modSettings;
Ã,  Ã,  // is it a number?
if(!is_numeric($context['TPortal']['recentboxnum']))
$context['TPortal']['recentboxnum']='10';

// leave out the recycle board, if any
if(isset($modSettings['recycle_board']))
$bb=array($modSettings['recycle_board']);
else
$bb=array();

$what=ssi_recentTopics($num_recent = $context['TPortal']['recentboxnum'], $bb, $output_method = 'array');
// Output the topics
$counter=1; $cmax=count($what);
echo '
<div style="width: 100%; overflow: hidden;">';
foreach($what as $w){
echo '
<div style="white-space: nowrap;" class="smalltext">
<img src="'.$settings['images_url'].'/TPdivider.gif" alt="" />&nbsp;<a href="'.$w['href'].'">'.$w['short_subject'].'</a>
Ã,  Ã,  Ã,  Ã,  </div>';
Ã,  echo '<span class="smalltext">', $txt[525], ' <b>', $w['poster']['link'], '</b>';
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  if(!$w['new'])
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,   echo '<a href="'.$w['href'].'">&nbsp;<img border="0" src="'.$settings['images_url'].'/'.$context['user']['language'].'/new.gif" alt="new" /></a></span>';
echo '<span class="smalltext"><br /> ';

echo '['.$w['time'].']
</span>';

if($counter != $cmax)
echo '<hr />';
$counter++;
}
echo '
</div>';
}


PS it isn't FireFox causing the problems, it is IE. Both FF and Opera will both render  HTML code properly, however sometime back M$ decided they new better than to stick to  strict html and as a consequence trying to get code to render correctly in all browsers is problematic. IE7 will be better.

youngjoonshi


G6Cad

Clear cash and refresh and see it you still have the bigger text there

IchBin

It may also be one of the custom blocks you have. YOu can disable all blocks but the recent topics,(see if it works properly then) if so, then enable each block one by one to see which one is causing the issue.

iwyen

Quote from: YJ on July 16, 2006, 06:19:52 PM
Also, (if that cannot be fixed), how would you put a center block down to the bottom and not the top? (like at the bottom of the index, not at the very top...)

http://www.tinyportal.net/smf/index.php?topic=6088.msg49614#msg49614

This will move center block above the footer but everything in center block such as news or announcement type of blocks will be moved as well. Maybe bear with it and wait for the next release :P

Nokonium

When you have Kgadget open in Firefox, press control  and zero to reset Firefox to its normal text size.

youngjoonshi

Yeah, I tried that (clearing cooke&cache, restarting browser, setting text size to standard, disabling blocks) but it still just stays...:(

I will just wait for the next release..see what happens..

youngjoonshi

Figured out just now:

My Main Menu had it's text size to 2, which led to the Recent block having 2 as well...

But I need text 2 for the headings, so the sub headings don't look the same...any idea how to keep the recent topic block's text size the same?

EDIT Somehow fixed it by moving to the right hand side..

But I want it to be on the left hand side! :(

Assistance

I've noticed things changes differntly after moving them too
could it possibly be the cache featue on SMF in admins cp

maybe disable all blocks and put the current one where you want then see which one throws it out of wack

This website is proudly hosted on Crocweb Cloud Website Hosting.