Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Grudge on March 07, 2004, 07:52:25 AM

Title: Pie Chart Mod
Post by: Grudge on March 07, 2004, 07:52:25 AM
Link to Mod (http://mods.simplemachines.org/index.php?mod=10)

This little mod will allow your users to view the results of a poll as a piechart by clicking a link which will open the results in a window. Note this won't work all that well on polls with more than 16 results.
Title: Re: Pie Chart Mod
Post by: Ben_S on March 08, 2004, 06:07:15 AM
Looking good
Title: Re: Pie Chart Mod
Post by: Omar Bazavilvazo on March 08, 2004, 02:08:58 PM
i like the mod :P
Title: Re: Pie Chart Mod
Post by: williammc on October 31, 2004, 10:22:46 PM
I get this error after clicking the pie chart link.

Fatal error: Call to undefined function: imagettftext() in /usr/home/williamm/public_html/wf/Sources/Subs-Graphics.php on line 1254

All files chmod 777.

Help please, thanks.
Title: Re: Pie Chart Mod
Post by: [Unknown] on October 31, 2004, 10:27:24 PM
I'm afraid it requires GD.

-[Unknown]
Title: Re: Pie Chart Mod
Post by: williammc on October 31, 2004, 10:46:08 PM
Hmmm, does the avatar resizing require GD or is this something different, I have it enabled for avatars.

Now I have 2 pie chart links, when I uninstall it it leaves the link there.

Thanks.

Edit: from my error message above it shows 1254 but it only goes to 1174 in Subs-Graphics.php

Edit 2: I guess I don't have GD, I made a avatar 70x70 which I only allow 60x60 max.
Title: Re: Pie Chart Mod
Post by: williammc on October 31, 2004, 11:48:15 PM
Nevermind removed the forum.
:)
Title: Re: Pie Chart Mod
Post by: klumy on November 01, 2004, 04:55:31 AM
Is there a screenshot for this MOD?
Title: Re: Pie Chart Mod
Post by: Oldiesmann on November 01, 2004, 11:28:06 AM
Give me a second or so and I'll paste one up here for you...
Title: Re: Pie Chart Mod
Post by: Oldiesmann on November 01, 2004, 11:39:43 AM
Here you go...
Title: Re: Pie Chart Mod
Post by: Bitwiz44 on December 30, 2004, 12:40:42 PM
Ok... I get the same error. Fatal error: Call to undefined function: imagettftext() in /home/talk/public_html/Sources/Subs-Graphics.php on line 1282


I have GD.. (I think) because it on a Lewis server.
Title: Re: Pie Chart Mod
Post by: Kindred on December 30, 2004, 01:53:30 PM
Strangely enough, I got this same error on my Mambo-SMF install...

It works perfectly well in SMF directly, but going in through Mambo caused the error.
My fix was to copy the font file into the Mambo root directory and also into the Sources directory just in case...

Now,  however, there is no error, but I get the little red X-box for image not found when I click the pie chart in Mambo...
(I commented out the obexit line in the piechart fucntion).

Grudge (or someone else?)   just a quick question... Is there a set path or something in the mod that Mambo would be interfering with?

--Kindred--
Title: Re: Pie Chart Mod
Post by: niko on December 30, 2004, 03:11:45 PM
Quote from: Bitwiz44 on December 30, 2004, 12:40:42 PM
Ok... I get the same error. Fatal error: Call to undefined function: imagettftext() in /home/talk/public_html/Sources/Subs-Graphics.php on line 1282


I have GD.. (I think) because it on a Lewis server.

