Closed (fixed)
Project:
Front Page
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2008 at 21:56 UTC
Updated:
30 Jul 2008 at 07:12 UTC
Hi. I can't get Front Page to execute PHP statements when I put them in the textarea block and set that block as the homepage for authenticated users. Specifically, this block is a customized page.tpl.php from the Marinelli 1.7 template. I am trying to get two sidebar columns to display only on the front page of my site, so I thought that a custom page.tpl.php was the way to go. Regular text, but not PHP calls, will work.
Can someone help me with this? I even tried the most basic function, phpinfo(), and it didn't work.
Comments
Comment #1
Phillip Mc commentedI'm confused. Are you pasting a customised page.tpl.php file into your front page settings for anon users?
Surely not?
Comment #2
archer007 commentedNo, authenticated users only. Anon users don't get to see any nodes at all. The trouble is that Front Page is working but apparently cannot execute PHP. I'd like to know if this is by design or error.
Comment #3
Phillip Mc commentedtry this:
on the settings page for the front page.module, paste the following snippet into the text area provided for anonymous users:
Comment #4
archer007 commentedYeah, I wasn't allowing embedded PHP. I didn't see the checkbox for some reason.
Comment #5
Phillip Mc commented