[pLog-svn] New Plugin [Crystal Poll]

Ahmad Saleh ahmadfds at gmail.com
Tue Jan 29 05:25:49 EST 2008


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/20080129/76875daf/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crystalpoll.zip
Type: application/zip
Size: 32993 bytes
Desc: not available
Url : http://limedaley.com/pipermail/plog-svn/attachments/20080129/76875daf/attachment-0001.zip 


More information about the pLog-svn mailing list