Search

Query

Log in to VuTales

Username

Password

Sign up

Username (5-13 characters)

Password (6+ characters, and something hard to guess)

Password again

Email (Must be valid)

What is 19 + 11? (Sorry, we have to ask)

7 Posts
Reddit fetcher!
 
Sat Oct 22, 2011 08:53 PM [Edited once ] +

it's been ages since I touched a php file.
so I made a little something: a reddit frontpage fetcher.
not a big deal, not even a challenge to most. but I didn't do it as a challenge, I did it to get myself coding again.
uh, here is what it looks like:

if you are wondering about the different colors for the score, red=link's an article/site, blue=link's an image, yellow=link is a self post.
images are shown like this: http://i.imgur.com/Om6Ra.png
title: helvetica lt std, titles: delicious, information: tahoma.

critiques are welcome and source code is available for anyone that wants it

 

Replies

 
Sat Oct 22, 2011 10:27 PM +

That actually looks really nice
I'd like to take a look at the source code

 
 
Sat Oct 22, 2011 11:07 PM [Edited once ] +

Thanks.
Main script: pastebin

Sorry for the mix of html/php.

To view this like I do, you will need to have installed the Delicious font ( link, it's free), Helvetica LT Std font (though it's only for the title, doesn't make much of a difference), and fancybox ( link, it's free). The latter one should be in the same folder as the script. JQuery is borrowed from the CDN.

If you want, though, I can upload a rar containing all files.

 
 
Sun Oct 23, 2011 01:00 AM +

Joaco said: Thanks.
Main script: pastebin

Sorry for the mix of html/php.

To view this like I do, you will need to have installed the Delicious font ( link, it's free), Helvetica LT Std font (though it's only for the title, doesn't make much of a difference), and fancybox ( link, it's free). The latter one should be in the same folder as the script. JQuery is borrowed from the CDN.

If you want, though, I can upload a rar containing all files.

If it's just a matter of right clicking a folder and compressing it, that would be great. But if you need to download fancybox and stuffs, I can do it myself.

 
 
Sun Oct 23, 2011 01:27 AM [Edited once ] +

Here you go man.

I @font-face'd it so you don't need to install a single font. Just a good browser.

P.S. you need cURL to be enabled. Go to php.ini, find line ";extension=php_curl.dll" and remove the semicolon if it hasn't been done yet. Restart apache and done.

 
 
Sun Oct 23, 2011 03:44 AM [Edited once ] +

Joaco said: Here you go man.

I @font-face'd it so you don't need to install a single font. Just a good browser.

P.S. you need cURL to be enabled. Go to php.ini, find line ";extension=php_curl.dll" and remove the semicolon if it hasn't been done yet. Restart apache and done.


It works!
It looks nice, I'll learn a lot from this

 
 
Sun Oct 23, 2011 11:28 PM +

Four things:

1) redd.it is a url shortener (used by reddit) already. So the name's gotta go.

2) The design is really nice, I would quite like the rest of the site in this style.

3) Is the git repo public anywhere?

4) Windows XP? Luna?

 
 
Mon Oct 24, 2011 11:35 PM +

Hey vusys! Thanks for the reply, I appreciate it.

This is not a site though.

Regarding the repo, I thought about that before, but I had forgotten my ssh passphrase :( anyway, I had to reset it, so here's the repo:

[url]https://github.com/Roj/reddit-api-test[/url]

BTW, I have to upgrade from Windows XP x86 to Windows 7 x64, since right now the OS can't see more than 3.5GB RAM; I'm too lazy to backup though.

 

Login or sign up

You must be a member to reply or post. You can sign up or log in if you already have an account.