User contributed image gallery, per node

User contributed image gallery, per node

Working on a new Drupal 7 based site. Put together a few sites back in the 5 days, but lots has changed. I’m looking to allow users to upload images to a particular content type, and to show those images as a gallery. Restated – I’d like user X to be... read more
User contributed image gallery, per node

Is there a way to set two separate views with exposed filters in a panel page?

I have been attempting to create a panel page with two columns, one to display view1 and the other view2. The intent is to have the user choose a content type in each column using exposed filters and have the list of content displayed by the view in the panel page.... read more
User contributed image gallery, per node

How do I change a widget’s markup?

I need to create another widget which acts exactly like a text field, but contains a button and link next to the element. How can I accomplish this? I thought of two solutions. Copy the Text Module (with the Field Module) and look for the HTML Download the... read more
User contributed image gallery, per node

Order list: Pay unpaid invoices

I have created some extra statuses: Paid and Unpaid. Now they got the functionality and react on the transaction balance perfectly fine. However, on the user site, it is kind of a dumb thing. Even if the invoice is unpaid, there is no option to pay the invoice from... read more
User contributed image gallery, per node

How to translate taxonomy terms displayed via an exposed filter in views?

I’m using the Views, i18nviews, and Entity Translation modules. All of my terms have already been translated using Entity Translation. In views displays, the translated terms appear in the correct language except in exposed filters. In exposed filters, the terms... read more
User contributed image gallery, per node

How to pass parameter to ‘options list’ attribute in hook_rules_condition_info?

I am declaring a condition in which I have the following parameters: ‘node_type’ => array( ‘type’ => ‘text’, ‘label’ => t(‘the node type’), ‘options list’... read more
User contributed image gallery, per node

recent content block with thumbnail?

I want to theme the Recent Content block with associated thumbnail of each node. After researching for a long time I found the function node_get_recent(). This function selects data from table ‘node’, but this table doesn’t include any url pointing... read more
User contributed image gallery, per node

How to filter URLs for embedded IMG tags?

This is a great presentation about Drupal security. They were talking about ways to only allow tags from certain trusted domains. Any ideas how to do that? I couldn’t find a D7 module for that. read more
User contributed image gallery, per node

Filter a view basing on a relationship to the current user

This question is similar to Filter View based on current user profile info (from Content Profile Module). I have an elevated user role (Facilitator) that’s associated via profile to a location (whose content type is Space) and should see a list of pre-authorized... read more
User contributed image gallery, per node

Where does redirect from default search to apachesolr_search occur?

We’re using the apachesolr_search module on our site. (This is a site I inherited fully coded, so there’s tons going on that I’m not intimately familiar with yet.) We have a search block that has been customized (see this post for details; we did... read more
User contributed image gallery, per node

How to print a table create with views, using a submit button below the view?

I created a custom template for my views (table) and I inserted a button below the table. By clicking on that button I would like the table to be shown in a new page, from which that table can be printed. Or to say it in another way: I want to embed to new page via... read more
User contributed image gallery, per node

How to hide Header and footer printed page?

I’m using drupal 7 with print module,when printing some node there is some extra content like (date , pager and url) in the header and footer page that will be printed. I just want to print the content of the node. How can i remove this content? read more
User contributed image gallery, per node

A node reference is empty, although the multilingual support is enabled, and the node is translated

I just created a multilingual site (English-French) using Drupal 7 with the module Internationalization 7.x-1.4. Everything is working fine except with the module References 7.x-2.0. For instance, I created a content type “School” so that each user is... read more
User contributed image gallery, per node

default value for entity reference field

I have a form with an entity reference field and I need to add a default value. I’ve tried $form[‘field_op_product’][‘und’][0][‘target_id’][‘#default_value’] = $product_node->nid; but, that doesn’t work.... read more
User contributed image gallery, per node

Show subterms in a page

I have two categories and each one has subcategories. I put the parent categories in a menu. What I need is: when I click a parent category its subcategories should be shown in a new page. How I should that? I’m using Drupal 7. read more
User contributed image gallery, per node

Programmatically activate users [duplicate]

I have a custom module that allows administrator users to review users, and then approve their registration. I can’t figure out how to programmatically trigger the ‘approve’ process. Changing their role, or doing a regular user_save() with the new... read more
User contributed image gallery, per node

How can I use pathauto to generate URLs for deeply nested vocabularies?

I am generating breadcrumbs from URL arguments as described here. I have a vocabulary that looks like this: Arts-> Performing-> Dancing-> Ballet I want my url to look like this: arts/performing/dancing/ballet Using the pathauto module, I can do this for... read more