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

Pages: 1 [2] 3
16
RAWR-Designs / Re: Changing The Default Search Option
« on: October 08, 2013, 01:22:18 AM »
Hi Mars, I got it from the default template/rawr_default/code/rawr_main.js


it's inside the javascript..


I am currently using HFS 282, with the latest template 0.1.3.  ;D

17
HFS ~ HTTP File Server / Multi-Page per Directory
« on: October 07, 2013, 02:45:33 AM »
Greetings!


I have search this forum to find a mod for a multi-page directory if it has many files on it. I have found this link but it seems that it's in older versions of HFS, I didn't find the to-do-list in my HFS to enable the option multi-page browsing.


http://www.rejetto.com/forum/hfs-~-http-file-server/suggestion-percentlistpercent-pages-feature/msg1019850/#msg1019850


Can anyone update me for the version 282? My directories have hundreds of files on it, and in my experience, it took a long time to load the page of that directory. I wanted to have at least a max of 25 items at least per page. :)

18
RAWR-Designs / Changing The Default Search Option
« on: October 07, 2013, 02:01:52 AM »
Greetings!

I just wanted to ask, what value should I change in these codes so that the default search is File(s) only not Both, because the default option selected in the template is Both.

Code: [Select]
function searchQuery() {
frm = document.searchForm;
if(frm.query.value.length < 3) {
alert(lv_searchAlert);
} else {
frm.recursive.checked ? recursive ="&recursive" : recursive ="";
for(x=0; x<frm.choice.length; x++) {
if(frm.choice[x].checked ==1) {
if(frm.choice[x].value =="file") {
searchMode ="?files-filter=";
filter="&folders-filter=%5C";
} else if(frm.choice[x].value =="folder") {
searchMode ="?folders-filter=";
filter="&files-filter=%5C";
} else {
searchMode ="?filter=";
filter="";
}
}
}
for(c=0; c<frm.root.length; c++) {
if(frm.root[c].checked ==1) {
frm.root[c].value =="current" ? searchFrom ="http://"+serverHost+serverFolder : searchFrom ="http://"+serverHost;
}
}
document.location.href = searchFrom+searchMode+"*"+frm.query.value+"*"+recursive+filter;
}
}

19
Thank you very much for your effort Mars. Is this applicable in every version of HFS? I'm currently using HFS 282. I'll give this a try in my server.  ;D

20
something like that I think, for example earlier, the Music folder, all files on the Music folder (.mp3,.wav,.jpg,.txt,.png,.cue) will have the same music icon, regardless of its extension, same music icon because it was inside a music folder. :)

21
Hi Mars, if you notice the image I posted, I've already changed the default icon for media. here are the codes in the template that I modified, I separated the media into music and movie category and added other extensions.

Quote
[file]
<tr>
<td class="iconCol">
   <a href="%item-url%"><div style="
{.switch|%item-ext%|,|
   html,htm,url| background:url('/template/rawr_default/images/icons/www.gif') center center no-repeat
   |bat,bak,dat,ini,sys,vfs| background:url('/template/rawr_default/images/icons/settings.gif') center center no-repeat
   |msi,exe| background:url('/template/rawr_default/images/icons/application.gif') center center no-repeat
   |zip,tar,rar,gz,7z,tgz| background:url('/template/rawr_default/images/icons/archive.png') center center no-repeat
   |iso| background:url('/template/rawr_default/images/icons/iso.png') center center no-repeat
   |as,aspx,css,js,txt,as,php,tpl,xml| background:url('/template/rawr_default/images/icons/text.gif') center center no-repeat
   |rtf,otf| background:url('/template/rawr_default/images/icons/document.gif') center center no-repeat
   |pdf| background:url('/template/rawr_default/images/icons/pdf.png') center center no-repeat
   |doc,docx| background:url('/template/rawr_default/images/icons/word.png') center center no-repeat
   |xls,xlsx| background:url('/template/rawr_default/images/icons/excel.png') center center no-repeat
   |ppt,pptx| background:url('/template/rawr_default/images/icons/ppt.png') center center no-repeat
   |mp3,wma,m4a,aac,wav| background:url('/template/rawr_default/images/icons/musics.png') center center no-repeat
   |mp4,wmv,avi,divx,mkv,mov,flv,3gp,rmvb,mpg| background:url('/template/rawr_default/images/icons/media.gif') center center no-repeat
   |jpg,jpeg,png,gif|
      {.if|{.filesize|%folder-resource%\previews_and_thumbnails\thumb-%item-name%.jpg.}|
         background:url('previews_and_thumbnails/thumb-%item-name%.jpg') center center no-repeat
         |
         background:url('/template/rawr_default/images/icons/image.gif') center center no-repeat
      .}
   |
      {.if|{.filesize|/template/rawr_default/images/icons/%item-ext%.gif.}|
         background:url('/template/rawr_default/images/icons/%item-ext%.gif') center center no-repeat
         |
         background:url('/template/rawr_default/images/icons/default.gif') center center no-repeat
      .}
.}
   "></div></a>
