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)
-   -   Error in PHP trying a header insert in logo (http://forum.bytesforall.com/showthread.php?t=3985)

rohaver Oct 20, 2009 01:04 PM

Error in PHP trying a header insert in logo
 
http://forum.bytesforall.com/showthr...=9204#post9204 has great info. But I have a PHP to insert. I can't get it to line up with the logo. I want to put it the right of the logo. I get an error everything I just try to insert it. I have tried to remove the php tag and it dosen't work. help. Thank in advance
<?php
//<!--/* OpenX Local Mode Tag v2.6.3 */-->

define('MAX_PATH', 'path/path/openx');
if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) {
if (!isset($phpAds_context)) {
$phpAds_context = array();
}
$phpAds_raw = view_local('', 1, 0, 0, '', '', '0', $phpAds_context, '');
}
echo $phpAds_raw['html'];
?>

juggledad Oct 20, 2009 01:55 PM

What release of Atahualpa and WP?
Where did you put the code?
What is the error you get?

rohaver Oct 20, 2009 08:43 PM

wp 2.8.4 atahualpa 3.4.4

Parse error: syntax error, unexpected T_STRING in /var/customers/webs/lenox/new/wp-content/themes/atahualpa/functions/bfa_header_config.php on line 114

I tried it with and without the <?php ?>

I would like the adds to show up to the right of the logo.

This is what it looks like now.

http://lenox.org/new/

juggledad Oct 21, 2009 04:09 AM

Where did you put the code? exactly?

rohaver Oct 21, 2009 11:30 AM

I follow the instruction in the last post.
Just incase the picture didn't work it was line108 after $logo_area ='
http://lenox.org/new/wp-content/them...mages/code.png

line 105 // Logo Area
if ( strpos($header_items,'%logo') !== FALSE ) {

$logo_area = '<td rowspan="2" valign="middle" class="header-banner">
<?php
//<!--/* OpenX Local Mode Tag v2.6.3 */-->

// The MAX_PATH below should point to the base of your OpenX installation
define('MAX_PATH', '/var/customers/webs/lenox/openx');
if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) {
if (!isset($phpAds_context)) {
$phpAds_context = array();
}
// function view_local($what, $zoneid=0, $campaignid=0, $bannerid=0, $target='', $source='', $withtext='', $context='', $charset='')
$phpAds_raw = view_local('', 1, 0, 0, '', '', '0', $phpAds_context, '');
}
echo $phpAds_raw['html'];
?><td>

<table id="logoarea" cellpadding="0" cellspacing="0" border="0" width="100%"><tr>';

if ( $bfa_ata['show_search_box'] == "Yes" AND ($bfa_ata['show_posts_icon'] == "Yes" OR
$bfa_ata['show_email_icon'] == "Yes" OR $bfa_ata['show_comments_icon'] == "Yes") ) {
$header_rowspan = 'rowspan="2" ';

juggledad Oct 21, 2009 11:48 AM

the prior post (http://forum.bytesforall.com/showthr...=9204#post9204) was made in Feburary. The changes specified in bfa_header_config.php aplied to a different release of Atahualpa (looks like 332 or 333) and that area of code was changed in 3.4.x. this is part of the problem.

rohaver Oct 21, 2009 06:19 PM

Is it possible to insert this code into the header to the right of the logo image?

Thanks in advance

juggledad Oct 22, 2009 06:44 AM

Sure, you will need to edit bfa_header_config.php, find the logo code. you could try making another table cell and putting the code in that.


All times are GMT -6. The time now is 04:59 PM.

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