[pLog-svn] New Plugin [Crystal Poll]
Mark Wu
markplace at gmail.com
Wed Jan 30 04:08:36 EST 2008
Hi Ahmad:
Thanks, :)
Can I check it in to plugins repository?
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 6:26 PM
To: LifeType Developer List
Subject: Re: [pLog-svn] New Plugin [Crystal Poll]
Thanks Mark,
I've fixed it. :)
Regards,
Ahmad
On Jan 29, 2008 11:59 AM, Mark Wu <markplace at gmail.com> wrote:
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
_______________________________________________
pLog-svn mailing list
pLog-svn at devel.lifetype.net
http://limedaley.com/mailman/listinfo/plog-svn
--
Ahmad Fathi Saleh
http://ahmad.jopdc.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://limedaley.com/pipermail/plog-svn/attachments/20080130/b82ca53a/attachment.htm
More information about the pLog-svn
mailing list