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

Organize pages by weight

Hi-

I could have sworn that this was easily possible, but it's not working for me for some reason. Check out our site, and look at the drop down menu's at the top.

Those come from the following code...

Parsing a submitted form correctly

I have the following form (druapl 4.6)

$form .= form_hidden("id", "$node->nid");
$form .= form_hidden("subject", "abccom - print $node->title");
$form .= form_textfield("Your Name", "from_name", "", 40, 128);
$form .= form_submit("Send email");
echo form($form, "post", "process.php");

which appears correctly onscreen. When this is submitted to another normal PHP page to process the elements whenever I read the items they are blank.

$nodeid = "";

if(isset($_POST["id"]))
{
$nodeid = $_POST["id"];
}

Multiple sites, 1 codebase, in subfolders = :|

Hello, all,

I've been wrestling with this one for a few days, and I feel like I must be missing something obvious.

I'm trying to install multiple sites off one codebase, and have the url's appear as if the sites are in subdirectories -- ie

  1. my.domain.com/dir1
  2. my.domain.com/dir2
  3. my.domain.com/dir3
  4. etc

In the past, I have set up multiple sites off one codebase with no problems -- these sites, however, were subdomains (my.domain.com, sub.domain.com, sub2.domain.com, etc)

On this install, I can get a site up and running for the main domain name (my.domain.com) by setting up a directory within sites named my.domain.com with the settings.php file configured correctly.

However, when I change the directory name in the sites folder to "my.domain.com.dir1" and make the necessary adjustments in the settings.php file and try to navigate to "http//my.domain.com/dir1", I receive the following error:

Warning: main(sites/default/settings.php): failed to open stream: No such file or directory in /home/dwf/public_html/comp/includes/bootstrap.inc on line 642

Warning: main(): Failed opening 'sites/default/settings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dwf/public_html/comp/includes/bootstrap.inc on line 642
Unsupported database type

Line 642 of bootstrap.inc is the line that calls for the settings.php file, so it appears that, somehow, the settings.php file is not being seen.

How do I get cron jobs to not show up as guests?

I've seen this discussed several other places but frankly I haven't been able to glean an actual solution.

I have a script pinging cron.php pretty frequently to update the search index. This is causing the number of guests indicated to be artifically high. I tried adding session_destroy() to cron.php but that didn't seem to have any effect.

Any suggestions?

Thanks,

dwh

Inserting 'box' details

How do I acutally put images into the page? I think I'm supposed to use a 'box' but can't find where it is. Also how do you link a page to the navigation bar?

TinyMCE w/ "Full HTML" is escaping all the tags -- why?

I have TinyMCE installed. I have set the site default to use "Full HTML" and I went to admin -> input formats and disabled the "convert line breaks to br tags" filter. That should mean that TinyMCE has free reign to input any tag, right?

Because I tried adding content, and all the tags are showing up on the page. Every tag got escaped.

What did I miss? Is it a config setting somewhere?

-Tony

Pages

Subscribe with RSS Subscribe to RSS - Post installation