Twokinds ARCHIVE Forums

This forum is for the preservation of old threads from before the forum pruning.
It is currently Tue Apr 15, 2025 4:49 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Robbie's archive: News, Discussion, Comments, and Rants.
PostPosted: Sun Sep 21, 2008 7:06 am 
Offline
Council Member
User avatar

Joined: Fri Dec 08, 2006 2:06 am
Posts: 544
Location: Behind my computer.
As of today, I spent the last... 5 hours(It is 5AM now so yea, probably 5 hours)... completely re-writing the view.php script. It is now faster, won't cause your browser to reload all thumbnails each time you view the page, and even has (beta) multiple-dir support.

The only downside is that any bookmarks/links of certain images made with the old script won't work - They will bring you to the first image, just like if you went to http://robbiethe1st.afraid.org/twokinds/view.php

The main upside is that now all links are static, and will not change no matter how many files are added to the directory(However if the one you linked gets removed, it will still shunt you back to the beginning page).
Also, all settings are saved in the URL - current position in the archive, size of thumbnails, so you never have to worry about losing your place or settings again!

The beta-multi-folder support is as follows:
It supports a "dir" directory, relative to the view.php. It will however go to the default folder if it finds any '..'(go up one level), so you can't access any image on the server with it(Only stuff in subfolders of, in this case, /twokinds/).

Other folder: http://robbiethe1st.afraid.org/twokinds ... r=./other/
Alternate: http://robbiethe1st.afraid.org/twokinds ... alternate/
Other/filler: http://robbiethe1st.afraid.org/twokinds ... er/FILLER/

So, yea, go play with it, PM me or post here if you manage to break it.

Hope you all like it!

-RobbieThe1st


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 21, 2008 8:19 am 
Offline
Master
User avatar

Joined: Sat Sep 13, 2008 9:32 am
Posts: 210
Location: Belgium
There is a small problem with the URL's...
First I went to:
http://robbiethe1st.afraid.org/twokinds ... alternate/

I changed settings and got to (notice how "/" got changed to "%2F"):
http://robbiethe1st.afraid.org/twokinds ... &size=200&

I wanted to go to a different folder, so I changed "alternate" to "other":
http://robbiethe1st.afraid.org/twokinds ... &size=200&

I wanted to see more per page:
http://robbiethe1st.afraid.org/twokinds ... &submit=Go

Here you can begin to see the issue. Allthough the correct images are still displayed (now), I am not in the folder "./other/" but what I assume to be ".%2Fother%2F" or something. Oddly, this works.

Next time I change the nb of images on the page (through your form, not editing the URL):
http://robbiethe1st.afraid.org/twokinds ... &submit=Go
Which brings me to the folder ".%25252Fother%25252F" which breaks (as it doesn't exist) and brings me back to the main "./" dir. And which gave me 200 large thumbnails to download, which during the load may partially have clogged your CPU xD ...


And I didn't even start trying to break it yet *sob* ... I love the gallery like this, but darn, my bandwidth will go easily xD (no unlimited in Belgium). I'm not sure how you make the thumbnails, but lowering the quality a bit would be possible, unless it's (horridly) CPU intensive. Caching spares bandwidth; generating saves computer space O o. Hard choise (well, unlike the rest of the forumers, I am almost out of space, I need to go write DVD's again >.> ).



Seeing all those (fan-)art images makes me smile again :D .



EDIT: A suggestion, align the content of any cell (those that contain thumbnails) in the center, vertically too.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 21, 2008 1:11 pm 
Offline
traveler
User avatar

Joined: Thu Jul 24, 2008 7:05 am
Posts: 25
Location: Memory Address &A41H
Whoops, I managed to break it too.

When viewing the thumbnails (small), I have the "Per Page" setting set to 256, and when I select page 2, instead of displaying 257 - "<last comic number>", it displays 2 - 257.

This applies to all per page settings. Instead of displaying the next multiple of the per page setting, it displayed the "page number" to "page number + per page setting"

EX. "Per Page": 32 "Page": 1 Displaying 1-32 Images

"Per Page": 32 "Page": 3 Displaying 3-35 Images


What It Should Be:

EX. "Per Page": 32 "Page": 1 Displaying 1-32 Images

"Per Page": 32 "Page": 3 Displaying 65-96 Images

Note: This applies to all thumbnails


DOY


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 21, 2008 1:17 pm 
Offline
Master
User avatar

Joined: Sat Sep 13, 2008 9:32 am
Posts: 210
Location: Belgium
I missed something so obivous O o, I mustv' been sleeping all day xD . Nice catch.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 21, 2008 2:11 pm 
Offline
Templar Master
User avatar

