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 »

Atahualpa theme error. Help please !!!


 
Prev Previous Post   Next Post Next
  #1  
Old Nov 6, 2009, 12:55 PM
charm9898
 
3 posts · Nov 2009
Exclamation Atahualpa theme error. Help please !!!

I followed the thread on Adding AdSense to content http://forum.bytesforall.com/showthread.php?t=431

after i added the code you recommended At the bottom of /atahualpa/functions.php add the following code

<?php
function bfa_add_adsense($post_body_content) {
adsense_ad = '<div class="bfa-adsense">
PUT ( i substitute my adsense code)
YOUR
WHOLE
ADSENSE
CODE
HERE
</div>';
if ( is_single() ) {
if (strpos($post_body_content,'%adsense%')!==FALSE) {
$post_body_content = str_replace('%adsense%', $adsense_ad, $post_body_content);
} else {
$post_body_content = $adsense_ad . $post_body_content;
}
}
return $post_body_content;
}
add_filter('the_content', 'bfa_add_adsense');
?>

This is what I got. My blog & wordpress dashboard disappeared. Here is the error message:

Parse error: syntax error, unexpected '=' in /home/evename/public_html/wp-content/themes/atahualpa.3.4.4/atahualpa/functions.php on line 658


Please help.

Thank you.
 

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fatal Error Line 63 theme.php maguai Atahualpa 3 Wordpress theme 2 Aug 23, 2009 01:41 PM
[SOLVED] WPMU/Buddypress theme error aahkendall Atahualpa 3 Wordpress theme 2 Jul 15, 2009 10:22 AM
Theme Options Menu Doesn't Work + error + spanish tranlation (Beta) ghenghiz Languages & Translations 6 Apr 4, 2009 07:36 PM
Broken Theme - Stylesheet is missing - Error upon initial upload rontorica Atahualpa 3 Wordpress theme 16 Mar 6, 2009 02:48 PM
Atahualpa 3.0 Theme Options > Page Menu Bar - Page Error on Save bseppa Atahualpa 3 Wordpress theme 9 Dec 12, 2008 05:35 PM


All times are GMT -6. The time now is 05:21 AM.


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