-
Website
http://fortes.com/ -
Original page
http://fortes.com/2007/02/post-levels-11/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
vektormedia
1 comment · 1 points
-
ZenemiG
1 comment · 1 points
-
Charbax
1 comment · 6 points
-
subikar
1 comment · 1 points
-
x11tech
8 comments · 1 points
-
-
Popular Threads
Are you planning on supporting Extended Live Archvies? http://www.sonsofskadi.net/extended-live-archive/
I use it with my K2 theme... Thanks!
thanks for your plugin , i was looking for elliot's one (subscribers only) but it seems that it doesn't work for wp 2.1 anymore and he took it down.Luckly i can use yours now.
The "Preview for Private Posts" feature in very good, i'd give you a tip :use the part before the "" as preview instead of the excerpt,this way you can use html code and insert images for example.
Hi and thanks again.
@Nick -- I investigated, and it looks like WordPress by default is adding the "Private: " independent of my setting. I've updated the plugin to fix this issue. Go ahead and re-download it and tell me if your problem is fixed.
@Jenna -- Can you be more specific? What isn't working? Do private posts not show up at all? Is the type of preview incorrect?
The post preview is only when you are not logged into the site, so make sure you've completely logged out of WordPress (or use a different browser or computer).
@Charlie: Could you also be more specific? Do they show up for you (the admin?), or for other logged in users? Or are they always hidden? Also, make sure that you've set a post level on the post (there is a drop down on the page where you write a post).
I selected "Title plus excerpt" under Post Preview. I created a new entry called "New Entry" and set the Post Level to 3. Then I hit Publish.
When I click over (still logged in) to make sure the entry is published, I see it says "Moderated: New Entry" and my post body is visible.
Then I signed out of WordPress and clicked back over. The moderated post disappears and I get the last unmoderated post at the top. That post is duplicated seven times. The next one is duplicated two times. The third and subsequent are only duplicated once.
I also clicked over into IE to test it. Same results.
Note: This is a fresh installation of WP 2.1 and I only have two plugins installed; this one and UTW 3.14. I deactivated UTW for the time being to make sure that it was not causing a problem.
WordPress database error: [Lost connection to MySQL server during query]
SELECT * FROM eclx_attached_files_meta WHERE post_id = 2961 ORDER BY file_name ASC
When I deactive Post Levels 1.1, it goes away. (But so do post levels.)
Think it's a plugin conflict? Maybe the Page Restriction Plugin? (I'm scared to fiddle since some of the code for that one is hardcoded into the template or something.)
Take care, and thanks very much for the wonderful update!
- Could you make sure you have the latest version of the plugin (I updated it a couple of days after this post) -- go ahead and re-download it to see if it fixes the issue
- What do you mean by a "Moderated" post? Is that a private one?
- When you saw seven duplicate copies of the same post -- were you logged in?
- For that post with seven copies, how many tags does it have?
Thanks!
Thanks
Thanks for the help.
Sorry for the bad news and so on.
You probably have some SQL that was already joining on the postmeta table to filter out private posts. This functionality is now built into the plugin, so the LEFT JOIN is being performed twice on execution of the query (hence the ambiguity of any wp-postmeta table references).
As an example, here is my SQL for displaying recent comments (note that I no longer have to worry about post levels):
SELECT {$wpdb-comments}.comment_ID, {$wpdb-comments}.comment_author, {$wpdb-comments}.comment_date, {$wpdb-posts}.id, {$wpdb-posts}.post_title
FROM {$wpdb-comments}, {$wpdb-posts}
WHERE {$wpdb-comments}.comment_post_ID = {$wpdb-posts}.id AND
{$wpdb-comments}.comment_approved='1' AND
{$wpdb-comments}.comment_type != 'pingback' AND
{$wpdb-posts}.post_status = 'publish'
ORDER BY comment_ID DESC LIMIT 5
IMPORTANT NOTE: Make sure that when you write the table name " {$wpdb-posts} " in the FROM clause you ALWAYS put a space on BOTH sides!! This bug will probably go away in future versions, but for now it's critical if you want to see the private comments.
Really ill be so happy if this would be solved in the future! Again thanks for your plugin..
*************************************************
WordPress database error: [Not unique table/alias: 'wp_postmeta']
SELECT post_id, meta_value FROM wp_postmeta, (wp_posts LEFT JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id) WHERE post_id = ID AND meta_key = 'links_to' AND (post_status = 'static' OR (wp_posts.post_status = 'publish' OR (wp_posts.post_status = 'private' AND (wp_postmeta.meta_key = 'post_level' AND wp_postmeta.meta_value
Sorry, but you are looking for something that isn't here" page. Anyway have the plugin direct the non-registered user to page that says "must be logged in to view this post/page?" Thank you for your time and for creating this plugin!
Take care.
select restricted from wp_posts where ID=" so forget or delete the above.