Yuo may have it but you dont have FreeType
Title: Re: Pie Chart Mod
Post by: FaSan on January 05, 2005, 09:09:55 PM
Quote from: Grudge on March 07, 2004, 07:52:25 AM
Link to Mod (http://mods.simplemachines.org/index.php?mod=10)

This little mod will allow your users to view the results of a poll as a piechart by clicking a link which will open the results in a window. Note this won't work all that well on polls with more than 16 results.



Uhmmm... and for more results ?  8) :D
Title: Re: Pie Chart Mod
Post by: Webrunner on January 24, 2005, 02:15:09 PM
How about this: the mod works fint, but only for administrators.
Other members get a blank popup. :(
Any ideas?
Title: Re: Pie Chart Mod
Post by: Midgard on January 24, 2005, 02:18:26 PM
Did you set membergroup permissions?
Title: Re: Pie Chart Mod
Post by: Webrunner on January 24, 2005, 02:19:39 PM
Wich ones?
All the poll options are on.
Title: Re: Pie Chart Mod
Post by: Midgard on January 24, 2005, 02:23:56 PM
as http://www.yourhost.com/yourforum/index.php?action=permissions

but, i'm not sure from this
Title: Re: Pie Chart Mod
Post by: Webrunner on January 24, 2005, 02:29:35 PM
Yes i have ....
Doesn't seem to make a difference.
Title: Re: Pie Chart Mod
Post by: Bitwiz44 on January 26, 2005, 08:40:28 AM
will this mod be up-dated for 1.01?
Title: Re: Pie Chart Mod
Post by: Matthias Heil on February 09, 2005, 06:51:12 PM
I am getting this error message:

Ein Fehler ist aufgetreten!
2: Could not find/open font
Datei: /home/www/web19/html/fm/Sources/Subs-Graphics.php
Zeile: 1282 

I copied the font to the root directory of smf, to the sources folder, the themes folder... all to no avail...-(

Any hints?
Title: Re: Pie Chart Mod
Post by: lawman on February 27, 2005, 01:57:31 PM
Anyone find out how to get it to work for those of us with the error:

Fatal error: Call to undefined function: imagecreate() in /home/raov/public_html/smf/Sources/Subs-Graphics.php on line 1207

Not sure what GD is that was referenced above :-\ ...
Title: Re: Pie Chart Mod
Post by: Surfy on March 19, 2005, 09:45:09 PM


Fatal error: Call to undefined function: imagecreate() in C:\Inetpub\testboard\Sources\Subs-Graphics.php on line 1207

I`m using IIS under w2k3   ;)

what i have to do, does GD runs under windows?
Title: Re: Pie Chart Mod
Post by: [Unknown] on March 20, 2005, 01:39:58 AM
Yes, you have to add it to php.ini; search in there for "gd".

-[Unknown]
Title: Re: Pie Chart Mod
Post by: Surfy on March 20, 2005, 10:42:58 AM
Quote from: [Unknown] on March 20, 2005, 01:39:58 AM
Yes, you have to add it to php.ini; search in there for "gd".

-[Unknown]


I have found it, under extensions... I^m using php 4.0.6..  If i enable GD, my Forum doenst work anymore, also all php things  :-[

Any Ideas?
Title: Re: Pie Chart Mod
Post by: [Unknown] on March 20, 2005, 04:05:15 PM
Upgrade PHP.  I can segfault PHP 4.0.6 at will.

-[Unknown]
Title: Re: Pie Chart Mod
Post by: Grudge on March 26, 2005, 10:00:14 AM
I don't have the mod to hand but I can't see why it would have a had a problem with the font. The mod copies over the font to the correct directory - maybe it's a problem with the PHP/GD configuration?
Title: Re: Pie Chart Mod
Post by: [Unknown] on March 26, 2005, 03:50:48 PM
Quote from: Grudge on March 26, 2005, 10:00:14 AM
I don't have the mod to hand but I can't see why it would have a had a problem with the font. The mod copies over the font to the correct directory - maybe it's a problem with the PHP/GD configuration?

Is it possible the current directory is wrong?  Are you using a full path with $boarddir, etc.?

-[Unknown]
Title: Re: Pie Chart Mod
Post by: StormLrd on May 11, 2005, 01:30:54 AM
I feel like a total moron asking but where do i find this GD to enable it on my server?

i get the same undefined text error as already posted and my avatars work fine but dont see/understand exactly whats being refered to  when you say "enable the GD"

::)
Title: Re: Pie Chart Mod
Post by: Grudge on May 12, 2005, 04:46:10 AM
Can you post a link to a phpinfo.php page?
Title: Re: Pie Chart Mod
Post by: StormLrd on May 12, 2005, 02:51:30 PM
im not showing any file with that name  :(

would it be called something else?
Title: Re: Pie Chart Mod
Post by: dtm.exe on May 12, 2005, 04:30:09 PM
Quote from: StormLrd on May 12, 2005, 02:51:30 PM
im not showing any file with that name  :(

would it be called something else?

You have to create that page.  Here's how.

http://www.simplemachines.org/community/index.php?topic=18250.0

-Dan The Man
Title: Re: Pie Chart Mod
Post by: StormLrd on May 13, 2005, 01:58:58 AM
http://stormlrdsreality.co.uk/rhcforum/phpinfo.php

showing GD is enabled

Title: Re: Pie Chart Mod
Post by: StormLrd on June 09, 2005, 09:02:54 AM
Fatal error: Call to undefined function: imagettftext() in /home/stormlrd/public_html/rhcforum/Sources/Subs-Graphics.php on line 1282
Title: Re: Pie Chart Mod
Post by: Grudge on June 09, 2005, 10:04:56 AM
I'm afraid that means your server doesn't support GD - or at least not the version required to use this mod.
Title: Re: Pie Chart Mod
Post by: wizard13335 on November 13, 2005, 09:20:10 PM
Strange, mine worked before, but now i get this error: (which is like everyone else's except different line :P)

QuoteFatal error: Call to undefined function: imagettftext() in /home/kitten/public_html/forums/Sources/Subs-Graphics.php on line 1344

Why is this suddenly not working? I uninstalled the mod and reinstalled it, with no errors during either, but it still doesn't work. Please help. Thanks  :(
Title: Re: Pie Chart Mod
Post by: mv_ajen on February 01, 2006, 09:20:49 PM
Quote from: Wizard13335 on November 13, 2005, 09:20:10 PM
Strange, mine worked before, but now i get this error: (which is like everyone else's except different line :P)

QuoteFatal error: Call to undefined function: imagettftext() in /home/kitten/public_html/forums/Sources/Subs-Graphics.php on line 1344

Why is this suddenly not working? I uninstalled the mod and reinstalled it, with no errors during either, but it still doesn't work. Please help. Thanks  :(

I'm having the same issue on line 1344. Please advise.
Title: Re: Pie Chart Mod
Post by: URPG on November 01, 2006, 04:59:16 AM
Does this work for RC3?
Title: Re: Pie Chart Mod
Post by: DecaLocK on March 10, 2009, 03:30:58 PM
Please update use for 1.1.8 T_T
Title: Re: Pie Chart Mod
Post by: Kindred on March 12, 2009, 09:31:21 AM
egads!

this thread is over 2 years old...

1- I don't think Grudge is maintaining ANY of his mods at this time.
2- If it was updated, I assume that it would be updated to 2.0 and not 1.1.8
Title: Re: Pie Chart Mod
Post by: Yağız... on March 12, 2009, 12:01:18 PM
It works with 1.1.8. You just need to change this in package-info.xml:
<install for="1.1 - 1.1 RC2">
With this:
<install for="1.1 - 1.99.99">
And this:
<uninstall for="1.1 - 1.1 RC2">
With this:
<uninstall for="1.1 - 1.99.99">[/cod€]