All Questions

2
votes
2answers
303 views

Best approach for [back][next] form submitting

I've been doing a [back][next] to [finish] set of forms for user input fields, think of it like a questionnaire for user info where the user can still go back to the previous pages to update their ...
1
vote
1answer
2k views

FAPI 'radios' don't respect '#default_value'?

I noticed that the 'comment settings' radio buttons ('#type' => 'radios') were not respecting their default value settings in my content types. I have several module created custom content types, as ...
5
votes
1answer
713 views

Group ID Filter in Block?

I want to show teasers of content posted to an OG group. I want public and private groups, so the user must have view access to that group to see the content. I have a Group (named "Group") and a ...
1
vote
1answer
927 views

Comment theming question

In Drupal 7, when theming the comments in my website (comment.tpl.php), I want to print the comment title without a permalink wrapped around as a link. I want the raw title. This should be simple, it ...
1
vote
1answer
231 views

My module adds a CCK field to an existing content type. How do I then modify an existing view to sort using the new field?

I am building a new module ('best_answer') that builds on the functionality an existing module ('answers'). The new module adds a new CCK field ('best_answer_p') to a CCK content type ('answer') that ...
2
votes
1answer
865 views

Where can i try searching the module “File_styles”?

I have installed the media module for drupal 7 but it requests me the installation of a module I cannot find File_Styles. Where can I searching this module?
2
votes
1answer
721 views

Multiple user avatars

I'm looking at putting together a Drupal 7 installation for a community website. One of the features of the website will actually be in specific user profiles, which will double as "About" pages in a ...
3
votes
3answers
2k views

Display referenced node field in view

I have a view made up of nodes that include node reference fields. I would like to pull in a field from each of the nodes being referenced for display in my view. I know that is a little confusing ...
2
votes
1answer
142 views

Putting a form into a menu

I've started learning Drupal (I'm starting with Drupal 7) and the best way to do that seemed to me to be in creating a custom theme from scratch. I'm trying to create a menu in which the login form ...
3
votes
1answer
1k views

Adding a CCK field with Rules

I'm trying to use Rules to populate a CCK field - a user reference when they flag a node. It basically works, but if there's already a user reference it overwrites it instead of adding another. That'...
5
votes
3answers
147 views

Is there a module for site explanation messages?

Many sites have text areas which appear to explain things to new users. With an option to hide the message in future. I haven't seen such a module for Drupal, does one exist? I have tried googling ...
3
votes
1answer
1k views

Table locking again, am I doing it correct?

I had a problem with table locking, solved in this question: Table 'watchdog' was not locked with LOCK TABLES on custom module I want to share my current code, because I'm still not sure if ...
3
votes
1answer
286 views

What does typical beginning mark in *.tpl.php files mean?

I'm looking into template files for theming purposes, and often at the beginning of the file there is a // $Id$ mark. Could you explain me what it mean, and what the purpose of it is?
2
votes
2answers
931 views

New link added in user page but not visible to non admin user in Drupal 7

I added this module in Drupal 7 for adding new tab in my site. This new tab is not visible to non admin user. Only visible to admin. I also tried to set permission in this direction admin> People> ...
2
votes
3answers
2k views

Table 'watchdog' was not locked with LOCK TABLES on custom module

