Community Page
- fortes.com/ Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- Salut, I would like to know if you have a solution to remove also "tag/" and "page/" from permalinks. Merci !
- Hi Firstly, thanks for the plugin. It (generally) works fine. Just a small issue that I have found. I run this plugin, as well as the flickr plugin (http://tantannoodles.com/toolkit/photo-album/),...
- Hello! I had the same problem like Leo and many others. Just use /%category%/%page%/%postname%/
- I have solved the sub categories problem just enter /%category%/%category%/%postname%/ on the permalinks and it works fine
- I am also getting the above problem, but only on sub categories? Is this something to do with my wordpress setup?
Jump to original thread »
Comments are closed for this post.
Post Levels 1.1.1 is a bugfix release that will (hopefully) get rid of some of the problems people have been seeing with the .
Download
Post Levels 1.1.1
New Features
Use the post teaser as the preview: You can now show the post teaser as the preview for non-logged in users. ()% ... Continue reading »
Download
Post Levels 1.1.1
New Features
Use the post teaser as the preview: You can now show the post teaser as the preview for non-logged in users. ()% ... Continue reading »
2 years ago
2 years ago
2 years ago
2 years ago
<li>Open <tt>srg_clean_archives.php</tt></li>
<li>On line 32, you'll find:
$arcresults2 = $wpdb->get_results("SELECT ID, post_date, post_title, comment_status ...</li>
<li>Add <tt>DISTINCT</tt> before the word <tt>ID</tt> on that line, it should now look like:
$arcresults2 = $wpdb->get_results("SELECT DISTINCT ID, post_date, post_title, comment_status ...</li></ol>
That should fix your problem.
2 years ago
(http://test.gordsellar.com)
2 years ago
2 years ago
Example: Administrator #1 has a Post Levels user level of 5. Administrator #2 writes a post assigned Post Level 10. Administrator #1 can see that post.
Is this a bug, or is this by design?
I'm using WordPress 2.1.1 and Post Levels 1.1.1. This behavior did not occur with WP 2.0.x/PL 1.0.
2 years ago
I've never tested it, but can the admin see all private posts in the admin area of WP? I don't touch the SQL in the admin area (too risky).
2 years ago
The post total under Users - Authors and Users (wp-admin/users.php) reveals only public posts. That is, if there are six posts, but only one of them is public the Actions column will list "View 1 post." However, if you click that link you're back to Manage - Posts (ex. wp-admin/edit.php?author=4) where all posts are again visible.
2 years ago
2 years ago
2 years ago
2 years ago
Private Post Title Prefix:
Private Post Title Prefix:
Default Post Level
and so on.
Why is there a duplicate of the private post title prefix?
Thanks!
2 years ago
2 years ago
2 years ago
2 years ago
!--more--in the post. You can find a description on the WordPress Write Post documentation page.2 years ago
Also, is there a way to indicate if the post is private in the blog, so users who login automatically know what are private posts and what are not?
2 years ago
2 years ago
One question though... Is there a hack available that allows me to display the recent comments on the sidebar depending on the post level of the reader?
2 years ago
I love you. =-) Marry me?
Thanks!
2 years ago
People can only view the posts if they are logged in. The teaser or any other option does not appear, even when it's turned on.
And is there any way to make the pre-fix or post-fix an image, instead of text?
2 years ago
2 years ago
img src=private.gif /(whereprivate.gifis the name of the image).2 years ago
And yes... WTF is up with this lack of teasing? *sigh* If you're interested, take a jog over to my website and take a look.
2 years ago
is_private()function to conditionally output during your post loop.As for the lack of teasing. I think I realized why it's not working for you -- I only show the teaser for items that are at or below the default post level (which is 0 by default). Change the default post level to something higher (or post the posts you want teased at level 0) and you should see the teasers. I didn't really document that feature very well. Or at all.
2 years ago
2 years ago
$postlevels_current_user_level = get_option('postlevels_default_user_level');</pre>to
<pre>
$postlevels_current_user_level = '3'</pre>Or however high you want posts to show ...
2 years ago
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'p ON p2l.post_id = p.ID INNER JOIN wp_categories AS c ON p2c.category_id = c.cat' at line 1]
SELECT c.*, COUNT(*) as category_count FROM wp_post2lang p2l INNER JOIN wp_post2cat p2c ON p2c.post_id = p2l.post_id INNER JOIN (wp_posts LEFT JOIN wp_postmeta as pl_wp_postmeta ON (wp_posts.ID = pl_wp_postmeta.post_id)) p ON p2l.post_id = p.ID INNER JOIN wp_categories AS c ON p2c.category_id = c.cat_ID WHERE p2l.language_id IN (1) AND p2c.category_id IN (1,3) AND p.post_type = 'post' AND p. (wp_posts.post_status = 'publish' OR (wp_posts.post_status = 'private' AND (pl_wp_postmeta.meta_key = 'post_level' AND pl_wp_postmeta.meta_value
2 years ago
if (function_exists('af_ela_super_archive'))</pre>to
<pre>
if (true)</pre>That should fix the issue.
2 years ago
I am using the latest version of WP and Post Level 1.1.1
Thanks!
2 years ago
2 years ago
http://labs.spaceshipnofuture.org/icky/HTTP%20a...
2 years ago
I am having a similar problem as Ebeneezer - I get the same message he does in the Post Levels Configuration box. I have the latest version of Word Press, and I installed the plug-in and activated it, and typed in a prefix comment, and set the configuration to Teaser. I then logged off the site and went to look at the blog to see if the plug-in worked.
I couldn't even bring up the webpage. I get a "internet could not display this webpage" message. If I deactivate the plugin, the page works fine. If I try to change user levels, or change the default post level or default user level I get the following message, and if I say yes - nothing changes:
Warning: Cannot modify header information - headers already sent by (output started at /home/content/d/r/d/drdetecto/html/wp-admin/admin-header.php:16) in /home/content/d/r/d/drdetecto/html/wp-includes/functions.php on line 1219
2 years ago
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'posts, wp_post2cat post2cat WHERE posts.ID 21 AND posts. (wp_' at line 2]
SELECT DISTINCT posts.ID, posts.post_title, posts.post_date, posts.comment_count FROM (wp_posts LEFT JOIN wp_postmeta as pl_wp_postmeta ON (wp_posts.ID = pl_wp_postmeta.post_id)) posts, wp_post2cat post2cat WHERE posts.ID 21 AND posts. (wp_posts.post_status = 'publish' OR (wp_posts.post_status = 'private' AND (pl_wp_postmeta.meta_key = 'post_level' AND pl_wp_postmeta.meta_value 20060316195321 ORDER BY RAND() LIMIT 5
* No related posts found.
2 years ago
2 years ago
I am making the switch of my site from WordPress 2.0.7 to 2.1.2, and with 2.0.7 I was using a modified version of Post Levels 1.0. I really can't remember how I exactly I had the plugin modified, but there is a feature in it that I like. It was an instruction page function, that if some one who didn't have enough access tried to access the page, it would just show them that page. Was that one of your original functions of the plugin, or something I had added?
2 years ago
SELECT p2c.category_id AS cat_id, COUNT(p2c.rel_id) AS numposts, UNIX_TIMESTAMP(max(p.post_date_gmt)) + '3' AS last_post_date, UNIX_TIMESTAMP(max(p.post_date_gmt)) AS last_post_date_gmt FROM wp_post2cat p2c INNER JOIN (wp_posts LEFT JOIN wp_postmeta as pl_wp_postmeta ON (wp_posts.ID = pl_wp_postmeta.post_id)) p ON p2c.post_id=p.id WHERE (p. (wp_posts.post_status = 'publish' OR (wp_posts.post_status = 'private' AND (pl_wp_postmeta.meta_key = 'post_level' AND pl_wp_postmeta.meta_value
2 years ago
SELECT p2c.category_id AS cat_id, COUNT(p2c.rel_id) AS numposts, UNIX_TIMESTAMP(max(wp_posts.post_date_gmt)) + '3' AS last_post_date, UNIX_TIMESTAMP(max(wp_posts.post_date_gmt)) AS last_post_date_gmt FROM wp_post2cat p2c INNER JOIN (wp_posts LEFT JOIN wp_postmeta as pl_wp_postmeta ON (wp_posts.ID = pl_wp_postmeta.post_id)) ON p2c.post_id=p.id WHERE ( (wp_posts.post_status = 'publish' OR (wp_posts.post_status = 'private' AND (pl_wp_postmeta.meta_key = 'post_level' AND pl_wp_postmeta.meta_value
2 years ago
2 years ago
did You mention mysql query bugfix? :)
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'p on p2t.post_id = p.ID WHERE post_date_gmt
2 years ago
I found didn't work, but does work.
So as you already document show_count needs to be 1, but it seems changing hierarchical to 0 also breaks the category listing.
Otherwise we've found the plugin really great - thanks.
2 years ago
Just some feedback about getting categories to list on WP 2.1.2 with Post Levels 1.1.1.
I found wp_list_categories arguments 'title_li=show_count=1hierarchical=0' didn’t work, but 'title_li=show_count=1' does work.
So as you already document show_count needs to be 1, but it seems changing hierarchical to 0 also breaks the category listing.
Otherwise we’ve found the plugin really great - thanks.
2 years ago
You rock! Thank you for this plugin.
2 years ago
The postings with postlevel 2 and 5 should be visible to userlvl 8 and userlvl 1 should not be seeing anything. But unfortunately userlvl 1 can see both postings (lvl 2 and 5)
Both users are created as subscribers.
2 years ago
2 years ago
I just downgraded again :-|
2 years ago
2 years ago
2 years ago
However, I get exactly the same error as Janus mentioned 4 messages above (http://fortes.com/2007/02/16/post-levels-111/#c...). I have installed a clean version of WP 2.1.3 with Kubrick default theme, and have tested the plugin exactly the same way as Janus did, and all posts were visible to logged-in users whatever their post level restriction. Only non logged-in users were restricted.
I wonder what changed from WP 2.1.1 to 2.1.3. that blocks the plugin to work properly. Any ideas ? Thanks a lot !
2 years ago
2 years ago
I just wanted to flag the same issue that Seb has with WP 2.1.3. Any user, once logged in, can see a private post, irrespective of its level.
(http://fortes.com/2007/02/16/post-levels-111/#c...)
I'll try to figure out a fix and post back here, but it'd probably be faster if you did it. :)
2 years ago
2 years ago
WordPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY post_date ASC LIMIT 1' at line 1]
SELECT ID, post_title FROM wp_posts WHERE post_date '' AND post_type = 'post' AND post_status = 'publish' AND ID != ORDER BY post_date ASC LIMIT 1
2 years ago
WordPress database error: [Column 'post_id' in where clause is ambiguous]
SELECT DISTINCT id, post_title, GREATEST(start,'2007-05-01 00:00:00') AS start_date, LEAST(end,'2007-06-01 00:00:00') AS end_date, allday, 1 AS is_event FROM (wp_posts LEFT JOIN wp_postmeta as pl_wp_postmeta ON (wp_posts.ID = pl_wp_postmeta.post_id)),wp_ec3_schedule WHERE (wp_posts.post_status = 'publish' OR (wp_posts.post_status = 'private' AND (pl_wp_postmeta.meta_key = 'post_level' AND pl_wp_postmeta.meta_value ='2007-05-01 00:00:00' AND start='2007-05-08 00:00:00' ORDER BY start LIMIT 3
Thank you for any help and for this plugin.
2 years ago
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'as posts LEFT JOIN wp_postmeta as postmeta ON postmeta.post_id = posts.' at line 6]
SELECT DISTINCT posts.*, MATCH ( posts.post_title, posts.post_content ) AGAINST ( 'background vocals underground rock scene dregs belts have never heard awesomeness reminiscent medium pace drastic change japanese underground acoustic sound shigure fresh sound mood changes time changes miyamoto instrumentals 3 piece passionately rin' ) AS mysql_score FROM (wp_posts LEFT JOIN wp_postmeta as pl_wp_postmeta ON (wp_posts.ID = pl_wp_postmeta.post_id)) as posts LEFT JOIN wp_postmeta as postmeta ON postmeta.post_id = posts.ID WHERE posts.post_date_gmt 55 AND ( posts.post_password = '' ) AND ( (wp_posts.post_status = 'publish' OR (wp_posts.post_status = 'private' AND (pl_wp_postmeta.meta_key = 'post_level' AND pl_wp_postmeta.meta_value
2 years ago
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\st-andrews-fund.org.uk\httpdocs\wp-content\plugins\post-levels.php:688) in C:\Inetpub\vhosts\st-andrews-fund.org.uk\httpdocs\wp-includes\pluggable.php on line 271
2 years ago
2 years ago
I didn't realise that WP displays private posts irrespective of the level if the post was authored by the user who is currently logged in. Once this is taken into account during testing, the behaviour seems correct.
Everything seems to be working well now.
2 years ago
A great shame because the plugin sounds just what I need!
2 years ago
I did upgrade to 2.1.3 recently however and I am experiencing the same problems that Jin and Seb mentioned. Users that are not logged in do not see the private posts. Users that are logged in can see every post, whether their userlevel is lower than the post or not. None of the posts are authored by them btw.
2 years ago
2 years ago
2 years ago
2 years ago
I have a private level 3 post.
I want non-logged-in users to see the title + excerpt.
I want logged-in level 0 to level 2 users to see the title + excerpt.
I want logged-in level 3 and above users to see the full post (but know it was private via the prefix/postfix title text).
However, what I get is is that non-logged-in users and logged-in users below level 3 don't see anything about the post. So I think I'm configuring something incorrectly. This is on a fresh WP 2.1.1 install and is the only plug-in activated. Please help me configure this if possible. Thanks!
2 years ago
1 year ago
1 year ago
Great plugin by the way, thank you very much for writing it!
1 year ago
WordPress database error: [Column ‘post_id’ in where clause is ambiguous]
SELECT DISTINCT id, post_title, GREATEST(start,’2007-05-01 00:00:00′) AS start_date, LEAST(end,’2007-06-01 00:00:00′) AS end_date, allday, 1 AS is_event FROM (wp_posts LEFT JOIN wp_postmeta as pl_wp_postmeta ON (wp_posts.ID = pl_wp_postmeta.post_id)),wp_ec3_schedule WHERE (wp_posts.post_status = ‘publish’ OR (wp_posts.post_status = ‘private’ AND (pl_wp_postmeta.meta_key = ‘post_level’ AND pl_wp_postmeta.meta_value =’2007-05-01 00:00:00′ AND start=’2007-05-08 00:00:00′ ORDER BY start LIMIT 3
What can I do to fix this?
TIA peter "un loco"
1 year ago
could not sent the code via your message form. please give me your email-adress.
mine is: tanguero at un-loco dot de
best regards
peter stiens from germany
1 year ago
Great plugin! It works great!
1 year ago
In my comment feeds, the last comment is duplicated for however many comments are in the feed. This does not happen if I disable the Post Levels plugin.
I checked over the plugins I have enabled, and I think the only one that might be related to comment feeds is Akismet, but the problem still occurs if I disable Akismet. (I also tried deactivating Get Recent Comments and Smart Comment Link, but that made no difference either.)
Is anyone else experiencing a similar problem?
1 year ago
I get the same MySQL error everyone else is getting:
"
WordPress database error: [Column 'post_id' in where clause is ambiguous]
SELECT DISTINCT id, post_title, GREATEST(start,'2007-09-01 00:00:00') AS start_date, LEAST(end,'2007-10-01 00:00:00') AS end_date, allday, 1 AS is_event FROM (wp_posts LEFT JOIN wp_postmeta as pl_wp_postmeta ON (wp_posts.ID = pl_wp_postmeta.post_id)),wp_ec3_schedule WHERE (wp_posts.post_status = 'publish' OR (wp_posts.post_status = 'private' AND (pl_wp_postmeta.meta_key = 'post_level' AND pl_wp_postmeta.meta_value ='2007-09-01 00:00:00' AND start
1 year ago
First of all, it wouldn't let me deactivate it. I had to physically remove the plugin, and the errors keep coming. Good thing I was working on a sandbox.
I have two plugins that may be contributors: wp-cache and eventcalendar 3.
1 year ago
1 year ago
1 year ago
Thanks
Kevin
1 year ago
I think that a substantial part of the blame may lie in the EventCalendar 3 plugin, but it would probably be a good idea for you to see if there's something that you could do in your code to fix it. Basically, EC3 is doing the same thing that you are, and you guys are colliding. If this happens with EC3, it will probably happen with other plugins as well.
I'll let the EC3 person know about this as well, so they can address their own issues.
1 year ago
Here's a quick and dirty hack that made this work for me on WP2.3. I put my changes into postlevels_query_cleanup - mainly so I could track it and rip it out later. (Nice code btw - this 'cover the exceptions' function really comes in useful)
post-levels.php
insert at line 246:
// fix for WordPress 2.3
// evilzenscientist - 2 Oct 07
$sql = preg_replace("/post_id/", "wp_postmeta.post_id", $sql);
$sql = preg_replace("/, meta_value/", ", wp_postmeta.meta_value", $sql);
$sql = preg_replace("/meta_key/", "wp_postmeta.meta_key", $sql);
// end
1 year ago
I posted what works for me at: http://www.evilzenscientist.com/blog/2007/10/02...
1 year ago
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'p WHERE p.post_date '2007-10-10 20:25:45' AND p.post_type = 'post' AND p. (wp' at line 1]
SELECT p.ID, p.post_title FROM (wp_posts LEFT JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id) AS p WHERE p.post_date '2007-10-10 20:25:45' AND p.post_type = 'post' AND p. (wp_posts.post_status = 'publish' OR (wp_posts.post_status = 'private' AND (wp_postmeta.meta_key = 'post_level' AND wp_postmeta.meta_value
1 year ago
SELECT p.ID, p.post_title FROM (wp_posts LEFT JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id) AS p WHERE p.post_date '2007-10-10 20:25:45' AND p.post_type = 'post' AND p. (wp_posts.post_status = 'publish' OR (wp_posts.post_status = 'private' AND (wp_postmeta.meta_key = 'post_level' AND wp_postmeta.meta_value
1 year ago
First of all, let me thank you for a wonderful plugin that has been in my blog since it started. It is easy to use and serve exactly the purpose of what I have in mind.
With WP2.3, I am a little stuck cos it does not seem to work with this new version of wordpress (at least not yet) and I would like to try some of the new stuff in 2.3.
Any thoughts of updating this plugin for WP 2.3?
Thanks again for the good stuff...
KA
1 year ago
[You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'p WHERE p.post_date
1 year ago
1 year ago
Can the protected posts still be listed with the archives, latest posts, and random posts plugin?
Does the post level plugin work with pages as well?
1 year ago
I am using WordPress 2.3 and post-levels v1.1.1.
Thanks Fortes!
1 year ago
If there's no way to show a teaser to anyone, I'm not sure I see the point.
1 year ago
Thanks,
David
1 year ago
1 year ago
No matter to what I set the preview option, non logged in users simply get the error. Instead it should post a page preview I think. Not?!
1 year ago
1 year ago
However, this doesn't work for any entry published at levels above 0. I use level 2 for my private entries, and I want these to display a title on feed readers.
Is there a fix for this??
1 year ago
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS p WHERE p.post_date
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS p WHERE p.post_date '2007-12-15 23:33:51' AND p.post_type = 'post' AND p. ' at line 1]SELECT p.ID, p.post_title FROM (b2posts LEFT JOIN b2postmeta as pl_b2postmeta ON (b2posts.ID = pl_b2postmeta.post_id)) AS p WHERE p.post_date '2007-12-15 23:33:51' AND p.post_type = 'post' AND p. (b2posts.post_status = 'publish' OR (b2posts.post_status = 'private' AND (pl_b2postmeta.meta_key = 'post_level' AND pl_b2postmeta.meta_value
1 year ago
1 year ago
wp v2.3.2 + pl v1.1.1
* users level 0 can not see any private posts, as would be expected
* users level 1 can see level 1 private posts but no private posts above level 1, as would be expected.
* users level 2 and up can see all private posts regardless of level
Is this the general incompatibility with wp 2.3x that I keep reading about ... or is there a fix? I've combed through the plugin code but I can't find anything that does anything different between a level 1and a level 2 user.
1 year ago
It seems that PL works fine for people are not logged in (you cannot see private posts). But people logged in of all levels (0,1,2,3,...) can see Level 10 postings (or any other higher level posts) at any time.
Aktivated Plugins Running (AddQuicktag, Aksimet, AddQuicktag, Lightbox JS v2.03.2 Plugin, Post Levels, The Hacker's Diet)
1 year ago
My issue is that when I'm logged in, my links that use the 'page-links-to' plug-in don't open in a new window like I've told them to, but when I log out they do open in a new window.... Any thoughts? Not a big deal, just curious.
1 year ago
If not, when do you anticipate upgrading for 2.3.2?
Also, want to run with rolemanager 2.2.1 - any known problems?
Thanks!
1 year ago
I wonder if others face the same problem or its something to do with my theme/setup.
FYI, a little debug shows that in postlevels_the_title() $incomingpost always references my last post or whatever post i'm viewing. not sure if this info helps.
1 year ago
I did notice one thing that doesn't seem to be working? Or maybe it is just my template? If I login as a user with a post level of 1, I can do a search on the blog and view all private posts, even those that should only be viewable for those that have a level of 10. (These posts are not viewable for users NOT logged in, so only registered users can view.)
Is there something I need to do/update so that they cannot be searched on by users with lower post level permissions? There are just certain things I do not want my mother-in-law to stumble upon, if you know what I mean. :-)
I am using Wordpress 2.2 and have tried this one two different themes with the same result.
Thanks so much for sharing this great plugin. I look forward to applying it to more posts.
1 year ago
One way to fix this is to make one empty public post per category so the category is visible.
Another way is to edit wp-includes/taxonomy.php
In the function _update_post_term_count, change the bit that says "post_status = 'publish'"
to "(post_status = 'publish' or post_status = 'private')"
Like...
$count = $wpdb-get_var("SELECT COUNT(*) FROM $wpdb-term_relationships, $wpdb-posts WHERE $wpdb-posts.ID = $wpdb-term_relationships.object_id AND (post_status = 'publish' or post_status = 'private') AND post_type = 'post' AND term_taxonomy_id = '$term'");
...then re save all your private posts(or one post per category) so that the category count is bigger than 0
1 year ago
I tried is_post_level(1) and the $post_level variables, but to no success.
1 year ago
$thispostlevel = get_post_custom_values(get_option('postlevels_post_key'));
1 year ago
$thispostlevel = get_post_custom_values(get_option('postlevels_post_key'));
this returns an array, the post level is $thispostlevel[0].
1 year ago
You can have a look at my Website. I'd like to have such a message on the "VIP" Page, if unregistered users or users without enoug rights open this page.
With kind regards from Germany!
Krooms
1 year ago
first of all thank u for this plugin..it works perfectly with my post, but not with my pages..
if i set private a page (lev 2 for example) when i click on publish it is saved as draft and the button it's is invisible to all. how can i resolve it? Thank you
1 year ago
I have 2 posts with level 1 and 2.
I have 2 users with level 1 and 2.
If there is no one logged in they can't see the posts with level 1 and 2.
But, if user1 is logged, he can see both posts. Same issue with user2.
Thank you.