This forum is for assistance with theme development.

Total New Comments / Topics? tracker.module?

Hello all,

I am trying to implement a status bar on my front page that can list the total new topics and comments for each user. I cant seem to figure out how to do this, though. Does anyone have any suggestions? I dont want to list the title for each, but rather just the total number of each category across all forum boards.

Thanks,
Mike of Sighing Sage

Themes and Views - A little lost

I've been reading the handbook and forums all afternoon working on trying to get my views, using the views module, to be displayed differently. I'm a little lost as to where to put the code to affect the change.

I created my own theme and in that theme folder I have a template.php file. Do I put a function in that file or does it go someplace else?

While researching I saw this code and see the CSS for layout display, but I can't find how I change the classes such as div class='view-label view-label-$field[queryname]' to change the format for my item and fields. Do I add a CSS style to my style sheet that's in my themes folder? If so, what do I name it?

I only need to show the title and the start time for an event, but it shows up on 2 lines with the title indented and the field outdented. I would like either one line or the opposite - title outdented, field indented.

THANKS for the help!

<?php
/**
* Display the nodes of a view as a list.
*/
function theme_views_view_list($view, $nodes) {
$fields = _views_get_fields();

foreach ($nodes as $node) {
$item = '';
foreach ($view->field as $field) {
if ($field['label']) {
$item .= "

" . $field['label'] . "

";
}
$item .= "

" . views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node) . "

";

Displaying the parent title

Hello,
I was wondering if there is a way of displaying the parent title? Is there some PHP that I could inject into my page.tpl file that can do this?

What I mean by this is if you have a sub-section lets say "Contact Us" under the parent-section "About The Company" it would show up as:

About The Company

Contact Us

PHPTemplate

hey people.

it didnt took me long to develop my own Theme.
But i have a little problem I have installed phptemplate, and scripted my theme.
However phptemplate refuses to show my primary and secondary links.
I also uploaded argeebee-4.6.0 Theme wich also works with phptemplate and here to it dont show my links :S
This is my Theme code:


Only local images are allowed.

print $breadcrumb
if ($title != ""):

print $title

endif;

Block display only if no other blocks in sidebar

I'm new to both Drupal and php, but have nearly finished my first site - very happy! I have searched the forums and handbooks and found lots of similar things, but still haven't managed to figure out the answer. It seems to me that it should be fairly simple and I am just missing something!

I wish to use the (4.7) functionality to use php to set block visibility settings so that a custom block will display only on any pages that do not have any other block displayed in the left sidebar.

Friendelectric language switcher - list problem

Hi, I'd like to use this theme but has one little annoying thing, that the language switcher lists flags and language names too in separate lines, so having 2 languages is a list of four, and looks bad as if there were 4 lang.s. All the other themes display the flag+name in one line, not in two.. I checked the paragraph containing this part and its the same in all other themes, and have only two "li" elements and only a space between a flag and country name, so I dont understand why Friendselectric makes a four line bulleted list when theres only 2 list items in the code.

Pages

Subscribe with RSS Subscribe to RSS - Theme development