• Hi,

    I’m using this plug-in in my Atahualpa theme. After setting up Aadvertising Manager with the following ad banner code:
    <table align=”right”><tr><td>
    <script type=’text/javascript’>
    show_banners(‘top_ad’);</script>
    </td></tr></table>

    I get the following syntax error:
    Parse error: syntax error, unexpected $end in /home/fitatfiv/public_html/surenetonline/new_cycling/wp-content/themes/atahualpa/functions.php(478) : eval()’d code on line 28

    Your help with this is greatly appreciated.

    Chloe

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Chloe,

    Where did you get that banner code? It looks like a mix of HTML and PHP. I assume that this is the reason for the error.

    Cheers,
    Scott

    Thread Starter chloe2

    (@chloe2)

    Hi Scott,

    That’s JavaScript calling the program which is PHP(simple-banner-rotator). The code works fine in the header but I put it in a widget there. Perhaps Advertising Manager won’t work with the simple-banner code. I’d rather use a widget as I did for the header but I can’t get any information about where to add it in the post loop.
    This is the Atahualpa post loop:

    ***********************************
    <?php /* For SINGLE post pages if activated at ATO -> Next/Previous Navigation: */
    bfa_next_previous_post_links(‘Top’); ?>

    <?php /* Post Container starts here */

    if ( function_exists(‘post_class’) ) { ?>
    <div <?php if ( is_page() ) { post_class(‘post’); } else { post_class(“$odd_or_even”); } ?> id=”post-<?php the_ID(); ?>”>

    <?php } else { ?>
    <div class=”<?php echo ( is_page() ? ‘page ‘ : ” ) . $odd_or_even . ‘ post” id=”post-‘; the_ID(); ?>”>

    <?php bfa_post_kicker(‘<div class=”post-kicker”>’,'</div>’); ?>

    <?php bfa_post_headline(‘<div class=”post-headline”>’,'</div>’); ?>

    <?php bfa_post_byline(‘<div class=”post-byline”>’,'</div>’); ?>

    <?php bfa_post_bodycopy(‘<div class=”post-bodycopy clearfix”>’,'</div>’); ?>

    <?php bfa_post_pagination(‘<p class=”post-pagination”>‘.__(‘Pages:’,’atahualpa’).’‘,'</p>’); ?>

    <?php bfa_post_footer(‘<div class=”post-footer”>’,'</div>’); ?>

    </div><!– / Post –>

    ****************************************************
    Someone on a different forum on this site recommended Advertising Manager rather than messing with the loop code.

    Chloe

    Chloe2:

    I am releasing a BETA version of Advertising Manager displaying PHP code soon. The reason that it is beta is that by turning on and off the ‘PHP Enable’ button in the settings, the ad slightly shifts, which it should not do.

    However, apart from this, it works.

    Cheers,
    Scott

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Advertising Manager] Installed plug-in gives syntax error’ is closed to new replies.