Help with $content - removing it takes away ability to edit page - HELP!

Okay - long story short. I am editing a content type for a page to customize the output.

I removed print $content and the added print specific fields --
print "<div style='margin-top: 40px;' id='instructor-course-listing'>" . $node->content['body']['#value'] . "</div>\n";

Well, when I do that I can not edit the page. Why is that? and how can I edit the output of $content without losing the edit capability?

Please help, this is beyond me and I am not finding anything to help figure it out.

Specific search process in Drupal not working

Fuzzysearch seems to be working fine and what I'm guessing is the default search is working fine.

I have a search for distributors that carry parts which returns data in a View, but not when a specific product number is entered into a search box. The action on that forms submit button is /inventory.

There is a block with some php code in the Block Body field:

<?php
if (arg(0) == 'node' && is_numeric(arg(1))) {
$nid = (int)arg(1);
$node = node_load($nid);
$title = $node->title;
} else if ($_SERVER["REDIRECT_SCRIPT_URL"] == "/inventory") {
$title = filter_var($_GET["part_number"], FILTER_SANITIZE_STRING);
echo '


Enter part number to search the inventory of our distributors.

';
echo "


Inventory results for: " . $title . "

";
}

if ($title) {
// create curl resource
$ch = curl_init();

// set url
$url = "http://stkcheck.com/evs/coname/coname.asp?mfg=conamemicro&part=" . $title;
curl_setopt($ch, CURLOPT_URL, $url);

//return the transfer as a string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

// $output contains the output string
$output = curl_exec($ch);

Form error message is not showing

Hi,

I have a form page where the form error message are not showing but when I write print_r($form); then only the form error is showing. Why the form error message is not showing?

how to enter the adminpage once login to drupal , not to the site homepage

i need to know how to enter to the adminpage of any drupal site once i login, now i set a new site and once if i login using the admin credentials, its takong me to the site homepage with the logged in, really i want to see the graland adminpage once i login to the site, not the actual site homepage, how its possible?

FileField 6.3.11 question

I am trying to create a view in D6 (ver. 6.3.11 of FileField) that will display the Description of the uploaded File. Not the file name. There doesn't appear to be a field available in the view. I have also tried to find a suitable Replacement Pattern for this info but all that come up are:

Fields

[filename] == File: Name
[icon] == File: Icon
[filesize] == File: Size
[timestamp] == File: Upload date
[filename_1] == File: Name

Is it even possible in D6 to make a view with the Description of the uploaded file and not the file name?

SMTP/PHPMailer Issues

Hello,

We've had our site up for a few years now. Within the last few days, we've noticed that email was having difficulty sending from our site. Particularly when using webforms.

We are running Drupal 6.25 and I have both PHPMailer (6.x-2.2) and SMTP Authentication Support (6.x-1.1).

We are using our internal exchange server as our SMTP server. (ie. smtp.example.ca)

============================================================
When attempting to send a test message from the SMTP Authentication Support, I receive:
•Sending of at least one e-mail failed. The error returned was:
SMTP error: data not accepted.
•Unable to send e-mail. Please contact the site administrator if the problem persists.

Recent Log Entries shows me:

Type smtp
Date Thursday, May 9, 2013 - 15:33
User example
Location http://www.example.ca/admin/settings/smtp
Referrer http://www.example.ca/admin/settings/smtp
Message Could not locate PHPMailer library.
Severity error

The mail DOES reach the recipient. Both to any internal address (@example.com) and external address (@gmail.com)
============================================================

============================================================
When attempting to send a test message from the PHPMailer module, I receive the following message:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x