WordPress.org

Forums

New Plugin: "Hide/Show" (11 posts)

  1. VaamYob
    Member
    Posted 9 years ago #

    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

  2. Bricolou
    Member
    Posted 9 years ago #

    This would be great if the hidden part was only available
    to subscribers. Is there a way?

  3. VaamYob
    Member
    Posted 9 years ago #

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

  4. VaamYob
    Member
    Posted 9 years ago #

    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

  5. nmerriam
    Member
    Posted 9 years ago #

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

  6. rickyhsu
    Member
    Posted 9 years ago #

    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

  7. VaamYob
    Member
    Posted 9 years ago #

    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/

  8. rickyhsu
    Member
    Posted 9 years ago #

    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

  9. VaamYob
    Member
    Posted 9 years ago #

    Sorry,

    I've updated the download url and instructions.

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

  10. rickyhsu
    Member
    Posted 9 years ago #

    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

  11. VaamYob
    Member
    Posted 9 years ago #

    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-->

Topic Closed

This topic has been closed to new replies.

About this Topic