Google Maps + Gallery

swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Mon, 2005-10-17 03:04

Sweet! Got it all working in G2 embedded mode w/URL rewrite (what a pain!). For now I had to settle with using absolute paths in ShowMap.inc on lines 156 and 162. I added in the GxMagnifier but will now wait for your future updates.
Thanks Termite for your diligent work!

 
TheGoOse
TheGoOse's picture

Joined: 2002-12-31
Posts: 50
Posted: Mon, 2005-10-17 05:26

It's working now... thanks! :)
http://www.ganso.org/gallery/map/

The only problem is that markers pointed to "marker_default.png", as I've not defined the "color" variable in my photos yet, and that file isn't automatically created. I've copied the PNG file I wanted by default with that name and worked fine, but it whould be nice if you could select the default color in another version ;)

 
Lapinoo
Lapinoo's picture

Joined: 2004-05-08
Posts: 378
Posted: Mon, 2005-10-17 11:58

I was dubitative regarding this idea when this thread started some time ago. I must say I'm pretty impressed with the results... I gives me a bunch of ideas!
I hope that this module will be auto-downlodable when the next release of G2 will bring this feature!

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Mon, 2005-10-17 13:01

Well I'm glad it's working as it should finally. I'm sorry for all the trouble caused by this version, it's pretty clear it's not ready for prime time yet :-)

As for the embedded mode, I'm not sure what it is, can you tell me more about it to see if I can help maybe ? I'd like to make the code usuable no matter the install :D

Thanks

-----------------------
The Termite :-)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Mon, 2005-10-17 13:02
TheGoOse wrote:
It's working now... thanks! :)
http://www.ganso.org/gallery/map/

it whould be nice if you could select the default color in another version ;)

It's on my todo, the next beta will have that in it :)

 
lond
lond's picture

Joined: 2005-06-27
Posts: 25
Posted: Mon, 2005-10-17 13:45

It's working now... thanks! :)

//lond

 
TheGoOse
TheGoOse's picture

Joined: 2002-12-31
Posts: 50
Posted: Mon, 2005-10-17 15:40
Termitenshort wrote:
What's left to do
- Add the possibility to select a zoom level for each object

I think I've added that feature ;)

Just create a new "ZoomLevel" custom field, and fill it in the photos you want (the other ones will still use the default zoom-in level). Now, uncompress the attached .ZIP file and substitute both .INC and .TPL files in your beta3 installation.

And... that's it :)

It may be buggy, but... it's my first attemp to edit Gallery code!

 
DDM

Joined: 2005-09-30
Posts: 7
Posted: Tue, 2005-10-18 00:18

For the life of me I can't get the module to work. I had the theme working a couple weeks ago....sorta.

My module page doesn't show the map or anything of the sort, and I can't find anything wrong in the source.

Here's the link to my site, please let me know if you can find anything wrong.
EDIT- Nevermind, I had some quotation marks in a GPS coordinate left in by accident.

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Tue, 2005-10-18 01:47

DDM
Yep, I was just going to reply to tell you that.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-10-18 02:49
TheGoOse wrote:

What's left to do
- Add the possibility to select a zoom level for each object

I think I've added that feature ;)

Just create a new "ZoomLevel" custom field, and fill it in the photos you want (the other ones will still use the default zoom-in level). Now, uncompress the attached .ZIP file and substitute both .INC and .TPL files in your beta3 installation.

And... that's it :)

It may be buggy, but... it's my first attemp to edit Gallery code!

Thanks I'm gonna look at it (i'm sure it's fine;)) and definitively include that in the next release as well :-)

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Tue, 2005-10-18 04:21

As I said earlier I added the GxMagnifier on my site which worked great until recently. The map would load with all the navigational icons and markers but right after the map was fully loaded the magnify icon would disappear. Firefox had no issues. What is going on here! Must be the map module or a css issue but yet I had made no css changes. Weeks ago I added in the PNG fix mentioned in this thread for the Blog area of my site which worked great. A few days ago I made a change so the PNG fix applied to my entire site and for whatever reason it makes the magnify.png icon disappear on IE. Jeez, I spent hours tracking down this issue. Lesson learned; be aware of any and all changes you make no matter how subtle.

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Tue, 2005-10-18 07:47

Convert Latitude/Longitude by DMS into decimal format
Handy tool if you're using Google Earth.

 
tom-the-bomb

