Urgent! - 20080921
Should be stable now.
Introduction:
SmugWP started off simple enough; create a gallery for the client, give the client the Gallery ID, the client enters the ID into a simple interface and is redirected to the correct gallery. It is functionality similar to the DigiProofs interface. And things just got a touch out of hand from there.
At this point I would almost call SmugWP the WPG2 of SmugMug.
You can now browse your SmugMug galleries, preview images, and insert them into your Post or Page. Also, if you have WP Lightbox 2 installed, it can pre-format the insertion to properly display the linked image in a lightbox.
The original purpose of the plug-in remains.
It still displays a form to evaluate Gallery IDs (which are, unfortunately global), confirms that you own the ID, and redirects the user to YOUR Gallery. It now fully supports and confirms both the Gallery ID and the Key (the entire NNNNNNN_XXXXX string).
Simply hide all proofing and delivery galleries, and only display your sample galleries. This keeps your SmugMug interface clean, and ensures that proofing galleries are private and secure. It especially helps if you have a fully customized SmugMug template to match your WordPress site.
Usage:
Configuration
- Username - This is the username you use to log in to your Smug Mug Account (this is usually an email address).
- Password - Like above, this is your password you use to access your SmugMug account.
- Display Key - Place this text in on one of your Posts or Pages, and during the display process SmugWP will replace this key with the form code you enter in the Form Code field.
- Request Key - This is the name of the field that will contain the Gallery ID to be confirmed when the form is submitted (<input type="text" name="this_is_the_Request_key" />).
- Form Code - This is the HTML that makes up the form that will be displayed in place of the Display Key in your Posts or Pages.
- WP lightbox 2 Support - Turn WP Lightbox 2 support/alerts on or off.
Browse and Insert
Styling
Once images are inserted into your Post/Page, it is easy to style the appearance of your images.
Images are assigned Classes based on their Float, Image ID and Group, with the prefix “swpFL_,” “swpID_,” and “swpGR_” respectively. Further, images with a Float to Center are enclosed in a DIV tag with the same classes.
For example, an image with a Float to the Left, an ID of 285311744, and in a group of “Awesome,” will have the classes of “swpFL_Left,” “swpID_285311744,” and “swpGR_Awesome.” If you want to see how it works, just check out the SmugWP.css file in the SmugWP folder. But be careful what you change there, as your changes may be overwritten if you ever update SmugWP.
The Form and Gallery Confirm/Redirect
This is where it all started. This works by displaying the Form Code (designated on the SmugWP Options page) in place of “[ smugWPform ]” (minus the quotes and spaces) in any Post of Page in your blog.
The plugin will then evaluate the contents of the designated field in the form (again, you set this to match the form field on the SmugWP Options page) when it is submitted, to confirm that the Gallery ID (the entire NNNNNNN_XXXXX string) supplied is owned by YOU, the blog owner. If you do own the Gallery, the plugin then redirects the user to the Gallery.
Why do this? Well, a simple redirect would KIND of do the trick, but if the Gallery ID did not exist, or wasn’t owned by you, the user would land either on the SmugMug Home Page, or inside someone else’s gallery. Not so good.
If you have your SmugMug account fully customized to match your website, this makes for a seamless transition, that conveys professionalism and continuity.
Websites using Smug WP
- Trotamundo Travel Tales - Requires Log-In
Frequently Asked Questions
I get an error when I try to access my galleries through SmugWP.
Check your Username and Password. Better yet, check your Dashboard, any crazy red messages popping up? Read them.
Can I display the SmugWP form inside a PHP template?
Yes, simply call the function sWP_displayForm(); anywhere where you can execute PHP. This function does not hook for displaying CSS, as it is too far into the execution of the document, but as long as it is on a WordPress page (template) you should have no problems, as the CSS is hooked to the head of all WordPress pages automatically.
Installation:
- Download and unzip the latest version of the plug-in.
- If you have a previous version of SmugWP installed, disable it on the WordPress Plugins page.
- Place the “SmugWP” folder in your “wp-content/plugins/” directory (over write the old folder if it exists).
- Activate SmugWP on the WordPress Plugins page.
- Enter your Username and Password on SmugWP Options page, under the Options tab.
- Designate a page to check for form display (enter the page ID on the SmugWP Options page).
- Insert “[ smugWPform ]” (minus the quotes and spaces) in the source of any page or post you want to display the form on.
Versions:
- SmugWP v3.1 - (in the oven)
- Support for SmugMug Video. -> (planned)
- Random Image Widget. -> (planned)
- Recent Images Widget (by Album or Account). -> (planned)
- Recent Images in Album ShortCode (for Recent Images display in Post/Page). -> (planned)
- Current Recent Images block insert (to insert a block element of recent images at-time-of-posting into Post/Page). -> (planned)
- SmugWP v3.04 - (released September 21st, 2008)
- Fixed pertinent issues in WP v2.6
- Fixed Username and Password issues.



















