Posts Tagged ‘Plugin’

SB Newsletter Subcription Generator: Complimentary Subscriber plugin for WordPress

April 22nd, 2010

Yes these names are getting really original aren’t they! This little plugin works hand in hand with Satollos Newsletter plugin for WordPress which is a little crude but does the trick. I don’t entirely agree with the Lite version being free and the Extras package not but we all have to make money I suppose.

I had a couple of requests for clients that use the plugin regardless so instead of playing with the core and, therefore, making it unupdateable (is that a word?), I decided to write a plugin that will only work is the Newsletter plugin is installed.

My features are simple:

  • Import all WP users as Newsletter Subscribers
  • Import all WP commenters (whether they like it or not) as Newsletter subscribers
  • Import a TSV or CSV string (textarea copy in method) Import
  • Comment post auto subscribe with opt out checkbox

The entire plugin focuses on getting you subscribers albeit not in a necessarily good way. I suppose I could make the plugin a little more ethical by not bypassing the double opt in. Any one interested in me doing this say so and I shall re-release with an option either way (or better, just do what the newsletter plugin itself is set to do).

This was written in a couple of hours so is a little crude but gets the job done. Feel free to take it and use it if you feel that your newsletter subscriber counts could do with a little ‘help

Usage
Download Plugin -> Upload to your site -> Activate it!

Import options and settings are on an admin page with the link in the bottom left hand corner of the admin pages.

Download
SB Newsletter Signup Generator (3.98 kB)

SB Author Comments: Author Commenting plugin for WordPress

April 15th, 2010

To my knowledge it’s not possible to comment on an author in WordPress. “Why would you want to do that?” you ask… Well for example a client of mine is running a classifieds site using the Classipress theme. The site uses classifieds as jobs for people to do and the people posting and signing up to the site are tradesmen. Comments, in this case, can be used as a feedback system and therefore are a valuable addition.

The wp_comments table doesn’t have support or scope to store comments with an associated user (as opposed to post). At this juncture I would have inserted a null (or 0) value into the post_id column and added a row into the wp_commentmeta table with the user ID it refers to. However, I didn’t write the core code for the project so I simply updated a neat little system written by Dan Wellman. Dan’s system is pretty good and uses AJAX and JSON to add comments to a new database table with two fields (author and comment). It was what I would call ‘a good start’ as DB details were required in a number of different files and the database had room for improvement. I have a few more plans for the code but for now have changed a couple of things and bundled it into a WordPress plugin for you.

In my version the database table is created for you, it has several more fields including a primary key (!), timestamps and room for additional information (not currently utilised) to be stored. The WordPress database class is used now so no duplication of the connection details is necessary.

Take a look at the plugin and comments and suggestions for additions are very welcome.

Download
SB Author Comments (1.84 kB)

Usage
Upload and activate the plugin as normal. Then add the following code to your author.php theme template making sure to edit the $author_id variable as appropriate.

<?php
if (function_exists('sb_ac_comment_form')) {
echo sb_ac_comment_form($author_id);
}
?>

Credit
Once again credit goes to Dan Wellman who detailed the integration into his site on his blog

WordPress Session Management

July 14th, 2008

I’ve been working on YourMembers for some time now and have started selling it on newmedias with Tim Nash and I wanted to get some useful stats on the current state of the website. Luckily the selling site is running on WordPress so I put together a simple plugin to give me some information on my last days visitors.

Believe it or not I call it ‘session manager’ and It’s freely available through this site and via the wordpress plugin directory (when I get around to uploading it). It gives you the following information:

  • The number of visitors in the last day (configurable)
  • The number of pages each visitor looked at
  • Which they were
  • The times each page was visited

That’s it!

I find that a lot of stats plugins give what I would call too much information (ie pretty graphs, information on screen resolution and things like which browser the client is using). Session Manager differs because it provides is a very light weight single table implementation giving 90% of the functionality for 10% of the overhead.

I have been using it on this site and newmedias for the last week or two and it has been instrumental in giving me enough stats data to satisfy that ‘whose looking at my site’ itch. Exactly what I needed!

Any feedback would be greatly appreciated and if anyone fancies having a look at the code and trying to make something more of it then i would be keen to hear about it. I have written it in very clear coherent PHP that anyone could understand.

See the Session Manager page for the download link.