</td>

and these are the codes in the default template.

Quote
<tr>
<td class="iconCol">
   <a href="%item-url%"><div style="
{.switch|%item-ext%|,|
   html,htm,url| background:url('/template/rawr_default/images/icons/www.gif') center center no-repeat
   |bat,bak,dat,ini,sys,vfs| background:url('/template/rawr_default/images/icons/settings.gif') center center no-repeat
   |msi,exe| background:url('/template/rawr_default/images/icons/application.gif') center center no-repeat
   |zip,tar,rar,gz,7z| background:url('/template/rawr_default/images/icons/archive.png') center center no-repeat
   |as,aspx,css,js,txt,as,php,tpl,xml| background:url('/template/rawr_default/images/icons/text.gif') center center no-repeat
   |doc,docx,xls,xlsx,rtf,ppt,pptx,otf| background:url('/template/rawr_default/images/icons/document.gif') center center no-repeat
   |mp3,mp4,wma,wmv,avi,divx,mkv,m4a,aac,mov,flv,3gp,rmvb,mpg| background:url('/template/rawr_default/images/icons/media.gif') center center no-repeat
     |jpg,jpeg,png,gif|
      {.if|{.filesize|%folder-resource%\previews_and_thumbnails\thumb-%item-name%.jpg.}|
         background:url('previews_and_thumbnails/thumb-%item-name%.jpg') center center no-repeat
         |
         background:url('/template/rawr_default/images/icons/image.gif') center center no-repeat
      .}
   |
      {.if|{.filesize|/template/rawr_default/images/icons/%item-ext%.gif.}|
         background:url('/template/rawr_default/images/icons/%item-ext%.gif') center center no-repeat
         |
         background:url('/template/rawr_default/images/icons/default.gif') center center no-repeat
      .}
.}
   "></div></a>
</td>

@Mars and rejetto, What I am asking Sirs is if there is a chance that I can change the icons based on the name of their directory, for example, In my server, I have 6 directories/real folder (Anime, Applications, Musics, Movies, Readings, Series). then if I enter the Musics folder, all the icons inside the music folder will be the same regardless of its file extensions. I hope you got my point. :)

22
Any update here? appreciate your feedback, thanks. :)

23
Hello Mars, I didn't find the line you are referring to, but instead, I just deleted all the extensions of the file for preview in the [file] section of the template, and somehow it works. :) thanks

24
Hello Mars, I think you are referring to the icons in the left pane of the HFS UI screen.. uhmm what I am referring is the icon in the left part of the content in the viewer's screen.

25
HFS ~ HTTP File Server / Re: Replacing TAR Archive with RAR Archive
« on: September 30, 2013, 03:03:18 PM »
hmmm I see, well if replacing it will be more tedious, I'll still keep the TAR archiving then, :) Thank you for your feedback Mars.

26
Greetings!

I've managed to replaced the icons per file extensions, also added additional extensions and icons. I am wondering if there's a way that I can replace those icons but by folder names, not with their file extensions?

27
HFS ~ HTTP File Server / Removing the preview button everywhere (Solved)
« on: September 30, 2013, 03:54:26 AM »
Greetings!

Can anyone help me how to remove all the preview button in all directories? I'm just having difficulties removing the code of it. Thank you.

28
HFS ~ HTTP File Server / Replacing TAR Archive with RAR Archive (Solved)
« on: September 30, 2013, 03:50:01 AM »
Greetings!

Is there a way to replace the tar archive with rar, when archiving folders? tried playing some codes with the line "~folder.tar" into "~folder.rar" but resulting to an error page.

29
I see your point Mars, thanks much. I realized I have a public ip for the server and that can be accessed via web. thanks for the inputs. :)

30
yes basically that is the default, to accept any connections. but what I meant is this

menu --> ip address -->> 192.168.x.x
                                         10.104.50.x (currently checked)

if possible that both of them are checked. 2 LAN, one local and one internet.

Pages: 1 [2] 3