Posted by topusers Sun 18th Mar 2007 21:04 - Syntax is PHP - 45 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
PHP parser reported the following syntax error in this post:
Parse error: syntax error, unexpected '<' in post on line 1
Parse error: syntax error, unexpected '<' in post on line 1
-
{#PLIGG_Visual_TopUsers_Statistics#}
-
-
{php}
-
global $db, $globals, $main_smarty, $offset, $from_where, $top_users_size, $items, $order_by, $select;
-
echo '
'; ';// Print headersfor($i=0; $i($items); $i++) { }$user = new User;$rows = $db->get_var("select count(*) as count $from_where $order_by");$users = $db->get_results("$select $from_where $order_by LIMIT $offset,$top_users_size");if ($users) {foreach($users as $dbuser) {$user->id=$dbuser->user_id;$user->read();$user->all_stats();$main_smarty->assign('user_userlink', getmyurl("user", $user->username));$main_smarty->assign('user_username', $user->username);$main_smarty->assign('user_total_links', $user->total_links);$main_smarty->assign('user_published_links', $user->published_links);if($user->total_links>0)$main_smarty->assign('user_published_links_percent', intval($user->published_links/$user->total_links*100));else$main_smarty->assign('user_published_links_percent', '');$main_smarty->assign('user_total_comments', $user->total_comments);$main_smarty->assign('user_total_votes', $user->total_votes);$main_smarty->assign('user_published_votes', $user->published_votes);if($user->total_votes>0)$main_smarty->assign('user_published_votes_percent', intval($user->published_votes/$user->total_votes*100));else$main_smarty->assign('user_published_votes_percent', '');$main_smarty->assign('user_karma', $user->karma);$main_smarty->assign('user_avatar', get_avatar('large', $user->username, $user->email));$main_smarty->display(The_Template . "/topusers_data.tpl");}}echo "
"; -
do_pages($rows, $top_users_size, "topusers"); // show the "page" buttons at the bottom
-
{/php}
PermaLink to this entry https://pastebin.co.uk/12008
Posted by topusers Sun 18th Mar 2007 21:04 - Syntax is PHP - 45 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
Comments: 0