This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Confused about filters and caching for flash - need to add javascript to every page

I think I might be asking something is already answered, but I'm getting confused by the posts that I've read and it's late in the day!

I am working on a node to create and insert flash content using an input filter (example).

I have written an input filter in the form [flash|nid=xx|parameters...]. My filter generates the necessary HTML to inject flash using the ufo method. I have realised that Drupal is caching my filter, which is fine, but my original code relied on the generation of the HTML to inject the relevant javascript in to the <head> of the page.

When it calls the filter output from the cache my generation routine is skipped, the injection doesn't occur, so the flash fails.

My first option was to hard code the script in to the template, but I want a more flexible solution that is template independent.

As far as I can tell there is no way (?) to determine whether the flash input filter is being used on a given page (or am I wrong?) so I need to inject the javascript to every page just in case.

If that's the case then I thought I would use hook_footer, but that wasn't right.

I have found a post that describes the use of hook_menu, so I think I need something like...

privatemsg module - direct link to page

Hi there

Do you know what URL I should use to link to the 'send message to user nnnn' page? If one exists?

e.g. /privatemsg/send/4 where this would bring up the page to send a message to user number 4?

Thanks

Global Internet School

"Education is the engine of development. Communication is
the fuel that creates friendship, understanding and respect."

In line with your country's national curriculum, the United Nations Convention of the Child § 13, 14 and 17, and the Human Rights Declaration § 26, that has been signed by 155 countries concludes that everybody has the right to education as well as students should be offered to perform tasks through international cooperation.

I'm founder and projectleader for something called Globes. I have a vision, that also was nominated by UN for best poverty reduction idea. I want to create a global internet school where everybody on this planet get the opportunity to education and international cooperation, it will allow students in all countries around the world to work together in order to increase tolerance, understanding and friendship among all nations. I also believe that we will be a good complementary for existing schools . This is communicaring and will take education to new levels!

I have like 50+ pages of functions, plans, photoshop screenshots, presentations speeches, etc. Everything almost; of how everything will be like when it's 100%. I have three venturecapital sources that already are intrested but I have turned them down, I don't want this to become commercial in any kind, this is not business this is almost spirtual :D I have created a foundation there are not lots of money but there are some...

How to work with Database

Hi everyone, I'm new to the forums. I've been trying to go through all of the documentation on Drupal to figure out how to create my own modules. First off, let me just say that Drupal is the best CMS system I've ever had to work with. From the installation to it's API. A million times better than Joomla.

CVS Access denied

I have a cvs account and wish to load two modules I just developed. I get a confirmation email from last august, but I can't get logged in ... who can help me?

Thanks

accessing files from upload module

Hello,

I'm about to start writing a module that reads and parses in XML data from an uploaded file, then saves certain data from the XML file into a DB table.

I have all the pieces I need except for how I'm going to interact with the upload module when the node is created and the file is uploaded. Are there any hooks that I can use to access the uploaded file or is it best to use hook_insert, look up the filename, and open it from there?

What is the best way to go about this?

Thanks,
-mike

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions