This forum is for assistance with theme development.

New to Drupal - Need tutorial

I am brand new to themeing and was hoping there were some tutorials I could go through to learn the whole Drupal process. Any help will be appreciated.

If there is another thread regarding this, plese let me know where to look.

Thanks!
Deaner

include external code in theme function

I'm producing a newsletter with simplenews.module having applied a patch to include support for mimemail.module.
The outgoing mail has a theme function:

Finding Templates

I just finished installing drupal and did not really like the themes or templates that were offered. Can templates from open web design be configured to work in drupal?

need major help with custom theme

Hi. I've made a custom theme for my site but am having a few weird problems. For one, there seems to be more than one layout? Things look different when I'm logged in and when I'm not. Going to domain.com and domain.com/index.php show differerent things. domain.com/index.php shows the correct layout while domain.com seems to show old coding before I tweaked it to work with Firefox.

Also, I created a sample news story to get rid of that default message thing but it only shows up when I'm logged in. If I'm logged out, it'll show the defaut message.

Images to menu items

I would like to replace menu items with images, such as:

<a href="linkto.html"><img src="path/to/image" /></a>

Unfortunately, I have been having a lot of difficulty getting Drupal to cooperate. Ideally, I would like to replace my primary links menu items with images. Does anyone have any suggestions? Thanks.

RTL directionality in the internet_services theme

hi.

I have been trying to hack the internet_services theme to work well in a multilingual environment, with an rtl locale, (arabic). here is what I did so far:

  1. in my template.php file I put the following function to load the correct style sheet depending on the locale:
    function phptemplate_stylesheet_import($stylesheet, $media = 'all') {
      $rtl = in_array(locale_initialize(), array('ar', 'fa', 'he', 'ur'));
      if (!$rtl) {
        return theme_stylesheet_import($stylesheet, $media);
      }
      if ($stylesheet == base_path() . 'misc/drupal.css') {
        $stylesheet = base_path() . 'misc/drupal-rtl.css';
      }
      if ($stylesheet == base_path() . path_to_theme() . '/style.css') {
        $stylesheet = base_path() . path_to_theme() . '/style-rtl.css';
      }
      return theme_stylesheet_import($stylesheet, $media);
    }
    
  2. I modified the direction in the file style-rtl.css file that is supposed to get loaded when the locale is right to left like this:
    /* rtl */
    body {
      direction: rtl;
      /* text-align: right; */
  3. in that same file, I replaced each occurance of float: left to float: right

as you can see at www.nattiq.net the site looks lovely in the english locale, and most of I wanted to achieve in the arabic one also is looking good, except for the issue of the right hand block, it displays after some space. and, isn't this side bar, according to the code, supposed to be at the left hand side when the language is arabic?

Pages

Subscribe with RSS Subscribe to RSS - Theme development