Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - host

Pages: 1 [2] 3
16
hallo!
vielleicht benutzt du mal die suchfunktion..
und gebe "exif" und "google" ein.. vielleicht findest du hier im forum ja etwas..  8O

Hey Loda,

sorry, aber diese ständigen Hinweise auf die Suchfunktion nerven gewaltig. Ich WEISS, dass es eine solche Funktion gibt.

Wenn Du mal Deinen Vorschlag ausprobiert hättest, würdest Du sehen, dass es eben keine adäquate Ergebnisse gibt.

Nix für ungut  :?

Hi COMmander,

auch nix für ungut, aber die Suche bringt ein ziemlich gutes Ergebnis:
http://www.4homepages.de/forum/index.php?topic=3274 (ziemlich hinten,bei mir die vorletzte Seite des Threads)

Genau da diskutierte mawenzi mit... so wie ich das gerade überflogen habe, findest Du die Lösung genau dort :-)

Grüße
Holger

EDIT: ivan war ein paar Minuten eher wieder hier :D

17

Hallo,

coool!  :!:

Gibt's eine Möglichkeit, die Koordinaten direkt aus den EXIF-Daten zu beziehen (ein gecodetes Bild natürlich vorausgesetzt).

Mein Plan: wenn ein Bild angezeigt wird, bei dem die GPS-Daten integriert sind, dann soll die GoogleMap angezeigt werden - wenn keine diesbezüglichen Daten da sind, soll das Fenster wegbleiben.

Geht das was??


Mit den EXIFs habe ich mich noch nicht beschäftigt... kann Dir also leider nicht weiterhelfen :-(

Grüße
Holger

18
Hat da jemand mal nen Link für mich? Würde mir das gerne mal anschauen...

Danke!!!

z.B. hier   http://gallery.holger-stroeder.de/img241.htm
(nach unten scrollen und bei Google-Maps rechts "anzeigen" anklicken...)

Holger

20
hi holger, ich glaube es hat sich mit einem mod geschnitten
nun dein mod läuft einwandfrei.

echt genial
nochmals danke!!



Dann ist ja gut - Danke für ausprobieren :-)
Holger

21
hi holger,
vielen dank für die super integration in 4images.
ich habe mir das ganze mal installiert, bekomme aber bei der details seite nur
einen weissen inhalt dort wo die map sein sollte, es kommt auch keine fehlermeldung.

der key ist installiert, nach der anmeldung habe ich mit dem angezeigten html code
eine map aufrufen können.

wo könnte hier der fehler sein?

gruss ivan

Hi Ivan,

hast Du mal nen Link auf ein Bild wo das passiert?

Grüsse Holger

22
Mods & Plugins (Releases & Support) / [MOD] Google-Maps Integration V.01
« on: February 11, 2007, 01:12:06 PM »
A few words up-front...

This is my first MOD and I've just started with PHP - so... some of the coding could be much better, I'm sure.
Please feel free to correct anything 'stupid'  :D

Most of the work is based on other webpages, where I found Google maps integrated - thanks to all (especially mawenzi!)


Please make a backup of your 4images installation - all changed files and the database
This MOD was written and tested with 4images V1.7.4




1. Changed files:

/includes/db_field_definitions.php
/lang/<your_language>/main.php
/details.php
/templates/default/details.html

2. Changed DB table
4images_images



Step 1

Add the following fields to the database table 4images_images
image_gmap_longitudevarchar(20)
image_gmap_latitudevarchar(20)
image_gmap_zoomchar(2)
image_gmap_typetinyint(1)
image_gmap_showtinyint(1)

Step 2

Open /includes/db_field_definitions.php

Find:
Code: [Select]
?>
Add before

Code: [Select]
// >>>>>>>>>>>>>>>>>> [MOD] Google-Map >>>>>>>>>>>>>>>>>>
// Additional fields for Google-Maps:
$additional_image_fields['image_gmap_latitude'] = array($lang['image_gmap_latitude'], "text", 0);
$additional_image_fields['image_gmap_longitude'] = array($lang['image_gmap_longitude'], "text", 0);
$additional_image_fields['image_gmap_zoom'] = array($lang['image_gmap_zoom'], "text", 0);
$additional_image_fields['image_gmap_type'] = array($lang['image_gmap_type'], "text", 0);
$additional_image_fields['image_gmap_show'] = array($lang['image_gmap_show'], "radio", 1);
// <<<<<<<<<<<<<<<<<< [MOD] Google-Map <<<<<<<<<<<<<<<<<<

