This forum is for assistance with theme development.

CSS list-style bug with IE

At www2.caerleon.nl I'm developing a site with a specially styled menu. Primary links and secondary links are placed in two columns next to each other (with absolute positioning). Both have "list-style-type:none". Nevertheless both IE6 and IE7 show bullets in front of the secondary links.

ie.css:

ul {
list-style-type: none;
list-style-image: none;
}

ul.menu li.expanded ul.menu {
list-style-type: none;
list-style-image: none;
}

Any ideas?

Gaele

ImageCache and Different Photo Sizes

My goal is to use ImageCache to create three different sized photos when a user uploads their photo.

125x125 for their profile page.
85x85 for articles.
50x50 for comments and forum posts.

I've installed ImageCache and have it working (thanks to Nate Haug's excellent tutorial: http://www.lullabot.com/articles/imagecache_example_user_profile_pictures ).

I've read all (I think) of the related posts to create a template.php file and still have a couple of problems:

1) the template.php file doesn't return the desired results
2) it appears that the user profile page is a special case ... how do I trap for it in template.php?

Here's my code (as implemented with the Garland theme):


<?php

/**
* Override or insert PHPTemplate variables into the templates.
*/
function _phptemplate_variables($hook, $vars = array()) {
switch ($hook) {
// default code from Garland
case 'page':
if ($secondary = menu_secondary_local_tasks()) {
$output = '';
$output .= "

    \n". $secondary ."

\n";
$vars['tabs2'] = $output;
}
// Hook into color.module
if (module_exists('color')) {
_color_page_alter($vars);
}
break;
// end Garland theme code
// begin ImageCache code
case 'node':

3rd sidebar region in Bluebreeze

I'm trying to build a new theme by modyfying Bluebreeze (fluid version). Importantly, I want to have 1 sidebar on the left and 2 sidebars on the Right.
I've read whatever documentation and forum articles that I could find, and the procedure seems to be a very simple 2 step procedure. Yet it doesn't seem to work with Bluebreeze theme.
Any help on how to achieve this 3rd sidebar on the right handside???

Expanding and collapsing content

I'm currently theming a site in which I want to have some of the content on our "help" page expand when clicking on the main title that is displayed. I want to have the page look as clean as possible at first view, that way the person can find the appropriate question faster and click it to find the answer.

Just wondering what the least complex way of doing this would be.

I hope someone can help with this one.

I hope someone can give me an answer here. Lately it seems i've got some strange problems that no one knows the answers too. It's mostly been dumb mistakes on my part.

Why do i have to manually link my style.css for my modified theme? if i don't do this, i don't get any style at all. This started happening when i changed my template.tpl.php file to use a different theme for the admin page, which doesn't make sense to me unless i made a php error somewhere else. Im very new to php too so it wouldn't suprise me.

Any thoughts?

Column blocks cant be turned off

I have modified Greenthing - a 4.x theme and got it working nicely with Drupal 5.1 but apart from one thing. - Blocks.

The blocks show in the right hand column and I can use the admin interface to turn them on/off at admin/build/blocks - however they *dont* actually turn off! Its wierd - its as though drupal is caching the column - or at least the settings for it. So I emptied all the cache tables and turned off caching just to really make sure... but to no avail.

As an experiment I edited one of the custom blocks that were showing up (but turned off on the admin page) and hey presto - it showed the changes.

For my next trick I went and edited the theme (php template) file to remove the sidebar:

<?php if ($sidebar_right != ""): ?>
          <div id="sidebar-right">
			 <?php print $sidebar_right ?>
            <br class="clear" />
          </div>
        <?php endif; ?>

and once deleted the whole column didnt show.. (So Im not going mad..!)

So for my next option I take a look at the database table blocks - and this is what I find..

 SELECT *
FROM `blocks`
WHERE theme = 'greenthing'
AND STATUS =1

- it returns a lot more (8 rows) than what is showing at admin/build/blocks (0 items turned on to show in either column) - so what's going on? Where on earth is admin/build/blocks saving/reading its data from?

Pages

Subscribe with RSS Subscribe to RSS - Theme development