• Got past a prior problem (WP option “use hacks file” wasn’t set to True. Now it is) but have a new issue. I’m getting a parsing error flag on line 47. wp-people is the only hack.
    Here’s the opening code of my hack file…
    ==============
    <?php
    // WordPress People
    // When you run your text through this code it will link all recognized names
    // to a profile popup screen

    function peopleDefine($text) {
    global $wpdb;
    $names = $wpdb->get_results("SELECT people_ID, people_name, people_bio FROM wp_people");
    ?>
    <script language="JavaScript" type="text/javascript">
    <!--//
    function peoplePop(id){
    peopleURL = 'wp-people-popup.php?person=' + id;
    window.open (peopleURL, 'peopleWin', 'toolbar=no,location=no,menubar=no,status=no,scrollbars=yes,status=no,width=350,height=350');
    }
    ===========
    …and here’s the closing code…
    ===========
    ????????function debug($msg, $object = false) {
    ????????????????if ($this->debug) {
    ????????????????????????print '<div style="border: 1px solid red; padding: 0.5em; margin: 0.5em;">HttpClient Debug: '.$msg;
    ????????????????????????if ($object) {
    ????????????????????????????????ob_start();
    ????????????????????????????????print_r($object);
    ????????????????????????????????$content = htmlentities(ob_get_contents());
    ????????????????????????????????ob_end_clean();
    ????????????????????????????????print '<pre>'.$content.'</pre>';
    ????????????????????????}
    ????????????????????????print '</div>';
    ????????????????}
    ????????}??????
    }
    ?>

    ==========
    Does anything stand out as being wrong?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Okay, I guess I should have asked about the “use my-hacks” flag.
    First thing to check, make sure that the my-hacks page code is wrapped in the php tag <?php ?> .
    So after the code for wp-people, make sure there is a closing ?>.
    Also, make sure that there are no line returns or spaces before at the begining or end of the page.

    Thread Starter sportbiker

    (@sportbiker)

    beginning and end seem to be in order.
    Next thing?

    Well, you error is gone now. So, I don’t know what to tell you.
    Can you put a few more names in your database and updated your test post with those names. Also, use full names, instead of first names.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp-people problem’ is closed to new replies.