drupal-6

Is Drupal 6 is compatible with PHP 7?

不问归期 提交于 2019-12-11 01:48:13
问题 I have a website in Drupal 6 version. But now I wanted to change the server and php version to 7. So just wanted to confirm that is Drupal 6 is compatible with PHP 7? 回答1: Apparently it is not a good idea : https://www.drupal.org/node/2735435 Drupal 6 support was dropped before php 7 release and if you add to that the contribued modules wich might be totally incompatible, the cost of going to php 7 will not be light. It might be easier to go from drupal 6 to 7 (not much changed btw these 2

Weird characters at the end of src/href attributes in head tag

不打扰是莪最后的温柔 提交于 2019-12-11 00:35:54
问题 Quick question : Why is drupal adding characters at the end of the src or href attributes in the link and script tags in the head of the page ? I have this : <link type="text/css" rel="stylesheet" media="all" href="/ste_thecle/modules/views/css/views.css?n" /> And it is the same for every stylesheet and script loaded. I can't figure out why it's doing that, and I think maybe it's the reason why my theme is all messed up in IE... Thanks. 回答1: Each time the browser loads an external JavaScript

How do I set the value for a CCK Node-reference field automatically when create form submits

无人久伴 提交于 2019-12-10 20:51:33
问题 I have a content type (A) that references a single node of a different content type (B). The node referenced (B) can be programmatically determined using the information for the user creating this new node (A)... Each user can only create a single node of the referenced content type (B), so this single node will always be referenced from nodes of content type B that the user creates. Because the referenced node is always known, I don't want the user to have to enter the reference value, I

Drupal 6: Implement Wysiwyg on Custom Module Form

折月煮酒 提交于 2019-12-10 20:44:06
问题 I have a custom form that I have written with the Form API. We have the WYSIWYG module and TinyMCE implemented on the site that this module will be used on. How do I implement the WYSIWYG api on my custom form text areas? Thanks! 回答1: This should help integrate WYSIWYG with your custom module forms: http://drupal.org/node/358316 Basically, you need to add the format key to each of your form fields and use filter_form() 回答2: Just in case anybody working with Drupal 7, here's the link to it

Drupal email when someone posts to forum topic

别说谁变了你拦得住时间么 提交于 2019-12-10 18:37:51
问题 Is there a module to email the owner of a post when someone replies to there forum post? 回答1: Use Rules, and based on the fact that forum post is a node, and a comment is standard comment, define a rule that sends mail on comments of the forum content type. If you need additional help, please let me know. 回答2: I have used the drupal Notifications Module, which is the module used on groups.drupal.org to notify users of comment and content changes. http://drupal.org/project/notifications 来源:

DRUPAL: Fatal error: Allowed memory size error when editing specific existing pages

梦想的初衷 提交于 2019-12-10 18:08:28
问题 Fatal error: Allowed memory size of 18874368 bytes exhausted (tried to allocate 1481725 bytes) in __/public_html/includes/database.inc on line 224 I'm having this error occur in Drupal 6 every time I try to edit the following pages: http://chipkin.com/fs-8700-125-stulz http://chipkin.com/fs-8700-47-dnp-30 http://chipkin.com/fs8700-14-ge-mark-iv-speedtronic http://chipkin.com/fs8700-74-veeder-root-serial-driver We're on shared hosting so I don't have access to the php.ini file to allocate more

How do I stop drupal from creating a different consolidated CSS file for every node type?

六月ゝ 毕业季﹏ 提交于 2019-12-10 16:28:17
问题 I have a fairly large Drupal 6 site with different modules enabled for different node/page types which is resulting in a different CSS file for each page type after the CSS has been consolidated. I understand the logic of not wanting to load css for every module, but is there a method for loading sitewide css into one file so that we can utilize the caching benefits of CSS? Homepage: <link type="text/css" rel="stylesheet" media="all" href="/site-files/example.com/files/css/css

How to attach an image to a node while creating it with node_save($node);

依然范特西╮ 提交于 2019-12-10 15:59:31
问题 Hi i am working with drupal 7 and trying to import data from xml by parsing it using php and later on creating nodes with node_save($node) . So far i have been succeeded to create nodes from xml without any images. I want to attach image to the node while i am importing it. I know drupal 7 is still in alpha 6 but its good. node_save($node) function is almost same as in drupal 6 but little bit different. Ok here is my code image file path is stored in a variable...any help would be great.

Adding attachment to Jira's api

时光总嘲笑我的痴心妄想 提交于 2019-12-10 15:19:40
问题 I am trying to attach a file to a Jira case, using their API. I am doing this in Drupal 6 (PHP v.5.0). Here is the code I have: $ch = curl_init(); $header = array( 'Content-Type: multipart/form-data', 'X-Atlassian-Token: no-check' ); $attachmentPath = $this->get_file_uploads(); //$attachmentPath comes out to be something like: //http://localhost/mySite/web/system/files/my_folder/DSC_0344_3.JPG $data = array('file'=>"@". $attachmentPath, 'filename'=>'test.png'); $url= 'https://mysite.atlassian

Drupal 6: Printing Unadulterated Primary Links and all children

佐手、 提交于 2019-12-10 15:19:39
问题 How in the WORLD is possible? I swear, I've read the equivalent of 3 encyclopedias to no avail. I've tried solutions within regions, page.tpl.php and blocks. None of them give me what I need... and I know there are so many other people that need this too! I've come to the conclusion that I want to print out the menu within my page.tpl.php ... so no block solutions, please. I want to be able to loop through the primary menu links (AND children) and rewrite the output so that there's no default