rejetto forum

Software => HTML & templates => HFS ~ HTTP File Server => RAWR-Designs => Topic started by: TSG on January 20, 2007, 10:47:25 AM

Title: Thunderchicken of Glory - 2.5.0 -
Post by: TSG on January 20, 2007, 10:47:25 AM
NEW BUILD IS OUT NOW...  2.5 Requires at least HFS build 2.1d(082) to use all of the new features. Get it here, its still in testing:
http://www.rejetto.com/forum/index.php?PHPSESSID=98ac2f41fc228eeef41f08900acf25e1&topic=3791.msg1021139#msg1021139
 (http://www.rejetto.com/forum/index.php?PHPSESSID=98ac2f41fc228eeef41f08900acf25e1&topic=3791.msg1021139#msg1021139)
Could run on an older build, but i would expect a few small glitches. As this uses the new graph colour option.

Download it from here:
http://www.rejetto.com/hfsfiles/That_Stevens_Guy/thunderchicken_of_glory/thunderchicken_of_glory.zip (http://www.rejetto.com/hfsfiles/That_Stevens_Guy/thunderchicken_of_glory/thunderchicken_of_glory.zip)
Title: Thunderchicken of Glory - 2.5.0 -
Post by: Unknown8063 on January 21, 2007, 03:21:19 AM
The image thumbnails don't appear to be working in this version - the thumbnails are overlapping the filename text and each other.

However everything else is working smoothly.  Great job, this template is really turning out well.
Title: Thunderchicken of Glory - 2.5.0 -
Post by: fabnos on January 21, 2007, 08:24:21 AM
Nice ...

all works well but there is a little thing I don't understand.

When I try launch WMP link is missed.

I've seen that link to song is this:

mss://192.168.0.205/.../.../song

What type of hyperlink is  ???

So I've made this change on template and changed in any section where appears this script:

Code: [Select]
href=\"mms://%host%%encoded-folder%%item-url%\"

with

Code: [Select]
href=\"http://%host%%encoded-folder%%item-url%\"
then HFS's Main Menu -> Other Options - > Open directly in browser -> *.htm;*.html;*.jpg;*.jpeg;*.gif;*.png;*.txt;*.swf;*.svg;*pdf;*mp3

I don't know if this the exact solution  :o

but now

 :)  all works fine  :D ;D

Last thing: if song's name contein this character (') [e.g. \\FREECOMFsg\Share\MyMusic\MP3\Joe Cocker\Unchain My Heart\04-The River's Rising.mp3] don't stream but play with WMP, so may be renamed in ....... The Rivers Rising.mp3, in this way works both.

Best regards

<<<fabnos>>>

[attachment deleted by admin]
Title: Thunderchicken of Glory - 2.5.0 -
Post by: Giant Eagle on January 21, 2007, 10:59:44 AM
mms:// is supposed to directly open the link in Windows Media Player, so there is no need to change it to http:// and create a MIME for mp3 files..

The problem that is causing the mms:// not working correctly is because the %item-url% is not defined inside the head of the template.

To make it work, find this line of code:
Code: [Select]
function unloadMp3(mp3) {document.getElementById('mp3'+mp3).innerHTML = "<div style=\"border-top:1px solid #fff;\" id=\"mp3%item-name%\"><a style=\"font-size:12px;font-weight:normal;\" href=\"javascript:onclick=loadMp3(\'"+mp3+"\');\">Stream</a>&nbsp;|&nbsp;<a style=\"font-size:12px;font-weight:normal;\" href=\"mms://%host%%encoded-folder%%item-url%\">Launch WMP</a></div>";}
And replace it with this:
Code: [Select]
function unloadMp3(mp3) {document.getElementById('mp3'+mp3).innerHTML = "<div style=\"border-top:1px solid #fff;\" id=\"mp3%item-name%\"><a style=\"font-size:12px;font-weight:normal;\" href=\"javascript:onclick=loadMp3(\'"+mp3+"\');\">Stream</a>&nbsp;|&nbsp;<a style=\"font-size:12px;font-weight:normal;\" href=\"mms://%host%%encoded-folder%"+mp3+"\">Launch WMP</a></div>";}
Title: Thunderchicken of Glory - 2.5.0 -
Post by: maverick on January 21, 2007, 01:46:42 PM
rejetto,

Can this forum's software SMF be configured to "word-wrap" the Code function?  It makes it very difficult to find the change made in Code when you have to scroll.  The above post is a good example.  I scrolled both lines of code and still haven't found what the difference is.  I also find the font size is to small.
Title: Thunderchicken of Glory - 2.5.0 -
Post by: fabnos on January 21, 2007, 02:16:25 PM
Yes sometimes is very difficult.

In any case, if I've made the right copy and paste:

line 1:
Code: [Select]
href=\"mms://%host%%encoded-folder%%item-url%\">Launch WMP</a></div>";}
line 2:
Code: [Select]
href=\"mms://%host%%encoded-folder%"+mp3+"\">Launch WMP</a></div>";}

