drupal

Drupal is allowing viewing of unpublished content

I inherited a Druapl5 site and it's showing content when published is not checked in the Publishing Options section of the Edit Content Form. I confirmed that the status is 0 in the DB for the node. So it should be not visible. My first guess was that I was logged in and that's why I could see it, but I logged out and I could still see...

Not getting the name module in Drupal

i am working on Drupal 6.14 and i am not able to get the name module. For this i downloaded name_registration.tar.gz but i got the error Access Denied. What do i do? ...

sIFR problem with links (no longer functions)

I can't get links to work on this page with sIFR: http://323creative.com/files/sample-sifr/ The browsers sees them but they can't be clicked. More specifically: Mac: Firefox 3/3.5 doesn't (Flash 10) / Safari 4 does (Flash 10) PC: Firefox 2/3 does, Safari 3 does / IE6/7/8 doesn't (Flash 9 or 10) I've looked into all kinds of things ...

Silently modifying nodes

I'm about to batch update every node in my database. Having made a recent change to my Auto Node Title rules, I'll be using Views Batch Operations to re-run everyone through ANT and potentially change their title. I'd like to do this silently, and not have every single node appear in my recently modified view. Anyone know how to accom...

Provide user with "change permissions" link on content type?

I'm trying to find a simple solution to a specific problem, which is a way to allow bloggers on my site to be able to control permissions on individual posts. So they could decide whether to have their post show up for all visitors, or for authenticated users only. The closest module solution I've found so far is the Node Access module...

How to allow customization of a platform built on Drupal (and PHP obfuscation)

Hi, My company is building a platform on top of a heavily extended Drupal core. I have multiple customers who will be using separate instances of this system and will want to customize both the theme and the functionality. I'm trying to design a system to allow them to add themes and modules, some of which might interact with some of m...

view and primary link

I have a primary link "accommodation", then i have created a view , called "listing", and set that listing path to "accommodation". but when i access url myurl/accommodation , the view was not show up. but default content of primary link "accommodation" showed up. how can i make myurl/accommodation to show my "listing" view. thanks ...

Drupal 6 hook_form_FORM_ID_alter adding upload file field

I'm trying to extend a form and add an upload file field from within a module, I can see the file field just fine, but it's empty when I submit the form, the enctype is set. $form['#attributes'] = array( 'enctype' => "multipart/form-data" ); $form['file_upload'] = array( '#type' => 'file', '#title' => 'Attach Image' ...

Drupal views - how to remove string pattern using "Rewrite the output of this field"?

Views - Fields: I want to remove a certain matching word from a returned string by using the "Rewrite the output of this field". Is there extended syntax for this or is there a way to use php string-functions/regex in this field? ...

how do I extend a contributed module in drupal

How can I extend an existing module without modifying it? Actually its a contributed module, so I don't want to hack it. But I want to alter and add certain features to it. I'm new to drupal and as I read tutorials about it, I keep hearing one thing again and again - Don't hack the core... and I believe the same applies for modules too. ...

Drupal form requests external api

I need a multi-page drupal form that requests an external xml api and displays the data on the second page of the multi-page form. I'm new to drupal and I've been reading advices on here and on drupal.org. I think I can either use the computed field on cck or I write an module to do this. I think I will do both, first using the computed...

retrieve how many node belongs to a taxonomy

i have follow taxomony has been set up: accommodation -backpacker -guest -holiday and i have a content type called listing which is connected with accommodation taxomony, whenever i add a listing, this listing is associated with a type of accommodation. now i need to find out how many listings under each taxomony. for example: if i ...

drupal and jquery

i have turned on jqury-update module for drupal 6, but jquery was not not loaded, i have checked page source, not jquery here. are there any steps i need to do to load jquery? i have copy all jqury files to misc folder. it just not loaded by front page ...

Can I develop a Mobile website using Drupal?

I want to develop a website using Drupal that can be accessed on mobiles. Can I do that? ...

Difference between Web Application Framework and a Content Management System?

Are both completely different concepts? Or is there an overlap in their meaning? Would it be correct to say that a Web Framework is used for the creation of a front-end, while a CMS is used for the back-end? If yes, then should the Web Framework use the same technology as the CMS? For example could Ruby on Rails be used in combination ...

Drupal: passing variable from preprocess to template.php?

How can I get a value from a preprocess function to template.php, in a function named sitename_modulename_user_loginblock($form)? I created the value in the preprocess function with a custom query so I could do that in the loginblock function itself, but only $form is available there and I need 3 other variables to construct the query. ...

Filter and View screens on different pages

Situation: In Drupal, when you use Views module, it restricts to display Search Form and Results on the same page. E.g. Page A = (Search Form + Results). There is no option in Views module interface to move/copy Search Form to another page. E.g. Page A = Search Form, Page B = Results Form Question: Is it allowed by Views architectur...

What are best practices for determining if I should create a new Drupal module?

I'm using Drupal for the first time for a project at work. I'm finally getting my head wrapped around some of the core concepts, but when it comes to customizing output I'm unsure of how to proceed. I have to build a fairly specialized image gallery. I've managed to cobble something workable together using Views2, but it's not quite whe...

How do I create a node count for each each category term in Drupal?

I want to create a list of category terms (contained within a block), with each term to be followed by a count of the number of nodes with that term, e.g.: Cats (5) Dogs (4) Elephants (2) There are a number of modules that create whole lists like this dynamically, but I've found they all have drawbacks for my purposes. I literally jus...

get vocabulary id by name

I can retrieve a vocabulary id directly from DB, but is there a built in function for this? for example: i have a vocabulary called "listing", i need that built in function takes "listing" as function argument, and return a vid. i am using drupal 6 ...