Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

Error in PHP trying a header insert in logo


  #1  
Old Oct 20, 2009, 02:04 PM
rohaver's Avatar
rohaver
 
13 posts · Oct 2009
Western MA USA
Send a message via AIM to rohaver Send a message via Skype™ to rohaver
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'];
?>

Last edited by juggledad; Oct 21, 2009 at 12:43 PM.
  #2  
Old Oct 20, 2009, 02:55 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
What release of Atahualpa and WP?
Where did you put the code?
What is the error you get?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Oct 20, 2009, 09:43 PM
rohaver's Avatar
rohaver
 
13 posts · Oct 2009
Western MA USA
Send a message via AIM to rohaver Send a message via Skype™ to rohaver
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/
  #4  
Old Oct 21, 2009, 05:09 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Where did you put the code? exactly?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Oct 21, 2009, 12:30 PM
rohaver's Avatar
rohaver
 
13 posts · Oct 2009
Western MA USA
Send a message via AIM to rohaver Send a message via Skype™ to rohaver
I follow the instruction in the last post.
Just incase the picture didn't work it was line108 after $logo_area ='


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" ';
  #6  
Old Oct 21, 2009, 12:48 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Oct 21, 2009, 07:19 PM
rohaver's Avatar
rohaver
 
13 posts · Oct 2009
Western MA USA
Send a message via AIM to rohaver Send a message via Skype™ to rohaver
Is it possible to insert this code into the header to the right of the logo image?

Thanks in advance
  #8  
Old Oct 22, 2009, 07:44 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: syntax error, unexpected '<' in the functions.php file pingitt Atahualpa 3 Wordpress theme 6 Mar 12, 2013 04:52 AM
[SOLVED] why insert image into image header in place to the blogtitle (like a logo) ? gilles Header configuration & styling 1 Sep 5, 2009 05:14 AM
How to insert php code into Byline JakeThePeg Post-Kicker, -Byline & -Footer 1 Aug 27, 2009 07:16 PM
Trying to insert multiple clickable images above my Logo whatsmytruth Header configuration & styling 1 May 1, 2009 01:07 PM
"Fatal error: .../atahualpa/header.php on line 848" ??? Dem Header configuration & styling 5 Feb 19, 2009 07:06 AM


All times are GMT -6. The time now is 01:34 AM.


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