Polling Mod

Poll mod re_done, on the last page.

Looks good Zardos, post your mod and instructions when you have time…

another nice mod. i can’t wait to see what is out with .4 =)

New poll mod done, on last page



that is a great mod, i never though of that: yes, this

is definately a feature that had to be in here yes!!

thanks zardos, i will use it in the future. great work!



i hope sno can add it to the $800±list :slight_smile:

Hi nwsco



Thanks, if you can see any way to improve on it nwsco feel free M8.

i cant top that m8!

Great mod! Thanks for sharing!

Ditto!!!:smiley:


Improvements todo:

Only vote once per IP - I can now vote how many times I feel like by refreshing page.

Once voted always show the results until next poll

Integrate into admin panel properly - if you know how



That’s what I can think of atm.

Hi Zyles



To prevent visitors voting more than once,



change...

var useCookiesToRememberCastedVotes = false;

to...

var useCookiesToRememberCastedVotes = true;




That will also keep the votes on the screen.

Hi, all, I got these errors below:[QUOTE]Warning: require_once(poller/db.php) [function.require-once]: failed to open stream: No such file or directory in /data/htdocs/var/compiled/customer/%%A9^A96^A96FD0F9%%poll.tpl.php on line 11



Fatal error: require_once() [function.require]: Failed opening required ‘poller/db.php’ (include_path=‘/data/htdocs/classes/pear:.:/opt/php/lib/php’) in /data/htdocs/var/compiled/customer/%%A9^A96^A96FD0F9%%poll.tpl.php on line 11[/QUOTE]



pls help to resolve. thanks so much!

hi, zadors:



I am just a newbie for php code, could u pls tell me how to operate this [QUOTE]11. If you are using v1.3.3,



Replace the DOCTYPE with



Add…


[/QUOTE]

I dunno where to replace the DOCTYPE.

For the step 7, just add a .htacess file to "dir/poller1/admin directory" is enought? What's the mean for "update database connection info in db.php" ?

Looking forward for ur reply, and many many thanks.

Michael

Hi michael



customer/index.tpl



Comment out this line


[COLOR=Red]{*[/COLOR][COLOR=Red]*}[/COLOR]


And add this line under it

```php


```



db.php info is (“DB-username”, “DB-password” “db-name”)

hi,zados,



Thanks for ur timely reply, very appreciate. Got a new problem:[QUOTE]Warning: require_once(poller/db.php) [function.require-once]: failed to open stream: No such file or directory in /data/htdocs/var/compiled/customer/%%A9^A96^A96FD0F9%%poll.tpl.php on line 11



Fatal error: require_once() [function.require]: Failed opening required ‘poller/db.php’ (include_path=‘/data/htdocs/classes/pear:.:/opt/php/lib/php’) in /data/htdocs/var/compiled/customer/%%A9^A96^A96FD0F9%%poll.tpl.php on line 11[/QUOTE]



Hope u can help me ,thanks again.



Michael

Hi michael



You must enter your information in both the (setup.php) and (db.php) then run the setup.php from you browser. It needs to create a table in order to work.

Ok I got it all installed and it seems to work at least the admin side but as soon as I add {include file="poll/poll.tpl"} to my main.tpl site gets all out of wack. Any ideas? I tried putting it right under



{include file="side_boxes/categories.tpl"}
{include file="side_boxes/site_info.tpl"}
{include file="addons/manufacturers/sidebox_manufacturers.tpl"}
{if $settings.Modules.bestsellers == 'Y'}
{include file="addons/bestsellers/sidebox.tpl"}
{/if}
{include file="poll/poll.tpl"}




Like that but as soon as I do bestseller is the last thing to load and the reset of the page gets all messed up. Any ideas?

Hi vortech



What temple are you using, i think i did this using the lite templates.



{/capture}
{include file="common_templates/sidebox_rt.tpl" title=$lang.ajax_poll content=$smarty.capture.sidebox}




Check this with the skin you are using.

Using Default Red for the front end.



Whats that code do, not sure where to put that or if you were just showing me something. lol

Replace it with your include from your sideboxes