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

Need help debugging user search

As an admin user, I go to user->search and get results spanning multiple pages. When I click on page 2, 3, or any other page number at the bottom, it takes me back to the initial users screen without any search results. But the url shows the querystring as: ?q=admin/user/search&from=15

.install update instructions not run on module installation

i'm developing a module and creating a .install file along with it. made some change in the table design so i decided to make one _update implementation here to test that functionality out. worked just fine. but i now go to install it on a different site, and when i do i have to manually run the module's update through the update.php script. i personally think that should be done automatically during the module's installation. any feedback on that? am i missing something perhaps? thanks!

Any custome node type (such as bookreview) how do I put headers in bold

I just installed bookreview module. 4.7

When the node displays, how do I put the headings in bold (e.g. Title, Author, Synopsys)
but not the content?

I assume the answer would apply to any custom node

can't capture variables sent by form[]

Hi,

i got this really strange beginners problem. I want to use a form and then capture and store variables from it. But i can never capture forms variable althou they can be seen with print_r function. Please help me to capture it.

Here is the code i use for form generation:

 //form for variable setting.
 $forma[urly] = array(
 '#type' => 'textfield',
 '#title' => t('Enter Yahoo news URL'),
 '#default_value' => 'http://www.yahoo.org/',
 '#maxlenght' => '333',
 );
 $forma['submit'] = array('#type' => 'submit', '#value' => t('Save new settings.'));

 //let's add this form to output
 $output .= drupal_get_form('my_form', $forma);

and above it i try to capture $_POST[edit][urly] with this code:

 //$output .= '<pre>' .  print_r ($_POST) . '</pre>'; //debug line
 $output .= 'XX'. $_POST['edit']['urly'] . 'XX'; //debug line
 variable_set('importNewsURLyahoo',$_POST['edit']['urly']);
 $output .= variable_get('importNewsURLyahoo','Variable never been set before.');

print_r if uncommented shows:

Array
(
    [edit] => Array
        (
            [urly] => http://www.yahoo.org/dcsd
            [form_id] => my_form
        )

    [op] => Save new settings.
)

Please tell me how to access that urly field variable.

Thank you and sorry if it's more PHP than drupal related problem ;-)

File Server / Download modules? Any Available?

Hi all.

I am relatively new to the Drupal community and am looking for a decent FileServer / Download module to host and distribute some rather large family videos.

Are there any such modules around?

Thanks.

Populating user info in location.module from ldap

Good afternoon, everyone,
I am trying to figure out a way to populate the user "Location" information from our LDAP entry.

Below are my LDAP mappings:
'streetaddress' => array('text', 'textfield', t('Address'), 64, 64),
'l' => array('text', 'textfield', t('City'), 64, 64, t('Your city or other location')),
'st' => array('text', 'textfield', t('State'), 4, 2, t('Your state or province')),
'postalCode' => array('text', 'textfield', t('Postal Code'), 7, 5, t('Your Zip or Postal code')),

Pages

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