Page 1 of 1

Rated Screenshots Update I

Posted: Thu Jan 19, 2006 6:24 am
by Ryoko
Started the script for rated screenshots.

Its very hard.

Because I have to do it in ALL phbb template style. Not typical PHP.

Got the bulk of it done. All MySQL queries, tables and data entry.

It automatically resizes the screens, stamps them with our website using a true type font, and makes thumbnails.

Suprisingly, its main engine is only approx 400 lines of code.

Good thing, phpbb handles all the user access levels and query routines. Saved some time not coding that...lost time learning how it worked.

Now I have a billion PHPBB templates to code. That will take some time. I cannot test run the engine without them. So I don't know if it works yet.

Sigh.

I wont be around tomorrow.

I have MMA/GnP from 6 till 8, then kickboxing from 8 till 10.

Posted: Thu Jan 19, 2006 9:09 am
by [SD]bizzle
well it's allright we can wait, coding looking real hard so i guess u need time to do it properly.

Posted: Thu Jan 19, 2006 9:11 am
by Ziggy
Muahaha!
Dont include the official sro shots because they are rigged.
How will the system go about taking shots from players?

Posted: Thu Jan 19, 2006 9:31 am
by Demarthl
I'm guessing an annual submission, say, once a week, and each screeny gets voted on, highest voted gets shown on day 1 etc blah blah blah yadda yadda i shouldnt speka this early in the morning, yeah i know ^^


something like that

Posted: Thu Jan 19, 2006 1:48 pm
by Ryoko
As it is now, anyone registered can submit a screenshot via file upload box.

The script resizes it appropriately (full size max 700 wide, thumb size max 100 tall) and stamps it "silkroadforums.com".

Image saved into directory.

Screenshots are not displayed until a mod/admin approves them.

The index screen picks a random SS each time, you can click it to view it, and vote if your logged in.

You can browse screenshots too.

Screenshots all start at a 5. Then rating = all votes / total votes +1.

Mods / admin can delete to clean house.

Posted: Thu Jan 19, 2006 2:10 pm
by Ziggy
Man this is gonna rock >_<

What sort of absolute champion came up with this?


:P

Posted: Fri Jan 20, 2006 4:15 pm
by Ryoko
ARGH!

Say we had 40 screenshots.

And you wanna browse. 15 per page.

There gonna be in rows of 3

So I have to build a giant double array and pass it to the template - because thats the only way to get information into a phpbb template.

Row, and screen data.

Then in the template, I gotta use BEGIN comments to begin a double nested loop

Row, and screen data.

This is gonna be insane. But you might just love the result.

More random thoughts later.

Posted: Sat Jan 21, 2006 12:05 am
by Ziggy
I would have gave up long before that point fo kudos to you for sticking with it.

Shows how much you :love: us. :")

Posted: Sat Jan 21, 2006 1:06 am
by Ryoko
Something like rated screenshots, and chat, give me a slight edge over my competitors.

And yes, I :love: you.