Archive

Archive for 2010

Simplified Upload Function

July 9th, 2010 Comments off

Recently the upload function of phTagr was simplified and is enabled as default by now. The older but more advanced file browser could be enabled in the general settings of the user.

By the default the user has an upload button in the menu where he can upload files and ZIP archives. These files are uploaded to a daily created upload directory and are imported automatically. After the successful upload process some of the new imported photos or videos are shown directly in the upload form and gives a great feedback to the user.

This awesome improvement simplifies the technical modeled behavior of the file browser where two separate steps of uploading and importing are necessary to show your media in the gallery. Now new photos could be uploaded and shown in the gallery with only three simple clicks.

upload-function

Have fun while using phTagr!

phTagr spreekt Nederlands

May 31st, 2010 Comments off

I’m very happy to announce that phTagr speaks now Dutch, which was contributed from Remy Wetzels. It’s the first language contribution from the community. Thank you very much! I’m very pleased. The updated version could be downloaded from SourceForge.net.

If your language is missing, please read the instructions on the wiki.

Categories: announce Tags:

New Mailinglist for phTagr

May 8th, 2010 Comments off
phTagr opens now a mailinglist hosted by SourceForge.net. The mailing list is reached via phtagr-gallery@lists.sourceforge.net.

You can subscribe at https://lists.sourceforge.net/lists/listinfo/phtagr-gallery for open discussions, help requests or feature requests.

Categories: announce Tags: ,

phTagr 2.1.1 released!

May 8th, 2010 Comments off

I’m happy to announce phTagr 2.1.1 which simplifies the setup and adds multi-language support. As first language German was submitted. You can submit your language to translation [AT] phtagr.org. See How To Translate for further information.

Further, the geo tagging was improved and some minor bugs were fixed.

You can download it from SourceForge (ca. 2.9 MB). Please do not hesitate to report any success story, bugs or feature request. See How To Help for further details.

Following Tickets where solved since 2.1

Setup and Requirements:

  • Fix #6 (Minimum setup requirements)
  • Fix #74 (Automatic setup redirection)
  • Fix #13 (Customizable gallery title)
  • Fix #64 (Add multi-language support (internationalization))
  • Fix #66 (Fallback of getId3 at ImageFilter if exiftool is not available)
  • Fix #67 (Fallback of getId3 at VideoFilter if ffmpeg is not available)
  • Fix #68 (Include required PEAR files to vendor directory)

Explorer: Geotagging

  • Fix #78 (Resizeable Google Map)
  • Fix #79 (Goto address input for geo map)
  • Fix #25 (Current media selection in map)

General:

  • Fix #80 (Show user of random media at home)
  • Fix #81 (User information is droped on date links)
  • Fix #69 (Incorrect import of south and west geo location in ImageFilter)
  • Fix #82 (Place cakeDebug output into html layout)
Categories: announce, Related Links, user Tags:

phTagr spricht Deutsch!

May 8th, 2010 Comments off

Since r523 phTagr supports multi-languages and supports initially German besides English. A new wikipage describes how to create translations for your language. Please do not hesitate to contribute to this great project and send your language files to translation [AT] phtagr.org.

Thanks to cakePHP which has a build in language detector. If phTagr supports the language of your browser, phTagr will answer in your language.

Categories: info, Related Links, user Tags:

Resize Control PResizeControl for Google Maps

March 20th, 2010 4 comments



This Google map control adds a dynamic resize function to Google’s map API: You can enlarge or shrink the size of your google map via the resize handle in the right lower corner of the map.