function unloadMp3(mp3) {document.getElementById('mp3'+mp3).innerHTML = "<div style=\"border-top:1px solid #fff;\" id=\"mp3%item-name%\"><a style=\"font-size:12px;font-weight:normal;\" href=\"javascript:onclick=loadMp3(\'"+mp3+"\');\">Stream</a>&nbsp;|&nbsp;<a style=\"font-size:12px;font-weight:normal;\" href=\"mms://%host%%encoded-folder%"+mp3+"\">Launch WMP</a></div>";}

In my environment works well

Tnx to G.E.

Ciao

<<<fabnos>>>
Title: Thunderchicken of Glory - 2.5.0 -
Post by: Fysack on January 22, 2007, 12:40:42 AM
Awsome ;D After a debriefing of my brain, i find it no longer intresting to wanting to change someting in the layout of ToG. I will work with it, not against it. After all i have to look good inside the fanclub you know ;)
And could not help my self the other day wanting to listen to one more song, one more, one more, and one more..
And im eager to get back in :D
Every new album i discovered just blow me away, it almost give me goosebums on the dick lol
Thank you verry much for the shoutbox stuff, ill put my energy in that one for now  :)

   
Title: Thunderchicken of Glory - 2.5.0 -
Post by: TSG on January 26, 2007, 06:34:39 AM
I'm back from my 4x4 holiday.

How did I know that the mms link would have problems haha, i blame Giant Eagle and Flynsarmy  ;D im kidding of course, this link struggles majorly locally for some reason, but externally it seems to work ok-ish, so after all this discussion here is it working now? do we have a correct mms link for me to put in it?

Is the new javascripts working good, all these things i had no time to test thoroughly before i left on holiday.


Happy Australia Day Everybody!!!

""""The image thumbnails don't appear to be working in this version - the thumbnails are overlapping the filename text and each other.""""

Which browser are you using? you are obviously not doing something correctly because it works perfect for me. Make sure you have a no thumb image  ;)

"""""rejetto,

Can this forum's software SMF be configured to "word-wrap" the Code function?  It makes it very difficult to find the change made in Code when you have to scroll.  The above post is a good example.  I scrolled both lines of code and still haven't found what the difference is.  I also find the font size is to small."""""

Awesome Idea Maverick.


And so ends a catch up post, can someone please tell me the correct mms link please. thx, damn i missed my pc.
Title: Thunderchicken of Glory - 2.5.0 -
Post by: rejetto on January 26, 2007, 06:40:07 AM
Can this forum's software SMF be configured to "word-wrap" the Code function? 

