Recent Topics

1 Mar 30, 2008 07:44    

My b2evolution Version: 1.10.x

Upgraded from 2.4.0 to 2.4.1 and low and behold lost the links that are usually down the bottom of the page pointing to B2Evo, Evo Factory etc.

Originally the skin was one upgraded to 2.4.0 and contained the links within the

class="pageFooter"

Whereas I note that 2.4.0 changed the class to

class="baseline"

Is this perhaps the problem? Is pageFooter obsolete?

In 2.4.0 I was still having the problem that these links ended up under the sidebar if the posts exceeded the height of the side bar! Didn't have a chance to iron that out before the upgrade to the upgrade happened.

3 Mar 30, 2008 11:51

Thanks for the link through to the release notes.

I couldn't find the code though. Any ideas where that is?

Still would like to know the difference in pageFooter vs baseline too, if anyone knows.

4 Mar 30, 2008 12:52

If you look at the standard "custom" skin index.main.php you will note that the baseline is contained within the pageFooter.

This setup seems to vary depending on the skin you are using.

5 Apr 03, 2008 10:45

What I did to fix this problem was to borrow the style.css for the "footer" from one of the compatible style sheets and paste it into the bottom of my blog style.css:


#footer {
padding: 0;
margin: 0 auto;
width: 760px;
clear: both;
color: #999;
-webkit-text-size-adjust: none; /* iPhone */
}

#footer a {
	color: #999;
}

#footer p {
margin: 0;
padding: 5px 0;
text-align: center;
}

And then I changed the div parameters around the code in my blog index.main.php to:


<div id="footer">
<p class="baseline">

		CURRENT CODE RETAINED HERE

 </p>
</div>

Hope this helps someone else. :)

6 Apr 10, 2008 01:01

Making the footer stay at the bottom of the page was only the first hurdle!

The coding had to change as well.

The old skin had this at the bottom of the _main.php:
1


	<?php
		// Display additional credits (see /conf/_advanced.php):
 		// If you can add your own credits without removing the defaults, you'll be very cool :))
		// Please leave this at the bottom of the page to make sure your blog gets listed on b2evolution.net
		display_list( $credit_links, '<p class="baseline">'.T_('Credits').': ', '</p>', '|', ' ', ' ' );
		$Hit->log();	// log the hit on this page
		debug_info(); // output debug info if requested
	?>


and called the _advanced.php code:
2

$credit_links = array(
	array( 'http://b2evolution.net/', 'blog tool' ),
	array( 'http://evocore.net/', 'framework' ),
	array( 'http://b2evolution.net/about/recommended-hosting-lamp-best-choices.php', 'hosting' ),
);

The new index.main.php of the skin calls a _body_footer.inc.php instead and the code is a lot different in that.

So here is what is in the index.main.php
3

<?php
// ------------------------- BODY FOOTER INCLUDED HERE --------------------------
skin_include( '_body_footer.inc.php' );
// Note: You can customize the default BODY footer by copying the
// _body_footer.inc.php file into the current skin folder.
// ------------------------------- END OF FOOTER --------------------------------
?>

The relevant part of the _body_footer.inc.php that pertains to the credit links is:
4


		<?php
			// Display additional credits:
 			// If you can add your own credits without removing the defaults, you'll be very cool :))
			// Please leave this at the bottom of the page to make sure your blog gets listed on b2evolution.net
			credits( array(
					'list_start'  => T_('Credits').': ',
					'list_end'    => ' ',
					'separator'   => '|',
					'item_start'  => ' ',
					'item_end'    => ' ',
				) );
	?>

So if anyone else has a similar problem I would suggest replacing at the very least 1 with 4.

HTH :)

7 Apr 10, 2008 01:28

The thing about the classes is not a change in b2evolution. The classes are different from one skin to another. Please *always* specify which skin you are refering to.

I did change the code that displays credits in 2.4.1, but I don't think I broke any of the skins in doing that. Did I?

8 Apr 10, 2008 02:06

Now I feel inadequate in commenting that the skin I used based on Nifty Corners did not render the code for the credits (as of course this could be due to newbie error).

This is what no longer 'worked' (but did in 1.9.2):

display_list( $credit_links, '<p class="baseline">'.T_('Original <a href="http://b2evolution.net/"><img src="img/b2evolution_logo_80.gif" alt="B2Evo Engine"></a> template edited by XXXX. Credits').': ', '</p>', '|', ' ', ' ' );

But did (in 2.4.1) when changed to:

echo '<p class="baseline">Original <a href="http://b2evolution.net/"><img align="absbottom" src="../../rsc/img/b2evolution_logo_80.gif" alt="B2Evolution"></a> template edited by xxxx.</p>';

9 Apr 10, 2008 02:11

OK, I guess 2.4.1 expects every skin to have a call to credits() rather than display_list() .

So if you had a custom skin.. it just doesn't display until you replace display_list(...) with credits(...)

My mistake. Sorry.

10 Apr 10, 2008 03:50

Wow, that did it! Thanks again :)

I guess its simple when you know how!? ;)


Form is loading...