Questions tagged [drupal-7]

Drupal 7 made its official debut on January 5, 2011. Instead of relying on this tag, we recommend asking your question directly on drupal-7 for more helpful responses.

Executing a Drupal rule using JavaScript: A step-by-step guide

I'm facing a challenge when trying to activate a Drupal rule using JavaScript code. lowerLayer[image.feature_nid].on("dragend", function() { var position = kineticImage.getPosition(); var layerPosition = this.getPo ...

Expanding a module contribution by including an additional field in the database submission

Currently, I have integrated the fivestar contributed module into my website pages. Additionally, I have developed a custom helper module that allows me to expand the functionalities of the fivestar module by incorporating a personalized widget. This was a ...

Error in creating directory 'temporary://update-extraction/' in Drupal

As I attempt to install a module on my Drupal 7.37 version, an error message pops up: Unable to create directory 'temporary://update-extraction-9b760e0c/. I've already set the permissions of the ./path/to/tmp folder to 777 under Configuration->Media->F ...

Moving a Drupal website from a live server to a local server causes broken hyperlinks to appear

Just starting out with Drupal and I have been tasked to work on a live website running on Drupal 7. The website is functioning properly on the live server, but when I downloaded it to my localhost, I encountered an issue. The homepage loads fine, but click ...

How to move a div beneath the JavaScript files in Drupal 7

I am facing a challenge where I need to position a div right above the body tag without interfering with the scripts located above it. Despite my efforts, I have not been successful in achieving this goal. I attempted to use Hook_page_build to position t ...

Problem with Elysia Cron in Drupal 7: Invalid key causing Cron to fail

Our Drupal websites utilize Elysia Cron and have an external CRON tab set up to access the CRON URL at . Unfortunately, upon checking the logs, we encountered an error message stating: "Cron could not run because an invalid key was used". ...

Drupal 7 Web Service Implementation

Currently, I am managing a Drupal 7 codebase that includes a web service utilized by external iPhone and Android applications. The URL for this web service is like so: http://example.com/api/module_name/find.json?param1=xxx&param2=xxx I need to make a ...

What is the reason for multiple ajax functions being triggered when submitting a form through ajax?

I have a Drupal form with an AJAX submit. Additionally, I have another jQuery $.get function that sends a request every 2 minutes and inserts the response into an HTML element. The form and this JavaScript code are independent of each other, performing sep ...

51% of memory being consumed by /ds_extras_node_page_view in Drupal 7

I've been dealing with a Drupal 7 website that experiences downtime a few times per month for about 4 to 5 minutes. According to the New Relic report, /ds_extras_node_page_view consumes 52% to 92% of the memory during loading, which is causing the site to ...

Combining the powers of Javascript and Drupal can create

My current setup includes an "open video" button and a form that triggers an ajax call to render files with the corresponding buttons when users click on handouts or videos. I have encountered a problem: Whenever I click on "open the video" after renderi ...

Issue: The entity of type node is missing a bundle property in the function entity_extract_ids(). Resolution: To solve this problem

Currently using Drupal 7, I have created a new type of node with some fields that are meant to be displayed on the page.tpl.php file. My implementation includes: <?php print render(field_view_field('node', $node, 'field_description' ...

Blending several PHP functions

After browsing through some discussions on this topic, I've found that they tend to be quite specific which can make things confusing. What is the recommended approach for combining multiple functions in a general sense? Specifically, I am working in ...

"Enhance Your Drupal 7 Profile with a Dynamic Ajax Upload Button for Profile

How can I implement an AJAX "upload" button next to the file input in Drupal 7 Profile Picture? When clicked, the selected image should be uploaded. ...

Displaying Alert with PHP Query

I have recently set up my Drupal website and I am currently in the process of integrating an API from a control panel. One of the requirements of the API is to define a logout link mywebsite.com/logout that informs the user about their successful logout. ...

Drupal 7 FlexSlider - alignment issue with image placement

I am encountering an issue with the Flexslider module on my Drupal 7 website. I have created a simple slider that displays 3 photos. I enabled touch screen functionality for the slider, and everything seems to be working fine except for one problem - all t ...

Showing associated information in a dropdown menu when selecting specific information from the related dropdown list

I have a module in my Drupal7 website where I wrote custom functions using PHP. This module includes two dropdown lists side by side. My requirement is that when I select an option, let's say "A," from the first dropdown, only the data related to "A" ...

Troubleshooting Problem with jQuery Function Call in Drupal 7

Encountering a particular issue in Drupal, though it may not be exclusively related to Drupal. This is the simple javascript code I am working with: (function ($) { function testing(){ alert('TEST function responding!'); } })(jQuery); I am try ...

The issue of broken images in the Azure Blob module for Drupal

Recently, I began constructing a Drupal website utilizing Azure. I successfully installed the Azure Blob module, and all functions worked flawlessly in my local environment, including image display and upload to storage blob. However, upon migrating the si ...

Utilizing AngularJS with Drupal for a dynamic base URL

I have created 2 Angular apps within Drupal 7: "example.com", "example.com/app1", "example.com/app2". "example.com" is my main site. However, when I enable HTML5 pushstate to remove the hash in the Angular apps, I receive a nobase error from AngularJS bec ...

Having difficulty creating a custom user registration field in Services 3.0 for Drupal

On attempting to submit data to my custom zip code field on the user registration form, I encounter the following issue: Sending post data to endpoint/user/register.json { "name":"testuser123", "pass":"testuser123", "mail":"<a href="/cdn-cgi/l/email-p ...

utilizing session variables in php that are generated during an Ajax request

Hey there! I am facing an issue with accessing session variables after making an Ajax call in JavaScript to a PHP file. I am able to create a session and store values within it during the Ajax call, but when trying to access those session variables afterwa ...