Step 3

Open /lang/<your_language>/main.php

Find:
Code: [Select]
?>
Add before

Code: [Select]
// >>>>>>>>>>>>>>>>>> [MOD] Google-Map >>>>>>>>>>>>>>>>>>
//-----------------------------------------------------
//--- Google-Map---------------------------------------
//-----------------------------------------------------
$lang['image_gmap_longitude'] = "Longitude of the place (-180...+180)";
$lang['image_gmap_latitude'] = "Latitude of the place (-90...+90)";
$lang['image_gmap_zoom'] = "Zoom-level (1-20)";
$lang['image_gmap_type'] = "Type of Google Map <br /><span class=\"smalltext\">1: Map<br />2:Satellite<br />3:Hybrid</span>";
$lang['image_gmap_show'] = "Show Google Map?";
$lang['image_gmap_text1'] = "The picture";
$lang['image_gmap_text2'] = "was shot from here.";
// <<<<<<<<<<<<<<<<<< [MOD] Google-Map <<<<<<<<<<<<<<<<<<

Step 4

Open /details.php

Find:
Code: [Select]
unset($next_prev_cache);

Add below
Code: [Select]
// >>>>>>>>>>>>>>>>>> [MOD] Google-Map >>>>>>>>>>>>>>>>>>

$image_gmap_show = $image_row['image_gmap_show'];

if ($image_gmap_show == 1) {

  $image_gmap_longitude = $image_row['image_gmap_longitude'];
  $image_gmap_latitude = $image_row['image_gmap_latitude'];
  $image_gmap_zoom = $image_row['image_gmap_zoom'];
  $image_gmap_type = $image_row['image_gmap_type'];
  $image_gmap_catid = $image_row['cat_id'];
  $image_gmap_catname = $image_row['cat_name'];
  $image_gmap_imgdate = $image_row['image_date'];
  $image_gmap_thumb = $image_row['image_thumb_file'];
  $image_gmap_thumb_file = get_file_path($image_gmap_thumb, "thumb", $image_gmap_catid, 0, 1);

  $image_gmap_tab1 = "<table border='0' cellspacing='0' cellpadding='0'><tr><td><img src='"
                     .$image_gmap_thumb_file. "' border='1' width='100' height='75' alt='"
                     .$image_name. "' /></td><td>&nbsp;&nbsp;</td></td><td valign='top'>"
                     ."<small>".$lang['image_gmap_text1']."<br><b>" .$image_name. "</b><br>".$lang['image_gmap_text2']
                     ."</small><span style='font-size:8px;'><br><br><b>Lat:</b> "
                     .$image_gmap_latitude. "°<br><b>Lon:</b> ".$image_gmap_longitude."°</span>"
                     ."</td></tr></table>";

  if ($image_gmap_type == 1) {
    $image_gmap_type2 = "G_NORMAL_MAP";
  } elseif ($image_gmap_type == 2) {
    $image_gmap_type2 = "G_SATELLITE_MAP";
  } elseif ($image_gmap_type == 3) {
    $image_gmap_type2 = "G_HYBRID_MAP";
  }

  if ($config['language_dir'] == "deutsch") {
    $gmap_language = "de";
  } else{
    $gmap_language = "en";
  }

  $gmap = 1;

  $gmap_java = "";
  $gmap_java = "\n"
     . "<script src=\"http://maps.google.com/maps?file=api&amp;v=2&amp;hl=".$gmap_language."&amp;key=ABCDEFGH....XYZ\" type=\"text/javascript\"></script> \n"
     . "<script type=\"text/javascript\"> \n"
     . "\n"
     . "//<![CDATA[ \n"
     . "function load() { \n"
     . " if (GBrowserIsCompatible()) { \n"
     . "   var map = new GMap2(document.getElementById(\"map\")); \n"
     . "   map.addControl(new GLargeMapControl()); \n"
     . "   map.addControl(new GMapTypeControl()); \n"
     . "   map.addControl(new GScaleControl()); \n"
     . "   map.addControl(new GOverviewMapControl()); \n"
     . "   map.setCenter(new GLatLng(" .$image_gmap_latitude. "," .$image_gmap_longitude. "), " .$image_gmap_zoom. ", " .$image_gmap_type2. "); \n"
     . "   var infoTabs = [ \n"
     . "   new GInfoWindowTab(\"Das Bild\", \"" .$image_gmap_tab1. "\") \n"
     . "   ]; \n"
     . "   var marker = new GMarker(map.getCenter()); \n"
     . "   GEvent.addListener(marker, \"click\", function() { \n"
     . "   marker.openInfoWindowTabsHtml(infoTabs); \n"
     . "   }); \n"
     . "   map.addOverlay(marker); \n"
     . "   marker.openInfoWindowTabsHtml(infoTabs); \n"
     . " } \n"
     . "} \n"
     . "//]]> \n"
     . "</script> \n";

  $site_template->register_vars(array(
    "gmap"   => $gmap,
    "gmap_java" => $gmap_java,
  ));

} else {
  $gmap = 0;
  $site_template->register_vars(array(
      "gmap"   => $gmap,
      "gmap_java" => "",
  ));
}

