I have modified this plugin so that it will work with Polyglot (i.e. the original one does not). The modifications are marked between “Polyglot begins/endsâ€, just in case anybody interested.
function show_pop_posts() {
global $wpdb, $siteurl, $tableposts, $id;
$results = $wpdb->get_results("select postnumber, cntaccess from mostAccessed ORDER BY cntaccess DESC LIMIT 10");
echo "";
if ($results) {
foreach ($results as $result) {
// Polyglot begins
if (function_exists('lang_picker_respect_more')) {
$result->postnumber = lang_picker_respect_more($result->postnumber);
}
// Polyglot ends
echo 'postnumber).'">'.lang_picker_respect_more(get_the_title($result->postnumber)).' ('.$result->cntaccess.')';
}
}
echo "";
}
I have modified this plugin so that it will work with Polyglot (i.e. the original one does not). The modifications are marked between “Polyglot begins/endsâ€, just in case anybody interested.
function show_pop_posts() {
global $wpdb, $siteurl, $tableposts, $id;
$results = $wpdb->get_results("select postnumber, cntaccess from mostAccessed ORDER BY cntaccess DESC LIMIT 10");
echo "";
if ($results) {
foreach ($results as $result) {
// Polyglot begins
if (function_exists('lang_picker_respect_more')) {
$result->postnumber = lang_picker_respect_more($result->postnumber);
}
// Polyglot ends
echo 'postnumber).'">'.lang_picker_respect_more(get_the_title($result->postnumber)).' ('.$result->cntaccess.')';
}
}
echo "";
}
Just reporting a bug: the Top 10 posts also lists PRIVATE posts that you have made, though clicking on them results in a 404 error. Still, I’d prfer the private posts not show up at all on the list.
An avid fan of business, education, technology and finance. I lead a lean, highly focussed and capable team of Java Back End developers and Front End developers through a maze of complex software wizardry to fulfill the web maintenance needs of a large chemical manufacturer. As per Myers-Briggs Personality Types, I am an ESTJ. I pride in a project completed on time and according to plan. My hobbies include all kinds of technology, anything that I can taste and anything that goes fast or flies in the air. I like to read business books and comics in my spare time.
I have modified this plugin so that it will work with Polyglot (i.e. the original one does not). The modifications are marked between “Polyglot begins/endsâ€, just in case anybody interested.
function show_pop_posts() {
global $wpdb, $siteurl, $tableposts, $id;
$results = $wpdb->get_results("select postnumber, cntaccess from mostAccessed ORDER BY cntaccess DESC LIMIT 10");
echo "";
if ($results) {
foreach ($results as $result) {
// Polyglot begins
if (function_exists('lang_picker_respect_more')) {
$result->postnumber = lang_picker_respect_more($result->postnumber);
}
// Polyglot ends
echo 'postnumber).'">'.lang_picker_respect_more(get_the_title($result->postnumber)).' ('.$result->cntaccess.')';
}
}
echo "";
}
Just cut and paste the function into the Top10.php plugin. If you have problems, you can download the mod file here:
http://www.tzmartin.com/downlo.....top10.phps
(just rename the file and upload it to your ‘plugins’ folder.)
http://www.tzmartin.com/blog/files/
I have modified this plugin so that it will work with Polyglot (i.e. the original one does not). The modifications are marked between “Polyglot begins/endsâ€, just in case anybody interested.
function show_pop_posts() {
global $wpdb, $siteurl, $tableposts, $id;
$results = $wpdb->get_results("select postnumber, cntaccess from mostAccessed ORDER BY cntaccess DESC LIMIT 10");
echo "";
if ($results) {
foreach ($results as $result) {
// Polyglot begins
if (function_exists('lang_picker_respect_more')) {
$result->postnumber = lang_picker_respect_more($result->postnumber);
}
// Polyglot ends
echo 'postnumber).'">'.lang_picker_respect_more(get_the_title($result->postnumber)).' ('.$result->cntaccess.')';
}
}
echo "";
}
Just cut and paste the function into the Top10.php plugin. If you have problems, you can download the mod file here:
http://www.tzmartin.com/downlo.....top10.phps
(just rename the file and upload it to your ‘plugins’ folder.)
http://www.tzmartin.com/blog/files/
Just reporting a bug: the Top 10 posts also lists PRIVATE posts that you have made, though clicking on them results in a 404 error. Still, I’d prfer the private posts not show up at all on the list.
In WordPress 2.1 this plugin doesn’t count correctly