PDA

View Full Version : Dynamic Wordpress Footer!


evildrummer
01-09-2007, 02:44 PM
Ok, I have done this as a draft, I will keep releasing better versions for the footer contest but here it is: UPDATE!!!!

Version 0.2

features:
still MySQL driven
supports up to 4 layered images (.png's, .jpg's, .gif's)
now supports wordpress categorys
faster code

To be addedd
RSS feeds also
Better Admin Panel
other blog support
multiple blog/rss footer



if anyone has any features they want I will add and also if you want the code PM me.
Hope you like!

total time so far: 11 minutes 30 seconds

bwh2
01-09-2007, 03:20 PM
ha. i was going to write a quick one of these tonight. but mine would just be based off of RSS, so you would pass it an RSS feed and then it would grab the most recent post(s) and display them. easier and more portable than running through MySQL. that way it's not limited to wordpress, it would be compatible with other blogging systems.

but i'm not going to do that. i have something similar, yet different enough in mind.

evildrummer
01-09-2007, 03:25 PM
Well mine will have loads of options like run off RSS and other stuff as said but also I want to focus mine on user friendlyness and customization, so admin GUI, easy customizing and also an easy install as an official wordpress plugin.

and if you want to see the footer as I continue the unstable tests are here:

bwh2
01-09-2007, 03:29 PM
cool beans. i'm looking forward to checking it out when it's done.

evildrummer
01-09-2007, 03:31 PM
Thanks :D

Im gonna have to take it slow though as I have LOADS of work! But this contest made me start!

Fl4SH'ER
01-09-2007, 03:47 PM
hi man, well, the idea of a dynamic footer is nice... but i'm not sure if the contest is about this kind of stuff... i mean, well, yeah... it is a footer... but i guess it's more about graphics here and not about dynamic text ? i'm not saying it's not good, i'm not the one who'll judge this, but i thought that the contest is about creativity...

maybe i'm wrong... i hope i am... the idea is nice, but... dunno, i'd rather shut up then say something stupid.... i guess that, well... your's is a footer too...

complicated crap....

Good Luck,
Biro

bwh2
01-09-2007, 03:57 PM
i'm not saying it's not good, i'm not the one who'll judge this, but i thought that the contest is about creativity...so how is evildrummer's not about creativity? i think it's pretty creative. i think your definition of creativity is too narrow.

evildrummer
01-09-2007, 03:59 PM
at Flash, I never said anything about winning, the judging is on creativity but server stuff is allowed and + I like working on the core stuff before design so just hand on and by 28th of jan it will be a footer and not a dynamic link :D

Esherido
01-09-2007, 04:27 PM
FLASHER, I think you're being way too biased and only looking at the design and visual look, this contest is about creativity and originality, not just design. The footer I'm doing isn't the most original, but I'm adding some creative twists and adding some cool server-side features in the hopes of making a good footer that other people can use and in the hopes that it will win.

CreationsCentre
01-09-2007, 04:27 PM
Nice one evildrummer! Good idea too. I'd love to see your source :pleased:

evildrummer
01-09-2007, 04:32 PM
When I get a better more friendly version done Ill post all the code, WITH the adminPanel, I love it so far,

Fl4SH'ER
01-09-2007, 05:18 PM
you guys got me all wrong... nevermind...

evildrummer
01-09-2007, 05:43 PM
updated to Version 0.2

Esherido
01-09-2007, 08:56 PM
Smooth, I don't see any changes. :|

evildrummer
01-10-2007, 08:42 AM
Then thats perfect as all the updates are back-end

Esherido
01-10-2007, 11:43 AM
:lol: Even smoother. Keep up the good work.

evildrummer
01-11-2007, 03:23 PM
Im pulling out of this comp, so the footer is going to be deleted, in five minutes ill quickly post the code of v0.1, I will probably work on it more later on but out of this comp.

evildrummer
01-11-2007, 03:36 PM
ok simple version:

<?php
$username = '';
$pass = '';
$db = '';
header("Content-type: image/png");
mysql_connect($_ENV['DATABASE_SERVER'], $username, $pass);
@mysql_select_db($db) or die( "Unable to select database");
$query="SELECT post_title FROM wp_posts ORDER BY `post_date_gmt` DESC";
$result=mysql_query($query);
mysql_close();
$i=0;
while ($i < 1) {
$post=mysql_result($result,$i,"post_title");
$i++;
}
$image = imagecreatefrompng("bg.png");
$black = imageColorAllocate($image, 80, 139, 197);
$text = imageColorAllocate($image, 255, 255, 255);
imagestring($image, 11, 60, 10, "Latest Post: $post", $text);
imagestring($image, 11, 60, 40, "Category: Programming", $text);
imagepng($image);
imagedestroy($image);
?>

Just place in a folder named 'footer.jpg' for use in forums.

Rhetorikol
01-11-2007, 04:16 PM
I'm still a little confused about whats going on here, I can't see a working example.


Now is there a way to display external data from lets say a javascript? or an html imbed?

evildrummer
01-11-2007, 04:24 PM
I took down the example of my server, as an explanation: that asumes you have a WP(WordPress blog) Ask more specific questions and ill answer

Esherido
01-11-2007, 04:51 PM
Once the contest is over, I'll start releasing versions of mine. :D

Rhetorikol
01-11-2007, 04:55 PM
I don't assume I do have a WP blog, but thanks for the offer of help.

evildrummer
01-11-2007, 05:34 PM
Im might maybe develop mine in a secret underground bunker, oh and does anyone know how to make OFFICIAL wordpress plugins so uploaded to plugins directroy and managed through WP panel as mine was standalone(in a way)

CreationsCentre
01-11-2007, 06:06 PM
Im might maybe develop mine in a secret underground bunker, oh and does anyone know how to make OFFICIAL wordpress plugins so uploaded to plugins directroy and managed through WP panel as mine was standalone(in a way)

That should help you:

http://codex.wordpress.org/Writing_a_Plugin (http://codex.wordpress.org/Writing_a_Plugin)

Hang on, why did you pull out?

evildrummer
01-11-2007, 06:11 PM
Just did, Mines not designed so no point.

Esherido
01-12-2007, 08:07 PM
I'm doing some design and stuff and mine, remember, this contest isn't just about design, other areas such as your originality and functionality do count.

evildrummer
01-13-2007, 07:27 AM
Yeah but my functionality is now leaning towards pure wordpress plugin and so its not standalone and I thought it had to be standalone and mian criteria was design!

Jeff Wheeler
01-13-2007, 12:40 PM
Who cares if it wins... I still wanna see it!

evildrummer
01-13-2007, 12:56 PM
lol, ok I'll leave version here and update and keep in comp, but only if atleat 1 person votes for me :D http://digitalcarnival.com/footer.jpg

Seb Hughes
01-13-2007, 01:00 PM
First judge select ones that go to vote, So pay me some money and ill make sure it goes up for public voting :D

evildrummer
01-13-2007, 01:02 PM
haha, do free e-mails count as money where you live?

darkmotion
01-14-2007, 06:45 AM
You should let it link to it as well :P

evildrummer
01-14-2007, 08:48 AM
haha, ooops, it did last time oh well, it runs off a temporary WordPress blog at http://digitalcarnival.com