chrisruzin.net :: Archive Graph Plugin for EE (February 27, 2004)

Skip to main content
Newer: Mario Brothers Drama Older: Blogtimes Plugin for Expression Engine

Archive Graph Plugin for EE

I’ve released another GD library-based plugin for Expression Engine.  This one’s called Archive Graph, and you can see it at work in the right-hand column of my homepage.  It basically queries the EE database and counts how many comments and posts there were for a given number of months.

Download: Archive Graph v1.0

Once you download and unzip the file, you MUST change the path to where you want your archive graph image to be stored. Open the file in your favorite text editor and change the path. There are some other optional variables you can change which have been commented. Once you have it how you want it, upload it into your plugins directory.  Make sure you read the information on the plugin in your Plugin Manager in the control panel.

Feb. 27, 2007: A long time coming, but I’ve updated the plugin a little bit. It’s now version 1.3, and can still be downloaded using the link above.

yoshi's gravatar yoshi United States February 27, 2004

I guess I really need to get the GD installed. I kinda like these graphs!

How tough is it to make using say ImageMagick?

Chris's gravatar Chris United States February 27, 2004

I don’t know how to use the ImageMagick library. I could read up on it and try to make a version for it, but that would be at least a couple weeks away because of work projects.

If you know more about ImageMagick, you’re more than welcome to make a version of my plugin that uses it.

yoshi's gravatar yoshi United States February 27, 2004

Hmm. Maybe I will…Sounds like a project. smile

Chris's gravatar Chris United States February 27, 2004

Excellent! The more plugins we can make for EE, the more attractive it will become to people and businesses. The more people and businesses that use EE, the more exposure plugin makers like you and me get. The more exposure we get, the more power we get. Eventually we’ll take over the world! Muahahahahaha!

OK… I got a little carried away at the end. Just ignore the parts about power and world domination. The rest is true.

Junaidi's gravatar Junaidi Australia April 2, 2004

Hi. Any chance to make this plugin for pmachine? Thanks!

Chris's gravatar Chris United States April 2, 2004

I had made a pMachine version of this a long time ago, but considered it too much of a hack to release publicly. I still think it’s a hack, so I will not be releasing a pMachine version. Sorry.

melanie's gravatar melanie Australia July 9, 2004

I’m looking for a way to display (some of) this information textually, rather than graphically.. (ie, have an entry count beside a monthly archive link page.. eg May (56))
Is this adaptable, or is there another way you know of to do that?
I’ve been going through the user guide and the forums, but this is the closest I’ve come so far smile

Chris's gravatar Chris United States July 9, 2004

You could do a SQL query to find the number of posts for that month and then put that into your exp:weblog:month_links tag.

rouge's gravatar rouge Switzerland February 21, 2007

Hi
I would like to use your plugin in because i like these sort of statistic but unfortunately i only recevie the following message:

Error Number: 1064

Description: You have an error in your SQL syntax near ’(SELECT DISTINCT month, year FROM exp_weblog_titles WHERE status=’open’ at line 1

Query: (SELECT DISTINCT month, year FROM exp_weblog_titles WHERE status=’open’ GROUP BY month, year ORDER BY year DESC, month DESC LIMIT 0,12) ORDER BY year ASC, month ASC

Can you please give me a little hint what the problem is? I’ m not sure if my destination path is correct. May that be the problem that cause this message?

Thank you in advance for your help

Regards,
Michel

Your name is mandatory
Your email address is mandatory
Your comment is mandatory Formatting:
_emphasis_
*strong*
-deleted text-
@code@
   What word do you see to the left?
The captcha is mandatory