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

delete comment

hi,
i wanna know how owner of the node can delete comments...if someone write a blog and then see bad comments in his blog, can he delete comments???

Click on smiles instead of using text

is there any way to make a smile in the smiles block a link that places it into a text box? Similar to phpbb style, instead of using acronyms.

Atom

When I use atom and validate it's feed, I get the error

line 9, column 21: id must be a full and valid URL (15 occurrences) [help]

    node/view/258

Not that it bothers me, but the feedvalidator gives the above error. Everything else is valid. I just installed 4.4 and this started. In 4.32, it worked perfectly and my feed was always validated right. Also when I turn ON html_tidy module, I get errors when I syndicate in ATOM and I think RSS. Maybe it's just me.



Thanks a lot.

Vishal
. Check my 4.4 install rocking vishalshah.org :)
Drupal is the coolest

page.module giving me hard time

In page type I added an include(); to the body section and selected PHP not html.
Below is the warning I get. It displays the output of my code but still that warning is on top of it. What am I doing wrong?

Thanks

warning: Unknown(): stream does not support seeking in /home/blah/public_html/modules/page.module(129) : eval()'d code on line 1.

Module Testers Wanted: Email This Page

Hi,

if any of you have the time, i'd be most gratefull if you would download, install and try out the emailpage.module

It works great for me on a couple of sites, but I'd love to get feedback, suggestions and bug reports.

What does it do?

This module adds a link to the navigation, and to every FULL node (not the main page teasers) to the emailpage script. Then users can send any page to a friend easily. (at least in theory hehehe!)

Recent blogs block

I have created another block for my site, so I thought I'd post it here in case anyone was interested.

It shows the last 3 blog entries for each of the last 3 users who have posted blogs.

So not only does it show you some recent blogs, it also encourages people to blog more often (to get their name pushed up the list).

It's relatively simple to change it to show the last x entries by the last y users.

Anyway, here's the code:

global $user;

if (user_access("access content")) {
  $blogs = "";

  $queryResult = db_query_range("SELECT n.uid, u.name, max(n.nid) FROM {node} n INNER JOIN {users} u ON u.uid = n.uid WHERE n.type = 'blog' AND n.status = 1 GROUP BY n.uid, u.name ORDER BY 3 DESC", 0, 3);

  while ($node = db_fetch_object($queryResult)) {
    $blogs .= l(t("<h3>%username</h3>", array("%username" => $node->name)), "blog/$node->uid", array("title" => t("Read %username's latest blog entries.", array("%username" => $node->name))))
      . node_title_list(db_query_range("SELECT n.title, n.nid FROM {node} n WHERE n.type = 'blog' AND n.status = 1 AND n.uid = " . $node->uid . " ORDER BY n.nid DESC", 0, 3));
  }

  return $blogs
      . "
". l(t("more"), "blog", array("title" => t("Read the latest blog entries."))) ."
"; }

Pages

Subscribe with RSS Subscribe to RSS - General discussion