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

search.module, can it handle indexing 30,000 nodes?

Hello,

I had to shut search.module off because it was chewing up so much ram. Although being cron'ed every 2 hours it was not finishing it's cron job and was killing our server. And, when a search is done, it has to search through a very large search index which has over 2 million rows. So, a search would sometimes take 30 seconds or more just to get results. This is not efficient. I think the whole, creating a temp table is a bad thing for this module. Does anyone have any solutions.

I am using 4.7, and mysql innodb engine.

Thanks

News Archive

Currently I'm building a news website and trying to create a news archive. However with the default archiving system, I don't know how to make the archive with the news only. Everytime I submit a blog entry or any static content (like contact us), it will appear in the archive as well which I don't want it to be.

How to archive the news catergory only but not other nodes? Or is it possible to archive the nodes base on catergories? Is there any module for that?

Thanks in advance.

SimpleNews maximum reasonable list size

What's the largest list people have seen Simplenews handle effectively? Would it be nuts to push out 300,000 emails using Simplenews (assuming I add in sufficient bounce handling with a separate module?).

Auto contextlinks in nodes/posts?

Is there a module or something out there that can automatically create hyperlinks out of certain words that are posted in Drupal?

Roles on Profiles

How would one get the users role(s) to show up on their profile?

Tutorial: Using php and curl to automate drupal tasks such as node adding or user adding

A while ago I posted on my website how I was using php and curl to do automatic image uploading to Drupal and geolocating images. Some people requested the script, others arrive there from Google by searching about the same thing, so here is a small tutorial on how to do it.

First of all you'll need the libcurl extension to php installed. The code snippets I'll present here might work if you'll convert them to Snoopy, but libcurl is faster.

What we'll do: we are going to login into Drupal and we are going to perform different operations.

1. Logging in
The first step is to log in. We're going to send the credentials using POST to the /user/login page of our Drupal website. The trick here is to capture the cookie sent by the server to use it later.

Let's init curl and set some options: the site we're going to use along with the login page and a file on our server which will store the cookie. Be careful, the user that the webserver runs as needs to have write access there. CURLOPT_POST tells curl we're going to use POST to send form data.

$crl = curl_init();
$url = "http://www.example.com/user/login";
curl_setopt($crl, CURLOPT_URL, $url);
curl_setopt($crl, CURLOPT_COOKIEFILE, "/tmp/cookie.txt");
curl_setopt($crl, CURLOPT_COOKIEJAR, "/tmp/cookie.txt");
curl_setopt($crl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($crl, CURLOPT_RETURNTRANSFER, 1);

Pages

Subscribe with RSS Subscribe to RSS - Post installation