[pLog-svn] New Plugin [Crystal Poll]
Mark Wu
markplace at gmail.com
Tue Jan 29 04:59:49 EST 2008
Hi Ahmad:
It looks pretty nice. But, there still some issues, most of them are "url"
issue.
It only works in native url, but not other (mod_rewtire, custom, pretty)
url.
1. in newpoll.template
The javascript including should change to
<script type="text/javascript"
src="{$url->getUrl("/1.2/plugins/crystalpoll/js/choices.js")}"></script>
2. in plugincrystalpoll.class.php, the javascript including should change to
function getHtmlPoll()
{
$rg = $this->blogInfo->getBlogRequestGenerator();
echo '
<div id="crystalPoll"></div>
<script type="text/javascript">var
pollBaseUrl="'.$rg->getBaseUrl().'";</script>
<script type="text/javascript"
src="'.$rg->getUrl('/plugins/crystalpoll/js/crystalPollAjax.js').'"></script
>
<script type="text/javascript">readPollAjax();</script>
';
}
3. in crystalPollAjax.js , the javascript including should change to
xmlHttp.open("GET", pollBaseUrl + "/index.php?op=xxxx.......", true);
Then, this plugin should works for all url mode.
Mark
_____
From: plog-svn-bounces at devel.lifetype.net
[mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Ahmad Saleh
Sent: Tuesday, January 29, 2008 5:13 PM
To: LifeType Developer List
Subject: [pLog-svn] New Plugin [Crystal Poll]
Hi guys
I've finished the new poll plugin, and fixed the dynamic plugins issue by
using Ajax.
Cheers,
Ahmad
--
Ahmad Fathi Saleh
http://ahmad.jopdc.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://limedaley.com/pipermail/plog-svn/attachments/20080129/4cd4dfd3/attachment.htm
More information about the pLog-svn
mailing list