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
1
HTML & templates / Unix time
« on: March 01, 2009, 11:37:16 AM »
I am playing around with a template idea and I am after a way to check two time values to see whether or not something has timed out.

The only way I can think of doing it is with Unix(seconds since 1970) time and taking the original value from the new value and comparing the difference to a predefined timeout value.

Is it possible to have unix time added to the time macro? or perhaps a template symbol for it?

Also after some research into the time macro I have come across the symbol %now% but cant find any explanation. What does it do/what is it for?

2
HTML & templates / totable
« on: February 25, 2009, 05:36:07 AM »
For a while now, I have been thinking that to go with the fromtable macro we need a totable equivalent that will append the text to a table or overwrite the text thats already in the table.

I have been thinking this because I have had some ideas for various things overtime and the only thing I could think of that was preventing me from trying to implement them is the difficulty in changing one value from a table.

3
HFS ~ HTTP File Server / content-type
« on: April 14, 2008, 03:47:22 PM »
Im trying to create a flash file that loads a file from my hfs, but on every attempt I get this error

Quote
Error: [strict] Ignoring policy file at http://foggy.dnip.net/crossdomain.xml due to bad Content-Type 'application/octet-stream'.  See http://www.adobe.com/go/strict_policy_files to fix this problem.

I have gone to the site specified and it says that a content-type of application/xml needs to be sent. I am guessing that content-type is the same as mime types?

Anyway I tried adding a mime type for xml files but it hasnt worked, I still get the error.

4
HTML & templates / replace line brake with </br>
« on: March 29, 2008, 05:30:01 AM »
I have a form that sends multiline text which is saved and can be viewed later on. but I am having trouble with the line brakes(enter/return key) because html needs </br> to start a new line.

The text comes through fine in hfs and saves in the file with the line breaks, etc but html wont show it properly and places it all on one line and then wraps it.

I can set the css style to white-space:pre and the line breaks are follow but the text is no longer wrapped.

is there a way in hfs to replace the line breaks with </br>
eg
{.replace|
|</br>|text
that is
multiline.}

returns

text</br>that is</br>multiline.

5
HFS ~ HTTP File Server / multiline strings
« on: March 29, 2008, 03:36:14 AM »
Is it somehow possible to use string tables with strings that have more than 1 line.

eg.
string1=hello
string2=hey,
how are you?

{.!string1.}=
hello
{.!string2.} =
hey,
how are you?

6
HFS ~ HTTP File Server / Address line operators
« on: February 15, 2008, 10:41:15 AM »
Is it possible to have hfs search for the address line operators that are found in urlvars, also search if they are in postvars.

I need this ability because on a couple of pages I have to post data into hfs but when i use post I cannot specify any urlvars to limit the number of files/folders etc and this leads to a lot of stress on the server.

Edit: Not sure if this is partly related but I seem to have a cache problem with hfs. My template relies heavily on urlvar's to output the correct pages and so far it works fine, but whenever I post a form the resulting page that processes the postvars is cached and I keep being presented with that page if I'm in the same folder, regardless if there is urlvars saying something else should be shown. It works perfectly after about 30 seconds though, which is why I think it may be a possible cache problem.

7
Bug reports / from table
« on: February 05, 2008, 11:45:56 AM »
If you use from table with the same variable name but change the contents of the variable it still returns the string from the original contents of the variable.

if you look in the section of macros.log I posted you can see that even though the contents of the variable were changed the same string was returned. The var has the same string ids but different content.

Code: [Select]
> $subforum
< <span style="display: none">Do your testing (and checking!) here ... contains a couple of subforums ... yes we do have these now. Note that posts in these forums won't count towards your total<br /></span><strong>Moderator:</strong> <a style="color:#0000CC;" href="/memberlist.php?mode=group&amp;g=7">Moderators</a></p>
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt>Forum</dt>
<dd class="topics">Topics</dd>
<dd class="posts">Posts</dd>
<dd class="lastpost"><span>Last post</span></dd>
</dl>
</li>
</ul>
{{for|A|1|%number-folders%|{{\{{set|forum_folder|{{substring||;|{{^raw_forums}}}}}}{{load|%folder-resource%\{{^forum_folder}}\forum_table.txt|subforum}}{{set|raw_forums|{{cut|{{add|{{length|{{^forum_folder}}}}|2}}||{{^raw_forums}}}}}}{{$subforum_data}}/}}/for}}
<span class="corners-bottom"><span></span></span></div>
</div>

> %number-folders%
< %number-folders%

> %folder-resource%
< C:\HFS\HFS Testing\phpBB\forum

