Posts Tagged ‘Plugins’

SB Pay Me

July 22nd, 2009

No that isn’t a request although feel free if you like :)

SB Pay Me is a new plugin that I have written along the same lines as those ‘Donate’ plugins you see everywhere. Well I decided that plugins like ‘Buy Me Beer’ and other similar donation type things weren’t really very professional so I wrote my own.

Features

The SB Pay Me plugin is designed to use the Wordpress shortcode API (using rather predictibly sb_pay_me as a hook) to provide a very simple to integrate payment form. It is fully templated so you can very easily decide how you want it to look. I have integrated a couple of Paypal images by default but you can add your own with no problems what so ever. The currency, payment amount and description are all configurable. The latter two can be setup to be edited by the user on your site instead of sending them to Paypal and getting them to do it there. The admin interface is fully commented and straightforward to allow even the most basic of users to be able to user it.

Example

Send Money
Just a working example of the plugin.
Amount GBP
Payment For

Screenshots

Default Template

Default Template

Modified Template

Modified Template

Admin Page

Admin Page

Download
I intend to release the plugin into the extend directory but at the time of writing it was down. Use this link to get the most recent version: SB Pay Me (10.27 KB)

Your Classifieds – What is it

November 10th, 2008

I started writing a Classified Adverts plugin for wordpress recently and then handed over the reigns to another programmer under my watchful eye. We will shortly be releasing the plugin once the documentation is complete and its all bundled up.

The plugin will be FREE and you will also have access to the Newmedias support forums where myself and Tim Nash are available most of the time to answer any questions and sort out and problems for you.

The plugin allows for category groups to be created and adverts (or more categories) created within each one. Adverts can either be created by an admin exclusively or by any site member using the form on the front end.

Give it a go and let us know what you think. Ask Tim for the beta if you are interested or wait for the product version. Available at www.newmedias.co.uk

Deals Press

November 10th, 2008

Ever been writing a post for your blog and when talking about a product you would like to give a list of suppliers and their prices (maybe with some affiliate links so you make some money!), well if it wasn’t written already then it is now.

Gaj from www.gaj-it.com asked CNMS to write this very plugin a few weeks ago and he is in the process of using it on his website at the moment.

Deals Press, as it’s been branded, allows you to create products on your blog and store prices for each from various suppliers. It is highly configurable and templated so you can make your adverts look as clever as you like.

Price histories are kept in the Database and a stats module is planned to show you prices over time and cheapest suppliers, etc…

I don’t yet have a URL for it although I will update this post when I know.

bbPress Email notification on post

September 9th, 2008

At Newmedias, we use bbPress and have been using the email notification plugin written by thomasklaiber. It sends an email to those registered for forum notifications every time a post is left on a thread that they had registered for.

http://bbpress.org/plugins/topic/post-notification/

I often look at my emails when im away from home on my pda/phone and find it a real pain to have to open the web link in each email to read it. This also means that I can’t download them in my email client for reading later.

My solution to this was blindingly simple,

Put the body of the most recent post into the email itself!

This feature was not available at the time of writing and works very well. The mod is very simple, here’s how i did it.

note: Before doing this to your version of the plugin, make sure that the original author hasn’t added his own version of the same thing!

1) Open notification.php and find the notification_new_post function
2) Paste the following code after the get_topic() call but before the $message=… call

$posts = get_thread($topic_id, 1, 1);
$posts = array_reverse($posts);
$last = array_pop($posts);
$last_text = strip_tags($last->post_text);

3) Overwrite the $message variable to include the new string at the end as follows:

$message = __("There is a new post on: %1\$s \nReply by: %2\$s \n\n%3\$s \n\n%4\$s");

4) Overwrite the sprintf call to the following:

sprintf($message, $topic->topic_title, get_user_name($bb_current_user->ID), get_topic_link($topic_id), $last_text)

(if you are more familiar with php and sprintf then just add the $last_text variable to the end of the list of variables within the existing call)

5) Save, Backup, Upload and test! It should now send the post body with the email

Optionally you can improve the code within this function somewhat…

1) The get_topic call doesn’t need to be in the foreach loop because the topic_id doesn’t change anywhere in the function. Although bbPress uses cacheing, it would still be best practise to move that line and the lines from my step 2 to the line before the foreach loop.

2) Convert the email to HTML by adding the content-type header and setting it to text/html. If you do this then the \n’s will also need to be changed to <br /> and you can optionally remove the strip_tags() from the last line in my step 2

Good luck and let me know about any problems you may have.