<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">There are php snippets for this kind of thing in the handbook.<DIV><BR class="khtml-block-placeholder"></DIV><DIV>If this is too technical, then you might look at the panels module, which provides a gui for picking and choosing what blocks you display.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Laura</DIV><DIV><BR><DIV><DIV>On Mar 12, 2007, at 12:48 PM, Mattias Hällkvist wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Ok, thanks. But what php code do I use to print a specified block?<BR><BR>Thanks!<BR>/Mattias<BR><BR><DIV><SPAN class="gmail_quote">On 3/12/07, <B class="gmail_sendername">Larry Garfield</B> <<A href="mailto:larry@garfieldtech.com"> larry@garfieldtech.com</A>> wrote:</SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><BR>Each block is just a div. Use CSS to float them left/right, or some other "sideways" method of your choice. <BR><BR>In theory I suppose you could make each a table cell in block.tpl.php and then wrap them in a row/table in the page template, but that would get extremely ugly extremely fast and I don't recommend it. :-)<BR><BR> --Larry Garfield<BR><BR>On Mon, 12 Mar 2007 19:01:14 +0100, "Mattias Hällkvist" <<A href="mailto:mattiasha@gmail.com">mattiasha@gmail.com</A>> wrote:<BR>> Thanks! I used page-front.tpl.php and it works great. <BR>><BR>> Although I'd like to have the blocks be side by side on the front page but<BR>> the blocks get put ontop of eachother. How do I make them side by side on<BR>> the front-page?<BR>><BR>> Cheers! <BR>> /Mattias<BR>><BR>> On 3/12/07, Larry Garfield <<A href="mailto:larry@garfieldtech.com">larry@garfieldtech.com</A>> wrote:<BR>>><BR>>><BR>>> Just check the $is_front variable, which is set on any page.tpl.php (or<BR>>> derivative) template. That's much more stable than checking the URL<BR>>> directly.<BR>>><BR>>> Alternatively, use page-front.tpl.php, which automatically gets used for<BR> >> the front page in place of the normal page.tpl.php. Then simply omit<BR>> the<BR>>> $sidebar_right statement entirely.<BR>>><BR>>> --Larry Garfield<BR>>><BR>>> On Mon, 12 Mar 2007 15:16:53 +0100, "Mattias Hällkvist" < <BR>>> <A href="mailto:mattiasha@gmail.com">mattiasha@gmail.com</A>> wrote:<BR>>> > I'm trying to set different front page for anonymous and authenticated<BR>>> > users<BR>>> > using the front page module < <A href="http://drupal.org/project/front">http://drupal.org/project/front</A>>. I'd<BR>> like<BR>>> > the<BR>>> > frontpage to have the header but not the right sidebar. In<BR>> page.tpl.php <BR>>> > the<BR>>> > right sidebar is defined as $sidebar_right. So I thought that I could<BR>>> add<BR>>> > code to check if the url is <A href="http://domain.com/front_page">domain.com/front_page </A> and then not print<BR>>> > $sidebar_right. Or some other solution that doesn't print the right<BR>>> > sidebar<BR>>> > on the front_page.<BR>>> ><BR>>> > I'm a php novice but I'm learning.. I appreciate any help I can get. <BR>>> ><BR>>> > Thanks!<BR>>> > /Mattias<BR>>> ><BR>>> ><BR>>><BR>>> --<BR>>> [ Drupal support list | <A href="http://lists.drupal.org/">http://lists.drupal.org/ </A> ]<BR>><BR>><BR><BR>--<BR>[ Drupal support list | <A href="http://lists.drupal.org/">http://lists.drupal.org/</A> ]</BLOCKQUOTE></DIV><BR><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">--<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">[ Drupal support list | <A href="http://lists.drupal.org">http://lists.drupal.org</A>/ ]</DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>