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.


Messages - Chrisp6825

Pages: 1 2
1
HTML & templates / Re: Macros
« on: February 04, 2009, 01:49:07 PM »
Dang.. %folder%. I knew about that. I dont know why I didn't think about it. haha
Thanks. And no this isnt for bread crums.

2
HTML & templates / Re: Macros
« on: February 04, 2009, 05:37:44 AM »
Hi. How would I do this? :


Code: [Select]
<script type="text/javascript">
var path = document.location.pathname;
var dir = path.substring(path.indexOf('/', 1)+1, path.lastIndexOf('/'));
</script>

{.set|directory|dir.}

Where it sets 'directory' to equal the value of 'dir' in javascript...
I cant figure it out.

3
HFS ~ HTTP File Server / Re: folder restrictions and etc... on creation
« on: February 04, 2009, 03:12:17 AM »
Sweet. This helps a bunch.
Thanks for the code clean-up, also.

I'm currently using this now :
Code: [Select]
{.if|{.and| {.?username.} | {.?password.} | {.{.?password.} = {.?password2.}.} /and.}|{:
{.mkdir|C:\Documents and Settings\Chris\Desktop\website\Users\{.?username.} .}
{.add folder|real|C:\Documents and Settings\Chris\Desktop\website\Users\{.?username.}|/Users/{.?username.} .}
{.new account|{.?username.}|password={.?password.}|enabled=yes|redirect=/Users/{.?username.}/ /new account.}
{.chdir|C:\Documents and Settings\Chris\Desktop\website\ .}
{.append|/Users/users.txt|{.?username.}
/append.}
{.set item|/users/{.?username.} |access={.?username.} |upload={.?username.} |delete={.?username.} .}
{.add header|Location="~login".}
:} /if.}

The append is on the next line, so when it adds the next user, the name will be on the next line.

The {.add header|Location="~login".} bit isn't really working.
I've tried that ^^^ and what you suggested {.add header|Location: ~login.} and neither work.
I'm just gonna stick with the javascript until I can get it cleared.



Other than that, everything works perfectly! Thanks a ton! I'll be using the copy command soon to try and get a "profile" or "home page" type thing going. It's all about what the visitors want, and my greedy visitors want customization. haha

Thanks for the help.

Edit: Oh um.. do you think you could give me a quick example of the copy command?
I'm guessing {.copy|from|to.} ? Thanks.

4
HFS ~ HTTP File Server / folder restrictions and etc... on creation
« on: February 03, 2009, 05:07:56 AM »
Hi.

I'm using this to create a "User folder" on user registration, and add it to the HFS tree as real, and add it to the user's redirect folder.
Code: [Select]
{.if|{.and|{.and|{.?username.}|{.?password.} /and.}|{.?password2.} /and.}|{:
{.if|{.=|{.?password.}|{.?password2.}.}|{:
{.chdir|C:\Documents and Settings\Chris\Desktop\website\Users\ .}
{.mkdir|{.?username.} .}
{.add folder|real|C:\Documents and Settings\Chris\Desktop\website\Users\{.?username.}\|Users\{.?username.} .}
{.new account|{.?username.}|password={.?password.}|enabled=yes|redirect=/Users/{.?username.}/ /new account.}
{.chdir|C:\Documents and Settings\Chris\Desktop\website\ .}
{.save|/Users/users.txt|{.?username.}
{.load|/Users/users.txt.}/save.}
{: <script language="JavaScript" type="text/javascript"> window.location="~login"; </script> :}
:} /if.}
:} /if.}

So basically, it makes the new user's folder onto the harddrive, then adds that folder to HFS as real, then creates the user's account, then adds the users name to a list, and finally asks the user to login and redirects them to their folder.

I want to know if I can make the folder locked, and only accessible by the new user. (and maybe add upload privileges)
And, when I add the folder to HFS, I have it to add it to "Users\{.?username.}" but it's always added to the root.
Also, can I have it to copy an index file to their new folder?

