ajax update block on click to link

ajax update block on click to link

I am using jQuery Ajax Load module in my site to load some contents from url to show on specific div which has a required class. With this module I am able to fetch the Page content from URL through ajax & displays on specific block. I need to replace the blocks... read more
Image module custom image style changes image link

Image module custom image style changes image link

I am using Drupal 7.32, and I enabled the Image module. I have created a custom “Image Style” so that I could add Bootstrap 3 “img-responsive” class to my image in my view, but adding that custom style to the image field for my view causes... read more
ajax update block on click to link

Adding a validation step via hook_form_FORM_ID_alter()

I am trying to add a custom validation function to an existing form. I am using hook_form_FORM_ID_alter() to edit the form. I am then adding a new function to the #validation array. When I use dpm() and print out $form[‘#validation’] I can see that my... read more
ajax update block on click to link

Translated dates in Views

I have a View which outputs the node creation date. But the site is multilingual. The problem is that I cannot choose a custom date format, as the Views just accepts one of a list. If I use a custom PHP format like j F Y (day month year in friendly format), I have... read more
ajax update block on click to link

I am getting temporary file could not be copied because the destination directory is not properly configured error

The specified file temporary://fileDTbhYD could not be copied, because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log. I have set read and write... read more
ajax update block on click to link

Create a Modal to Add new fields dynamically

I have to develop a contest page. Every participant may have one or more codes that can use to participate in the event. After that the user must fill a form with their personal data so they can be contacted in case they win the contest. How could I add a [+] button... read more
ajax update block on click to link

Custom Field Type is missing in Feeds Importer

I’ve got a problem with feeds importer. I’ve created a custom field type, and added a field with this field type to my content. If I try to import data via feeds importer, in mapping, this field is missing. Do I have to tell my custom field type that it is... read more
ajax update block on click to link

Ajax callback does not replace the form but add a new field

I use his code to populate a select after giving à zipcode. $form[‘responsible’][‘zipcode’] = array( ‘#type’ => ‘textfield’, ‘#title’ => t(‘Zipcode’), ‘#default_value’ =>... read more
ajax update block on click to link

Add product fields to cart form through line items

So I have a Product field called “Quantity Per Box”. It’s a field that says how many items (in this case, screws, nuts, and bolts) come in each box. I want to display this number in the view when the customer goes to cart. I have the field as part of... read more
ajax update block on click to link

Fatal error: Maximum execution time of 240 seconds exceeded in sites/all/modules/memcache/memcache.inc on line 353

I am using multidomain site . After adding a new domain record, I was asked as follows: Content access permission needs to be rebuilt on this page. When I clicked on Rebuild Permissions button, the progress bar started the batch operation of rebuilding but in the... read more
ajax update block on click to link

How to delete a file attachment from the apachesolr index

My file attachments are indexed using apachesolr attachments 7.x-1.x-dev. I have a custom module that physically deletes a file using file_delete(), but file still remains in Apachesolr index even after re-indexing. The only way to remove from search results is to... read more
ajax update block on click to link

How to use subquery in views where clause

In my project user can created by profile2 module. When user is created i am assigning some role,initially user is block state. I have another user role ie.user app rover who can approved these user and send activation link for active user. I am using Mail Logger... read more
ajax update block on click to link

Clone product display with referenced product

I am using Commerce Kickstart for Drupal 7, and I need to be able to clone products. In Commerce Kickstart you have all the products just as “reference” of node, product display. I mean, the products themselves are displayed for customers similar like any... read more
ajax update block on click to link

Access Denied for password reset page

I am trying to redirect user to edit profile page after accessing the password reset link, code looks like function mymodule_reset_menu_alter(&$items) { // Drupal’s default behavior is to show the user a log-in form before // their user profile. We replace... read more
ajax update block on click to link

Get taxonomy terms

I wanted to retrieve taxonomy terms from a certain vocabulary in Drupal 8. Apparently I can still do it using taxonomy_get_tree but it’s deprecated. I now have to use TermStorageInterface::loadTree I am trying to access this function from a Block but I... read more
Fixing identical Latitude/Longitude data for markers on maps (bug)

Fixing identical Latitude/Longitude data for markers on maps (bug)

I have a Drupal 7 project that I want to add location information (latitudinal/longitudinal) to most of my content types. Currently I have noticed that if there are multiple nodes that are shown on a map and if any of those nodes have identical... read more
ajax update block on click to link

How to create an Ecommerce Loyalty scheme for customers?

How can I create a ‘loyalty scheme’ where customers are awarded with 5 pence for every £ spent, to be used on furture purchases. The rewards will be saved up until the user decides to redeem them against an order. I have looked for a few solutions but... read more
ajax update block on click to link

Image preview thumbnail does not display

Drupal 7. When adding a core image field to a content type to display an image, the preview thumbnail does not display on the edit page when uploading an image. What appears after clicking on the “Upload” button is a placeholder for the image and an image... read more
ajax update block on click to link

Create and pre-populate a mutiple value field in field collection on new node with ajax call

This question is in the same area as a previous I asked (How to create (& pre-populate) multiple “field collection” fields on an ajax call), but with the extra level of complexity that I’m trying to alter a multiple value field inside the field collection.... read more
ajax update block on click to link

The Facebook Autopost module "user hasn’t authorized the application"

I have a problem with the Facebook Autopost module for Drupal 7.28): After publishing a node, I get an authorization error. Facebook SDK threw an error: OAuthException: (#200) The user hasn’t authorized the application to perform this action I have checked... read more