0
votes
0answers
2 views

Content Access exclusive permissions per node

I'm playing around with content_access module, and I have a question. For my use-case, I need particular nodes to limit editing by role. This means that the content type will allow role_x to edit by ...
1
vote
0answers
6 views

How can I remove the “The image was resized to fit within the maximum allowed dimensions…” message without hacking core?

By default, Drupal prints out a notification message that images exceeding the maximum dimensions were resized. I want to disable this message. The relevant line is located in ...
0
votes
0answers
4 views

Webform hours/time field

How do you add a field where user can set hours when it's best to call for contacting. The Date field gives only days, months and years. In this thread Webform: Time Field - Changing Variable ...
0
votes
0answers
9 views

My Drupal websites admin account is being hacked frequently.

What can be done to avoid such hacking attacks? Before any major attack is being made i want to make my site secure.
0
votes
1answer
13 views

Malicious Code - Website Disable

I'm new to Drupal. My website has been disable due to malicious code found in /var/www/vhosts/domain.com/httpdocs/sites/all/themes/tao/tao/css.php What should I remove in this file? ...
0
votes
0answers
7 views

Custom layouts for responsive site page

We're converting a site to be responsive and have decided to use Adaptive Theme. But the client insists on a unique layout for the Front page that does not fit into Adaptive's method of stacking ...
0
votes
0answers
2 views

Debug: 'Handler views_handler_field_node_revision node could not be added!'

i have a problem when i try to create a task on ERPAL, i have this message Task toolerp has been created. Debug: 'Handler views_handler_field_node_revision tried to add additional_field ...
0
votes
0answers
7 views

Sorting a multiple node reference field in view based on another field of the node

I have a view that whereby one of the fields (a node reference field) has "multiple fields settings" checked. So it has multiple values per row. I want to sort these values based on another field of ...
0
votes
2answers
8 views

Computed field that displays the full username of the author

I am using a computed field and I want to display the field_first_name and field_last_name, which are properties of the user that created that node. I have been trying things, but it seems like ...
0
votes
1answer
11 views

Drush crashes Call to undefined function ctype_alnum() in ubuntu

I've installed drush on ubuntu 14.04 apparently successfully but attempting to use drush within my drupal 7 app yields this: PHP Fatal error: Call to undefined function ctype_alnum() in ...
0
votes
0answers
5 views

How to make a checkbox for turn-off/on send e-mail notification each time when publish or change a node (drupal 7)

How can I make a checkbox for turn-off/on a sending e-mail notification to users each time when I publish or change a node (in drupal 7)? I mean, I don't need to send notifications each time I changed ...
0
votes
0answers
2 views

Disable click event on Next button on checkout form's first step if all cart products are removed

I am new to learning jQuery and Javascript. I have small task that is becoming hard to solve. On step one of a checkout form #ps-cart-checkout-form, I have to disable Next when cart table is empty or ...
0
votes
0answers
8 views

Can I use www.example.com/node/123 as a canonical url?

We are sharing some of our content with partners and want to include a canonical reference to the pages on our drupal site. I like the idea of using www.example.com/node/$nid for the simplicity of ...
0
votes
1answer
11 views

Drush can't find php

I am on a shared server and someone else has installed Drush previously. But as of now Drush does not work and throws the following error. [root@vps1]# drush /root/.composer/vendor/bin/drush: line ...
0
votes
0answers
8 views

Drupal 7 theme('pager') -> PDOException: SQLSTATE[42S02]: Base table or view not found

first time i have asked for help on a forum for a very long time. Normally find what i need by viewing other posts... Well i'm really confused so need help. I am trying to use theme('pager') in ...
0
votes
2answers
15 views

uploaded files and images not showing

When i upload a file, be it a avatar picture or image, the file loads however does not display. I have checked the permissions on my hosting environment and it seems that everye uploaded file gets a ...
0
votes
0answers
8 views