> for|A|1|11|{{\{{set|forum_folder|{{substring||;|{{^raw_forums}}}}}}{{load|C:\HFS\HFS Testing\phpBB\forum\{{^forum_folder}}\forum_table.txt|subforum}}{{set|raw_forums|{{cut|{{add|{{length|{{^forum_folder}}}}|2}}||{{^raw_forums}}}}}}{{$subforum_data}}/}}/for
< {{set|forum_folder|{{substring||;|{{^raw_forums}}}}}}{{load|C:\HFS\HFS Testing\phpBB\forum\{{^forum_folder}}\forum_table.txt|subforum}}{{set|raw_forums|{{cut|{{add|{{length|{{^forum_folder}}}}|2}}||{{^raw_forums}}}}}}{{$subforum_data}}{{set|forum_folder|{{substring||;|{{^raw_forums}}}}}}{{load|C:\HFS\HFS Testing\phpBB\forum\{{^forum_folder}}\forum_table.txt|subforum}}{{set|raw_forums|{{cut|{{add|{{length|{{^forum_folder}}}}|2}}||{{^raw_forums}}}}}}{{$subforum_data}}{{set|forum_folder|{{substring||;|{{^raw_forums}}}}}}{{load|C:\HFS\HFS Testing\phpBB\forum\{{^forum_folder}}\forum_table.txt|subforum}}{{set|raw_forums|{{cut|{{add|{{length|{{^forum_folder}}}}|2}}||{{^raw_forums}}}}}}{{$subforum_data}}{{set|forum_folder|{{substring||;|{{^raw_forums}}}}}}{{load|C:\HFS\HFS Testing\phpBB\forum\{{^forum_folder}}\forum_table.txt|subforum}}{{set|raw_forums|{{cut|{{add|{{length|{{^forum_folder}}}}|2}}||{{^raw_forums}}}}}}{{$subforum_data}}{{set|forum_folder|{{substring||;|{{^raw_forums}}}}}}{{load|C:\HFS\HFS Testing\phpBB\forum\{{^forum_folder}}\forum_table.txt|subforum}}{{set|raw_forums|{{cut|{{add|{{length|{{^forum_folder}}}}|2}}||{{^raw_forums}}}}}}{{$subforum_data}}{{set|forum_folder|{{substring||;|{{^raw_forums}}}}}}{{load|C:\HFS\HFS Testing\phpBB\forum\{{^forum_folder}}\forum_table.txt|subforum}}{{set|raw_forums|{{cut|{{add|{{length|{{^forum_folder}}}}|2}}||{{^raw_forums}}}}}}{{$subforum_data}}{{set|forum_folder|{{substring||;|{{^raw_forums}}}}}}{{load|C:\HFS\HFS Testing\phpBB\forum\{{^forum_folder}}\forum_table.txt|subforum}}{{set|raw_forums|{{cut|{{add|{{length|{{^forum_folder}}}}|2}}||{{^raw_forums}}}}}}{{$subforum_data}}{{set|forum_folder|{{substring||;|{{^raw_forums}}}}}}{{load|C:\HFS\HFS Testing\phpBB\forum\{{^forum_folder}}\forum_table.txt|subforum}}{{set|raw_forums|{{cut|{{add|{{length|{{^forum_folder}}}}|2}}||{{^raw_forums}}}}}}{{$subforum_data}}{{set|forum_folder|{{substring||;|{{^raw_forums}}}}}}{{load|C:\HFS\HFS Testing\phpBB\forum\{{^forum_folder}}\forum_table.txt|subforum}}{{set|raw_forums|{{cut|{{add|{{length|{{^forum_folder}}}}|2}}||{{^raw_forums}}}}}}{{$subforum_data}}{{set|forum_folder|{{substring||;|{{^raw_forums}}}}}}{{load|C:\HFS\HFS Testing\phpBB\forum\{{^forum_folder}}\forum_table.txt|subforum}}{{set|raw_forums|{{cut|{{add|{{length|{{^forum_folder}}}}|2}}||{{^raw_forums}}}}}}{{$subforum_data}}{{set|forum_folder|{{substring||;|{{^raw_forums}}}}}}{{load|C:\HFS\HFS Testing\phpBB\forum\{{^forum_folder}}\forum_table.txt|subforum}}{{set|raw_forums|{{cut|{{add|{{length|{{^forum_folder}}}}|2}}||{{^raw_forums}}}}}}{{$subforum_data}}

> ^raw_forums
< forum2;forum3;

> substring||;|forum2;forum3;
< forum2

> set|forum_folder|forum2
<

> ^forum_folder
< forum2

