• Is there a plugin around that can do the following:

    Display different text on any given page/post according to user authentication level, ie:

    <!–author–>

    This text is visible to author user-level.

    <!–/author–>

    <!–contributor–>

    This text is for contributor user-level.

    <!–/contributor–>

    And this text is generally visible to any user-level including non members.

    ?? Does this exist. I’ve used every crazy Google query I can muster to no avail.

Viewing 8 replies - 1 through 8 (of 8 total)
  • I haven’t seen a plugin with this level of functionality … yet. But that doesn’t mean there isn’t one out there. You could always take a crack at building it yourself (I’m sure there’d be a demand). Or you could talk to a developer about creating it. Keep in mind, some developers will charge a fee to build this kind of customer functionality for you.

    If you want to look for a commercially available solution that does exist, check out aMember (https://www.amember.com/). There are plugins to integrate this system with WordPress, though the system itself is probably rich with features you don’t need.

    Thread Starter lokust

    (@lokust)

    Hi Eric and thanks for your reply. I have used Amember previously though it’s overkill for my needs this time.

    It’s really surprising that such a plugin doesn’t already exist – I know many people like to sculpt WordPress as a CMS and this is fairly standard CMS behaviour.

    Anybody fancy a crack at coding this? ?? I can pay dollars.

    why not just use one of the custom fields plugins? I say one of, because I *think* theres more than one now.

    Thread Starter lokust

    (@lokust)

    Hi whooami,
    I’ve just had a good look around the net to investigate how I might use a custom fields plugin to achieve what I’m looking to do and I can’t see the connection? Am I missing something?

    Thread Starter lokust

    (@lokust)

    bump :0

    Lokust,

    If you’re interested in getting something coded special for you, I’d recommend one of three options:

    1. Post your request to https://jobs.wordpress.net
    2. Post your request to the WP-Pro mailing list
    3. Send me an email off the forum (eric [at] eamann [dot] com)

    This should be a fairly easy application to set up with shortcodes. I.E. [pluginname level=”author”] Content for Author-level[/pluginname][pluginname level=”contributor”]Content for Contributor-level[/pluginname] etc …

    Or something along those lines. Like I said, contact me offline if you want to talk more about it.

    As far as using custom fields, I’m not 100% sure how you’d do that. Maybe have one custom field containing content for authors, one for editors, one for subscribers … and then a plugin that applies a filter to your custom fields – displaying only those that match the current user level. I haven’t worked much with custom fields, though, so I’m not sure exactly how it would work.

    Thread Starter lokust

    (@lokust)

    Thanks Eric. I’ll have a think about all this.

    Did anyone ever do anything about this? I have been pulling my hair out, and I figured it would be very simple. I have been wrong. I thought I could do something like:

    global $current_user;
    get_currentuserinfo();
    $user_level = $current_user->user_level;
    echo ‘<h1>user_level = ‘.$user_level.'</H1>’;

    But I’m so new to messing with WP’s code and plugin code, I feel completely useless.

    Any new ideas or anyone create a plug-in?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Display different text in post according to user level’ is closed to new replies.