Toggle Content

Donations

Donate with PayPal!
Help support Pro_News and become a member of our Sponsors Group
The tip jar is at PayPal, but does not require a PayPal account
Anonymous $ 10.00
macavity $ 115.00
RedGerry £ 50.00
Anonymous $ 10.00
minor $ 20.00

Recommended ISP

Stop Software Patents

stopsoftwarepatents.eu petition banner

Link this Site

http://layingback.net Check our QR links

Temperature Font Size in Newer Themes

Tweaks to Weather Harvest
Reply to topicReply to topic Printer Friendly Page

Temperature Font Size in Newer Themes

Post Posted: Thu Apr 19, 2007 9:35 pm

You may have noticed that the font size of the temperature value in the WeatherHarvest block has dropped back to normal text size. Reason is WeatherHarvest uses the now almost deprecated font number system (font-size=8). Problem is that many of the newer themes use px-based CSS font sizing for better control, and don't even bother to set the base font-size value, thus 8 doesn't relate to anything.

Here's the cure. In /modules/WeatherHarvest/d_config.php find around line 1,244:

PHP:
    $return_string .= sprintf( "<td align=\"$iconalign\"><font size=\"".$fontsize."\">%s</font>", $tempString );


and change it to:

PHP:
    $return_string .= sprintf( "<td align=\"$iconalign\"><span style=\"font-size:".$fontsize."px;font-weight:bold;\">%s</span>", $tempString );



Also to get the WeatherHarvest S, M, L font sizes back into their approximate original sizes, you will want to also find, around lines 677, 682, 686, these 3 lines:

PHP:
	  $fontsize = "8";

$fontsize = "10";

$fontsize = "12";


and bump them up to:

PHP:
	  $fontsize = "16";

$fontsize = "20";

$fontsize = "24";



Of course now that the size is px-based, you can set it to any font size you want.



layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3.39 - 2.2.12 / 4.4.7 - 5.1.37 / 5.3.0 / 9.2.1

layingback
Site Admin
Site Admin
 
Posts: 1229
Joined: Mar 18, 2006
Link  QR  Share this Printer Friendly Page  facebook   myspace   twitthis  
Show more ...
Display posts from previous:   
Reply to topicReply to topic Page 1 of 1

WeatherHarvest

Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

All times are GMT






layingback Non-Human Terms of Use