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

Custom Redirect After Adding a Node

Okay, so I have created a custom content type. Rather than redirecting to "node/node id" after you create a node, I need to make it redirect to another location, but I still need to include include the node id in the new redirect location.

The following attempts didn't work because the hooks are called before the node is actually created and assigned an id.

Chatroom Anyone?

I've looked over previous posts on this subject and I can't come up with a concrete answer to my problem. Can anyone help?? I really need some kind of chatroom on my site. What is the best way to create one?? I tried the chatroom module and I get all kinds of error messages. I also attempted the phpFreeChat and nothing opens after I install. I hear there is a way to fix the errors inside the chatroom module...how do I go about correcting these errors? Let me remind you I'm a beginner at DBA. I'm controlling my DBs through phpAdmin. How do I correct the lines through phpAdmin?

Chatroom Anyone?

I've looked over previous posts on this subject and I can't come up with a concrete answer to my problem. Can anyone help?? I really need some kind of chatroom on my site. What is the best way to create one?? I tried the chatroom module and I get all kinds of error messages. I also attempted the phpFreeChat and nothing opens after I install. I hear there is a way to fix the errors inside the chatroom module...how do I go about correcting these errors? Let me remind you I'm a beginner at DBA. I'm controlling my DBs through phpAdmin. How do I correct the lines through phpAdmin?

Viewing job application

I am a newbie....and very excited about the job search module...
i have created the job and resume content am able to create both a cover letter and a resume. After creating the resume i am told that the resume has been created. After all of this i still cannot view resume by clicking on the view job application..view is only possible as recent post.

Multiple delete limit!?

I am developing a module that queries an xml file for property data for a realtor / property management company. The properties change daily so each night I query their booking engine for their properties and delete all of the properties from the day before creating new nodes for all of the properties. The problem is that when I try to delete all of the properties from the previous day using cron, I can only delete 65 properties at a time.

[code]

$results = db_query_range("SELECT nid FROM {node} WHERE type = '%s'", "inntopia", 0, 1000 );

$counter = 1;

Consecutive calls to the same function

Hi,

I'm developing a new module and I've create the following function (to be called by a theme):

function theme_random_banner($banner = 'bannerX.jpg', $min = 1, $max = 5, $mode = 'seq') {
  $myFile = "testFile.txt";
  $fh = fopen($myFile, 'a');
  fwrite($fh, "glu\n");
}

In the page.tpl.php I call it
theme('random_banner', 'bannerX.jpg', 10, 15, 'seq');

Pages

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