NewsFeaturesDownloadsDevelopmentSupportAbout Us
Plugin plogpoll

Plugin plogpoll

From LifeType Wiki


Name: pLogPoll

Latest version: v0.1.1

Download link: http://prdownloads.sourceforge.net/lifetype/1.0_plogpoll.zip?download (for LifeType 1.0.x) http://prdownloads.sourceforge.net/lifetype/1.1_plogpoll.zip?download (for LifeType 1.1.x)

License: LGPL

Author: Matt Wood

[edit] Description

pLogPoll was designed to allow a BlogOwner to publish a poll to his main page and recieve user feedback.

This plugin is fully supported in the pLog Administrator/Blog User Interface and allows one to simply add a poll, view statistics about the poll and delete them. Other "gems" include IP tracking in an attempt to disallow multiple votes from single people and an easy to modify look and feel.


[edit] Configuration

Template code as follows:

for 1.0

{if $plogpoll neq ""}
 <div class="sidetitle">LSNet Poll&lt/div>
 <div class="side">
  {assign var=blogid value=$blog->getId()}
  {$plogpoll->generateActivePollHTML($blogid)}
 </div>
{/if} 

for 1.1

{if $plogpoll neq ""}
 <div class="sidetitle">LSNet Poll </div>
 <div class="side">
{assign var=blogid value=$blog->getId()}
{insert name="getPlogPollHtml" pollvar=$plogpoll pollid=$blogid}
 </div>
{/if}

Look and feel customization goes something like this...

#pollbody {
 color: #99CCFF;
 text-align:center;
 font-size:x-small;
 background:#336699;
 padding: 1px;
 border: 1px dashed black;
}
                                                                              
#pollbody th{
 text-align:center;
 padding: 0px;
 background:#225588;
}
                                                                              
#pollbody td{
 padding: 0px;
 text-align: left;
}
                                                                               
#pollbody div{
 color: white;
}  

[edit] Notes

Will not show statistics immeditely after a vote if caching enabled, but votes will not be counted twice. Turn off caching for this to take effect.