wp-people problem
-
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 screenfunction 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?
- The topic ‘wp-people problem’ is closed to new replies.