Timeline

Anything else. Post a funny site or tell us about yourself. Discuss current events or whatever else you want. Post off topic threads here.
User avatar
Ryoko
Site Owner
Posts: 6390
Joined: Fri Dec 30, 2005 8:32 pm
Quick Reply: Yes
Location: Off Topic
Contact:

Re: Timeline

Post by Ryoko »

Gaigemasta wrote:
Ryoko wrote:Its 2 days old.

And partly unfinished in regards to admin, styling etc.

But its a pretty hardcore script I might say.


did you make the whole php code? or copypasta?


From scratch, minus the basic forum frame.

As complex as the code gets, the logic driving is quite simple.

Get users who qualify
Parse the year, months of those users
If have an avatar, bring it in using the GD functions
Make some X, Y calculations and resize it with GD functs, then
Add it to the current image strip
Add the user name and info to the text strings
New month? New year? Exceeded the strip? Save it, write the HTML and begin a new strip.

The rest, formatting , CSS and error handling.

Usually when creating something new, I jot down the logic on a notepad, and start breaking it into segments, functions and then finally real code. Followed by debugging, details and formatting. It took a couple evenings, I pulled a 4am-er the first night - the old "just one more thing" syndrome

User avatar
XMoshe
Ex-Staff
Posts: 17293
Joined: Sun Apr 09, 2006 10:13 am
Location: Ghosting around

Re: Timeline

Post by XMoshe »

Guardia wrote:2006. The golden year.


Idd 8) 5 years and counting baby.
Image
Props to chrisorg for the sig <3

User avatar
Ryoko
Site Owner
Posts: 6390
Joined: Fri Dec 30, 2005 8:32 pm
Quick Reply: Yes
Location: Off Topic
Contact:

Re: Timeline

Post by Ryoko »

Mirosuke wrote:
ExSoldier wrote:Freaking nostalgia. I was 12/13 when I joined. Looking back at my old threads with my extremely FOB english and nooby SRO questions :cry:

You still the same :P

lol found myself, yay! August 08' 8)
the cool people, feel like playing a gang game LOL

it's a bit buggy/glitch isn't? I see myself on Oct same year.

Thank you, I was wondering why secondary rows always seem to have one more user in the tooltip than the number of avatars. At first I thought there was a lot of missing ava's creating holes, but now that you've pointed out its actually repeat, I can see the pattern I wasn't seeing before. I was stumped on this because if an avatar is missing, corrupt or broken its not supposed to include the user alltogether. Its likely that $user_string[] or $imgcount isn't being reset properly when a row is finished.

User avatar
Doron
SRF's Princess
Posts: 8570
Joined: Sun May 20, 2007 9:37 am
Quick Reply: Yes
Location: I'm at- Ooh something shiny!!

Re: Timeline

Post by Doron »

May 2007....

**** me that's long.

And still here.
Image
Image

User avatar
CrimsonNuker
Dom's Slut
Posts: 13791
Joined: Sun Aug 06, 2006 3:31 am
Quick Reply: Yes
Location: guildwars2

Re: Timeline

Post by CrimsonNuker »

XMoshe wrote:
Guardia wrote:2006. The golden year.


Idd 8) 5 years and counting baby.


8)

I cry when I think about all the regulars banned :soosad:
ImageImageImage

User avatar
Guardia
Frequent Member
Posts: 1187
Joined: Mon Dec 11, 2006 8:25 pm
Quick Reply: Yes
Location: Azteca

Re: Timeline

Post by Guardia »

Kinda funny when I only have 1k+ posts in 5 years.
Image
(Retired) - FTW - Avalon - Azteca - 6X - Battle Bard
(Retired) - Guardia - Avalon - Venus - 9X - Battle Bard / Wizz
[Guide] Bards Explained

User avatar
The Invisible
Addicted Member
Posts: 2626
Joined: Sun Jan 23, 2011 1:28 pm
Quick Reply: Yes
Location: Home ._.