Joined: 2005-10-18
Posts: 2
Posted: Tue, 2005-10-18 10:56

at the moment i am setting up a gallery with pictures from my trips. so this module is just perfect for me.
therefore: THANKS FOR YOUR EFFORTS MAKING THIS POSSIBLE.

although the embedded google map is already quite usefull, i still have some ideas on extending the module:

- what i would really love to have are multiple maps for the gallery. meaning an option to create some sort of
category (custom field for each picture and album) to group the markers for the map. this way one could for
instance create a general map for the whole gallery with markers for the different albums. and then one could
create several other maps for the different albums with markers for the different places within the respective
album.

- another nice to have feature i could imagine would be the editing of the GPS field. and by editing i mean an action
for each album and picture which lets you choose the GPS coordinates from another google map.

- and a backlink from a picture to the map saying "show me on the map" - another wish from me

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2005-10-18 13:33

tom-the-bomb,
For your first request you can also have the map theme for individual albums. It works quite similar and it only look for items in a album with GPS info. http://gallery.menalto.com/node/32642?from=100#comment-139249

As for #2 that would be nice. A link only the admin sees to a map that would populate the GPS field. I think that is quite doable but not with my skill set.

3. This is doable as well and a bit easier. But this would be theme specific.

I think that this module is coming along nicely.

Dave

____________________________________________________
Gallery Frames / Mods || G1 Test Gallery

 
dogdog

Joined: 2005-06-10
Posts: 37
Posted: Tue, 2005-10-18 14:10

Hi All,

I have installed the 0.2d map module successful. There is the google map appear on my web link. But when I edit a album and add the Longitude,Latitude to the GPS field, there is no marker show on the map (I add -0.105,51.517 on the field. Is there any step I miss? Thanks for your help! Thanks!

Dogdog

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-10-18 14:12
tom-the-bomb wrote:
- what i would really love to have are multiple maps for the gallery. meaning an option to create some sort of
category (custom field for each picture and album) to group the markers for the map. this way one could for
instance create a general map for the whole gallery with markers for the different albums. and then one could
create several other maps for the different albums with markers for the different places within the respective
album.

This sounds a bit difficult to add directly in the module, but I will put some thoughts into it. In the mean time, the map theme would work great for you ;)

tom-the-bomb wrote:
- another nice to have feature i could imagine would be the editing of the GPS field. and by editing i mean an action
for each album and picture which lets you choose the GPS coordinates from another google map.

That sounds like a great idea, something that would link to another google map and wherever you click it gets the GPS coordinate and then populate them into the field.

I'll be looking into that seems not too hard.

tom-the-bomb wrote:
- and a backlink from a picture to the map saying "show me on the map" - another wish from me

Yeah I was thinking of adding this as well. My todo's just keep growing :). I'm glad that a lot of work was done before I start modifying this module :D

See you !

------------------------
the termite :-)

 
samkuhn2

Joined: 2004-04-13
Posts: 60
Posted: Tue, 2005-10-18 15:21
Quote:
That sounds like a great idea, something that would link to another google map and wherever you click it gets the GPS coordinate and then populate them into the field.

I'll be looking into that seems not too hard.

If you look back at some previous comments by others and myself you can find several pages where this is partially done in googlemaps. I'm sure you can ease your production by peeking at the sourcecode of the pages linked in the comments below:
http://gallery.menalto.com/node/32642?from=50#comment-138337
http://gallery.menalto.com/node/32642?from=50#comment-138091

particularly this page:
http://conversationswithmyself.com/googleMapDemo.html

 
samkuhn2

Joined: 2004-04-13
Posts: 60
Posted: Tue, 2005-10-18 15:26
Quote:
what i would really love to have are multiple maps for the gallery. meaning an option to create some sort of
category (custom field for each picture and album) to group the markers for the map. this way one could for
instance create a general map for the whole gallery with markers for the different albums. and then one could
create several other maps for the different albums with markers for the different places within the respective
album.

This might best be implemented just as a general case of an album that will automatically plot items based on the current file structure. That is, a map will show pushpins for each item in a given album, with unique pushpins for photos vs. albums. Click on an album pushpin and it will refresh to show just the items that are contained at the new album level, etc. If you want a map that has items from multiple albums on it, you can create a virtual album (possible now with SQL backend, right?).

