drupal-6

Adding images into blocks html

hi, I've added some html code in my Blocks content and enabled Full HTML filter. I've used relative paths for my images, such as "sites/all/themes/zen/zen/image.png" I guess this is not correct because I need to change my paths depending on I'm in the home page or "node/id" page. I guess I cannot use PHP inside blocks, thus I cannot ...

Possible uses of CCK node-reference and user-reference

CCK is gone from Drupal7 and was replaced with the Fields API which is now part of core, but nodereference and userreference were not ported. This creates a problem for me because I use those 2 modules extensively. There's an effort to work something out to replace these 2 modules with something more compatible with drupal7, but the so...

Editing menu items on the fly in Drupal?

I have a menu item called "Inbox" on a menu called "dealer-menu". I want to change "Inbox" to "Inbox (1)" or "Inbox (2)" depending on the number of messages the user has in his inbox. How do I change the value ON THE FLY. I.e. on every page refresh? ...

Drupal Captcha showing on TOP and not at bottom?

I've never had this problem. When I enable "administration links", the "place captcha here" always appears at the bottom of a content type, but for some reason it is now appearing ABOVE the title field. How do I get it below again? ...

Update status (publish) of 60000 nodes

hi I have approximately 60.000 nodes in my Drupal installation. They are all unpublished, and I need to publish all of them. I'm trying to publish them from "Content menu" but I can only select all nodes in a single page. How can I select all nodes in my website ? thanks ...

Disabling pathauto in a production drupal website

If I disable pathauto in my Drupal installation, am I going to have any issue with my Drupal website ? It simply display a meaningful url for each node and it can disable at any moment. Correct ? thanks ...

Drupal: search for comment nodes, and display results with parent nodes ?

I've created a (modest) question answers system in Drupal. I'm using forum content type and enabled comments on nodes. I'm also using node comments module to convert comments to nodes. Everything works great, I still have a small issue on the "Search" View. When I search for a word, the search engine displays all nodes containing that ...

Any alternate of drupal_json for non-JSON output

In an AJAX call back in drupal it is normally recommended to use drupal_json() to send data to client. This function converts the raw data into JSON along with HTML encoding. I want to send the HTML data without encoding to client. for this I am using following code: print $html_output; exit(0); Is there any recommended or best way i...

Drupal Admin vs admin_menu

Which do you use and why? Does one provide any clear advantages over the other? ...

How does one make a Custom user profile on a per role basis ?

How would you get about assigning a custom profile to a particular role in Drupal 6? For example if the user belongs to a role "TEAM1" and we want them to have a different profile than the rest of the users, how would you get about doing that? The profile must have basic information they can edit however it should also have some fixed fi...

Can I empty accesslog table ?

Can I empty the table 'accesslog' in Drupal ? Does it contain only logs ? It is giving me issues in importing a database into a new mysql server: Error at the line 66: INSERT INTO accesslog (aid, sid, title, path, url, hostname, uid, timer, timestamp) VALUES(5686, 'bgp2qr643sg0aoreq7p524ii96', 'Modules', 'admin/build/modules...

register_globals is enabled. Drupal requires this configuration directive to be disabled.

hi, I've just moved my drupal to a new server and I get the following warning: register_globals is enabled. Drupal requires this configuration directive to be disabled. Your site may not be secure when register_globals is enabled. The PHP manual has instructions for how to change configuration settings. (Currently using PHP register gl...

How to usually .htaccess file when it is hidden in ftp

I usually cannot see .htaccess file because it is hidden, when I login to remote servers with ftp access. Since I don't have shell access, I usually perform the following steps to edit the file: I change the settings on my mac (from terminal) to see invisible files I open .htaccess file on a standard drupal installation and I edit it I...

Error: Content type X has Drupal core comment comment type, but is a comment type itself for the following content types

I'm using Node Comments module and I get a strange error in Status Report: Node Comments Content type Answer has Drupal core comment comment type, but is a comment type itself for the following content types: Forum topic However, in the content type settings of 'Answer', this setting is disabled: http://dl.dropbox.com/u/72686/CommentSe...

remove a logic operator(unlocked) of a exposed filter

I have a view where I am exposing a filter which is the Price of a product. I want the user to be able to choose the price(filter based on price), So I exposed the filter, then unlocked the operator and all of them are unlocked(operators). Is there a way where I can unlock only a few operators such as "Is less than", "In Between", "Is Gr...

Expand Primary Links

How do you get children of primary links to output in the HTML? Only my parent-level primary links are generating LI's. I have a very very simple two-level primary links menu. There are 5 pages on the site: three parents, and the third parent has two children. In the administrative menu settings I have the parents' and childen's 'expand...

How do I generate Drupal Taxonomy Breadcrumbs from two vocabularies?

I have discovered the magic of Taxonomy Breadcrumb ( http://drupal.org/project/taxonomy_breadcrumb ). I have two dimensions in which I would like to classify my content: Season Fall 2010 Winter 2010 Spring 2011 Type Letter Article Biography I would like to set Taxonomy Breadcrumb to set up a trail like so: Home > [season] > [ty...

Users are able to access old profile along with new one?

I have used Content Profile Module to make a content type of profile. I have then gone to my User management menu -> Permissions menu and given access to the "testuser" role to be able to create the new content type profile. Now when the user with the role logs on and clicks on "My profile" that has a path of sitename/user/username, he/s...

Extracting value from Form Date Element on Submit

I'm writing a Drupal module and have run into what should be a trivial problem; Consider a 'Person' type node which includes a 'Date of Birth' property. I've configured the database table to use an int field to store the date in UNIX format (same as Drupal Core) but of course I need to provide a method for the user to specify the value ...

Using Image module to create an Image Gallery and view them using lightbox

The new version of the Image module has some components, one of them being image_gallery.module which creates some views and taxonomy for you to use. Now I want that when the user clicks on an image uploaded into a gallery, it is displayed using lightbox. This was easily done when creating a content-type and setting the view to lightbo...