Joined: Thu Jul 17, 2008 10:09 am
Posts: 443
Location: My own little fortress...
GordonFreeman wrote:
When viewing the thumbnails (small), I have the "Per Page" setting set to 256, and when I select page 2, instead of displaying 257 - "<last comic number>", it displays 2 - 257.

Found the same some hours ago and PM'd it. The navigation buttons still work though, but scanning through 227 pages one-by-one? Not a chance.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 21, 2008 2:28 pm 
Offline
Templar Inner Circle

Joined: Tue Jul 15, 2008 1:37 am
Posts: 3264
Location: Washington
I don't think I'm really capable of breaking it on purpose... >.>
Oh well. Robbie wins.

Any reason we have to view them by [power of 2] to a page? Site restriction or something? I was used to seeing 100 at a time. :? Not a big deal, I'll adjust.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 22, 2008 12:40 am 
Offline
Council Member
User avatar

Joined: Fri Dec 08, 2006 2:06 am
Posts: 544
Location: Behind my computer.
Fireball0236 wrote:
There is a small problem with the URL's...
First I went to:
http://robbiethe1st.afraid.org/twokinds ... alternate/

I changed settings and got to (notice how "/" got changed to "%2F"):
http://robbiethe1st.afraid.org/twokinds ... &size=200&

I wanted to go to a different folder, so I changed "alternate" to "other":
http://robbiethe1st.afraid.org/twokinds ... &size=200&

I wanted to see more per page:
http://robbiethe1st.afraid.org/twokinds ... &submit=Go

Here you can begin to see the issue. Allthough the correct images are still displayed (now), I am not in the folder "./other/" but what I assume to be ".%2Fother%2F" or something. Oddly, this works.

I would look up the Ascii equivalent of '2F' hex.

In short, %2F *should* be there, however... %2f25 should *not*.
Fireball0236 wrote:
Next time I change the nb of images on the page (through your form, not editing the URL):
http://robbiethe1st.afraid.org/twokinds ... &submit=Go
Which brings me to the folder ".%25252Fother%25252F" which breaks (as it doesn't exist) and brings me back to the main "./" dir. And which gave me 200 large thumbnails to download, which during the load may partially have clogged your CPU xD ...

Well, I fixed the issue of it adding on stuff in the DIR box, it was a urlencode issue.

Fireball0236 wrote:
And I didn't even start trying to break it yet *sob* ... I love the gallery like this, but darn, my bandwidth will go easily xD (no unlimited in Belgium). I'm not sure how you make the thumbnails, but lowering the quality a bit would be possible, unless it's (horridly) CPU intensive. Caching spares bandwidth; generating saves computer space O o. Hard choise (well, unlike the rest of the forumers, I am almost out of space, I need to go write DVD's again >.> ).

