2 edb Sep 07, 2005 20:29

Open up skins/crystalglass/_main.php and find this chunk of code:
<!-- =================================== START OF MAIN AREA =================================== -->
<?php // --- START OF POSTS ---
if( isset($MainList) ) $MainList->display_if_empty(); // Display message if no post
if( isset($MainList) ) while( $Item = $MainList->get_item() ) {
// $MainList->date_if_changed(); ?>
<?php $Blog->disp( 'longdesc', 'htmlbody' ); ?>
Move the last line up before the 'Start of Posts' line like this:
<!-- =================================== START OF MAIN AREA =================================== -->
<?php $Blog->disp( 'longdesc', 'htmlbody' ); ?>
<?php // --- START OF POSTS ---
if( isset($MainList) ) $MainList->display_if_empty(); // Display message if no post
if( isset($MainList) ) while( $Item = $MainList->get_item() ) {
// $MainList->date_if_changed(); ?>
This is what I'm used to call a "D class bug" (a layout issue without feature misbehalf, if possible, it should be fixed before software release, but nobody will complain if it's not fixed!). It's a bug in the [url=http://skins.b2evolution.net/a.php?skin=crystalglass]Crystal Glass[/url] skin you use. In order to fix it, you have to edit the skins/crystalglass/_main.php file around lines 92-98. Change the following code:
<?php $Blog->disp( 'longdesc', 'htmlbody' ); ?>
<h2 class="pagetitle"><?php
single_cat_title();
single_month_title();
single_post_title();
arcdir_title();
last_comments_title();
stats_title();
profile_title();
?></h2>
<!-- =================================== START OF MAIN AREA =================================== -->
<?php // --- START OF POSTS ---
if( isset($MainList) ) $MainList->display_if_empty(); // Display message if no post
if( isset($MainList) ) while( $Item = $MainList->get_item() ) {
// $MainList->date_if_changed(); ?>
<?php $Blog->disp( 'longdesc', 'htmlbody' ); ?>
and move the above last line so it becomes the first one:
<?php $Blog->disp( 'longdesc', 'htmlbody' ); ?>
<h2 class="pagetitle"><?php
single_cat_title();
single_month_title();
single_post_title();
arcdir_title();
last_comments_title();
stats_title();
profile_title();
?></h2>
<!-- =================================== START OF MAIN AREA =================================== -->
<?php // --- START OF POSTS ---
if( isset($MainList) ) $MainList->display_if_empty(); // Display message if no post
if( isset($MainList) ) while( $Item = $MainList->get_item() ) {
// $MainList->date_if_changed(); ?>
That should fix the problem. Maybe somebody can update the skin available from this site?
Wow, three replies for the price of one.
That's awesome!... thanks so much!!!
You betcha! Somehow, somewhere in your skin's _main.php you've got
AFTER your
That is why it is showing up on top of each post. Lots of skins put the longdesc in the sidebar. I use it above the posts loop, meaning before the second php block I pasted here.
Tinker a bit and see if you can work it out. If not paste the RELAVENT section of your _main.php here and I'm sure someone will help you correct it. By relavent I mean (a) I don't know how to spell that word but it looks wrong to me, and (b) a handful of lines before and a few lines after the line with longdesc in it is all we'll need. Everything else just makes the thread really long and clutters things up a bunch. (Just trying to keep things tidy in here is all.)