Summary: Map behavior should mirror the structure of the existing gallery.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-10-18 16:51
samkuhn2 wrote:
particularly this page:
http://conversationswithmyself.com/googleMapDemo.html

I saw this page, it's what I;m gonna use to implement that for sure :-)

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Tue, 2005-10-18 21:04
Termitenshort wrote:
In the mean time, the map theme would work great for you ;)

Speaking of the theme. I'm wondering if it might be best to somehow combine the module and theme so they share a lot of the same code. The module or main theme page can store the main settings. Doing this would help keep the feature set between the two consistant. Does anyone know how this would best be accomplished?

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-10-19 04:51

Well i guess I found some free time on my Business trip and here is a new version of this tool:

Changes compared to beta3
- Added the "ZoomLevel" field to give ability to select a zoom per foto (thx ThegoOse)
- Auto create the "ZoomLevel" field first time the Admin panel is brought up.
- Added the choice for albums and photos to choose a default color
- Add the possibility to select a zoom level for each object
- Fixed the module to look for installed directory of gallery2 to display images correctly
- fixed the issue with embedded mode (hopefuly) by looking for the absolute path and displaying it
- rework the Admin page to group areas a bit better
- Added the GxMagnifier tool (this is awesome by the way)
- Fixed a bug in the IE pre-loading
- Fixed the default color for marker (bug)

What's left to do
- Add more option to the admin panel to customize GxMagnifier
- Add an error message when a MakerSet is created and the name is already in use
- Add an upload button to upload new "base icon"
- Add the creation of the icon with characters using the default UTF characters set
- Maybe add a section where you select if you want all the characters or not or no characters.
- Add a theme feature to choose the window styles
- Add the posibility to change the map control style
- Add a theme feature to choose the map control style
- Add more comments to the code
- Ability to autopopulate the custom GPS field based on EXIF tags for photos
- Think about having different MAPs per Album
- AutoPopulate the GPS field by cliking on a google map opened on a new window
- put a "go back to the map" link on pictures and albums
- Open for more?

I hope there is less bugs this time, I have worked a lot on trying to make this independent of where the install is done and such...

I didn't want to add too many things at the same time as I'd rather have a phased approach to avoid massive problems.

let me know :-)

-----------------------
The Termite :-)

 
dukepowers

Joined: 2005-10-19
Posts: 2
Posted: Wed, 2005-10-19 08:20

Great work on the map theme. I have a couple of newbie questions though!

I've got the basic install up and running on my site at
http://www.nickjames.org/gallery2/v/googlemap/

This is just using the basic map install from the Gallery themes page.

The default settings for the theme set 3 rows and 3 columss, I've been having issues adding more than 9 images which would seem related if my basic math is correct :) So I figured I'd just change these values to 5x5 and I should be able to add 25 pictures but instead I can only add 13, any more than that and I get no map showing up.
I don't doubt that I'm doing something stupid probably through not understanding the code. Which code should I modify in the theme to change the display of these thumbnails, for example I'm thinking of having a couple of rows of thumbnails rather than one long one - just keeping a little loop counter and doing a html += <br> after every six thumbs or so. My problem is I don't know where this should go!!

The second area of clarification I need (forgive me, my brain works slow in the morning!) is that I'd like to install the upgraded version of the map theme. Do I just unzip the contents of Termites map-module-0.3beta4.zip into my standard map theme, I can see that there are far fewer files, and then reinstall the theme?

Thanks in advance for any help or calls to RTFM :)
Nick

--
http://www.nickjames.org

 
dukepowers

Joined: 2005-10-19
Posts: 2
Posted: Wed, 2005-10-19 12:40

Ok, I discovered the cause of my first problem. When I had expanded the size of the gallery and added new photos, I had included some photos that were only links to photos in other albums. This seemed to cause the whole map not to render.

I'd still be greatful if somebody can point me in the right direction for changing the thumbnail layouts.

Nick
--
http://www.nickjames.org

 
tom-the-bomb

Joined: 2005-10-18
Posts: 2
Posted: Wed, 2005-10-19 19:42
Termitenshort wrote:
tom-the-bomb wrote:
Quote:
- what i would really love to have are multiple maps for the gallery. meaning an option to create some sort of
category (custom field for each picture and album) to group the markers for the map. this way one could for
instance create a general map for the whole gallery with markers for the different albums. and then one could
create several other maps for the different albums with markers for the different places within the respective
album.

