Uberwach plugin

Creating and modifying plugins.
Post Reply
ads
Regular
Posts: 93
Joined: Sun Oct 29, 2006 11:39 am

Uberwach plugin

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Uberwach plugin

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ads
Regular
Posts: 93
Joined: Sun Oct 29, 2006 11:39 am

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ads
Regular
Posts: 93
Joined: Sun Oct 29, 2006 11:39 am

Post 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.
Post Reply