rejetto forum
May 24, 2012, 03:38:51 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: %ext% in [file]  (Read 4268 times)
0 Members and 1 Guest are viewing this topic.
Giant Eagle
Insane poster
*****
Offline Offline

Netherlands Netherlands

Posts: 533


>=3 RAWR!

no.body056@gmail.com
View Profile WWW
« on: July 04, 2007, 05:46:55 PM »

Would it be possible to have a variable that changes into the extension of the file that is being processed..

For example, if i have [file.exe = file.zip = file.rar = <-- insert every supported extension here --> file.tar]
then when a file called 'test.zip' is being processed, %ext% would result in 'zip'

This would be ideal for the case of Terayon where every extension has the same code except for the Icon code. I could simply use <img src="/template/icons/%ext%.gif" /> instead of having 50 sheets of code
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
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #1 on: July 04, 2007, 06:01:37 PM »

%item-ext% from next build
Logged
Giant Eagle
Insane poster
*****
Offline Offline

Netherlands Netherlands

Posts: 533


>=3 RAWR!

no.body056@gmail.com
View Profile WWW
« Reply #2 on: July 05, 2007, 06:57:18 AM »

Thanks ^^
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

radd
Tireless poster
****
Offline Offline

Malaysia Malaysia

Posts: 145


venom_rx
View Profile Email
« Reply #3 on: July 09, 2007, 09:50:57 AM »

giant-eagle, what about if the file have extension that u dont have specific icon. just for example: .mpeg(instead of mpg), .t3d,  dont u think will going to be mess up?

p/s- i use tetrayon with 'little bit' modification but feel ashame to show it to u all guys
Logged
TSG
Operator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #4 on: July 09, 2007, 11:33:36 AM »

Well in the Terayon currently we have a default icon set... [file] which currently has the default icon we currently use for all unknown extensions. Although i think a %item-.file% might be needed... for a default setting. Customisable like the rest with its own section.
Logged

Giant Eagle
Insane poster
*****
Offline Offline

Netherlands Netherlands

Posts: 533


>=3 RAWR!

no.body056@gmail.com
View Profile WWW
« Reply #5 on: July 09, 2007, 12:15:30 PM »

no it wont mess up, not if you use it correctly:

[file.jpg = file.bmp = file.bmp = file.rar = file.zip = file.txt = file.bat = file.exe = file.gif = file.tgz = file.mpg = file.wmv = file.avi = file.mp3 ETC ETC]
<img src="/template/icons/%item-ext%.gif" alt="" />

this way, only the extensions where an icon have been made for will have the %item-ext% feature.



[file.mpeg]
<img src="/template/icons/mpg.gif" alt="" />

Only a few require this, but its worth it.



and last:

[file] -- for every non-set extension
<img src="/template/icons/file.gif" alt="" />
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: July 09, 2007, 12:15:30 PM »

Do you like this software? Consider even $2
 Logged
radd
Tireless poster
****
Offline Offline

Malaysia Malaysia

Posts: 145


venom_rx
View Profile Email
« Reply #6 on: July 10, 2007, 03:30:55 AM »

yeah, i got it!! thanks.

another things, i try put comment under alt for example

<img src="/template/icons/file.gif" alt="%item-comment%" />

but it not functioning. are there any way to make it function. just asking. sorry if i post not i correct topic
« Last Edit: July 10, 2007, 03:35:04 AM by radd » Logged
TSG
Operator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #7 on: July 10, 2007, 06:29:14 AM »

yeah, i got it!! thanks.

another things, i try put comment under alt for example

<img src="/template/icons/file.gif" alt="%item-comment%" />

but it not functioning. are there any way to make it function. just asking. sorry if i post not i correct topic

This will depend on what you have in the [item-comment] section. If it writes just basic text it will work perfectly. But if there is any HTML in the comment it will break.
Logged

Giant Eagle
Insane poster
*****
Offline Offline

Netherlands Netherlands

Posts: 533


>=3 RAWR!

no.body056@gmail.com
View Profile WWW
« Reply #8 on: July 10, 2007, 11:22:56 AM »

The alt thing
Code:
alt="text goes here"
only shows up as a cover for if the actual image has not been found or is unavailable.   (right?)
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

KalleB
Experienced poster
***
Offline Offline

Finland Finland

Posts: 97



View Profile
« Reply #9 on: July 10, 2007, 02:36:08 PM »

Correct, see also:

http://www.netmechanic.com/news/vol6/html_no1.htm
Logged
maverick
Insane poster
*****
Offline Offline

Posts: 1056


Computer Solutions


View Profile
« Reply #10 on: July 10, 2007, 05:00:09 PM »


Yes, using ALT and TITLE Attributes creates effective page content.  I use them throughout my site.
Logged

maverick
radd
Tireless poster
****
Offline Offline

Malaysia Malaysia

Posts: 145


venom_rx
View Profile Email
« Reply #11 on: July 10, 2007, 08:39:10 PM »

The alt thing
Code:
alt="text goes here"
only shows up as a cover for if the actual image has not been found or is unavailable.   (right?)

owhh.. i tot the alt thing will be display during mouseover. that means i ive to find other way to view item-comment
Logged
TSG
Operator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #12 on: July 11, 2007, 12:22:18 AM »

Well... You could try title="meeeh" but i think it wont show if you have html in it. Its the default tooltip code.

You could also try the javascript tooltip code I use.... It would require a unique ID, using the sequential feature. so. ID="t%sequential%". Then whatever is in the comment will show in a tooltip. Post back if you want me to make an example that might work.
Logged

radd
Tireless poster
****
Offline Offline

Malaysia Malaysia

Posts: 145


venom_rx
View Profile Email
« Reply #13 on: July 11, 2007, 01:24:08 AM »

example, steven.
thanks
Logged
radd
Tireless poster
****
Offline Offline

Malaysia Malaysia

Posts: 145


venom_rx
View Profile Email
« Reply #14 on: July 11, 2007, 07:23:49 AM »

Well... You could try title="meeeh" but i think it wont show if you have html in it. Its the default tooltip code.

You could also try the javascript tooltip code I use.... It would require a unique ID, using the sequential feature. so. ID="t%sequential%". Then whatever is in the comment will show in a tooltip. Post back if you want me to make an example that might work.

tsg, can u please teach me that script
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 Today at 02:57:25 PM
anything