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

Pages: 1
1
Beta / Re: Testing build #279
« on: October 01, 2011, 01:30:33 PM »
When will you release next one?

2
HTML & templates / Re: How to download a file in a new page?
« on: August 30, 2011, 11:35:54 AM »

i didn't test it! good luck ^^

 ;) Thanks, it's works!!

3
HTML & templates / How to download a file in a new page?
« on: August 27, 2011, 02:38:46 AM »
Does anyone know how to download a file in a new page? In 2.3 279 default.dpl, when you click the file, the file is donwload directly. How could change the templates when click the file, it will jump to a new page, and this page I will write some warming message and another link to the file, this link is the real link for the file.

I modidied the default.tpl file link to ~files.lst like this:
Code: [Select]
file=folder=link|private]
<tr class='{.if|{.mod|{.count|row.}|2.}|even.}'><td>
        <input type='checkbox' class='selector' name='selection' value='%item-url%' {.if not|{.or|{.get|can delete.}|{.get|can access.}|{.get|can archive item.}.}|disabled='disabled'.} />
{.if|{.get|is new.}|<span class='flag'>&nbsp;NEW&nbsp;</span>.}
{.if not|{.get|can access.}|<img src='/~img_lock'>.}
<a [color=red]href="~files.lst"[/color]><img src="%item-icon%"> %item-name%</a>
{.if| {.?search.} |{:{.123 if 2|<div class='item-folder'>{.!item folder.} |{.breadcrumbs|{:<a href="%bread-url%">%bread-name%/</a>:}|from={.count substring|/|%folder%.}/breadcrumbs.}|</div>.}:} .}
{.123 if 2|<div class='comment'>|{.commentNL|%item-comment%.}|</div>.}

And then modified the filelist.tpl to :
Code: [Select]
%files%

[files]
%list%

[file]
%item-url%


The new page will display when you click the file, but the new page contain all the files %item-url% in the current folder, I think this is because the marco %list% expand to all the file list in the current folder.

Any one konw how to implement this feature?

4
HTML & templates / Re: Multiple templates (based on browser)
« on: August 13, 2011, 01:47:08 AM »
Could someone explain more detail. How do I know the agent = iphone? If I use a Andriod device, how to set it?

 {.load tpl|myOtherTemplate.tpl .}

Does the myOtherTemplate.tpl  can include the path? Like ./mytmp/myOtherTemplate.tpl?

I used my Andriod device to do the test, from the dump log:
User-Agent: Mozilla/5.0 (Linux; U; Android 2.2; zh-cn; Desire_A8181 Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

how to set this Marco?

5
we can try
remember i don't know chinese

Don't worry, you don't need usderstand Chinese, most Windows XP looks the same. And I will provide the test case, you can compare the search result.  ;D

6

if it's a bug, i need to be able to reproduce the problem. The problem is that i don't have a chinese system.

Is that possiable if I provid you a Chinese system of VitrualBox vdi file? Then you can run a Chinese system in a virtual mechine.

7
Hi rejetto

Could you please give me some clue that how does the search file mechanism works.  I read the code the templates but not get a clear answer.

May be I can confirm it's a bug or somthing eles.

Thanks for your help.

8
Hi, I'm using hfs 2.3-279 to build up a file share server. But the search function seems not work well on Chinese characters, English works well.
See the attachment,
I was trying to search "测试" in search box, the search result not only return only contain "测试" files and folder, but actually return all the files and folder which are contain any Chinese characters.

I'm not sure it's a bug a somthing I did a wrong config in somewhere...

Could you please help me.

Thanks a lot.

Pages: 1