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 !!!


  #1  
Old Nov 6, 2009, 01:55 PM
charm9898
 
3 posts · Nov 2009
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.
  #2  
Old Nov 6, 2009, 02:19 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
if this is line658 you probably need a '$' before adsense_ad
HTML Code:
adsense_ad = '<div class="bfa-adsense">
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Nov 6, 2009, 02:33 PM
charm9898
 
3 posts · Nov 2009
Thanks for your help.

I am new to this code thing.

Now the entire website and dashboard are unable to open. How can I revise the code?

Thanks again.
  #4  
Old Nov 6, 2009, 02:47 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
copy a fresh copy of that module to the website via FTP that will back out your changes
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Nov 6, 2009, 03:08 PM
charm9898
 
3 posts · Nov 2009
thank you so much!!!

Let me give it a try....

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 02:41 PM
[SOLVED] WPMU/Buddypress theme error aahkendall Atahualpa 3 Wordpress theme 2 Jul 15, 2009 11:22 AM
Theme Options Menu Doesn't Work + error + spanish tranlation (Beta) ghenghiz Languages & Translations 6 Apr 4, 2009 08:36 PM
Broken Theme - Stylesheet is missing - Error upon initial upload rontorica Atahualpa 3 Wordpress theme 16 Mar 6, 2009 03:48 PM
Atahualpa 3.0 Theme Options > Page Menu Bar - Page Error on Save bseppa Atahualpa 3 Wordpress theme 9 Dec 12, 2008 06:35 PM


All times are GMT -6. The time now is 12:26 PM.


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