drupal-7

Drupal 7 password hash

萝らか妹 提交于 2019-12-12 08:16:25
问题 I have a bit of a dilemma here. I have a drupal 7 database table of users, with corresponding passwords. All these passwords have been naturally encrypted. My assumption is that these are MD5 hashes, but not quite. The challenge here is that, we are utilizing the same set of users in a companion website that uses similar credentials but a different technology [please don't blame me for this, I a mere pawn]. Now if I knew how Drupal goes about encrypting its passwords, maybe I could decrypt

deploying Opigno on azure website

若如初见. 提交于 2019-12-12 06:50:57
问题 I have created Azure website ,and upload all OPIGNO files to that website via FTP,so when i am trying to access the index.php for OPIGNO project ,it returns server error 500 ???? 回答1: Usually, when there are anything went wrong, the server will return error 500. And usually a framework application occur 500 error after deploying on Azure Web Apps, maybe there are something configuration errors. Also, you may need to turn the display_errors setting on to display errors for troubleshooting. You

Drupal 7 Internationalization / Multi language : redirect to default language if translation missing for article

核能气质少年 提交于 2019-12-12 05:26:41
问题 I'm new to the Internationalization for Drupal 7 and here is what I'm trying to do. Let's say i have 3 languages for my site. English, French and Dutch. What I want is when an article is not translated in a specific language, to see the English version of the article. I could write my article in English, then use the neutral language to make sure the article appears in every language, but then I can't translate the article in just French or just Dutch. Example: I created an article in English

Call global JS function from module .js file in Drupal 7

雨燕双飞 提交于 2019-12-12 05:13:42
问题 With the great help of Sk8erPeter I managed to execute Javascript code on node creation and node update of a certain content type in Drupal 7. My problem now is that I can not call the function FB.api from withing this modules js files. Does it have something to do with Javascript namespaces? Running the FB.api() function from console works fine... Thanks in advance for any help. Nils 回答1: Based on your comments... I'm just watching your testModule.behaviors.js, and it doesn't even look

How can I give permission of particular child pages of books in Drupal 7?

冷暖自知 提交于 2019-12-12 04:51:35
问题 I have lots of books and its child pages but what I need to do is only permit user (general user/ANONYMOUS user) to see the first page of the book and the rest of the page should only be visible to particular person (authorized user). How can I achieve this in Drupal 7? I have created a form in which I am giving option to assign user with the taxonomy term. I can't able to give permission for the viewing the book's child page. 回答1: Using Nodeaccess you can set permission on per node basis.

How to fix an error message issue of security update available for my version of Drupal?

冷暖自知 提交于 2019-12-12 04:37:46
问题 I can see this error message on Drupal admin panel. There is a security update available for your version of Drupal. To ensure the security of your server, you should update immediately! See the available updates page for more information and to install your missing updates. There are security updates available for one or more of your modules or themes. To ensure the security of your server, you should update immediately! See the available updates page for more information and to install your

Leaflet map breaks after flyTo if zoom in is called

早过忘川 提交于 2019-12-12 04:32:00
问题 As the title states, I have a Leaflet (version 1.02) map that breaks if I try to zoom in after calling a flyTo() action. Oddly, if I zoom out first, I can then zoom freely, in or out without the map breaking. Panning also works after the flyTo(), but zooming in will still break the map unless I first call a zoomOut action. I am not at max zoom, and this happens in multiple maps with different sets of markers. If, at zoomend of the flyTo(), I setZoom at the current level, I can then zoom

Drupal create node with body programmatically

ε祈祈猫儿з 提交于 2019-12-12 04:05:13
问题 I am trying to create nodes in Drupal 7 using a php script I then execute using Drush. While I am able to create a basic node with a title, I am not able to set the body for some reason. I have tried two different approaches using different advice I found on other forums. In the first case, setting node elements directly: ... $node->title = 'Your node title'; $node->body[$node->language][0]['value'] = "<p>this is a test</p>"; $node->body[$node->language][0]['summary'] = "body summary; $node-

Drupal wysiwyg menu not showing

本秂侑毒 提交于 2019-12-12 03:56:09
问题 Drupal 7, wysiwyg module with the ckeditor library installed. The text formats are configured. I have used and set up this module/editor configuration various times with no problems, so I'm baffled. In this case there is simply no editor showing at all in the content creation pages, just the default text box. Any ideas? 回答1: Kind of late to the party, but I just faced this issue and managed to solve. What i did was: 1) Go to /admin/config/content/wysiwyg 2) for each entry under "text format"

CORS with XMLHttpRequest

半城伤御伤魂 提交于 2019-12-12 01:12:39
问题 I'm trying to make a POST request between two sites. I've seen the need to change header of request on server side using the access-allow. My problem is that when I send request I can't see this modification in the response header. If I go on directly on page the headers are change. If I sent request with GET, I can see too that the headers has been changed. Maybe there is server configuration of http which is forbidden across domain POST request? I'm using a Ngnix server that serves Drupal