ThePhig v3.1.0b2
A new beta version of 3.1.0 has been put up for download. The change list is small but I had to correct a few minor bugs that I somehow overlooked. Thanks for the heads up everyone.
Note: I tried to note all the changes and modified files since b1 but I haven’t worked on ThePhig in a while, thanks to life getting in the way so I can’t promise that only the 3 files below were modified. It would probably be best to replace all files if upgrading from 3.1.0b1
Changelog can be viewed below.
v3.1.0b2
- Removed the setting the timezone in the login script. This should not be necessary
- Corrected an issue with creating album icons, using album’s name rather than directory
- Files Modified: admin.php, inc/login.php, template/admin/admin.js

Hi,
thumbs up for this excellent gallery. I need a little help. Can you please let me know how to sort thumbnails in folder by original image name in ascending order./inc/post.php on line 9 /inc/post.php on line 146
Also when trying to swap order of folders in admin panel this error is showing =
Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/evene930/public_html/
Warning: Invalid argument supplied for foreach() in /home/evene930/public_html/
Order Updated = and they stay the same – in order I have created them. How to get this working?
Thank you for your help.
ups, can you please delete my website path from this comment. Cheers
Looking forward for your answer.
I love the interface, very good.
A feature which would be nice is nested folder/albums. Also maybe a login/logout button visible on main screen somehow..
Hi Joe,
Thank you.
I am looking to add nested albums. Unfortunately, I’ve been a bit preoccupied with my day job and haven’t had the opportunity to work on any new features. Hopefully I’ll be able to work on updates soon.
The login/logout button shouldn’t be too hard. This could be accomplished by modifying the template to include a check if the user is not logged in, then display “login.” Something like the following might work:
if ($username) { echo “<a href=’/inc/logout.php’>Logout</a>” }
else { echo “<a href=’/inc/login.php’>Login</a>” }
Hi This is great ! We tried it on our website
)
on the other hand how can we put some pin on the google map to locate the location of the images ???
– Take Care Always
Hi Shecter,
I apologize for the delay in response. The pins should show on the map, similar to the demo, if the original image has GPS coordinates in the exif data. You can attempt to manually modify the database with the GPS coordinates but this can be a bit complicated sometimes.
Yo Ryan, I installed ThePhig v3.1.0b2 and I’m seeing a lot of php notices on index.php. See below. Also can’t see captcha image on /inc/login.php so I can’t login to admin. Please help.
Notice: Undefined index: otp in /gallery/index.php on line 25
Notice: Undefined index: albumID in /gallery/index.php on line 39
Notice: Undefined index: imageID in /gallery/index.php on line 71
Notice: Undefined variable: pageLink in /gallery/index.php on line 96
Notice: Undefined index: page in /gallery/inc/functions.php on line 224
Notice: Undefined variable: lastPage in /gallery/inc/functions.php on line 228
Notice: Undefined variable: totalPages in /gallery/inc/functions.php on line 228
Notice: Undefined variable: range in /gallery/inc/functions.php on line 233
Notice: Undefined index: otp in /gallery/inc/includes.php on line 3
Notice: Undefined variable: albumGmap in /gallery/index.php on line 109
Notice: Undefined index: albumID in /gallery/template/default/header.php on line 4
Notice: Undefined index: tags in /gallery/template/default/header.php on line 5
Notice: Undefined index: albumID in /gallery/index.php on line 114
Notice: Undefined index: imageID in /gallery/index.php on line 183
Hi Christophe,
The captcha issue seems like it could be a permissions issue or something. You should be able to view /gallery/inc/captcha.php in your web browser and see the captcha image. All files except /inc/config.php, should have permissions of 755.
If this still does not work for you, it might be either a problem with your current version of php or the initial installation.
Let me know if that doesn’t help.
This link is not functioning http://www.thephig.com/gallery/?albumID=19 correctly in IE8 but works perfectly in Chrome and Firefox.