Loki & imagefeed error

18 views
Skip to first unread message

Pablo Castillo

unread,
Jan 15, 2009, 3:04:23 PM1/15/09
to loki-in...@googlegroups.com
As attached in the image, i give it an image feed (also attached) but the page counter go nuts and no image is displayed.

Any cause for this? or how to solve the problem?


Im calling the wysiwyg this way:

    <script src="loki/loki.js" type="text/javascript"></script>
    <script type="text/javascript">
        // Change all textareas that have the "loki" class to Loki rich-text
        // editors with power-user features:
        Loki.convert_textareas_by_class("wysiwyg", {options: "power","images_feed": "/imagenes.rss"});
    </script>

Ideas?


Pablito
http://pablo.lnxsoluciones.com/
http://twitter.com/pabloacastillo
"La libertad, Sancho, es uno de los más preciosos dones que a los hombres dieron los Cielos; con ella no pueden igualarse los tesoros que encierra la tierra ni el mar encubre; por la libertad, así como por la honra, se puede y debe aventurar la vida..."


Error_Loki_imagefeed.png
imagenes.rss

Nate

unread,
Jan 16, 2009, 11:30:32 AM1/16/09
to Loki Installers
Hi Pablo - the loki image feed requests the same feed repeatedly until
it returns no results. It attempts to load up to 500 items with a
single request. If you use a firefox extension like http headers you
can watch the requests that loki makes. It sends a request variable
"start" which indicates how many items have already been loaded. If
instead of referencing image.rss directly, you reference a file that
produces an rss feed, you can compare the start value sent by loki to
the number of items you have in the feed, and return an empty feed
after all the items have loaded. That should stop loki from loading
continuously.

I don't think that the feed integration is very well documented at
this point, and it should be more flexible in future versions, but
hopefully the above will help you.

Nate

On Jan 15, 2:04 pm, "Pablo Castillo" <pabloacasti...@gmail.com> wrote:
> As attached in the image, i give it an image feed (also attached) but the
> page counter go nuts and no image is displayed.
>
> Any cause for this? or how to solve the problem?
>
> Im calling the wysiwyg this way:
>
>     <script src="loki/loki.js" type="text/javascript"></script>
>     <script type="text/javascript">
>         // Change all textareas that have the "loki" class to Loki rich-text
>         // editors with power-user features:
>         Loki.convert_textareas_by_class("wysiwyg", {options:
> "power","images_feed": "/imagenes.rss"});
>     </script>
>
> Ideas?
>
> Pablitohttp://pablo.lnxsoluciones.com/http://twitter.com/pabloacastillo
> "La libertad, Sancho, es uno de los más preciosos dones que a los hombres
> dieron los Cielos; con ella no pueden igualarse los tesoros que encierra la
> tierra ni el mar encubre; por la libertad, así como por la honra, se puede y
> debe aventurar la vida..."
>
>  Error_Loki_imagefeed.png
> 241KViewDownload
>
>  imagenes.rss
> 1KViewDownload
Reply all
Reply to author
Forward
0 new messages