WordPress Plugins – inner.geek the self-discovery adventure of brett taylor Thu, 01 Oct 2015 03:39:24 +0000 en-US hourly 1 https://wordpress.org/?v=5.3.2 https://i0.wp.com/inner.geek.nz/wp-content/uploads/2015/09/cropped-fierce.jpg?fit=32%2C32&ssl=1 WordPress Plugins – inner.geek 32 32 11564923 Oops, downloads.webfroot.co.nz is back live /archives/2006/06/27/oops-downloadswebfrootconz-is-back-live/ Tue, 27 Jun 2006 02:13:38 +0000 /archives/2006/06/27/oops-downloadswebfrootconz-is-back-live/ Oops, seems I forgot to re-instate downloads.webfroot.co.nz, so now all the downloads, including word press plugins and the rest are back live. The only thing not up yet are the large MP3 archive of the Frootcast, a podcast I ran for like 4 episodes back when it was in vogue.

]]>
320
WordPress Plugin: Mycroft Search Plugin Generator /archives/2005/05/19/wordpress-plugin-mycroft-search-plugin-generator/ /archives/2005/05/19/wordpress-plugin-mycroft-search-plugin-generator/#comments Thu, 19 May 2005 08:29:32 +0000 /archives/2005/05/19/wordpress-plugin-mycroft-search-plugin-generator/ I was at work, and an idea hit me: Firefox search plugins are just text files. They also contain a lot of stuff that WordPress stores in it’s database. Why not make WordPress generate a search plugin for itself? Why not make a plugin that will work on any WordPress 1.5+ install? So I spent the rest of the day making the Mycroft Search Plugin Generator plugin!

Try it at the bottom of the sidebar on this site, or in the Meta section of the sidebar on Webfroot!

]]>
/archives/2005/05/19/wordpress-plugin-mycroft-search-plugin-generator/feed/ 6 191
Smart Unread Comments WP Plugin updated to 1.3 /archives/2005/05/16/smart-unread-comments-wp-plugin-updated-to-13/ /archives/2005/05/16/smart-unread-comments-wp-plugin-updated-to-13/#comments Mon, 16 May 2005 02:34:50 +0000 /archives/2005/05/16/smart-unread-comments-wp-plugin-updated-to-13/ I’ve just updated the Smart Unread Comments WordPress Plugin to 1.3. Finally, it uses your permalink structure in it’s links!

Also, I’ve changed a couple of the defaults; $limit now defaults to 5 and $output_when_more_unread_comments_than_limit now defaults to TRUE.

If you want to keep the old defaults, update your template’s command to this:
<?php echo get_smart_unread_comments(10, TRUE, FALSE); ?>

Also, I've moved my wordpress plugins to their own pages now

Get the new version now!

]]>
/archives/2005/05/16/smart-unread-comments-wp-plugin-updated-to-13/feed/ 1 187
WordPress Plugin: Smart Unread Comments /archives/2005/02/11/wordpress-plugin-smart-unread-comments/ /archives/2005/02/11/wordpress-plugin-smart-unread-comments/#comments Fri, 11 Feb 2005 07:52:07 +0000 /archives/2005/02/11/wordpress-plugin-smart-unread-comments/ As seen on Webfroot and this site, now in WordPress Plugin form!

Current Version: 1.3

What it does
Creates a list of posts with comments that haven’t been read by the user since their last visit/session. Uses cookies to track users last visit – no database required!

How it works:
Users are issued cookies which are used to track last visit. If this is their first visit, all comments in the last 14 days are unread. The plugin generates a list of unread comments. It keeps track of the user’s read posts for the session, removing them from the list as the user goes. Each page load updates the last unread timestamp cookie. Users can also mark all comments as read.

Installation:
Either:

  • RECOMMENDED: Install WordPress Plugin Manager then use the One Click Install for Smart Unread Comments. This will also make it easier to install other plugins and upgrade them in the future.
  • OR: Download Smart Unread Comments, extract and upload wbft-smart-unread-comments.php to your wp-content/plugins directory. Log-in to your WP admin panel, go to the Plugins tab and activate the Smart Unread Comments plugin.

Implementation:
In your template, add this code.

<ul><?php echo get_smart_unread_comments(); ?></ul>

get_smart_unread_comments() also takes options:

  • $limit
    Default: 5.
    Maximum posts with unread comments to display.
  • $output_when_no_unread_comments
    Default: TRUE
    If true, when there are no unread comments, it will output a <li class="wbftSUC_NoComments" > item containing $no_unread_comments_text
  • $output_when_more_unread_comments_than_limit
    Default: TRUE
    If true, when there are more than $limit unread comments, it will output a <li class="wbftSUC_MoreComments" > item containing $more_unread_comments_text
  • $mark_comments_as_read_text
    Default: “Mark all comments as read”
    String used in link Mark all Comments as Read link.
  • $no_unread_comments_text
    Default: “There are no unread comments”
    String used when there no unread comments and $output_when_no_unread_comments is TRUE
  • $more_unread_comments_text
    Default: “There are %d more unread comments…”
    String used when there are more than $limit unread comments and $output_when_more_unread_comments_than_limit is TRUE
    %d will be replaced with a count of how many more comments there are to view.

Documentation:
You’re looking at it!

CSS Classes output:
Remember, CSS classes are CASE SENSITIVE.

  • class='wbftSUC_MarkAsRead'
    Used on the Mark Comments as Unread link
  • class='wbftSUC_Recent'
    Used on comments less than 6 hours old
  • class='wbftSUC_MoreComments'
    Used on More Unread Comments list item
  • class='wbftSUC_NoComments'
    Used on No Unread Comments list item

Version History:
1.3: Now uses permalink structure, and sets cookies to your blog’s path. $limit defaults to 5 (not 10), and $output_when_more_unread_comments_than_limit defaults to TRUE.
1.21: Fixed broken (x)html validation due to stray
1.2: Fixed major bug with post title links.
1.11: Tables are now pulled from WP variables.
1.1: Initial Public Release.

Known Issues:
Comments on Pages (as opposed to posts) turn up on the list, but visiting the Page doesn’t mark those comments as unread.

Credit:

  • Chris Beaven (aka SmileyChris) for writing the original code seen on Webfroot, and helping with updating it.
  • Dan aka Mufasa and Tom for isolating the code from Chris’s Webfroot code magic and encouraging Me to write it.
  • Brett Taylor (Me! aka Glutnix) for turning it into a WP plugin and making the number of unread comments on each post link to the oldest unread comment rather than the newest unread comment.

Bugs and Suggestions
Any bugs or suggestions, please email me – email link in the sidebar (RSS readers: drop by the site ;) ).

]]>
/archives/2005/02/11/wordpress-plugin-smart-unread-comments/feed/ 62 167
WP Plugin: Official Comments /archives/2005/01/12/wp-plugin-official-comments/ /archives/2005/01/12/wp-plugin-official-comments/#comments Wed, 12 Jan 2005 08:23:18 +0000 /archives/2005/01/12/wp-plugin-official-comments/ I just whipped up a quick WordPress 1.2/1.5/2.0 plugin that allows you to distinguish comments made by WordPress users. It also will automatically approve comments made by WP users.

Current Version: 1.1

How It Works:
If you are logged into your WordPress admin panel, and you make a comment, the plugin will see that you are an official WP user of your blog and mark the comment with your WP User ID.
When the page is rendered, that User ID is called up by the plugin functions, which you can use to change text, change CSS class, add images, whatever your imagination desires.

Installation
Either:

  • RECOMMENDED: Install WordPress Plugin Manager then use the One Click Install for Official Comments. This will also make it easier to install other plugins and upgrade them in the future.
  • OR: Download Official Comments, extract and upload official-comments.php to your wp-content/plugins directory. Log-in to your WP admin panel, go to the Plugins tab and activate the Official Comments plugin.

How to implement:
Simply add this somewhere within the Comments loop in wp-comments.php and/or wp-comments-popup.php:

<?php if(is_wpuser_comment() != 0) {echo "Official ";} ?>

Or get tricky and add a CSS Class to the LI:

<li class="comment <?php echo (is_wpuser_comment() ? ' commentOfficialUser' : ''); ?>" id="comment-<?php comment_ID() ?>">

and this very basic css example:

.commentOfficialUser { border: 1px solid black; background-color: #999999 }

Documentation
View Official Comments Readme.txt

Examples
There is a very basic example on this post, but more exciting examples available at Webfroot.

Known Issues
It only works with official comments made after the point of installation, as WordPress doesn’t automatically add the WP user ids to the comments field it already has.

Bugs and Suggestions
Any bugs or suggestions, please email me — email link in the sidebar (RSS readers: drop by the site 😉 ).

]]>
/archives/2005/01/12/wp-plugin-official-comments/feed/ 159 155