68 Classifieds Forums

68 Classifieds Forums (http://www.68classifieds.com/forums/index.php)
-   v3.1 Suggestions and Feedback (http://www.68classifieds.com/forums/forumdisplay.php?f=23)
-   -   Voting Poll (http://www.68classifieds.com/forums/showthread.php?t=1336)

Scooter 08-14-2006 01:45 PM

Voting Poll
 
Is there any way to implement a vote poll without having to use a 3rd party? I am currently using Bravenet's poll, but it keeps throwing pop-ups on the page and I don't like that. The company that I use to host my domain has some scripts that I can create and modify for the site, but they don't work with 68 classifieds (or at least I haven't figured it out yet). Does anyone have any thoughts or ideas?

Thanks.

Lhotch 08-14-2006 03:14 PM

There isnt anything built in so you will have to implement a 3rd party peice of software. What is the name of the polls your host has available to you? Chances are they require you to insert php or javascrip code into your site to get it to work. This generally isnt a problem but you have to escape the code so that smarty doesnt process it.

Scooter 08-14-2006 05:52 PM

The name of the poll is "vzPoll" by ipowerweb.com. It says it must be inserted onto a page with a php extension. I'm not quite sure how to make it work.

Lhotch 08-14-2006 06:39 PM

Do the scripts give you a chunck of code and tell you to insert it in the php file? If so you can out it in a template you just need to put the {php} tags around it so smarty doesnt parse it. SOmething like this.....

{php}
code goes here
{/php}

Scooter 08-14-2006 09:07 PM

I placed {php} and {/php} before and after the code and it still did not work. It actually gave me a "parse" error.

Parse error: parse error, unexpected '<' in /home/cypressr/public_html/templates_c/^default^user^%%29^291^29105299%%layout.tpl.php.ph p on line 176


The code that I'm trying to insert is

<?php @include("http://cypressresale.com/v-web/vzpoll/poll.php");?>

detrate 08-15-2006 02:22 AM

Quote:

Originally Posted by Scooter (Post 7048)
I placed {php} and {/php} before and after the code and it still did not work. It actually gave me a "parse" error.

Parse error: parse error, unexpected '<' in /home/cypressr/public_html/templates_c/^default^user^%%29^291^29105299%%layout.tpl.php.ph p on line 176


The code that I'm trying to insert is

<?php @include("http://cypressresale.com/v-web/vzpoll/poll.php");?>

no <?php and ?> are needed.

just do


Code:

{php}
include("http://cypressresale.com/v-web/vzpoll/poll.php");
{php}


Scooter 08-15-2006 09:27 AM

That didn't work. All it did was place this text on the screen:

include("http://cypressresale.com/v-web/vzpoll/poll.php");

Lhotch 08-15-2006 10:00 AM

detrate forgot the slash in the closing php tage, do you have it like this...

{php}
include("http://cypressresale.com/v-web/vzpoll/poll.php");
{/php}

Scooter 08-15-2006 11:36 AM

Thanks for all of your help (both of you). It worked!

GSP 08-30-2006 07:53 AM

Hello,

Hoping that since Kevin was helped a while back someone might offer up a suggestion for me on this similar issue.

On the admin side of this same polling script and after creating a poll you can click on a Code button to see 3 variations of code to input into the layout. The first is Javascript and works fine however when you try to use the poll and click on the Vote or Results link it directs you to a Page Cannot Be Found screen so I�d like to try the other 2 to see if it will resolve this issue.

The other 2 are similar to the one Kevin was enquiring about but probably due to different version numbers of the polling script they have since changed to be slightly different. I�ve tried all suggestions posted above only using these 2 codes and also tried the exact same code suggested above but to no avail. I simply can�t get these php codes to produce a poll on my site, nothing appears. Any suggestions on this would be greatly appreciated. The codes I was given are as follows:

include("./vzpoll/config.inc.php");
include("./vzpoll/show.inc");


All times are GMT -4. The time now is 01:59 AM.

Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.