Help needed with MOS thumb bot I'm trying to improve my MOS Thumb bot for Mambo 4.5.1 and therefore i have to include a Javascript section.
I was looking for some way to plug into the header, but mainframe functions are only designated for Meta Tags.
So i decided to just output the JS together with the replacement of the {mosimage}-tag.
To prevent that it is printed before each image i registered a parameter with $params->set, when it was printed first time. On the second replacement on a page it then would not be printed, because i check if the parameter is set.
Unfortunately it does not work together with the MOS Pagination Mambot, on the second page of a content item the JS is not printed.
Does anybody have an idea how i could do this? How can i plug a Javascript into the template, so that is always available, but without having to tell
users to modify the templates? |