See the Mailing lists or Drupal Issue queue. There are also various working groups on groups.drupal.org

Commenting on Php nodes

Hi everyone,

I need help... I am making a page with PHP format. In this node I view items based on the ID obtained from Post (or get method). I want to put comment on it that whenever I make a comment the comment goes to that certain item and not to the node. Because for example when I make a comment on item 1 and make a comment on item 2 the 2 comments that I made appears on both items.... How could I make it that comment 1 goes only to item 1 and comment 2 goes only to item 2, etc...

Thanks a lot in advance.

John Ross C.

Trailing slash in URLs (converting from wordpress)

Hi, I'm converting my site from wordpress, I know it's not drupal's fault for stripping trailing slashes but my site has categories with a trailing slash and posts without one.

Now, any friendly URL with a trailing slash does not work in Drupal because of this in includes/path.inc:

function drupal_init_path() {
if (!empty($_GET['q'])) {
$_GET['q'] = drupal_get_normal_path(trim($_GET['q'], '/'));
...

Is it safe to remove the trim. I checked a few different types of pages and they worked :-) but that's not a very thorough test.

How to remove the users' blog link

My user on my site wanted to get rid of the link "user's blog". I was searching but couldn't find anything.

Until I found this post:

http://drupal.org/node/182056.

This is the code you need in your template.php:

<?php
function phptemplate_links($links, $attributes = array()) {
	unset($links['blog_usernames_blog']);
    return theme_links($links, $attributes);
}
?>

Started with this code I got to know what the links were:

How do I filter a view per PERIOD (ie: greater than DATE and less than DATE)

Does anybody know how to construct a view that allows you to filter the data between 2 dates.
If I expose the DATE field twice, and then go to the view and try "greater than '2008/01/01' and less than '2008/01/20', it seems to only filter according to the first one.
Is there a way around this?

Thanks!

Taxonomy and input form dropdown question

I'm still trying to get the hang of Drupal, but I'm doing quite a big project in it.
This is my scenario..

I have a hierarchy something like this:

Region 1
-- Vehicle 1
---- Driver 1
---- Driver 2
-- Vehicle 2
---- Driver 3
---- Driver 4
Region 2
-- Vehicle 3
---- Driver 4
---- Driver 6
-- Vehicle 4
---- Driver 7
---- Driver 8
etc

User account title and tabs disappear with login "?destination=" redirect

I have a funny bug on 4.7 on the user/login page, where the "user account" title and the login, register, and request password tabs disappear, if I specify a redirect destination such as "user/login?destination=node/585". Interestingly it still happens with "user/login?destination=" but not with "user/login?destination=node/".

I am using the login_destination and logintoboggan modules, but disabling these doesn't make any difference. I am also using a user_login.tpl.php, but, again, disabling it doesn't change anything. So, I'm guessing this is a core issue?

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Drupal core