rejetto forum

Comments are not showing up? HFS Live v3.00 problem

Guest · 20 · 9947

0 Members and 1 Guest are viewing this topic.

MegaGamerGuy

  • Guest
I've modifyed hfs live, to display 32x32 icons for folders, and for files.

If the %item-Name%.png file exists in "/thumbs" directory, but before and after i did this, when i set a comment for a file or folder, it is not displayed, but everything else on the template works good. 8)

another thing im tring to add is a "theme music" player that loops an mp3 file,
but every time id click on a link, the song restarts.

And im tring to add a video player, so when i/someone clicks on a "show" folder "Ghost ina Shell" for example, it navigates to a vlc player, and plays a m3u file with episodes for that season, but ive tried and tried to get vlc player to work, and i just get an error code "7," but it did work under FireFox, not IE.
here is the server: <removed>
its not hosted 24-7 thou :(

and i need to do the same thing with the music folder, so it will play, or download a music file when somone clicks on it.

Thank you, MegaGamerGuy

« Last Edit: November 05, 2009, 04:26:33 PM by rejetto »


MegaGamerGuy

  • Guest
my server schedule is:
Mon-Fri
--------------
Runing: about 9-11am to 4pm.
Closed: 4pm to aboutt 5pm-7pm.
Running: 5-7pm to abt 11pm-12 or 1 am max

Sat, Sun
--------------
"random times"
lol

ThankYou, MegaGamerGuy


Offline MegaGamerGuy

  • Occasional poster
  • *
    • Posts: 20
    • View Profile
I've modifyed hfs live, to display 32x32 icons for folders, and for files.

If the %item-Name%.png file exists in "/thumbs" directory, but before and after i did this, when i set a comment for a file or folder, it is not displayed, but everything else on the template works good. 8)

another thing im tring to add is a "theme music" player that loops an mp3 file,
but every time id click on a link, the song restarts.

