Godaddy: changing memory_limit, post_max_size and upload_max_filesize, php.ini

After reading this and this forum, I managed to increase the values of memory_limit, post_max_size and upload_max_filesize on godaddy.com.

Here are the steps in short:

* download godaddy's own php5.ini file (not php.ini) from /web/conf (using SFTP software)
* change the values
* upload it into your /html (root) folder

CCK field integer limit of 10

Im using a CCK field integer to keep tabs on the number of times users have created a certain type of node

things seemed to be working fine until the number of entries gets to ten and then is resets the value to 1

I'm using something like this in question_form_alter hook (custom module)

$form['field_question']['und'][0]['value']['#default_value'] = $record2['field_question_value'][0]+1;

any ideas

Theme Override for Main Menu D7

Am on my first foray into Drupal 7 theme development, and I'm attempting to override the Main Menu in order to print the item description underneath, using this code in template.php:

function MYTHEMENAME_menu_link(array $variables) {
  $element = $variables['element'];
  $sub_menu = '';
  $element['#localized_options']['html'] = TRUE;


  if ($element['#below']) {
    $sub_menu = drupal_render($element['#below']);
  }
 
  if ($element['#original_link']['menu_name'] == "main-menu"){

    $element['#title'] .= '<span class="description">'.$element['#localized_options']['attributes']['title'].'</span>';
    }
 
  $output = l($element['#title'], $element['#href'], $element['#localized_options']);
  return '<li' . drupal_attributes($element['#attributes']) . '>' . $output . $sub_menu . "</li>\n";
}

and my main menu is printed out in the page.tpl.php as follows:

<?php print theme('links__system_main_menu', array(
                'links' => $main_menu,
                'attributes' => array(
                'id' => 'main-menu-links',
                'class' => array('links', 'clearfix'),
                ),
                'heading' => array(
                'text' => t('Main menu'),
                'level' => 'h2',
                'class' => array('element-invisible'),
                ),
                )); ?>

Theme usage on commercial site

Hi
What is the policy on usage of a free theme such as Danland on a commercial website. That is to say, if I develop a website for a company using the theme, and make some changes to the theme (maybe make a sub-theme) then do I need to put in the original developer's or theme's name?

Are there any other restrictions? The theme in question is freely distributed under the GNU license terms but i'm not aware of the usage rights when it is to be used in a commercial venture.

Please clarify if possible

Web developer (software engineer)

We are looking for a web developer to build a social recommendation website. We want this to be done as quickly and efficiently with careful attention paid to developing good quality, scalable code. We are also planning to use Drupal as our content management system so experience developing in Drupal is necessary.

We can offer you a full time permanent position if things go well.

Show/hide text

Does anyone know of a module that can show/hide text at all?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x