drupal

CSRF validation IOS SDK DRUPAL [closed]

六月ゝ 毕业季﹏ 提交于 2019-12-14 00:06:23
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm having problem with error 401 CSRF Validation failed By the way, i'm using Drupal IOS SDK. I managed to do the login and register to my drupal website. However, after logging in I couldn't do task like Changing Password or Logging Out due to the error of 401 CSRF Validation failed. I have done alot of

Fetch values from nested xml (having : in tag name) in php

狂风中的少年 提交于 2019-12-13 23:53:45
问题 I have xml like this <item> <title>test title</title> <link>www.test.com</link> <pubDate>Sun, 27 Aug 2017 06:22:29 +0000</pubDate> <post-id xmlns="com-wordpress:feed-additions:1">1111</post-id> <ev:tribe_event_meta xmlns:ev="Event"> <ev:startdate>November 13, 2017</ev:startdate> <ev:enddate>November 14, 2017</ev:enddate> <ev:venue>venue</ev:venue> <ev:address>address</ev:address> <ev:city>city</ev:city> <ev:zip></ev:zip> </ev:tribe_event_meta> </item> Form this xml i am able to get title ,

onReady event not firing on IE11

烈酒焚心 提交于 2019-12-13 21:13:46
问题 onReady event are not being fired on IE11 & Edge, but it's working fine on IE10, Firefox, Safari and Google Chrome. I'm using the javascript api to mute a video when the page is loaded. This is the code i wrote. (Note. I'm using Drupal) (function ($) { function onPlayerReady(event) { event.target.mute(); } function muteVideos(video_ids) { for (var iframe_id in video_ids) { var player = new YT.Player(iframe_id, { videoId: iframe_id, playerVars: { "enablejsapi":1, "origin":document.domain, "rel

Drupal Site Download : Not able to install site as-is

陌路散爱 提交于 2019-12-13 20:09:50
问题 I recently downloaded a fully functional drupal(6) site using FTP. Though I installed the Drupal instance, I got the modules and the themes that were in the sites/all folder, but wasn't able to get the actual site configuration ( Configuration and Settings of those modules ) Any help in this regard would be greatly appreciated. 回答1: Assuming this is a follow-on of: Drupal Site install on localhost after downloading source using FTP If you get the Drupal install screen when accessing a site

Drupal 7: naming node with Theme Developer

血红的双手。 提交于 2019-12-13 19:46:07
问题 I'm working on a Drupal 7 website. I need a custom node for a page, and I used Theme Developer module to find the candidate name for the node which I attached screenshot below. But it doesn't take action when I name as node__28.tpl.php What am I missing?! Thanks a lot! appreciate helps! 回答1: It should work with node--##.tpl.php . And don't forget to clear cache. 来源: https://stackoverflow.com/questions/5178751/drupal-7-naming-node-with-theme-developer

Can't ignore punctuation in titles - Solr 5 and Drupal

左心房为你撑大大i 提交于 2019-12-13 19:14:45
问题 The other week I posted a question about removing punctuation from solr search in Drupal. That was using Solr 4. However, since then the development I am doing has changed from solr 4 to solr 5, and now I am having the same problem but the fix at Can't remove punctuation in Solr no longer works. This causes problems when sorting by titles since a lot of content titles have quotes around. <field name="label" type="text" indexed="true" stored="true" termVectors="true" omitNorms="true"/>

Execute JavaScript on node creation of a specific content type

坚强是说给别人听的谎言 提交于 2019-12-13 18:29:37
问题 I would like to execute a JavaScript function only on node creation and node edit of one specific content type. It is only one small function call. Let's call the Drupal 7 content type " tear ", and the JavaScript function " doitnow(); " Any ideas how to do this? Thank you very much. Nils 回答1: You have to create your own module and implement hook_node_insert(), hook_node_update() and hook_node_view() and take the appropriate steps. You also have to create some JavaScript codes with Drupal

Create a custom node tab with a custom path

最后都变了- 提交于 2019-12-13 17:55:52
问题 Is there anyway I can customize the paths to a node's tabs? When using either pathauto or hook_menu_alter, I can change the path to the node view to from node/node_id to, well pretty much anything, but let's say xyz/node_title. The node tabs, however, still stay with the path /node/node_id/tab_name I'm trying to add a custom tab to the node, and keep the custom path as well (e.g.: xyz/node_title/tab_name instead of node/node_id/tab_name). I manage to add the custom tab via hook_menu: $items[

How to change node languages in batches?

a 夏天 提交于 2019-12-13 17:51:08
问题 If I'm doing content translation in Drupal 6, how do I change the language on a large amount of nodes without having to do it for each node? I have over 500 nodes. 回答1: Views bulk operations a module for views would be one option. Another would be SQL. I would prefer vbo but am not sure if there is an change language action for it. 回答2: I found what I was looking for. There's a module called Language Assignment. 来源: https://stackoverflow.com/questions/1757450/how-to-change-node-languages-in

Send one-time login link via hook_mail

断了今生、忘了曾经 提交于 2019-12-13 17:16:31
问题 This is my first real attempt at a "module" (I recognize that this isn't something fit for contribution back to the drupal community - I'm just trying my hand at getting the APIs to do what I want.) Unfortunately, this isn't working and I'm not sure why. Wonder if anyone has any input on the approach or sees my error(s). My questions: Is there a better way to do this so I don't have to call rsvp_query() more than once? Is this a sensible approach to recursively generating an email for all