This sounds a bit difficult to add directly in the module, but I will put some thoughts into it. In the mean time, the map theme would work great for you ;)

well, I had a quick look at the module sources and slightly modified showmap.inc and showmap.tpl. in the .inc file I added a fourth query for a custom field "RestrictToMap". and in the .tpl file I added an if condition in front of the createMarker() call which filters all markers except those with an empty "RestrictToMap" field and those with the term "map2" in that field. (the custom field needs to be added manually to the gallery config)
unfortunately I couldn't figure out how to pass a url parameter to the showmap function which would let me allow to dynamically specify the filtering rule. (of course one could also filter when querying the database)
in my fantasy the url param could then be used like this: http://.../gallery2/showMap?map=map2

Termitenshort wrote:
tom-the-bomb wrote:
Quote:
- another nice to have feature i could imagine would be the editing of the GPS field. and by editing i mean an action
for each album and picture which lets you choose the GPS coordinates from another google map.

That sounds like a great idea, something that would link to another google map and wherever you click it gets the GPS coordinate and then populate them into the field.

I'll be looking into that seems not too hard.

yes, please do so. thanks a lot. :)

Termitenshort wrote:
tom-the-bomb wrote:
Quote:
- and a backlink from a picture to the map saying "show me on the map" - another wish from me

Yeah I was thinking of adding this as well. My todo's just keep growing :). I'm glad that a lot of work was done before I start modifying this module :D

well, this is actually what I just have seen in your theme. as soon as one clicks an album, the appropriate marker will be shown. so, if one could turn this into a popup with a map (one with a url param as explained in #1) and an open marker for the selected photo... :) :) :) :)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-10-19 21:24

For the category field I was thinking of a simple idea from what samkuhn2 was saying "based on the file structure"

Imagine your gallery having this format:

- Album 1 (with "map category" in the GPS coord)
- subalbum1 (with GPS coord)
- subalbum2 (with GPS coord)
- subalbum3 (with GPS coord)
- photo1 (with GPS coord)
- Album 2 (with "map category" in the GPS coord)
- subalbum1 (with GPS coord)
- subalbum2 (with GPS coord)
- photo1 (with GPS coord)
- Album 3 (with "map category" in the GPS coord)
- subalbum1 (with GPS coord)
- photo1 (with GPS coord)
- photo2 (with GPS coord)
etc ...

I was thinking of something where on top of the map, the category would show up as thumbnails based on the album thumbnail, then when you click on a category only the albums and fotos that are under this category with GPS coordinate would show markers on the map.
If you click a different category, the map gets updated with the new markers from that category

I guess it's an idea among multiple.

For the "Action" button beside the GPS field, it requires to modify the CustomField module, if you guys thinks it's ok, I'm more than willing to do it. BUT i was thinking of an idea where it would be a link on the right end-side of the interface ... to be decided.

I will be back from my trip soon and coding away a bit more so I will be figuring out what is the easiest way to approach those changes

There is some easier to implement changes that I'm gonna do first thought ;-)

----------------------
The Termite :-)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-10-19 21:25

has anyone tested the new beta4 and found any issue with it?

It seems to work fine for me on 2 machines so I'm expecting for it to be just fine. but just in case ... :)

----------------------
The Termite :-)

 
TheGoOse
TheGoOse's picture

Joined: 2002-12-31
Posts: 50
Posted: Thu, 2005-10-20 05:32

I tried it and it's fine while you don't activate the GxMagnifier tool. When I check that option, the map is empty. As I really don't need that feature, I've not tested it more.

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Thu, 2005-10-20 05:58

Termite
Tried out Beta4 and it works great minus the issues with embedded G2. Still have the same issues. I configure the mod while in G2 standalone. The mod is broken for embedded mode except for the top portion of the page. (See attached screenshot) and then to view the map I have to edit a few of the files. I briefly browsed over your updated code to grab the G2 base directory and absolute url which it seems should work but no go. If you require the details it will take me some time to document. If you had a G2 embedded environment using WP or Mambo most if not all the issues would (should) be quite obvious to you. Also, url rewrite adds some complexity into this issue and may differ for other folks depending on their site configuration. I believe shocksll has G2 embedded with Mambo but think he's using his map theme and not this map mod. I can live with this minor annoyance but as you said earlier it would be nice for it to 'just work' regardless of standalone or embedded modes.

 
nackjf

