Welcome to Geeklog, Anonymous Sunday, November 24 2024 @ 10:10 am EST

Geeklog Forums

Static Pages Right blocks size hack


Status: offline

Creator

Forum User
Full Member
Registered: 07/11/02
Posts: 181
Location:Austin, TX
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.
L. Whitworth
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

Status: offline

Creator

Forum User
Full Member
Registered: 07/11/02
Posts: 181
Location:Austin, TX
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.
L. Whitworth
 Quote

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.
 Quote

All times are EST. The time is now 10:10 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content