OK I've been playing around with the Site Poll add-on for the Poll Mod and have incorporated it in my Portal page using the Portal Mods code for drawing tables. I've commented out the edit/lock/delete buttons too.
At the moment I've got it sitting below the Centre Content display because it displays the 'Results' (bar graph and stats) for Members who have voted .. and this is the only spot it will fit as it fills a large space.
What I would like to do is move it over to the left column which is 170px wide and therefore want the table to display the following:
If you have not voted ... then list the vote options (it is doing this now)
If you have voted ... a "thank you for voting" message and view results button which will open a small popup window with the results .. instead of going to the topic in the forum.
Anyone able to help with this?
Here is a link to my site to see how it is working now:
http://www.cashbackaustralia.com/
And here's a link to a text version of my site_poll.asp
http://www.cashbackaustralia.com/site_poll.txt
Here's the code in portal.asp if anyone is interested too:
'CENTRE CONTENT
Response.Write " <td width=""100%"" valign=""top"">"
if lContentID > 0 and lCategoryID > 0 then
call DisplayContentItem(lContentID, lCategoryID)
elseif lCategoryID > 0 then
call ListCategoryItems(lCategoryID)
elseif lContentID > 0 then
call DisplayContentItem(lContentID, "")
elseif Request.Form("Method_Type") = "Search" then
call SearchResults(sSearchTerm)
else 'must be home page so show default text
if IsNumeric(strCMSDefaultCID) then
call DisplayContentItem(strCMSDefaultCID, "")
else
call NoContent()
end if
end if
call StartTable("100%","Featured Poll")
%>
<!--#INCLUDE FILE="site_poll.asp"-->
<%
endTable
Response.Write " </td>"
Thank you very much.