rejetto forum

Testing build 093

rejetto · 11 · 12345

0 Members and 1 Guest are viewing this topic.

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13520
    • View Profile
download www.rejetto.com/temp/hfs093.exe

what's new...
Code: [Select]
+ main tray icon shows -> number of different IP addresses
+ main tray icon shows -> number of different IP addresses ever connected
+ Log menu -> "Addresses ever connected..."
+ new template symbols: %sequential% %number-addresses-ever%
+ offset and limit URL parameters
+ File menu -> "Don't log"
+ Menu -> Limits -> "Prevent leeching"
+ custom symbols %sym-NAME%
* log menu -> log what -> replies  ...now disabled by default
* log: no more "served" messages after "full downloaded"
- graph visibility was not saved
- bad %protected% behaviour


here is a bunch of features for template makers! (templaters?)

the %sequential% symbol is substituted with an increasing number. if it appears 3 times in a page, it will be 1, 2 and 3...
this was requested long ago by flynsarmy

offset and limit in URL work this way:
an url like http://your_ip/folder/?offset=30&limit=30
will give you only files from 31 to 60.
using javascript you may achive to have multipage folders. the default template doesn't use this feature yet.

the %sym-NAME% symbols mean that you write %sym-blablabla% and it will expand with the content of [sym-blablabla]
it may be useful when you have the same text several times in a template, and what to create a shorcut.


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
YAY, these features will help a lot with our templates. It also means re-working the templates a little bit... but we'll get there.

Looks like i'll be postponing the ToG release further  :o


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
ok, the ?offset=30&limit=30 thingo is working good by the looks of it.... but i don't like how it just cuts the file list... it would be nice if we could set a maximum amount of files/page and then navigate them with  <<previous | next >> or even a number system... if we can cut the file list like that so far... then wouldn't it be possible to allow a person to navigate to the next page of files?


EDIT:
Hmm so far i haven't found a use for the new features in the ToG... maybe some other time. I tried putting %sequential% as the div ID's for the previews, other than making the code valid html, it really bloats up the code a lot more and so keeping with the ToG lightweight nature i decided to leave it how it was. If anyone has any suggestions for the ToG and the new features go for it. I'm going to release it on saturday with a link to this build. I just need some time to check through the code again.
« Last Edit: April 26, 2007, 09:57:44 AM by That_Stevens_Guy »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13520
    • View Profile
it would be nice if

sure, but it's up to the template, ATM

Quote
I tried putting %sequential% as the div ID's for the previews, other than making the code valid html, it really bloats up the code a lot more

it does? flynsarmy asked saying it would shrink. ask him.


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
I have a new version which fixes many bugs and includes if else checks between all media preview types, I basically wrote a new function using his one as a template and well... it works so damn nice lol.

I had another go using the new feature... the problem is when looking at %item-name% in a javascript variable, the last file in the list will be the song for example that is played, i am unsure but i think i would have to store it in some sort of array or something... when using the other method the div id is unique and the song is played correct... the only problem this has is that the item-name contains spaces in it which is an illegal syntax for a ID tag with w3c, and so it spits out errors. I mean i don't mind this cause its nothing major.

The only known html errors with the ToG are ... the divs are inside link tags for an image... and the ID tag thingo for the media previews...

Maybe working with Chrno and Giant Eagle we can create something like a multi page file list using this new url feature...


Offline Giant Eagle

  • Tireless poster
  • ****
    • Posts: 535
  • >=3 RAWR!
    • View Profile
    • RAWR-Designs.com
niiice! have been waiting for this a long time :D

Maybe working with Chrno and Giant Eagle we can create something like a multi page file list using this new url feature...

I've already created a multi-page file list system with only using javascript. it only showes 10 files a page and has a << previous and next >> button that works.. The method that is used is very similar to the new url thing, so it can be easily converted (i think)


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
sweeet i thought i remembered a code that did it  :D


Offline Flynsarmy

  • Occasional poster
  • *
    • Posts: 92
  • DENIED!
    • View Profile
    • Flynsarmy
It's easy to get javascript next/prevous buttons for file offsets, but you'd be better off adding %next-page% and %previous-page% calls in HFS. that work in the [files] section. That way it'd work for ALL browsers, not just ones with javascript enabled.


Offline Alons0

  • Tireless poster
  • ****
    • Posts: 197
    • View Profile
    • Alons0's site
Does %number-addresses-ever% start counting from zero? Orr shows ips connected since hfs is running on the pc?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13520
    • View Profile
it starts counting from this build, and the number is saved when you quit.
but you can reset it.


Offline Alons0

  • Tireless poster
  • ****
    • Posts: 197
    • View Profile
    • Alons0's site
it starts counting from this build, and the number is saved when you quit.
but you can reset it.
OK
In the next beta please put a scrollbar in the window which is accessible form the log.