Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   Strange behavior when editing bfa_header_config.php (http://forum.bytesforall.com/showthread.php?t=930)

jacoblo Mar 23, 2009 06:38 PM

Strange behavior when editing bfa_header_config.php
 
2 Attachment(s)
First of all thanks for a great theme and the wonderful customization options!

I have unfortunately run into a problem when editing the bfa_header_config.php and trying to include a twitter status.

I have followed the instructions given on the forum and I added the following below // End of title/description:

$logo_area .='<td rowspan="2" valign="middle" class="header-banner"><div id="jlotwit"><a href="http://twitter.com/jacoblo" title="Twitter - jacoblo" target="_blank"> ' . aktt_latest_tweet() . '</a></div></td>';

It pulls my last twitter, the jlotwit is shown but the actual text is completely misplaced. The strange is that if I don't use the aktt_latest_tweet function and just put in the phrase "test", it appears fine in the correct place. What am I doing wrong and how can I fix it?

The live example can be seen at www.jacoblo.se

// Jacob

Flynn Mar 23, 2009 09:03 PM

That function is outputting something right away but we need something that just provides content but doesn't print it. $logo_area is just collecting the content of the logo area, not printing it. You'd need to capture the output of aktt_latest_tweet() first

PHP Code:

ob_start(); aktt_latest_tweet(); $latest_tweet ob_get_contents(); ob_end_clean();
$logo_area .='<td rowspan="2" valign="middle" class="header-banner"><div id="jlotwit"><a href="http://twitter.com/jacoblo" title="Twitter - jacoblo" target="_blank"> ' $latest_tweet '</a></div></td>'


jacoblo Mar 24, 2009 04:45 AM

A little above my skill level, but it worked after copy-paste :) big thanks once again!


All times are GMT -6. The time now is 10:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.