This forum is for assistance with theme development.

Two themes, two template.php files, same regions

I have two active themes: bluemarine and friendselectric.

I've defined the template.php files each with different regions. (Code is below). When I go to assign blocks, the two templates show the same regions for the blocks, as if they're running off of the same template.php file.

I turned off caching, manually reloaded, used FireFox tools to empty caches and destroy cookies, things like that. Resaved template.php files, checked functions.

Any ideas?

----

function friendselectric_regions() {
return array(
'left' => t('left sidebar'),
'content' => t('content'),
'header' => t('header'),
'footer' => t('footer'),
'adminmenu' => t('adminmenu'),

);
}

function bluemarine2_regions() {
return array(
'floater' => t('floater'),
'top_banner' => t('top banner'),
'right' => t('right sidebar'),
'left' => t('left sidebar'),
'content' => t('content'),
'header' => t('header'),
'footer' => t('footer'),

'calendartab' => t('calendartab'),
'weathertab' => t('weathertab'),
'pollstab' => t('pollstab'),
'archivestab' => t('archivestab'),

'searchtab' => t('searchtab'),
'rsstab' => t('rsstab'),
'logintab' => t('logintab'),
'emaileditiontab' => t('emaileditiontab'),

'recentforumtab' => t('recentforumtab'),
'recentblogtab' => t('recentblogtab'),

internet explorer breaks nice menus

I am creating a new theme for a development website and I am using the nice menus module in Drupal. The website is located at http://dlportal.humboldt.edu . In firefox the menus display properly (as I intended, they drop down, and the submenus expand to the right), but in internet explorer, they all drop down to the right. Does anyone know why this happens? I know i.e. has issues with css, but I do not know to what extent yet. I dont know any css, and I am trying to learn, but I have to get this fixed before my deadline, and I dont think I will make it. The CSS code is below, and I appreciate the help that you all are willing to give.


/***
*
* dlportal theme style sheet
* Modified from: "box_grey" theme
* Modified by: Erik Mendes
* Filename: drupal/themes/dlportal/style.css
*
***/

/* Outer-most table framing and sizing */
#maintable {
margin-top: 1em;
margin-bottom: 1em;
background: #fff;
background-image:url(lampfade.gif);
background-position: bottom;
background-repeat: no-repeat;
/* background-attachment: fixed; */
width: 800px;
border: none;
}
body {
color: #000;
/* Navy blue backgroung */
background: #000044;
font-family: Verdana, Helvetica, Arial, Lucida, sans-serif;
font-size: 84%;
padding: 0;
margin: 0;
}

/***
*
* Front page styles
* Erik Mendes
*
***/
img.dean-message {
float: left;

Can I modify a module function using a theme?

With a 4.6 installation, is it possible to alter a function in a module using a template.php file in a theme? If so, I really, really need an example--I've been beating my head against a wall for hours now.

I'm trying to change a function in Acidfree, incidentally--it breaks my fixed-width layout, as noted here:

http://drupal.org/node/65123

Thanks for any help.

-Peter

Admin content wraps/clears in IE

In any page of the admin section on IE 6, the main content area clears to the bottom leaving a big blank space and adds blank space on the right hand side. My theme is a fixed width design 725px with two columns. The left column is 200px wide floated left and the main content area is set to width:auto; I checked for various clear: declarations in my CSS and in drupal.css, but didn't see anything that would cause this. Any ideas anyone?

Acidfree tables breaking my layout

Acidfree breaks my fixed-width layout when I click on the "album contents" tab. It looks like the trouble is the table Acidfree generates on those pages--it creates a three-column table with album thumbnail, thumbnail pulldown menu and title/description/path alias cells. The width of this unflexible table kills my tableless layout big-time.

I can't see any way around removing the table in favor of a CSS approach, but I'm having trouble locating in the Acidfree module code where the table is created.

target="_blank" for primary links on reflection template

I succeded in open primary links on a new browser windows (Reflection Theme)

my code on the /var/www/themes/reflection/page.tpl.php file was like this:

Pages

Subscribe with RSS Subscribe to RSS - Theme development