All Questions
87,957
questions
3
votes
2
answers
2k
views
Concatenate $base_url and path_to_theme()
I'm used to write this kind of code in .tpl.php files in order to display images (for instance) :
<?php echo $base_url .'/'. path_to_theme();?>
I wonder if it would be possible to concatenate $...
2
votes
1
answer
786
views
Send mail to users including receiver's username
I have searched settings of Contact (in Drupal core), Simple news and Mass contact modules but haven't found a way to include receiver's username in the mail body.
Any suggestions how to do this?
2
votes
5
answers
4k
views
Overlay and jQuery don't work, what should I do?
I have installed Drupal 7 on a local computer on stack called Denwer (similar to WAMP) and Windows 7; I see that all pages load without Overlay module (it is on, on modules page).
I guess that jQuery ...
6
votes
6
answers
5k
views
Hide a view if less than N results
I wonder if it's possible to hide a view (as block view) if it has less than X results.
3
votes
2
answers
3k
views
Creating a form
I am new to Drupal 6. I have been playing around with the settings and have been able to create a static website.
What I can't seem to figure out is how I create a form with some input fields and a ...
1
vote
1
answer
1k
views
How to add a node field to a database table in a custom module
When I am writing my own custom module, and designing a database table, if I want to use the field nid to refer to a node, because I want my module to adding something to each node, how should I ...
13
votes
1
answer
7k
views
"init "and "mail" fields in the users table
What is the difference between the "init" and "email" fields?
mail varchar(64) User's e-mail address.
init varchar(64) E-mail address used for initial account creation.
4
votes
2
answers
1k
views
Join or create group on registration
When people register for my site I want them to either join an existing group or create a new one if it doesn't exist. They can only be a member of one group, and there's only one group type used on ...
4
votes
2
answers
10k
views
how to create rules to send email notification for node reference content?
I have two content types: job posting and job application.
The job application content type has a node reference field for job posting. Whenever users create a job posting node, other users can send ...
1
vote
2
answers
247
views
Is there a way to exclude the addthis module's output in the $content variable?
The $content variable in my node.tpl.php file outputs some CCK field content, the content body, five star content, and the add this content. I don't want it to show add this content. Is there a way to ...
1
vote
1
answer
274
views
How to make the custom module effect on the node and only one content type?
The following code is used to output five images, according to what's number contained in $fen. I want to put the button in nodes of a specific content type (e.g. "company").
Which code should I use ...
2
votes
3
answers
343
views
Automatically fill the default vocabulary term associated with a content type when editing a node
What I'm trying to do is to automatically select the default term in the "add content" page based on the user's location in the site.
Example:
User is currently viewing classifieds listed under "Los ...
1
vote
1
answer
824
views
Tiered HTML lists using Views and Taxonomy?
I would like Views to output an HTML unordered list of a certain vocabulary (Taxonomy Term). This is not a problem... the problem is that the list is rendered flat, instead of showing the parent>...
1
vote
1
answer
77
views
Is there any implication/consideration for using the boost module on many different websites running on the same VPS? [closed]
Is there any implication on using the Boost module on many different websites running on the same VPS?
3
votes
1
answer
395
views
Pressflow caching directives
I have a setup with Varnish. Varnish decides when to clear the cache for a page according to the PHP headers. I want to force Varnish to regenerate the cache for each node every time it gets updated ...
5
votes
3
answers
3k
views
Update a view page content without refreshing the page
Is there a module that updates a view automatically when it is changed, without refreshing the view page?
For example, when a new node is added to the view or deleted from the view, or a node is ...
1
vote
3
answers
637
views
theming a CCK input form
How do I theme a CCK input form?
I tried the approach given in this page, but it is not working even after I clear the cache.
Here are the steps.
Suppose your content-type is: "account_registration" ...
1
vote
1
answer
873
views
Minimalistic page.tpl.php file
Do you know what to write to the page.tpl.php file so that it shows only 5 regions (header, menu, left_sidebar, content, right_sidebar)?
Something like the following code, but to work correctly with ...
2
votes
1
answer
2k
views
Using an F5 server as reverse proxy cache (instead of Varnish)
Does anyone have any experience, positive or negative, with using Drupal behind F5?
Did you succeed or fail?
In either cases, what functionality did you achieve? How far did you get?
1
vote
1
answer
431
views
Is there a module for creating a web directory like Dmoz?
I need to be able to organize different sets of content using the taxonomy. The user can visually click through the different layers of the directory and find what there looking for. I want to have ...
7
votes
2
answers
207
views
What are methods for tracking discussions or issues on Drupal.org
On Drupal.org, there are a number of discussions or issues that I subscribe to and wish to track. Do folks use any particular method to receive push updates or alerts when replies are added to threads?...
3
votes
3
answers
2k
views
Conditional class on <html> element a la boilerplate
This might be a totally mundane question, but I hope not.
I want to add conditional classes onto the <html> element of my theme like boilerplate. I'd like to keep things neat and not complicate ...
4
votes
2
answers
1k
views
Views RSS post date removal
What is the best way to remove the post date from a views created RSS feed? I have a calendar that I have created a feed for, but it is being sorted by a cck date value, making the post date not ...
19
votes
5
answers
9k
views
How do I migrate users passwords from Drupal 6 to Drupal 7?
I am trying to migrate users from a Drupal 6 to a Drupal 7 site. My problem is how to change their password from MD5 to the hash one (used by D7).
Do you have any idea?
3
votes
2
answers
649
views
How to create an unsortable Field with multiple values?
When a CCK field accepts more than one value, the widget will display a sortable table (usually with those cross-shaped handlers); this is the default behavior. I would rather have a non-sortable ...
2
votes
3
answers
1k
views
What's the best way to include PHP in nodes?
We're converting some sites over to a Drupal 6 multi site and we have a number of existing pages that make heavy use of PHP.
What's the easiest way to include these scripts, assuming that they may ...
17
votes
9
answers
26k
views
How can I create a view of child nodes based on the menu relationship?
Say you have the following pages in a menu tree:
Projects
Project One
Project Two
Project Three
I'm looking for a way to create a view that will be embedded in the Project (parent) page that will ...
3
votes
2
answers
216
views
What are the potential security issues when importing an entity type?
I'm working on a module.
If the module is enabled, there would be an overview page showing the field structure of different content types. The visitor could then click a button to get a copy of the ...
2
votes
4
answers
11k
views
How do I append a unique menu ID to the menu?
I'm using Drupal 7 and I want to append a unique ID to specific menus. My search result gives me the way to change the item of the menu, but I want to change the menu itself.
Is there a way to do ...
2
votes
1
answer
357
views
Views filter depending on the number of node references
I have a content type A that has a node reference to a content type B.
How can I create a view that show A nodes, and either filter by or sort by the number of references to the content type B? (Let'...
13
votes
2
answers
8k
views
Create a new revision automatically on edit
When a node is edited I want to always create a new revision. I do not want people to be able to turn this off. How can I do this?
1
vote
1
answer
220
views
Panels, Diff and nodes
Does the Diff module work with nodes that are displayed using the Panels template? I go to /revisions and I get a "Page not found".
2
votes
1
answer
862
views
How to output all taxonomy field values on a node in views?
How can I display all field values that are on the taxonomy terms that are applied to a given node?
So say I have the following Vocab defined:
Vocab name:Fruit Description:Fruit Categories w/ codes ...
2
votes
2
answers
11k
views
Using Rules to Schedule Publishing/Unpublishing of Content
I have a Triggered Rule that is fired on "Content is going to be saved". What it should do is look at the content type, and if that passes, delete any scheduled task based on that node ID, and ...
2
votes
1
answer
1k
views
How to add a category in the FAQ_ask module
I am using the FAQ Ask the Expert Module on my drupal 6. I am not very familiar with the drupal interface and have trouble setting up modules. I would like my ask a question for to have categories in ...
1
vote
1
answer
885
views
Keep the URL alias for a node when using href
I am using Drupal 6 and I have set aliases for my nodes under Administer > Site building > URL aliases. This works properly; for example, I have alias = about/faq, node = node/33, and when I click on ...
3
votes
3
answers
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 ...
2
votes
2
answers
2k
views
Node reference autocomplete views issue
Firstly, apologies if I use some incorrect terminology - I'm still very much a Drupal newbie!
I'm creating a band website using Drupal 6 with CCK, Views, Date, Calendar, Link, Location and GMap. It ...
3
votes
1
answer
5k
views
hook_theme_registry_alter() and theme()
How can hook_theme_registry_alter() associate, for example, theme_mymodule_image_output() with the 'image' theme ID?
3
votes
2
answers
7k
views
How do I add <div> tags to the output of a view list?
The output of a view I am using contains the following code.
<li class="views-row views-row-1 views-row-odd views-row-first">
<div class="views-field-field-cimg-fid">
<span ...
1
vote
2
answers
843
views
Save and preview differences in hook_form_alter()
I've created a module which uses hook_form_alter(). When a form is loaded (node/add) I hide a field, and the hook works fine. The problem appears when I do a preview of the form. When the form appears ...
4
votes
4
answers
2k
views
Disable Rule which is causing a redirect loop
I have created a rule for logged in members that if they go to the home page it redirects them to a different page. The home page needs to be different for anonymous and authenticated users.
One ...
1
vote
1
answer
119
views
Is there a function or a way to invoke the comment object?
I want to use the $comment object in page.tpl.php.
Is there a function or a way to use it?
1
vote
1
answer
302
views
Translation issue
I have problem with the i18n translation module; despite I translate a text menu link in the administration string translation section, it doesn't translate on the front end when I navigate the site ...
10
votes
5
answers
8k
views
How do I create relative menu links?
I am busy working on a site on my localhost that needs to link to some content that is separate from Drupal.
I have the current menu paths set up like this: http://mylocalsite/...
2
votes
1
answer
1k
views
Invoking the rate module in views template file doesn't work
I have installed both the Views and Rate modules. In the views-view-fields.tpl.php file, I put the following code.
$node = node_load($row->nid);
echo $node->content['rate_poll']['#value'];
...
2
votes
4
answers
5k
views
Is there a function that can output an image?
[field_img] => Array(
[0] => Array(
[fid] => 200
[list] => 1
[data] => Array(
[alt] =>
[title] =>
)
[uid] => 1
[filename] => cpon.jpg
...
2
votes
3
answers
173
views
Choosing between stable and development snapshot releases for a new high trafficked site
After some research, I am planning to start the migration of a high trafficked site from Pressflow 6 to Drupal 7, as the current implementation (Pressflow 6 + 200 modules) is making it crawl. I've ...
1
vote
1
answer
594
views
Which pages affect text area CSS?
I have a text area with CKEditor. The default font in this text area and my theme is 20 pixels and I cannot change its size with CSS, but if I change theme and use Garland, the font change to the ...
2
votes
0
answers
231
views
Allow an author of a comment to see their comment listed in the comment section of a node with a notice that the comment is in moderation?
I seem to be getting a lot of duplicate comments on my site and I think it has to do with the fact that users do not see their comment right after submitting it. I have it set so that an admin must ...