April 26th, 2008 at 7:18 pm
Just letting everyone know. There was a bug in the Version 3 release until the writing of this comment. So if you downloaded the Version 3 release before the writing of this comment, please download it again to get the working copy.
I was parsing the initiating variables incorrectly, which would make it impossible to enter login information during the initial set-up. This is now fixed.
April 26th, 2008 at 7:31 pm
[…] To read up on all that is SmugWP, head on over to it’s special little page. […]
April 26th, 2008 at 8:35 pm
Sorry, where can we download this? I can’t find the download.
April 26th, 2008 at 8:40 pm
Kurt,
Click on SmugWP v3.0, under Versions. Then click on the package icon, top left of that page.
Hope that helps.
May 1st, 2008 at 6:48 pm
I am having problems just getting this plug-in configured. Can you give us a screenshot of what should go where in what box on the WP Options page? Thanks.
June 4th, 2008 at 5:55 pm
I keep getting a password error telling my SmugMug password is wrong. I’ve changed it a dozen times, updated in the options page, and even tried updating it in the SmugWP.php page. I’m at a loss at this point.
June 4th, 2008 at 6:06 pm
Never mind to the previous comment. It started to work after a complete WP reinstall (for other reasons).
September 13th, 2008 at 11:49 am
[…] available anymore, so after some research I found another one which looked even better, called SmugWP. Problem was I hadn’t upgraded wordpress in a while so I was still using version 2.2, which […]
October 22nd, 2008 at 9:23 pm
Hi Mike,
I’ve installed SmugWP and it works pretty well apart from one thing - the photos should show up in lightbox but instead when a user clicks on them they open up on a blank web page. I have the latest version of WP, SmugWP and Lightbox 2 installed.
An example can be seen at http://www.blackshadow.com.au/2008/10/the-living-end/
Any ideas how I can get the lightbox integration to work?
Regards, Richard
October 22nd, 2008 at 10:57 pm
Richard, it looks like there is a conflict between your Widget plugin and your LightBox plugin.
Looking over your site briefly, I see this error:
All your versions are the same, and I did a check of your LightBox script, it is th same as mine. If it is a WP version issue, it is an issue between the makers of the LightBox plugin and WP. Let me know what you find. I may be able to add functionality to support other LightBox-like programs to accommodate for issues like this.
October 25th, 2008 at 2:20 am
Thanks for getting back to me Mike.
I’m not sure what causes the error you found and don’t have the technical expertise to know what might cause it.
I will look into it this week though.
Regards, Richard
October 27th, 2008 at 3:44 pm
Richard,
The error is between the ShareThis widget and the LightBox 2 plug-in. I have contacted the developers of ShareThis, hopefully they can sort it out.
November 2nd, 2008 at 7:35 pm
Hi Mike,
I haven’t changed anything but this morning my lightbox has decided it wants to work and I think it looks great - thanks for the work you have put into SmugWP.
You can see it in action at http://www.blackshadow.com.au
The strange joys of the internet!
Cheers, Richard