The map control PResizeControl is based on map-in-a-box from Wolfgang Pichler (which bases on Dynamically Resize Google Maps With Mouse). Compared to Wolfgang Pichler’s version it is completed as standalone Google Map control. It also embeds the resize handle image and does not need an external image file (only older IE’s below version 8 could not handle embedded data (But IMHO this is a feature – not a bug!). Further you can resize only the height or widht depending on your configuration. Minimum and maximum of height and/or width is also suppored.


<html>
<head>
<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=..."></script>
<!-- Include resize control PResizeControl -->
<script type="text/javascript" src="./presizecontrol.js"></script>
<script>
function initialize() {
  if (GBrowserIsCompatible()) {
    map = new GMap2(document.getElementById("map"));
    map.setCenter(new GLatLng(52.521653, 13.41091), 14);
    // Add resize control PResizeControl with default settings.
    map.addControl(new PResizeControl());
    map.setUIToDefault();
  }
}
</script>
</head>
<body onload="initialize">
<div id="map" style="width: 450px; height: 250px;"></div>
</body>
</html>

Note: The PResizeControl is used in the open-source project phTagr – a social photo gallery for its Geo coding and map display. The javascript file ./presizecontrol.js is extracted from the source of pmap.js of the photo gallery phtagr. Updates of PResizeControl will be commited to the phtagr source.

Variables of PResizeControl

PResizeControl.mode
Resize modes. Possible values are PResizeControl.RESIZE_BOTH, PResizeControl.RESIZE_WIDTH or PResizeControl.RESIZE_HEIGHT. Default is PResizeControl.RESIZE_BOTH
PResizeControl.minWidth
Minimal width of the map. 0 disables the minimum width. Default is 150.
PResizeControl.minHeight
Minimal height of the map. 0 disables the minimum height. Default is 150.
PResizeControl.maxWidth
Maximal width of the map. 0 disables the minimum width. Default is 0 (disabled).
PResizeControl.maxHeight
Maximal height of the map. 0 disables the minimum height. Default is 0 (disabled).

More PResizeControl examples

PResizeControl: Resize Width Only


var resizeControl2 = new PResizeControl();
map2.addControl(new resizeControl2);
resizeControl2.mode = PResizeControl.RESIZE_WIDTH;

PResizeControl: Resize Height Only


var resizeControl3 = new PResizeControl();
map3.addControl(new resizeControl3);
resizeControl3.mode = PResizeControl.RESIZE_HEIGHT;

PResizeControl: Minimal Size


var resizeControl4 = new PResizeControl();
map4.addControl(resizeControl4);
resizeControl4.minWidth = 450;
resizeControl4.minHeight = 250;

PResizeControl: Maximum Size


var resizeControl5 = new PResizeControl();
map5.addControl(resizeControl5);
resizeControl5.maxWidth = 450;
resizeControl5.maxHeight = 250;
Categories: Related Links, source, tools Tags: , , ,

phTagr supports OpenShare Network

January 9th, 2010 Comments off

phTagr joined the OpenShare network which is the first free banner exchange service targeted at open and free source project. The idea is great but simple: You advertise other open source projects – the others advertise your project.

phTagr needs reputation and/or publicity – OpenShare seems to be a fair and great opertunity. Thank you OpenShare and good luck for your idea!

PS: If you know another way how to promote this great project, please speak up!

Categories: Related Links Tags:

phTagr runs on free web hoster!

January 9th, 2010 Comments off

I was just curious if phtagr runs fine on a free web hoster. And yes – it does and does a great job! This entry shows how you can setup your own photo web gallery – totally for free!

I chose the free hoster megabyet.net which comes with

  • Spam and ads free
  • 1,6 GB free storage
  • PHP
  • MySql database

… so all I need for running the gallery.

I signup at http://megabyet.com/signup.php for the free account, entered my new domain (of cause I choose the name phtagr), entered my name, email, and address. Then a captcha – success, I am human. After a few seconds I received an confirmation email with my new web space, username, password for the cPanel, and FTP.

Signup for a free web space at megabyet.net

So login to cPanel  for creating a mysql database – called phtagr, which becomes phtagrme_phtagr.

cPanel of megabyet.net

Successfull creation of a MySQL database

Successfull creation of a MySQL database

In the meanwhile I downloaded the latest phtagr source (r505) and extracted it locally. After doing that I was uploading it via FTP (FileZilla) the provided www directory of my new webspace.

Upload phtagr via FTP with FileZilla

Upload phtagr via FTP with FileZilla

Now its time to setup the new gallery! I opend the setup page of http://phtagr.megabyet.net/setup and followed the instructions. Everything worked fine. The connection to the database and the admin user creation had no problems.

Setup welcome screen

Setup welcome screen

Setup of database connection

Setup of database connection

Setup of admin account

Setup of admin account

I skipped these optional step

I skipped these optional step

As test images I used the screenshots which I did so far. I zipped them, uploaded the zip archive and imported the files after successful upload. Now it was time for some tagging.

Successful upload and extraction of the zip archive

Successful upload and extraction of the zip archive

Some tagging within the photo explorer

Some tagging within the photo explorer

The home page of phtagr

The startup page of phtagr

I wanted also to geo tag some images so I created a new google maps key (you need a google account for it) for the gallery URL http://phtagr.megabyet.net. The key was entered in the System -> Commands and now I was able to geo tag, too!

Entering the new key for google maps

Entering the new key for google maps

Geotagging with google maps

Geotagging with google maps

And as last test I did a WebDAV connection with cadaver to http://phtagr.megabyet.net/webdav. That worked, too!

WebDAV connection to gallery

WebDAV connection to my gallery files

So all in all it made lots of fun seeing this great gallery running on a free web hoster. You can upload your photos, tag them – also with geo location, see your images in the build-in slideshow, add other users with there upload quota, etc.

When do you install your own phTagr?

You can see all screenshots at the demo page or some screenhost at megabyet.net.

PS: What does not worked well was an initial setup at byethost.com where the database connection was not working for some reasons. Also the sending of email did not work out of the box at megabyet.net.

Eliminated Software Requirements

January 5th, 2010 Comments off

I am happy to announce with revision r505 that the software requirements are finally reduced to a minimum! phTagr requires now only a basic LAMP:

  • Webserver (tested with Apache)
  • PHP (tested with PHP5)
  • GD or ImageMagick
  • database engine (tested with mysql)

This change improves and simplifies the initial steps to run this great gallery! Further, the installation documentation was updated and improved.

exiftool and ffmpeg are no longer required to run the basic operations. Further the dependend PEAR libraries are now included into the software. The new version could be downloaded as  ZIP archive or TAR ball – happy  testing.

Without exiftool the meta data like tags, categories or geo location are imported from photos but not be written back to them. Without ffmpeg only flash movies could be imported. If you have ffmpeg other video formats are supported and the videos are automatically converted from AVI, MPEG or MOV to the flash file format. ffmpeg also creates the a video preview. If now preview exists a default image is shown.