This forum is for assistance with theme development.

Randomized (text) Quotes

I'm creating a website in which I want to use random quotes in the front page. I've got the front page all set up right now in a page-front.tpl.php with some static html and some php in it.

Right now the quotes are part of an image, and I'm using this code:

    $total = "15";
    $start = "1";
    $file_type = ".jpg";
    $image_folder = "themes/custom/ISUentomology/quotate";
    $random = mt_rand($start, $total);
    $image_name = $random . $file_type;
    echo "<img src=\"$image_folder/$image_name\" alt=\"$image_name\" />";

This works fantastic, but I want to have the image be a background rather than having to change out the image every time. I had done it this way b/c I knew how to do it. I want to cut down on reload time and just have the image continuous and the text change on top of it. I downloaded the quotes module, and I can't get it to let me add quotes to it. I understand how that works, but I would need whatever I end up using to be portable since I'm developing on a different computer than the finished site will go on.

This is what the page looks like:
http://www.public.iastate.edu/~chimes84/Picture%205.png

The butterfly (and field) image is where I want the quote to go (as shown). This is currently implemented as a table cell. I want the quote to go in that table cell and use the image as a background via CSS.

how to make exposed views filter look like an advanced search look?

Good Day,

I am currently new to the views module and would like to know

1. Right now my exposed filter is lined up in a row and overlapping the right-side column. I have tried the theme wizard but it doesn't work. Is there anyway I can have this wrap in the content area of the page?

2. How I can make the exposed filters look like an advanced search block?

Setup is

Teaser view

exposed filters are

Specific template for each blog

Is there a way to use a different template for specific user blogs? I mean, for nodes and frontpage of each blog. For example, the Alfred's Blog would use the template 1, Norman's Blog would use the template 2, etc. Each time you accessed the frontpage or any node of the Alfred of Norman blog, the template would change accordingly.

Any clues? Thank you.

Adding human-readable name of content type in template

I would like to add the human-readable name of my content types in my nodes, but I can't find the right variable. Any clues?

Customized Blocks feeding in Teaser Txt and imgs

I'm currently updating our University's Entomology website, and have the layout pretty much the way I want it.

how to write template file for union/intersection of terms

page-taxonomy-term-2.tpl.php is used as template of term/2
how i can make file for term/2,3 or term/2+3 intersection and union of terms

Pages

Subscribe with RSS Subscribe to RSS - Theme development