no, idea.
maybe a change in the CSS is enough.
can't work on it now, but if any of you find the solution let me know.
Title: Thunderchicken of Glory - 2.5.0 -
Post by: TSG on January 26, 2007, 06:48:00 AM
Yea you could just make a right margin or maybe padding is the prob, i cant tell. I have no idea how the forum works tho, its a bit ahead of my skills. Anyone with SMF skills want to have a go at it?
Title: Thunderchicken of Glory - 2.5.0 -
Post by: rejetto on January 26, 2007, 07:37:41 AM
it may just be a "wrap" setting. there is something like that in CSS, don't remember the name.
Title: Thunderchicken of Glory - 2.5.0 -
Post by: TSG on January 26, 2007, 12:15:30 PM
Code: [Select]
href=\"mms://%host%%encoded-folder%"+mp3+"\">Launch WMP</a></div>";}
found it, thx fabnos, .zip updated in a few mins.
Title: Thunderchicken of Glory - 2.5.0 -
Post by: silverdevil on January 26, 2007, 01:29:46 PM
I can't use the function of "mp3 streaming", but other functions are allright.
Is there anything I need to do other than putting the file "mp3player.swf" to the right place and modify the template?
Following is what I modified, i put "mp3player.swf" in an invisible folder called "VIRTUAL".

function loadMp3(mp3) {document.getElementById('mp3'+mp3).innerHTML = "<div id=\"mp3%item-name%\"><object type=\"application/x-shockwave-flash\" width=160 height=20 data=\"/VIRTUAL/mp3player.swf?song="+mp3+"&autoplay=1\" bgcolor=\"#fff\"><param name=\"movie\" value=\"/VIRTUAL/mp3player.swf?song="+mp3+"\"/><param name=\"bgcolor\" value=\"#fff\"/></object><a style=\"font-size:12px;font-weight:normal;\" href=\"javascript:onclick=unloadMp3(\'"+mp3+"\')\">End Stream</a></div>";}
function unloadMp3(mp3) {document.getElementById('mp3'+mp3).innerHTML = "<div id=\"mp3%item-name%\"><a style=\"font-size:12px;font-weight:normal;\" href=\"javascript:onclick=loadMp3(\'"+mp3+"\');\">Stream</a>&nbsp;|&nbsp;<a style=\"font-size:12px;font-weight:normal;\" href=\"mms://%host%%encoded-folder%%item-url%\">Launch WMP</a></div>";}

I can't find the little blue bar.

