Pie Chart Mod

Started by Grudge, March 07, 2004, 07:52:25 AM

Previous topic - Next topic

Grudge

Link to Mod

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.
I'm only a half geek really...

Ben_S

Liverpool FC Forum with 14 million+ posts.

Omar Bazavilvazo





Personal Signature:
HablaJapones
http://hablajapones.org
http://hablajapones.org/tutoriales.php


NO me manden PM para soporte o dudas
...Leo los foros como todos...

williammc

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.

[Unknown]

I'm afraid it requires GD.

-[Unknown]

williammc

#5
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.

williammc

#6
Nevermind removed the forum.
:)

klumy

Is there a screenshot for this MOD?

Oldiesmann

Give me a second or so and I'll paste one up here for you...
Michael Eshom
Christian Metal Fans

Oldiesmann

Michael Eshom
Christian Metal Fans

Bitwiz44

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.

Kindred

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--
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

niko

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
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

FaSan

Quote from: Grudge on March 07, 2004, 07:52:25 AM
Link to Mod

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

Webrunner

How about this: the mod works fint, but only for administrators.
Other members get a blank popup. :(
Any ideas?
There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy

Midgard

Did you set membergroup permissions?

Webrunner

Wich ones?
All the poll options are on.
There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy


Webrunner

Yes i have ....
Doesn't seem to make a difference.
There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy

Bitwiz44

will this mod be up-dated for 1.01?

Matthias Heil

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?

lawman

#21
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 :-\ ...

Surfy



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?

[Unknown]

Yes, you have to add it to php.ini; search in there for "gd".

-[Unknown]

Surfy

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?

[Unknown]

Upgrade PHP.  I can segfault PHP 4.0.6 at will.

-[Unknown]

Grudge

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?
I'm only a half geek really...

[Unknown]

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]

StormLrd

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"

::)

Grudge

Can you post a link to a phpinfo.php page?
I'm only a half geek really...

StormLrd

im not showing any file with that name  :(

would it be called something else?

dtm.exe

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

StormLrd


StormLrd

Fatal error: Call to undefined function: imagettftext() in /home/stormlrd/public_html/rhcforum/Sources/Subs-Graphics.php on line 1282

Grudge

I'm afraid that means your server doesn't support GD - or at least not the version required to use this mod.
I'm only a half geek really...

wizard13335

#35
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  :(
Wizard-A world of spells and enchantments awaits you.
Have a cat? Share your pet with the world at Kitten Kare.

mv_ajen

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.

URPG


DecaLocK

#38
Please update use for 1.1.8 T_T

Kindred

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
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Yağız...

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€]

Advertisement: