Subscribe2 widget markup and css

Tuesday, August 19th, 2008 anna-marie

The wordpress subscribe 2 plugin is great. Version 4.9 just released - a wonderful alternative to a feedburner subscription. Especially where one wants to keep the maintenance of a website as simple as possible, and avoid having yet another place where the web maintainer has to logon.

Still a small issue with the confirmation message - the menu page titles get replaced with post id’s - two fixes are documented on the plugins website - see the troubleshooting section. Since I had to make the change anyway, I thought I would go ahead and make a few more:

I wanted to reduce the “real estate” that the Subscribe 2 widget occupied in the sidebar. I did this by changing the radio buttons and the submit button to two buttons, one to subscribe and one to unsubscribe. This looked much cleaner in the sidebar.

To accomplish this, I made the following changes - perhaps they could be added in to the next upgrade?

In each section, comment out the line that is commented here and replace with the other line/s:

approx line 2158:

/* amr } elseif ('unsubscribe' == $_POST['s2_action']) { */
} elseif (isset( $_POST['wunsubscribe'])) {

approx line 2120:

/* amr if (isset($_POST['s2_action'])) {*/
if ((isset($_POST['wsubscribe'])) || (isset($_POST['wunsubscribe']))) {

approx line 2137:

/* amr if ('subscribe' == $_POST['s2_action']) { */
if (isset ($_POST['wsubscribe'])) {

approx line 2158:

/* amr } elseif ('unsubscribe' == $_POST['s2_action']) { */
} elseif (isset( $_POST['wunsubscribe'])) {

approx line (was 2183 in prior version)

To get rid of confirmation message funny. This will keep the page title of I think first page in menu (better than the alternative)

//amr add_filter('the_title', array(&$this, 'title_filter'));

Optional: added css to theme style to remove fieldset border and space the input buttons a bit

(if you do not already have suitable sidebar/form default css):

fieldset {border: 0; padding: 0 0 0.1em 0;}
input {margin: 0 0.3em 0.1em 0; padding: 0.1em;}

In use:

This revised widget markup and css is now in use at the following sites:

  • http://lcda.com.au/
  • http://roseville.ndsb.com.au/
  • http://analysis.quanta.org.za/
  • http://www.coredevelopment.com.au/

Related posts:
  1. Having problems editing on a low res screen? Always test on the clients computer! He has a lower...
  2. Ical Events List - upcoming events in list format 2.2 alpha A 2.2 alpha version has been released - improved timezone...

One Trackback

  1. By Recent Links Tagged With "markup" - JabberTags on December 1, 2008 at 6:19 pm

    [...] Semantic markup - a difference you can hear Saved by analogchainsaw on Mon 10-11-2008 Subscribe2 widget markup and css Saved by bopt1 on Mon 10-11-2008 Wii Fit Silicone Covers *GROUP BUY AVAILABLE* Saved by [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*