rejetto forum
May 24, 2012, 10:52:32 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Hide File Extension in Listing  (Read 1930 times)
0 Members and 2 Guests are viewing this topic.
parade
Tireless poster
****
Offline Offline

Germany Germany

Posts: 138


View Profile
« on: November 09, 2007, 05:02:59 AM »

Hello,

when "Hide File Extension in Listing" is activated I can't preview/play a file in that folder. Although the thumbs are no longer visible.
That ist obviously so because the listed filename instead of the real filename is taken for thums/previews.
Is there any way to make ToG take the real filename with the extension?

Greetings
parade
Logged
TSG
Moderator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #1 on: November 09, 2007, 05:36:22 AM »

The preview code will not work without an extension... i just tested the new code and that will not work either, we require file extensions to determine some javascript functionality, feed files to players etc.. not so much in the new codes... but the old code was even more reliant on the extension. Both ToG and Terayon will have this loss of functionality without extensions.

The thumbnails aren't visible because the file extension is essential to the name of the file of the previews.

Ino if i were a user of a website i'd want to know the extension of a file before i download it anyway.  Wink

So leave that option off, and you'll have no problems. I'll put this in the readme when we release.
« Last Edit: November 09, 2007, 05:44:20 AM by That_Stevens_Guy » Logged

rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #2 on: November 09, 2007, 07:38:20 PM »

if your tpl needs to detect the filetype, it can use %item-ext%.

i noticed it doesn't work with that option enabled, but it's a bug, and it will be fixed in next build. so you can rely on it.
Logged
TSG
Moderator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #3 on: November 10, 2007, 03:38:47 AM »

Thanks but i don't know how you will fix it? We have to use %item-name% for mp3 files because item-url is interpreted differently by firefox and ie (url encoding), so we have to convert it manually with javascript for perfect functionality... Will wait and see i guess. Maybe item-ext is the answer.

On second thoughts... probably not. meh we'll sort something out Smiley
« Last Edit: November 10, 2007, 04:00:21 AM by That_Stevens_Guy » Logged

rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #4 on: November 10, 2007, 08:54:59 AM »

Thanks but i don't know how you will fix it?

so that it works the same with that option enabled or disabled
Logged
Giant Eagle
Moderator
Insane poster
*****
Offline Offline

Netherlands Netherlands

Posts: 533


>=3 RAWR!

no.body056@gmail.com
View Profile WWW
« Reply #5 on: November 10, 2007, 12:15:47 PM »

if we feed %item-name%.%item-ext% to the scripts, doesnt that add the extension twice to the name if the option is disabled?
Logged

Rest in peace 500mhz server, you served me well...
New 1500mhz server DOA'ed on me >_>
New 2400mhz server up and running again Grin

rejetto forum
« Reply #5 on: November 10, 2007, 12:15:47 PM »

Do you like this software? Consider even $2
 Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #6 on: November 10, 2007, 12:30:59 PM »

i said "detect the filetype", and for such job to use both %item-name% and %item-ext% makes no sense.
Logged
TSG
Moderator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #7 on: November 10, 2007, 11:46:13 PM »

I agree with rejetto.

And that was my question about it also GE. >_<
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 07, 2012, 09:35:46 PM
anything