HOME | DD

GraydaFavebox v1.5

Published: 2006-12-20 02:23:58 +0000 UTC; Views: 16528; Favourites: 311; Downloads: 372
Redirect to original
Description ==============================
To sign up for a Favebox, click HERE
==============================
==============================
To create your own custom Favebox, click HERE
==============================

Welcome to Favebox, a fun little widget you can put on your deviantART journal that lets people "favourite" or "Vote" on your journals! You can see how popular your journals are!

You simply enter your username and pick a colour, and you get a code to place within your journal (there's even code available for non-subscribers!). When people visit your journal, they will see a box and a button. When they click the button, their "vote" is registered on my website and the box is updated accordingly.

Please note that because of limitations on deviantART's side, no usernames are actually recorded, nor is this journal added to your real favourites. Instead, your vote is recorded anonymously and the number of "faves" is increased by one. Once deviantART provides us with a way to obtain a username, I will update this script and you will be able to see WHO has faved your journals.

You can register as many journals as you want and it's all completely free

Have fun with this, and don't forget to leave comments. I'd also appreciate it if you displayed :thumb46767570: on your journal!

An older version of the source code for this is located here . Once I clean up the source for the "new" favebox, I'll release it.

Thanks to `BoffinbraiN for the idea and `dancewiththesky for assistance with the $_SESSION code while I was still a coding newb.

Click here to see the changelog

Edit: Thanks for the DD! And thanks to everyone who has registered for a Favebox. YOU are what keeps this project alive!

Update: There is now a text-only version for non-subscribers. Register a favebox and get the code at the bottom of the registration page!

If you want to position your Favebox for maximum exposure (and I recommend it ), try this CSS code:

.favebox {

right: 10px;
top: 50px;
position: absolute;

}


And simply add a < div class="favebox"> and a < /div> to the very start and end of your Favebox code!
Related content
Comments: 267

Grayda In reply to ??? [2013-01-14 15:32:12 +0000 UTC]

I just realised I hadn't replied to your comment. Sorry!

The first part could be possible, but would require some extra set up from the person creating the journal. Basically when creating a new Facebox you would paste in the link to you want to "count" and it would load up that journal, search through the page to find the number of favourites and display that number in the box.

The second part wouldn't be possible for two reasons: The first is that deviantART hasn't given third parties a way to interact with the site (like Facebook does with the "like" buttons you can put on your site). The second is that you can't have anything "interactive" in your journal -- that is, buttons that display messages when clicked and so forth. This stops people from writing a journal that sends you to a site riddled with viruses when you load the journal, or putting really obnoxious and loud music in there, a la MySpace.

But I do like the idea. I really need to dust Favebox off, as it no longer runs on my site (my fault, as I forgot to do a backup before a server move :\) and with favouriting journals now possible, this would be a much easier thing to implement.

👍: 0 ⏩: 1

ChaiLife In reply to Grayda [2013-01-14 21:26:53 +0000 UTC]

Yeah, I was just wondering. Thanks for getting back to me!

👍: 0 ⏩: 0

orribu [2011-01-13 00:22:30 +0000 UTC]

ASDF THANK YOU <3

👍: 0 ⏩: 1

Grayda In reply to orribu [2011-02-05 12:09:51 +0000 UTC]

No worries! Glad to see people are still using Favebox

👍: 0 ⏩: 0

badbadtzmaru [2009-12-20 14:56:09 +0000 UTC]

WOW,I always wanted to fav journals! 8D

👍: 0 ⏩: 1

Grayda In reply to badbadtzmaru [2009-12-30 05:28:08 +0000 UTC]

And now you can. Have fun

👍: 0 ⏩: 1

badbadtzmaru In reply to Grayda [2010-01-21 17:21:26 +0000 UTC]

WEll,Thanks!!! 8D

👍: 0 ⏩: 0

GoddessZenith [2009-11-06 04:42:10 +0000 UTC]

Awesome!

I'm gonna use this, Probably now all my friends are gonna use it.

👍: 0 ⏩: 1

Grayda In reply to GoddessZenith [2009-11-22 06:18:00 +0000 UTC]

Excellent! Hope it works out well for you

👍: 0 ⏩: 1

GoddessZenith In reply to Grayda [2009-11-23 00:36:36 +0000 UTC]

Thanks. I'm using it now, its awesome!

👍: 0 ⏩: 0

Elorine [2009-03-07 14:28:37 +0000 UTC]

Neat little tool. I was just wondering if I need to get a new favebox code for every journal, or if the code can be re-used for every journal.

👍: 0 ⏩: 1

Grayda In reply to Elorine [2009-03-10 09:24:12 +0000 UTC]

You can re-use the code if you like, as the code is independent of the journal (meaning you can use it with the custom modules on your front page ;D) but to keep track of how many people like a particular journal, registering more than one is advised

👍: 0 ⏩: 1

Elorine In reply to Grayda [2009-04-12 20:29:13 +0000 UTC]

Okay, thank you.

👍: 0 ⏩: 0

bentomlin [2009-02-28 16:12:28 +0000 UTC]

suggestion: make the click part of this a Greasemonkey script that sends the information without having to go through the Link Out Gate thing

👍: 0 ⏩: 1

Grayda In reply to bentomlin [2009-03-01 02:38:23 +0000 UTC]

That would be a good idea. I've been meaning to do some Greasemonkey-related stuff for a while, but wanted Favebox to run natively, which is why I'm waiting on deviantART to open up some possibilities for that.

But with all this said, I think I might take a dive into the Greasemonkey documentation and see what I can come up with

👍: 0 ⏩: 1

bentomlin In reply to Grayda [2009-03-01 02:46:05 +0000 UTC]

if you want to make it really accessible, right it both as greasemonkey (for firefox), and as a bookmarklet for IE users

👍: 0 ⏩: 1

Grayda In reply to bentomlin [2009-03-01 04:06:01 +0000 UTC]

I suppose with a little bit of Javascript magic, it could become an IE Bookmarklet

I've just fixed up the code so that when you fave, it no longer takes you back to the "You are now leaving deviantART" page instead takes you back one page before that (ie. the journal). I think the page would need a refresh to show the new number, but I'll work on that

👍: 0 ⏩: 0

HMSpeedFreek [2009-01-25 17:22:54 +0000 UTC]

There's a sort of bug in the code given on the site: after copying the code into the journal, the whole of it goes into a link. Nothing that a < /a> can't fix, but thought you might like to know...

👍: 0 ⏩: 1

Grayda In reply to HMSpeedFreek [2009-01-25 23:23:51 +0000 UTC]

Thanks for the bug report. Can I ask a few questions?:

1) Are you still having the problem?
2) What colours are you using for the box and the button?
3) Are you making sure to copy the WHOLE code?
4)Is there anything before and after the Favebox code that could cause it to get confused? (like http:// and other stuff)?

Thanks for reporting this and I'll look in to it

👍: 0 ⏩: 1

HMSpeedFreek In reply to Grayda [2009-01-25 23:48:15 +0000 UTC]

1) from what I said before, not anymore. HOWEVER, I repeat the registration with the same set up and it all goes into a link.

