drupal

Which CMS as the basis for a custom web application

I'm looking at building a custom web application for a client (a specialized auction site, in this case), and we're evaluating using some existing CMS as the "scaffold" for the application. The justification is the fact that for many custom web application projects, some 70% of the code written goes in to adding CMS features, user manag...

Code for Nginx rewrite rules for serving .html in Drupal on Aegir folder

I have a Drupal website at www.domain.com Typically, Drupal stores files in www.domain.com/files. I have newsletter archives in http://www.domain.com/files/outreach/newsletter_templates. When a user goes to http://www.domain.com/outreach I would like it to show the content of /files/outreach/../.. Can this be done with rewrite rules, ...

Template for one special category

I am looking for a way to create a special template for a category. I created a taxonomy for the tags. The Url structure for the overview page of the tagged articles for one specific tag is for example: /category/tags/testtag2 How can I create a template file for the 'tags' category? I created a file named node-view-tags.tpl.php but...

Is drupal well suited for a Real Estate web site?

Hello everybody, this is a simple question. I have to develop a Real Estate website and i'm trying some alternatives. Have you ever try to develop a Real Estate on Drupal? Have you any concrete thought about how could it be done? Thanks!!!! ...

Drupal 6: "Facebook" style comment ordering (threaded, descending+ascending)

Hello. Working with Drupal 6, my goal is to order a set of threaded comments similar to how Facebook outputs comments: with the 'anchor' or first comment in each thread sorted DESC, and any 'internal' thread replies sorted ASC so the newest comments are at the bottom. Here's the SQL query from comment_render, with ordering by COMMENT_OR...

drupal multiple content type reference

Drupal has content types set as: - Book - Contributor Custom CCK fields are added to above content types. Contributor has type id set as: - Author - Seller - Reader The above contributor type id is to be added (currently with node reference) to "Book" with Author and contrition typpe "Seller". example: Book Co...

Drupal Admin is not able to access edit views page

I have a Drupal site and the Drupal site's admin is not able to access the edit views page. Lately, the site has also had the problem of Content Access permissions which required me to rebuild the permissions.However, the warning that 'Content Access Permissions need to be rebuilt' continues to persist. Whenever I goto admin>build>vie...

Drupal Slow Query Log Analysis

Hi, I turned the slow queries on for a Drupal site and following are the top 10 slow queries. Any idea on how I can find their source or origin Reading mysql slow query log from /var/log/mysql/mysql-slow.log Count: 1 Time=220.72s (220s) Lock=0.00s (0s) Rows=14293563.0 (14293563), root[root]@localhost SELECT /*!N SQL_NO_CACHE */ *...

How to customize drupal search to show only taxonomy view pages?

Hi, I'm stuck and need your help! Setting: I have a Drupal 6 website and activated the view for taxonomy term pages. On my website a taxonomy page is composed of several different content types. All the different content pieces are tight together by the shared taxonomy term and displayed by the taxonomy view. Problem: When sea...

Drupal: add a js function callback to Drupal.settings.

Im using [drupal_add_js_()][1] function to add a fancybox effect to some image in my nodes (im not using the Fancybox module becose doesnt fit my needs). In short, i need to add the titleFormat function to format the image title; In my javascript file, it looks like: $("a[rel=myfancy_group]").fancybox({ 'transitionIn': 'elastic', ...

Drupal: Dynamic View using Arguments

For a current project i need to setup a specific view to display a gallery detailpage. It should work like this: 1. User clicked a node (costum-post-type: gallery) 2. User received an overview page with linked images 3. User clicked an image 4. User received the gallery page (gallerific view) Step 1-3 are done. But how can I get Drupa...

Is there any way to get uid from user name in Drupal?

Hi, Is there any core function to get uid from username in Drupal? Or I should perform a db query? my field is a textfield with '#autocomplete_path' equal to 'user/autocomplete' ...

Security question: excessive Drupal requests from a single user account

I've notice some strange behaviour on my Drupal site. I like to understand the data I'm looking at before I take action so that I don't waste time pursuing the wrong measures, but I'm lacking security knowledge to interpret. A single account has made many odd repeat requests, including attempting to reach the edit profile page, logging...

How should I sanitize user data when integrating with a REST API for registration and authentication?

I'm writing a Drupal module to integrate with a custom Java-based REST API for creating, authenticating, and managing user accounts. I'm using drupal_query_string_encode to encode the calls I'm making to the API. Should I also use something like check_plain (or something else) to sanitize username, password, & email values before callin...

How can I filter only registered users in drupal?

Hi, I can filter users lie administrators, redaktors, editors, but I cannot filter registered users. Is there a module for it? I cannot find anything! I just wnat to see list of registered users except administrators, editors,corectors ...you know. thanks ...

Pass an argument to a panel and reload using ajax

Hi All, I have a question, and I'm a complete ajax n00b and really need to make this work. I have 2 columns, one displays a list (from one view) and another is a single node display (also generated through a view). Each view is within its own pane in panels. How can I get a click from the list pane to update the argument passed to ...

likely cause?(drupal imagefield conflicts with my module)

Imagefield is not working properly and I get this lengthy error - { "status": true, "data": "\x3cdiv id=\"edit-field-image-0-ahah-wrapper\"\x3e\x3cdiv class=\"form-item\" id=\"edit-field-image-0-upload-wrapper\"\x3e\n \x3cdiv class=\"filefield-element clear-block\"\x3e\x3cdiv class=\"widget-preview\"\x3e\x3cdiv class=\"imagefield-previ...

how do i filter out content from a default Drupal View, based on what content is pulled into the attached view?

currently: i have a page view that is displaying all content that is flagged as "not featured" with a simple CCK dropdown. the attachment to the view displays all content that is "featured" and is styled to be a little more impressive. what i'd like to be able to do is have a few, say 3, featured items display at the top in the attach...

Drupal error reporting by e-mail

I'm looking for a solution that would mail me errors from /admin/reports/dblog site in Drupal 6. The best would be a daily summary. Is there any module or a trigger+action solution for that? ...

generate rss according to views argument in drupal

is it possible to generate RSS according to views(module) argument? ...