deviant art

Deviant Login Shop  Join deviantART for FREE Take the Tour
[x]
Shop Similar Prints
This Print Not Available
Download File
ZIP, 1.4 KB
more ▶

More from ~Grayda

Featured in Groups:

Details

October 23, 2006
1.4 KB
Link
Thumb

Statistics

Comments: 10
Favourites: 11 [who?]

Views: 1,179 (0 today)
Downloads: 55 (0 today)

License

Creative Commons License
Some rights reserved. This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
[x]
:icongrayda:
Overview: This deviation lets you use pasties, in your journal. They are automatically updated when someone submits a new deviation, and can also be used to show daily deviations, favourites and much more. Click Download to get the source!

--

If you haven't done so already, have a read of the "Getting the most out of your CSS Journal" series . This is the resource from part three, which enables Pastie-like images in your journal.

Instructions for use:

1) Open up myfav.php in something like Notepad.
2) You should see two lines:

$username = 'YOUR USERNAME';

Insert your username (case doesn't matter) into where "YOUR USERNAME" is.

3) Save, and upload to your website
4) In your journal, enter:

<img src="http: // www. yoursite .com / images/ myfave.php?p=x" />

Where x is a number between zero and four:

0 = Show the latest deviation uploaded to deviantART
1 = Show a Staff Pick (ie. Daily Deviation)
2 = Shows your featured deviation
3 = Shows your most recent deviation
4 = Show the last piece you fave'd.

And when you view your journal, you should have a dynamic image that changes (almost) every time you view it.

Feedback is encouraged, as are code-fixes. I'm not the greatest PHP programmer in the world, so if you can clean up / speed up this code, do so, and let me know :)

Please note, that dA (I think) is blacklisting sites that use these too much. It's considered theft of bandwidth, even if it's to be used for dA only. I present these files for learning purposes only. They aren't meant for every day use. They are only to show what GD and PHP can do for your journal. I do not condone use of dA's bandwidth, unless it's browsing of the site in your browser

Copyright information:

This code was written by David "Grayda" Gray. You are permitted to change this code to suit your needs, but you are not allowed to redistribute the changed code without prior permission. Redistribution of the original code is also not allowed, without permission. Linking to this deviation is strongly encouraged. Please respect copyright and don't steal. Thankyou
Add a Comment:
 
:iconnakoo-the-tauren:
~Nakoo-The-Tauren Oct 26, 2006  Student Digital Artist
Lol. <3
Reply
:icongrayda:
~Grayda Oct 26, 2006  Professional Photographer
lawl <4
Reply
:icongrayda:
~Grayda Oct 25, 2006  Professional Photographer
It surprises me that you haven't got a CSS Journal. I would have thought that some kind gentleman (or avid lady fan :eyes: ) would have designed one for you by now.. Not to worry however. I'm sure you'll have one up soonish.. :evileye:
Reply
:iconkagomeresurrected:
no, i've been offered :giggle: dont wanna.
Reply
:icongrayda:
~Grayda Oct 26, 2006  Professional Photographer
hmm righto. Your choice I suppose. Myself, I can't live without my CSS and dA journal setup. But that's just me. Nerd FTW! :#1:

Oh well, if you want one done, you have my MSN and my dA username :)
Reply
:iconenzudes1gn:
*EnzuDes1gn Oct 23, 2006  Professional Interface Designer
noice one tnx for sharing man.
Reply
:icongrayda:
~Grayda Oct 23, 2006  Professional Photographer
No worries! I most certainly hope dA isn't blacklisting sites that host this file. If they do, I'll kindly suggest they make special :thumb: codes that do the same thing..
Reply
:iconenzudes1gn:
*EnzuDes1gn Oct 24, 2006  Professional Interface Designer
:)
Reply
Add a Comment: