This forum is for assistance with theme development.

Help with center site.

I would like to center the whole site, but am having serious probems.

This seems to be the style for the div tag

#page {
/*width: 900px; */ /* page width - optional */
/*margin: 0 auto; */ /* center the page - optional */
/*border-left: 2px solid #AAA;*/
/*border-right: 2px solid #AAA;*/

From Page template...


print $language " xml:lang=" print $language ">

PLz Help Forum Topic Design Format

Hi

Guys i am working with drupal site http://192.10.2.221/jB5/?q=forum on this site,after end of each topic i have to add border image,i tried with forum.module,theme.inc but its not taking,plz help me how to do this plzzzzzzzzz......

theme override for primary links not working

I'm trying to implement a phptemplate function override to add a div tag that wraps around primary links. It seems fairly straightforward, but for some reason I can not get the change to take effect.

This is the function I'm using in my template.php file:

function phptemplate_menu_links($links) {
  if (!count($links)) {
    return '';
  }
  $level_tmp = explode('-', key($links));
  $level = $level_tmp[0];
  $output = "<ul class=\"links-$level\">\n";
  foreach ($links as $index => $link) {
    $output .= '<li';
    if (stristr($index, 'active')) {
      $output .= ' class="active"';
    }
    $output .= "><div>". l($link['title'], $link['href'], $link['attributes'], $link['query'], $link['fragment']) ."</div></li>\n";
  }
  $output .= '</ul>';

  return $output;
}

2 nodes in a row grid

Hi! I'm new to Drupal. I've been doing some research but I haven't dug an answer.... So may be someone can help....

I need to orgonize my nodes in some kind of grid with two in a row. With css it looks like this:

<div class="columns">
<div class="left-column">
</div>
<div class="right-column">
</div>
</div>

<div class="columns">
.....
</div>

and so on... with "float: left;" and "float: right;" for appropriate class.

Putting content into blocks

Hi guys, I'm very new to Drupal, and have been working mostly with WordPress type CMS. So far I understand this much: I know how to make custom regions, I know how to assign blocks to these regions.

What I want to know next is how to assign content to blocks. Here's the scenario: The site I'm building is going to have News Releases on the homepage. I want to make it so that when someone adds new content to the News Release category, an exceprt of the post is automatically posted to the news release region or block that I have on the frontpage.

Problem with form theming

Hello!

I read about theming forms at http://api.drupal.org/api/file/developer/topics/forms_api.html/6
Now I tried this for myself inside my own module.
But I get strange results. First, the submit button in the fieldset is above the textfield, although I expected it the other way around (cause I first rendered textfield and then the submit button).
Also I get those five <br>'s below the fieldset, although I rendered it in between.
Second, I get an error message (warning: implode() [function.implode]: Bad arguments. in /var/www/medicalgenomics_drupal/includes/form.inc on line 621.)

What am I doing wrong? Can't find a really good example code.

Here my code:

<?php
/* $Id$ */

function blotbase_search_perm() {
return array('access blotbase_search');
}

function _main() {
//$content = drupal_get_form('_query_form');
$content = theme_query_form(_query_form());
return $content;
}

function _query_form() {
$form["fulltext_search"] = array(
'#type' => 'fieldset',
'#title' => t('Search BlotBase'),
);
$form["fulltext_search"]["action"] = array(
'#type' => 'hidden',
'#value' => 'query',
);
$form["fulltext_search"]["query_string"] = array(
'#type' => 'textfield',
'#title' => t('Search for a gene symbol resp. identifier and/or paper title/author'),
'#default_value' => '',
'#size' => 60,
'#maxlength' => 64,

Pages

Subscribe with RSS Subscribe to RSS - Theme development