Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 20. Apr 2024, 15:16

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 50 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
PostPosted: 20. Feb 2012, 14:52 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
o.k. sieht o.k. aus.

Ich teste das mal lokal nach. Evtl. geht das durch einen andere Änderung nicht mehr...

- Michael


Top
 Profile  
 
PostPosted: 20. Feb 2012, 15:06 
Offline

Joined: 16. Feb 2012, 16:30
Posts: 20
Vielen Dank für deine Mühe!
Bis dann...


Top
 Profile  
 
PostPosted: 20. Feb 2012, 15:07 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Mein Fehler.

Ich hab in der Doku das nicht gut beschrieben:

<a href="http://www.campaniameteo.info/webcam/ravello/current.jpg">bild1</a>

muss der link heißen. Weil ich brauch ja das gleiche, das auch der Server liefert.

- Michael


Top
 Profile  
 
PostPosted: 20. Feb 2012, 17:41 
Offline

Joined: 16. Feb 2012, 16:30
Posts: 20
Merci!
Das hat gut funktioniert!

Die Bilder sind allerdings schwarz!

Habe das Forum durchsucht und etwas von phpmemory erhöhen gelesen. Bei mir in der phpinfo steht 128M zur Verfügung.
Muss ich evtl. in der .htaccess etwas anpassen?

In der Debug Datei ist folgendes zu finden:
Code:
02.20.2012 16:27:56 (de) - ERROR 2 in _2012/webcams/inc/imagefunctions.inc.php, line 171: getimagesize(http:___mydomain.de/webcams/pictures/5_Italien/current.jpg) [_a href='function.getimagesize'_function.getimagesize_/a_]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
02.20.2012 16:27:56 (de) - Size of image http:___mydomain.de/webcams/pictures/5_Italien/current.jpg cannot be detected using 1024x768.
02.20.2012 16:27:56 (de) - 'http:___mydomain.de/webcams/pictures/5_Italien/current.jpg' could not loaded properly. Please check if the file is corrupt.
02.20.2012 16:27:56 (de) - ERROR 2 in _2012/webcams/inc/imagefunctions.inc.php, line 296: imagecopyresampled(): supplied argument is not a valid Image resource
02.20.2012 16:27:56 (de) - ERROR 2 in _2012/webcams/inc/imagefunctions.inc.php, line 297: imagedestroy(): supplied argument is not a valid Image resource
02.20.2012 16:27:58 (de) - ERROR 2 in _2012/webcams/inc/imagefunctions.inc.php, line 171: getimagesize(http:___mydomain.de/webcams/pictures/5_Italien/current.jpg) [_a href='function.getimagesize'_function.getimagesize_/a_]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found


Last edited by StephanB on 28. Feb 2012, 22:57, edited 1 time in total.

Top
 Profile  
 
PostPosted: 20. Feb 2012, 17:48 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
must du nicht
http://www.campaniameteo.info/webcam/ra ... urrent.jpg

für das bild eingeben. Weil die Fehlermeldung bedeutet, das die Datei nicht gefunden wird.

- Michael


Top
 Profile  
 
PostPosted: 20. Feb 2012, 18:03 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Stimmt - mit deinem externen Bild geht es nicht.

Schau ich mir in ruhe heute abend mal an, was da anders ist.

- Michael


Top
 Profile  
 
PostPosted: 21. Feb 2012, 00:11 
Offline

Joined: 16. Feb 2012, 16:30
Posts: 20
Okidoki! Ich warte dann mal ab!

- Stephan


Top
 Profile  
 
PostPosted: 21. Feb 2012, 22:04 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Kann ich dir ein update schicken?

Gruß,
Michael


Top
 Profile  
 
PostPosted: 22. Feb 2012, 00:05 
Offline

Joined: 16. Feb 2012, 16:30
Posts: 20
Hallo Michael!

Vielen Dank dafür!
Das ist ja super!

- Stephan


Last edited by StephanB on 22. Feb 2012, 02:58, edited 1 time in total.

Top
 Profile  
 
PostPosted: 22. Feb 2012, 02:58 
Offline

Joined: 16. Feb 2012, 16:30
Posts: 20
Dickes Merci für das Update!!!
Es funktioniert jetzt!!