unset($gmap_java);

// <<<<<<<<<<<<<<<<<< [MOD] Google-Map <<<<<<<<<<<<<<<<<<


in the line:
Code: [Select]
    . "<script src=\"http://maps.google.com/maps?file=api&amp;v=2&amp;hl=".$gmap_language."&amp;key=ABCDEFGH....XYZ\" type=\"text/javascript\"></script> \n"

you have to replace
Code: [Select]
ABCDEFGH....XYZ

with your key from google.

If you use more languages, you can add them here:
Code: [Select]
 if ($config['language_dir'] == "deutsch") {
    $gmap_language = "de";
  } else{
    $gmap_language = "en";
  }


Step 5

Open /templates/default/details.html

Find:
Code: [Select]
{header}

Add below
Code: [Select]
{if gmap}
{gmap_java}
<body onload="load()" onunload="GUnload()">
{endif gmap}

and

Code: [Select]
{if gmap}
  <div align="center">
  <div id="map" style="width: 600px; height: 400px"></div>
  </div>
{endif gmap}

wherever you want to place the Google map o the page.




Usage

For every image you can now add the coordinates from google maps, the type of map and the zoom facor.
You can switch on/off this functionality with a radio button for every image.

Good luck - and hopefully I forgot nothing

Cheers
HoSt


Update (2007-02-12)
Added language support for the maps
Useless coding in Step 4 ( setTimeout(...) ) removed

Update (2007-02-17)
Small bug in details.php corrected (thx to ivan)
$image_gmap_thumb_file = get_file_path($image_gmap_thumb, "thumb", $image_gmap_catid, 0, 1);


added installer, @Rembrandt

23
Mods & Plugins (Releases & Support) / Re: [MOD] Slideshow II
« on: February 06, 2007, 10:02:10 AM »
Hello,
I am still searching a solution to make a slideshow to the  search results.
Any Ideas how to make it possible?
Greetings
Michael


Hi,

maybe yes... but I have to check it - next weekend I'll have the time (hopefully) :-)

Greets
HoSt

Edit:
No.. I tried it out, but it didn't worked :-(

24
Feedback & Suggestions / Re: Schutz vor "hotlinking"
« on: February 01, 2007, 01:52:48 PM »
Ich schütze meine Bilder vor Hotlinking über ein htaccess-File, welches ich in jedes Verzeichnis kopiert habe, in dem die Bilder geschützt werden sollen.

[snip]

Viele Grüße
Claudia


Danke für den Tipp! Scheint bei mir jetzt in Kombination mit einem transparenten GIF auch zu funktionieren :-)

Grüße
Holger

25
Mods & Plugins (Releases & Support) / Re: [MOD] Slideshow II
« on: January 30, 2007, 05:15:59 PM »
Don't run ? help me www.emtoi.org/gallery

Can you provide a little bit more information than "don't run" and "help"...
What is going wrong? Error messages? ... ...

Greets
HoSt

26
Mods & Plugins (Requests & Discussions) / Re: Google Maps integration
« on: January 30, 2007, 03:07:38 PM »
Nice work. I have my own setup right now but It needs alot of improvements.
The best example I've seen so far is on mawenzi's website

check it out. http://klick.kl.funpic.de/google_maps.php

Thanks  :D
...and from mawenzi's site I learned a lot about google-maps integration.

