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

Pages: 1 ... 28 29 30 31
436
HFS ~ HTTP File Server / Re: borrowing links from me.
« on: February 20, 2011, 04:37:03 PM »
Just put a copyright on whatever file it is and if you know somebody's copying it, tell them they have to get it off or you will take legal action . . .

If it's an image you're talking about you could put a watermark on it or try this:  http://www.naturefocused.com/articles/image-protection.html

437
HFS ~ HTTP File Server / Re: Rename on Upload
« on: February 20, 2011, 04:01:47 PM »
Thanks!  To get a more random number (it was coming out with the first 8 digits always 9's ) I put random number 0 | 9 and then pasted it sixteen times and it works great!

Anyway is there any way to put this in the template or at least have it so it only does this when in a certain folder?

Thanks,
Raybob

438
HFS ~ HTTP File Server / Re: Rename on Upload
« on: February 20, 2011, 12:20:24 AM »
But first I need to know, how would I go about putting the script for the random string into the upload name spot anyway?

This doesn't work and neither does just putting the javascript under the [upload name]


Code: [Select]

For help on how to use this file please refer http://www.rejetto.com/wiki/?title=HFS:_Event_scripts

[upload name]
%random%----%item-name%


[random]

<script type="text/javascript">

var characters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var length = 32;
var string = '';

for (var i=0; i<length; i++)

{
var rnum = Math.floor(Math.random() * characters.length);
string += characters.substring(rnum,rnum+1);
}

document.write( string + "____" + "%item-name%" )

</script>


439
HFS ~ HTTP File Server / Re: Rename on Upload
« on: February 19, 2011, 11:59:55 PM »
Is there a way to put that in the template rather than HFS Events so that it only happens in one section of the VFS?

440
HFS ~ HTTP File Server / Rename on Upload
« on: February 19, 2011, 03:41:42 PM »
My knowledge is pretty limited and I seem unable to figure this out, could anybody help?  (I'm using HFS 2.3 b274)

Well, pretty much I just want to make it so that when a user uploads a file, HFS automatically appends the name of the file to something else, and then shows it as such in the upload results page.  I created a javascript for a random string of letters and numbers, and I want to make it so that if somebody uploaded "document.txt", using the JS it would be changed to something like "9SLQN3TYE6RPBW4Y7GLTLX2L9IQNY40N____document.txt" .  I'm assuming this could be done with Macros with something along the lines of     .rename.| "(my javascript)" + "____" + "%item-name%" |   but I'm not sure and I'm really not familiar with HFS macros.

Better yet, I need this to be done in the template rather than in HFS.events because I only want it to happen in one part of my site for extra security.

An even more amazing feat (that I have no idea how to do) would be to have it take off the first 32 characters on a file name when downloading the file so that the random string is gone . . .



Thanks,
Raybob

441
HTML & templates / Re: checkboxes
« on: February 17, 2011, 09:39:56 PM »
Since I couldn't put in the checkboxes, I settled for this which works fine; click to select, click to deselect:  Next I will figure out how to make it say 'deselect' when the row is already highlighted.


Code: [Select]
[file=folder=link|private]
<tr  class='{.if not|{.or|{.get|can delete.}|{.get|can access.}|{.get|can archive item.}.}|non.}selectable {.if|{.mod|{.count|row.}|2.}|even.}'><td>
{.if|{.get|is new.}|<span class='flag'>&nbsp;NEW&nbsp;</span>.}
{.if not|{.get|can access.}|<img src='/~img_lock'>.}
<a class='the-item' href="%item-url%"><img src="%item-icon%"> %item-name%</a><div style="float:right;"><input type="submit" value="{.!Select.}" style="font-weight:bold;" /></div>
{.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>.}


Screenshot

442
HTML & templates / checkboxes
« on: February 12, 2011, 04:11:46 PM »
Is there a way to make it so that instead of selecting a <tr> by clicking in the blank space, you could replace that with a checkbox input, that when checked set the <tr> class as selected?

If I just add a checkbox input just inside the <td>, clicking the checkbox will highlight the row, but then if you click on the row, it will become unselected while the checkbox will remain checked, so something else needs to be changed that I don't know how to do.

This would greatly add to the ease of use and functionality of HFS . . .

Thanks,
raybob

443
Bug reports / Re: upload progress not showing
« on: February 01, 2011, 09:12:22 PM »
Oops . . .

Sorry to have bothered you Rejetto, but yes, it does work.

the info just takes a few seconds to show up after starting an upload and i hadn't tried waiting for it.  While there are counters for percent and how fast it's going, the time-left counter still doesn't work . . .

444
Bug reports / Re: upload progress not showing
« on: February 01, 2011, 02:40:39 AM »
Would you like to see my files so you can test it Rejetto?

445
Bug reports / Re: upload progress not showing
« on: February 01, 2011, 02:40:15 AM »
Even with build 274, on every browser, there is no information displayed when uploading.

This holds true whether a user is uploading with dial-up at 5KB/s or whether I'm uploading in my own network at 10MB/s. 

446
HTML & templates / new partial template
« on: February 01, 2011, 02:38:22 AM »
You can put a nicer looking background on your HFS in a very simple way:

Replace this CSS in your template:  (and you probably would want to save your own copy of the image)

body { font-family:tahoma, verdana, arial, helvetica, sans; font-weight:normal; font-size:9pt; background-color:#F8F8F8; padding:10px;background-image:url("http://www.internet-drive.tk/background.png");background-repeat:repeat-x; }


447
HTML & templates / Re: center align
« on: February 01, 2011, 02:33:21 AM »
It doesn't though I already tried removing it and I even tried changing to it float:center and float:right and it didn't change it.

448
Beta / Re: Testing build #274
« on: January 31, 2011, 08:39:49 PM »
Actually . . .

I just started using build 274 and there still is no upload speed or time remaining counter AND I even copied and pasted from the new template . . . ?

449
Bug reports / upload progress not showing
« on: January 30, 2011, 03:49:56 PM »
Whatever I do in the template, whenever someone uploads a file it just says 'in progress . . .' with the cancel button right below it, nothing else, even when I put in the code suggested here.

This flaw has already turned away several of my users because they think there's something wrong with my website, not realizing how slow their upload connection is and just how long it will take.

450
HTML & templates / Re: center align
« on: January 30, 2011, 03:35:29 PM »
Can you be more specific?

Pages: 1 ... 28 29 30 31