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']; ?> |
What release of Atahualpa and WP?
Where did you put the code? What is the error you get? |
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/ |
Where did you put the code? exactly?
|
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" '; |
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.
|
Is it possible to insert this code into the header to the right of the logo image?
Thanks in advance |
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.