(http://lwj.twbbs.org/VIRTUAL/6.jpg)
http://lwj.twbbs.org/VIRTUAL/5.jpg (http://lwj.twbbs.org/VIRTUAL/5.jpg)
Title: Thunderchicken of Glory - 2.5.0 -
Post by: TSG on January 26, 2007, 02:53:18 PM
The JS runs second to the mp3 section of the template. So it goes, mp3 section > loadmp3 function > unloadmp3 function > then it will go back to loadmp3 function to continue the cycle.

Latest mp3 code with your folder:
Code: [Select]
function loadMp3(mp3) {document.getElementById('mp3'+mp3).innerHTML = "<div id=\"mp3%item-name%\"><object type=\"application/x-shockwave-flash\" width=160 height=20 data=\"/VIRTUAL/mp3player.swf?song="+mp3+"&autoplay=1\" bgcolor=\"#EAEDF4\"><param name=\"movie\" value=\"/VIRTUAL/mp3player.swf?song="+mp3+"\"/><param name=\"bgcolor\" value=\"#EAEDF4\"/></object><a style=\"font-size:12px;font-weight:normal;\" href=\"javascript:onclick=unloadMp3(\'"+mp3+"\')\">End Stream</a></div>";}
function unloadMp3(mp3) {document.getElementById('mp3'+mp3).innerHTML = "<div style=\"border-top:1px solid #fff;\" id=\"mp3%item-name%\"><a style=\"font-size:12px;font-weight:normal;\" href=\"javascript:onclick=loadMp3(\'"+mp3+"\');\">Stream</a>&nbsp;|&nbsp;<a style=\"font-size:12px;font-weight:normal;\" href=\"mms://%host%%encoded-folder%"+mp3+"\">Launch WMP</a></div>";}

To me it sounds like you do not have the mp3 section in your template? It's below:

Code: [Select]
[file.mp3]
<tr class=off onmouseover="this.className='on'" onmouseout="this.className='off'">
<td class=rw style="border-left:0px;">%new% <a href="%item-url%">&nbsp;<img align=top src="/~img_file" alt=""> %item-name%</a>%comment%
<td class=rw align=center>%item-size%</td>
<td class=rw align=center>%item-modified%</td>
<td class=rw align=center width=160 style="background:#EAEDF4;">%item-dl-count%<br><div style="border-top:1px solid #fff;" id="mp3%item-name%"><a style="font-size:12px;font-weight:normal;" href="javascript:onclick=loadMp3('%item-name%');">Stream</a>&nbsp;|&nbsp;<a style="font-size:12px;font-weight:normal;" href="mms://%host%%encoded-folder%%item-url%">Launch WMP</a></div></td>
</tr>

You may need to modify/delete css/js to suit your tpl.
Title: Thunderchicken of Glory - 2.5.0 -
Post by: silverdevil on January 26, 2007, 06:18:37 PM
Quote
To me it sounds like you do not have the mp3 section in your template? It's below:

SORRY, I didn't say clearly enough.
I did have the mp3 section, but I didn't modify that part. So I didn't post it.
And I try using yours, but still it doesn't work.

this is my site (traditional chinese),
http://lwj.twbbs.org/music (http://lwj.twbbs.org/music)
and this is the template I am using.
http://lwj.twbbs.org/VIRTUAL/Orange_Blue_NO-LOGIN.tpl (http://lwj.twbbs.org/VIRTUAL/Orange_Blue_NO-LOGIN.tpl)
PS: I put "mp3player.swf" in an invisible folder named "/VIRTUAL/".

I really hope someone could help me with this problem.
I've spent allday trying to solve it.
Title: Thunderchicken of Glory - 2.5.0 -
Post by: Fysack on January 26, 2007, 09:47:09 PM
PS: I put "mp3player.swf" in an invisible folder named "/VIRTUAL/".

I did like you in the past and had problems with the mp3player. Now i put it in the top level of the virtual filesystem. And virtual only! I have deleted the mp3player from the realfolders.
I dont know how and i dont know why, but it works for me. I use That Stevens Guy new mp3player with Stream and Launch WMP.


[attachment deleted by admin]
Title: Thunderchicken of Glory - 2.5.0 -
Post by: Fysack on January 26, 2007, 11:06:50 PM
Is the new javascripts working good
Everything is working fine  ;D
The mp3player works perfect. Both stream and launchWMP. Its a real nice player! Thx.
The shoutbox was implented with no problems, exept that it took me a day to figure out that the code missed a " before **** LOCATION OF YOUR EXTERNAL CSS **** , dosen it? hehe
I have no problem with the mms link. I use Opera.
Title: Thunderchicken of Glory - 2.5.0 -
Post by: TSG on January 27, 2007, 12:52:59 AM
ok silverdevil, i had a go with your template, and it works for me  ;) so you have got it done correctly. This player does work from a folder. But i don't understand why you cannot see it...

Below is a screener of your template. With player stuff... :



A THOUGHT A COUPLE HRS LATER: have you got the latest version of hfs? because your current version may not support file.EXT

P.S i cant take the credit for the player fysack, i just edited the fla of an existing player until it suited my needs.


[attachment deleted by admin]
Title: Thunderchicken of Glory - 2.5.0 -
Post by: silverdevil on January 27, 2007, 06:11:44 AM
oh~ thanks a lot!!!
I update to the latest version, and it dose work very well.
Actually, it's so cool!!! :o

