This forum is for assistance with theme development.

'Theming' RSS items

I have the following situation:
My customer wants, that content creators/editors stay anonymous to the public. While it is no problem to hide the information in HTML, I can't seem to figure out how to alter or hide the dc:creator tag in RSS, without modifying Drupal's core code.

Adding flash instead of an image

I was wanting to know are you able to use a flash file instead of an image as the main banner logo on your frontpage? I guess maybe in all drupal themes you can only use an image. I ran across a theme called Purple_Beauty which I really like. The image up top is really big. The layout is real good to have a flash file up top instead. I just can't seem to use a flash file. I even went in the css file and replaced the image with a swf file but it would not work. If you go to jaymediaspot.com you could see how nice the theme is.

Displaying only X number of nodes per category in Teaser View.

Currently I have a View setup to display nodes of certain categories (ie. Filter - Field is set to Text: Category (field_market_category)...to which a few Values are selected.). So it displays all nodes that match those category values. The thing is, I only want to display the X newest of each category. I don't see any direct way to do this in Views, but I figure there is some way I could do this. I've searched a lot, but surprisingly haven't found any other posts on doing something like this.

How could I go about doing this? Either through theming Views or something else.

moving My blog to Primary links - Problem!

When I move My blog to Primary links it also shows up in secondary links when I click on the primary link and I just wonder why?
How do I control what shows up in secondary links?

Im using the Zen theme

Theming the username display properly...

Hello,

on my site, users are required to enter their first name and their last name. I would like to completely fade out the arbitrary login names and have the users real names displayed site-wide. My approach was to theme the theme_username(...) function but somehow, it is only working occasionally, randomly. I cannot precisely point at when and why it's working and when and why not, but for some views/some users/some occurences I get the full name, other times I am left with the username. Please see my themed function below, I know it's not very well coded - I am not a very good coder yet ;-) Maybe somebody spots a mistake that I can't find, or has another helpful idea?

Thanks in advance for having a look...

<?php

function myTheme_username($object) {

if ($object->uid && $object->name) {

// Check for the availability of the user's full name

if(!empty($object->profile_firstname) && !empty($object->profile_lastname))
$name = $object->profile_firstname.' '.$object->profile_lastname;
else
$name = $object->name;

// Shorten the name when it is too long or it will break many tables.
if (drupal_strlen($name) > 20) {
if(!empty($object->profile_lastname))
$name = substr($object->profile_firstname,0,1).'. '.$object->profile_lastname;
else
$name = drupal_substr($name, 0, 15) .'...';

Expanded Child Float/ "Tree Style Align" Problem

Hi All,
Basically, I have a navigational menu with links that can be expanded to show child (or sub) links. Aesthetically, I was wondering if it was possible to have it so that when the link was expanded, the expanded item didn't float out to the right (forming a sort of "tree"). I've attempted to play around with the css, but at most I've been able to move the parent link, which also moved the expanded link to attempt to line it up at the side of the page. What this then did was line the expanded up at the side of the page, but cause the parent to be floating way to far to left, ending up on the outside of the page.

For a reference, I have posted an image of the problem that is occuring when the expanded is simply floating to the right.

http://www.freewebs.com/jrgirard/expandedchildtree.png
(the red lines are to illistrate how it is supposed to be vertically aligned)

Below, is also the css code for the nav menu


ul.menu {

}

ul.menu li.expanded, ul.menu li.collapsed, ul.menu li.leaf {

width: 133px;
height: 54px;

}
ul.menu li a {
display: inline;

}

ul.menu li.expanded {
background-image: url(navtab.png);
background-repeat: no-repeat;
list-style: none;
display: block;
margin-left:-16px;
padding-left:24px;
margin-top:-18px;

}

ul.menu li.leaf {

margin-left:-16px;
padding-left:24px;
margin-top:15px;

Pages

Subscribe with RSS Subscribe to RSS - Theme development