Drupal is up and running but how do I ...?

hook to run installation code

Various modules have SQL to run at installation time. If Drupal had a hook that is run when you switch on a module in administer > settings, the module's code could look for the table and run the SQL if the table is missing.

Limit Ad Units to prevent Breaking Adsense TOS

I have modified the phptemplate node.tpl.php to include adsense per every node, at the top of each node.

However on term feeds, and the home page if I go into Admin->content->configure
Theres the option to have up to 30 Pages

Now if 30 nodes are selected per page, that means that there will end up being 30 units of adsense code,

Currently I have only 3 Units Displayed but is there a way to display 10 or more nodes with only 3 units of adsense in the source code. While maintaining the adsense code in each individual node

Make the Public Download Method Work

I would like to make the public download method work and can't seem to get it.

My Drupal Setup:

Drupal 4.6.3
-- Clean URLs enabled
-- Public Download Method
filemanager.module
attachment.module

How do I remove an item from the Amazon block?

I accidently pasted the wrong ASIN number, and now I'm stuck with a book that is completely unrelated to what I wanted.

I removed the node which had that book on it, but the "we recommend" block still displays those items.

Any ideas?

Other than that, it's a very cool module!

How do I ... make modules work?

All,

I'm sure this easy to figure out, but a couple of hours searching through the drupal.org resources (handbooks, forums, etc) hasn't gotten me there.

Disallow to add to a root flexinode entry

Hi,

Im using flexinode in my development website and have encountered the following problem.
Suppose I have the following categories setup

A
- A1 category
- A2 category
B
- B1 category

the flexinode/add/ page renderes the above categories. I would like a user to only add comments to
the "child" categories and not the root, .i.e. not in A or B but in A1, A2 or B1. After reading most postings
on flexinode I could not find any reference to this. Has anyone encountered this problem before?

Thanks
/Alex

Pages

Subscribe with RSS Subscribe to RSS - Post installation