rejetto forum

Feature proposal

rejetto · 20 · 18042

0 Members and 1 Guest are viewing this topic.

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13524
    • View Profile
looking at this template i had an idea
http://www.rejetto.com/forum/viewtopic.php?t=3032

to be able to associate to a folder (and all the subtree) a different template.
this would help showing files in a more specific way based on their type, but not only this.
of course the different template would most time be almost identical to the main template, just few differences, so the user should only input the [sections] that change.... like [file].
so the differrence template would only be 2-3 lines long, it would be easy to build.

what do you think about it? suggestions?


Offline MarkV

  • Tireless poster
  • ****
    • Posts: 764
    • View Profile
That would be a very useful feature. You should start a poll rejetto. ;)

MarkV
http://worldipv6launch.org - The world is different now.


Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile
It wouldn't hurt to test some examples to fully understand what rejetto means.  From that testing, I'm sure rejetto would get informative suggestions and feedback.
maverick


Offline Martok

  • Occasional poster
  • *
    • Posts: 88
    • View Profile
Quote from: "rejetto"
what do you think about it? suggestions?
I think this would be quite handy, so users can build their own galleries or even some kind of simple message board using text files.

Maybe there could also be a new image type, something like \~img_file, for example ~img_thumb which would give a thumbnail or the normal image if not an image file type.
But generating thumbnails can be long, so this would again be an example for a multi-threaded response-generation.

I made a gallery-supporting template using some javascript:
Code: [Select]
var prm=wl.substr(wl.lastIndexOf('?')) .toLowerCase();
var showPics   = prm.search(/pics/)>-1;
    showThumbs = prm.search(/thumbs/)>-1;
and below the listing I added
Code: [Select]
<a class=little href='%encoded-folder%'>Normal</a> -
<a class=little href='%encoded-folder%?pics'>Preview</a> -
<a class=little href='%encoded-folder%?pics&thumbs'>Thumbnails</a>

And depending on the values of the variables I built different HTML using document.write(), but having such features already in HFS would really be great, as this client-side thing is quiete slow!
Cheers,

Martok


Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile
Martok,
Displaying thumbnails isn't that big of an issue.  I've got many pages and  hundreds of thumbnails that open to full size images when clicked on in my HFS wallpaper section.  The layout etc. was all done in html and runs quick.
maverick


Offline Martok

  • Occasional poster
  • *
    • Posts: 88
    • View Profile
Quote from: "maverick"
The layout etc. was all done in html and runs quick.
Yes, this is sure. In my "real" pages, I also have IrfanView-Generated Galleries. Adding this to a template should only enable my users to choose what they want and making on-the-fly-gallery features for upload folders without a selection HTML.
Cheers,

Martok


Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile
Quote from: "Martok"
I also have IrfanView-Generated Galleries
I created my html galleries myself.  I didn't use any external application to create what you see if that is what you were thinking.
maverick


Offline Martok

  • Occasional poster
  • *
    • Posts: 88
    • View Profile
Quote from: "maverick"
I created my html galleries myself.  I didn't use any external application to create what you see if that is what you were thinking.

This seems to be a lot of work, creating thumbs for all images, making 20 pages of html and filling the table with the stuff...
I would have been a little too lazy for this, so I used irfanview.
Cheers,

Martok


Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile
Quote from: "Martok"
This seems to be a lot of work, creating thumbs for all images, making 20 pages of html and filling the table with the stuff...
I would have been a little too lazy for this, so I used irfanview.
It was time consuming at first, that's for sure but I like a challenge.  I spent quite a bit of time just to come up with a layout that I would be happy with.  I not only had to create the html for the main pages but also for each thumbnail so that when they are clicked you get the full image.  As there was a lot of repetitive html code there was a lot of copy and pasting which made it go faster.  All the html wasn't written at the same time.  I keep adding to it as I get new images.  Quick and easy to do.  The nice thing about it is that I got the layout that I wanted and it follows the scheme of the rest of my site.   HFS is so customizeable.  That is what I like about it.   I haven't heard of irfanview before.  I'll have to check it out.  Maybe I can use it for something else.
maverick



Offline Martok

  • Occasional poster
  • *
    • Posts: 88
    • View Profile
Are you planning to make only [] - sections overridable or will the nameless main section also be changeable? If it will be, this would be very great!
Cheers,

Martok


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13524
    • View Profile
Quote from: "Martok"
Are you planning to make only [] - sections overridable or will the nameless main section also be changeable? If it will be, this would be very great!
i don't understand what you are asking for!


Offline Martok

  • Occasional poster
  • *
    • Posts: 88
    • View Profile
Quote from: "rejetto"
i don't understand what you are asking for!

All sections are started with INI-Style []-symbols.
But at the very beginning of the file, there is a text which has no section heading and starts directly with <html> (the main section, how I called it).

Will this one also be changeable?

If yes, it would allow users to build a statistics-'page' which will be a folder with a customized main section without %files%-element, but only statistic fields, as graphs, total in/out and so on.
Cheers,

Martok


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13524
    • View Profile
Quote from: "Martok"
Will this one also be changeable?
it has always been editable

Quote
If yes, it would allow users to build a statistics-'page' which will be a folder with a customized main section without %files%-element, but only statistic fields, as graphs, total in/out and so on.
that's not the point
see [error-page], it doesn't depend on the root section [], it is a full page


Offline ~GeeS~

  • Tireless poster
  • ****
    • Posts: 269
  • "The web was made for sharing..."
    • View Profile
Rejetto:
I would like to have more flexibility with the template. More sections? Or sections depending on conditions like filetypes? What do you mean exactly? AFAIK see some section in the template depend on certain conditions to be run. Is it that what you propose? I already had and still have some ideas about that.
~GeeS~