Creating a custom page: Please Help

Hi All,

I'm trying to create a menu link ( a web page called Request Need) which will have 3 text fields, Title, Needs and Description. I would want to access the Needs field content to do some searching based on the key words entered in Needs field and other users can add comments to the Description. And if some one wants to post a new but,related request, there will a button saying "Post related Need". And I would like to send a variable or value over to the next page that it displays when this button is clicked.

Can please anyone guide me to how I might achieve this?

ImageCache and image upload in my own module

Hi, hope this question is not discussed somewhere else. I could not find it in any case.

My problem is I don't know where to start looking for tips on what I am trying to do. So I have to try to describe what I want :)

I want to write a module. This module is to have block configuration where users can upload pictures. What I want to do is to use ImageCache and the same image upload that one can use in the default article.

I need MD5 password authentication with no salt on Drupal 7

Drupal 7 urgent help needed: I need to be able to use MD5 with no salt for integrating with tomcat jdbcRealm. I have already created 2 views, one for users and the other for roles and it works fine if I manually update the table password with an MD5 value. What I want is for drupal to store the values in MD5 with no salt rather than a value with it's own hashing algorithm. I am not very proficient in PHP and I need the code urgently for a client deliverable tomorrow. Please help !!!

help me plz..

i’m wondering about some Module which is similar to usernodes. What i'm using now is drupal7,but i can not use it any more,i’m in need of some imformation,thank for your helps.

Pass a variable via url and then update a global variable

Hello,

I'm making a small website using drupal; The front page has block i made in which you click options that affect the visibility of some of the left bar menus;

My idea was to use a simple url variable pass to then update a php global variable; Having this variable set to different value i would specify that block and articles would be visible only when the variable is set a the corresponding value.

Here is the code of the module i made:

//Information about the hook.

function versite_block_info() {
$blocks = array();

$blocks['versite'] = array(
'info' => t('Choix de la version du site')
);

return $blocks;
}

// Block content.
function versite_block_view($delta = ''){
$block = array();

//Declaration of the global variable.
global $item;

//The local variable that will have its values changed according to the options.
$vversite="";

//Affectation of the local variable value to the global variable.
$item=$vversite;

$block['subject'] = "versite";

// The Block content consists in 3 links with variable passed in.
$block['content'] = 'Complete/Ask 76 Rouen/Location';
return $block;

One custom field not rendering, while others are

I've had many problems trying to create a theme in D7 that shows specific content in specific styles, and in order to solve one small part of it, I've got this conundrum:

I've create a custom content type (product), with several custom fields.
- One custom field (field_overview_text) appears fine when displayed in a view, as a block.
- When I try to render it in node--product.tpl.php, it doesn't appear using this format:

print render($content['field_overview_text']);

- While other custom fields of the same type (Long text), appear fine:
print render($content['field_product_description']);

Debugging with this:
print_r($content['field_overview_text']);
yields nothing, but this:
print_r($field_overview_text);
shows that there is content available:
Array ( [en-US] => Array ( [0] => Array ( [value] => This is my overview text [format] => [safe_value] => This is my overview text ) ) )

P.S. The reason I'm doing it this way, rather than just use the view/block method, is that in this region I want to fall back and display the (title) field if my custom field (field_product_title) is empty. Couldn't find a way to do that through views...

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x