Page 1 of 1

Uberwach plugin

Posted: Sun Nov 04, 2007 4:19 pm
by ads
Hello all,

i wrote a small plugin to show the UBERWACH! icon from
http://www.uberwach.de/

Maybe the same thing can be reached with the HTML Nugget plugin but i run into trouble with the javascript code.

The plugin can be found at:
http://base.wars-nicht.de/projects/serendipity/

See it working at:
http://andreas.scherbaum.la/blog/archiv ... ipity.html

Re: Uberwach plugin

Posted: Mon Nov 05, 2007 10:07 am
by garvinhicking
Hi!

This definitely can be solved with the html nugget problem. Into which problems did you run? Make sure to disable the "Allow markup plugins" option for html nuggets with JS.

Regards,
Garvin

Posted: Mon Nov 05, 2007 10:23 am
by ads
Yes, this option was disabled and i added the whole source into the input box after switching the box itself to sourcecode view.

Problem was, it never showed up on the website. The code was there in the page source but i got no image, no javascript error and my proxy log told me, that no image was requested from the project website.
After digging a while around, i just copied the source into a new module and this worked out of the box.

Posted: Mon Nov 05, 2007 12:48 pm
by garvinhicking
Hi!

If you use the WYSIWYG editor, you need to disable that (via personal perferences) completely. Switching it to sourcecode view does not suffice, because it strips parts of the javascript, which might have been your problem. Or was the whole, proper javascript code really there?

Regards,
Garvin

Posted: Mon Nov 05, 2007 1:11 pm
by ads
Yeah, but i don't like to change config all the time just for edit some stuff.

I think, the whole Javascript was written into the page, at least i could not find a difference to the original code. But it did not work.
I stopped searching for an error because i also assumed that it was a problem with the rich text editor. The small plugin was coded quicker and nobody has to fiddle around with encoding or stripping problems.