Announcement List
Subscribe to receive subscriber-only discounts, bonuses, and private content.
 
Your Name:

 
Your E-Mail:

 
Recent Comments

Archive for the ‘Wordpress Plugins’ Category

I’ve been looking at the Javascript in Posts plugin, and there is an issue with it – specifically, multi-line JavaScript (and some other types of code) don’t work.

I’m working on a resolution to this now.

Apologies for any convenience caused.

I’m finally hacking my way through the comments (spam and otherwise) that I’ve had backlogged on this site while I’ve been focusing on my other site, and have had some people say that the Javascript in Posts plugin doesn’t work on some versions of WP.

I’m going to be setting up installs of older versions of WP on a test site of mine, so I can test my software compatability, but if you have feedback on your version of WP and whether the plugin works OK or not, I would greatly appreciate it if you could drop me a line and let me know. Just add a comment to the plugin page.

IMPORTANT UPDATE ON 14 APRIL 2012. THIS PLUGIN IS NO LONGER SUPPORTED.


OK. Enough. I’ve had it. How can WordPress not allow built-in Javascript in your post content. And more importantly, how come no-one has released a simple plugin to allow it?

Well, someone has.

Me.

Today.

It took about 5 minutes to write, after 2 hours of messing around with various alternative plugins, trying to hack them to work.

Download The Plugin

NO LONGER AVAILABLE

Installation Instructions
1. Download the plugin
2. Unzip it
3. Copy the one file contained therein to your wp-content/plugins directory
4. Log into WordPress. Go to Plugins. Enable the plugin
5. Insert the javascript in your post.

Upgrade Instructions
1. Download the plugin
2. Unzip it
3. Copy the one file contained therein to your wp-content/plugins directory

That’s it.

WordPress Version Compatability
WP 2.7 – Version 1.0, 1.1 of the plugin works OK
WP 2.3.3 – Version 1.0, 1.1 of the plugin works OK
WP 2.3.2 – Version 1.0, 1.1 of the plugin works OK
WP 2.0.3 – WordPress.com don’t keep a copy of this archive, so I can’t test this version.

Comments
I’m using the simple text editor in my posts, by disabling the WYSIWYG editor in my WordPress profile. (See Users->Your Profile – uncheck the box marked ‘Use the visual editor when writing’)

I’ve not tried it with the visual editor, as I never use it anyway.

Update (18th July 2007): The WYSYWIG editor definitely breaks it when you edit the post (It puts a backslash in front of any single-quotes). You can go into the “code” view and fix it manually, but you have to do that each time you edit the post.

Update (20th July 2007) : I’ve just tested the plugin with two inline javascript calls, and one call to an external script and it worked fine. Just one note: any JS called in the post will ALSO take effect when you edit the post, since it will run in the preview section.

Update (3rd January 2008): I’ve started the “WP version compatability” list above. Feel free to let me know if you have another version, and the plugin works or doesn’t. I’ll do my best to keep this list up to date.

Update (03 February 2009): Just release version 1.1, which fixed some issues with Javascript code formatted in multi-line statements. No idea how I missed this one, but thanks to the people who do actually add their sample JavaScript code to the comments on this post!

Example

I’ve just released another WordPress plugin, useful if you’re using or thinking about using the Auto Social Poster plugin to automatically submit your WordPress posts to the social bookmarking sites (such as deli.icio.us, spurl, furl, simpy etc).

What my plugin does is allow you to set up multiple WordPress installs with Auto Social Poster, and have WordPress automatically fetch your accounts from a CENTRAL URL just before it hands over to Auto Social Poster to submit to the bookmarking sites.

Requirements:
This plugin obviously only works if you have already purchased, installed, and activated Auto Social Poster.

Download:
To get this additional plugin free, see here.

Installation:
Installation of this plugin assumes that you have got Auto Social Poster up and running correctly. If you haven’t please do that first.

Once you’ve downloaded the ASP Shared Logins plugin:

  1. Unzip the ZIP file that you’ve downloaded, to somewhere on your desktop.
  2. Decide the URL where you want to hold your central list of accounts. Make this somewhere hidden away on your website. Do not make it password-protected.
  3. Edit the file wp-ayb-aspsharedlogins-url.txt to contain only that URL (you’ll see a demo URL there already – just over-write the demo)
  4. Save that file, and transfer both files to your WordPress plugins directory, in your blog which holds your main social bookmarking accounts data. The files do not need to be in a specific subfolder.
  5. Log into your WordPress admin and activate it in your Plugins admin screen
  6. Go to Options -> ASP Shared Logins
  7. Select ‘Export’
  8. Copy the data that is then shown, into a text file, and FTP that file to the URL you defined earlier. This file then becomes your master copy of the account data.
  9. For all your other WordPress blogs that are running Auto Social Poster, simply copy the two ASP Shared Logins files to each plugins directory. That’s it. No more configuration to do.

Usage:
Any time you add a new account to the Auto Social Poster settings, go to the ASP Shared Logins plugin, export the new account data, and copy that data into your central text file via FTP or some web-based file management application.

That’s it.

If you want to change the URL where the account data is stored, you’ll need to log into each seperate copy of WordPress and update the URL manually, in the Options->ASP Shared Logins page.

History:
June 11 2007. Version 1.1 – First public release.