All Questions

Filter by
Sorted by
Tagged with
1
vote
1answer
134 views

Block region not outputting anything?

I have this on my template: <?php print render($page['left']); ?> And no matter how many blocks I add to the left sidebar region, nothing prints. Any ideas?
0
votes
2answers
86 views

Adding nodes to term instead of terms to nodes

Is there a way to easily add nodes to terms? In other other words, let's say I have a taxonomy called top 5 sellers and I have a collection of nodes that represent books. Currently it's hard to ...
0
votes
2answers
91 views

Search for terms by name in admin panel

Right now I only see a way to list all the terms of a particular taxonomy in the admin panel. I have to go through pages of terms if I want to locate a term I want to edit. How can I search by a term'...
2
votes
1answer
478 views

how to get summary of content in following code

In my block code i have following code in one case: $query = db_select('node', 'n'); $query->condition('n.status', NODE_PUBLISHED); $query->condition('n.type', 'news'); $nids = $...
2
votes
1answer
3k views

altering form with hook_form_FORM_ID_Alter

function dental_form_simplenews_block_form_2_alter(&$form, &$form_state, $form_id) { global $user; $form = array(); $form['#attributes'] = array('class' => array('newsletter')); ...
1
vote
1answer
201 views

Using select expressions or derived field in Views2 as fields?

Is it possible to use a select expression or a derived field as a field in Views2 in Drupal 6? The advanced help documentation seems to indicate that perhaps it is possible: though it is very ...
0
votes
1answer
1k views

Fields from custom nodes into Webform

I have some nodes like this http://sprachzentrum.com.ar/cursos/curso-intensivo-de-alem%C3%A1n-nivel-a21-agosto-2011 and webforms and want to insert titel and day field as an option in the webform. So ...
4
votes
2answers
226 views

Exclude a .js file on certain Drupal 6 paths

I've run into a dilemma with Drupal and SSL. I'm utilising the Disqus module, however, Drupal loads the Disqus .js files on all pages including the cart and checkout addresses. This would be fine ...
2
votes
2answers
3k views

Remove superfluous divs from views fields output?

I've set the Wrapper HTML Element option to none, and removed any wrapper divs in the templates presented in Theme Information, but my image fields are still getting wrapped in plain divs.
4
votes
3answers
3k views

Create link with 'name' attribute only using l() function

Is it possible to create a link using Drupal's l() function without an href? For example, I'd like to create a link like the following: <a name="my-anchor">A link here</a> However, this ...
1
vote
1answer
135 views

Subscribe to issue queue

In drupal.org I would like to get email notification when an issue that involves me is updated with a new comment. Right now I have to subscribe per project from URL http://drupal.org/project/issues/...
0
votes
2answers
3k views

Change the e-mail value during user registration ? form_set_value()

I have a custom module (entitled ta_module) : in the user registration form, it hides the e-mail field, and add a custom field where user have to enter what's before @ and then choose his e-mail ...
2
votes
2answers
901 views

How do I create a dynamic link for a block?

I have two dynamic links that I want to put in a block, e.g. http://domain.com/series/naruto/addreview ("series" is the content type, and "naruto" is the node title), http://domain.com/node/add/album/...
4
votes
3answers
654 views

How to prevent access to Views-only content?

When I'm developing sites in Drupal, I create various content types and taxonomy vocabularies that I use with Views to build displays. I might not ever want the nodes to be viewable in their own right ...
1
vote
1answer
606 views

Please help with this query! Need to get taxonomy terms of related nodes

I've inherited this code that runs on our home page. It's used to do a custom display of specific pieces of related info. Here's how things are set up: We have an article. It has a series of node ...
3
votes
1answer
2k views

setting user edit permissions

In each user's profile there's a user reference field called "other editors." For all the users selected in that field, they should be allowed to edit that user's profile. My first thought was that ...
3
votes
2answers
2k views

When using hook_form_alter() and additional submit functions, can one reference a php file for the submit callback?

The following code works. function bleh_form_alter(&$form, &$form_state, $form_id) { switch ($form_id) { case "webform_client_form_13": $form['#submit'][] = '...
4
votes
1answer
2k views

How do I add an additional sidebar to a Zen sub-theme?

I want to add an additional sidebar to my zen based theme with fixed columns. I added it to the theme info, and printed it in the page.tpl.php file, but I don't know how to configure its CSS files to ...
1
vote
1answer
277 views

Most viewed count always zero

I try to adapt my Views block, I add Node Statistics: total views but it always show Zero, what am I doing wrong? sth is missing
1
vote
1answer
424 views

Privatemsg with user_relationships - views link → send a private message to use

Trying to output Views link - send a private message to a user. But its displaying nothing. Using privatemsg 6.x - 2.x Dev version and user_relationships 6.x - 1.x
2
votes
1answer
177 views

Search page is not shown properly with D7 custom theme

I am currently building a D7 theme for a website. I experiment some problems with the search page. After entering a search term the page "domain.com/search/node/[searched term]" is opened. But it just ...
2
votes
1answer
2k views

My pager code doesn't work

I'm using the following code just to see if the paging works in Drupal 7, but I'm having trouble to set it to work. $query = db_select('node', 'n') ->fields('n', array('nid', 'title')) ->...
2
votes
1answer
2k views

Taxonomy and URL aliases

I am developing a product catalog by means of taxonomy, and want to use URL aliases to better reflect the hierarchy. For example, I have a taxonomy product in the following branch: category/...
2
votes
1answer
268 views

D6: Create block view which returns all nodes with related terms

I have a vocabulary which contains a large number of terms, most of which have been given relationships to other terms. I want to create a block display of a view which takes the term from the ...
5
votes
1answer
1k views

How to allow users upload images to existing nodes?

Let’s say I have created a content type called movies and I want all nodes in movies to have a gallery tab. Inside the gallery tab it should allow users to upload images. How can I do this?
4
votes
1answer
255 views

When theming a view there are two approaches, in a template file or rewriting field output, what are the advantages and disadvantages of each?

When configuring a field in a view such as the node title, there are options to add or remove formatting to the view by either excluding the field from view, wrapping the field in a certain type of ...
1
vote
2answers
933 views

How to print id of user whose profile I visit rather than id of logged in user?

I would like to print the id of the user on his profile page? How can I do it in Drupal 7. So far I could only print logged in user id..Any advice appreciated.
2
votes
1answer
2k views

Get the date only

I found out that print render($content['created']); displays the date the node was created. But it shows other info as well such as the author's name. Is there a way so only the date comes out? And ...
2
votes
3answers
4k views

How do I display bare, stripped content with no menus, footers, etc?

Here's what I am trying to do: I need to have a way to display only the content in a node without any of the Drupal adornment. All I want is the styles to be inserted, and the content itself. The ...
0
votes
1answer
125 views

Add new images to existing nodes

I am using imagefield to make photo albums. Now I want to allow all registered users to upload new images to any photo albums and it should get added to the exisiting album. I do not want to give them ...
0
votes
2answers
1k views

Change Sent By in Drupal 6 Webform Module?

Is there a way to make it appear the email is coming from the person who submitted it, instead of the site it resides on? The webform has an email field, and I'd like to use that as the source of the ...
2
votes
0answers
670 views

TF-IDF ranking for nodes with taxonomy term keywords

I would need to implement a ranking system that uses the TD-IDF http://en.wikipedia.org/wiki/Tf%E2%80%93idf Maybe it looks complicated but isn't Example: "Consider a document containing 100 words ...
0
votes
1answer
1k views

Panels vs template performance

Sorry for rather newbie question. I am reading an Panel CookBook and how to create different layouts for homepage and other landpages. Apparently it is possible to achieve the same result with Panels ...
1
vote
1answer
708 views

Nginx + Wysiwyg + CKeditor

I've got several sites up and running on Nginx, but no editor loads. Wysiwyg is configured properly with CKeditor downloaded and in the libraries directory. At this point I'm unsure if its something ...
2
votes
1answer
2k views

“Invalid argument main.js” Gmap error in IE

I have GMap Module and GMap Location version 6.x-1.1; in Internet Explorer (any version), on the GMap page I see this error: Message: Invalid argument. Line: 401 //in IE8, and 942 in IE6 ...
2
votes
3answers
464 views

How to programmatically print node from a specific author

I am trying to print all nodes published by a specific author on my page. Anyway knows a way to do so ? Thanks
2
votes
2answers
4k views

Using AJAX in Drupal 7 to change a form action

I would like to update the Drupal save_edit module to add an auto-save feature. This would look similar to the Stack Exchange auto-save (draft saved). So far I've gotten the save portion working (...
0
votes
2answers
2k views

404 errors with Nginx

I'm trying to test nginx on Dreamhost following the instructions in the wiki, but going to any page except for the front page results in a 404 error: http://wiki.dreamhost.com/Nginx#Drupal. Certain ...
1
vote
3answers
1k views

How to clear cache bins via the admin interface

Drush will allow you to selectively clear caches. CSS/JS or views for example. Is there a way to do this via the admin interface, or a contrib module to do it? I don't have access to drush on a ...
1
vote
2answers
1k views

How to hook to content profile edit form validation

I try the following code, but it doesn't seem to work. function mymod_profile_node_form_validate($node,&$form) { firep($form, 'form'); } Could anybody help?
2
votes
1answer
466 views

Content profile + rules. Problem with action, when user is created a profile then logged in

guys. Got a problem with content_profile and rules modules. By default rules has a Redirect to profile creation page, if users have no profile. It works fine. When a user is registering on the ...
2
votes
1answer
3k views

Paging the list of comments, and getting the comment count

I am getting all the comments listed in the same page. How can I do the paging concept for comments? How do I get the comment count?
1
vote
1answer
2k views

Image height/width not saved using CKEditor and Full HTML input format

I just upgraded a Drupal site from 5.22 to 6.22. Everything is working except for one small problem. I replaced FCKEditor with CKEditor using CKFinder to manage file uploads. The problem is that ...
2
votes
2answers
157 views

How do I change the output of theme_comment_submitted()?

How to change the default theme of comment_submitted in drupal? Input: $variables['submitted'] = theme('comment_submitted', $comment); Output My expected result is To print the Name in first ...
2
votes
1answer
196 views

Dynamic links block

I want to make a block with dynamic links. An example path would be http://example/node/7/addreview The number 7 will change depending on what node it's viewing. So if it's viewing node 14 then it ...
1
vote
1answer
285 views

Ajax Search Field with labels for node types

I'd like to have a search field with ajax and some kind of label for the node type. Similar to http://www.finanzen100.de . Is there any module or other ways of getting this for drupal 7 (or 6)?
2
votes
3answers
147 views

Change the number of entries depending on a theme setting

I have a theme setting that allows the administrator users to specify how many teasers should be shown on the home page by selecting a number from 1 to 4 (through a <select> field). Is it ...
1
vote
1answer
379 views

CKeditor and Input Formats confusion

Why is there a 'Security Filters' section within the CKEditor configuration settings? My understanding is that this is all set within the normal Drupal input formats section (admin/settings/filters)....
2
votes
1answer
868 views

Drupal and long-polling/sockets

I'm looking for some ideas of how best to cater for the following scenario: I have a facebook-style feed on the front of a site that is updated with user content regularly, and just like facebook I ...
2
votes
1answer
224 views

Storing third party passwords

What is the standard or recommended way to store third party passwords in Drupal? Specifically, I want to use oAuth to authenticate a user to Google, and do not want to ask users to type in their ...

15 30 50 per page