Sorry wasting your time for my stupid mistake. :-[
You had said the requirement very clearly.
Title: Thunderchicken of Glory - 2.5.0 -
Post by: Fysack on January 27, 2007, 12:44:21 PM
The shoutbox was implented with no problems, exept that it took me a day to figure out that the code missed a " before **** LOCATION OF YOUR EXTERNAL CSS **** , dosen it? hehe
ehh..  :P Now i got it! The LOCATION should look like this: ?extcss=http://domain.com/folder/shoutbox.css"
Not like this: ?extcss="\folder\shoutbox.css"
Title: Thunderchicken of Glory - 2.5.0 -
Post by: TSG on January 27, 2007, 12:57:53 PM
yes lol, thats how it works.
Title: Thunderchicken of Glory - 2.5.0 -
Post by: Fysack on January 27, 2007, 04:00:50 PM
""""The image thumbnails don't appear to be working in this version - the thumbnails are overlapping the filename text and each other.""""

Which browser are you using? you are obviously not doing something correctly because it works perfect for me. Make sure you have a no thumb image  ;)

It seem that i have the same problem both opera and ie, im sorry but what do you mean by Make sure you have a no thumb image ?
Title: Thunderchicken of Glory - 2.5.0 -
Post by: TSG on January 28, 2007, 02:46:29 AM
re-download the zip file, i have included the thumb directory and the thumbnail image that i use called nt.gif, the nt.gif sets the height of the thumbnail area so that they are all even ;) the nt.gif has to be the same size as all of the thumbnails, this is why i use a thumbnail generator that sets all of my thumbnails to 50x50px and places them into that thumb folder, which is placed on the top level of the virtual file system. It is the no thumbnail image that sets up the thumbnail section for the actual thumbnails. I have tried other methods but this seems to work best for me. You could always make your own no thumb image that is larger and fits the larger thumbs that you have :)
Title: Thunderchicken of Glory - 2.5.0 -
Post by: Flynsarmy on January 29, 2007, 05:53:39 AM
For those of you who only want 1 mp3 player loaded on a page at any time, I've
written a small patch for ToG to do this. I know it's already in the latest ToG
build (not sure if thats available to you guys yet, i dont keep track of the ToG
pages of the forum) but anyway here are the changes i made. From what i've
seen, my solution is quite a bit more efficient than the version currently imped
by TSG and Giant Eagle:

I'll get TSG to put it into the newest ToG build and post whether or not its mine
or his version that will be put in.

All changes are made to the javascript section located at the top of the template code
Replace loadMp3 and unloadMp3 functions with these
Code: [Select]
function loadMp3(mp3) {if (currMp3) unloadMp3(currMp3);currMp3=mp3;document.getElementById('mp3'+mp3).innerHTML = "<div id=\"mp3%item-name%\"><object type=\"application/x-shockwave-flash\" width=160 height=20 data=\"/mp3player.swf?song="+mp3+"&autoplay=1\" bgcolor=\"#EAEDF4\"><param name=\"movie\" value=\"/mp3player.swf?song="+mp3+"\"/><param name=\"bgcolor\" value=\"#EAEDF4\"/></object><a style=\"font-size:12px;font-weight:normal;\" href=\"javascript:onclick=unloadMp3(\'"+mp3+"\')\">End Stream</a></div>";}
function unloadMp3(mp3) {currMp3=null;document.getElementById('mp3'+mp3).innerHTML = "<div style=\"border-top:1px solid #fff;\" id=\"mp3%item-name%\"><a style=\"font-size:12px;font-weight:normal;\" href=\"javascript:onclick=loadMp3(\'"+mp3+"\');\">Stream</a>&nbsp;|&nbsp;<a style=\"font-size:12px;font-weight:normal;\" href=\"mms://%host%%encoded-folder%"+mp3+"\">Launch WMP</a></div>";}

and add
Code: [Select]
var currMp3=null;to the start of this line
Code: [Select]
var DH = 0;var an = 0;var al = 0;var ai = 0; ...
As always, let fly with the suggestions. ToG can only get better :D