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

Paging woes

Posting to module development because I'm willing to fix it if it's broken...

I am just evaluating drupal, playing around. I wanted to have long articles page and found I needed the paging module, at least it seemed so if i want to control the breaks with

But it doesn't work for me. I've set everything I'm certain after reading other posts, there are a few different places to set I realize.

Pager without pager_query

Hi,

I want to use the pager without a database, actually I use an SOAP result.

Can someone give my a hint, how I can use it?

I suppose, I have to use the pager theme:

$output .= theme('pager', NULL, 20, 0);

But how can I set the missing variables? Can I use the drupal pager without database?

Ciao Alex...

Using Regex to Valid field input values

Hello all,

I am wondering if it is possible to validate certain field values using regex. If so where might I look to edit or add them? I want to validate the profile inputs so that they use regex to determine the value entered is 2 characters followed by numbers. I already have the regex I just need to find a way to use it. Is there a validation module or anything like that?

Ex Correct value for input box (MK33455) Incorrect Value for input box ( SDE333) // note the 3 chars

Thanks

Sean

AdSense API

deal all
i found this link
http://code.google.com/apis/adsense/
which might be of more interest for drupaler coders to implement it into the adsense module in drupal
it would be wonderful if this happened
as it's mentioned on the google code page:

Getting node type from nid without access to $node array

I'm sure it's something simple, but I'm failing to find a way to use the nid to get the node type when I don't have access to the $node array. I'm using hook_comment to insert some stuff into the comment form, but I only want it to show up if I've checked the "use thingy for this content type" checkbox in the workflow section for that node type. Sadly, the $a1 array that gets passed into the form case in hook_comment doesn't contain the node type of the node that's being commented on, but it does contain the nid.

Thanks,

Doug Gough

button to change node status

hi, i've written a module that, when a node is published send a mail to my mail address and tells me that a node has been posted.
i've done a node/module that i will use for my scope and, once the node is submitted, set it to unpublished (by default). i've done this using node->submit (in my module) and, here, i've set the $node->status = 0 (node unpublished).
So, now, to publish this node, i've created a form button (declared in template.tpl and called in node.tpl) that set the node->status to 1 (node published), using a query like this:

Pages

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