rejetto forum

File.EXT idea...

TSG · 15 · 10524

0 Members and 1 Guest are viewing this topic.

Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
OK i have been editing the ToG and i have come across something in the template that i think maybe could be improved.   :)

In the template for images i have,
Code: [Select]
[file.jpg]
<tr class=off onmouseover="this.className='on'" onmouseout="this.className='off'">
<td class=rw style="padding:0px;border-left:0px;">
<a href="%item-url%" target=_blank>
<div style="position:absolute;z-index:20;" onmouseout="popUp(event,'t10')" onmouseover="popUp(event,'t10')"><img src="/thumb/%item-name%" alt=""></div>
<div style="z-index:10;"><img src="/thumb/nt.gif" alt="" align=absmiddle>&nbsp;%item-name%%new%</div>
</a>
%comment%</td>
<td class=rw align=center>%item-size%</td>
<td class=rw align=center>%item-modified%</td>
<td class=rw align=center>%item-dl-count%</td>
</tr>

Now, this same code is used for .bmp/.gif/.png, i was wondering... if maybe it would be possible to allow a section of the template to be used for different or multiple specified file extensions, this would reduce redundant code in the template, and ease the editing process of the template. Something like this maybe [file.jpg/.png/.bmp/.gif] and the code piece in that section will be used for all of those file types... i know this wouldnt reduce the page load times or anything like that, but it would make the editing of the template easier. Similiar process could be used for ppl that use video streaming [file.flv/.mpg/.wmv/.swf] or music [file.mp3/.m4a/.wma/.wav/.aiff/.midi] or something like that....  ???


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13524
    • View Profile

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13524
    • View Profile
i would say the extra dots are unnecessary
[file.jpg/gif/png]



Offline Garphy

  • Occasional poster
  • *
    • Posts: 80
    • View Profile

Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile

I agree.  Good idea TSG and thanks rejetto.
maverick


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
What build can we be expecting this?

Because i am almost ready to release the new version of the ToG... sometime tonight methinks.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13524
    • View Profile
well... would you realase your tpl as working only with the last release?
maybe you could wait some time and wait it to be well spread
as you wish


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
i'll release it with the old settings, the old code will still work with the new system off course?

because i have another thing i want to add in when i return from holidays but i have no time to start it atm, so that release can have this new thingo included.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13524
    • View Profile
sure

i should consider of an alternative: a feature that let you specify the content for several sections instead of just one.
i mean... something that is not only for file sections, but that would work for an section.
the syntax would be something like
[A = B = C]
html content

for files it would apply like
[file.jpg = file.gif = file.png]
<img src='...'>


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
As long as u can specify multiple file extensions for a file section, go for it. ;) would this be able to be used for any of the sections of the template? so if u have any duplicate section, you could shorten it to the one part?

Also a small question which is a little bit off topic... is it possible to show the active transfers window (/~progress) in a frame on any part of the hfs? cause ino in the upload section uses /~upload+progress, but that uses another section of the tpl.... i cant envision how to make it appear as a frame for any part of the template, instead of opening to a new window.


Offline Giant Eagle

  • Tireless poster
  • ****
    • Posts: 535
  • >=3 RAWR!
    • View Profile
    • RAWR-Designs.com
nice idea  ;)

but what happens if you use a file section twice?

Example:
Code: [Select]
[file.jpg = file.gif = file.png]
<img src='...'>

[file.gif]
<img src='...'>


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13524
    • View Profile
nice idea  ;)
but what happens if you use a file section twice?

i guess... the same that happens if you specify twice [file.gif]
you overwrite


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13524
    • View Profile
Also a small question which is a little bit off topic... is it possible to show the active transfers window (/~progress) in a frame on any part of the hfs? cause ino in the upload section uses /~upload+progress, but that uses another section of the tpl.... i cant envision how to make it appear as a frame for any part of the template, instead of opening to a new window.

you may put defaultpage.html in the root, containing 2 frames:
one points to /~nodefault
the other points to /~progress


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13524
    • View Profile