All Questions

Filter by
Sorted by
Tagged with
3
votes
2answers
972 views

Altering Nodecomment $links

I am trying to alter the "reply" links added to Nodecomment comments when the nodes are listed beneath the topic. The problem I have is that I want users to be restricted to the inline submit form, ...
2
votes
2answers
4k views

How can I create a simple tab?

I'd like to create a tab like the one show in the screenshot for a simple contact address list. or see this drupal site HERE I have "contact one," "contact two," and "contact three." I want to ...
2
votes
1answer
2k views

open_basedir and file uploads

I've run across a problem where, when open_basedir is enabled in my php.ini, my file uploads don't work in Drupal. The parent directory is included in the open_basedir list, yet uploads still don't ...
1
vote
1answer
197 views

Display a field 'Category' on the home page

How do I display a field 'category' (so as 'tags') in the node.tpl.php?
2
votes
1answer
469 views

What are the benefits of Views 3?

I am exploring a reason to upgrade from Views 2x to 3x. What major benefits Views 3x provides? Are there any major API changes?
2
votes
1answer
623 views

Updating a field value in database via submit handler doesn't update the user profile in UI

I've created the field "Attending" that is attached to the user profile. I have created a form with one checkbox element; when submitted, I've confirmed that the attending_fielddatabase is being ...
2
votes
1answer
761 views

Storing additional data with a node reference

What is the best way to store additional data in a Drupal 6 site pertaining to CCK node reference fields? Suppose that a content type has a repeating node reference. I would like to be able to ...
1
vote
0answers
157 views

CCK field in Workflow tab

I would like to add a user reference field to the Workflow tab. Currently we have a user reference CCK field but it is only editable in the Node edit form. Really it would make much more sense to be ...
1
vote
1answer
399 views

Building a view with arguments from a search select list

I have a block with custom search options based on taxonomy terms (hierarchical dropdown). When you submit the form, it renders the ID of the taxonomy terms. I want to have a query in another block on ...
1
vote
1answer
315 views

User relationship one way relation block and unblock option

Im using user relationship module for twitter like one way relationship , But i find any option to block the user from following me and in future. Only remove option is there to remove and once ...
0
votes
1answer
299 views

Views sort criteria

There is a criteria named "node statistics: Most recent view." What's the time beginning and end of the most recent view?
3
votes
1answer
2k views

How to add extra save buttons

In Drupal 7, my user profile page is getting really long. If someone sets or forgets a password, they don't see the Save button, and hence their password is not changed. Using the Corolla theme, how ...
1
vote
2answers
228 views

Similar By Terms without vocabulary

Other modules doing well but not actively developed. How to make Similar By Terms works without vocabulary?
2
votes
1answer
971 views

Invoicing using Ubercart and Storm

I'm trying to connect Ubercart with Storm's invoicing module. When a new Storm invoice is created and the client is emailed a link to a PDF of it, they should also receive a link to an Ubercart ...
1
vote
1answer
2k views

What is the best practice for theming?

I'm about to start theming a Drupal 7 website for the first time. I've watched Moshe's video, Lia Clark's introduction to theme overrides using context naming, and Franz's talk at Drupalcon Chicago. ...
1
vote
1answer
157 views

How to style the help text that appears at the top of pages?

I'm using the "Piano" theme, and I just don't like the way it displays the help text that would normally appear as a red box when there's an error or a green box for information or to indicate that ...
4
votes
2answers
4k views

How does the global variable $user work?

Here is my scenario: I create a new user and dynamically create for him some content on which he is the owner. Each user can log in, see his content and edit his profile. I use a block in which I ...
5
votes
1answer
501 views

How to make a better backup

I backuped my website with Backup and Migrate. I made some tests and restored a few times successfully. Then I created some fields (one of them is named field_date), and made some tests; I was not ...
4
votes
2answers
735 views

How do I control the “more” link from a views content pane to point to a biblio filtered page

I'm using Drupal 6. I'm trying to create a view pane that lists three biblio items matching a particular term, and then offers a link to more items filtered using the same term. Biblio allows me to ...
1
vote
2answers
511 views

How to tell the difference between multiple image_buttons on the same form?

Using FormAPI to create a simple set of three image_buttons, in the form_submit handler there is no 'op' value set in $form_state and therefore no way to tell which image_button was clicked. Is this a ...
0
votes
2answers
393 views

Can Rules create a node reference that is empty except for a title?

Is it possible to automatically create a reference node or entity with Rules? The idea is to have a node with information and an image Gallery reference. If the image gallery is clicked on the node ...
1
vote
3answers
635 views

How do I print out a field

I created a new content type with several fields in it. How would I print out those fields anywhere on the page that I need them like in the sidebar and other areas? What is the syntax for printing ...
2
votes
1answer
2k views

How to keep Views argument results in panels display

I'm working with Views and Panels and I am having troubles keeping the results of a View argument within Panels. I have a content type for events, and I want to display a list of previous events ...
0
votes
2answers
3k views

How to overwrite the add content page

