This forum is for assistance with theme development.

Customising Login form

I have had a look in few places, but still not too sure how to go about customising login form (blocks section). I'm creating a template using a xTemplate engine...

Say for example i want my login form to look something like this:

Username: [text box] {Button Login}
Password: [text box] {Button clear}

Is this achevable via templates? i would really hate to do it somewhere else (like modifying the actual module) since this would make any upgrades extremly difficult.

Thanks in advance,
Nick Goloborodko

Obsidian flavour for Manji theme

I have added Obsidian flavour by ScottDot to the Manji theme package.

It makes use of the same XHTML structure, only with different CSS and graphics. See a test page here http://sandbox.ichris.ws/obsidian

If you are already using Manji, you need to overwrite the existing files with ones in the new tarball. There is 2 lines of code added to the XHTML template.

Style by Node in PHP Template

I am trying to implement a fairly complicated graphical header bar that varies by the section you are in. The sections happen to correspond to node types, so at this point if I could just get

print $node->type;

or

print $node_type;

to return something helpful, I'd be off to a great start. Any suggestions?

The forums contain a few discussions of similar topic but none that got me where I was trying to get.

Drop-down menu and bug of search function of Manji

Well, it prohibited my posting because of suspicious data, so I just give the link,

http://vitamin.uni.cc/node/23

Proper theming of aggregator module

So I am trying to get some customize aggregator content on my site, howver I am having some problems theming the module. The aggregator module has a theme_aggregator_page_item hook, which allows me to create an aggregator_page_item.tpl.php file in my theme folder. I am using PHPTemplate by the way. I activate this theme file by modifying my template.php file. Everything works fine, except for the fact that now each time the theme_aggregator_page_item function is called in the aggregator.module, I get a new date. So my page looks like:

Date1
News Item
Date1
News Item
Date1
News Item
Date2
News Item

Instead of :
Date1
News Item
News Item
News Item
Date 2
News Item

I know why this is hapening. It is because in my aggregator_page_item.tpl.php file there is a bit of code that isn't working. Here is the file:

  static $last;

  $date = date('Ymd', $item->timestamp);
  if ($date != $last) {
    $last = $date;
    $output .= '<h3>'. date('F j, Y', $item->timestamp) ."</h3>\n";
  }

  $output .= "<div class=\"news-item\">\n";
  $output .= ' <div class="date">'. date('H:i', $item->timestamp) ."</div>\n";
  $output .= " <div class=\"body\">\n";
  $output .= "  <div class=\"title\"><a href=\"$item->link\">$item->title</a></div>\n";
  if ($item->description) {
    $output .= "  <div class=\"description\">$item->description</div>\n";
  }
  if ($item->ftitle && $item->fid) {
    $output .= '  <div class="source">'. t('Source') .': '. l($item->ftitle, "aggregator/sources/$item->fid") ."</div>\n";
  }

  $result = db_query('SELECT c.title, c.cid FROM {aggregator_category_item} ci LEFT JOIN {aggregator_category} c ON ci.cid = c.cid WHERE ci.iid = %d ORDER BY c.title', $item->iid);
  $categories = array();
  while ($category = db_fetch_object($result)) {
    $categories[] = l($category->title, 'aggregator/categories/'. $category->cid);
  }
  if ($categories) {
    $output .= '  <div class="categories">'. t('Categories') .': '. implode(', ', $categories) ."</div>\n";
  }

  $output .= " </div>\n";
  $output .= "</div>\n";

  echo $output;

The problem is that the $last variable doesn't seem to get passed through the themeing functions of the aggregator module. Is there anyway to fix this WITHOUT hacking the aggregator module?

If I must I guess I will make changes in the aggregator module, but I would rather just work in the theme fucntions.

thanks

Who wrote the CSS for this page? http://drupal.org/project/releases

I am trying figure out how the tabs were done. It's absolutely beautiful and I have ton of questions.

For example, here:

ul.primary li {
display: block;
float: left;
_width: 1px;
height: 20px;
margin: 0px;
padding: 0px;
position: relative;
top: 2px; /* fudgyness to make tabs stay put on text resizing */
_top: 6px;

What does "fudgyness" mean?

And what does the _ right before width: 1px; do?

Pages

Subscribe with RSS Subscribe to RSS - Theme development