This forum is for assistance with theme development.

How can I show the author and creation date on a forum post

Hi,

I'm trying to show the author and the date of a forum node. Although I enabled this feature in the theme setting, they don't show up. Can anyone give me a hint on how to display them?

The drupal forum is not really that great and feature rich... :-(

thx
kai

Suggestion to improve Drupal Themes

I would love to see an option where I can change the theme a non-contributing anonymous user sees, but leave the administration master login theme as the drupal default of "pushbutton."

I think this is good for two reasons...
1) Theme development can be simplified, as many theme elements do not seem to work well when showing the more complex "back end" admin pages. (based on themes I downloaded from the drupal site many fail to properly format this info)

2) User documentation would be consistent, including screen shots

Format Date & CSS

Hey Everyone,

I am trying to create a news block snippet and I have hit a road block as far as themeing the Format Date function using CSS.

I am trying to seperate the Day, Month and Year into their own div, or span.

Here is what I have:
'<div id=\'newsdate\'in >'. format_date($anode->created, 'custom', ' M | Y'). '</div>';

I tried something like this to break apart:

photo/design oriented

Over the last several years I have built a number of sites using Drupal for a professor, and they worked great for his university courses. He could post the latest info, remind students of upcoming deadlines, distribute the syllabus, etc... and the students could comment on the course work, blog, etc...

Now I am considering using Drupal for a number of websites that are not really community based. The types of sites that I would like to use Drupal for include:

Facility: For instance a concert venue, or a hotel where you want to show a lot of images (not thumbnails, but decent size images) with text descriptions. I'm also wanting to build a site to showcase a house for sale.

Portfolio: For a fine artist, to show visual work... paintings, pictures of ceramics, etc...

What I like about using Drupal for these sites is that I can provide the client with a site that they can maintain themselves. These are not community based sites, but the idea of providing dynamic sites not require outside support for minor changes or even page additions is very attractive. It puts the power to manage a website into the hands of the site owner, so they don't have to rely heavily on ongoing support from a web designer.

My problem is that I have yet to figure out a way to create page layouts which nicely display text and photographs, and are configureble (ie every page doesn't have to have an identical layout).

Assigning ID attribute to <div class="form-item"> wrapper

I've a need to hide certain form blocks based on role. However, while the INPUT and LABEL have an ID assigned to them for CSS hiding, the "form-item" wrapper does not. Searching the forums, I found a solution for 4.6 but none for 4.7. So, I did a little hunting around in the code.

The creature in question can be found in /includes/theme.inc ... Line 621.

Replace the first two lines ...

conditional statement based on path and "active" anchor on "my account"

This is a 2 part question.
- Does anyone know how to return TRUE if the user is on a specified path (i.e. "user/register")
- I know that if you send a user to domain.com/user, they get automatically redirected to their account page. However, is there a way to check and return TRUE if a user is in their account area? I'm building a sliding door tabbed navigation, and I want to get an "active" class on "my account".

FYI - I'm not using primary links because I'd like to use nested conditionals - checking path within checking if user is logged on.

Pages

Subscribe with RSS Subscribe to RSS - Theme development