Drupal is up and running but how do I ...?

Static PHP pages

Hi, I would like to keep some pages outside of drupal, the main reason is that these pages shall not be considered as "content", and also because i want to keep some pages on disk instead of DB (may sound weird.. but i prefer this way..).

Another reason is that i don't want the "Submitted by... " line on static pages.

I've written this test php script that seems to work fine:

<pre>
&lt;?php
include_once "includes/bootstrap.inc";
include_once "includes/common.inc";
menu_build("system");

$out = &lt;&lt;&lt;&lt;EOT

&lt;h1&gt; Title &lt;/h1&gt;

&lt;p&gt; This is the body of the page...
&lt;/p&gt;

EOT;

print theme('page', $out );
?&gt;
</pre>

There's a better way to do this? Should I create a module for every page?

Is there a flaw with revisioning and publishing?

I want users to be able to able to edit and revise( ie saving the work, closing the browser, coming to continue later) articles to their satisfactoin before publishing them. But it seems this is not possible. Articles seem to get posted as soon as they finish them.

When I grant the right to administer nodes, they are able to access any node, whereas I want them to edit theirs only.

Is there a fix for these issues?

Menu Module

Is anyone sucessfully using the menus module?

I am struggling a bit with menu behavior.

If the main menu item has a URL associated, it will not expand to reveal it's sub-items. The page associated with the menu comes up but the menu does not open up.

Separately, if an item (or sub-item) does have a URL associated, when it is clicked the whole menu structure collapses instead of staying open.

php in block

I am having trouble in writing php in creating a new block.
When I click on create a new block, my body has the following code:

&lt?php
   $ip = $_SERVER['REMOTE_ADDR'];
   $fullhost = gethostbyaddr($ip);
   $host = preg_replace("/^[^.]+./", "*.", $fullhost);
?&gt

IP address &lt?=$ip?&gt | Host: &lt?=$host?&gt

So that It shows the IP and host of the client browser. But I am getting the following error

Parse error: parse error in /var/www/drupal/modules/block.module(81) : eval()'d code on line 1

What am I doing wrong?

Thanks in advance

What is the title module?

What is the title module?

Queue not functioning

I've searched for "queue" in the forums but haven't found anything similar to my problem:

I just enabled the queue module and gave everyone (including anonymous users) the ability to create stories.

The problem is that when an anonymous user creates a story it is posted directly to the front page instead of going into the queue as I would expect it to.

Am I missing the obvious here? Why don't their submissions go into the queue? (BTW, when I click on "View submissions" nothing is shown)

Thanks!
-Mason

Pages

Subscribe with RSS Subscribe to RSS - Post installation