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 18. Apr 2024, 11:29

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  [ 7 posts ] 
Author Message
PostPosted: 28. Jan 2011, 07:52 
Offline

Joined: 20. Nov 2006, 17:40
Posts: 45
Hi Michael, hallo Forum,

wir nutzen TWG bereits seit einigen Jahren (eingebunden per php include). Da inzwischen immer mehr iPhone/Mobiltelefon-Benutzer unsere Seiten besuchen, suche ich die Möglichkeit, die Gallery parallel für diese Browser bereitzustellen. Per "include" hat's schon mal nicht funktioniert - sowohl TWG wie auch die iPhone-Seiten liegen jeweils in separaten Sub-Directories (chdir klappt nicht). Außerdem bleibt das Problem, dass das "normal" eingestellte Layout zwar für Standard-Browser toll ist, auf mobilen Devices aber eher nicht.

Habt ihr schon einen ähnlich gelagerten Fall gehabt und konntet das Problem beheben?

Viele Grüße - Martin


Top
 Profile  
 
PostPosted: 28. Jan 2011, 09:24 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Ich versteh nicht, was du mit parallel meinst? Hast du eine eigene browserweiche und macht dann irgendwas?

TWG erkennt übrigens automatisch mobile geräte und schaltet da eh schon in einen andernen Modus.
In der aktuellen demo http://www.tinywebgallery.com/demo/ ist sogar schon eine unterstützung für
swipe für iphone und adroid drin.
Wird mit der 1.8.4 offiziell verfügbar sein.

- Michael


Top
 Profile  
 
PostPosted: 2. Feb 2011, 07:33 
Offline

Joined: 20. Nov 2006, 17:40
Posts: 45
Sorry, dass ich erst jetzt antworte...
die Seite: http://reunioncountry.de

Die "Original" Gallery ist per php eingebunden. Die Datei album.php liegt im Root Verzeichnis und hat folgenden Eintrag
<?php include("album/index.php"); ?>
In der myconfig.php ist $install_dir = 'album/'; eingetragen

Mobiltelefon-Benutzer (iPhone etc.) werden per htaccess automatisch in das Verzeichnis ~/iphone/ umgeleitet, wo speziell aufbereitete Seiten liegen. Dort möchte ich nach Möglichkeit auch das Fotoalbum bereitstellen. Weder per iframe noch php-include funktioniert dies

Ich habe beide Dateien zum Testen:
#removed_broken_link
Code:
<?php include("head.php") ?>
<title>Reunion-Fotoalbum</title>
<?php include("menu.php") ?>
<h1>REUNION Fotoalbum</h1>
<div id="album">
<?php chdir('../album'); include('../album/index.php'); chdir('..'); ?>
</div>
<?php include("footer.php") ?>


#removed_broken_link
Code:
<?php include("head.php") ?>
<title>Reunion-Fotoalbum</title>
<?php include("menu.php") ?>
<h1>REUNION Fotoalbum</h1>
<div id="album">
<td width="100%"><iframe name="twg" frameborder="0" src="../album/index.php" width="100%" height="100%"></iframe></td>
</div>
<?php include("footer.php") ?>


Top
 Profile  
 
PostPosted: 2. Feb 2011, 07:39 
Offline

Joined: 20. Nov 2006, 17:40
Posts: 45
Nachtrag: ein alternatives Einbinden (ohne chdir) habe ich ebenfalls versucht:

reunioncountry.de/iphone/include2.php
Code:
<?php include("head.php") ?>
<title>Reunion-Fotoalbum</title>
<?php include("menu.php") ?>
<h1>REUNION Fotoalbum</h1>
<div id="album">
<?php include("../album/index.php"); ?>
</div>
<?php include("footer.php") ?>


Top
 Profile  
 
PostPosted: 2. Feb 2011, 09:23 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
natürlich nicht.

Du kannst nicht 2x mit unterschiedlichen pfaden zugreifen. Das passt einfach relativ nicht.
Wenn du 2x mit iframe arbeitest geht es. Oder du hast 2 TWG Installationen und setzt das basedir für das pictures verzeichnis bei beiden auf das gleiche Verzeichnis.

Have fun using TWG,
Michael


Top
 Profile  
 
PostPosted: 2. Feb 2011, 11:22 
Offline

Joined: 20. Nov 2006, 17:40
Posts: 45
basedir kenne ich als PHP-Funktion - meinst du diese oder gibt es einen Parameter ($basedir) in TWG ähnlich $installdir?


Top
 Profile  
 
PostPosted: 2. Feb 2011, 11:59 
Offline

Joined: 20. Nov 2006, 17:40
Posts: 45
basedir habe ich gefunden. Zwei Installationen möchte ich vermeiden - der Updateaufwand ist mir dann doch zu hoch.

Ich hab's jetzt gelöst, indem ich die PHP-Datei für das "mobile-Album" ebenfalls in das root-Verzeichnis verschoben und die php-Pfade angepasst habe.
Jetzt ist das Fotoalbum auch per iPhone zu erreichen. Sieht zwar noch nicht schön aus (da zu breit) aber da werde ich mir noch etwas für ausdenken...


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

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