Recent Topics

1 Mar 17, 2010 16:09    

My b2evolution Version: Not Entered

Hi,

What is the easiest way to retrieve the blog id for the current blog? I am trying to set the id of the html body tag to equal the current blog id.

Something like this:

<body id=<$php  echo  $curr_blog_ID  ?>>

Any suggestions?

Thanks!

2 Mar 17, 2010 16:30

never mind, duh...

this works:


<body id="<?php echo $Blog->disp( 'ID' ) ?>">

3 Mar 17, 2010 17:39

note id and class names cannot begin with a number ;)

<?php
echo '<body id="blog_'.$Blog->ID.'">;''."\n";
?>

¥


Form is loading...