I am creating module that need to lock table: db_query('LOCK TABLES {eventi_list} READ'); $is_booked = _is_booked($uid, $nid); if (! $is_booked) { $is_booked = _is_booked($uid, $nid, '...
0
votes
2answers
696 views

How do I show the image in a node enlarged?

I use the TinyMCE editor as site's editor. When I publish an image, I want the users click the image to view it enlarged. How can I do this? The image is not a field; it is an image in the node.
1
vote
1answer
1k views

Cron job run, but module updates not checked - how to automate?

I configured a script to run as part of my cron.daily tasks, and tested the script. My status report says that the cron was correctly run by the script, so I'm happy that that will happen. However, ...
1
vote
2answers
610 views

Quick filter tabs on top of content listing page

I've downloaded and installed the Content Management Filter, but I think that the interface is a bit ugly still with all the drop downs, and it doesn't actually achieve what I had hoped. Basically, I'...
1
vote
1answer
90 views

Ordering archive block

I've upgraded an installation from Drupal 5 to Drupal 6, and now I can't get the archive to be displayed in the right order. I've set the sort criteria of the block to be descending and in the preview ...
1
vote
1answer
1k views

Why is my cron not running as intended?

crontab -e displays */5 * * * * /persistent/sitename/scripts/cron-curl.sh ~ ~ ~ "/tmp/crontab.XXXX1FOZWa" 1L, 51C Why is it not running every 5 minutes?
2
votes
2answers
615 views

Custom module menu item declaration leads to error 404

function eventi_menu() { $items = array(); $items['eventi/book/%/'] = array( 'title' => 'Book', 'page callback' => 'eventi_book', 'access arguments' => array('allow booking'), ...
3
votes
1answer
1k views

What is the best way to upload a PDF attachment, that can be attached to multiple nodes?

I want multiple nodes to all have a download link on each node to one, shared PDF file. What is the best way to upload the PDF file one time, but add it as an attachment to each of the multiple ...
3
votes
1answer
1k views

Taxonomy & Views

How can I take a "Content Type" with a "Taxonomy Term" field... and use views to generate a list of content with that term via URL? I have a content type that has the basics (Title, Body) as well as ...
3
votes
3answers
956 views

Where is the Administer menu?

I can't find the "Administer" menu or it's members "Content Management" or "Site Building". I've tried disabling and re-enabling the core menu module, but still cannot see these menus. This is what I ...
2
votes
2answers
134 views

I want to allow users to click “share this” on a page with an image, and then email that image as an attachment

I have a site that shows floor plans for houses. I want to allow users to share a floor plan via an email form where they can enter their email address and their friend's email address who they want ...
2
votes
1answer
237 views

Searching for a general approach for passing custom lists of node IDs as an argument to Views 3.x

I need often to exclude (or limit to) a custom list of nodes from a view. I used to enter the PHP logic directly in the php argument code text area, but this is getting difficult to mantain. I would ...
1
vote
0answers
190 views

How can I get this type of menu?

I want to get a menu similar to the one shown on net.cn; under the logo there is a navigation bar with 6 menu items; when you hover the mouse over one of the menu items, the bar under it shows the ...
1
vote
1answer
885 views

Relationship between node_access gid, roles and workflow

If using workflow, what database table.field does the node_access.gid map to? Does it represent a role, does it represent a workflow sid (state id), or something else? Example: +---------+------+----...
0
votes
1answer
106 views

How to achieve a particular layout (view within a view, custom template, or ____)?

Say I had a site with travel destinations and I wanted to display a series of videos associated with each destination on a page below a description of the destination. The destinations and the videos ...
2
votes
2answers
918 views

How to create a node revision view with a “Node” row style?

Is it possible to create a node revision view with a "Node" row style? This does not seem to be an option in the Views interface. "Fields" is the only options presented for this type of view. Is ...
2
votes
2answers
239 views

CCK fields don't appear on the “node add” form for authorized user

I would like to allow logged-in users to create nodes, and I gave them the permission to create "some_content," but on "add node form" users have only one field, which is for custom node title, ...
3
votes
2answers
2k views

db_affected_rows() return “1” when the query is wrong

I have a query like UPDATE user SET creator = 'creator'". The "user" table has not the "creator" column, so db_affected_rows() shoud return −1, not 1. Why? Update: mysql_affected_rows() returns -1 ...
3
votes
2answers
436 views

Two columns on frontpage with a CCK form and a node list

I want to show a simple frontpage that contains a content creation form (cck) on the left side and a list of nodes on the right side. With a head and a footer, the page looks like this: I have ...
1
vote
1answer
360 views

Getting WSOD for non-LDAP User with Domain and LDAP modules enabled

I am using Domain and LDAP modules on Drupal 7, and upon login as a non-admin non-LDAP user, e.g., "author01", I get a blank screen. Upon viewing source on said blank screen, I can see the HTML for ...
0
votes
2answers
3k views

Block on specific pages and node types

I'm trying to make a block display on a specific page and inside a node type; I got this code from drupal.org, but I keep getting this error. Warning: array_flip() [function.array-flip]: Can only ...
3
votes
1answer
2k views

How to display a table view and an add/edit form on the same page?

I'm trying to build a page in my site where users can create a new project (fill out a few text boxes to give the project a title/description), see a list of all of their projects, and edit any of ...
1
vote
1answer
1k views

The Calendar module doesn't recognize fields

I created a content type "events", with a date field and other normal settings. I am trying to use the Calendar module to create a calendar on my Drupal site, but I am facing an issue. When I try to ...
2
votes
1answer
1k views

Calendar module

I have a content type ("events") that has a date field inside it ("field_e_date"); I want to show on a page some nodes of this content type in calendar format. Assuming I create a view of style ...
3
votes
2answers
1k views

GMap Module issue

I am using the GMap Module for Drupal 7 along with Location, with Node Locations enabled. I have added a simple location field in my article content type, and enabled the location block to be shown ...
3
votes
1answer
616 views

When paging through a block, another block on the page disappears

I am using Drupal 7 with Organic Groups and Views. Currently within my team node I have 2 blocks appearing with the proper filters in place. The first block is configured to only appear only on pages ...
7
votes
2answers
915 views

Creating N fields with N 'subfields'

I'd like to create a content type "Enterprise" where user can define N services and, for every service, N tasks. I have already created the other fields for this content-type (name, description, ..., ...
0
votes
2answers
609 views

How do I overwrite the text value?

I want to overwrite the $link['text'] value in theme('rate_button', $link['text'], $link['href'], 'rate-btn'), a theme function defined from the Rate module, under a specific content type in template....
4
votes
2answers
435 views

Image upload & gallery

Is there a way to limit the number of imagefield fields present in a node? I am using iTweak Upload, which allows to upload an unlimited number of images, but I need something that can limit the ...
12
votes
1answer
1k views

Best way to benchmark Drupal stack performance

I recently asked a question regarding Drupal performance and got some great replies. This got me thinking, what is a reliable/meaningful way to benchmark Drupal? It's easy to say "install APC, ...
3
votes
3answers
1k views

Drupal is slow only in IE

We have had a lot of feedback about our Drupal site running very slow on a different network. Most of the users on this network use IE (IE6 and IE8), which is causing a huge slowdown compared with ...
3
votes
2answers
401 views

Location module should lookup address before saving

This question is related to Adding geo location content to node. I'm trying to get a location saved to a node. The Location module supports this, but I don't like the workflow of this module. It ...
1
vote
1answer
102 views

could i overwrite the array value by the preprocess function?

a module that have an array,which value are $links[0]['text']="hello" and $links[2]['text']="world". could i overwrite them value by the mytheme_preprocess_node function in template.php. if can., how ...
0
votes
2answers
125 views

Need a list of third party video services that i can offload the conversion and serving up of my private videos?

Can anyone help me to narrow down a list of third party video services that i can offload the conversion and serving up of my private videos? Requirements are: Already have a Drupal 6 module that ...
5
votes
1answer
1k views

How does one create terms on hook_install if hook_taxonomy_default_vocabularies is used in the same module?

I'm attempting to create taxonomy terms in a module that provides the vocabulary needed to create these terms. The issue I'm having is the vocabulary is not available upon install. My module ...
2
votes
1answer
5k views

Drupal as a simple file manager

I'm wondering how easily it would be to achieve the following. I want to create a Drupal site where users have a small "file area" to upload files. I would like to be able to take those files and ...

15 30 50 per page