Joined: 2005-03-02
Posts: 16
Posted: Thu, 2005-10-20 07:45

Greetings -- I had the same problem. Check out header.tpl under templates and change the path to be reflective of the correct path to the gxmagnifier script (i'm using gallery vice gallery2). Good Luck!!

BTW -- Great work by everyone on the Module!!

 
TheGoOse
TheGoOse's picture

Joined: 2002-12-31
Posts: 50
Posted: Thu, 2005-10-20 08:19
nackjf wrote:
Greetings -- I had the same problem. Check out header.tpl under templates and change the path to be reflective of the correct path to the gxmagnifier script (i'm using gallery vice gallery2). Good Luck!!

Thanks!
I've found it and I can now see the map after checking the GxMagnifier checkbox, but I still can't see the magnifier icon on the top.

I've seen the source code (http://www.ganso.org/gallery/map/) and there are not /gallery2 references now, but it still doesn't work.

Anyway, that's not a problem for me, as I won't use GxMagnifier. I've already deleted template cache, by the way.

 
dogdog

Joined: 2005-06-10
Posts: 37
Posted: Thu, 2005-10-20 08:59

Hi Termitenshort
I have installed the 0.3beta4 version. But when I create the marker, it said "Unknown error creating the markers!" U have any idea on it? Thanks a lots!

Dogdog

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2005-10-20 13:15
dogdog wrote:
Hi Termitenshort
I have installed the 0.3beta4 version. But when I create the marker, it said "Unknown error creating the markers!" U have any idea on it? Thanks a lots!

Dogdog

it seems quite unknown :-). sorry ...
Usually this error appears when imagemagick isn't installed or not accesible. On my windows box after installing imagemagick I had to reboot for it to work ??!
And also make sure that the directory where imagemagick is installed is in the %path%

i.e. on the command line (or console for linux) just type "convert" anywhere to see if the program can be found

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2005-10-20 13:19

I see that there is some issue with the GxMagnifier tool and that is not surprising, the way it is coded is meant for it to be located on the root of the webserver, so I needed to make some changes for it to work at all.

I had the same problems that you all are having (no map first and then no images) and I thought I fixed them but I guess it was only fixed specifically for my install.

I'll be looking into this some more.

Thanks!!

-----------------
The Termite :-)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2005-10-20 13:49

I am working on customizing the controls.
Attached is a shot of what I have so far. I was thinking of making a few.... sort of like frames and have a control.inc file similar to the frames in /gallery2/modules/imageframe/frame/framename.inc.
It would reside in a module directory and have the images and the sizes.
I envision a tab on the admin portion of the module to have a dropdown or radio buttons of the customized controls.

Then in the ShowMap.tpl file there would be a check to see if custom control was chosen and include() a control.tpl file that would overlay the control icons.

I have some of the code done and it needs to be cleaned up and commented. I also need to create a few control "sytles".

Termitenshort what do you and everybody else think?
If you like it I think we should "tab" the admin page so separate things a bit.

If you think this is a good Idea I will continue.

Dave

____________________________________________________
Gallery Frames / Mods || G1 Test Gallery

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2005-10-20 14:46
floridave wrote:
I am working on customizing the controls.
Attached is a shot of what I have so far. I was thinking of making a few.... sort of like frames and have a control.inc file similar to the frames in /gallery2/modules/imageframe/frame/framename.inc.
It would reside in a module directory and have the images and the sizes.
I envision a tab on the admin portion of the module to have a dropdown or radio buttons of the customized controls.

Then in the ShowMap.tpl file there would be a check to see if custom control was chosen and include() a control.tpl file that would overlay the control icons.

I have some of the code done and it needs to be cleaned up and commented. I also need to create a few control "sytles".

Termitenshort what do you and everybody else think?
If you like it I think we should "tab" the admin page so separate things a bit.

If you think this is a good Idea I will continue.

This is definitively a great idea, I started to separate things a bit already but a tab is a better idea (i'm not sure how to do it though) I thing the second tab should have all the things related to the "themes":
- Markerset
- default colors
- A button to launch the marker creation tool in a small window (i was thinking about that already to clear up the space)
- A theme selector (dropdown) to select controls and a button to another tool to create sets
- Another theme selector for the infowindows on the map itself ....

This module is definitively comming along pretty well. I love this idea of a tab to separate things up.

I will stop changes for a bit until the tab thing is setup and work on the side at the separated tool and the action button to auto-select GPS coord.

Awesome !

-------------------
The Termite :-)

 
dogdog

