Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Atahualpa theme error. Help please !!! (http://forum.bytesforall.com/showthread.php?t=4251)

charm9898 Nov 6, 2009 12:55 PM

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.

juggledad Nov 6, 2009 01:19 PM

if this is line658 you probably need a '$' before adsense_ad
HTML Code:

adsense_ad = '<div class="bfa-adsense">

charm9898 Nov 6, 2009 01:33 PM

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.

juggledad Nov 6, 2009 01:47 PM

copy a fresh copy of that module to the website via FTP that will back out your changes

charm9898 Nov 6, 2009 02:08 PM

thank you so much!!!

Let me give it a try....


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

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