So I'm new to ZenPhoto and am working to create a theme that does what I want (real dearth of themes for the 1.2+ release...). Hoping someone can provide some guidance.
Basically I'm looking for a Slimbox using Default theme (slimbox image display from the Album page) with Google Maps incorporated into Album as well (with locations for all images on page). While I was able to figure out how to do the first part after some digging (why isn't an option for this in the default theme?), the real problem has been the Google Maps integration.
The issue is that, while I can get the map to display inline using the explicit reference below:
`<?php printAlbumMap(NULL, G_NORMAL_MAP, 700, 450, NULL, true, 'googlemap' ); ?>`
The problem is that I can't for the life of me get it to display icons for all the images on the page. For example, each album page has 18 images, and I want 18 icons on the map. What I do get is one icon, which when clicked opens a blank callout box. The interesting thing is that the box is very narrow/compressed, as though it's totally empty.
What's the deal? Do I have to do something special to build an array of image coordinates that then get loaded into the map? I'm using printAlbumMap... ARGH. Very frustrating.
FYI, my long term plan for this theme is to have both the album and map views available as "tabs"... in other words, the user can view the album page as a collection of images (18 image thumbnails, which will be the default) or can click a the "map" tab to replace the thumbnails with a map (with the 18 image thumbnails plotted).
Pretty simple, right? So how do I get more than one coordinate on that stupid map?!?!?
Thanks,
Rick
Comments
1) Couldn't take the time to highlight what rule you "think" I broke.
2) Couldn't take the time to provide some help or guidance (which one would think a "Chief Developer" would be equipped to do).
On the first topic, I haven't violated one of the rules in that list, so if you'd like to accuse me of something I suggest you actually do so. I spent about two days scouring not only your development wiki, but your forum, the internet in general, and the themes developed by third parties (in the hope that someone had actually coded a solution for this). I didn't use foul language, I didn't ask for a new service.
What I did do was ask, in your publicly available web forum, why a service within the core package wasn't working the way it was supposed to work, despite the fact that I have followed the examples posted in your own forums.
I guess I could have asked why basic options or derivatives of themes that would take 5 minutes to implement weren't just implemented as part of the recent release... but see, I didn't want to come across as all hostile.
Thanks for being absolutely not helpful Mr. Chief Developer. My reply would be "if you don't want to help just stay out of the way."
Best,
Rick
The questions you asked are not really Zenphoto specific as google map related. Many people do not read the rules or search at least themselves before asking. You did so sorry for this.
I guess I could have asked why basic options or derivatives of themes that would take 5 minutes to implement weren't just implemented as part of the recent releas
Google maps is a plugin and therefore optional (also google maps is mainly a user contribution). We decided not to implement everything to not bloat themes. Generally it is not that hard to add one function to your theme if you need it.
I am sorry I can't help also as I never used google maps at all. I hope that clears it a little. But of course maybe some of our users may be able to help with your problem.
Thanks for the thoughtful and responsive post.
The Google maps plug-in is included in the core release of the package, and as such I think that how it interacts with and functions is an aspect of ZenPhoto. I've worked on a lot of OSS projects, and plug-ins and secondary services are generally considered "of interest to and within the bounds of" the application.
To broaden the aperture a bit, if you don't foster vibrant communication and collaboration among the folks who use the software you can basically guarantee that the project will whither on the vine and be replaced by a project that does. If you think about the major OSS projects you you know of they all have very active communities that talk about every aspect of the application, including plug-ins and secondary services.
My opinion (and it's just an opinion) is that the mapping API should be more readily and fully incorporated into the core themes you provide. The reason is simple; along with asynchronous and cinematic presentation libraries (e.g., Slimbox, or any of 20 other JS techniques) it is probably one of the more critical features that can make a solution viable. I've specifically held off on OSS photo software because of the difficulty integrating mapping.
Anyway, thanks for the offer of help... not sure what I'll do yet, playing with bagging ZenPhoto and going with something else after this experience, but if I keep it and mod it I'll post the working theme when done.
sbillard:
Man, you really are a piece of work. I mean, seriously dude, are you for real?
I included detailed information about my problem as well as the following specifics:
- Release information (1.2+)
- Exact code I was using (printAlbumMap)
- Where I was using it (Default theme, album.php)
There isn't anything more than that and an explanation needed for someone who knows
a) ZenPhoto, and
b) the mapping plug-in
to respond with "album.php needs X library and it isn't included." To say "I didn't take the time to provide information" is a cop-out, and a lame one at that.
Face it, you're basically trolling this board providing rote responses after cursory review of a user's post. In fact, I would guess that you STILL haven't read my post in detail, because if you had you wouldn't have posted your most recent reply (which is, again, completely inaccurate). The thing I find amazing is that you take the time to post to threads where you have neither an answer nor a motivation...
Anyway, I think I'm pretty much done with ZenPhoto. OSS folks can be a prickly bunch and protective of their turf, but the kind of "GO AWAY" message you sent with your original (and subsequent) replies has been enough to leave a bad taste in my mouth. You get more flies with honey, son, so stop spreading around the gasoline.
-Rick
If you look around you probably would see that we help often a lot more (and faster) than it happens on other OSS project's forums... Zenphoto exists for quite some years and we are a much smaller team than on other OSS project. No way comparable with project like Joomla, Wordpress or the like. Actually sbillard and me are currently the only really regulary working devs on Zenphoto! We just don't have that much resources.
Face it, you're basically trolling this board providing rote responses after cursory review of a user's post.
You should really know that billard is actually the "heart of Zenphoto" currently and he is responsible for many, many features that I for example never had the time or knowledge to do. If he would not be the Zenphoto project probably had died quite some time ago..... Just take a look at the changelogs or plugin credits of the last year to proof this.
As said before I can not help with google maps itself but for the tabs you want to use maybe. You might search the jQuery site (jQuery is our default js libary) for "jQuery tabs" andi it's usage. These libary is already present in the /zp-core/js folder but only used on the admin backend. So you need to included it into your theme and adapt it for it.
CALM DOWN
< dont like troubles