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 - CBB

Pages: 1 2
1
My previous code is wrong, the right way is to replace

[file]
{.$item start.}<td align=right>%item-size%<td align=right>%item-modified%<td align=right>%item-dl-count%
 
with
 
[item startf] 
  <tr><td> 
  {.if|{.get|is new.}|<span class=flag>&nbsp;NEW&nbsp;</span>.} 
  {.if not|{.get|can access.}|<img src='/~img_lock'>.} 
  <a href="ftp://%host%%encoded-folder%%item-name%"><img src="%item-icon%" /> %item-name%</a> 
  {.if| {.?search.} |{:<div class=item-folder>{.!item folder.} <a href="%item-folder%">%item-folder%</div>:} .} 
  {.if| %item-comment% | <div class=comment>%item-comment%</div> .} 
 
[file]
{.$item startf.}<td align=right>%item-size%<td align=right>%item-modified%<td align=right>%item-dl-count%
 

this works fine in pair with Filezilla server, though users must login to ftp server when downloading files.


user:password works, but only for login=user and pass=password. Http login and password are not transfered with this string.

2
Yes! It works! In standard template I've changed

[item start]
  <tr><td>
  {.if|{.get|is new.}|<span class=flag>&nbsp;NEW&nbsp;</span>.}
  {.if not|{.get|can access.}|<img src='/~img_lock'>.}
  <a href="%item-url%"><img src="%item-icon%" /> %item-name%</a>
  {.if| {.?search.} |{:<div class=item-folder>{.!item folder.} <a href="%item-folder%">%item-folder%</div>:} .}
  {.if| %item-comment% | <div class=comment>%item-comment%</div> .}


to

[item start]
  <tr><td>
  {.if|{.get|is new.}|<span class=flag>&nbsp;NEW&nbsp;</span>.}
  {.if not|{.get|can access.}|<img src='/~img_lock'>.}
  <a href="ftp://%host%%encoded-folder%%item-name%"><img src="%item-icon%" /> %item-name%</a>
  {.if| {.?search.} |{:<div class=item-folder>{.!item folder.} <a href="%item-folder%">%item-folder%</div>:} .}
  {.if| %item-comment% | <div class=comment>%item-comment%</div> .}

Thanks a lot again

3
Sorry, but I look at templates and can't understand what exactly should I change. Could you be more specific? What strings and how in standart or RAWR templates should I edit?

4
Thanks a lot, you've answered while I was editing the post to propose something similar :)
I'll try.

5
It would be very usefull to give references on files not only in http://server/folder/file.ext form, but also in ftp://server/folder/file.ext form or only in one of them on the admin choice. This would make from HFS the excelent http shell for any FTP server. Note that FTP servers use much less resources for files transactions, especially on fast channels.
By the way - may be it is possible to realize this in template, without changing the main code?

6
Pусский / Re: Russian Forum
« on: March 08, 2008, 09:55:28 PM »
Для работы превбюшек изображений кроме шаблона нужен еще превью генератор, тема про него там же, где шаблоны.

7
Pусский / Re: Russian Forum
« on: March 07, 2008, 11:07:20 PM »
Кроме импорта темплейта надо добавить в VFS обе директории из архива, лучше в скрытом виде. И да, работать будет только на последней бете.

8
HFS ~ HTTP File Server / Re: Feature request: stop search bots
« on: December 03, 2007, 11:30:55 AM »
i asked what's exactly referring to, not the meaning of +1 itself.

Stopping spiders from following 'folder archive' links and downloading data, thus wasting precious resources. Your 'stop spiders' option would stop them completely.

does anyone know how the robots.txt should be to get this job done?

I meant here to change attributes of references in the default template, not to add robots.txt. It would be usefull to add rel='nofollow" to "folder archive" references, see http://googleblog.blogspot.com/2005/01/preventing-comment-spam.html or http://en.wikipedia.org/wiki/Nofollow .

9
HFS ~ HTTP File Server / Re: Feature request: stop search bots
« on: December 02, 2007, 09:00:52 PM »
Next beta will include a "stop spiders" option.
It just will serve this standard robots.txt file (but only if there's no such file in the file system).

I'm gonna make this option ON by default, and hidden while in "easy mode". Any opinion is welcome.

I support this decision, it seems to be very reasonable.

10
HFS ~ HTTP File Server / Re: Feature request: stop search bots
« on: December 02, 2007, 08:49:55 PM »
I also think that preventing bots to follow "folder archive" references should be done in the default template.

I disagree.  It's a matter of personal preference based on the contents of the site.  There might be some admins that want their sites spidered.
Please take into attention that here I mean exclusively "folder archive" references, not other references or directories, so my proposal will not lead to obstacles of site spidering, but only to traffic diminishing.

11
HFS ~ HTTP File Server / Re: Feature request: stop search bots
« on: December 02, 2007, 05:35:34 PM »
Thank you, I've fulfilled your recomendations.
But I also think that preventing bots to follow "folder archive" references should be done in the default template.

12
HFS ~ HTTP File Server / Feature request: stop search bots
« on: December 02, 2007, 05:00:30 PM »
I'd like to prevent search bots from reading the context of my site, or at least from following "folder archive" references.
The most bothering is Google bot, it follows "folder archive" reference, downloads about 15 megabytes, interrupts downloading and then repeats this operation several times each day.
Now my solution is to ban google bots IPs, but as far as I remember there is a possibility to add something like "metaname=robot, nofollow" to references.

13
Pусский / Re: Russian Forum
« on: October 29, 2007, 02:45:35 PM »
Форум по HFS на русском уж года три есть здесь - http://forum.ru-board.com/topic.cgi?forum=5&bm=1&topic=13365&start=100#lt

14
Bug reports / #124 - no UTF-8 in Connections window
« on: September 10, 2007, 09:01:46 PM »
Compare uploading file names in Log window and Connections window:

15
HFS ~ HTTP File Server / Re: Feature request - file list improvemrnt
« on: January 16, 2007, 08:58:18 PM »
If you are thinking of setting up a different set of folders for each of your users or if you want user groups to have access to certain folders...

Not exactly, I want to have diff. templates for different users in the same folders...

That is what I was suggesting in my comments above your's.  Maybe I could have been a bit clearer. 

I beware that maybe I should explain a bit clearer. From my point of view the main difference in our proposals is that I get diff templates for different users in the same folder (not in different folders!), and to get this effect I create in VFS several instances of the same real folder (for example, \music1 , \music2 and \music3 instances in VFS for the same E:\Music\ directory on hard disk) and then apply diff template option and access restrictions for different instances of the same folder (not for different real folders).

Pages: 1 2