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

Help with PHPBB Module

** I apologize for the double post! I originally posted this under the support section for this module but am unsure if it is still active so I am posting here in hopes of getting some of these issues resolved. **

First off let me say a big THANK YOU to the developer(s) for the phpbb integration module. It is just what I had been searching for and adds much needed functionality to my site.

Now for the probs. I hope someone here can help me with these. After I enable the module, if I go to 'Blocks' and click 'Configure' for the phpbb mod, my server crashes. I've done this time after time and it crashes every single time. I'm running Apache 2 on W2K.

The mod is active and the block with the links does show, and I have been able to configure what shows by editing the phpbb.module file. But obviously something is wrong. That's problem #1.

Also, I'm still having some problem with cookies or sessions. Sometimes the first login attempt at drupal fails (no warning message, it just does nothing), then on the second attempt you are successfully logged in. Also, sometimes once you are logged in and you go to the phpbb forum, you are not logged in there.
Both of these things only happen some of the time, other times all is good.

Finally, I am having problems with the links in the phpbb.module file. When you first login to drupal and you click a phpbb link from the block all is good - the links work fine.

Passing Parameter from Create Content Menu

Hello,

I am not sure if I am trying to do the impossible here. What I am trying to do is pass a parameter from the create content menu. (A little background, I am putting together a site for a sports leage, which has divisions, and teams associated with a division). The parameter I would be passing is the division id, then the game selection would only list the teams associated with it.

The path to create a generic game is: node/add/game
The way I have it set now the way to create a division game is: node/add/game/2 (2 being the division)

Run a function regular basis

Please tell me about code or php function which support me to run a function in regular basis without any request of client.

[moved]

how to validate radiobuttons the best way in 4.6?

Hi,

I'm making a module for Drupal 4.6, and i have some trouble with validation.
I know 4.7 is better for forms, but i'm obliged to use 4.6 for this project.

The way i see it, there should be 2 ways to validate radiobuttons:

$sem_options = array(1 => "1st semester", 2 => "2nd semester");
$output .= form_radios(t('Semester'), 'semesterID', $node->semesterID , $sem_options, '', TRUE, NULL);

This is the code i have now, and the last TRUE sets the $required parameter to true.
However, when i submit a new node and select none of the 2 radiobuttons, the node gets submitted anyway and no error is triggered.

Then i thought i could set the $required to FALSE and check in the hook_validate() if a radiobutton was selected.

if($node->semesterID == NULL){
  form_set_error('semesterID', t('No semester selected.'));
}

This code does trigger an error when none is selected, but now i have the following weird behaviour:
When i go to 'create content' to make a new node, the validation already gets triggered before i submitted anything, and there's already an error displayed 'No semester selected', even though i didn't even had the change to select anything in the first place...

Does anyone know the best way to solve this issue?
I've searched on the forums and the handbooks, but all i find is 4.7 FormsAPI stuff, which is useless in my case

upload chinese filename attachment

hi all,
I had a problem when i post a new blog(news,page,blog,book). If the new blog had an attachment with chinese file name, there were two situations:
1. The blog was uploaded successfully, but the file name of attachment in the target directory wasn't chinese file name, and this file can't be downloaded.
2. The blog wasn't uploaded successfully,there was an error occurred,the detail information is "an error occurred, unspecified error". These errors occurred only if the attachment file had a chinese file name and this file name was too long.

CCk links

Hi guys, this is pretty straightforward question: how do I get the url of a custom type field when using cck?

Currently I'm using

<?php print $field_url[0][view]?>

With no results whatsoever.

Pages

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