Posted by Kamal
2013-11-03

i put the poll and its working perfect, i change the design of it according to my page design,layout,and color from these two pages: "tpl.front.inc.php" & "tpl.result.inc.php", Now i want to put the same poll with the same result on the same time on another page in the website, but with different design, how do i make two different design for the same poll on the different pages?
Posted by Tom
2013-11-03

A formal solution should be passing the template name from a poll's div tag to the script but it takes a considerable amount of coding effort. So, here is an ad-hoc method! In a template, conditionally display html by checking the browser's referrer ( $_SERVER['HTTP_REFERER'] ).