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 26. Apr 2024, 22:34

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 Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 18. Dec 2007, 00:00 
Offline

Joined: 2. Aug 2006, 11:44
Posts: 8
Hallo zusammen

Ich habe ein sehr blödes Problem. :D
Ich versuchte seit etwa zwei Stunden TWG über einen PHP-Include zum laufen zu bringen: Erfolglos. Dann habe ich mich auf die erweiterte Fehlersuche gemacht, nach weiteren zwei Stunden bin ich dann endlich fündig geworden. Nur weiss ich nicht weiter, wie ich den Fehler beheben könnte. :cry:

Und zwar möchte ich die TWG aus einer PHP-Funktion heraus includen. Leider funktioniert das irgendwie nicht. Es erscheint immer folgendes Problem:
Code:
The album '' cannot be found and is maybe not available anymore.

Da mein eigenes CMS so aufgebaut ist muss ich die TWG wirklich aus einer Funktion heraus includen und kann sie nicht einfach sonst wo includen.

Gibt es eine Lösung, wie man TWG aus einer PHP-Funktion heraus fehlerlos includen kann?


Top
 Profile  
 
 Post subject:
PostPosted: 18. Dec 2007, 00:03 
Offline

Joined: 2. Aug 2006, 11:44
Posts: 8
Hier noch kurz der Code, falls es jemand testen will.
Das hier funktioniert nicht:
Code:
<?php
   function getinhalt()
    {
   include('includes\twebgallery\index.php');
    }

   // und so weiter und so fort...

   // später in meinem Skript kommt dann der Aufruf:
   getinhalt();
?>

Und das hier funktioniert, nur leider hilft es mir nicht weiter:
Code:
<?php
   include('includes\twebgallery\index.php');
?>

Zum Ausprobieren kann man einfach die beiden Codeschnipsel je in ein PHP-File tun und ausführen. Pfade anpassen nicht vergessen.


Top
 Profile  
 
 Post subject:
PostPosted: 22. Dec 2007, 14:26 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Das Problem ist, das du quasi den ganzen Inhalt haben willst, wenn du die Funktion aufrufst.
Aber an der Stelle wird ja schon alles mit echo ... ausgegeben.

Denke, du musst hier die iframe Lösung nehmen.

Gruß,
Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 26 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