Comment Text Filter

I'm new to Drupal development and I'm making my first professional site in Drupal 7.

I have set up a new Text Filter for advanced editing allowing bold, italic, images and a few other additional HTML tags to the default "Filtered Text" layout. I've set the permission for this filter only to the administrator (who is the only person who is creating content for the site at this point). I'm allowing comments and I have disabled the permission to choose neither filter I have.

What is the best way to run multiple Drupal sites on a VPS

I am thinking about getting a Level 3 VPS from Hostgator with cPanel. I think the easiest way would be to take advantage of Drupal's multi site feature running from the same cPanel account and code base. This way I can upgrade and backup a little easier. The other way was to create multiple cPanel accounts with different IP address. Any suggestions? Thanks!

Sub theming and several sites from the same database.

Hi,

I need to set up 5 sites with 5 small variations of the same theme (different masthead images, css color, etc). In Drupal 7 is there a best way to do this? I have tried this Drupal tip in the readme file: "multisite installations, they can also be placed in a subdirectory under/sites/{sitename}/themes/, where {sitename} is the name of your site (e.g.,
www.example.com). " but alas. can't get it to work. Finally, can these all run off of the same database? Has anyone done this?

Thanks,

Greg

form with a custom view

Hi,

i am drupal newbie, and i need a custom view of nodes.
Views module is great, but not for this project (my view contains computed fields too, but it cannot be used in Views modules + instead of apply button onchange event triggers the form)

That's why i need a simple module, which has a form and a list of nodes.
Sorry to say i cannot figure it out.
I would like to do it in 'drupal way' (not with global variables $_REQUEST etc)


<?php

function mytype_menu() {
$items['mymenu'] = array(
'title' => 'Example',
'page callback' => 'drupal_get_form',
'page arguments' => array('get_filters_form'),
'access callback' => TRUE,
);
return $items;
}

function mytype_theme() {
return array
(
'mytype_theme' => array
(
'arguments' => array('form' => NULL),
'render element' => 'form',
),
);
}

function theme_mytype_theme($variables) {
$form = $variables['form'];

$header = array(t('A'), t('B'), t('C'));
$rows = array();
//here i would create an array with the nodes but i cannot get the submitted data :(((

$output = theme('table', array('header' => $header, 'rows' => $rows));
return drupal_render_children($form) . $output ;
}

function get_filters_form($form, &$form_state){
drupal_set_message('called get_filters_form');
$form['bar-1'] = array(

Execute php after webform submission

Hi. I'd like to extend the webform module to post the results of submissions over to another server. I used to be able to do this with the webform PHP module, but there is no Drupal 7 version, and apparently it's not supposed to be used. Is there any simple way to execute php code after a webform is submitted?

Thanks

Notice: Undefined index: Error Messages

I am trying to print out an image field to my node.tpl.php and page.tpl.php files, but I keep on getting this error message:

    * Notice: Undefined index: und in include() (line 6 of /home/dgtgr0/public_html/aarc/sites/all/themes/aarctheme/templates/node--core-page.tpl.php).
    * Notice: Undefined index: und in include() (line 12 of /home/dgtgr0/public_html/aarc/sites/all/themes/aarctheme/templates/node--core-page.tpl.php).

The error message only appears randomly and doesn't appear every time. Although there is an error, nothing is broken and everything works fine.

What can I do to stop the error message from appear?

Here is a link to my website with the error message: Link

Here is the code I am using to print out the image field :
(Code in page.tpl.php file)

<?php if (isset ($node->field_large_page_image['und'][0]['filename'])): ?>
<?php global $base_url; echo '<img alt="brochure image" id="page_image" src="'.$base_url.'/sites/default/files/large_page_image/'.$node->field_large_page_image['und'][0]['filename'].'" />'; ?>
<?php endif; ?>

(Code in node--custom.tpl.php file)

if ($node->field_image['und'][0]['uri']):
Only local images are allowed. print image_style_url('body_images', $node->field_image['und'][0]['uri']);
"

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x