rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Foggy

Pages: 1 2 3
16
HTML & templates / Change ?rev
« on: December 09, 2007, 01:24:41 PM »
Can we change ?rev to a urlvar that needs a value because I am trying to create a sort button that will automatically reverse the list each time it is pressed but it is impossible with the way that the if macro says something is true, the ?rev urlvar is always empty when called by {{urlvar|rev}} and therefor always false.

I tried assigning a value to ?rev but then the list wasnt reversed.

a couple different of if macros I tried are.

{{if | {{match | {{urlvar | sort}} | n}} | {{if | {{match | {{urlvar | rev}} | 1}} | ?rev&sort=n | ?rev=1&sort=n}} | ?rev=1&sort=n}}

and

{{if | {{urlvar | sort}} | {{if | {{urlvar | rev}} | ?sort=n | ?rev&sort=n}} | ?sort=n}}


I think that the second one is the simpler and more lightweight of the two and the only thing that is stopping it from working is that ?rev is always reported as empty creating a false statement when it is true.

Note: I just did a test before I post and I found that when the urlvar is empty (ie ?test) and you try to match it with something, it returns true. Which explains why my first if macro doesn't work.

Note: I have something that works with the current problems im facing but needs a little of refining still.

<a href="{{if | {{urlvar | sort}} | {{if | {{match | {{urlvar | sort}} | n}} | {{if | {{urlvar | rev}} | ?rev&sort=n | ?rev=1&sort=n}} | ?rev=1&sort=n}} | ?rev=1&sort=n}}">Name</a>

17
HFS ~ HTTP File Server / %number% in [folder]
« on: December 07, 2007, 08:07:52 AM »
I was thinking that if we had a way to get the number of items in a folder(not the current folder but subfolder's of the current folder) we should be able to make use of the new macros(or create one) to get multipage file systems quite easily.

I've got plenty of time on my hands currently and I'm thinking of having a go at creating a template based on a forum I visit and I've got the perfect idea of how to use this.

18
HFS ~ HTTP File Server / Uploaded by
« on: December 06, 2007, 10:15:48 AM »
Would it be possible to have a symbol %uploaded-by% that translates to the name of the user who uploaded it. I know that this wouldn't be possible until HFS3 because of real folders, but in the mean time would it be possible to have an option to automatically add a comment that says "uploaded by..." because comments work both with real folders and virtual folders.

19
HFS ~ HTTP File Server / Filters in files.lst
« on: November 20, 2007, 11:16:32 AM »
With the addition of filters recently, they have really added new functionality to hfs but it would be good if we could use the filters on the ~files.lst file.

eg. /~files.lst?recursive&folders-filter=*
To show only folders on the list.

20
F.A.Q.s / Flash Folder Tree
« on: November 20, 2007, 08:59:47 AM »
I've had some free time and decided I'd try and create a browseable folder tree. Here is what I have so far, again it uses the same files.lst file as the search I created but a newer version of it. So it will only show the folders that the current user has access to.
If you click on one of the folders it will take you to that folder so you must use the arrows to browse it.

You can see a preview of it HERE Note: The preview is not the most current version.

To use, just simply use the files.lst file and place the swf/html file somewhere in your vfs/template.

Comments/suggestions please. :)



The latest version I've made should work and have the following features.

  • Flash Cookies - Retain the directory structure between pages, so no need to redownload files.lst. It will check if the information is more than 1 hour old and redownload if necessary.
  • Auto Expand - Automatically expand to the current folder.
  • Default Files.lst - No longer needing the custom files.tpl file, Work off of the hfs default.
  • Manual Update - Right Click and select "Update" to redownload the files.lst and retrieve any changes in the vfs.
  • Clickable Folders - Double Click on the folder to open it in the current window. One click will Expand/Minimize the folder.
  • Restricted Access - Automatically updates when logged in user changes and protected folders become avaliable.

Auto Expand: To use the auto expand you have to pass the current url to the tree either by a querystring or flashvars in a variable called "current_location". I recommend the use of flashvars as that way the .swf is cached and not redownloaded every time the user changes the page.

Restricted Access: You need to pass the name of the current user to the tree same way as you do with the url, but this time inside the "user" variable.

you can use this code as an example to automatically send the variable if you are calling it from the template and not the html file.
Quote from: Example TPL Code
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="550" height="400">
<param name="movie" value="relative path to folder tree.swf">
<param name="quality" value="high">
<param name="FlashVars" value="current_location=http://%host%%folder%&user=%user%">
<embed src="relative path to folder tree.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="400" flashvars="current_location=http://%host%%folder%&user=%user%"></embed>
</object>

21
HFS ~ HTTP File Server / Address changes on restart.
« on: November 16, 2007, 08:01:13 AM »
I don't know if it is just me but I find that when ever I restart hfs(because I turn my computer off when I sleep) I have to reselect my ddns name from the ip address menu because it defaults back to my external ip. Shouldn't hfs remember this setting in the ini?

22
HFS ~ HTTP File Server / Flash Search
« on: November 03, 2007, 06:12:27 AM »
Here's what I have made, it works but when I was just trying to get it to work in IE6 it wasnt working. It should work though, Im unsure about what version of flash it requires but I made it using Flash 8.

To use it, use the filelist.tpl file and load either of the flash files through hfs. it is that simple.

The difference between the two flash files is one has a scrollbar and  the other only has buttons to scroll up/down.

23
HFS ~ HTTP File Server / Guest Account
« on: October 20, 2007, 07:51:29 AM »
I was thinking earlier why not have a guest account in hfs like windows xp does where you have the choice to enable/disable it.

I create an account called "guest" but it is a nusiance because I only want to let guests(everyone else without a user/pass) see what the anonymous account is allowed to see but when adding new accounts I cant select the "all accounts" option in the folder permission menu because it also includes the guest account I create.

Basically Im suggesting a clone of the anonymous account but with this one you have to login to view the files/folders and you can disable it if you wish. It would allow anonymous access to hfs servers that use templates that have a login section if your not logged in(eg, anonymous user) and because you have to log in it would prevent abuse of a completely open server that just has the anonymous account.

24
HTML & templates / Make a page expire
« on: October 13, 2007, 01:46:32 PM »
Does anyone know of a way that I can make the browser say the page has expired when I click the back button?

25
HFS ~ HTTP File Server / Virtual folder - refresh
« on: September 28, 2007, 03:07:28 PM »
If we add a folder from disc and make it a virtual folder, can we have the option to refresh the contents of the folder.

While I'm on the topic of folders I had another idea... Is it possible to create one real folder that will contain the contents of 2 different folders on the computer.

26
Bug reports / http://user@host - logs in...
« on: September 16, 2007, 09:24:46 AM »
If you put the wrong user name in a link you can still log in even though the user doesnt exist.

I tried http://fred@localhost and I successfully logged in. :O

I dont think its such a big deal because It only worked because the root of my file system doesnt have restricted access for users set.

27
HFS ~ HTTP File Server / Allowed referer...
« on: September 15, 2007, 05:46:05 AM »
After playing around with the allowed referer feature I found that if the user is set to ignore limits, the allowed referer limit is not ignored.

Also can we have the ability to select folders that are not affected by the allowed referer limit, mainly because when the referer is not allowed and the error page cant load the error images, etc from a template folder making the page very broken.

Also shouldn't hfs always be allowed to be a referer?

28
HFS ~ HTTP File Server / Dynamic DNS - manual update
« on: September 06, 2007, 06:25:41 AM »
I think that the dynamic dns updater menu should also include a manual update button so that we arnt always relying on the automatic updater even though 99% of the time thats all we will need.

29
HFS ~ HTTP File Server / Accept Connections On
« on: August 28, 2007, 06:34:35 AM »
Can we please have the ability to only accept connections on our DDNS and also I wasnt able to get my external IP in the list of choices for the accept connections on menu.

30
RAWR-Designs / Active Transfers Broken?
« on: August 20, 2007, 11:29:20 AM »
Is it just me or is the active transfers button in 2.9.0 broken? when I click it nothing happens and down the bottom of IE6 it says error on page.

Pages: 1 2 3