Recent Topics

1 Apr 22, 2004 17:35    

This is a really simple hack that I did when a graphics guy gave me a handful of banners for my school web. I picked my favorite, but my favorite woman picked a different one so I needed to use both somehow.

<h1 id="pageTitle"><img src="http://mydomain.com/img/mybanner<?php echo $blog ?>.jpg" alt="<?php bloginfo('name', 'htmlbody') ?>" width="750" height="100" border="0" class="middle" /></h1>


I have 4 banners to choose from so I sorted out where I wanted them and then renamed them to cover all my blogs. Now to get a graphical friend to make banners focused on the content of each blog...

It's the whitesandshanggliding blog from my sig file if you want to look.

2 Jul 09, 2004 13:15

Hi,
this looks nice. But works this in 0.9.0.9 too? And where I must place this code?

ed

3 Jul 09, 2004 22:29

Yes. In _main.php in your skin.

Ed, I always see that url, and my eyes see "Whites and Shang Gliding", and I think "Who are Whites and Shang?"

4 Jul 10, 2004 00:48

isaac wrote:

(?)

Ed, I always see that url, and my eyes see "Whites and Shang Gliding"...

Ed? Ah, EdB! :D

I saw this too and was thinking about its meaning ? I thought sth like "White Sand Shang Gliding" and was a little bit confused until I saw it. :D

ed

5 Mar 05, 2005 21:21

I'm using kubrick2evo and can't seem to get this code to work to display a custom header image for each blog. In kubrick2evo (_main.php), this is the relevant piece of code:

<div id="header">
<h1>
<a href="<?php $Blog->disp( 'blogurl', 'raw' ) ?>"><?php $Blog->disp( 'name', 'htmlbody' ) ?></a>
</h1>
<div class="description"><?php $Blog->disp( 'tagline', 'htmlbody' ) ?></div>
</div>

I think one of the problems is that the header image is called as a background in div#header in the stylesheet. Is there a way to dynamically call a div background? Can anyone offer some suggestions?

jj.

6 Mar 06, 2005 18:42

Actually, how about generating the div ID itself via php, based on the blogname... then creating a separate CSS style for each div ID... Problem is, I don't know enough php yet to generate the ID names for the divs.

Would something like this work? (Relevant piece in the first line)


<div id="header<?php echo $blog ?>">
<h1>
<a href="<?php $Blog->disp( 'blogurl', 'raw' ) ?>"><?php $Blog->disp( 'name', 'htmlbody' ) ?></a>
</h1>
<div class="description"><?php $Blog->disp( 'tagline', 'htmlbody' ) ?></div>
</div>

[edit: woohoo! It works.]

jj.


Form is loading...