Author Topic: Make the [size] attribute use CSS instead of <font>  (Read 717 times)

0 Members and 1 Guest are viewing this topic.

Offline ccbtimewiz

  • Dreamer
  • Guru
  • *
  • Posts: 1304
  • Karma: 2100
  • Gender: Male
  • $info->close();
    • Dream Portal
  • SMF Version: SMF 2.0 RC4
Make the [size] attribute use CSS instead of <font>
« on: June 16, 2009, 03:00:11 PM »
All SMF versions.

Open ./Sources/Subs.php

Find:
:
array(
'tag' => 'size',
'type' => 'unparsed_equals',
'test' => '[1-9]\]',
'before' => '<font size="$1" class="bbc_size">',
'after' => '</font>',
),

Replace with:
:
array(
'tag' => 'size',
'type' => 'unparsed_equals',
'test' => '[1-9]\]',
'before' => '<span style="font-size: $1" class="bbc_size">',
'after' => '</span>',
),
« Last Edit: June 16, 2009, 08:09:19 PM by bigguy »

Offline tyty1234

  • V.I.P.
  • *
  • Posts: 823
  • Karma: 1109
  • Gender: Male
    • tytyweb
  • SMF Version: 2.0.2
Re: Make the [size] attribute use CSS instead of <font>
« Reply #1 on: June 16, 2009, 07:36:11 PM »
Just a side note that this will work in all versions before 2.0 RC2 in both 1.0 series and 2.0 series. ;)

Offline ccbtimewiz

  • Dreamer
  • Guru
  • *
  • Posts: 1304
  • Karma: 2100
  • Gender: Male
  • $info->close();
    • Dream Portal
  • SMF Version: SMF 2.0 RC4
Re: Make the [size] attribute use CSS instead of <font>
« Reply #2 on: June 16, 2009, 09:42:21 PM »
Yes, hence the "All SMF versions." at the top of the post.

Offline H

  • New Member
  • *
  • Posts: 43
  • Karma: 332
  • Gender: Male
  • SMF Version: SVN
Re: Make the [size] attribute use CSS instead of <font>
« Reply #3 on: June 17, 2009, 04:24:46 PM »
This is something that will be fixed as of RC2 as this is something that is required when we have a semantic XHTML theme
Huw
Former SMF Support Team Leader