This forum is for assistance with theme development.

Form Theming

Hi All,

I am attempting to theme all the forms on my a Drupal installation so the submit buttons use images. I have no problem with this, except for one minor point. Due to the text length of the button being variable on different forms, the image has been split in two. Thus what I need to do is wrap the submit button inside a span or div like so:

each page have another logo

Hi ,do anybody have a code which change the logo in each pages on your website
example
home -> logo1
contact -> logo2 .......

if anyone cant halp i will be appreciate

display image: Garland theme

Hello all!

I am using garland theme for my website. I use Attach image option for the nodes. I am trying to display the attached image as float on top right or left position of the article with this garland theme. I am not able to reach it.

Please advise.

Styling individual menu's in drupal 6

I have searched for hours, yet nowhere there is information on styling individual menu's in Drupal 6. I know how to do it in 5, but 6 changed.

I have a topmenu and a sidemenu, and I wish to style them differently. I would I go about this? There is no information on the theming page (using the .tpl.php system)

Any info would be very helpful. I also read that views2 might be an answer, any thoughts?

Thanks!

custom login form, override validation problem

Based on this guide http://thefaultandfracture.blogspot.com/2009/04/theming-drupal-user-logi... I am trying to make a custom login form with a custom validation function.

The problem is, that my custom validation function never get's triggered. In fact it seems the default login_final_validate() function still get's triggered even though I have not added it from "form['#validate']"..

How can I override the default login validation. I have searched around for answers, but didn't find a solution that matches my needs.. I'm not experienced with drupal, but it seems it should be possible to do this..

Hope you can help me..

Best regards

Ole

Here's my code..

function get_user_login_form() {
$form_id = 'user_login';
$form = array();
$form['name'] = array(
'#type' => 'textfield',
'#maxlength' => USERNAME_MAX_LENGTH,
'#required' => TRUE,
'#attributes' => array('tabindex' => '11'),
);

$form['pass'] = array(
'#type' => 'password',
'#required' => TRUE,
'#attributes' => array('tabindex' => '12'),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Log in'),
'#weight' => 2,
'#attributes' => array('tabindex' => '13')
);
//changed next line

datestamp in .info

i want to make a theme,but the annoying thing is that i don't how to set a value for datestamp,who can tell me how to set its value ?
are there some rules to set the value of datestamp?
thx!

Pages

Subscribe with RSS Subscribe to RSS - Theme development