drupal-6

Drupal: How to get deeplink to comment?

I need to build and print a deeplink to any given comment. So that the user can directly access the specific comment with just clicking a link. I could not find a native drupal function to get this so i build it my own. My solution <?php global $base_url; $base = drupal_lookup_path('alias',"node/".$node->nid); $path = $base...

Faceted Search...

Is "faceted search" (drupal.org/project/faceted_search) powerful enough to index and search 100.000 Drupal nodes ? ...

Drupal: forwarding specific users after login

I need to forward users with a specific role "roleA" after they login to the website. I've tried to use if ($form_id == 'user_login') { global $user; ... } However this is before the user insert nickname and pass, therefore the role is always anonymous at this point. What's the form_id of the login submission form instead ? I wo...

Overwrite drupal calendar theming

Hi everyone, I am trying to theme a calendar view, is there a way to override the theming path with a module instead of overwriting the template files? I want to create a module that overrides the theming functions so I can include the template files in my module instead of the calendar module. thx in advance ...

drupal 6: redirect admin url for custom user role

Hi friends, I need to redirect a url for a user role. URL From: http://www.example.com/admin URL TO: http://www.example.com/admin/content/filter User Role: example-admin So, when a user (example-admin role) login to admin panel with the url example.com/admin , he will not see Access Denied page, but redirected to content/filter as ...

append data in user global variable?

Is there any way that i can append my data into user global variable so i can access it on other pages? ...

Drupal, CKEditor: custom formatting options issue

For some reasons the checkboxes in "custom formatting options" are always selected. Even if I unselect them and save them, they remain selected. Screenshot: http://dl.dropbox.com/u/72686/customFormattingOptions.png Could you explain me why ? thanks ...

get only root levels of taxonomy in view

Hi I have Hierarchical vocabulary like Audi A3 BMW BMW c4 BMW x11 In my views page I want to all parent terms in page, like Audi BMW How to do this? Thanks for your answers ...

probelm with $node object inside hook_view (drupal 6.x)

function my_content_view($node, $teaser = FALSE, $page = FALSE){ $my_data_table = array( 'personal_info' => array( 'gender' => array('M' => t('Male Only'),'F' => t('Female Only'),'MF' => t('Both Gender Allow'),), ), ); $node = node_prepare($node, $teaser); if($page){ /...

How to add a disclaimer above the comments form?

I'm looking for a good, standards friendly way to alter the default comments form, such that there is a disclaimer immediately below the "Reply" header. I only want this disclaimer to appear above the comments form itself, not meerly when viewing comments. This thread ( http://stackoverflow.com/questions/2644483/drupal-adding-disclaimer...

Drupal: Create menu item for a view

Hi, I am creating a small reservation system. you can create nodes of a type that can be reservated, like a projector. I have a calendar view with normal displays. I addes an argument for the node reference, but I have problems defining the page callback. Can someone help me out? Now I want to create menu items for the different nodes ...

How do I set the value for a CCK Node-reference field automatically when create form submits

I have a content type (A) that references a single node of a different content type (B). The node referenced (B) can be programmatically determined using the information for the user creating this new node (A)... Each user can only create a single node of the referenced content type (B), so this single node will always be referenced from...

creating a drupal non-cached template variable

In drupal 6 I'm trying to execute a function on every page and output a different link based on what IP address someone is coming from. However, when I try this, it seems that the result is getting cached. I have tried this as a module and in template.php, but have not gotten results. What is the best approach to make sure this function ...

Drupal Views: How can I log searches ?

Hi ! Is there a module that allows me to log all the searches made on a view ? Thanks ! ...

Unable to access "create content" "blocks" or "my account" on new drupal installation

I'm switching one of my clients websites over to Drupal and when I try to navigate to Create Content, Site Building -> Blocks, or My Account it redirects me to my client's existing homepage with a path that seems like it should work (ex. domain.com/?q=node/add). I've searched the stack and googled about the problem and haven't found any...

Drupal Modify Login System

Hi all, I'm newbie in drupal... I have a drupal website, and i want to extend its login system - i've been looking around the code but end up with headache. what i wan to do is: I want to put additional hidden form inside any login form create a session variable that will be used on login process (after user click submit) and then de...

Preferences and nice admin interface in Drupal

I created a custom Drupal module and now want to save some preferences for it. Those are essentially 3 arrays of strings that should be saved and also easily edited by a (administrative) user. What would be the best way to do that in Drupal? I've read about variable_set and variable_get, are they appropriate to store module-specific dat...

Aborting a change to a node from a module

I'm building a module for Drupal 6 (what it does isn't wildly important; I've spent a long time looking for other solutions to this problem and rolling my own is definitely the simplest), and I've run into something of a conceptual road-block. Much like the uploadpath module, I'm creating a directory based on (via a replacement pattern)...

Drupal: how can I read ip addresses of the people who is visiting my Drupal website ?

Is there a way to read the ip address of the people who is currently visiting my Drupal website ? Also, can I see the connections in real-time ? Is there any Drupal module for it ? I need kinda a dinamyc list of ips thanks ...

Drupal - hiding advanced post settings from users

Hi all, I'm getting lost in the sea of allowable permissions in Drupal. I have a content-type which has revision and workflow settings all nicely setup, but I do not want my users to be able to see these options (new revision each time automatically, etc). From what I understand, this information goes away when you disable the 'admi...