This forum is for assistance with theme development.

Block highlighting

Hello,

Ok, my leftcolumn block are getting styled by css. But from time to time I would like to be able to highlight certain blocks using a different colorscheme with an extra css class . Is there a possibility to change that block class in the 'administer' section. Or will I have to write a little module for that?

comment css not working properly

hi,

i have created a comment styling and it works fine by itself but when you put the on top of eachother they overlap a little, but i have no idea why.

does anyone know?

my css code is:

#comment {
	background:#f0f0f0 url(images/comments/dot.gif) 0 0 repeat-x;
	margin:10px 0px 0px 0px;
	color:#666666;
	clear:both;
}
#comment #b {
	background:url(images/comments/dot.gif) 0 100% repeat-x;
}
#comment #l {
	background:url(images/comments/dot.gif) 0 0 repeat-y;
}
#comment #r {
	background:url(images/comments/dot.gif) 100% 0 repeat-y;
}
#comment #bl {
	background:url(images/comments/bl.gif) 0 100% no-repeat;
}
#comment #br {
	background:url(images/comments/br.gif) 100% 100% no-repeat;
}
#comment #tl {
	background:url(images/comments/tl.gif) 0 0 no-repeat;
}
#comment #tr {
	background:url(images/comments/tr.gif) 100% 0 no-repeat;
	padding:10px;
	font-size:11px;
}
#comment h1 {
	font-size:12px;
	color:#333333;
	margin:0px 0px 0px 0px;
	padding:0px;
}
#comment h2 {
	font-size:10px;
	font-weight:100;
	background:#ffffff;
	border-top:1px solid #cccccc;
	border-bottom:1px solid #cccccc;
	padding:0px 5px 0px 5px;
	color:#999999;
	margin:0px;
}

and my html code is

print $title;

Need help:Concerning three problems of layout

hi,all

I have 3 the problem concerning layout toward everyone to ask, thanking!

1.The display problem of latest image

The image node will be the main node of my website, this problem to me very important.

I'll output thumbnail and article title list with image module and views module.

Problem BE:

If submit an article ,the article had no pictures, The Latest images block don't display nothingness, how make to submit an article without picture, let Latest images block can display an thumbnail image of article which has picture in a term ( In before submit of the article )?

To clarify by an example :


1. views module + image module ----->display Latest image of Term A.

2. The Term A already had three articles:

a_3 (no picture)

a_2 (no picture)

a_1 (Have a picture)

3.Now,I submit a new article(a_4), the article had no pictures, Latest image block has no thumbnail display.

4.Hope display thumbnail of a_1 at Latest image block.

2.Display a List View of thumbnail with 2 column

I use Views module and Image module to create a term page of image_node , the views-list-image_list.tpl.php and "function phptemplate_views_view_list_image_list() " of template.php was generated by the views theming wizard,views template to output 1 column of a view.

How do 2 column display?

what is box.tpl??

Hi,

Quite a simple question really but when you don't know... I am building a theme and I know what all the templates files are and do apart from box.tpl. what would this be on the site?

thanks

dave,

Forum Snippet Help

Using Drupal regions I have been able to define two new blocks (above and below content).
I am now trying to do one more block on the forum, that lets display links after the first post.
Since that didn't work through the theme, I tried to replace the previous / next forum topic links with a block.
I tried the following

taking module output into node template

How could I take a module output directly into node template? In this case I need to pick up userreview and taxonomy into node-type.tpl.php. But I have only custom fields there and I do not have a $content variable to render it default way.

The taxonomy seems to be quite easy via $links. But some other module output? Any examples?

Thank you!

Pages

Subscribe with RSS Subscribe to RSS - Theme development