rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: mynameiskeeet on September 21, 2012, 10:22:01 AM

Title: Show files in multiple pages, help
Post by: mynameiskeeet on September 21, 2012, 10:22:01 AM
(http://i724.photobucket.com/albums/ww243/keithjohn/forum_zps9ec596f8.png)

hi guys. i would like to ask if you know how to code these things..


1. Show 10 files in every page only, so when i have many files, they wont be all showed in a long webpage

2. add an file info about who uploaded it.


ill be waiting for your replies. I need it on my computer class next week. Thanks :D
Title: Re: Help in adding "File Uploader" and also making files show not just in 1 page
Post by: SilentPliz on September 21, 2012, 12:37:40 PM
Hi ! :)

Beta versions can satisfy your request (2.3 #xxx).
These versions are very accomplished and stable.

The most recent:

http://www.rejetto.com/forum/beta/testing-build-282/
Title: Re: Help in adding "File Uploader" and also making files show not just in 1 page
Post by: mynameiskeeet on September 21, 2012, 01:22:24 PM
Hi ! :)

Beta versions can satisfy your request (2.3 #xxx).
These versions are very accomplished and stable.

The most recent:

http://www.rejetto.com/forum/beta/testing-build-282/


sorry but i dont know how that build can help me :O more infos pls :D
Title: Re: Help in adding "File Uploader" and also making files show not just in 1 page
Post by: mynameiskeeet on September 23, 2012, 12:34:46 AM
someone help pls. i have done the 2nd one already.

i dont know how to make pages when the files are too many =/
Title: Re: Show files in multiple pages, help
Post by: Mars on September 24, 2012, 10:52:42 AM
Quote

[+special:strings]
option.paged=1
option.items=10
......

......
function pageIt(anim) {
    var rows = $('#files tr');
    if (!rows.size()) return;
   
    page = 0; // this is global
    var pages = $("<div id='pages'>{.!Page.} </div>").css('visibility','hidden').insertBefore('#files');
    var pageSize = 0;
    while (!outsideV(rows[pageSize], 20))
        if (++pageSize >= rows.size())
            return pages.remove();
    if (pageSize == 0) return;

    pageSize ={.if|{.!option.items|pageSize.}|{.!option.items|pageSize.}|pageSize.}

    Npages = Math.ceil(HFS.number / pageSize);
    if (Npages == 1)
        return pages.remove();
    $('#files').width($('#files').width()); // hold it still
....

this is a static items/page, it's possible to use a dynamic variable
Title: Re: Show files in multiple pages, help
Post by: SilentPliz on September 24, 2012, 03:12:02 PM
Hi !


@ mynameiskeeet


sorry but i dont know how that build can help me :O more infos pls :D

I showed the recent beta because the default template allows what that you ask.

Since, you put a screenshot of the template that you use ... then it takes a lot of rewriting to achieve it.

You can watch this version of hfs,  it includes some templates with "page-mode" (blue template, copper) that will help you to understand the work to provide.

http://www.rejetto.com/forum/hfs-~-http-file-server/for-testing-purpose-hfs-beta-279-including-ssl-tools/msg1056599/#msg1056599


@ Mars :
 Je ne t'ai pas dénoncé sur ce coup, ne connaissant pas ta disponibilité. ;) :D
Title: Re: Show files in multiple pages, help
Post by: Mars on September 24, 2012, 06:52:01 PM
Quote
@ Mars :
 Je ne t'ai pas dénoncé sur ce coup, ne connaissant pas ta disponibilité. ;) :D
dénoncé, dénoncé? il manquerai plus que ça! c'est toi le coupable.  ;D ;D
Title: Re: Show files in multiple pages, help
Post by: mynameiskeeet on September 25, 2012, 10:01:33 AM
sorry but im not good at codes, can u elaborate where i should put ur code? :D

sorry. btw. here is my hfs.tpl


http://www.mediafire.com/download.php?h610jvsca07ctmz
Title: Re: Show files in multiple pages, help
Post by: mynameiskeeet on September 27, 2012, 02:06:52 AM
bump. pls help
Title: Re: Show files in multiple pages, help
Post by: Mars on September 27, 2012, 08:11:15 AM
watching your template, I found a very old model like that should be modified to suit your needs, but that will not work on a version 2.f
it would be best to use the template included in the latest version and adapt it.