Nov 20

Time has come for Coppermine Photo Gallery to stroll in to the blogging world. Abbas Ali, a CPG Dev Member has set up a WordPress blog called CPG Dev Team Blog for the devs to post about programming, web applications, technical stuff and all-things-coppermine. I’m very proud to be considered a member of the Dev Team but my main accomplishments have been porting several WordPress themes to Coppermine so that users can seamlessly use WordPress and Coppermine together in the same theme. True I do support the users through the support board and occasionally develop a hack or two (Comment List for CPG for example) but the real magic is in the easy to install and use features of Coppermine that come from all the selfless hard work of the coders and support devs. Coppermine is a free open source application so if you’re looking to display or share any type of media (images, photos, music, video, etc) online, give Coppermine a try.

written by Billy \\ tags: , , , , , , , ,

Oct 19

Hey! Why should Wordpress have all the cool features? I really like seeing the latest comments in a sidebar on blogs that I read and thought why shouldn’t this be something for Coppermine Photo Gallery. If you can leave comments on photos then you should be able to see the latest ones without having to view the “Last Comment” and wait for the images to load. So with that I give you the hack to display the latest comments on your gallery.

This hack is using the i3Theme Classic Center Edition from MangoOrgange that I’ve ported to Coppermine and changed the color scheme. It’s called MellowYellow and it’s really easy on the eyes. The code additions are easy to implement because in most cases all you have to do is copy and paste the below code into your theme.php file. I’ve outlined the specific instructions where this may not be the case.

Copy and paste the below code into your theme.php before the ending “?>” tag.

{code type=php}
// This function is for displaying latest comments in list form in a sidebar.
// Change the number of comments to display by editing “$comment_cnt”.
// Please acknowledge use of this code by including this header.
// Develeoped for Coppermine Photo Gallery by Billy Bullock – www.billygbullock.com
function lastcomments()
{
global $CONFIG;
$comment_cnt = 4; //change this number for comments to display
$select_columns = ‘p.aid, p.*, msg_body, msg_author, UNIX_TIMESTAMP(msg_date) as msg_date’;

if (USER_ID) {
$query = “SELECT $select_columns FROM {$CONFIG['TABLE_COMMENTS']} as c, {$CONFIG['TABLE_PICTURES']} as p WHERE approved = ‘YES’ AND c.pid = p.pid ORDER by msg_id DESC LIMIT $comment_cnt”;
$result = cpg_db_query($query);
}else{
$query = “SELECT $select_columns FROM {$CONFIG['TABLE_COMMENTS']} AS c, {$CONFIG['TABLE_PICTURES']} AS p, {$CONFIG['TABLE_ALBUMS']} AS a WHERE c.pid = p.pid AND p.aid = a.aid AND approved = ‘YES’ AND visibility = 0 ORDER by msg_id DESC LIMIT $comment_cnt”;
$result = cpg_db_query($query);
}

while ($row = mysql_fetch_assoc($result)) {
if ($CONFIG['enable_smilies']) { //displays smilies if enabled in configuration. Also need “function process_smilies_custom” & “function get_smilies_table_custom()”.

written by Billy \\ tags: , , , , , , ,

Dec 20

Here’s a Firefox extension with moxie. “Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.” Plus there’s even a lite version for integration with IE, Opera and Safari. If you’ve used the Web Developer extension for Firefox, create themes and websites or just likes to see what makes something special work in a web page, you’ll want to take a look at this awesome tool.

Check out this screencast by Jesse Newland.

written by Billy \\ tags: , , , ,