This forum is for less technical discussions about the Drupal project, not for support questions.

Cron not executing...

OK, I have a cron job setup to run wget http://mydomain.com/cron.php every few minutes. And the cron job is being executed by Linux on schedule. The only problem is that for some reason or another cron.php does not do anything (not even generate the "run complete" message) when invoked via either wget or mozilla. But oddly enough when I manually invoke it from IE, it works fine. Any clues as to what could be causing this? Drupal 4.32 is running on a Fedora Linux box with Apache 2.x.
Thanks!

Radi Shourbaji

How to include latest stories titles in mission statement

Hello,
I was wondering how to include latest stories (just titles and selected taxomomies) in the mission statement.

Thank you,

FOAF module for Drupal?

Someone mentioned in Orkut a "(not much publicized) foaf.module". I asked there for this module but got no answer. Searching "FOAF" in drupal.org gives no results, although there is a project started called Profile.module -> Leveraging profile info. for social networking capabilities.

How to change the urls

how could I change this: http://www.mysite.com/node/view/11
to this"http://www.mysite.com/articles/view/11
Instead of "node", i want to use "articles"
and how could I change this:http://www.mysite.com/taxonomy/view/or/1/
to this:http://www.mysite.com/w-parts/view/or/1/

Subscriptions to selected forums?

Is there a problem with the hosting service which makes it problematic for the drupal site to activate subscriptions/notification for forums?

Subscriptions is available in some project areas but not having it available for registered users on the forums is a real time-stealer.

-GZ

Google API Block Example

Recently I went looking for a snippet of PHP that provided access to Google's Web Services API, so that I could have a block on my blog which automatically generated google search results based on the page title (or whatever).

I found one, but it didn't work. I fixed it and set it up as a Drupal block; here it is:

// requires PEAR SOAP client
include("SOAP/Client.php");

// Adjust query to suit your purposes.
$sql = "SELECT title FROM node
        WHERE type='blog' AND promote=1 AND status=1
        ORDER BY created desc limit 1";
$obj = db_fetch_object(db_query($sql));

// first, try and use page title
// note that when reading a blog or story node, the page
// title is the node title.. so
$qstr = drupal_get_title();

// if blank, skip the block
if ($qstr == '')
  return;  // or apply a default $qstr = 'something';


$output = "Google results for '".$subj."':

"; // Adjust the query prior to SOAP call... $qstr = $qstr . ' -mydomainname'; // recommend excluding your domain name $key = 'googleapikey'; $s = new SOAP_Client('http://api.google.com/GoogleSearch.wsdl'); // Adjust further parameters here (see google for docs) $parameters = array( 'key' => $key, 'q' => $qstr, 'start' => 0, 'maxResults' => 10, 'filter' => false, 'restrict' => '', 'safeSearch' => false, 'lr' => '', 'ie' => '', 'oe' => '');

Pages

Subscribe with RSS Subscribe to RSS - General discussion