search box in 4.7 (search_url missing?)

Does anybody know if we have done away with search_url template variable in 4.7. If so, what are the search box variables now?

I noticed that search_box now outputs html instead of 1 or 0. What is the function to theme this?

Using simplevote on comments?

I have the votingapi and simplevote modules working smoothly on a 4.7 install, but I'm working towards having similar rating functionality on comments.

If I understand the documentation correctly, votingapi provides the possibility to do this, correct?

Drop down boxes for product choices

I am currently setting up a site with a t-shirt products page. I am trying to add a drop down box for each product to allow size and color choices for the shirts. I was able to add it to the vocabulary, but can only add it to the editing functions when I am setting up the product. Any help would be greatly appreciated to a frustrated beginner. Thanks

_user() question - Last stumbling block for my module

Hi

I am desperate for figure this out, its really the last thing I need to finish off my Drupal site. I am using 4.7-beta4 and I want a status bar for users. The information for the bar should be loaded into $user. The API suggests that
this is possible but using the hook _user.

I have tried this numerous ways and I can get any information I add to $user to be persistent. I have posted about this a number of times including 46551 and 46414. I realise that it seems to work for everyone so could some please please
point out what I am doing wrong in this example where I try to add a string to $user and display it in a block:


<?php
function block_example_help($section) {
switch ($section) {
case 'admin/modules#description':
// This description is shown in the listing at admin/modules.
return t('An example module showing how to define a block.');
}
}

function block_example_block($op = 'list', $delta = 0, $edit = array()) {
switch ($op) {
case 'list':
$blocks[0]['info'] = t('Example: configurable text string');
return $blocks;
case 'configure':
$form = array();
if ($delta == 0) {
$form['block_example_string'] = array(
'#type' => 'textfield',
'#title' => t('Block contents'),
'#size' => 60,
'#description' => t('This string will appear in the example block.'),
'#default_value' =>
variable_get('block_example_string', t('Some example content.')),
);
}
return $form;
case 'save':
if ($delta == 0) {
variable_set('block_example_string', $edit['block_example_string']);
}
return;
case 'view': default:
switch ($delta) {
case 0:
$block['subject'] = t('Title of block #1');
$block['content'] = block_example_contents(1);
break;
}
return $block;
}
}
function block_example_contents($which_block) {
global $user;
if ($which_block == 1) {
$output = variable_get('block_example_string', t('A default value.'));
$output .="

beta 4 unable to log in

So drupal beta 4 4.7 killed my main userid. I still have admin (userid 0) left, THANK GOD, but userid 1, which is my name, and under which I post all my blog entries is unable to logon, due to unknown password. I've tried resetting the password, but received

userid: (correct userid)

and

password: "%password" back to my email.

that's not right.

any thoughts here?

Change template for a post only

Hello, I would like to select a diferent template for a post of story node.

In other words, I have write 10 post using the story node. I would like to change the template of post number 4. With phptemplate I can change the template of diferents nodes, but no for diferent post in the same node.

Is it possible?

Sorry about my poor english and thanks in advance.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x