Posted on: 08/29/02 02:55pm
By: Creator
Using both right and left blocks with static pages v1.1 doesn't really size your right blocks right. In my opinion, the size really should be retrieved from the theme, but for the time being you can go to the following lines found in /path/to/geeklog/public_html/staticpages/index.php where:
if ($A['sp_format'] == 'allblocks' && $U['noboxes'] != 1) {
$retval .= '<td valign="top" width="140">' . LB;
$retval .= COM_showBlocks('right',$topic);
$retval .= '<br><img src="' . $_CONF['site_url'] . '/images/speck.gif" width="140" height="1">' . LB;
Notice the TD width? Adjust it to the correct size to fit your layout and you'll have a much neater output. Oh and don't forget to adjust the size for the img speck.gif to match the TD.
Static Pages Right blocks size hack
Posted on: 08/29/02 03:44pm
By: Dirk
I assume this is for Phill's static pages plugin? The one that comes with 1.3.6rc1 should already use the correct size.
bye, Dirk
Static Pages Right blocks size hack
Posted on: 08/29/02 05:24pm
By: Creator
But as I noticed, some themes use different right/left block sizes so it's my opinion that it should retrieve the value from the themes and not be hard-coded into the plug-in. My 2 cents, for what's it worth.
By the way
Posted on: 08/29/02 09:02pm
By: Anonymous (Anonymous)
These widths were originally 180 pixels, which is probably the standard width for the XSilver and some of the older themes. For gameserver, however, and OS_Commerce and Monkey Business among others that I do not know about, the widths are different.
I like an uniform look, hence the little teak to index.php.