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

How to insert Google AdSense in nodes?

Hi,

I have tried everything possible to try to find a way to insert the Google AdSense code:

if (module_exist("adsense"))
{
 print adsense_display("120x600", 2, 4);
}

In my nodes, under the links, and didn't find any way to achieve it. I am using the BlueMarine template, so it is a .xtmpl and I do not want the AdSense in the trimmed versions. Can somebody help?

Thanks you,

I am also using the latest upgrade of the Google AdSense module.

Charles

any webhosting modules out there?

Drupal is an awesome very clean cut content system. I prefer it to many others just for it's basic install layout.

I wish I knew how to write php code. I have an idea and if anyone can do it it probably would be a great asset to the drupal.org community. What if there was a webhosting module? So that users can signup and then have their own directory like http://drupal.org/yourusernamehere ? plus a hosting control panel for the admins to limit the bandwidth or space that could be offered?

Workign with the survey module + uploading files

I have just been getting stuck into the survey module. I created a nice form so that users on my site could submit articles by upload as an alternative to the usual 'type and submit' on one of the content nodes.

The reason for this alternative is, and I'm sure many of you will have had the same problem, because copying and pasting an MS Word file (which most users on my site use to compose their texts) onto one of the WYSISYG editors is like splitting an atom.

Anyway this is what the form looks like:

How to upload without using /tmp

Hello,
Everytime I try to upload an image (or anything else), I get the following error:

module taxonomy_block install prob: user error: Table 'drupal.taxonomy_block' doesn't exist

Hi from a newbie to Drupal 4.6.2 Hope this is the right forum to post this.

I am just having a first go with the taxonomy modules. The taxonomy_block-4.6.0.tar.gz module is giving me this error:

user error: Table 'drupal.taxonomy_block' doesn't exist
query: SELECT * FROM taxonomy_block in /var/www/htdocs/includes/database.mysql.inc on line 66.

This happens when updating http://localhost/admin/block
but the update has been done. (enable quotes and a taxonomy based block)

Form usage in modules, How ?

Hi There, i'm new member to the community. First of all i'd like to say that drupal and her surrounding community are great.
I searched the forums and the developer handbooks for a solution. But i could not find an answer to my question.

my Question:

Is there a simple tutorial or a code example which explains how forms work indside a module ? So how to setup a form an how to pass the variables en how to get the variables and use them.

I know how to do this in normal PHP, but i would like to know how it is done in drupal modules.

Pages

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