Joined: 2005-06-10
Posts: 37
Posted: Thu, 2005-10-20 14:57

Hi Termitenshort,

Thanks for your reply. I have installed imagemagick and worked fine in my gallery. I also found that in the map, it can show the "shadow" of the marker and when I click the "shadow" , the album can appear! Now just dono why can't shown the "real" image of the marker! Sorry for disturb your time again!

Dogdog

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2005-10-20 14:58

swordfish: I'm gonna install an embedded mode on my windows machine at home and then try to figure out a way to fix this.
At this point I will be looking into this first while floridave works on the Admin panel revamp :-)

--------------------
The Termite :-)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2005-10-20 15:16

The Termite :-)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2005-10-20 15:18
Quote:
This is definitively a great idea, I started to separate things a bit already but a tab is a better idea (i'm not sure how to do it though) I thing the second tab should have all the things related to the "themes":

Actually I figured out how to do the Tab thing ... pretty easy in fact. Ii's just new to me :D

I'm gonna finish this today and make a beta5 with some fixes as well

-----------------------
The Termite :-)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2005-10-20 20:12
The Termite wrote:
At this point I will be looking into this first while floridave works on the Admin panel revamp

I have very little G2 coding experience and would feel more comfortable if you keep going and leave a tab open for the 'buttom theme'. I envision it taking up a full tab.

I will now have to dig through your code to see how you get the DB info. I will then post some code or a modded version.
I think it is better if one person keeps things in order and I think you are the one for that since you have done a great job so far.
Don’t let me slow you down.

Dave

____________________________________________________
Gallery Frames / Mods || G1 Test Gallery

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-10-21 00:03
floridave wrote:
Quote:
At this point I will be looking into this first while floridave works on the Admin panel revamp

I have very little G2 coding experience and would feel more comfortable if you keep going and leave a tab open for the 'buttom theme'. I envision it taking up a full tab.

I will now have to dig through your code to see how you get the DB info. I will then post some code or a modded version.
I think it is better if one person keeps things in order and I think you are the one for that since you have done a great job so far.
Don’t let me slow you down.

Dave

No problem I actually got it to work and will be posting this soon ;)

I basically kept the "general setting" and "gxMagnifier on a tab and move the rest to a 2nd tan, the marker creation tool is now removed and accessible via a "ADD" button on the theme tab

Cya

--------------------
Termite :-)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-10-21 02:01

Here it is:

Changes:
- Revamp the admin interface
- Made a change to resolve issue with GxMagnifier (hopefully)
- Added the possibility to delete MarkerSets

Let me know !

-----------------------
The Termite :-)

 
makro
makro's picture

Joined: 2005-10-10
Posts: 12
Posted: Fri, 2005-10-21 04:52

beta5 does not work embedded in joomla/mambo, though beta2 did, or did i miss sthg important? GxMagnifier is working standalone, but also no markers (Map-Theme is working fine, and i have cleaned all caches/buffers)

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Fri, 2005-10-21 05:07

Makro
Yes this is a known issue with G2 embedded; although not all the issues are yet known. Termite is investigating embedded mode. I had to modify the files in order for it to work with WordPress. Mostly path issues. You might be a good candidate for testing this mod with Mambo :-).

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Fri, 2005-10-21 05:32
Termitenshort wrote:
swordfish: I'm gonna install an embedded mode on my windows machine at home and then try to figure out a way to fix this.
At this point I will be looking into this first while floridave works on the Admin panel revamp :-)

--------------------
The Termite :-)

FYI, I have my directory structure setup as follows.
G2: /var/www/localhost/htdocs/gallery2

Wordpress: /var/www/localhost/htdocs/blog

Using URL Rewrite I have an entry in my .htaccess as follows.

RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d [OR] 
    RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
    RewriteCond %{REQUEST_FILENAME} !blog/wp-gallery2\.php
    RewriteRule .   -   [L]

    RewriteCond %{THE_REQUEST} \ /blog/map/(\?.|\ .)
    RewriteCond %{REQUEST_FILENAME} !blog/wp-gallery2\.php
    RewriteRule . /blog/wp-gallery2.php?g2_view=map.ShowMap   [QSA,L]    

The path issues seems to be caused by the absolute and relative paths not being resolved correctly. For instance even though my map loads with the icon markers I still get the icon markers not found in my Apache error log. Its pointing to /var/www/localhost/htdocs/images/map/12x20/marker_BLUE.png
which it should be /var/www/localhost/htdocs/gallery2/images/map/12x20/marker_BLUE.png

 
TheGoOse
TheGoOse's picture

Joined: 2002-12-31
Posts: 50
Posted: Fri, 2005-10-21 05:33

Ooops... I still have problems when putting GxMagnifier on :(
I haven't found any more /gallery2/ references, though.

Aditionally, even if I select blue color by default, markers are red.
The problem seens to be that http://www.ganso.org/gallery/images/map/GansoMarkers50/marker_BLUE.png is actually red ;)

Thanks for your work, as always :)

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Fri, 2005-10-21 05:46

Yea, I like the idea of custom controls and the tab idea.
What about the possibility of adding a sidebar.? Replacing the G2 theme sidebar with a Map specific sidebar. The sidebar like the G2 themes would be optional via the admin interface of enabling or disabling it.
The sidebar for starters could have map links that display maps with different markers.
Ability via Admin interface to name each map with different Map Title.
Marker sets can be Global and/or different marker sets for each Map created.
Option to display or disable each of the below for the sidebar.

For example:

** MAPS **
-- My travel Map (displays icon markers of places you vacationed)
-- Home ports of US Naval Warships
-- Locations of family relatives (possible to tie this into G2 security where only specific G2 users or Group has permission to view.?)
-- Etc..

** Map Albums **
-- Links to corresponding Albums linked to the Maps (takes you to the Photo Album)
-- Links to corresponding Images linked to the Map (specific images and or markers you want all to see - higher visibility)

** Thumbnails **
-- Thumbnail of newest Map (clicking it displays the map)
-- Thumbnail of latest image plotted on a map (clicking it would load the map if not already displayed and zoom-in)

** Pulldown Menu **
-- jump to Map (keys off the Map titles)
-- Jump to Album (only has Albums that are relative to the maps)

** Instruction Box **
Short summary of how to use, navigate the map

** Map Legend **
Specify what the colored markers imply.
-- Green = Album
-- Red = Single Image
-- Blue = Family vacations

Don't know what it would take to pull all this off or if its even worth doing but please regard this as 'code for thought', not a request.

(I think this topic is going to set a record on number of posts :-).

Thanks!

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Fri, 2005-10-21 05:57

TheGoOse,
Does the magnify.png even appear on your map or just a red 'X'?
Did you edit GxMagnifier.1.js ? Search for magnify.png and spacer.png and change the paths from 'modules/map/magnifier/magnify.png' to '/gallery/modules/map/magnifier/magnify.png'

magnify.png is specified twice in the file. This worked for me but I'm also running G2 embedded mode. Sorry, don't know about the marker colors.

 
TheGoOse
TheGoOse's picture

Joined: 2002-12-31
Posts: 50
Posted: Fri, 2005-10-21 07:41

I've seen that GxMagnifier.1.js didn't even load, so I've changed HEADER.TPL, replacing "modules/map/magnifier/GxMagnifier.1.js" with "/gallery/modules/map/magnifier/GxMagnifier.1.js", and now the map works, although I see no magnifier icon.

I have now a problem when uploading files to my server, so I can't now edit GxMagnifier.1.js contents, but it looks you are right with the paths problem.

Thanks...

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-10-21 15:16

Well ... I see there is many info for me to work from and try to fix them :-)

1- for the GXMagnifier issue, i need to figure something out, I think I will use my variable that looks for absolute path. And since there is many issues with paths as everyone as different paths I will make a "mini-setup" to configure the location of the modules and the location of the pictures in the module when installed (kinda like for imagemagic, you need to tell where it's at)

2- for the marker that says BLUE and is RED .. I have not a single clue what happened there !!! I guess something went south with ImageMagick. TheGoOse Can you please look if the other markers got their color changed ?

3- I think there is also a way for some files to be copied to other places when the install is triggered (i will be looking into that). This will fix all problemes with GxMagifier and also help for the "action" button beside the CustomField GPS

4- The idea of a side bar is actually awesome but I have no idea how to go about doing this :-). I guess I'll have look at some code done for the themes, maybe it isn't that hard but I guess at this point it goes beyong my current skills :D

We shall see. and Soon a new release of that beta :)

--------------------
The Termite :-)