Re: Timeline

Post by The Invisible »

Guardia wrote:Kinda funny when I only have 1k+ posts in 5 years.

But you made a nice Wizard / Bard guide :sohappy:
So in the first week in college i went with jeans and the pajama's shirt. Didn't notice what i was wearing till after i returned home.

User avatar
Majorharper
Site Contributor
Posts: 2079
Joined: Sun Apr 22, 2007 8:19 am
Quick Reply: Yes
Location: Looking for my signature....

Re: Timeline

Post by Majorharper »

Guardia wrote:Kinda funny when I only have 1k+ posts in 5 years.

Same here
Image

User avatar
poehalcho
Elite Member
Posts: 6131
Joined: Mon Apr 30, 2007 3:32 pm
Quick Reply: Yes
Location: ┌(╬ಠ益ಠ)╯( ̄ー ̄)(ノ◕ヮ◕)ノ:・✧(╯°Д°)╯彡┻━┻ψ(`∇´)ψ(☞゚∀゚)☞¯\_(ツ)_/¯ლ(ಥ益ಥლ)ԅ༼ ◔ڡ◔༽งヽ༼ʘ̚ل͜ʘ̚༽ノᕕ(ᐛ)ᕗ( ͡° ͜ʖ ͡°)

Re: Timeline

Post by poehalcho »

I found BlackFox :D
Image
Day[9] wrote:"Tea is a lot like gold expansions - it helps you kill people."
- Day[9] Daily 337 -

User avatar
XMoshe
Ex-Staff
Posts: 17293
Joined: Sun Apr 09, 2006 10:13 am
Location: Ghosting around

Re: Timeline

Post by XMoshe »

Guardia wrote:Kinda funny when I only have 1k+ posts in 5 years.


No comment =x
Image
Props to chrisorg for the sig <3

User avatar
The Invisible
Addicted Member
Posts: 2626
Joined: Sun Jan 23, 2011 1:28 pm
Quick Reply: Yes
Location: Home ._.

Re: Timeline

Post by The Invisible »

XMoshe wrote:
Guardia wrote:Kinda funny when I only have 1k+ posts in 5 years.


No comment =x

Comment : Kinda funny when I have 1k+ posts in only 5 months .
So in the first week in college i went with jeans and the pajama's shirt. Didn't notice what i was wearing till after i returned home.

User avatar
Mirosuke
Forum Legend
Posts: 6735
Joined: Fri Aug 22, 2008 5:30 am
Quick Reply: Yes
Location: Love the way you are.

Re: Timeline

Post by Mirosuke »

Hey, what about refreshing page every 5 minutes? lol
I always SRF on my browser, that script would come in handy, at least for me lol
( ๏̯͡ ๏ ) ~
Hwang Mi Hee(L)
あなた運命を全うする
ImageImageImage
WE WANT [ TORCHLIGHT II], [TERA ONLINE], [BLADE&SOUL] AND... [DIABLO III].


~* Old Sigs *~
[x][x][x][x]

User avatar
Gaigemasta
Site Contributor
Posts: 4474
Joined: Sun Dec 24, 2006 3:12 pm
Quick Reply: Yes
Location: off topic
Contact:

Re: Timeline

Post by Gaigemasta »

Ryoko wrote:
Gaigemasta wrote:
Ryoko wrote:Its 2 days old.

And partly unfinished in regards to admin, styling etc.

But its a pretty hardcore script I might say.


did you make the whole php code? or copypasta?


From scratch, minus the basic forum frame.

As complex as the code gets, the logic driving is quite simple.

Get users who qualify
Parse the year, months of those users
If have an avatar, bring it in using the GD functions
Make some X, Y calculations and resize it with GD functs, then
Add it to the current image strip
Add the user name and info to the text strings
New month? New year? Exceeded the strip? Save it, write the HTML and begin a new strip.

The rest, formatting , CSS and error handling.

Usually when creating something new, I jot down the logic on a notepad, and start breaking it into segments, functions and then finally real code. Followed by debugging, details and formatting. It took a couple evenings, I pulled a 4am-er the first night - the old "just one more thing" syndrome



very nice!

you should show us the algorithm for how people qualify not to be listed (of course not the code)
Image

User avatar
woutR
Elite Member
Posts: 5573
Joined: Wed Feb 08, 2006 5:20 pm
Quick Reply: Yes
Location: Netherlands
Contact:

Re: Timeline

Post by woutR »

Doron wrote:May 2007....

**** me that's long.

And still here.
Image


yes but through your constant reinventions of yourself into multiple gay persona's you always seem like a newcomer to me
Image

<< :giveup:>>

User avatar
Swindler
Forum God
Posts: 11256
Joined: Tue Apr 10, 2007 7:49 am
Quick Reply: Yes
Location: Pimpas Paradise.

Re: Timeline

Post by Swindler »

woutR wrote:
Doron wrote:May 2007....

**** me that's long.

And still here.
Image


yes but through your constant reinventions of yourself into multiple gay persona's you always seem like a newcomer to me

lmao!

It's funny because it's true.

User avatar
Panu
Veteran Member
Posts: 3536
Joined: Mon Aug 27, 2007 8:43 pm
Quick Reply: Yes
Location: Around

Re: Timeline

Post by Panu »

This is pretty cool, can't believe how fast time flew. :P
Image

User avatar
Vaya
Loyal Member
Posts: 1844
Joined: Thu May 21, 2009 10:24 am
Quick Reply: Yes
Location: leagueoflegends

Re: Timeline

Post by Vaya »

I'm the only one in my month :3
Hi

User avatar
Ryoko
Site Owner
Posts: 6390
Joined: Fri Dec 30, 2005 8:32 pm
Quick Reply: Yes
Location: Off Topic
Contact:

Re: Timeline

Post by Ryoko »

Gaigemasta wrote:very nice!

you should show us the algorithm for how people qualify not to be listed (of course not the code)


Originally it was

// $sql = "SELECT username, user_id, user_regdate, user_avatar, user_avatar_type, user_avatar_width, user_avatar_height,user_posts FROM users WHERE user_posts > 600 AND user_avatar <> '' AND user_id NOT IN (SELECT ban_userid FROM banlist) ORDER BY user_regdate ASC";

But after some thought, I decided it wasn't really proper to "pretend" banned people never existed or contributed to SRF at some point.

User avatar
Vaya
Loyal Member
Posts: 1844
Joined: Thu May 21, 2009 10:24 am
Quick Reply: Yes
Location: leagueoflegends

Re: Timeline

Post by Vaya »

Ryoko wrote:
Gaigemasta wrote:very nice!

you should show us the algorithm for how people qualify not to be listed (of course not the code)


Originally it was

// $sql = "SELECT username, user_id, user_regdate, user_avatar, user_avatar_type, user_avatar_width, user_avatar_height,user_posts FROM users WHERE user_posts > 600 AND user_avatar <> '' AND user_id NOT IN (SELECT ban_userid FROM banlist) ORDER BY user_regdate ASC";

But after some thought, I decided it wasn't really proper to "pretend" banned people never existed or contributed to SRF at some point.

looks more simple than C.
Hi

User avatar
[SD]Twysta
Senior Member
Posts: 4478
Joined: Wed Jan 17, 2007 11:59 am
Quick Reply: Yes
Location: Hollandia

Re: Timeline

Post by [SD]Twysta »

@ K.K. So people say.

I can read C/C++ faster than any other language I see.

**** knows why, I just can.
Image
HejsaN wrote:
cpinney wrote:download more ram.

Where? Did not find any on google. :soosad:

User avatar
William-CL
Forum Legend
Posts: 7363
Joined: Wed Feb 28, 2007 10:10 am
Quick Reply: Yes
Location: N/A

Re: Timeline

Post by William-CL »

K.K wrote:looks more simple than C.

It is. It's just php/mysql which is pretty easy stuff compared to C/C++. I learned this just by looking at pre-written code for a website template I was using.
Image

/Pi
Senior Member
Posts: 4590
Joined: Fri May 18, 2007 3:49 am
Quick Reply: Yes
Location: Off Topic

Re: Timeline

Post by /Pi »

4 Years! When do I get to graduate?

User avatar
Skyve
Forum Legend
Posts: 7320
Joined: Thu Apr 13, 2006 4:42 pm
Quick Reply: Yes
Location: Canada

Re: Timeline

Post by Skyve »

Avatar didn't update good sir. I mad :x .
Image

ExSoldier/Skyve/Loki

what is life even

User avatar
Fury
Loyal Member
Posts: 1596
Joined: Sun Jan 13, 2008 11:53 am
Quick Reply: Yes
Location: GuildWars2

Re: Timeline

Post by Fury »

Been here 3 and a half years....decent effort.
Image

User avatar
*BlackFox
Forum Legend
Posts: 7921
Joined: Wed Sep 03, 2008 12:55 pm
Quick Reply: Yes
Location: Off Topic

Re: Timeline

Post by *BlackFox »

ExSoldier wrote:Avatar didn't update good sir. I mad :x .
No worries, that's not a biggie and can be easily fixed.. xD
Well, I think so anyway! lulz
Image

User avatar
Squirt
Forum God
Posts: 8186
Joined: Sat Jan 05, 2008 9:48 pm
Quick Reply: Yes
Location: Off Topic

Re: Timeline

Post by Squirt »

Wow I was I was 14 when I joined, now i'm 17....
I hope this forum never closes.
Image
Spoiler!

woutR wrote:Squirt, you're a genius when it comes to raping women.

User avatar
ltsune
Elite Member
Posts: 5726
Joined: Sat Mar 22, 2008 2:12 pm
Quick Reply: Yes
Location: Aege
Contact:

Re: Timeline

Post by ltsune »

Squirt wrote:Wow I was I was 14 when I joined, now i'm 17....
I hope this forum never closes.

+1
Found myself on the list - yay :sohappy:

But seriously, if the forum ever gets in to problems with the server renting etc. I'm sure there are plenty of people who would donate to keep it up :)
Dubious ・ Lvl 101 ・ STR Archer ・ jSRO-R ・ active
PillowFight ・ Lvl 69 ・ STR Archer ・ jSRO-R ・ inactive
Aggrobatic ・ Lvl 101 ・ Warrior / Cleric ・ jSRO-R ・ inactive


Check out our music-video! http://www.youtube.com/watch?v=iMxZWMWRjSM
I'm on the drums, beaches!

User avatar
maxietheboss
Frequent Member
Posts: 1236
Joined: Sat Jun 03, 2006 4:26 pm
Quick Reply: Yes
Location: Off Topic

Re: Timeline

Post by maxietheboss »

Wow it's been 5 years already.
Image

User avatar
Skyve
Forum Legend
Posts: 7320
Joined: Thu Apr 13, 2006 4:42 pm
Quick Reply: Yes
Location: Canada

Re: Timeline

Post by Skyve »

Even if most of us don't play Silkroad anymore, changing the name of the forums would feel wrong. SRF just sounds... nice?

Na'mean?
Image

ExSoldier/Skyve/Loki

what is life even

User avatar
Doron
SRF's Princess
Posts: 8570
Joined: Sun May 20, 2007 9:37 am
Quick Reply: Yes
Location: I'm at- Ooh something shiny!!

Re: Timeline

Post by Doron »

didn't we all come here for SRO help in the first place?
Image

Post Reply

Return to “Off Topic Lounge”