This forum is for assistance with theme development.

Disable certain editing features via the theme. Is this possible?

hello.

i'm attempting to remove certain aspects of the standard edit form [ ie node/nid/edit ] form based on user_role and theme. however, i'm not certain where i can do this. if i print all variables available to the hook type 'page', then $vars['content'] is already filled with each of the form elements. i would like to be able to filter these based on a custom criteria [ or pre-fill the values as hidden fields ].

would anyone have any thoughts on this?

thank you in advance.

Any theme with high usability?

I have browsed through a large fraction of the available themes, and have not found any that satisfies substantially all or most of the usability recommendations that you can find here:

http://www.useit.com/alertbox/9605.html

On the above web page look also at the "Other Top-10 Lists" section and all the links in that section. Can anybody recommend a theme that comes somewhat close? Besides an occasional failure to validate, some common un-met goals in existing themes are:

  • Nain content text is black-on-white. Links can be easily distinguished from non-link text. Followed links can be easily distinguished from not-followed links.
  • Text flows to fill the screen and no sideways scrolling is necessary
  • Most of the screen is used to display main content. Menus and sidebars take up much less space than the main content, even when using an 800x600 screen and Opera and magnifying text size with control-scrollwheel.

And oh, it would also be nice if the theme that I can find uses non-scrolling sidebars (using the "position:fixed" feature of CSS, without JavaScript), so they remain fixed in place as the main content scrolls up and down. For an example of this visit the following URL with Opera or Firefox:

http://www.w3.org/QA/Library/

(It appears that you can fool IE into doing this too; see: http://www.cssplay.co.uk/layouts/fixed.html .)

Need help with my theme look

Im have ran into a wall, Im new to drupal, just upgraded to 4.7. I like the look of my site with firefox but it looks like crap in IE. My question is, how do i get the theme to look the same in every browser. I did some searching but I cant find anything to help me with this.

Here is my site: http://bikerpunks.com

Thanks!

New theme avaiable for download on Drupal.org

Hi

I just thought I'd mention that I've made and released a new theme for 4.7. It's called Fern, because it's got ferns in it.

It's a 3-column CSS theme which makes only the minimum possible number of alterations to Bluemarine. Its layout makes unaltered use of the output of Alex Robinson's One True Layout generator and therefore can be simply replaced by the site admin.

returning index information of the menu array

Hi Everyone,

I'm new to drupal and this is my first post in the forum. I've searched long and hard for an answer to this and I haven't found anything. I apologize in advance if maybe I didn't search long enough or used the proper keywords to get the answer I'm looking for.

Here is what I'm trying to do.

I'm using 4.7, apache, and a MySQL database, I'm developing my own theme and have based it on the phptemlate engine. For this theme I've got a menu and I've customized the menu_tree, menu_item, and menu_item_link functions to return my menu in an unordered list (so I can style it to the design I've been presented with).

What I'd like to do is be able to find out where I am in the menu array each time the menu_item function gets called. I need to know if I'm at the first index of the array, in the middle or at the end of the array (because I need to spit out different HTML code depending on where I am).

Here is an attempt at an example of what I'm trying to get as an end result:

I've got a menu I've called Main_Nav, simple enough array.. should be something like:

Main_Nav["Home","About Us","Forum","News","Contact Us"]; (though I'm sure it's multi-dimensional and significantly more complicated than that, but you know what I mean)

Drupal builds this:

  • Home
  • About Us
  • ...

page.tpl.php is updated to 4.7? A Quick Question

Hi, I'm new to theming on 4.7.

Is the document below cometible to 4.7 version of Drupal? The website only says: Drupal 4.5 or older Drupal 4.6 at the first line.

http://drupal.org/node/11812

Any help would be appreciated.

Pages

Subscribe with RSS Subscribe to RSS - Theme development