drupal

Embedding a new region to a content-type node template

I'm new to Drupal, and the Drupal website is currently down, ahh! I need to know how to add a region to a custom node template. I've tried adding the following function to template.php in the my_theme directory: function my_theme_preprocess_node(&$vars, $hook) { $vars['usersummary'] = theme('blocks', 'usersummary'); } And then p...

Drupal 6: Search index and custom content types

Sorry, if question is too obvious — does Drupal 6 index nodes with custom content types, not only story, page, etc.? ...

Drupal Administer

How to rename drupal's admin directory as I already have a directory named "admin"? ...

drupal - problem with quicktabs

Hello I have quite a strange problem using quicktabs. I used the framework theme to develop a custom look for my site. I used quicktabs in the center content area to create a tabbed look for placing links within the body. Everything is working fine. However, when I view the site in IE8 at a resolution if 1024*768, I have trouble with...

Serving multiple site with one drupal (not using multi site)

Hi All, I am looking for expert advice on how to best serve multiple sites with one Drupal instance (using Pressflow 6.x). Let's consider the company needing this is called "ABC Group of Companies" and it has 3 sister concerns. So, altogether there will be four sites: www.abcgroup.com www.company-a.com www.company-b.com www.company-c....

In Drupal, need code for siblings of current node

I'm looking for a snipppet of PHP I can drop into a .tpl (Drupal 6.1.9) that will list the sibling nodes of the current node. Hopefully that's enough information, but here's the nuts and bolts: By "nodes" I mean that I've got everything in the "Primary Links" menu. I'm only interested in the hierarchy defined there. By "node" I als...

How do I insert a CURRENT_TIMESTAMP into a PostGreSQL configured Drupal instalation

Hey there, I'm using drupal and a pgsql database, but after long searches I still can't figure out how to put a CURRENT_TIMESTAMP or now() into the database when inserting a row into a table. Putting now() on the default value of a column won't work, because drupal won't accept it on the database schema, so that's out of question. The c...

submit the end form using page break in Drupal

Hi All, I have used page break and created 4 sub pages in Drupal. Now the problem is every page has a next page button which is a submit button. I just want the the submit button only on the last page. Is there any option in Drupal using which I can do this. thanks in advance ...

$view->total_rows is wrong (sort of), I want "Items to display"

The "total_rows" property of my view returns the total rows (22), but not the number of items I have set the view to display (5) (through the Web UI Block->Basic Settings). How can I get this in a proper way without relying on (the possibly soon to be deprecated "result" property? for now Im using $totalRows = min($view->total_rows, c...

Drupal .htaccess

I am using Drupal in my website but there are some folders outside drupal. I want to exclude those folders from rewrite rules. I already tried : RewriteCond %{REQUEST_URI} !^/admin/ in .htaccess Options +MultiViews in apache config ...

Flowplayer embed plugin with flowplayer module for drupal-6

I am using flowplayer module (for drupal) as dependency for my webtv module. I need to implement a flowplayer js-plugin embed that helps to generate embed code. I am loading js-plugin module (flowplayer.embed-3.0.3.js) that actually extends the $f object. There is no issue while js-plugin module is loaded. Finally when $f.getEmbedCode(...

Drupal: Fatal error: Call to a member function delete() on a non-object

When I try to save or delete the view this message appears ... when deleting the error is in function delete(), when saving the error is in function validate(). I'm trying to get answer for 2 days already, browsing the drupal forum etc. I cannot get the solution. I'M STUCK! I cannot continue my work! IT'S HELL! People THANK YOU! EDI...

Updating 10,000 cck fields daily in drupal

One of our sites has around 10,000 nodes. In each node, there is a simple cck text/integer field. This integer changes daily, so they need to be updated every day. The integer ranges from 1 to 20000000. The cck field is across all content types, so it has its own table in the database. We don't use revisions. I chose to have it rea...

drupal: search results with no pager and no limit

I'm pretty new to Drupal, but I guess I know how things work. I separated the Advanced Search Form from the search page and made a block from it (that was part 1). Woohoo. Part 2 is the pager-from-nowhere in the search results. Drupal search results are paged by tens and I can't seem to find a way to change it. Not a decent way that is....

Rules module not picking up the (external) "User Login" event?

In my installation the users login with Shibboleth [1], but the rule [2] I've set up to be executed on "User has logged in" event, isn't executed. On the other hand, when I login as administrator through the normal Drupal way, the rule is executed. Does this mean that the external login event isn't handled at all? Is there a way to ov...

Find a list of modules that 'altered' a specific form in Drupal

Is there a trick, addon or patch that allows me to find out what modules altered a specfic form? A list of all hook_form_alters is not too hard to achieve. But I want to list only those that actually changed my form. Modules can alter a form trough a generic modulename_form_alter() and modulename_form_FORMID_alter() it would be nice i...

I can't watch videos I upload to drupal

I can upload a video to my drupal instance, but when I try to view the video I don't have rights to do so. I discovered that the IIS_IUSR doesn't have Read & Execute rights on the video even though the IIS_IUSR does on the containing directory. IIS_IUSR has Read & Execute, List folder contents, and Read rights to the directory where fil...

How to combine standard content type with customized hook_access() ?

I am happy with the standard Page and Story content types. Still I need more control over the access control. I would like to write my own access control. I like the concept of the hook_access() for controlling access to the content types you build your self. Do I have a hook_access() available when I am using my content type? ...

Template is lost on pagination Drupal 6

Hi, I have a site created in Drupal 6 and am having problems with a particular page. The page uses a specific content type (type_a). This has it's own page template (page-type_a.tpl.php) This all works fine. I've then added a view onto that page using views_embed_view(). This view has pagination. The first page looks great (URL = /my...

Lightbox 2 and IE

Why when I click on lightbox thumbnail IE opens image in new window, but Mozilla and Chrome open image using lightbox effect? there code <a href="/sites/default/files/photo-7-5e02f57b1cd470c.jpg" rel="Lightbox[album][]" class="lightbox-processed"><img src="/sites/default/files/photo-7-5e02f57b1cd470c.jpg" width="130" height="100" style...