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

Display Authoring Information and Title

Hi. The question of displaying the authoring information (submitted by user on date) and / or title of the post has been asked sometimes in this forum. I want to be able to toggle this for some posts, which could be of any type, including flexinode. Below is the approach I am following for Drupal 4.5.2; since I alter core functionality (table node, node.module and some theme files) I don't recommend it to anybody. I set two new variables for any node, showcreated and showauthor. It works perfectly for page or image node types. If somebody wants to follow this way and has any question, please feel free to ask me. My point is, I want to follow a similar approach to display the title of the post, if possible WITHOUT making an extra call to the database. The Title is set using the function themewhatever_page($content, $title = NULL, $breadcrumb = NULL); please could somebody tell me how to extract additional node fields (like a hypothetical "node.showtitle") in it? Thanks.

database

ALTER TABLE {node} ADD showauthor int(2) NOT NULL default '1';
ALTER TABLE {node} ADD showcreated int(2) NOT NULL default '1';

node.module

function node_validate($node)
// Under:
// Validate for normal users:
+ $node->showauthor = variable_get("node_showauthor_$node->type", 1);
+ $node->showcreated = variable_get("node_showcreated_$node->type", 1);

passing variables to self written modules

Hi,
I need to pass a variable like http://www.drupal.org?x=2&y=4 to a module which i am writing. My Drupal installation has clean urls enabeled.
Question: what is the right way to do this?

Searching in this forum gave me the hint that it is possible to do something like:

http://localhost/drupal/foo&url=http://www.drupal.org?x=2&y=4

and then get the passed variable via $_GET["url"]

Developpment of a new Form Module

Hello to everybody,

How to flexinode tabular view with serialized data

Hi! guys I'm new to drupal and I'm trying to make my own flexinode content type.. and I'm storing some information on serialized_data in the flexinode_data table

is there any easy way to show some information from the serialized_data field from the tabular view?

any tips on how to approach this would be nice ! thanks!

Use Imagemagick with 4.6.0rc and new image.module

I am trying to figure out how to use new image.module from CVS with the 4.6 rc. From what I can understand the default image handling software for this set up is the GD_toolkit. Right now this isn't installed on my servers, but Imagemagick is. All of my other PHP scripts on mysites already use Imagemagick, so I would rather not switch over to GD. So....How do I use Imagemagick with the new image.module. There is a file called image.imagemagick.inc in the image module directory, but I can't figure out how it affects my set up.

Organic Groups and 4.6

Hello Moshe (and others). What is the game plan for Organic Groups in Drupal 4.6? Has the functionality been incorporated into the core, or de we need to wait for the OG 4.5 module to be updated for 4.6? Thx,

Donovan.

Pages

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