I cannot get my fied value

I try to add a new field in the login form: function collectivite_login_page(){ $form = drupal_get_form('user_login_block'); $form['userType'] = array( '#type' => ...
0
votes
0answers
6 views

How do I show selected nodes without exposed filters?

I have a page that contains views exposed filters for filtering nodes by term by registered users. Some of my contents needs to read by all users without using exposed filters. (I.G: term: iPad, ...
0
votes
0answers
6 views

Cron not working [duplicate]

I have a hook_cron that regularly import contents from external site via drupal_http_request. However, I noticed that cron is not running. I am using Elysia cron module and I defined the job to run ...
1
vote
1answer
8 views

Add fields to entity in module update

I'm using Drupal 7 and I have a module which has working implementation of the Entity API module. In my_module.install file there is a hook_schema() in which I defined table columns: ...
0
votes
0answers
9 views

Set the url alias when I create a node programmatically?

I have this code to create a node programmatically, it works fine but I also need to set the "url alias" to "auto". How can I do this? $node = new stdClass(); $node->type = 'flats'; ...
2
votes
0answers
10 views

Disable opcache.use_cwd for Drupal

In PHP Opcache there is an option opcache.use_cwd. Disabling it improves performance, but in documentation mentioned that this may break existing applications: If enabled, OPcache appends the ...
0
votes
0answers
5 views

User subscribes to newsletter even if checkbox is not checked

I have a newsletter on my drupal page created with simplenews. I have created webform, that lets you apply for a job and it has "subscribe to newsletter" Newsletter email checkbox. When someone ...
0
votes
0answers
3 views

Simpletest fatal error without message

locally my unit tests run just fine. On my online dev server, they fail and I don't get any error message despite "The test did not complete due to a fatal error." in the test messages and "An ...
0
votes
0answers
13 views

Custom CSS class for region in DS not working as intended

I've successfully created a custom layout in ds (display suite), assigning various fields (simple, code, image) to each of the regions in there. I've also managed to successfully create custom css ...
0
votes
1answer
11 views

How can I change URL of 'Add new comment' link on teaser?

Currently, I have a list of teasers and they have a comment count and an 'Add new comment' link. That link goes to a dedicated comment page with a URL of the form "/comment/reply/19#comment-form". ...
0
votes
1answer
18 views

Create a node programmatically?

I found this code to create a node programmatically. It creates the node but the "title" field is not populated. $body_text = 'Lorem Ipsum is simply dummy text of the printing and typesetting ...
0
votes
0answers
8 views

Relation: Translating a node removes its relation

I have a weird problem regarding the Relation module and translations in Drupal 7. I have types for companies and buildings and I have a relation between company and building that means that the ...
0
votes
2answers
26 views

How to remove JS from a page during preprocess D7

I'm trying to remove few JS files from one page, which will be called in an Iframe (so no TEMPLATE_js_alter possible because of the if condition). This code below unset the JS but they are still ...
0
votes
2answers
15 views

How do I render sub-menus?

I have a Drupal 7 installation that, for the purposes of this question, has just the core modules. Using the Structure->Menus->Main Menu form, I added some items to the menu and, using a ...
0
votes
1answer
12 views

Blocks stopped showing on views page

I was hoping you could help me with this problem on my website. I have a views page "News" for a long time now. (q?=news) I also have 2 blocks that I want to show on that page. On the configurations ...
0
votes
0answers
9 views

Translating fields per node

I have a content type which the editors (who don't have an administrator role), needs to set the idioms that the field is translatable. For example, he can say the title and the body are ...
0
votes
1answer
14 views

Embedding a view from a page with php

I need to put three view blocks next to each other on a page. Therefore, I thought i could put some php code in a new page and manually put them next to each other with DIVs. The problem is that I ...
0
votes
0answers
4 views

Views relationship not been added by code

Im trying to make a abandoned cart notification module, trying to relate my notification table with the commerde_order table by its order_id in views. Right now i have this in my hook_views_data ...
0
votes
0answers
6 views

Where to change the input query of uc_order table

I had a requirement of modifying the columns of uc_order table. But now, I'm unable to find the input query which running during the checkout process. If anyone knows from which file this input query ...
0
votes
0answers
14 views

upload image by user and display images in her/his profile if admin accept uploaded image to display

I want the users to add their images; the administrator should be able to accept the images, which would then be visible on the user profiles. I create the gallery using the help from ...
0
votes
3answers
16 views

Why does this rule not appear in the UI and how can I clone it?

I need to clone and modify the following rule: commerce_checkout_order_email However, it does not appear in the UI. I have checked the following paths with no success: admin/config/workflow/rules ...
0
votes
0answers
10 views

Drupal 6 Pager not working

I am using pager_query and theme_pager function as below.But unfortunately the pager is not getting displayed.Please help. function advanced_product_search() { $output = ""; $sectors = ...
-2
votes
0answers
10 views

wysibb editor output showing html tags [on hold]

I am using wysibb (http://www.wysibb.com/) as my editor. The editor is working fine, but in detail page the out put is coming as [color=#ff0000][u][i][b]short description [/b][/i][/u][/color].
0
votes
0answers
17 views

Choose one or another URL (node content) depending on the parameters

I have a site, www.example.com. I have chosen that the Home page is a custom one, which uses a page-custom_home_page.tpl.php. Now I have this new URL: www.example.com/products/*, where * means ...
0
votes
1answer
17 views

Pass arguments to a node

How do you pass an argument from a menu to an existing node? I've read many articles on hook_menu but they seem to all talk about creating a page which references the arguments. for example: ...
-1
votes
0answers
8 views

How to play videos from different video providers like youtube, vimeo, dailymotion as a playlist in drupal 7?

Suppose I have 3 URLs of videos, First video url is of/from vimeo, second is from youtube and third is from dailymotion etc etc. How can I use these links as a playlist ? Like when first video from ...
0
votes
0answers
4 views

Add product using Drupal 7 / Ubercart 3 Api

I'm writting my stupid import module and need to programaticaly add products to db. I need to add title, price and link product to existing group; I'v made some research of ubercart api and found ...
0
votes
1answer
12 views

HOOK_MENU custom url with argument

I am working with a 300K records dataset and I am having some performance issues. I try creating a node for each of the records on the dataset, but even the simple path translation query is taking ...
0
votes
0answers
6 views

Drupal pagination help

I am not sure how this works, hence need a little help. I am fetching some nodes using db_select and rendering this in a foreach loop in a custom template file. I would give a hint of my code : ...
0
votes
0answers
6 views

Entity Reference JOIN value

I'm importing hundreds of nodes from SalesForce but one field from SF imports a ID value like a0KG0000001jLrwMPT. That value refers to another SF Objet. Then I imported the other object entries but I ...
0
votes
0answers
11 views

how to pass session id with services using ajax

i am trying to get authenticated data after login with services module. ive a drupal services set up at openshift and the htmls are in my devices. i managed to login, get authenticated, get the ...
0
votes
0answers
6 views

Nucleus base theme is making input id for submit blank

I am using a theme that has a base theme of TB Nucleus. On the base theme there is an .inc file called override_function.inc that is overriding the input id for the submit button on webform and ...
0
votes
0answers
3 views

Multi-lingual comments translation only appears on source language post

I am seeking a patch for Drupal commons to fix an issue with comments to a post not appearing on the translated post as a thread. So, in simple terms, on the original language post all comments ...
0
votes
1answer
9 views

Adding a 'post to everyone' option in Drupal Commons

At present, Drupal Commons posts must be added to one or many groups or to trusted contacts. I would like to add a "public" post that everyone can see in their feed. This is simply a meta group that ...

15 30 50 per page