-
Website
http://fortes.com/ -
Original page
http://fortes.com/2005/12/post-levels-10/ -
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
So, if I want to publish a private entry, I list it as "Private" and add "post_level" and to the custom field?
Is there a way in V0.2.1 to modify something, ANYTHING, so that registered members cannot edit posts or ANYTHING at all on my blog? Even if it means tweaking hard code, I don't mind. This is a really great plugin, but I do not like giving access to my blog to just anyone.
Thank you!
Warning: Cannot modify header information - headers already sent by (output started at /home/rocky/public_html/wp-content/plugins/post-levels.php:772) in /home/rocky/public_html/wp-content/plugins/post-levels.php on line 103
Warning: Cannot modify header information - headers already sent by (output started at /home/rocky/public_html/wp-content/plugins/post-levels.php:772) in /home/rocky/public_html/wp-content/plugins/post-levels.php on line 104
Thanks
I ended up editing the following files:
* wp-admin/menu.php (change the second parameter for all the menus to 10)
* wp-admin/profile.php (check for user_level = 10 before showing a user's level)
* wp-admin/user-edit.php (change it so only user_level = 10 can edit [look for if ($edituser->user_level >= $user_level)]
That worked reasonably for me, but is probably not foolproof.
McShelby: I debated trying a role-based implementation, but decided against it for two selfish reasons: 1) My blog is already set up to use integer-based levels (and it works well for me) and 2) that kind of implementation is a little bit trickier and will require more code.
Feel free to extend the plugin to do so if that fits your needs.
Am I missing something on how this version of the plugin works with the new version of WP?
Maybe for a future version?
Thanks for a great plugin, works on www.barmen.nu with wp 2.0 no problems at all!
Can you post a fix to the Wordpress files that corrects the problem of Categories which contain only private posts not appearing for logged in users?
Many thanks.
The feed links are not rewritten correctly, I get
/?feed=rss2?http_auth=yes
There must be something wrong with this function, probably because when it is called, $output is still empty?
function postlevels_feed_link($output)
{
$delim = (strpos('?', $output) === false) ? '?' : '&';
return $output . $delim . 'http_auth=yes';
}
I'm using wp 2.0.
Any ideas how to fix this?
Also, someone told me that they clicked a link to a protected post once they logged in and were at the dashboard. She was able to read the protected post as well.
I switched those entries to drafts, but guess what? THEY CAN STILL BE SEEN BY CLICKING THE URL. Even if the person is not logged in.
HELP!
@John: Looks like a bug in my code. I'll fix it in the next release.
@Kaitlin: Make sure you're not logged in when viewing your RSS -- try it from a different computer even -- you should not see the private posts.
I can see that after logging out, clearing cookies, and clearing cache.
Are you using any other plugins? It's hard for me to tell what's going wrong here ...
Fil: You may want to change the default here ...
It would be great if you could assign a name or an alias to your postlevels, so that it becomes more clear for the admin who's who :) Great plugin, thanks
anyone knows about that? please, havin functionable rss is crucial for a good blog! thanks!
looking for the right syntax to append something like:
exclusive
in the private post prefix/postfix option.
in this case color won´t be displayed by the output, when i try to append an image by tag, the php gets messed up...
how could this work?
thanks
:)
joh
http://blog.truthbeauty.info/
i am using the minblog plugin for an asides like feature but for some reason the post levels plug in assigns the Private Post Title Postfix to all the miniblog entries even though these posts are not in fact private and there is actually no way to save the miniblog posts as private...
i hope miniblog and post levels plug ins are not just simply incompatible because i'd really like to use both :|
One question, though: When I try to use html tags in the prefix, it gives me the full post title without any of the html code, followed by an extraneous ' "' , then the full title with html code properly applied. When I try it in the postfix, it does the same thing but with only the postfix sans code, followed by the extraneous characters and the correct post title.
Is this a bug, or am I doing something wrong? Or are html codes just not fully supported in the prefix/postfix?
Thanks again, it really is a great plugin.
in archive template (next post link) will append the private-marking even though next one is not private?
do you know why?
great plugin, but it doesn't work properly - no matter how I set privilages (0-10) no registered 'subscriber' can see the post. Only I can see it (like in usual 'private' post). I'm using WP 2.0.2. Is there a way to fix it? :) thanks for help :)
There is indeed an error in the code that rewrites links to feeds to support HTTP Authentication.
Line 351 of post-levels.php is
$delim = (strpos('?', $output) === false) ? '?' : '';
but in fact it should be
$delim = (strpos($output,'?') === false) ? '?' : '';
i.e., the position of the strpos arguments has to be swapped.
thanks again!
chris
As somebody else posted before there is an issue with displaying the categories which contain only 'private' posts, they simply won't display in the sidebar, even if that user is logged in (or even if you're the admin). Is there a workaround?
Any advice/guidance would be appreciated. Thanks!
http://wordpress.org/support/topic/75644
Thanks!
Is that correct or have I got something incorrectly configured? If that is the way it should work, can I suggest that for a next release perhaps you could have it so that this remains so for the non-registered readers but that for logged in users with the appropriate user levels it does list those posts and categories?
Beyond that though - well done. I'm using it in combination with Owen's Role Manager, since that combo allows me to 'privatize' both my Flickr photos and individual posts without having to give people post abilities.
What I find interesting is the regular rss feeds show private posts in Safari if I was logged in already anyway viewing the web page. Safari must use the site's login info when reading the rss feed. I tested the regular feeds in curl and NetNewswire and without the auth=yes part and logging in, the private posts don't show up, so this seems Safari-specific.
Still, an interesting thing to note about Safari's RSS ability. It seems to persist in the cache for a while too. I logged out, went back to the default rss url and my private posts were still there. I had to empty cache, quit and run Safari again before it reloaded the URL without authentication and the private post was gone.
One workaround is too add an argument 'hide_empty=0' to the wp_list_cats function call. This will display all categories.
Usually the call is made in your template - possibly in sidebar.php.
If you use widgets then this can be found in plug-ins/widgets/widgets.php in function widget_categories:
Wherever the function call is made change
wp_list_cats("sort_column=nameoptioncount=$chierarchical=$h");
to
wp_list_cats("sort_column=nameoptioncount=$chierarchical=$hhide_empty=0");
For more read: http://codex.wordpress.org/Template_Tags/wp_lis...
In other template files the call would look like
wp_list_cats('sort_column=nameoptioncount=1hierarchical=0hide_empty=0');
(ie no variables($c, $h) - for people not familiar with php)
I'm not really any closer to solving my problem. But, and I'm not sure this has nothing to do with my htaccess hacking, while fiddling with the urls I randomly got to see the post if I was already logged in. Though I've only witnessed this in Firefox. I'm kinda surprised that no one has seen this type of problem before. :( Can anybody help?
However, I wish I knew php to modify it. Perhaps you'd consider adding this in as an option?
I would like to display the excerpt, or the bit of text before the More, to everyone, even for those private posts (to incite people to register). Short of that, a default bit of text, showing the tile and "you must be a subscriber to see this content".
Cheers
The plugin seems to me exactly that what I need.
But when I want to download it, there only comes an website with advertisement.
Bye
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/kevinp/public_html/notjustanotherday/wp-content/plugins/post-levels.php on line 7
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/kevinp/public_html/notjustanotherday/wp-content/plugins/post-levels.php on line 29
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/kevinp/public_html/notjustanotherday/wp-content/plugins/post-levels.php on line 30
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/kevinp/public_html/notjustanotherday/wp-content/plugins/post-levels.php on line 31
Parse error: syntax error, unexpected T_IF in /home/kevinp/public_html/notjustanotherday/wp-content/plugins/post-levels.php on line 34
Any idea how I can fix this?
Thanks!
So useful, so needed, so everything. Thanks as lot, seriously the best plugin that I have for WP!
Like others here it would be nice to have a static page for post levels but just that, nice. On the other hand I am using Mobile Blog with pictures and that always goes to the Mobile category and I would like that to be privite always; and as I am doing this through my phone I cant set the Post Level. Is there any soltion to this, either that certain categories are always Private or the text for the post could include some short cut:
i.e."PostLevel:5" at the start of the moblog could trickert the post to belong to that level.
All suggestions welcomed, and again, great work!
Currently, if the post-level is set to 2, any user with a post level of 2 or GREATER can see the post.
Would it be possible to have post-level 2 (and 10-admin) postings only visible to level 2 (and 10) users - not level 3-9(or maybe some other known plug-in) meaning levels set for the post are exact(+admin) designations? - I am trying to isolate subgroups of users somehow ...
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/bizkids/public_html/wp-content/plugins/post-levels.php on line 2
Parse error: syntax error, unexpected T_STRING in /home/bizkids/public_html/wp-content/plugins/post-levels.php on line 2
Pls help how I can correct this.
[...]
$posts = get_posts('numberposts=5offset=1');
foreach($posts as $post) :
[...]
instead of:
[...]
while (have_posts()) : the_post();
[...]