ENTRIES
Welcome to Eric Cheng's online journal! You are not logged in. [ Log in ]
« Random coincidences make me happy :: index :: Happy Birthday, Livia! »

Wordpress viewlevel private entries problem

:: Monday, January 30th, 2006 @ 8:10:44 am

:: Tags:

Hey, guys. Private entries haven’t been showing up for the majority of registered users. I think I’ve fixed it. If you have an account, you should probably get into the habit of staying logged in. My install of Wordpress doesn’t (yet) put in private entry placeholders (which means that you won’t get notifications if you’re using RSS, either), but I’ll hack the plug-in at some point.

Also, the Wordpress database upgrade does something strange to users. It maps the old viewlevels to the new user roles, but imported viewlevel 0 users (Subscribers, in the new system) don’t get a proper viewlevel if old plug-ins ask for it.

For example, the plug-in I use at the moment still checks for users by viewlevel. All of my imported “Subscriber” users were not able to see my private posts, which are set to be accessible for users with viewlevel 0 or greater. I found that if I used the admin interface to change a user to a Contributor role and then back to Subscriber role, they could suddenly see viewlevel 0 posts.

So there is definitely a state change between imported users and newly created/edited users, even though the admin tool’s front end doesn’t show any difference. Unfortunately, I can’t access the database from my location at the moment, so I can’t dig deeper.

If you don’t care about any of this and just want a solution (assuming you’re one of the 3 people out there who still have to upgrade from b2, and have hacked your own viewlevel-based privacy hack into your install…), you can just set all of your users to Contributors and then back to Subscribers.

| Popularity: 2% | New York, NY | link | trackback | Jan 30, 2006 08:10:44

:: 6 comments (rss)

  1. posted by Chester on Mon, January 30, 2006 @ 1:29 pm

    I eagerly await the resolution to this so I can copy what you end up doing, precisely.

    While you’re at it, can you figure out a way to tie user accounts to registered-user-viewable member profiles? Thanks so much…

  2. posted by echeng on Mon, January 30, 2006 @ 7:39 pm

    Chester - i don’t see any easy way to view member profiles. If I had time, I would totally write a little hack or something. Have you tried posting in the Wordpress forums to see if anyone has something like that?

    As for the private post thing, I’ll do it as soon as I can and will send you the plug-in. :)

  3. posted by Chester on Wed, February 01, 2006 @ 10:05 am

    Naw, didn’t query the forums about that. Did ask a question regarding avatars, which was related, but don’t know of any way to do the profiles thing. Would be nice. I think I might end up just going back to writing profiles for everyone. Just need to figure out how to “hide” all the profile Pages (which would be linked off of an unhidden index Page).

    Still…user-modifiable and viewable profiles with avatars is what I’d really like.

  4. posted by echeng on Wed, February 01, 2006 @ 10:14 am

    Assuming viewlevel security applies to Wordpress pages, it should be easy to limit profile viewing to registered members.

    Also, it doesn’t look like it would be hard to add code to pull out profile information from Wordpress. It just has to be done. :)

  5. posted by echeng on Fri, February 17, 2006 @ 8:55 pm

    I have modified versions of the feed templates that detect for privacy, but I think it’s wrong way to go about things. It turns out that the viewlevel plugin already takes the privacy stuff into account — even in the feeds, so the proper thing to do is to modify the plugin to dump out private post placeholders instead of pretending the posts just aren’t there (when people without access try hit the feeds and content).

    The reason I was able to see the rss feeds when I hit my own feeds via the browser was that I was already are logged in.

  6. posted by echeng on Fri, February 17, 2006 @ 9:01 pm

    BUT — the comments rss was happily serving out comments on private posts. So at least my modified templates weren’t for nothing. ;)

:: leave a reply

Use: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

PHOTO FEED
RECENT MICROBLOG ACTIVITY
ARCHIVES
Journal Home
Where is Eric? (password)
Stuff for Sale
November 2008 (18)
October 2008 (27)
September 2008 (25)
August 2008 (34)
July 2008 (34)
June 2008 (32)
May 2008 (26)
April 2008 (15)
March 2008 (19)
February 2008 (31)
January 2008 (43)
December 2007 (33)
November 2007 (29)
October 2007 (29)
September 2007 (9)
August 2007 (19)
July 2007 (10)
June 2007 (17)
May 2007 (26)
April 2007 (38)
March 2007 (39)
February 2007 (13)
January 2007 (35)
December 2006 (35)
November 2006 (14)
October 2006 (6)
September 2006 (20)
August 2006 (24)
July 2006 (32)
June 2006 (17)
May 2006 (23)
April 2006 (16)
March 2006 (16)
February 2006 (26)
January 2006 (34)
December 2005 (17)
November 2005 (21)
October 2005 (18)
September 2005 (17)
August 2005 (5)
July 2005 (15)
June 2005 (20)
May 2005 (25)
April 2005 (7)
March 2005 (22)
February 2005 (20)
January 2005 (38)
December 2004 (6)
November 2004 (24)
October 2004 (16)
September 2004 (22)
August 2004 (12)
July 2004 (17)
June 2004 (15)
May 2004 (11)
April 2004 (35)
March 2004 (40)
February 2004 (29)
January 2004 (36)
December 2003 (20)
November 2003 (18)
October 2003 (10)
September 2003 (18)
August 2003 (10)
July 2003 (34)
June 2003 (12)
May 2003 (49)
April 2003 (42)
March 2003 (42)
February 2003 (15)
January 2003 (7)
December 2002 (17)
November 2002 (19)
October 2002 (24)
September 2002 (22)
August 2002 (20)
July 2002 (21)
June 2002 (14)
May 2002 (15)
April 2002 (11)
March 2002 (13)
February 2002 (20)
January 2002 (17)
December 2001 (16)
Even Older Journal
Travel Journals

VIENNA TENG
Support my friend and favorite singer-songwriter, Vienna Teng!

--- Next Show ---

Schedule coming soon.
[ discography ]

Eric Cheng's RSS Journal Journal RSS
Eric Cheng's RSS Journal Comments RSS

Rice Bowl Journals

proudly powered by wordpress
script exec time: 0.62s
i hate computers.