2) box: grey, button: green

3)I cut the entire code from the box and pasted into my journal box

4) all formatting from header, footer, and CSS has been removed, and the link still remains.

[link] <-- screenshots of code to journal

👍: 0 ⏩: 1

Grayda In reply to HMSpeedFreek [2009-01-26 02:07:43 +0000 UTC]

Thanks for providing that screenshot. I was able to track down and locate the bug. Turns out there was a missing / at the end of the img tag, so the final was ignored, therefore making everything after your box, a link.

I've since gone ahead and fixed the script (as well as a few spelling mistakes. Whoops! ) so thanks for the report

👍: 0 ⏩: 1

HMSpeedFreek In reply to Grayda [2009-01-26 08:25:45 +0000 UTC]

Cool stuff. Happy to help!

👍: 0 ⏩: 0

whenSmyledoesnttalk [2008-12-31 08:33:19 +0000 UTC]

You've been featured in my last long and boring journal

👍: 0 ⏩: 1

Grayda In reply to whenSmyledoesnttalk [2009-01-02 02:59:32 +0000 UTC]

ooh thankyou very much! I really appreciate it

👍: 0 ⏩: 0

Aerwyna [2008-12-26 07:21:37 +0000 UTC]

I can't wait until it's available for non-subscribers.... being in university sucks cause you're always broke T_T

But this is an amazing idea!

👍: 0 ⏩: 1

Grayda In reply to Aerwyna [2008-12-26 07:40:59 +0000 UTC]

There we go, I've updated the code and now when you register a favebox, it provides you with the code for a text-only version of the box (a visitor has to click the link to see how many faves you've got and there's a text-only link to vote)

I hope you dig yourself out of university debt soon

👍: 0 ⏩: 1

Aerwyna In reply to Grayda [2008-12-26 08:13:29 +0000 UTC]

Awesome, thanks!

and not likely about the debt, seeing as I have 2 and a half more years lol

👍: 0 ⏩: 0

Poila-Invictiwerks [2008-12-26 05:47:47 +0000 UTC]

Speaking of +fav journals, do you recommend/consider +fav comments? I mean, sometimes, we get useful comments, so that in case of remembering the good comments, how about +fav comments? (Just a suggestion only, and is subject to questionability )

👍: 0 ⏩: 1