Well, it is caching them(see the thumbs###.db file?) anyways.

I changed the thumbnails from being PNG to JPEG at 80% quality. Simple.

Fireball0236 wrote:
Seeing all those (fan-)art images makes me smile again :D .

EDIT: A suggestion, align the content of any cell (those that contain thumbnails) in the center, vertically too.

Changed. I actually used to have it like that, then thought it would look better top aligned.. ah well, back it goes.


GordonFreeman wrote:
Whoops, I managed to break it too.

When viewing the thumbnails (small), I have the "Per Page" setting set to 256, and when I select page 2, instead of displaying 257 - "<last comic number>", it displays 2 - 257.

This applies to all per page settings. Instead of displaying the next multiple of the per page setting, it displayed the "page number" to "page number + per page setting"

EX. "Per Page": 32 "Page": 1 Displaying 1-32 Images

"Per Page": 32 "Page": 3 Displaying 3-35 Images


What It Should Be:

EX. "Per Page": 32 "Page": 1 Displaying 1-32 Images

"Per Page": 32 "Page": 3 Displaying 65-96 Images

Note: This applies to all thumbnails


DOY

Fixed. This is why I put my stuff up, even though its beta - I would never have noticed it on what I had been testing it on - I had just 17 images in the folder, so it "worked" properly.

FoobyKamikaze wrote:
I don't think I'm really capable of breaking it on purpose... >.>
Oh well. Robbie wins.

Any reason we have to view them by [power of 2] to a page? Site restriction or something? I was used to seeing 100 at a time. :? Not a big deal, I'll adjust.

Well, I did that for convenience - At 50 thumb size, you have 16 thumbnails. At 100, 8 thumbs, and at 200, you have 4.

So, it makes nice even numbers, and barring running into the end of the list, makes full rows. I actually have it set up so I set any sets of values - I just chose those because I thought it would look better. If you have better numbers, post em!


-RobbieThe1st


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 22, 2008 12:43 am 
Offline
Templar Inner Circle

Joined: Tue Jul 15, 2008 1:37 am
Posts: 3264
Location: Washington
RobbieThe1st wrote:
FoobyKamikaze wrote:
I don't think I'm really capable of breaking it on purpose... >.>
Oh well. Robbie wins.

Any reason we have to view them by [power of 2] to a page? Site restriction or something? I was used to seeing 100 at a time. :? Not a big deal, I'll adjust.

Well, I did that for convenience - At 50 thumb size, you have 16 thumbnails. At 100, 8 thumbs, and at 200, you have 4.

So, it makes nice even numbers, and barring running into the end of the list, makes full rows. I actually have it set up so I set any sets of values - I just chose those because I thought it would look better. If you have better numbers, post em!

Aha!.
Did not think of that. And now that you mention it, I figure it makes more sense.


So... yeah. .____.
I'll be on my way now.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 22, 2008 12:44 am 
Offline
Master
User avatar

Joined: Sat Sep 13, 2008 9:32 am
Posts: 210
Location: Belgium
RobbieThe1st wrote:
Changed. I actually used to have it like that, then thought it would look better top aligned.. ah well, back it goes.

Actually, it was bottom aligned for me, not top. =\ .

Quote:
Well, it is caching them(see the thumbs###.db file?) anyways.

I think I misplaced that file somewhere. Can't find it in my Docs & Users/Name/Applic Data/Temp nor Temp Internet Files folder. (nor Content.IE5).


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 22, 2008 1:07 am 
Offline
Council Member
User avatar

Joined: Fri Dec 08, 2006 2:06 am
Posts: 544
Location: Behind my computer.
Fireball0236 wrote:
RobbieThe1st wrote:
Changed. I actually used to have it like that, then thought it would look better top aligned.. ah well, back it goes.

Actually, it was bottom aligned for me, not top. =\ .

Quote:
Well, it is caching them(see the thumbs###.db file?) anyways.

I think I misplaced that file somewhere. Can't find it in my Docs & Users/Name/Applic Data/Temp nor Temp Internet Files folder. (nor Content.IE5).

No...
Like this one: http://robbiethe1st.afraid.org/twokinds/thumbs50.db

It never gets downloaded as such, as that file has thumbnails(at size 50) for every single file anyone has loaded in the DIR(one copy per file).

When you request a thumbnail, it looks through that file, if it finds the thumbnail in the thumbs.db file, it then sends that data to your browser(with appropriate header info).
If it can't find it, it creates the thumbnail, saves it, and sends the data to your browser.

As such, even if it can't create the thumbs.db file, it will still work - just not cache the thumbs.


The format is:
Code:
*filename*chr(31)*image-width*chr(31)*image-height*chr(31)*image-last-modified-time*chr(31)*thumbnail data(base64_encode()-ed)*chr(30)

In plain text, I am using the Ascii character 31(decimal) as a unit-separator, and the Ascii character 30(decimal) as a line-separator.

An enterprising sort ought to be able to get the data out of this file easily enough(Hint: explode(), chr(), base64_decode(). Look those functions up.)

Also, in case you want a copy yourself: http://robbiethe1st.afraid.org/files/view.rar


-RobbieThe1st


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 22, 2008 9:35 am 
Offline
Templar Master
User avatar

Joined: Sun Jul 13, 2008 8:43 pm
Posts: 464
Location: Neither here nor there.
The thumbs could be a little bigger. It's hard to tell which comic is which at times.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 22, 2008 9:57 am 
Offline
Master
User avatar

Joined: Sat Sep 13, 2008 9:32 am
Posts: 210
Location: Belgium
Schrodinger wrote:
The thumbs could be a little bigger. It's hard to tell which comic is which at times.

If you are on any Archive Index; for example:
http://robbiethe1st.afraid.org/twokinds ... er/&mode=2

There are links called "Small Thumbs" through "Extra Large Thumbs". The Extra Large ones should definetly be enough to see difference between two and more images; even the "Large" ones. :)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 22, 2008 10:42 am 
Offline
Templar Master
User avatar

Joined: Sun Jul 13, 2008 8:43 pm
Posts: 464
Location: Neither here nor there.
Well now I feel stupid... Thanks anyway.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 22, 2008 11:28 pm 
Offline
Council Member
User avatar

Joined: Fri Dec 08, 2006 2:06 am
Posts: 544
Location: Behind my computer.
I changed things a little, updated the rar with the new version.

Suggestions/comments?


-RobbieThe1st


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 23, 2008 12:07 am 
Offline
traveler
User avatar

Joined: Thu Jul 24, 2008 7:05 am
Posts: 25
Location: Memory Address &A41H
Would it be possible to add links to the pages so you can jump to the different sections like from Comics to Alternate or to Filler/Other?

Oh, and thanks for fixing the per page thing. I've already been able to grill someone else's opinion with your new archive's help. :P


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group