Show:

AGLRSSsays

Purchased

Hi Vim – I have just sent you an email via youe Sitebase site. I’m having the same problem as Richard. I’m not getting errors – just nothing showing on the page. My code is:

<?php echo Poll(5); ?> <?php include(“Poll/Poll.php”); ?> <?php echo Poll(5, “Poll/template.tpl”, “Poll/data.xml”); ?>

The Poll folder is uploaded in the root and the admin area works perfectly where I can create the poll but I can’t get the poll to show on the page. Not sure what to do now…

Any help very much appreciated.

Joel :)

Posted 2 months ago
Author

Sitebase Sitebasereplied

Make sure you used the right type of quotes:

<?php echo Poll(5); ?> <?php include("Poll/Poll.php"); ?> <?php echo Poll(5, "Poll/template.tpl", "Poll/data.xml"); ?>
Posted 1 month ago

AGLRSSsays

Purchased

Hi Vim – thanks for the answer. Unfortunately it doesn’t help or make any further sense to me. I have followed your instructions exactly as they are written in your included help file and it appears that I have used the right type of quotes from what you have posted above.

The admin area of the poll is working properly so it must be something small that I just can’t find that is stopping it showing on the .html page of the site.

This is the entire html that is in the column where the poll is supposed to show:

Tell us what you think!

<?php echo Poll(1); ?> <?php include(“Poll/Poll.php”); ?> <?php echo Poll(1, “Poll/template.tpl”,“Poll/data.xml”); ?>

 

Image

Is anyone able to help me because this is becoming very frustrating and I have spent many, many hours on this getting nowhere. I’d be happy to pay at this stage.

Many thanks.

Joel

Posted 1 month ago
Author

Sitebase Sitebasereplied

So the page where you place that code in is a .html file. This must be a .php file. You can just replace the .html with .php.

By the way: my name is Wim :).

Posted 1 month ago

AGLRSSsays

Purchased

Wim – apologies. I tried index.php but it just came up with a whole lot of nasty errors. I’ve got someone to help me now so things are looking up.

Many thanks!

Joel

Posted 1 month ago

mdyersays

Purchased

Your updates mentioned:

Added Totalvotes variable to use in templates

I’ve tried adding variable : {TOTALVOTE} into the template and it’s displaying as {TOTALVOTE}. Am I missing something?

Posted 1 month ago
Author

Sitebase Sitebasereplied

There is not TOTALVOTE variable. You can use TOTALVOTES or VOTES . More about this can be found in the documentation pdf.

Posted 1 month ago

robinleijonsays

Purchased

Hi (again),

Thanks for all the help so far.

I’ve solved the main problem but still an error occur when I try to change the directory of the page where I want to use the poll to my main directory (public_html).

I receive an error message saying; ” File(../../poll/Poll.php) is not within the allowed path(s)”.

I know the directory and the path is correct.

How do I proceed?

Thanks.

Posted 1 month ago
Author

Sitebase Sitebasereplied

It seems that your server doens’t allows .. in a directory path. You can use absolute paths to solve this problem.

Posted 1 month ago

clickymediasays

Purchased

Hi,

Thanks for the great poll, it has definately helped me out with what I needed, but I have a couple of questions:

1) How can I stop the results from showing if I go back to the page once I have already voted? I want it to go to results right after I have filled the poll out, but when I reload the page how can I get it to go to the poll question again?

2) How does it know if somebody has done it before? is it done via cookies? IP address? how is it done?

Please let me know Thanks

Posted 1 month ago
Author

Sitebase Sitebasereplied

1. You can only vote once so it’s more logic to show the result if a visitor already has voted.

2. This is done with a combination of cookies and IP address.

Posted 1 month ago

robinleijonsays

Purchased

Thanks.

“It seems that your server doens’t allows .. in a directory path. You can use absolute paths to solve this problem.”

How can this be done?

Posted 1 month ago

sobiecki4says

Am I able to have a drop down with 200 results options?

