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

body onload()

Please help me with the following.

My module needs to be able to add
onload = "function(data)"
to the
body
tag, regardless of the theme used. Which hook and how shall I use ??
For this, of course, I need my module to be able to add a script link to the <head> section of the page, also regardless of the theme used. I noticed there is this $script variable used by theme templates, however I could not (as usually ;) find the place, where this var is generated, and which hook I shuold use to add something to it.

I can't tell tell if fileshare or fileview are working

I am trying to find a reasonable way to upload/store/download files with drupal 5.0.

I downloaded, installed, and enabled: filebrowse, fileshare, and fileview.

Filebrowse works, although it is unintuitive and clunky. It doesn't create a menu, even for the admin. But it does, at least, work - and it does have a readme.txt.

As for fileshare and fileview; I can not tell the difference if these modules are enabled, or not. I don't see any menu item for either of these. I don't see where they add any functiionality.

"Browse archive" disapeared, in 5.0. Can I get it back?

I had the calendar module working the way I wanted. I had the "Browse Archive" calendar displayed.

Then it dissapeared. I did not change any of the block settings, or view settings. I did, however, add some new modules: fileshare and filebrowse.

The block is still there, only now there is only a header that reads "February 2007" there is no calendar underneth that.

I am using the "Golden Hour" theme.

How do I get a variable (the transaction ID from ecommerce PayPal Module) for use in hooked in module(pay-per-node)

Hi,
I'm sheepishly trying to hack my way out of a bug when using the ecommerce paypal module with the pay-per-node module.

I need to get the transaction ID that is returned to ecommerce for use in the pay-per-node module, so I can do a quick database querry to get the UID for the user submitting the order, as the global $user doesn't seem to be set with the IPN happens via paypal, I suspect because of the leaving of the site to go to paypal for the time being.

Regardless, I'm trying to figure out how I can access to that value.

From the paypal.module, the function paypal_ipn() sets the value thusly:

        $txnid = substr($value, strlen('txnid_'));

I need access to this value in the pay-per-node modules paypernode_productapi function, specifically in:

    case 'on payment completion':

The paypernode_productapi does not appear to take as an argument anything useful for this, here's the decleration:

function paypernode_productapi(&$node, $op, $a3 = null, $a4 = null) {

But, I have to admit, I'm a bit fuzzy on how this whole module hooking into another module thing works, so I'm not really sure from where this function actually gets declared and called.

When creating a custom node using Form API - How do I hide Node Fields/field sets that I did not want to appear on input form

I created a custom node after reading the documentation and I have several fields being displayed that I did not put in the hook form. I am using 5.0.

Those fields include: Log message, URL Path Settings, Comment Settings, Authoring Information, Publishing Options and Preview.

How can I hide these fields and field groups from displaying in the input form for my custom node? Also I may want to do this in a multi-step form is this possible?

Thanks in advance

switch off FCK in the Contact Form

Hi everybody,

Is there a way to switch off the FCK-Editor in the Contact Form (/user/1/contact)?

I`ve nothing found about that in the DyupalSystem and the Forum.

Has anyone an idea?

regards
Helge

Pages

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