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

Survey for 4.7

Is there any, or any other method to let a user creat his out form for other user to fill (and collect the answers) ?
tnx.

Give users editing permissions for Bookreview module?

I've been through the forums, all over google and even raided the "issues" of the bookreview module to no avail. My users are not given permission to edit the bookreviews they submit, even though I have tweaked the code to technically allow that.

Does anyone know of a fix or a patch or at least a reason why it is behaving this way? Others have had this problem before me, but their requests went unanswered in the issues area.

Bookreviews are also set to wait in the submission queue when they are submitted. Thought I'd add that for triva.

file download

I have an MP3 file and I want to send to to the user's browser. What is the most drupalish way of doing this?

ATM I am trying this one out:

Rebuilding node_comment_statistics

One of my sites recently got a heavy dose of comment spam from an anonymous user who found his way around spam.module. Since deleting comments one by one was way too much hassle, I ended up deleting the comments through a simple MySQL call, directly to the database, screwing up the comment counts etc in the node_comment_statistics table.

I had a look around drupal.org but could not find info on manually rebuilding the node_comment_statistics table, untill I found some neat MySQL calls in the wp2drupal script on ninjafish.org.

Here's a working excerpt I used, and I hope someday it saves someone's node_comment_statistics. To run this script, I created a new page with a user with PHP input permissions. I did not actually post this page to the site, but used 'preview' to execute the PHP statements.

Be sure to back up your database before executing the PHP below!

<?php
db_query("DELETE FROM node_comment_statistics");

$nodes = db_query("SELECT DISTINCT nid,max(cid) FROM comments GROUP BY nid");
while ($m = db_fetch_object($nodes)) {
$nid = $m->nid;
$cid = $m->{"max(cid)"};

$lastcomments = db_query("SELECT uid,name,timestamp FROM comments WHERE cid=$cid");
$n = db_fetch_object($lastcomments);
$uid = $n->uid;
$name = $n->name;
$timestamp = $n->timestamp;

$counts = db_query("SELECT count(*) FROM comments WHERE status=0 AND nid=$nid");

5 Latest flexinode blocks

What code should I use in a block to show 5 latest flexinodes with the choosen types of fileds?

How would you make a "Q&A" style system?

Thinking hats on? Good...

What modules and tools would you use to make a "Ask Metafilter" style node for Drupal?

Can you point me to a Drupal site that is geared up for just Q&A?

All comments really appreciated.

Case.

Pages

Subscribe with RSS Subscribe to RSS - Post installation