The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I'm looking for a way to display poll results on a seperate page. Not only the results, but also the bar graphs like thats shown when you view the normal results. I found an older mod, but it no longer worked with the newest version. Does anyone have any ideas where I could obtain one? Or can someone create one :nervous:
Thanks |
|
#2
|
|||
|
|||
|
bump, anyone? ever seen this?
|
|
#3
|
|||
|
|||
|
I'm assuming this is too difficult?
|
|
#4
|
|||
|
|||
|
I did it, for the graphing I used:
html-graphs (v3.4) and Code:
$poll = mysql_query("SELECT pollid,question,options,votes FROM poll ");
while ($pollinfo = mysql_fetch_array($poll)) {
$splitoptions = explode('|||', $pollinfo['options']);
$splitvotes = explode('|||', $pollinfo['votes']);
$pollquestion = $pollinfo['question'];
$id = $pollinfo['pollid'];
}
require('graphs.inc.php');
$graph = new BAR_GRAPH("hBar");
$graph->values = $splitvotes;
$graph->labels = $splitoptions;
$graph->graphBGColor = "white";
$graph->labelSize = 12;
$graph->labelFont = "Arial";
$graph->graphPadding = 0;
$graph->barColor = "#C0D0C0,#80D080";
$graph->barBGColor = "#ffffff";
$graph->labelColor = "#000000";
$graph->legendColor = "#00A000";
$graph->legendBGColor = "#D0F0D0";
echo $graph->create();
|
|
#5
|
|||
|
|||
|
Not sure I understand are you able to use this on a non vb seperate page?
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|