Grayda In reply to Poila-Invictiwerks [2008-12-26 07:17:11 +0000 UTC]

I had thought about that, but there's no real way to track WHICH comment a person fave'd. It would be possible to add a "Fave this comment" link in your signature but it would leave you thinking "Who faved what comment?". Perhaps this might be possible once dA opens up a public API, I don't know..

👍: 0 ⏩: 0

AliveInLetters [2008-12-26 04:37:25 +0000 UTC]

thank you muchly, will use in the New Year...Happy Holidays.

👍: 0 ⏩: 1

Grayda In reply to AliveInLetters [2008-12-26 07:17:25 +0000 UTC]

Thanks, and to you too

👍: 0 ⏩: 0

arhcamt [2008-12-26 04:19:13 +0000 UTC]

👍: 0 ⏩: 1

Grayda In reply to arhcamt [2008-12-26 07:18:27 +0000 UTC]

:#2:

(I could have sworn there was an emote for that..)

👍: 0 ⏩: 1

Grayda In reply to Grayda [2008-12-26 07:48:23 +0000 UTC]

There's not one, but here's something closer:

👍: 0 ⏩: 0

Glabella [2008-12-26 03:23:30 +0000 UTC]

. . . this is a joke, right?

👍: 0 ⏩: 1

Grayda In reply to Glabella [2008-12-26 07:19:51 +0000 UTC]

This is a real deviation that actually works. However, as the description stated, there's no way to see who has faved your journal (until dA lets us see usernames on pages outside of dA) nor does this actually add the journal to your favourites, it just increments a number so you can see how many people like your journal

Hope that clears things up?

👍: 0 ⏩: 0

zikes [2008-12-26 03:03:59 +0000 UTC]

"Please note that because of limitations on deviantART's side, no usernames are actually recorded, nor is this journal added to your real favourites. Instead, your vote is recorded anonymously and the number of "faves" is increased by one. Once deviantART provides us with a way to obtain a username, I will update this script and you will be able to see WHO has faved your journals."

It's funny you should mention it, I've suggested a system that would allow us to do just that [link]

👍: 0 ⏩: 1

Grayda In reply to zikes [2008-12-26 07:25:10 +0000 UTC]

Funny, there's a file on dA's backend that might be of use to you, but not me

I had thought of writing a Greasemonkey script that works with Favebox to send my website a person's logged in username (should they choose to allow it), but I'd rather a 100% browser independent solution, although Greasemonkey is sounding miiighty tempting

👍: 0 ⏩: 0

tenko72 [2008-12-26 02:14:36 +0000 UTC]

I like the idea.

👍: 0 ⏩: 1

Grayda In reply to tenko72 [2008-12-26 07:25:20 +0000 UTC]

Thanks so much

👍: 0 ⏩: 1

tenko72 In reply to Grayda [2008-12-27 02:20:23 +0000 UTC]

Your welcome!

👍: 0 ⏩: 0

MetalShadowOverlord [2008-12-26 00:39:27 +0000 UTC]

I'd been wondering if there'd ever be something like this! awesome! I'll be sure to set it up in my journal soon!

Merry Christmas!

👍: 0 ⏩: 1

Grayda In reply to MetalShadowOverlord [2008-12-26 07:25:36 +0000 UTC]

And to you too!

I hope it works well for you

👍: 0 ⏩: 0

megason [2008-12-25 23:13:48 +0000 UTC]

For some reason, adding this deviation to my favourites felt a bit redundant.

... Oh well. At least I'll remember it when I get a subscription now.

👍: 0 ⏩: 1

Grayda In reply to megason [2008-12-25 23:17:07 +0000 UTC]

Yeah, pitty it's only for subscribers

I've been meaning to add a text-only version for those who don't have a subscription (every other person to fave this deviation doesn't have one) but it might have to wait until tonight when I get home from family celebrations ;D

👍: 0 ⏩: 0

blueninja12 [2008-12-25 22:23:55 +0000 UTC]

So nice you got a damn DD!

👍: 0 ⏩: 1

Grayda In reply to blueninja12 [2008-12-25 22:43:04 +0000 UTC]

And I totally wasn't expecting it

👍: 0 ⏩: 0

Hanging-Ghost [2008-12-25 21:44:59 +0000 UTC]

its amazing I Love it such a GREAT idea!! you know ama go watch you just for this!

👍: 0 ⏩: 1

Grayda In reply to Hanging-Ghost [2008-12-25 22:22:00 +0000 UTC]

Thanks! Hopefully I won't disappoint

👍: 0 ⏩: 1

Hanging-Ghost In reply to Grayda [2008-12-25 22:23:40 +0000 UTC]

heheh i wanna put it on but I am too lazy lolz!

👍: 0 ⏩: 1


| Next =>