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

Callback executing multiple times for one page view

Hi,

Has anyone else seen a callback in a module executing multiple times for a single page view?

In the call back routine, just to debug, I open a text file with lock on the server and print a line with current timestamp in it and then close it. Instead of one line per page-view (www.drupal.site/lookup/test) I see three lines with same timestamp... sometimes spaced by 1-2 seconds.

Any ideas? Why is drupal executing the code three times? Please see the code snippet below.....

Thanks in advance,

Is it possible to enable/disable form fields in a node based on user's choices higher up in that same form?

Here is the example I'm trying to work on. I'd like to build a website for reviewing various things like movies, music, etc. And I'm seperating out "discussion (which may contain spoilers)" from "reviews (which may not contain spoilers)" from "items (which the reviews and discussion are based on). My thought was to have 3 node types, one for each of them. And then some stuff to link them all together. My thought is that the "items" can be one of many various things like "music, movies, etc"...which brings me to the senario i'm stuck on:

node_lodae problems

I am working on a module and can't figure out how to display the page for a path.

If the path is of the type node/%d, then I can use node_load and everything is fine.
But, if the path is anything other than node such as forum/%d then load_noad doesn't work.

How do I load a page using a path where paths like:
forum/01 , og/ etc will work?

I can not simply use drupal_goto as I am adding elements to the returned page.

add event nodes to simplenews upon creation

I need to link created events to simplenews such that when the events are saved, I'll be able to see them under the simplenews draft. Now, what I am planning to do is to save extra node for that event with type 'simplenews' then call simplenews_insert($node)

but I do not know how to save extra nodes. Should I call node_save($node)?
Has any body done this before?

CSS Module

Hello all Drupal Persons and whoever is in charge of the themes module,

I see a burning need for a CSS module. Making CSS easier to administer will expand Drupal's user base.

The idea is simple. Drupal is db driven, so why shouldn't the CSS be in the db? Makes it easier to edit and maintain. An obtuse hand-edited flat-file is well, obtuse.

The basic table:

+-----------------------------------------+
| CSS_name_of_theme |
+-------+------+----------+-------+-------+
| Group | Name | CSSorder | Style | Notes |
+-------+------+----------+-------+-------+

Where:
Group is classification like "Drupal Theme", "HTML", "Aggregator Module", etc. (Yes, a human would have to set up Bluemarine, Marvin, Chameleon, and Pushbutton -- but other CSS files could simply be read in, ignoring Group; the user would then edit Group)
Name is what it is all about: "body", ".block, .box", "#aggregator h3", etc.
CSSorder is an integer that indicates where it is written into the actual stylesheet (the order is important).
Style is "margin: 0;", "padding: 0.3em;", etc.
Notes is just that. Notes.

OK, so how would it work?
You would get into admin mode, and click on administer -> themes.
Once you are on the admin/themes page, you would see the tabs "list", "configure", and a new tab "css".

If you click on the "css" tab, it opens a page that looks somewhat like a cross between the admin/log and admin/menu pages. It has the Group, Name, and CSSorder for the theme displayed, and it can be sorted by Group, Name, CSSorder (the way admin/log can be sorted). You can find what you are looking for fast.

Error in Pdfview module

Hi

I have a problem with the Pdfview module that I can't track.

I get the error:

Fatal error: pdfview_node(): Failed opening required 'modules/pdfview/tcpdf/tcpdf.php' (include_path='.:/usr/local/lib/php') in /.../bsftest2/modules/pdfview/pdfview.module on line 91

All files it call is at the right position I'm using an ISP so I don't know where all system files are

My purpose is to present a magazine that are, in pdf, to members

Pages

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