And im tring to add a video player, so when i/someone clicks on a "show" folder "Ghost ina Shell" for example, it navigates to a vlc player, and plays a m3u file with episodes for that season, but ive tried and tried to get vlc player to work, and i just get an error code "7," but it did work under FireFox, not IE.
here is the server: http://mega-gamer.servehttp.com:8102/
its not hosted 24-7 thou :(

and i need to do the same thing with the music folder, so it will play, or download a music file when somone clicks on it.

Thank you, MegaGamerGuy



im tring to intagrate Rawr Player into Live v3.00
but cant find a good place to insert the code

i need to add a "Play " button after the file name
but only for the media files that rawr player supports
---------------------
Please tell me if link dosent work

thankyou, MegaGamerGuy


Offline MegaGamerGuy

  • Occasional poster
  • *
    • Posts: 20
    • View Profile
finally got rawr player to work in my server, and i also got PHP5 support in my HFS, rawr player plays mp3s, but not video files, any suggestions?
---------------------------------------------

Here is a pic, of what it does when i try to play videos; flv, and mov files...


Offline TSG

  • Moderator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
It should play the files correctly if the flashvars/embed code are done correctly. I haven't got time to help but at least you are close. The player will automatically configure to play videos, playback should work, especially with flv or h264 mp4. Seems the player is in the video mode due to the full screen button... not sure why the video isn't working though.
« Last Edit: November 10, 2009, 06:33:57 AM by TSG »


Offline MegaGamerGuy

  • Occasional poster
  • *
    • Posts: 20
    • View Profile
It should play the files correctly if the flashvars/embed code are done correctly. I haven't got time to help but at least you are close. The player will automatically configure to play videos, playback should work, especially with flv or h264 mp4. Seems the player is in the video mode due to the full screen button... not sure why the video isn't working though.
kk, thank you, ill see wat i can do, it might be somthing i can fix


Offline MegaGamerGuy

  • Occasional poster
  • *
    • Posts: 20
    • View Profile
cool, got flv to play, now ima try getting other video formats to work, and do you think, rwar player will ever support wmv, and avi(uncompressed), or (divx)?

Thank you; MegaGamerGuy


Offline MegaGamerGuy

  • Occasional poster
  • *
    • Posts: 20
    • View Profile
how do i get rawr player to stay in small mode whilest playing music, and then expand to video size only
 when playing video?


Offline MegaGamerGuy

  • Occasional poster
  • *
    • Posts: 20
    • View Profile
how do i get rawr player to stay in small mode whilest playing music, and then expand to video size only
 when playing video?
this is the current code:
Quote
<?php
$MediaURL = $_GET['MRL'];
$PrevFolder = $_GET['FilePath'];
echo "
<html>
<title>$MediaURL</title>
<div align='center'>
   <body bgcolor=Black VLINK='9D9DDD' ALINK='00aaaa' LINK='c4c4c4'>
      <object type='application/x-shockwave-flash' data='rawr_player.swf' width='100%' height='100%'>';
         <param name='movie' value='rawr_player.swf'/>
         <param name='allowscriptaccess' value='always'/>
         <param name='allowfullscreen' value='true'/>
         <param name='wmode' value='direct'/>
         <param name='flashvars' value='theme=tog&autoplay=1&context=1&file=$MediaURL'/>
      </object>
</body></div>";

echo "
<html>
<body>
<script type='text/javascript'>
   <!--
      if (top.location!= self.location) {
         top.location = self.location.href

      }
   //-->
</script>
<iframe src='$PrevFolder' width='100%' height='100%' frameborder=0 align='center' scrolling='auto'>
iframe.height = iframe.contentWindow.document.scrollHeight;
</iframe>
<a href='$MediaURL'>Download This File</a></br>
<a href='$PrevFolder'>Go Back</a></br>

</body>
</html>";
?>
Here are my current results, id like to get rid of the blank area, but ima try putting the iframe
 on top, instead of the player.


Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
and i also got PHP5 support in my HFS, rawr player plays mp3s, but not video files, any suggestions?

I didn't think HFS supported PHP? Could you post how this is done?


Offline MegaGamerGuy

  • Occasional poster
  • *
    • Posts: 20
    • View Profile
 ;D, long story short, im be making a batch script to Download/Setup, everything for you, you just have to configure it your self, the script will guide you throughout the process.

give me abt a week maybe sooner, im working 3:30 to 1:30am now so tis pain in the butt to get anything done anymore, lol


Offline MegaGamerGuy

  • Occasional poster
  • *
    • Posts: 20
    • View Profile
1st i want to give u the files you need to have,

2. PHP 5.2.11 server(zip) http://windows.php.net/downloads/releases/php-5.3.0-Win32-VC9-x86.zip
Just Extract it to a folder called PHp, in your hfs directory.
3. Apache server(latest) http://apache.deathculture.net/httpd/binaries/win32/apache_2.2.14-win32-x86-openssl-0.9.8k.msi(openssl)
or http://apache.deathculture.net/httpd/binaries/win32/apache_2.2.14-win32-x86-no_ssl.msi(non-ssl)

install this to a folder in your hfs directory, called Apache2.2.


next add the following lines to your httpd.conf,
Quote
LoadModule php5_module "../PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "../php"

1 last thing is to setup apache server as a service
just run "httpd.exe -k install"
this executable is in the bin folder of the apache2.2 folder.

and presto, u have php support, but in order to use it with hfs, u need to tell the template to use the php

here are my php files, be sure to read the readme.txt



Offline MegaGamerGuy

  • Occasional poster
  • *
    • Posts: 20
    • View Profile
i reccommend, you to use my templete and php files, as an example, you can use them if u want, i had to strip the background to reduce the size, but youll figure it out, fell free to use the php files however you fell is necessery. note the php files will only work in the link format used in the [files] section of my
template.

you will have to edit the template, becuase its setup to run my server, just change all the "http://mega-gamer.servehttp.com:8124/" to your server's domain/ip:port(of your php server(apache)).

Note: the apache server has to be ran on diffrent port in order to allow both servers to be rfunctional!


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
it may be interesting for you to know that you can rewrite things like
Code: [Select]
case "txt":
OpenURL("$FileURL");
break;
case "exe":
OpenURL("$FileURL");
break;
case "msi":
OpenURL("$FileURL");
break;

this way
Code: [Select]
case "txt":
case "exe":
case "msi":
OpenURL("$FileURL");
break;


Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
give me abt a week maybe sooner, im working 3:30 to 1:30am now so tis pain in the butt to get anything done anymore, lol
I know what you mean, I too work "2nd shift".
Many thanks for taking the time to post this method. I'll give it a try in my test directory.
I use my own template, which requires a custom vfs configuration, so it may be very difficult
to make this work.