<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> &lt;<A href="mailto:larry@garfieldtech.com"> larry@garfieldtech.com</A>&gt; 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" &lt;<A href="mailto:mattiasha@gmail.com">mattiasha@gmail.com</A>&gt; wrote:<BR>&gt; Thanks! I used page-front.tpl.php and it works great. <BR>&gt;<BR>&gt; Although I'd like to have the blocks be side by side on the front page but<BR>&gt; the blocks get put ontop of eachother. How do I make them side by side on<BR>&gt; the front-page?<BR>&gt;<BR>&gt; Cheers! <BR>&gt; /Mattias<BR>&gt;<BR>&gt; On 3/12/07, Larry Garfield &lt;<A href="mailto:larry@garfieldtech.com">larry@garfieldtech.com</A>&gt; wrote:<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; Just check the $is_front variable, which is set on any page.tpl.php (or<BR>&gt;&gt; derivative) template.  That's much more stable than checking the URL<BR>&gt;&gt; directly.<BR>&gt;&gt;<BR>&gt;&gt; Alternatively, use page-front.tpl.php, which automatically gets used for<BR> &gt;&gt; the front page in place of the normal page.tpl.php.  Then simply omit<BR>&gt; the<BR>&gt;&gt; $sidebar_right statement entirely.<BR>&gt;&gt;<BR>&gt;&gt; --Larry Garfield<BR>&gt;&gt;<BR>&gt;&gt; On Mon, 12 Mar 2007 15:16:53 +0100, "Mattias Hällkvist" &lt; <BR>&gt;&gt; <A href="mailto:mattiasha@gmail.com">mattiasha@gmail.com</A>&gt; wrote:<BR>&gt;&gt; &gt; I'm trying to set different front page for anonymous and authenticated<BR>&gt;&gt; &gt; users<BR>&gt;&gt; &gt; using the front page module &lt; <A href="http://drupal.org/project/front">http://drupal.org/project/front</A>&gt;. I'd<BR>&gt; like<BR>&gt;&gt; &gt; the<BR>&gt;&gt; &gt; frontpage to have the header but not the right sidebar. In<BR>&gt; page.tpl.php <BR>&gt;&gt; &gt; the<BR>&gt;&gt; &gt; right sidebar is defined as $sidebar_right. So I thought that I could<BR>&gt;&gt; add<BR>&gt;&gt; &gt; code to check if the url is <A href="http://domain.com/front_page">domain.com/front_page </A> and then not print<BR>&gt;&gt; &gt; $sidebar_right. Or some other solution that doesn't print the right<BR>&gt;&gt; &gt; sidebar<BR>&gt;&gt; &gt; on the front_page.<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; I'm a php novice but I'm learning.. I appreciate any help I can get. <BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; Thanks!<BR>&gt;&gt; &gt; /Mattias<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;<BR>&gt;&gt;<BR>&gt;&gt; --<BR>&gt;&gt; [ Drupal support list | <A href="http://lists.drupal.org/">http://lists.drupal.org/ </A> ]<BR>&gt;<BR>&gt;<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>