ASU Web Community

ASU Drupal Theme

Monday, April 23rd, 2007 - 10:45 am
  • cphill

Has anyone been using the new ASU drupal theme? If yes, has anyone run into any problems using it?

I added the 'event module' and placed a calendar view block in the right column and it only seems to be viewing correctly in the admin role. When I log out and view the site (using firefox on a PC) it seems to get pushed (squished) to the right by the center content.

It seems IE7 (PC) has the opposite effect of squishing the center content and expanding the right column (calendar).

Here are some screenshots:

http://chill.asu.edu/files/pc_firefox.gif

http://chill.asu.edu/files/pc_IE7.gif

Monday, April 23rd, 2007 - 4:51 pm
  • cscholtz
  • cscholtz's picture

My department is using Drupal version 5 and have come across a few minor display bugs. ASU has a Drupal consultant to whom issues can be forwared. I'm not sure if it's OK to post his email here so contact me via offline if you want. The issues I have reported with our instance are:

  1. Items under "Management Links" display as tabs instead of bulleted list.
  2. Left column menu, sub menu item +/- throws JavaScript error in Internet Explorer. "'length' is null or not and object".
  3. Bulleted and numbered lists in the body area of pages are not indented correctly, everything is left-justified.

cheers,

Cameron

Tuesday, April 24th, 2007 - 4:58 pm
  • cphill

<p>Ah, good to know. It also looks like the Management box is built into the template and not a separate block item, so you can't customize where it appears in the admin view - it will always get pushed to the bottom of the stack. </p><p>Regarding changes to the ASU theme: I think Rhino (graphic design firm) designed/created the theme so they might be the go to people in regards to refining the code.</p><p>I did however setup a meeting with the Drupal consultant to go over some multi-site setup and user-role-related questions. Can't wait! </p><p>Thanks Cameron!</p>

Wednesday, May 9th, 2007 - 12:22 pm
  • cscholtz
  • cscholtz's picture

Couple other small issues CSS we've found and reported.  Header tags H3, h4, H5 and H6 aren't formatted. Well, their formatted but they don't seem to make a lot of sense regarding the font size or color. Also there is no space before or after lists.  You are correct in that Rhino can change these if directed to do so.

cheers,

Cameron

Thursday, May 17th, 2007 - 1:47 am
  • kdmarks
  • kdmarks's picture

I put up instructions for removing the management box - Remove All Content Styling. You can play around with page.tpl.php and move divs around. You'll have to style your changes, but you probably wanted to anyway. One caution: eventually the style sheets are going to be served from a central place, so create a separate style sheet where you can overwrite existing styles.

Wednesday, May 16th, 2007 - 11:52 pm
  • kdmarks
  • kdmarks's picture

The theme comes without tabs. I re-enabled them for this site. Could you have downloaded a CSS file from this site? That would mess up your theme files--write to me and I'll send you a new zip file.

About the problem with margins and padding on content: Rhino did not style the content, per their contract. If you look at global.css, you'll see the first rule is:

* {
   margin: 0; padding: 0;
   }

That universal selector removes padding and margins from all elements. Every browser has their own default sets of margins and padding. By removing these, you're bringing all browsers back to a baseline of 0. This ensures that if you add, say, 3px of padding around an element, that padding will be displayed the same across all browsers.

Unfortunately (or not), it also means you have to put margins and padding back in around all elements. The most common elelments affected are body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, code, dl, ol, ul. You can plop them into a "Global" section in the CSS file and add margins and padding there.

You can also swipe the code from someone else whose code and abilities you respect and trust. I usually swipe from Eric Meyer because he has an honest face. :) Here's how he puts padding and margins back in--

body {
margin: 0;
padding: 0;
}
h1 {
margin: 2em 0 0.5em;
padding: 0.25em 0;
}
h2 {
margin: 2em 0 0.33em;
padding: 0.25em 0;
}
h3 {
margin: 2em 0 0.25em;
padding: 0.125em 0;
}
h4 {
margin: 0.5em 0 0;
}
h5 {
margin: 0.5em 0 0;
}
h6 {
margin: 0.5em 0 0;
}
p {
margin: 0.33em 0 1em 0;
}
ul, ol, ul ul, ol, ol {
margin: 1em 0;
padding-left: 2.5em;
}
dt {
margin: 0.5em 0 0;
}
dd {
margin: 0.25em 0 0.5em 2.5em;
}
pre, code, tt {
margin: 1em 0;
}

Hope that answers some of your questions.

Friday, January 18th, 2008 - 3:04 pm
  • kgary

In my drupal site (http://deac.asu.edu) I attempted to use the Site Configuration tool to add a new link named "Internships" to my Site Navigation menu. the link was created but when I click on it I get the error trace below.

Also, is there a defect tracking / online trouble reporting system for drupal at ASU or do we go through the same trouble ticket interface that we go through for all IT services? Seems these web application facilities are supported in a different manner?

Thanks, replies to kgary@asu.edu are appreciated

Kevin Gary, Asst Prof., DCS

 

  • warning: Invalid argument supplied for foreach() in /home/deacadm/domains/deac.asu.edu/public_html/home/modules/node/node.module on line 504.
  • warning: implode() [function.implode]: Bad arguments. in /home/deacadm/domains/deac.asu.edu/public_html/home/modules/node/node.module on line 508.
  • user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 query: SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE in /home/deacadm/domains/deac.asu.edu/public_html/home/includes/database.mysql.inc on line 172.
  • warning: Invalid argument supplied for foreach() in /home/deacadm/domains/deac.asu.edu/public_html/home/modules/node/node.module on line 504.
  • warning: implode() [function.implode]: Bad arguments. in /home/deacadm/domains/deac.asu.edu/public_html/home/modules/node/node.module on line 508.
  • user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 query: SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE in /home/deacadm/domains/deac.asu.edu/public_html/home/includes/database.mysql.inc on line 172.

 

 

Kevin A. Gary, Ph.D.
Assistant Professor
Division of Computing Studies
Arizona State University at the Polytechnic Campus
(480)727-1373
http://dcst2.east.asu.edu/~kgary
kgary@asu.edu