> load|C:\HFS\HFS Testing\phpBB\forum\forum2\forum_table.txt|subforum
<

> ^forum_folder
< forum2

> length|forum2
< 6

> add|6|2
< 8

> ^raw_forums
< forum2;forum3;

> cut|8||forum2;forum3;
< forum3;

> set|raw_forums|forum3;
<

> $subforum_data
< <ul class="topiclist forums">

<li class="row">
<dl class="icon" style="background-image: url(/styles/prosilver/imageset/forum_read.gif); background-repeat: no-repeat;">
<dt>
<a href="%folder%{{^forum_folder}}" class="forumtitle">{{from table|subforum|forum_name}}</a><br />
{{from table|subforum|forum_comment}} <br /><strong>Moderator:</strong> </dt>
<dd class="topics">0 <dfn>Topics</dfn></dd>

<dd class="posts">0 <dfn>Posts</dfn></dd>
<dd class="lastpost"><span>
No posts</span>
</dd>
</dl>
</li>
</ul>

> %folder%
< /

> ^forum_folder
< forum2

> from table|subforum|forum_name
< test2

> from table|subforum|forum_comment
< this is a test

> ^raw_forums
< forum3;

> substring||;|forum3;
< forum3

> set|forum_folder|forum3
<

> ^forum_folder
< forum3

> load|C:\HFS\HFS Testing\phpBB\forum\forum3\forum_table.txt|subforum
<

> ^forum_folder
< forum3

> length|forum3
< 6

> add|6|2
< 8

> ^raw_forums
< forum3;

> cut|8||forum3;
<

> set|raw_forums|
<

> $subforum_data
< <ul class="topiclist forums">

<li class="row">
<dl class="icon" style="background-image: url(/styles/prosilver/imageset/forum_read.gif); background-repeat: no-repeat;">
<dt>
<a href="%folder%{{^forum_folder}}" class="forumtitle">{{from table|subforum|forum_name}}</a><br />
{{from table|subforum|forum_comment}} <br /><strong>Moderator:</strong> </dt>
<dd class="topics">0 <dfn>Topics</dfn></dd>

<dd class="posts">0 <dfn>Posts</dfn></dd>
<dd class="lastpost"><span>
No posts</span>
</dd>
</dl>
</li>
</ul>

> %folder%
< /

> ^forum_folder
< forum3

> from table|subforum|forum_name
< test2

> from table|subforum|forum_comment
< this is a test

8
HFS ~ HTTP File Server / Protected Links
« on: January 31, 2008, 08:32:40 AM »
I just noticed that when you restrict access to a link you get a warning dialog saying it isn't actually protected etc, but should the warning also be displayed when you unrestrict access to it?

9
Bug reports / AV #177
« on: January 29, 2008, 07:24:18 AM »
---------------------------
HFS 2.3 beta (177)
---------------------------
On httpEvent(6)
Access violation at address 0050E798 in module 'hfs177.exe'. Read of address 0000000C
---------------------------
OK   
---------------------------

I was working on the same template as last time but there is a few more macro's now.

10
HTML & templates / Apache Style Template
« on: January 18, 2008, 04:31:53 PM »
As the name suggests this is an apache directory listing look a like.

there is some brief instructions in the zip folder but you should be able to figure it out quite easily. ;)

It is designed to look exactly how apache does, so there is no login or upload button's etc. but you can still upload by appending ~upload to the url.

11
Bug reports / Out of memory
« on: January 18, 2008, 02:21:13 AM »
---------------------------
HFS 2.3 beta (171)
---------------------------
On httpEvent(6)
Out of memory
---------------------------
OK   
---------------------------
 

is this caused by simply using too many macro's?

12
HFS ~ HTTP File Server / POST data instead of GET for urlvars?
« on: January 11, 2008, 04:27:06 AM »
Is it possible to use POST instead of get on form's so that I can submit more then 100 characters, but still be able to access the data via urlvars?

13
HFS ~ HTTP File Server / User Created Section's eg "/~example"
« on: January 08, 2008, 08:34:27 AM »
Now that we have macro's and can include server side scripting would it be possible to be able to access user created section's from any folder instead of just the server root, much like how you can call ~upload from any folder.

14
Everything else / Merry Christmas
« on: December 24, 2007, 01:02:34 PM »
Merry Christmas to all, have a great day.

It's about 30 minutes until it's officially christmas here and I can't wait :P

15
HFS ~ HTTP File Server / Sort by comment
« on: December 11, 2007, 04:22:02 AM »
Would it be possible to be able to sort the filelist by the comments as well?

Pages: 1 2 3