Categories
WordPress

Example: Output for Hide or Cut Plugin demo

This post demonstrates the Hide or Cut Post Text plugin. The content that generates this post can be found in the previous post.

Pay attention to the alphabet:

A

B


C

D

E (note that you’ll never see that C and D are actually in the post content)

F


G

H

I (note that G and H were cut from the non-permalink pages; click the default link to jump to G in the post’s permlink page)

J

K

L

M

N (note that L is only available on the permalink page and M is only available on non-permalink pages — you’ll never see the two letters on the same page…)

O

P


Q

R

S

T

U

V

W

X

Y

Z

Note that each cut link points to a unique anchor in the permalink page for the post.

I hope this example has sufficiently demonstrated the usage of the Hide or Cut Post Text plugin.

Categories
WordPress

Example: Post content for Hide or Cut Post Text demo

Below is the post content for an example post to demonstrate the use and results of the Hide or Cut Post Text plugin. The results of what the following post would yield are in the next post.

Categories
Package/plugin/module WordPress

Plugin: Hide or Cut Post Text

This plugin has been updated! Comments to this post are now closed. For the latest download, documentation, and link for posting new comments related to this plugin, visit the plugin’s new homepage at:
coffee2code.com/wp-plugins/hide-or-cut-post-text
Name:
Hide or Cut Post Text
Author:
Scott Reilly
Version:
1.2
Last updated:
11 April 2005
Description:

Hide (so no one, or only users above a certain userlevel, can see) or cut (so only viewable on post’s permalink page) portion(s) of a post’s text. Link text for cuts can be defined per-cut or omitted, and if used, cut links are uniquely anchored. Quicktag buttons for the new tags are automatically created (but can be disabled).

Categories
Site

New look

Well, I tired of the too-basic site design, though I still didn’t have the inclination to come up with an entirely new design on my own. So I perused Alex King’s WordPress Styles site and chose King’s Dots (3-column) style and modified it. One such modification being the change to a 2-column design. Then of course I added custom images. Feels a bit homier now.

Categories
Package/plugin/module WordPress

Plugin: Random File

This plugin has been updated! Comments to this post are now closed. For the latest download, documentation, and link for posting new comments related to this plugin, visit the plugin’s new homepage at:
coffee2code.com/wp-plugins/random-file
Name:
Random File
Author:
Scott Reilly
Version:
1.0
Last updated:
25 March 2005
Description:

Retrieve the name of a randomly chosen file in a given directory. Useful for displaying random images/logos or including text from random files onto your site (writing excerpts, multi-line quotes, etc).

Categories
Package/plugin/module WordPress

Plugin: Auto-hyperlink URLs

This plugin has been updated! Comments to this post are now closed. For the latest download, documentation, and link for posting new comments related to this plugin, visit the plugin’s new homepage at:
coffee2code.com/wp-plugins/auto-hyperlink-urls
Name:
Auto-hyperlink URLs
Author:
Scott Reilly
Version:
2.01
Last updated:
10 October 2004
Description:

Auto-hyperlink text URLs in post content and comment text to the URL they reference. Does NOT try to hyperlink already hyperlinked URLs. Improves upon WordPress’s default make_clickable function, along with adding some configuration options (such as link truncation).

Categories
Package/plugin/module WordPress

Plugin: Top/Recent Commenters

Name:
Top/Recent Commenters
Author:
Scott Reilly
Version:
1.0
Last updated:
24 March 2005
Download:
Description:

Retrieve the top commenters or most recent commenters to your site (if called outside “the loop”) or for a particular post (if called inside “the loop”).

Categories
Package/plugin/module WordPress

Plugin: Recent Commenters

UPDATE:
This plugin has been superceded by the more robust Top/Recent Comments plugin.
Name:
Recent Commenters
Author:
Scott Reilly
Version:
0.9
Last updated:
07 July 2004
Description:
Retrieve the last N people who have most recently commented. Note this is different than saying “the people who made the N most recent comments.”

Notes:

This plugin outputs a list of the N most recently commenting authors (with hyperlinks to their homepage if they provided an URL). You can define $before and $after text/HTML to bookend each list item. Specify $num_people to control how many people to list.

  • Can be used inside or outside “the loop”
Installation:
Install the Top/Recent Comments plugin insead.
Functions:
[I’ve defined the $num_posts arg as 2 for all of the examples in order to limit the amount of sample output.]

get_recent_commenters($num_people = 5, $before='<li>', $after='</li>')

  • $num_people : The number of recent commenters to be returned; default is 5
  • $before: The text to display before each recent commenter.
  • $after: The text/HTML to display after each recent commenter.
Tips & Examples:

Example:

<ul> <?php get_recent_commenters(3); ?> </ul>

Outputs:

<ul> <li><a href="http://www.joebob.org">Joe Bob</a></li> <li>No Homepage Guy</li> <li><a href="http://www.suzy.org">Suzy</a></li> </ul>

Example:

Recent love from: <?php get_recent_commenters(3, '', ','); ?>

Outputs:

Recent love from: <a href="http://www.joebob.org">Joe Bob</a>, No Homepage Guy, <a href="http://www.suzy.org">Suzy</a>,

Release Log:
  • 08 Jul 2004 : Deprecated; use the Top/Recent Comments plugin insead.
  • 07 Jul 2004 : v0.9 — Released to the public
Copyright & Disclaimer:

Copyright (c) 2004, Scott Reilly
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of coffee2code.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Acknowledgements:
I’d like to thank Nick Momrik since I used his Recent Comments and Recent Posts plugins as a starting point for this plugin.