NP_MostViewed 2.x

Post your new plugins here!
User avatar
admun
Nucleus Guru
Nucleus Guru
Posts: 4088
Joined: Mon Oct 20, 2003 2:57 am
Location: San Francisco, CA, USA
Contact:

Postby admun » Tue Mar 06, 2007 9:23 pm

DaBe wrote:How I can make that?

Please help.. :roll:

I think you might be able to hack NP_ShowBlogs to do that....
leka
Posts: 2
Joined: Mon Jun 01, 2009 11:00 am

Postby leka » Mon Jun 01, 2009 11:03 am

admun wrote:v2.4 is out, minor changes to the encoding so non-Ehglish work properly.

http://wakka.xiffy.nl/mostviewed


Nah... I have the latest plugin version, I set my blog's encoding to utf-8, and I can't display non-english characters using this plugin. My blog's address is http://www.suicideletters.net/ and the plugin output is in the sidebar, under the headline "Popularno".

Help anyone?

EDIT:
Instead of showing this:

Code: Select all

Vidovdanski Marš


The plugin outputs this:

Code: Select all

Vidovdanski Marš
leka
Posts: 2
Joined: Mon Jun 01, 2009 11:00 am

Postby leka » Tue Jun 09, 2009 9:54 am

Help anyone :?: :?: :?: :?:
fjavier
Posts: 92
Joined: Fri May 02, 2008 5:45 am

Draft items displaying

Postby fjavier » Sun Feb 13, 2011 9:25 pm

May I ask, is there any way to prevent from displaying items that have been put back to drafts in the list? as they will just result in error pages, thanks.
User avatar
ltoozcms
Posts: 178
Joined: Wed Sep 23, 2009 5:16 pm
Location: Fremont, CA
Contact:

How to display links item title in utf-8 characters?

Postby ltoozcms » Sun Jul 17, 2011 10:20 pm

Hello all,
I added Mostviewed plugin for my aunt's blog utf-8 (vietnamese), the links characters came out unreadable (Not UTF-8).
How do we edit the php file to display correct UTF-8?

Thanks,

Louis
being.well.is.being.passionate.n.productive.
dominiqr
Posts: 13
Joined: Thu Aug 09, 2007 5:43 pm

Re: How to display links item title in utf-8 characters?

Postby dominiqr » Tue Aug 16, 2011 2:15 pm

ltoozcms wrote: How do we edit the php file to display correct UTF-8?


Edit NP_MostViewed.php

and replate

Code: Select all

$outtemp = str_replace("%p", htmlentities($row['title']), $outtemp);


with

Code: Select all

$outtemp = str_replace("%p", htmlentities($row['title'], ENT_COMPAT, "UTF-8"),
User avatar
ltoozcms
Posts: 178
Joined: Wed Sep 23, 2009 5:16 pm
Location: Fremont, CA
Contact:

Postby ltoozcms » Tue Aug 16, 2011 7:03 pm

Thank you, it works beautifully
being.well.is.being.passionate.n.productive.

Return to “Plugin Development”