This forum is for assistance with theme development.

Question regarding CSS and user registration

Hello,

I've got a question regarding how to go about customizing CSS for the custom forms' categories that I created for my user registration page.

I spent quite a bit of time tweaking the "blix" template to get it just the way I need it...except for this LAST piece of CSS.

Could someone please point me into the right direction on how to make the form's categories titles bold and increase the font size.

Theming custom module

Hi,

I'm developing a custom module. I have found this useful article about overriding theme functions. http://drupal.org/node/11811. It's working correctly for theme functions already in the drupal theme system. For example: theme_item_list();

The problem is: I have wrote my own code, but it seems drupal does not recognize it like a node theme:

function phptemplate_esorg_item($items = array(), $title = NULL) {
  return _phptemplate_callback('esorg_item', array('items' => $items, 'title' => $title));
}

I've wrote my template file: esorg_item.tpl.php

<div class="node<?php print ($sticky) ? " sticky" : ""; ?>">
  <? foreach ($items as $item) {?>
    <? print $item?>  
  <? } ?>
</div>

...and from my custom module I call the theme like this:

  $items = Array("Test1", "Test2", "Test3");
  print theme("esorg_item", $items, "Test page");

The output I get, when I navigate to my module in a webbrowser is:

  <div class="node">
  Test1  Test2  Test3
      <h2><a href="" title="Test page">Test page</a></h2>
    <div class="node-content">
     </div>
    </div>

So as you see, there is missing the full page template html code. It seems drupal recognize my module as a page template, like: page.tpl.php, but I would like to use my theme function output as a node.

If I modify the theme_item_list(); (or any other that is already in drupal) functions, like in the article, it is works correctly, but as I change the name of the theme function it is not.

Help with <code>, Themes, and CSS

I have been spending a lot of time the past couple of days modifying the bluemarine theme to my use. Things where going sooo well and I've been tweaking things to make it perfect. Then it broke.

The first issue is relatively minor: When I post blogs with < code > tags in them the font is very small. Also, it used to be shaded differently; but now it just appears white. I'm having difficulty identifying the .css tags for this attribute. I would love some help.

Also, and this is more serious and has me completely stumped: Now that I've made the theme changes, whenever I click on Logoff, or try and Logon (or change any setting) I come to a blank page. If I then go back to the home page I find that whatever action I took did in fact happen. The following error is displayed:

    * warning: Cannot modify header information - headers already sent by (output started at /home/webcdic/public_html/themes/webcdi/template.php:15) in /home/webcdic/public_html/includes/common.inc on line 233.
    * warning: Cannot modify header information - headers already sent by (output started at /home/webcdic/public_html/themes/webcdi/template.php:15) in /home/webcdic/public_html/includes/common.inc on line 233.

. Also, when I go to AcidFree the page is blank IF I'M Logged on. If I try as an anonymous user I can see the photo albums just fine. When I change back to the original bluemarine theme everything goes back to working fine. I wouldn't have expected this behavior in a theme and I'm really confused.

Burnt theme screwing up profile view

Hi,

Iam trying to use the burnt theme,

I got it running and it seems damn good, I really like it. I made some changes to the theme, so that our content is properly displayed.

But I just observed thaat the whole view of user profiles got screwed because iam using this theme

Can someone help me in setting it rite..

PS: I have a very big profile and please dont suggest me to write a customized profile. (I already tried it)

Background aligned with bottom problem - white space because node content loads too late

Hi,

Trying to develop a theme with a background image which is a gradient aligned with the bottom of the body:

body {
  background: #FFFFFF url('images/gradient.gif') bottom repeat-x;
  height: 100%;
  margin: 0;
  padding: 0;
  color: #000000;
  font: 76% Verdana, Arial, Helvetica, sans-serif;
}

My problem is that because this element loads before the node content, the node content overlaps it instead of pushing the background down.

AjAX data loading into a div without page refresh

Read the first forum post :

http://drupal.org/node/44795

I make a new site and i test the jah solution, i get it work with flexinode
http://www.immobiliermaroc.org/node-flexinode-1.tpl.txt

See the article code as on drupal i have error even when i post with code tag

http://www.immobiliermaroc.org/code.txt

Pages

Subscribe with RSS Subscribe to RSS - Theme development