Archive for the ‘Development Blog’ Category

Admin Password Reset Script for version 2.0

It happens to everybody... in case you've forgotten the login password to your ProofBuddy site we've put out this script that will reset it for you.  One very important note though.  Once you've reset your password, take the script off of your server. 

1.4 KiB - 54 downloads
Categories:Development Blog
Tags:,

Safari, Mac, and non-clickable links

Need a little help. Is anyone out there using a Mac with Safari on their ProofBuddy site and having problems clicking links on the admin pages? We've noticed on some of the pages we're having issues with links, but from what we've found about the issue online it's possibly an issue specific to the Mac we use for testing.

Any input from those using ProofBuddy with a Mac and Safari would be appreciated. Are the links working for you like they should or do they just not respond to clicks? Most likely it would be either the links on the right side menus or the subtabs under Options.

Categories:Development Blog
Tags:,

Allowing users to auto login

It's been a feature built in to ProofBuddy for a while, but one that's never really been documented.  By creating a link to your site with a special variable you can give your visitors the ability to login automatically without needing to know the passcode to an album.

Let's say you have an album with a passcode of 12345 and your ProofBuddy is setup in the /proofs/ folder on your server.  The following HTML will create a link allowing your visitor to view an album just by clicking.

<a href="/proofs/index.php?p=12345">View your album</a>

Notice the p=12345 after index.php.  That's where you'll enter the passcode. 

But nothing says you can only do text links.  You can also wrap an image in the link and have a photo linking into their album. And you can send these links to clients via email and give them a one-click method to get into their albums.

One note though.  Once your client is logged in, they'll still need to logout to see any other albums.  To ProofBuddy there is no difference in logging in this way or logging in by typing in a passcode. 

If you'd like to see this in action, we use this on our demo site.

Categories:Development Blog

Documentation updates

Need help using ProofBuddy? We've just uploaded an update to our documentation pages. Feel free to look around. Every documentation page has a comment box and you should feel free to ask any questions you may come across.

These pages are also linked from within ProofBuddy. On the top right of each page in the admin side of ProofBuddy is a help link that should take you to the documentation page you need if you have a question along the way.

Categories:Development Blog
Tags:,

Plugin free-for-all

One of the primary new features of ProofBuddy 2.0 was a plugin system.  With the new version it is relatively easy for someone with a little PHP experience to build a plugin that can add functionality to ProofBuddy, add tabs to the admin side, create custom reports, add variables to the client side, or change how ProofBuddy performs certain tasks.

Problem is, we only have about half a dozen ideas for plugins. But we're also not the ones using ProofBuddy on a daily basis for our business.  You are. 

So what features does ProofBuddy not currently have that you would like to see.  What sort of "it would be awesome if ProofBuddy did ..." thoughts have you had using ProofBuddy.  We want to know.  Leave a comment below with your ideas and we'll see what we can do about getting your "what if" into a plugin.

Edit...

Here's what we've got planned, or already have done...

Done

  • Comments List - View all the comments for all your images in one place. 
  • Twitter Feed - Adds a menu to the dashboard viewing our Twitter feed.  Similar to the menu that's already there to view our blog feed.  We're using Twitter as a mix between announcements for ProofBuddy and photo related news we come across and think might be of interest.
  • Google Analytics - Adds Analytics tracking codes to the client side so you can use Analytics to track your client views.

Planned

  • Copy default price lists.  This is the one we're currently working on and should be the next released.
  • Link to this image.  Display a link that your clients can use to post their image into a web page or forum post, with a link back to your site of course.
  • Report that will print cards with the album passcode so you have them to pass out at events.
  • Report similar to the order PDF with more options for customization
  • Plugin to allow you to change the PayPal graphic that's used on the checkout page

 

 

Categories:Development Blog
Tags:

ImageMagick and GoDaddy

If I had to guess, I would say there are more ProofBuddy users hosting on GoDaddy that any other host.  I've never actually counted, but it sure seems like a popular place to host.  So it amazes me that it's taken so long for me to learn that GoDaddy has two different versions of ImageMagick on their servers.

So why does it matter if they have two different versions?  Because the version that is used by default is version 5 and about 6 years out of date.  The biggest loss is no sepia toning in the old version, but as I found out this morning the old version also doesn't work well with watermarking.  Instead of overlaying a transparent PNG like it should, version 5 just puts a semi-transparent white box where the watermark should go.  Obviously not the correct look.

Up until today I've always recommended GoDaddy users change the setting on Options -> Images to use the GD library instead of ImageMagick.  But with version 6 also on their servers you really should be using ImageMagick. 

Fortunately it's an easy change to make.  On the Options -> Images tab you'll need to make sure that the dropdown next to Image Conversions is set to ImageMagick.  Then set the ImageMagick path field to /usr/local/bin .  It may have been /usr/bin which is the path to ImageMagick 5 or it may have been blank.  Either way it was using version 5. 

Here's a screenshot for the visual learners among us. 

Categories:Development Blog
Tags:, , , ,

Adding a login box to your site

It's a question that comes up quite a bit.  And when a question comes up over and over it means that I'm missing something in the documentation.  So if you're looking for instructions on adding a ProofBuddy login form to your main site so your visitors don't have to go to the main login page I've added instructions to the FAQs.

Categories:Development Blog
Tags:, ,

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 - 738 downloads
Categories:Development Blog

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.

Categories:Development Blog
Tags:, , ,

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.

Categories:Development Blog
Tags:, , ,