drupal

Why does drupal_get_title() return empty on a Views page?

I have used the menu_breadcrumb module as the basis for a module that produces a breadcrumb based on the current URL path. It works great on regular nodes, but on any pages that are rendered by the Views module, the breadcrumb cannot get the title of the page. The module's call to drupal_get_title() returns an empty value. I wouldn't be...

Drupal or Wordpress CMS as a Social Network?

I am making a community for web-comic artist who will be able to sync their existing website to this site. However, I am in debate for what CMS I should use: Drupal or Wordpress. I have heard great things about Drupal, where it is really aimed for Social Networking. I actually got to play a little bit in the back end of Drupal and it s...

Drupal: drupal_set_message doesnt display a message

I cannot seem to get a message from drupal_set_message when a user registers on my site. I'm using Drupal 6.14. Adding a print in the user.module: function user_register_submit($form, &$form_state) { ... if ($notify) { ... } else { drupal_set_message(t('Your password and further instructions have bee...

Drupal + Nginx + Php-cgi : 502 Bad Gateway error

We are running Drupal 5.x on Nginx with php-fastcgi. Things were working fine for a while. All of a sudden, we (users) are running into 502 Bad Gateway error. Restarting PHP-cgi, nginx.. rebooting machine etc did not help. Did anyone else run into this type of issue? What are the possible suspects? ...

Disabling /node view and other hidden views in Drupal?

Many long nights spent on my site, and now I've started doing all sorts of security checks and stumbled upon the following: www.mysite.com/node That shows the latest x nodes that a user has access to. I DON't want this view visible to users. And I certainly don't want any other views similar to this available. So, my questions are: ...

Removing [nid:n] in nodereference autocomplete

Using the autocomplete field for a cck nodereference always displays the node id as a cryptic bracketed extension: Page Title [nid:23] I understand that this ensures that selections are unique in case nodes have the same title, but obviously this is a nasty thing to expose to the user. Has anyone had any success in removing these bra...

Give away signs that a site is Drupal?

I'm trying to alter my site in such a way so that when people view it, they don't know it's powered by Drupal. So, was wondering if there are any signs that give this away that I should know about? Some of the giveaways I know of, are: When adding content, it will say "node/add". If the following file exists: misc/favicon.ico etc I...

Changing the QTY label in Uber Cart?

How do you change the QTY (quantity) label in UberCart (in Drupal) without actually hacking the core components? I want the label to be be months, instead of qty. ...

Drupal6: Embedding a region in a view .tpl.php file

Anyone have any ideas on how I might embed a region into a view .tpl.php file? I accomplish it easily enough in a node .tpl.php by adding something like this to theme_preproces_node(): $vars['promos'] = theme('blocks', 'promos'); No problem at all. However, there obviously isn't a theme_preprocess_view() function, and I get memory e...

Drupal OG Views: cannot create view of all groups of which I am *not* currently a member

(Also posted as http://drupal.org/node/596860) I would like to create a view showing only those groups of which I am not already a member (or a pending member). However, the obvious way of doing this (take the og_my view and change the filter "Organic groups: Group member" to false) does not work. The reason is that the SQL query essen...

Drupal: retrieve data from multiple node types in views 2?

...or, in other words, how to create a simple join as I would do in SQL? Suppose I want the following information: Just as an example: a person's full name a person's hobbies. His full name is in a (content profile) node type 'name_and_address' and his hobbies are in 'hobbies'. In SQL, I would link them together by node.uid. I've...

Correct way to force an invoice e-mail to be sent to a user in UberCart?

What is the correct way to force the system to send an invoice to a client. I'm trying to use: uc_order_action_email($order, $settings); But I keep getting: Fatal error: Call to undefined function uc_price() in C:\xampp\htdocs\YourEstablishment\src\sites\all\modules\ubercart\payment\uc_payment\uc_payment.module on line 149 ...

Drupal Performance - Sudden user burst

We run a Drupal site, and are expecting a sudden burst of users some time soon. What are some of the best Drupal practices to handle sudden burst of: - User registrations - User Authentication These operations are heavily dependent on database... so, how do we optimize that? Are there any techniques that minimize DB interaction during ...

getting common nodes between two tags

Hi, i have a table with 2 columns tid and nid columns, i need to prepare a report to get common nodes between a tid. i.e table is like (tid, nid) (mysql,2) (mysql,3) (ajax,1) (ajax, 2) now i need to get what what are the common nodes between ajax and mysql which is node2. i am looking for a query or some logic with database query in...

What tool can I use to allow multiple teams to share files?

I need to work with several teams and need to be able to share requirements and design documents. Most people won't be too technical, so I want to avoid source code tools. The main requirements are: Easy sharing via links. I don't want people to have to install multple tools just to see a file or learn anything about svn checkout. P...

sql query not working in drupal when fetching more than 100 rows

I was trying to execute this mysql query it is not giving me any results if i set the query_limit to more than 100, can somebody point me what i can do to get this working for fetching more data. $query_limit = 190; $query1 = "SELECT N.nid ,N.tid FROM term_node N JOIN term_data S ON S.tid = N.tid AND S.vid =1"; $query_result = db_quer...

query limit issue with php and mysql (drupal 6)

hi i was trying to do a query in drupal which selects every row in table, i was having an issue with the no of rows i was able to query for the query is working for 300row limit but if i increase it 400 it is going blank page. $total_terms = 300; $query = "SELECT N.nid ,N.tid FROM term_node N "; $query_result = db_query_range($query, $...

How do you migrate CCK fields between environments in Drupal?

The Content Construction Kit (CCK) is one of the most useful Drupal modules. It allows you to easily add custom fields to a content type. However, these new fields are created through Drupal itself and stored in the database. This means that if you change a CCK field in your development environment you need to manually make the same cha...

Detect which other modules are enabled in a new Drupal module

I'm creating a Drupal module which doesn't necessarily depend on other modules, but could offer other options if, for example, the Path module is enabled. What I'd like to know, and can't seem to find by searching, is whether it is possible to detect which modules are currently enabled from another module so that that module can offer o...

jQuery sort function freezing a (previous) show() text

Hi all. I'm sorting a list of species, but sometimes the list is large and it takes several seconds to sort it. Thus, I tried adding a small notice to let our users know there's something running (and they should wait). Please just check this page: http://ibc.lynxeds.com/family/babblers-timaliidae And click on "Sort and Filter [+]". Then...