I created a content type "test", and I want to overwrite the add "test" content page (http://www.example.com/node/add/test); for example, I want to show something on the right part of the page. How ...
0
votes
1answer
919 views

Custom taxonomy; link with two content types

I've successfully created a new content type ("my_type") and added a taxonomoy into it. How can I combine this new taxonomy also with the default content type "post", so that I can select it in the ...
0
votes
1answer
2k views

A function to get the term parent

function term_parent($tid) { $row = db_result(db_query("select * from {term_data} where tid = ?",array($tid))); if ($row['pid'] > 0) { $term = term_parent($row['pid']); $row['classid'] =...
2
votes
1answer
831 views

Help with content structure of a typical art gallery website

As a way of learning a bit more about how Drupal 7 works, I'm trying to replicate the features of a local art gallery website. I'm having a few problems setting up the content types so I was hoping ...
1
vote
1answer
1k views

Pagination for entities

I have an entity called announcement, and I have a page (user/%/announcement) where I display a table of three columns (name of entity,an edit entity link and an delete entity link). function ...
1
vote
0answers
550 views

Feeds JSONPath Parser: I need help using available variables

This issue is related to the JSON in issue #1149902. I'm trying to find a way to use variables into my field. I tried many kind of formats: ?($geometry) ?(@geometry) ?(['geometry']) ?(geometry) ...
2
votes
1answer
747 views

How to promote nodes to front page using MySQL command line

What is the command to promote unpromoted nodes to front page using MySQL command line? I want to promote 200 nodes at once. The node type is "story."
0
votes
1answer
837 views

Modifying login/user panel position in a theme

For our site, we're looking at designing a relatively simple log-in widget/panel. We want it to be in the header of our site (for reference, we're modifying the excellent "Orange" Drupal theme), and ...
3
votes
1answer
609 views

Limit the creation of tags

I wish to create a taxonomy where the administrator users limit which terms can be tagged. Suppose I have a vocabulary containing the following terms: Football Golf Snooker I want the tag ...
0
votes
3answers
529 views

Custom block that's always the first thing in a region?

I'm trying to create a region for my Drupal 7 theme that will be clickable drop-down to allow the user to log in/out, access their profile page and a few of other things. The best analogy I can come ...
2
votes
2answers
214 views

Never show the term name if the user has no permission to view the term

I use a vocabulary to freetag bookmarks I post to my site, and I want to hide all the terms (also most nodes; most or all, I don't care). With TAC module I use following setting for a start: global ...
1
vote
2answers
111 views

Same CCK field in one content type

I have a content type named "school;" this content type has the "teacher" CCK field, but the number of teachers is not same for any school. I need a thing like "add new teacher" button, which can be ...
1
vote
1answer
1k views

File upload and file access

I should upload an Excel file to a site that define a content type with a file CCK field; the download method is public. How do I set the permissions for the upload folder, if I would like to allow ...
1
vote
1answer
138 views

Aggregate uploaded files for simplified download

I have a content type that users are uploading a lot of files into, and the client would like to be able to download all of the attached files with a single click. It seems that a server-side ...
1
vote
2answers
456 views

Drupal Advanced Analytics

I need to do some advanced analytics for my site. I need the basics Google Analytics stats (nb visits, bouncing rate, etc) and how many times each particular users came back in a specific period of ...
3
votes
1answer
885 views

Hook module and Drop table

I would know if it's possible to drop a database table created by a module. I could see the hook "uninstall" and "disabled" but nothing works. Can you help me please?
1
vote
0answers
460 views

Figure out the difference between loaded JS, CSS files, and files needed to be loaded for new content

I'm looking for a way to figure out what CSS and JavaScript files are loaded, and what else CSS and JavaScript files needed to be loaded for new content I'm injecting with AJAX. I've am module file, ...
1
vote
1answer
181 views

Creating threaded nodes

I know with Drupal you can have threaded comments. I wish to create something similar using nodes. Where a node can be replied to with a node of the same type. I would then like to try and create a ...
10
votes
2answers
17k views

Force Drupal to attach Drupal behavior to new ajaxed content [only Drupal.attachBehaviors() is not working the right way]

I was doing lot of posts on drupal.org about this topic, but unfortunately in the wrong context. Ajaxed content is not attaching needed JS and CSS (forum) Ajaxed content is not attaching needed JS ...
1
vote
1answer
442 views

Form, populate select lists values after unsuccessfull validation

I would like to have select values in my select lists that user poster to script. However when validation is not valid, those fields aren't populated with posted data, so user have to make the choice ...
1
vote
1answer
503 views

Node Template Panel Node

I am using a node template to layout a node and I want to reference content from other nodes. Obviously I have the current node fields available to me, but I want to select any of the sites nodes. I ...
2
votes
1answer
105 views

I need to unset terms from the drop down

I'm writing a module to unset taxonomy terms using D6 hook_form_alter(). The object is to only present the current user terms which they have created themselves. The trouble is that I don't know ...
0
votes
1answer
871 views

Get content based on taxonomy

I can't figure out what I am doing wrong, as my block isn't showing up with the content from the taxonomy. I am trying to create a block that shows the content based on the taxonomy; I made a path on ...
2
votes
4answers
1k views

Entity API and Contrib Modules

When using the Entity API, is it fairly simple to interact with Taxonomy, Path/Pathauto, XML Sitemap, and Views? If so, what parts of the API should I be looking at?
0
votes
2answers
1k views

CCK Node Reference options not showing “this post can't be referenced.”

I have a CCK field of node reference. As user 1 I can set the node ference field to a node. I will see something like Node Title[nid:123]. When I go in as another user I see [nid:123]. When I go to ...
1
vote
1answer
360 views

Is safe adding uid=0 in users table just to use $_SESSION?

I read many articles about adding it, but I'm not encouraged to use it yet. People says that Drupal doesn't add this user because MySQL Auto-increment starts at 1. So, about adding uid=0, is it a good ...
6
votes
3answers
2k views

Block template suggestions

Is there a way to use a custom template for each block by title? For example, if I named my block "test1", and it is in the region "left1", I want to use the following template suggestions: block-...

15 30 50 per page