TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 348
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

Poll block

Started by topsecret, April 18, 2006, 12:59:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Deacon

I downloaded DynamicPoll and had no problem setting it up, but I'm having problems when trying to get it to show, either on the right side or frontpage. I tried to use a php block and inserted:

<?
include("dynamicpoll/poll.php");
?>

as it was suggested, but I keep getting a parsing include error. I'm sure that this is a simple issue of me inserting the wrong code...

Can anyone shed some light on this?

(I've already gone ahead and created a number of polls that are waiting in the queue)

Deacon

WeBrain

you cant put the "<?" and ">"...
just include("dynamicpoll/poll.php");

Deacon

Thanks. Using this I can get it to display as a Frontpage block. BUt now when I navigate to the next poll, the poll show up in it's own browser page. THe include works for the first poll but then successive polls aren't contained in the block. THey go off on their own.

Deacon

technodragon73

i had the same issue...I wanted the polls to only show the results and stay in the block...but when someone votes it takes them off-site

Deacon

I went ahead and emailed James about it to see if we can't get it resolved....

Deacon

WeBrain

for that my friends, only if you use an IFRAME i guess...

technodragon73

Quote from: WeBrain on April 27, 2006, 06:55:13 PM
for that my friends, only if you use an IFRAME i guess...

i thought about doing that...but i would really like to keep from doing that.

Quote from: Deacon on April 27, 2006, 05:05:16 PM
I went ahead and emailed James about it to see if we can't get it resolved....

Deacon

please let us know the results of that email.

Deacon

Will do. Actually, I have a similar type of function running in a Xoops site where I insert an iframe reference to an php page:

<?

include("../../mainfile.php");
include($xoopsConfig['root_path']."header.php");


// url opened
$urladdress=rawurldecode($urladdress);
include($xoopsConfig['root_path']."header.php");
OpenTable();
echo "<iframe SRC=\"http://www.mysite.com/acars/pilot_roster.php\" WIDTH=\"100%\"  HEIGHT=\"500\" FRAMESPACING=0 FRAMEBORDER=no  BORDER=0 SCROLLING=auto></iframe>";
CloseTable();

include($xoopsConfig['root_path']."footer.php");
die;

?>


Now there are also links in the pilot_roster.php which open up in the block (iframe, I guess). SUppose there's a little snippet that would work here that's similar to this one? Obviously I'm not a php guru, but I do understand enough to be dangerous!! :2funny:

technodragon73

the funny part is the include for the poll system works perfectly in a right or left block...it's just if someone votes...if it could only do like a lot of polls on other sites and just show the results after pressing vote it would be perfect!

Crip

Now this site also has a decent php poll, which may work like ya'll want it to:



Advanced Poll 2.0.4
Advanced Poll is a polling system with powerful administration tool. It features: multiple polls, templates, unlimited options, multi-language support, IP-Logging, IP-Locking, cookie support, comment feature, vote expire feature, random poll support and more. Supports textfile and mySQL database.

Demo

I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



This website is proudly hosted on Crocweb Cloud Website Hosting.