Thanks, and sorry for all the questions.

5
HTML & templates / Re: Cancel or disconnect downloads
« on: November 22, 2008, 12:38:46 AM »
Oh, ok.
So any idea how or if your going to let us use this if we dont know the item-ip or port?

I was thinking of something like, %download1-ip%, %download2-ip%, %download3-ip%, and so on...
But I'm not so sure if it would work so well like that. I bet you probably already have it all figured out though..

6
HTML & templates / Cancel or disconnect downloads
« on: November 21, 2008, 03:26:24 AM »
Hi, I've been trying to find out if there was a way i could add a button or link next to a download in the progress window to disconnect or cancel the download...

like this:



So when you click the disconnect link, it closes the connection on the download.
I've tried to make that link point to a hfs.diff.tpl file with the macro {.disconnect.} in it, but it just closes the connection to that page, not the download.

The reason I'm doing this is because some computers I've connected to my website from, when I cancel a download and check the progress page, it's still downloading. I tried to close the browser to see if it was secretly downloading it, but when I opened it back up and checked, it was still downloading.. And after a few downloads, others start to use up too much bandwith and slow down.

7
HFS ~ HTTP File Server / Re: is there a way to...
« on: October 14, 2008, 03:19:26 AM »
Oh sweet, ya thats what I was looking for. The "\" to reverse it.
Thanks a ton rejetto!

8
HFS ~ HTTP File Server / Re: is there a way to...
« on: October 14, 2008, 02:59:40 AM »
But doesn't that just allow one referer?
Can you explain exactly how I use it?

9
HFS ~ HTTP File Server / Re: is there a way to...
« on: October 13, 2008, 06:07:40 AM »
Sorry to bring this from the dead, but I would like this feature. It would help me a bit.

Something where it checks to see what the referer is, and based on that, it disallows downloads or connections altogether.
It doesn't sound too hard, since there's an "allowed referer" option. Just reverse it?

Thanks.

10
HTML & templates / Re: A little confusion about the macros...
« on: June 15, 2008, 12:10:06 AM »
hah.. o wow.
I only had the index.html file in the actual chat folder. but only in hfs it was renamed to "hfs.diff.tpl"
so i just renamed the actual file to "hfs.diff.tpl" and it works.
Posted on: June 14, 2008, 07:01:18 PM
Shouldn't i leave this topic here just in case someone else has this question?

I have another question though... I noticed in the hfs.diff.tpl file it says :
Code: [Select]
{.append|chat.html|<br>.....

where is the chat.html file that its appending to? like, where is the chat stored in?

11
HTML & templates / Re: A little confusion about the macros...
« on: June 14, 2008, 11:53:12 PM »
there isnt anything in the diff template. You mean the thing where i right click the folder in hfs and goto advanced then "diff template" right? its already empty.

12
HTML & templates / Re: A little confusion about the macros...
« on: June 14, 2008, 11:45:37 PM »
here : http://chrisp6825.co.nr/chat/hfs.diff.tpl

but i still only have that code in there, that you said isnt what i use.

13
HTML & templates / Re: A little confusion about the macros...
« on: June 14, 2008, 11:39:58 PM »
ok. I made a "real" folder in hfs named "chat". then I added a file named "hfs.diff.tpl". this is right so far?

and if that isn't the tpl i use, what do i use?

14
HTML & templates / Re: A little confusion about the macros...
« on: June 14, 2008, 11:30:15 PM »
you want me to attach what im using? Well, im just using what i posted in the first post. I just dont know how to use it.

It's a template right? So do I make a folder and right click it > advanced > diff template and then paste the macro in there?
Or is it supposed to be in an html file? This is what I don't understand.

15
HTML & templates / Re: A little confusion about the macros...
« on: June 14, 2008, 11:20:16 PM »
So this is an html file?

Pages: 1 2