Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [7]

Version tags should be used only for questions that apply to a version only, not to merely say what version a site is using.

0
votes
0answers
18 views

Cannot add a domain to existing drupal 7 site

Sorry in advance if this is a dumb question, I can't seem to figure out how to add a domain name to a D7 site, (currently using an IP). The website is hosted on digitalocean, the new domain is from ...
-1
votes
0answers
4 views

Taarikh Popup by using custom form

I am creating custom field using field #type as "tararikh_popup" by using taarikh module. I was trying it with below code. Please see and suggest me the changes so I can get it right. $form['...
-2
votes
0answers
14 views

Features not detecting all revertible features in first pass

vagrant@www-xxx-com:/var/www$ drush fr xxx_inspiration Do you really want to revert xxx_inspiration.field_base? (y/n): y Reverted xxx_inspiration.field_base. [...
0
votes
0answers
13 views

Duplicate contact form use contact module “Site-wide Contact Form” [on hold]

i have contact form, and only get 1 receiver. How can i get different site-wide contact form? because i have 3 different email receiver, and i don't know how to create contact module ("contact module ...
0
votes
1answer
18 views

Can I aggregate all stylesheets core, contrib and custom into one single stylesheet?

Is there any way to avoid Drupal from serving multiple stylesheets and instead bundle them together? I am going to look into https://www.drupal.org/project/webpack I want to avoid all the multiple @...
0
votes
0answers
26 views

AJAX calls significantly slower in production environment than development environment

I am using Commerce AJAX add to cart in Drupal 7, and the average time for an AJAX call on the development site is 100-200ms. On the live site those same calls take between 1-3 seconds. The ...
0
votes
0answers
12 views

how to Add custom js after execution of google chart loader js in drupal 7?

Under hook_preprocess_page function, added custom js file used for adding a chart on the page. drupal_add_js(drupal_get_path('theme', '****') .'/js/loader.js', array('type' => 'file', 'scope' =...
0
votes
0answers
10 views

Is there a module to output view preview in array? [on hold]

The view's preview outputs HTML, but I'd like to be shown also the array of elements the query returns, while using the Edit View preview. Is there a module that does this?
0
votes
0answers
14 views

Get the field for a value of a “List (integer)” field using entity_load()

I am trying to get the label for a value of a List (integer) field using entity_load(). With the code I am using, I'm able to get the field key with $flagging->field_form_status['und'][0]['value'],...
0
votes
0answers
21 views

Cannot login as admin

I cannot login as admin anymore on my Drupal 7 installation. I tried: Generate a new password with user_hash_password; Generate a new password with SQL Query; Clearing the sessions table; Clearing ...
0
votes
1answer
28 views

drupal_get_path function for third party PHP includes files

I am trying to add some PHP includes files into Drupal 7 site. The files are on this page - https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/...
0
votes
0answers
12 views

Display users with quiz results and users who didn't take the quiz

Views shows only users that took the quiz and shows their score from the Quiz module. If I create Users views there is no relationship for Quiz fields and if I create Quiz view it shows only users ...
0
votes
0answers
6 views

Webform response - user permissions

Using Drupal 7 I have created a webform where submissions are entered by any authenticated user. The goal is to have one user (not an admin) have the ability to see the submissions and respond in the ...
0
votes
1answer
11 views

Node is flagged, node author comes back to the site, how to show how many new flags since last visit?

I created a "new activity feed" view page in which a user can see how many new comments have been posted to his own nodes since his last visit Eg : since you last last visit : - 21 new comments have ...
0
votes
0answers
14 views

Making a Display Suite Block field visible only to node author

I've been stuck with this issue for two full days. I've created a view including a VBO field and want to put that on a specific node type making it available/visible only to the author of each node. ...
1
vote
2answers
9 views

How do I add a minipanel to a panel page?

In D7 I've created a new minipanel and would like to add it to a panel page. However, when I go to add it I cannot find it. It's not under the category I've set it in and it's not under the Mini ...
1
vote
0answers
10 views

How do I add custom pages or view pages to search index?

Suppose I have a custom page built in a custom controller. Or similarly, a view page the displays the list of nodes, such as the classic "admin/content" page. I want certain user roles to be able ...
0
votes
1answer
12 views

How to print author's email address in in node template

I have a content of type summary only visible by the author and administrators. I need to print in my node--summary.tpl.php the author's email address that was set at the account creation. Any idea ...
-2
votes
2answers
34 views

How to get value of array in custom email

I have custom form for emails. In the putput email, I always get the index of the choosen option, not the option string. Given this form element definition, how do I get, for example, Soins Duo ...
0
votes
1answer
15 views

Views arguments as part of path

Is it possible to create views pages with urls like "prefix-%-postfix" instead of "prefix/%/postfix"?
0
votes
0answers
12 views

PDOException: in drupal_lookup_path() (line 176 of [closed]

I have drupal core module installed on my local this url shows 404 fine xxx.com/forum/active/%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%...
0
votes
1answer
13 views

Custom form template

So I am recently started working on front-end development, and have started messing around with making my own custom templates for modules. I have been able to get page related templates to work, but ...
2
votes
1answer
22 views

How do I clear a specific cache entry?

I saved a cache entry using cache_set(). How can I clear this entry using Drush?
0
votes
0answers
13 views

Creating a drop-down list with checkbox button [closed]

I want to create a drop-down list with checkboxes. I installed the Dropdown Checkboxes and its dependencies, but I am unable to get it. I have a list of users in my drop-down menu and I have to select ...
0
votes
1answer
32 views
+100

Translating a taxonomy term does not populate content into fields

When translating a node into another language it does the following: automatically populates all fields with content from the source node on the edit form ensures the two nodes are linked as ...
0
votes
0answers
10 views

Feed import drupal 7 don't delete Delete non-existent nœuds

I'm a beginner in Drupal. I have Feed import on a drupal installed, the option "delete non existent node" is checked but when the import was triggered, nodes still appear. Is a bug ? or something ...
-4
votes
0answers
27 views

How can I ajaxify my sign in form? [closed]

We have developed a custom module to multi step the login form of Drupal. Everything is working fine but when we click the next, back or finish button to move between the steps and to log in to the ...
0
votes
1answer
14 views

Location Contextual Filter: Distance/Proximity works for all nodes but one

Drupal 7 site with Location and Location CCK modules. Client has custom content type with Location field provided by Location CCK module. Each Location node has a Views block display of Nearby ...
0
votes
1answer
13 views

Replacing Private message module with nodes

I was looking for a quick answer to the problem of allowing members to write each other messages. The Private message module looked like the most complete solution. However, it has some significant ...
0
votes
1answer
19 views

How do I correctly implement hook_bootstrap_colorize_text() to alter button colors in a Bootstrap sub-theme?

I have read similar questions on here, but I'm still struggling for an answer for this. I'm trying to implement hook_bootstrap_colorize_text() to alter button colors in a Bootstrap sub-theme. I ...
0
votes
0answers
30 views

Do we need any init steps in this scenario?

In Order to install Drupal Core using Code deploy, I follow these steps. Download drupal-7.x.zip /usr/bin/unzip -o /tmp/drupal.zip /bin/mv /var/www/drupal-7.x /var/www/drupal Similar steps to ...
0
votes
0answers
33 views

custom autocomplete not suggestion record after 3 characters

I created a custom autocomplete form in Drupal using hook_autocomplete. It works fine, when I type two characters. For example, a title is Newyork manhattan. If I type ne, it shows all the titles ...
0
votes
0answers
19 views

Can we apply click sort on custom text?

I have 2 fields in view. First Name Last Name I have Combine this 2 fields in using "Global: Custom text" in view like, [field_user_first_name] [field_user_last_name] Now I want to apply click ...
0
votes
1answer
19 views

How to migrate content of one content type to another content type

I have two content types. Content type A and Content type B I have some nodes of content type A and want to migrate them to content type B but the content of type A should remains in the system. I ...
0
votes
1answer
22 views

Drupal 7 chosen module use ajax to fill the select

I have two select elements and depending on what I select in the first select element second should fill from ajax call. First one is the simple select second one use chosen. The problem is if I fill ....
0
votes
0answers
13 views

Unique message ID in SMTP module

I am working with Drupal 7. In my site am using the SMTP Authentication Support module to send emails. After sending an email, I want to get the unique encrypted message ID string. Now I am getting ...
2
votes
1answer
26 views

How to properly attach Google Maps Api to Drupal behaviors in Drupal 7?

So, I've posted on this elsewhere and I seem to either get half answers but they've gotten me closer to a solution but not over the finish line. I'm trying to implement a custom Google Maps ...
0
votes
1answer
27 views

Drush Feature Update removing t() and l() function usages

I have a feature that currently has things like this: 'body' => '<h3>' . t('Welcome back') . '<span class="fname">%user:field_first_name</span>!</h3>', However, using ...
0
votes
1answer
15 views

How to include multiple taxes to a product's price?

I am using Drupal commerce and have multiple taxes and tax types. The product price in my site includes 2 types of taxes already added to them (inclusive of both the 2 taxes). In the product edit ...
0
votes
1answer
31 views

How do I include an affiliate script?

I am trying to add an affiliate script to my Drupal 7 website. I am doing this in a custom block. Specifically, I create a block, select the scripts text format in my WYSIWYG Editor, add the script ...
1
vote
0answers
28 views

Continue odd/even striping across grouped fields?

I'm using Drupal 7 and views 3.20, unformatted list, choosing a grouping field and selecting Add striping (odd/even), first/last row classes . My views output is currently grouped by first letter: A ...
0
votes
1answer
23 views

Form API + AJAX - Form doubles itself on submit

I've been looking for an answer to this for hours now. A) No matter what I do, the form will always be visible again after submit. How can I stop the from from displaying after a successful submit? ...
0
votes
1answer
27 views

Cannot create custom translated path alias for /user/login

I cannot create a path alias for spanish translation. When I try to create, it says Route is invalid or you don't have access Saw this but it doesn't have an answer: https://www.drupal.org/project/...
0
votes
0answers
18 views

SocialMedia module is not replacing [socialmedia:sm-twitter_username] when sharing to Twitter

When I use the SocialMedia Twitter button, it opens a new window which displays: As you can see, the [socialmedia:sm-twitter_username] token is not being replaced. In the user's profile, there is a ...
1
vote
1answer
28 views

Create Custom Date Formatter for Date Posted Field

I followed a very helpful article by Antonio Benitez that gave some example code showing how to create a custom date formatter for date fields (How To Create a Custom Format for a Date Field). The ...
0
votes
0answers
26 views

drupal_add_js is adding .js file to footer despite me adding 'scope' => 'header'

I want to add an external file to the header. To that affect I copied what others have done and used drupal_add_js();: drupal_add_js('somefile.js', [ 'type' => 'external', 'scope' => '...
0
votes
1answer
19 views

How do I re-order tabs in user page?

I'm developing a drupal 7 based website where the user profiles need some modification. Now I need to know how can I re-order tabs in user profile page such as, View, Edit, etc. i'd like to keep the ...
2
votes
1answer
19 views

How do I target Ajax Loader Throbber in CSS?

I recently installed Ajax Loader and it working great. However, I need some custom styling so, I can display the loading throbber in the center of the screen. I can write my own CSS, But can't find ...
0
votes
1answer
11 views

Add a having condition that makes use of COUNT

I currently have a query that compiles to SELECT n.nid AS nid, field_data_field_date.field_date_value AS incident_date, field_data_field_tweeted_date.field_tweeted_date_value AS tweeted_date, n.nid ...
0
votes
2answers
36 views

How to reformat HTML output of format?

I have looked for days and cannot find an example of what I need to do. I wish to reformat the HTML output ckeditor uses for blockquote. CKEditor output for quote: <blockquote><p>...