Recent Topics

1 Apr 06, 2009 19:53    

My b2evolution Version: 2.x

I'm working on migrating 30-odd blogs over from blogger (self publishing). I'm customizing a skin to mimic the current layout. So far, so good. What I can't figure out is how to code it to pull in a different header graphic and tracking code for each one.

What I'd like to do is enter a variable into the CSS for the header graphic to simply point it at something like " /media/*blogname*/header.jpg" so that each blog pulls in the header.jpg from its own media directory. I just can't seem to find the variable to plug in there.

Similarly, I have a chunk of html code I'm putting into the footer of each one for Omniture tracking. I need to be able to use a variable to pull in the name of each blog so that I can use the same code on a universal footer, but have it track based on the blog it's loading.

Anybody have a variable name that will work for that? Or is there a different way to do this I'm not coming up with?

Thanks!!

2 Apr 06, 2009 21:02

a lame idea: duplicate skin folder, rename them skin1, skin2....skin30 so that you can style each blog seperately as well as header..

another lame idea: using ; If Blog->ID=1; <img src=header1.jpg /> blog->ID=2; <img src=header2.jpg>.... in body.header.php

these are what i can think of at first sight.. but they arent very good ideas afaic.. there's gotta be a better one that i will remind later, or someone else would suggest

3 Apr 06, 2009 21:15

/media/blogs/[blog name]/style.css == header ;)

¥

4 Apr 06, 2009 21:38

OMG - duh! Thank you yabba! Can't believe I didn't think of that!

Now where exactly would this go? I'm trying to decipher the structure of what I've customized and I've changed enough that I've confused myself.

5 Apr 06, 2009 21:46

tilqicom wrote:

there's gotta be a better someone else would suggest

¥åßßå wrote:

/media/blogs/[blog name]/style.css == header ;)

¥

Am i a seer or what P:

6 Apr 06, 2009 21:50

My apologies for the dumb question - but where exactly do I change this? In which file? I'm pretty well versed in PHP but b2e is new to me.

7 Apr 06, 2009 22:06

Oh wait - I think I get it now. By putting a copy of the style.css into each blog's media folder and checking that setting in the blog setup, it will look for a unique css for that blog. Trying that now. Thanks! (Sorry for the idiotic question.)

8 Apr 06, 2009 22:26

You only need the "changed" bit of css ;)

¥


Form is loading...