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 24. Nov 2024, 10:36

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  [ 11 posts ] 
Author Message
 Post subject: MP3 Stream
PostPosted: 20. Sep 2009, 16:02 
Offline

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

I copied the twg_audiolist.php one directory up (to the root directory, where my album.php is located)

then I edited twg_audiolist.php:
Code:
<?php
/************************* 
  Copyright (c) 2004-2009 TinyWebGallery
  written by Michael Dempfle
 
  This program is free software; you can redistribute it and/or modify
  it under the terms of the TinyWebGallery license (based on the GNU 
  General Public License as published by the Free Software Foundation; 
  either version 2 of the License, or (at your option) any later version.
  See license.txt for details.
 
  TWG version: 1.7.8
 
  $Date: 2007-05-17 01:16:29 +0200 (Do, 17 Mai 2007) $
  $Revision: 56 $
**********************************************/

   $xmlfilename = "album/cache/audiolist.xml";
   $install_dir = "album/";
   
   header("Pragma: public");
   header("Expires: 0");
   header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
   header("Cache-Control: public");
   
   if (file_exists($xmlfilename)) {
      $fp = fopen($xmlfilename, "r");
        while ($content = fread($fp, 8192)){
            print $content;
         }
       fclose($fp);
    } 
?>


Without the twg_audiolist.php every single mp3 played fine but I couldn't switch to the next one.
With the twg_audiolist.php none of my mp3 files are played.

#removed_broken_link


Top
 Profile  
 
 Post subject:
PostPosted: 20. Sep 2009, 18:06 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
the flash is looking for #removed_broken_link

where is it located?

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 20. Sep 2009, 18:58 
Offline

Joined: 20. Nov 2006, 17:40
Posts: 45
I read, that twg_audiolist.php has to be located in the same directory as the include-file.

in reunioncountry.de/album/ is the original file located. I'll check the path in this file


Top
 Profile  
 
 Post subject:
PostPosted: 20. Sep 2009, 19:02 
Offline

Joined: 20. Nov 2006, 17:40
Posts: 45
If the file is located in ~/album/ I get the error message

Quote:
The file 'twg_audiolist.php' was not found!.
If you use php include you have to manually configure the mp3 player
Please read howto 34 how to do this!


Top
 Profile  
 
 Post subject:
PostPosted: 20. Sep 2009, 19:16 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I have to check this with php include.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 20. Sep 2009, 21:27 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I just checked. with php include this does not work right now because of a modification at a different place. I will fix this in 1.7.8 and you simply have to update.

I will make a post here when I have uploaded it.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 20. Sep 2009, 22:07 
Offline

Joined: 20. Nov 2006, 17:40
Posts: 45
ok Michael. Thanks a lot


Top
 Profile  
 
 Post subject:
PostPosted: 20. Sep 2009, 22:48 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
it's uploaded. Please update and retry. you don't have to modify twg_audiolist.php anymore.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 21. Sep 2009, 09:47 
Offline

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

I uploaded the new patch (change date 2009-09-20 22:20). The changing of songs is working now. The error message is gone; I had to place twg-audiolist.php in my root-directory.

I think, everything is working now.

Thanks a lot ... again ;-)


Top
 Profile  
 
 Post subject:
PostPosted: 21. Sep 2009, 09:49 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
The root of twg or the root of your server?

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 21. Sep 2009, 22:25 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I check this whole part again. Actually the audiolist.php from the main TWG folder was used. But you got the error message because if the one that was not needed ;).

I have now updated the check as well. You should now only need one audiolist.php in the TWG main folder.

- Michael


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

All times are UTC + 1 hour [ DST ]


Who is online

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