PDA


View Full Version : Change font size in "Today's Birthdays"


ncangler
12-03-2005, 12:06 AM
Can someone tell me where I can change the font style/size used in posting the usernames in the "Today's Birthdays" CMPS module? The font for member names is much larger than other modules on my site.

http://www.Triumphowners.net

Thanks for any help.
Randy

Brian
12-03-2005, 05:09 PM
The easiest way would probably be to look in your modules/birthdays.php file for this code:
$home["$mods[modid]"]['content'] = iif($birthdays, str_replace(array('member.php', ','), array($vbulletin->options['bburl'] . '/member.php', '<br />'), $birthdays), $vbphrase['none']);


And replace it with this:
$home["$mods[modid]"]['content'] = '<span class="smallfont">' . iif($birthdays, str_replace(array('member.php', ','), array($vbulletin->options['bburl'] . '/member.php', '<br />'), $birthdays), $vbphrase['none']) . '</span>';

ncangler
12-03-2005, 09:34 PM
That worked perfectly! Thanks Brian.

ConqSoft
12-03-2005, 10:02 PM
I had been meaning to do this to mine too and kept forgetting.

Thanks!

ncangler
12-04-2005, 10:26 PM
Would a similar change take care of the "Quick Moderation" module font size? Thanks.

Brian
12-05-2005, 01:52 AM
Yes, it should.

simsim
12-05-2005, 06:15 AM
How would I change the module's title font & size? (i.e. the "Today's Birthdays" itself).

ncangler
11-06-2006, 06:45 AM
This doesn't seem to work with vb 3.6.2 and CMPS 2.2.1. I added the smallfont code and get a parse error now. Brian is there a way to make all the module font sizes the same so we don't have to make edits like this? In the meantime any help on code change to make the font smaller with the current version is most appreciated. :)

Brian
11-06-2006, 03:46 PM
The code should still be pretty similar. Try using this:

$home["$mods[modid]"]['content'] = '<span class="smallfont">' . iif($birthdays, str_replace(array('member.php', ','), array($vbulletin->options['bburl'] . '/member.php', '<br />'), $birthdays), $vbphrase['none']) . '</span>';

ncangler
11-06-2006, 03:59 PM
You truly ROCK Brian. That did it. The only other module that has a larger font now is the Quick Moderation one. If you know what to adjust in that one please let me know. Thank you!