drupal-6

how to enable HTTPS for the entire drupal 6 site?

我与影子孤独终老i 提交于 2019-12-13 06:15:05
问题 I have Drupal 6 site. Recently, I have purchased SSL from my hosting provider & configured on the hosting server. How do I configure in Drupal,the complete site to use HTTPS ? Whether the user enters http://www.hello.com https://www.hello.com hello.com All such request should be redirected to https://www.hello.com 回答1: Enabling the HTTPS for the entire site. Step 1:- Login to your Drupal site as admin Navigate to http://www.yourdomain.com/admin/build/securepages Enable Secure Page & provide

Which all tables get updated during a content a saved in drupal

ⅰ亾dé卋堺 提交于 2019-12-13 04:46:26
问题 Hi can you people tell me which all tables are get updated during a content(example page content type ) in drupal Thanks in advance 回答1: node, node_access, node_comment_statics and node_revisions are node related tables that get updated during page creation. 来源: https://stackoverflow.com/questions/5849010/which-all-tables-get-updated-during-a-content-a-saved-in-drupal

Views doesn't show checkbox fields where answer > 1

橙三吉。 提交于 2019-12-13 03:39:32
问题 I am using Drupal with Views and the extended profiles module activated. To enable users to check multiple areas of interest I also added a module called Profile Checkboxes. It adds the ability to use a free-form list but turns it into either check boxes or radio buttons. This module works very cleanly and did not present errors. But if a user check multiple interests then those are stored in the profile_values table as a comma seperated value. So if the user likes lets say cars, trucks and

Optimize CSS files - file not found

陌路散爱 提交于 2019-12-13 02:22:51
问题 In the performance settings when Optimize CSS files is selected, I get a 404. The reports section shows a 404 for example sites/default/files/ctools/css/588b003a48050c4e59cbeba2b453cb92.css not found. I have the site running on a Mac without any issues. It's on Ubuntu. It's not a permissions issue (files dir and sub dirs have chmod 777). And the directory does exist. Any ideas? Or has any body else experienced this issue? 回答1: Make sure that the temp directory exists! Check Admin/File System

Drupal encoding and node insert

独自空忆成欢 提交于 2019-12-13 02:15:27
问题 I have a CCK type for storing mentions (Social Media search mentions). Some of the mentions I believe are ASCII (My knowledge of this stuff is little). I retrieve data from API's, which I then using node_save to save to Drupal. My question is, what should I use to safely convert whatever I am getting into a format Drupal and MySQL are happy with? The particular db_query error I get is unhelpfull "Warning in test1\includes\common.inc on line 3538". Nice. I have traced it to be encoding, as I

Including results along with a form on the same page and theming the results using drupal

半世苍凉 提交于 2019-12-12 10:23:15
问题 I have successfully created a page in drupal that displays a form and results on the same page. The form acts like a filter of the results. The results include a bunch of html that includes google charts via the Chart API module (http://drupal.org/project/chart). The results are included in the form via a markup form element (Got that from eaton's comments here: Drupal: How to Render Results of Form on Same Page as Form). Since I can't access the form results outside of the scope of the form

Twitter Bootstrap Js (tabs, popups, dropdown) not working in Drupal

旧巷老猫 提交于 2019-12-12 04:55:26
问题 Firstly I design the site & convert it into HTML using Twitter bootstrap. The static model of my site is working absolutely fine all tabs popup etc working just fine. But when I give the HTML to developer’s for implementing dynamic code & template creating all things stop working only UI is there but no tabs, popup, dropdown is working I check the JS paths they all are fine. developer even plugged in the jQuery simple tabs they are working fine but twitter bootstrap JS is not working any idea

Drupal - Modify tabs added to user page by Views

半腔热情 提交于 2019-12-12 02:53:37
问题 I've added a number of new tabs to the user page, using Views (as a page with menu tab settings etc.). What I now want to do is remove them if the viewed user is the current, logged in user. Prior to adding some user filtering, my first problem is that I just can't seem to modify these tabs at all. I know the general procedure is to use HOOK_MENU_ALTER and (for example): $items['user/%user/view']['type'] = MENU_CALLBACK; This works fine for the original tabs, but not for tabs added with Views

Drupal aggregators and tailored output

a 夏天 提交于 2019-12-11 23:12:56
问题 I have two Drupal aggregator blocks on my page, one for a Twitter feed, one for a blog feed. These both supply information in slightly different ways. I would like the blog feed to display title, then the first 80 characters of the post as a teaser. I would like the Twitter feed to display the description and nothing else. The reason for this is that the title is a whole link to the status whereas the description puts it in standard text and links any URLs included within it. So far, I have

How to load data to db from csv using LOAD DATA INFILE in drupal

瘦欲@ 提交于 2019-12-11 19:17:47
问题 I have tried the below code for laoding the inline file in drupal db $sql = "LOAD DATA INFILE '".db_escape_string($this->file_name). "' INTO TABLE `".$this->table_name. "` FIELDS TERMINATED BY '".db_escape_string($this->field_separate_char). "' OPTIONALLY ENCLOSED BY '".db_escape_string($this->field_enclose_char). "' ESCAPED BY '".db_escape_string($this->field_escape_char). "' ". ($this->use_csv_header ? " IGNORE 1 LINES " : "") ."(`".implode("`,`", $this->arr_csv_columns)."`)"; $res = db