Du hast das nächste Problem ja schon angesprochen, dass die Bilder in der Galerie nicht mehr automatisch aktualisiert werden. Für eine Webcamgalerie wäre es natürlich gut, wenn immer das aktuelle Bild angezeigt wird (Aktualisierungsintervall der Bilder alle 2 bis 5 Min.). Diesen Punkt hatte ich allerdings nicht bedacht!

Ich habe jetzt die Datei "http://xyz.de/webcams/admin/index.php?action=helper&twg_helper_action=delimagecache"
mit einem Cronjob versehen, welcher alle 5 Min. ausgeführt wird.
Ich befürchte aber, dass der Cache des Userbrowsers das Problem beim aktualisieren der Bilder ist.

Des Weiteren gibt es leider auch Webcams, die nur unter .asp zu erreichen sind (http://www.cannobio.net/resizeimgpiazza.asp), welches leider nicht von TWG dargestellt werden kann.

Ursprünglich war ich auf der Suche nach einem Script, welches eine kleine Webcamgalerie darstellt.
TinyWebGallery ist das mir derzeit einzig Bekannte Tool in diesem Bereich, welches externe Links aufrufen kann.

Eine Möglichkeit ist jetzt für mich, ein Webcam- Thumbnail in die Galerie zu laden, welches dann auf das Originalbild verlinkt. Das Originalbild wird ja automatisch aktualisiert. Schade ist in diesem Fall dann nur, dass in der Galerie selbst leider keine aktuellen Pics zu sehen sind.

Muss jetzt mal schauen, was ich machen kann.

Ich danke dir für deine SUPER Hilfe!
Merci Michael!

LG Stephan


Top
 Profile  
 
PostPosted: 22. Feb 2012, 10:34 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
der cronjob geht aber nur, wenn du das in der administration freischaltest. in der admin/_include/init.php hab ich da ein Beispiel drin, wie man das macht.
Browsercaching könnte natürlich auch ein problem sein. Aber da dann dadurch alles über eine .php datei aufgerufen wird könnte das gar nicht so das problem sein wenn du auf deinem Server einen expire header für alle bilder mitschickst.

so wie hier:
http://blog.docx.org/2009/12/16/cache-e ... -htaccess/

auf .asp wird extern nicht gefiltert. Das müstest du hinzufügen. Aber eben an vielen Stellen weil immer wieder geprüft wird, ob das ein Bild ist um hacks zu verhindern.

Evtl. geht das auch mit einem redirect in der .htaccess.

- Michael


Top
 Profile  
 
PostPosted: 22. Feb 2012, 17:05 
Offline

Joined: 16. Feb 2012, 16:30
Posts: 20
Komme mit der Freischaltung nicht klar!
Handelt es sich bei der Datei "in der admin/_include/init.php" um folgenden Abschnitt?

Code:
// optional helper action for some pages
if (isset($_GET['twg_helper_action'])) {
$helper_action = $_GET['twg_helper_action'];
} else if (isset($_POST['twg_helper_action'])) {
$helper_action = $_POST['twg_helper_action'];
} else  {
$helper_action = "none";
}


Muss ich diesen auf "true" setzen?


Top
 Profile  
 
PostPosted: 22. Feb 2012, 17:08 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
ne - in der datei gibt es einen Block mit kommentaren. Den must du anpassen und einkommentieren.
Dort wird der login ausgehebelt.

- Michael


Top
 Profile  
 
PostPosted: 22. Feb 2012, 17:49 
Offline

Joined: 16. Feb 2012, 16:30
Posts: 20
Ist für mich jetzt ne heikle Sache, da ich in php nicht so fit bin!

Code:
// Default Dir
}
if (isset($GLOBALS['__GET']["dir"]))
    $GLOBALS["dir"] = replaceInput(stripslashes($GLOBALS['__GET']["dir"]));
else
    $GLOBALS["dir"] = "";
if ($GLOBALS["dir"] == ".")
    $GLOBALS["dir"] == "";


Muss ich hier evtl. das Admin Verzeichnis angeben?


Top
 Profile  
 
PostPosted: 22. Feb 2012, 17:59 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
such nach dem Kommentar!

// If you want that iptc data can be called you have to enable the following lines.
// If you want a little bit more protection add a parameter only you know!
// if ($action=="helper" && $helper_action=='readiptc') {
// $GLOBALS["require_login"] = false;
// }

und das änderst du dann in

if ($action=="helper" && $helper_action=='delimagecache') {
$GLOBALS["require_login"] = false;
}

Gruß, Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 50 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy