WordPress.org

Support

Support » Plugins and Hacks » New Plugin: “Hide/Show”

New Plugin: “Hide/Show”

  • This plugin allows you to specify post content that is only visible when the user is viewing your post in “full” mode. Conversely, it will allow you to specify content that is only visible in “excerpt” mode.

    A practical use would be to display a thumbnail of a movie/large picture in the “preview” of the post (your main page), then display the full image when the user has decided to read your post.

    I’ll eventually be adding it to the official wordpress list of plugins, but until then, you can demo/download it here:

    http://www.xyooj.com

Viewing 10 replies - 1 through 10 (of 10 total)
  • This would be great if the hidden part was only available
    to subscribers. Is there a way?

    There may be a way, I’ll look into it.

    OK, I’ve tweaked the plugin to allow you to specify content that only logged in users see, in addition to the other criteria.

    http://www.xyooj.com

    This is a very cool idea, I look forward to playing with it@

    VaamYob,
    Are you still continue develop this plugin? I went to your site is no longer there. Anyway is would be nice if you can do something like this display thumbnail in the index page that become fullsize image on single.php post page.

    Thanks

    rickyhsu,

    it’s there, just in the archives.

    What you’re requiring is EXACTLY what this plugin was developed for.
    The ability to hide/show post content, depending on how the post is viewed.

    http://www.xyooj.com/blog/plink/technical/26/hideshow/

    Thanks, I installed the plugin and I get this error do you I have done wrong. Thanks

    Warning: main(/home/ricky/domains/ricky.com/public_html//wp-content/plugins/xyooj.com/common.php): failed to open stream: No such file or directory in /home/ricky/domains/ricky.com/public_html/wp-content/plugins/hide_show.php on line 29

    Fatal error: main(): Failed opening required ‘/home/ricky/domains/ricky.com/public_html//wp-content/plugins/xyooj.com/common.php’ (include_path=’.:/usr/local/lib/php’) in /home/ricky/domains/ricky.com/public_html/wp-content/plugins/hide_show.php on line 29

    Sorry,

    I’ve updated the download url and instructions.

    http://www.xyooj.com/blog/plink/technical/26/hideshow/

    VaamYob,

    I installed your plugin but how do I use it to display thumbnail in frontpage and fullsize image in post. Sorry I didn’t see any instruction.
    Thanks
    Ricky

    If you use the normal editor (non flashy), you’ll see 3 buttons.
    1. Button to show only in excerpt mode
    2. Button to show only in full mode
    3. Button to show only if registered user/logged in

    The buttons will generate tags like:
    <!--full_only-->Replace with content that will only be shown in full post view mode.<!--/full_only-->

    <!--preview_only-->Replace with content that will only be shown in preview mode.<!--/preview_only-->

    <!--logged_in_only-->Replace with content that will only be shown in when the user is logged in.<!--/logged_in_only-->

    Just overwrite the stuff in between the tags with the html you want displayed at the appropriate time.
    i.e.

    <!--logged_in_only--><img src="some_really_large_image.jpg"/><!--/logged_in_only-->

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘New Plugin: “Hide/Show”’ is closed to new replies.