27
Mods & Plugins (Releases & Support) / Re: [MOD] Slideshow II
« on: January 30, 2007, 12:45:55 PM »
Hallo
Zuerst ein Lob für alle Mod programmierer!
Ich habe diesen Mod installiert und leider funktioniert dieser bei mir nicht.
Mein Problem ist folgendes:
Wenn ich auf den Button "Diashow" klicke, dann öffnet sich ein neues Fenster und der Fehler 500 "Internal Server Error" erscheint.
Ich habe den Mod (wie in der Anleitung beschrieben) installiert. Was könnte hier das Problem sein? Ich komme überhaupt nicht mehr weiter.
Habe die neuste Vers 1.7.4 (SAFE MODE ausgeschaltet). Im Admin Control Panel kann ich alle Diashow Einstellungen erfolgreich verändern.
Vielen Dank für die Hilfe...
mfg shadow_hunter

Hallo Shadow!

zu Deinem Problem eine Frage von mir (vielleicht habe ich dann die Antwort...)
1. Welche Einstellung hast Du bei "Geben Sie eine Bildgröße in Pixel an auf die die Bilder proportional verkleinert werden sollen" im ACP und - falls Du einen Wert dort eingetragen hast - taucht der Fehler auch auf, wenn Du dort "0" (also keine Verkleinerung) angibst? Und kommt der Fehler 500 sofort, oder erst nach einiger Zeit?

Grüße Holger

28
Mods & Plugins (Requests & Discussions) / Re: Google Maps integration
« on: January 23, 2007, 12:27:34 PM »
Hi All, 

are there still some people interested in this feature?

I played a little bit with Google-Maps and have it basically working.
It is based on some other websites where I found Google-Maps integrated in 4images.

At the moment it is not really finished, but I'm working on it...

You can find the example(s) here:
http://gallery.holger-stroeder.de/cat10.htm?l=english
http://gallery.holger-stroeder.de/img241.htm?l=english

If somebody is interested, I'll publish the coding...

Greets
Holger

29
Mods & Plugins (Releases & Support) / Re: [MOD] Slideshow II
« on: December 22, 2006, 11:13:47 AM »
Hi Phil87,

Maybe I'm missunderstanding you, but I think this is exactly the problem:

In my categories.php was "require ("categories_slideshowII.inc");" already in front of "}" but it works nevertheless not...
My problem is that ONLY GUESTS can not see the button, normal users can see it.

The "require ("categories_slideshowII.inc");" must be BEHIND the closing "}".

If you check the code:
Code: [Select]
//-----------------------------------------------------
//--- Show Categories ---------------------------------
//-----------------------------------------------------
if (!check_permission("auth_upload", $cat_id)) {
  $upload_url = "";
  $upload_button = "<img src=\"".get_gallery_image("upload_off.gif")."\" border=\"0\" alt=\"\" />";
}
else {
  $upload_url = $site_sess->url(ROOT_PATH."member.php?action=uploadform&amp;".URL_CAT_ID."=".$cat_id);
  $upload_button = "<a href=\"".$upload_url."\"><img src=\"".get_gallery_image("upload.gif")."\" border=\"0\" alt=\"\" /></a>";
}
require ("categories_slideshowII.inc");

If the "require ("categories_slideshowII.inc");" is in FRONT of the "}", it will be executed only for users with upload permissions...
Maybe you can post this part of your "categories.php"...

HTH
HoSt

30
Mods & Plugins (Releases & Support) / Re: [MOD] Slideshow II
« on: December 20, 2006, 07:50:46 PM »
Hi all,

... and the next one with the 'button problem'  :(

[UPDATE]

Problem is solved for me...


When I'm logged in as admin, everything is fine, but guests or normal users cannot see the slideshow-button.
When I'm allowing upload to all users, it's getting strange... The slideshow-button appears, but inactive (not clickable)
When uploading is not allowed, the slideshow button dissappears completely.

I'm running 4images 1.7.4, PHP 4.4.4 and mySQL 4.1.22. Template is a modified 4bare.

At the moment I'm a little bit clueless... Anybody any ideas?




Sometimes the error is sitting in front of the computer  :D

In my case, the problem was located in the /4images/categoeires.php
I pasted the additional code

Code: [Select]
SUCHEN

  $upload_button = "<a href=\"".$upload_url."\"><img src=\"".get_gallery_image("upload.gif")."\" border=\"0\" alt=\"\" /></a>";
}

DANNACH EINFÜGEN

//-----------------------------------------------------
//--- Slideshow changes -------------------------------
//-----------------------------------------------------
require ("categories_slideshowII.inc");


NOT behind the last "}", so it was located in the if clause for checking the upload permissions...


Cheers
HoSt

Pages: 1 [2] 3