Maybe this is not the right question - so i wil llikely end up posting this a couple times here.
=================

What do i do to have a module put a piece HTML code ONCE into my page ?

I was trying to use hook_nodeapi which sort of works.. except that my page has 3 nodes on it.. therefore it was doing this 3 times... which in FF it didn't seem to be an issue (not sure why not.. likely it was doing it but other 2 copies were buried).. but they show up in IE.

the html i am adding doesn't really matter where it goes - since it is a DIV with absolute postioning... but would be nice if i could get it to go in the body

I read that i could use hook_menu and that sort of works in FF but, again, not very well in IE... and makes ugly HTML since it throws my html before html

Comments

liquidcms’s picture

Maybe this is not the right question - so i will likely end up posting this a couple times here.
=================

What do i do to have a module put a piece HTML code ONCE into my page ?

I was trying to use hook_nodeapi which sort of works.. except that my page has 3 nodes on it.. therefore it was doing this 3 times... which in FF it didn't seem to be an issue (not sure why not.. likely it was doing it but other 2 copies were buried).. but they show up in IE.

the html i am adding doesn't really matter where it goes - since it is a DIV with absolute postioning... but would be nice if i could get it to go in the html body.

I read that i could use hook_menu and that sort of works in FF but, again, not very well in IE... and makes ugly HTML since it throws my html before the html tag.

but perhaps i am not using hook_menu correctly???

liquidcms’s picture

i think somehow i have gotten this post to be in BOLD... and everything is stuck that way now.. too cool...

perhaps a bit of a bug with the comment parser???

heine’s picture

Post code between <code> or php-tags or you'll get a big tagsoup (here, an unclosed <b> or <strong>)

Examples:

<a href="http://drupal.org">Drupal.org</a>
  global $user;
  if ($user->uid) {
    // Authenticated user
  }

As you can see, the latter gives nice coloring.

--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.

liquidcms’s picture

but will repost to clean this up.. lol...