CK-Gallery is now UberGallery
CK-Gallery has been updated to version 1.5.0 and renamed to UberGallery. Also, it’s found it’s own home with all the same CK-Gallery awsomeness at http://www.ubergallery.net.
CK-Gallery has been updated to version 1.5.0 and renamed to UberGallery. Also, it’s found it’s own home with all the same CK-Gallery awsomeness at http://www.ubergallery.net.
This is an update to the previous post found here: http://www.web-geek.net/posts/2008/10/20/calculate-the-first-friday-of-next-month-with-php/
With this update I have drastically reduced and simpified the code to produce the same results. I did some rigorous testing of my own to make sure this script will calculate the correct date, but that doesn’t mean it’s bullet-proof. If you find a bug, please email me so I can fix it.
first-friday.php
<?php // first-friday.php v0.1.3 by, Chris Kankiewicz <http://www.web-geek.net> // Calculate next Friday for ($x = date('d'); $x <= (date('d') + 6); $x++) { $timeStamp = mktime(0,0,0,date('m'),$x,date('Y')); if (date('w',$timeStamp) == 5) { $nextFriday = mktime(0,0,0,date('m'),$x,date('Y')); } } // Check if next Friday is the first friday of the month. if (date('d', $nextFriday) <= 7) { $firstFriday = $nextFriday; } else { // Calculate first Friday of next month for ($x = 1; $x <= 7; $x++) { $timeStamp = mktime(0,0,0,date('m')+1,$x,date('Y')); if (date('w',$timeStamp) == 5) { $firstFriday = mktime(0,0,0,date('m')+1,$x,date('Y')); } } } // Echo next first Friday echo date("F j, Y", $firstFriday); ?>
CK-Gallery 1.1.1 has been pushed. This update is primarily miscelaneous fixes. Along with this update are 2 other updates not directly related to the core software.
The first is a new software page found at http://code.web-geek.net/ck-gallery. This page will be the future location of all the CK-Gallery documentation.
Second, I have registered a twitter account that you can follow to get updates to the gallery. You can follow the updates here: https://twitter.com/ckgallery.
1.1.1 Changelog
[ Changes to 1.1.1 ]
- URLs now point to new CK-Gallery page, http://code.web-geek.net/ck-gallery
- Error messages will no longer be displayed if the update check can't
connect to the update site
- Added title text on pagination link
- Moved functions to bottom of file
- Minor code changes
I have just pushed CK-Gallery version 1.1.0 to SourceForge. This release includes a notification system that will display a notification bar across the bottom of the gallery whenever an update to the gallery is available. This feature is disabled by default to preserve your galleries aesthetic nature.
1.1.0 Changelog
[ Changes to 1.1.0 ]
- Added an option to enable update notification (disabled by default)
- Moved most in-line CSS into gallery.css reducing generated code
- Corrections/changes to the Readme for this version
- Other minor style sheet changes
The following is a quick list of optimizations that, in my years of web development, I have observed will help increase your sites search engine ranking. While none of these processes are guaranteed to make your site #1 in Google overnight, I can promise that by implementing all (or even some) of these items, in time your site’s rank will rise.
The following items are clean, honest ways to optimize your site. I do not condone, nor solicit, any form of “black hat” search engine optimization and frown upon it greatly. If that’s what you’re aiming to implement, I sincerely hope that Google blacklists your site tomorrow. Please don’t send me any emails asking how to get your sight listed as #1 tomorrow.
Now, onto the list.
CK-Gallery version 1.0.1 just released. This addresses a small display bug with the page navigation when you are running the script in your own web page.
[ Changes to 1.0.1 ]
- Style changes to fix a display bug with the pagination navigation when the
script is installed to a pre-existing web page
- Changed PHP compression code
- Updated Readme to reflect these changes
- Miscellaneous index.php changes
Well, it’s finally here, after approximately a month and a half, many late nights and many liters of caffeine, version 1.0.0 of CK-Gallery has been released! Version 1.0.0 introduces a few new features, the most noticeable to the end user being dynamic pagination. Just open the script, edit a single value specifying the number of images you’d like to display per page, and the script will dynamically generate your pages and the menu to navigate between them.
Behind the scenes much work has also been done. Not only have I improved the speed and reliability of the gallery, but I’ve also managed to improve compatibility with older versions of PHP as well. Also, GZip compression was enabled on the default index.php to help reduce load time and bandwidth when possible. And don’t even get me started on the number of bug fixes I’ve resolved!
I have been hard at work late into many nights to get this up and going. With the update to version 1.0.0, CK-Gallery now has dynamic pagination. This will let users with larger galleries split the gallery up into several smaller pages and allow visitors to easily navigate to those pages via a small navigation bar below the gallery. This beta must have seen 20+ operational sub-versions before reaching the point you see here.
While dynamic pagination is the biggest update, and most relevent to the end user, there are many other updates as well. Here is the changelog for version 1.0.0: