All Questions

Filter by
Sorted by
Tagged with
6 votes
3 answers
821 views

Can I use drush to compare the running modules on two sites on the same server?

Is there a way to use drush to compare the list of running modules on two Drupal 6 sites? I have two sites running locally (with two code bases if that matters) with different modules, but a very ...
acrosman's user avatar
  • 2,728
0 votes
1 answer
880 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 ...
Jeremy Love's user avatar
1 vote
1 answer
402 views

"Page Not Found" error when a google search form is submitted

I am using Google Site Search on a web site, and the search form submits to a page containing the appropriate code. I can access this page directly just fine, but whenever I test out the search form, ...
ryne.andal's user avatar
3 votes
2 answers
146 views

Using third-party functions

I have a third-party PHP script that I want to integrate and use in my site. The script is quite small and comes with its own functions and array indexes. How would I be able to call the functions and ...
jay's user avatar
  • 41
3 votes
4 answers
4k views

What can cause Drupal to crash Apache?

In my local development environment, Drupal keeps crashing Apache when I try to load admin pages. The user pages all load fine, but any admin page causes apache to reset itself. In the apache error ...
acrosman's user avatar
  • 2,728
1 vote
1 answer
108 views

Storing variables in a theme outside preprocessing

I have some variables that I want to store in my theme, but I cannot always use theme_preprocess() to set and subsequently gain access to them. What is the best way to do this? I would like to not ...
ohmusama's user avatar
  • 125
0 votes
1 answer
750 views

hook_init() causes login problems

I created a custom module which has the following hook_init() implementation. function gate_init() { $curr_uri = check_plain(request_uri()); if (strpos($curr_uri, 'admin') === FALSE) { if (...
Codium's user avatar
  • 4,955
3 votes
1 answer
469 views

Does Apache Solr assign a weight to HTML tags?

Would Solr consider HTML tags when it creates its indexes? Would <h1>, for example, be more important than <h2>, <p>?
WestieUK's user avatar
  • 3,838
1 vote
1 answer
1k views

Taxonomy menu expanded with count

I have an accordion menu (taxonomy menu) as a block.   I want to have a very similar block but this time I want to have all taxonomy items expanded. I am thinking to something like this: &...
wallace740's user avatar
1 vote
2 answers
4k views

How do I create scrolling views?

I want to scroll my views, but I don't find a module that allows this. Is there a module for scrolling views? How can I scroll views, if there isn't a module with that purpose?
AmirHossein's user avatar
8 votes
3 answers
10k views

Custom theme function not being called?

I'm building a Drupal 7 module to create a bespoke field type. I've implemented all the required hooks. My hook_field_formatter_view() function looks like this: function MYMODULE_field_formatter_view(...
Camsoft's user avatar
  • 3,139
0 votes
2 answers
424 views

Author information lost after saving node

I am developing a site using Drupal 6. Sometimes, when I edit and save a node, the author information is lost and the node is unpublished. Some observations: When I edit the node again, even with ...
avdgaag's user avatar
  • 101
2 votes
1 answer
880 views

Form submit problem

I have no idea why my form submit only work if I put on screen values of $form argument. If I add: echo '<pre>'; print_r($form); echo '</pre>' to my submit function I am getting new '...
user1077's user avatar
  • 173
1 vote
2 answers
2k views

Theme a specific block id

I am looking for a simple and effective way to implement template for specific block IDs. From what I read in Author information lost after saving node and Drupal 6 Template Suggestions, I came up ...
Disco's user avatar
  • 431
0 votes
1 answer
529 views

PayPal handling with Simple Payments?

I'm using Simple Payments to handle PayPal processing in a module I'm building (See previous question). The first part is fine -- it sends data to PayPal okay, but now that users can pay, I need to ...
aendra's user avatar
  • 1,755
1 vote
2 answers
3k views

Access to preprocess variables in a custom block

I have created a custom block to display some contact information. I have a preprocess function that sets a contact variable like so: function atstump_preprocess(&$vars, $hook) { $vars['...
ohmusama's user avatar
  • 125
1 vote
1 answer
29 views

access node field variables in theming view-field

How can I access a filed value of the node that I don't want to display in the view, is there any way to pass the field variable in $fields using view but not include it in display, I'm just want to ...
Mojtaba Es's user avatar
1 vote
1 answer
316 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 ...
Edvin's user avatar
  • 11
2 votes
2 answers
328 views

Attach different CSS styles on a node basing on publishing date or other PHP properties

I want to attach a different CSS style to a node, basing on the node publishing date or some PHP properties. What would be the best way to do this?
Matthew Hui's user avatar
  • 1,368
0 votes
2 answers
896 views

Module to upload a file for attachment to many nodes as a bulk operation

I have a large number of nodes created with a large subset for a specific term that I would like to add one file to all of these nodes at one time. For a single case, I have a CCK field for uploading ...
Mike Munroe's user avatar
1 vote
1 answer
226 views

Is it possible to use %user_uid_optional as a view path?

I am using %user_uid_optional in the path of a view, but it doesn't seem to be working because the tab is not showing. It looks like that the user_uid_optional_to_arg function is not being called. Do ...
João Guilherme's user avatar
1 vote
1 answer
199 views

Joining Taxonomies in an Ubercart Views into a single Field Group (D6)

I have a view for a taxonomy term filtered by the argument. A particular product has more than one taxonomy term related to the individual node. This works for only all nodes that have just one ...
chrisjlee's user avatar
  • 6,550
19 votes
7 answers
16k views

Disable register email notification

I have made a deep research over the web and I also tried a lot of alternative solutions, but I didn't find any solution to disable the email notification for new users. In my User Settings, I have ...
lnunesbr's user avatar
  • 401
1 vote
3 answers
642 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 ...
Jordash's user avatar
  • 201
1 vote
1 answer
5k views

D7 views 3, display content based on path

I have a block that displays results of the nodes i have created but i have those nodes on a specific path, anyway to put this short im trying to make a block from views that displays content based on ...
Jeremy Love's user avatar
8 votes
2 answers
13k views

Dynamically adding a CSS class to a view row with template.php

I've actually reached the bottom of Google trying to figure out how to add a css class to each row of a view. The trick is that I need the class for each row to be dynamically determined based on ...
JGrubb's user avatar
  • 377
0 votes
1 answer
190 views

What is the picture field in the node object?

print_r($node) outputs: stdClass Object ( [nid] => 4 [type] => grouptype [language] => fa [uid] => 1 .... [title] => sample group .... [name] => ...
Mohammad Ali Akbari's user avatar
0 votes
2 answers
113 views

Specific node is being attacked by spam comments. What do I do to prevent it?

My site is being heavily attacked by spam bots and this is taking place only on one specific node. All other nodes are safe or the spam there is being blocked by Mollom. How do I prevent further spam ...
bcosynot's user avatar
  • 502
2 votes
2 answers
364 views

Override nodereference_autocomplete functionality

I would like to edit the functionality contained in nodereference_autocomplete() so that it will only return a subset of all nodes. What would be the best way to override this default functionality?
markdorison's user avatar
  • 5,614
1 vote
1 answer
389 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 ...
manoelhc's user avatar
  • 111
0 votes
2 answers
133 views

Templating a form

I'd like to change the template of a form that I created via a module but I do not know what I'm doing exactly as I have snippets of "information." For information, this form is in 'node /add/page' or ...
Onita's user avatar
  • 714
6 votes
3 answers
2k views

Restricting node reference values to owner

I have played with a bunch of modules (Node Reference Node Access, Views Field, View Reference) and can't seem to find one that does a very simple job; In one content type I want a field that provides ...
Christian's user avatar
  • 782
1 vote
3 answers
472 views

Using a custom template in a theme

I have created the custom template page-org.tpl.page in the Zen theme, and I want to include this custom template file in the menu calling; when the user clicks on the Org link it should use the ...
Chandra's user avatar
  • 11
3 votes
1 answer
909 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?
Onita's user avatar
  • 714
1 vote
2 answers
460 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 ...
Korchkidu's user avatar
  • 113
1 vote
1 answer
1k views

post comments with approval on forum

i use advanced forum. in permission page and comment module permission i dont set post comments without approval for authenticated user but when authenticated user send post on forum it immediately ...
user780's user avatar
  • 1,029
0 votes
3 answers
538 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 ...
Robert D.'s user avatar
1 vote
2 answers
1k views

HTML in Menu title

I want to be able to add HTML tags in the Menu title - line breaks, italics, etc. I've gotten as far as needing a custom function in my template.php file. Something about "theme_menu_link?"
Mike's user avatar
  • 755
0 votes
1 answer
1k views

Display a Views slideshow only if more than one image

I have a content type with an image field that allows multiple values. I have a View that displays the images using Views Slideshow. If there is only one image added to a node, I just want to display ...
pushka's user avatar
  • 1,853
6 votes
2 answers
867 views

Bulk update got slower after conversion of database tables to InnoDB

After I converted the database tables to InnoDB engine from MyISAM, I noticed some operations became very slow, especially on updating multiple nodes in bulk for administrative work. Front end ...
Ki Kim's user avatar
  • 189
9 votes
2 answers
6k views

How do I disable comment auto approval?

I have comments that are being auto approved in Drupal and I'd like to disable that. I want to approve comments before they are published.
Jordash's user avatar
  • 201
1 vote
2 answers
1k views

Best way to add Vcard to node

I have a content type with CCK fields that make up contact information. I was asked to add a VCard / Add to outlook feature. I have a few ideas on how to do this but not sure which one is good. My ...
Scott's user avatar
  • 273
2 votes
2 answers
322 views

Feeds: removing text from a title

I am using the feeds module to import an rss feed from twitter. The feed title and body starts with ": then my tweet". I wish to remover ":" from the creation of my nodes. I can remove it in the body ...
Lucy's user avatar
  • 1,502
0 votes
1 answer
395 views

Use Drupal as a 'cloud system' frontend, what is your opinion?

I'm working on a small project where I need implement some kind of cloud architecture. I'd like to deploy multiple Drupal installs among multiple servers; one would act as a domain controller and ...
Disco's user avatar
  • 431
1 vote
1 answer
1k views

How do I import an RSS feeds into nodes?

I'm looking for a way to import an RSS feeds into nodes. This is an example of RSS feeds that I'm trying to import: <?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"> <...
user avatar
0 votes
1 answer
3k views

Embed some user profile fields in a block form

I've added some fields to user profile. None of these fields are displayed on registration form, but I want user can edit them quickly when he is logged. I want to embed some fields in a static ...
pasine's user avatar
  • 575
3 votes
3 answers
632 views

Display 2 contents types fields in 1 view

I am trying out Drupal 7 - and am a complete noob, so please bear with me! I have a content type - 'film' which displays various fields about a film and another called 'venue' which displays data ...
njwrigley's user avatar
4 votes
2 answers
2k views

How to use Google and Ubuntu fonts on Zen theme

How can I use Ubuntu font and Google fonts on Zen theme?
jone's user avatar
  • 631
4 votes
2 answers
1k views

Taxonomy terms follow/unfollow module

Is there any module or options to allow site users to follow or unfollow the taxonomy terms?Basing on the following terms, I have to send a notification if any new post has been created on those ...
Edvin's user avatar
  • 63
1 vote
1 answer
863 views

Theming user-profile

I am on Drupal 7. Hi, I have installed the Devel module and I am using it to help me theme the user-profile.tpl.php. I want to show the e-mail information only when the user looking into the user info ...
Marcos Buarque's user avatar

15 30 50 per page