How to edit text in the database

I've learned that I can delete everything drupal, except the default site and my edited pages remain, but I'd like to know if there is a way to edit the database itself, eg via "PHPMyAdmin".

Problem for a first installation with 7.7

I'm installing Drupal on a server with PHP Version 4.4.9 and obtain a parse error when I want to open my index page to configure Drupal : Parse error: syntax error, unexpected '{' in /homez.378/binderma/drupal/includes/bootstrap.inc on line 655

Can you tell me what to do ?

Thanks

rowspan for tableselect on checkbox/radio cell

How use rowspan for tableselect on checkbox/radio cell?

Setting up search in Drupal 7 is a nightmare! Has anybody had success with just simple search features?

My website is close to finished and the whole time developing I took it for granted that the core search module would work. It is indexing nodes and they are not being returned in search results. Worse yet, the core search module doesn't index node titles so if a product name is the node title it's impossible to search for the product.

Rating a node based on different criteria

Hi,

I have been trying to create a content type which allows users to rate its nodes based on different criteria and then have an average rating over all criteria. For example, a hotel can be rated based on staff service, the facilities it provides, how clean the rooms are etc.

The fivestar module is perfect when only one rating is needed for each node. Is there some other module that helps in achieving this or do I have to tweak the fivestar module?

Thanks in advance for any help

In DRUPAL7, how to add a region in a node.tpl.php(node--contenttype.tpl.php)?Do the usage of function theme() changed?

Sorry for my ENGLISH! I am not good at it.

In DRUPAL6 and before, I can add a region in node.tpl.php in this way. (From http://drupal.org/node/208869 )

1.Add code in THEME_NAME.info

regions[REGION_NAME] =  REGION_NAME

2.Add funciton in template.php

function THEME_NAME_preprocess_node(&$variables, $hook) {
  $variables['REGION_NAME'] = theme('blocks', 'REGION_NAME');
}

3.Add code in node.tpl.php

<?php if ($REGION_NAME) { ?><div class="REGION_NAME"><?php print $REGION_NAME?></div><?php }; ?>

Then, a region named REGION_NAME is added in node in D6

But in DRUPAL7, this way not work. I do a test and see below.

1.Add code in THEME_NAME.info is OK

2.I add these code to test 'THEME_NAME_preprocess_node' funciton

function THEME_NAME_preprocess_node(&$variables, $hook) {
  $variables['REGION_NAME'] = t('This is a sentence!');
}

3.Add code in node.tpl.php

<?php print $REGION_NAME >

Finally, I get a 'This is a sentence!' in my node. This result shows the Funciton 'THEME_NAME_preprocess_node' is work fine.

But when I change code in STEP2 to

$variables['REGION_NAME'] = theme('block','REGION_NAME');

It is not work in my DRUPAL7.

I can only think that the usage of theme() is different.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x