Also can I have the results show up on the same page and the poll?

thanks!

_a

Posted 25 days ago

rfryesays

Purchased

Thanks for this poll. Been using it about a week without a problem at all. I have looked through the documentation and do not see a variable for the top result. Is there an easy way to display just the highest voted for answer?

Thanks

Posted 23 days ago
Author

Sitebase Sitebasereplied

I added 2 variables to the Poll. The new version should be online in a hour or two (review que 2 now).

These are the variables I have added:

  • {TOPANSWER}: The answer with the most votes
  • {TOPVOTES}: How many votes the top answer has
Posted 22 days ago
Purchased

Default-user rfryereplied

Wow, thanks a ton. That will be very useful for my application of this script.

Posted 22 days ago

robinleijonsays

Purchased

Thanks.

“It seems that your server doens’t allows .. in a directory path. You can use absolute paths to solve this problem.”

How can this be done?

Posted 21 days ago
Author

Sitebase Sitebasereplied

Place a file test.php in your Poll directory with the following code:

<?php echo dirname(_FILE_); ?>

Call this file from your browser, and that path that is shown is the absolute path to the Poll directory.

Posted 21 days ago

robinleijonsays

Purchased

Thanks for all your help.

I don’t know if I am doing anything wrong. I’ve created a file called path.php and uploaded it in my Poll directory.

When I go to (call the file?) the file (test.php) through my web browser I can’t see anything.

Posted 20 days ago

barryviljoensays

Purchased

Hello, I am having difficulties getting the admin panel to load. After I enter in the password and hit login in it redirects me to a blank page. Any help would be greatly appreciated.

Regards,

Posted 9 days ago
Author

Sitebase Sitebasereplied

Did you set the server permissions to the data xml file to 755? Try to add:
error_reporting(E_ALL);
to the top of your admin page. Does this give any errors? If you still have problems you can always email me so I can take a look on your server.
Posted 3 days ago

HHawksays

Purchased

Since there is no reaction on my question by email, I will try and ask here…

Is there a way to display created polls randomly? So if I created 10 polls and someone reloads the website, one of the 10 created polls will be displayed.

Hopefully I will receive an answer this time…

Posted 1 day ago
Author

Sitebase Sitebasereplied

I’ve seen your email but I cannot answer all my emails each evening. This is because I get lots of questions about my components by email.

You can do this with the following code:
<?php $polls = array(4, 5, 10, 15);  // Array of poll numbers you like to randomize
shuffle ( $polls  );
echo Poll($polls[0]);
?>
Replace the 4, 5, 10 and 15 with the number of polls you want to randomize. I didn’t test the code but this should do the trick.
Posted 1 day ago

HHawksays

Purchased

Thanks for the answer, but where do I put the rest?

"template.tpl", "poll/data.xml");

???

//edit

I think I did it correctly:

<?php $polls = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);  // Array of poll numbers you like to randomize
shuffle ( $polls  );
echo Poll($polls[0], "template.tpl", "poll/data.xml");
?>

Is this correct?

Posted 1 day ago
Author

Sitebase Sitebasereplied

That’s indeed correct :).

Posted 1 day ago

HHawksays

Purchased

Thanks! :)

Posted 1 day ago

$8

Prepaid customers
pay just $6 - how? Prepay Your Account With our deposit system not only will purchasing be much faster, but we’ll also take $2 off the price! Click Here to Deposit Price

You must sign in or sign up to purchase this item.

12345 ( 18 ratings )

Purchase 90 purchases

Sitebase

Sitebase

Exclusive Author Item was Featured Author was Featured Author had a Free File of the Month Referred at least one person Sold between 10 000 and 50 000 dollars Bought between 1 and 9 items Belgium
File Types Included
PHP
Item Attributes
Created 20 September 09
PHP Version 5.x
MySQL Version N/A
Compatible Browsers FireFox 2, FireFox 3, IE6, IE7, IE8, Safari
PHP Files Included PHP
PHP Framework N/A
Collections that include this item