Home » Development Blog

Help! I forgot my password!

It happens.  Everybody forgets their usernames and passwords sometimes.  The script in the attached zip file will allow you to reset the password for the user you created during setup for ProofBuddy. 

It is absolutely CRITICAL that you remove this script from your server after using it.  If you leave it online it is possible for another person to access the script which will give them a username and password to access your ProofBuddy site. 

Usage

  • Download and unzip the file below.
  • Upload the reset_admin_password.php file to your ProofBuddy folder.
  • Browse to the file in your browser.  If your ProofBuddy site is www.example.com/proofs/ you would browse to www.example.com/proofs/reset_admin_password.php
  • The script will list the username and new password for the user you created during setup.  Be sure to keep track of this.
  • DELETE the reset_admin_password.php file from your server.
  • You can change your password on the Users tab after logging in.
1.4 KiB - 47 downloads

Opening PayPal in a new window

A couple of users have asked how to have the PayPal button open a new window instead of opening in the same one.  It’s fairly easy with a little bit of JavaScript.

Open the thanks.tpl file from whatever theme you’re using.  Look for a line with <!–paypalbutton–> in it.  Below that line add the following.

 

<script type="text/javascript">
for (var i=0; i<document.forms.length; i++)
    {
    if (document.forms[i].action.match(/paypal\.com/))
        {
        document.forms[i].target = "_blank";
        }
    }
</script>

 

What this does is loop through any forms (the PayPal link is an HTML form with several hidden fields and one graphic submit button) on the page and if they are submitting to paypal.com the target is changed to _blank which makes the link open a new page.  Any other forms (search boxes, email subscription fields, etc) will not be affected.

Why?

So, why do you need this?  The user that first asked was running ProofBuddy inside a frameset on their site.  For some reason PayPal has issues with this and throws a very nondescript error when you try to access from a framed page.  She needed a way to break out of the frameset.

Some people also just like the idea of opening PayPal in a separate window so that their site is still open.

About sepia threshold

If you’re using ImageMagick for your conversions you have an option titled Sepia Threshold.  If you’re unhappy with the sepia conversions in ProofBuddy changing this setting may give you the look you’re after, but it can be a little confusing so we’ve added a page to the FAQ with more information on the sepia threshold setting.

Disabling the ImageMagick check

It has been reported by some users, notably those on Windows servers running IIS, are getting the following error message after logging in as an administrator. 

The specified CGI application misbehaved by not returning a complete set of HTTP headers

The cause for this is ProofBuddy checking whether ImageMagick is at the correct path.  Since a majority of web servers are Linux, the default setting in ProofBuddy is a Linux path (/usr/bin) which causes the above error on some IIS setups.

To fix this, download the zip file below and follow the directions in the readme.txt file.  It will change the settings in ProofBuddy to use the GD Library instead of ImageMagick and tell ProofBuddy to not check for ImageMagick. 

If you are using ProofBuddy 1.0.1 or earlier you will also need to download a patch file from our support forum that will fix a problem on the Admin -> About page.

1.2 KiB - 202 downloads

ProofBuddy and Winklet

A question that comes up every 2 or 3 weeks is whether ProofBuddy and Winklet will work together.  Fortunately Winklet offers demonstration downloads of their templates so I was able to download one and see if I could get it to work.

The answer is sort of

The first thing I tried to do was to create a form on one of the Winklet pages that would let me enter a passcode and login directly.  It didn’t work.  Whether Winklet specifically strips out HTML forms or it’s a Flash thing I don’t know.  

Next I tried to use JavaScript to output the form.  Also did not work.  In fact it looks like JavaScript tags are stripped out, but the code is kept because the code showed up on the Winklet page but didn’t do anything.

What you can do is to create a link to your ProofBuddy site using standard anchor tags using code similar to what’s below.

 

<a href="http://www.example.com/proofbuddy/">Click to view your proofs</a>

While this doesn’t allow them to login directly, it does at least create a link so that your clients can find their proofs.

If you still want the form you can add an HTML form in the index.html file.  It worked, but I couldn’t get it to look right. 

Another suggestion is that you change the settings in ProofBuddy so that it goes back to your Winklet site after your client logs out.  You can do this on the Options -> General tab by filling in your complete URL (including http://) in the field labeled "After Logout".

 

Edit:

After a little more messing with the code I found a possible solution that allows you to have the form on the page and it still looks fairly decent. 

If you look at the top right you’ll notice a login form.  To add this you’ll need to open up the index.html file and add a few things.  I’m going off the example #23 I downloaded, so yours might be a little different.  If you have any questions be sure to post them in the comments section and I’ll do my best to help answering them.

This first bit of code needs to go somewhere between the <head> and </head> tags. 

<style type="text/css">
div#form    {
    width: 775px;
    text-align: right;
    color: white;
    }
</style>

The 775px width is the same as the Winklet Flash object.  If your Winklet is different than that (look for WIDTH="775" in the index.html file) then change it to fit.

And to actually add the form add the following code just below <td align="center" valign="middle">.

<div id="form">
<form action="http://www.example.com/proofbuddy/user/user-script-login.php" method="post">
Client Login <input type="text" name="passcode">&nbsp;<input type="submit" value="Login">
</form>
</div>

You’re going to have to replace the form action with your domain name and the path to your ProofBuddy folder, but leave the /user/user

Bulk uploading files

One of the most common support questions that I get is how to upload a lot of files at one time.  Not that I mind, but when I get the same question over and over it means that the documentation is lacking and I need to add it to the instructions.

There are two ways to upload files to ProofBuddy, by uploading using the Browse… buttons on the add images form and by uploading with FTP and importing. (more…)

Hosted Option now available

For our clients who do not have their own web space or would rather not install ProofBuddy onto their own server we now offer a hosted option. 

With the hosted option you will have 1 gigabyte of storage space to keep your images, enough for around 50,000 images.  You will also always have the latest version of the Professional version of ProofBuddy.  We also take care of installation so all you have to do is sign up, upload your images, and start showing proofs to your clients. 

Hosting is available for $14.95 billed monthly or $99.95 yearly.

Please contact us for more information or to sign up.

Creating a custom page

One of the new features in 1.0 that I’m really excited about, but that hasn’t gotten much exposure, is custom pages.  With custom pages you’ll be able to add a page within your ProofBuddy site that stays within the same design as the rest of your site and has access to a series of data classes giving you access to information on the current album, image, cart, or user. 

Click here for more information on custom pages.

To see examples of custom pages take a look at the White Glass theme.  Custom pages are used in this theme for the comments, image notes, and album notes page.

Website Updates

Our website has been redesigned using Wordpress rather than the CMS package that we had been using.  The biggest change for our visitors is that you will be able to leave comments or questions on almost any page on our site.  This change should make it easier for you to get answers to your questions about ProofBuddy.  

Database backup script

This small script will allow you to download a complete backup of your ProofBuddy database in SQL format. 

Note:  This functionality is available in the Admin -> Tools panel in ProofBuddy starting with version 1.0.

5.1 KiB - 408 downloads

Be sure to read the included readme.txt file.