drupal-6

Drupal Studs help me with my form_alter hook ( I am almost there)

放肆的年华 提交于 2019-12-02 12:09:30
问题 So I think I am almost there conceptually but need some missing pointers. Objective is to add a few more fields to the normal user registration form, style it a little, then submit it with storing the extra fields in a table. This is what I have so far. Can someone give me the final nudge and get me going. Please help me. Also how do I apply some minor styling like aligning the new form fields ? Thank you so much !!!!!!!!! function module_menu() { $items = array(); $items['school/registration

Drupal: Views, can the displays have different styles for the view?

人走茶凉 提交于 2019-12-02 11:45:39
I've created several displays for my View. I thought that I could assign different styles (Gallery, Table, etc) of the view for each display but I realized that only 1 Style is used for all Displays. The reason I wanted to change is because I'm using DraggableViews, and I would like to keep the same order for all displays, when the user drag some items on the display with draggable nodes. THanks berkes They can. See http://drupal.org/node/352970 The idea is to use specific names for template files, also called template-suggestions. Some examples are: The files views-view--alpha--page.tpl.php

Drupal multisite setup

折月煮酒 提交于 2019-12-02 09:55:01
I am trying to setup drupal to host multiple sites which will not effect each other. My pages are hosted on a shared hosting service and I only have access to cPanel. Following the instructions on the web that I found using google, I have done the following. Installed Drupal. Make a directory in sites and name it demo.sharedhost.com. Copied default.settings.php in that directory and renamed it settings.php. Created a subdomain demo. Deleted the demo folder from public_html Made sybolic link public_html/demo to sites/demo.myshost.com. When I try to access demo.myhost.com I get listing of sites

Multiple sites in the same directory but separate database

微笑、不失礼 提交于 2019-12-02 06:26:19
问题 In my Linux based shared hosting account with HostGator, it is soon going to be dozen of sites. There is files count limitation for CPanel backups in my account. To reduce the total number of files I need suggestion from you all so that I continue to add new bunch of sites using Drupal-6. I don't want to share the same database just to keep my maintenance simple. I know Drupal allows multiple sites in the same DB. But I want to avoid it. Can I reuse the same Drupal files in my old site and

Drupal Studs help me with my form_alter hook ( I am almost there)

倖福魔咒の 提交于 2019-12-02 03:46:22
So I think I am almost there conceptually but need some missing pointers. Objective is to add a few more fields to the normal user registration form, style it a little, then submit it with storing the extra fields in a table. This is what I have so far. Can someone give me the final nudge and get me going. Please help me. Also how do I apply some minor styling like aligning the new form fields ? Thank you so much !!!!!!!!! function module_menu() { $items = array(); $items['school/registration'] = array( 'title' => 'Upgraded Registration Form', 'page callback' =>'module_school_register', 'type'

Drupal: automatically add new nodes to a nodequeue

試著忘記壹切 提交于 2019-12-01 23:20:07
问题 Can I somehow automatically add a node to a specific nodequeue when it is created ? (I'm using nodequeue module: drupal.org/project/nodequeue) thanks 回答1: I needed this feature for a drupal 7 site and took the custom module solution. Let's say the setup is one nodequeue, and every 'project' nodes should be automatically added and removed to the queue. Create an empty nodequeue_auto_add directory in sites/all/modules/. This contains these two files nodequeue_auto_add.info name = Nodequeue auto

Changing Drupal's theme and keeping Garland as the admin theme?

老子叫甜甜 提交于 2019-12-01 22:57:49
问题 How to apply a contrib theme to a Drupal-6 site without changing the administration theme -the contrib theme for the site and Garland for the administration interface- ? Thanks. 回答1: Go to Administer -> Site configuration -> Administration theme. There, you can set the administration theme. If you'd like additional control over the administration theme, use the Admin Theme module. 回答2: For the administrator (with UID 1), go into it's user profile (in /user/edit/1) and change the theme, but

Drupal: how can I remove the links from taxonomy terms?

家住魔仙堡 提交于 2019-12-01 22:00:02
I like the taxonomy terms in my nodes pages, but I don't want user being able to click on them. I just want to remove the links. I'm trying to remove them from taxonomy module php files, but I cannot find them. Thanks You never want to edit a core module like taxonomy, as this makes it very complicated to upgrade your Drupal install. See also . You can use hook_link_alter to alter/remove the links in your own module. Adding them back in as non-links is a little more complicated, but can be done in your node.tpl.php file with example code . I would suggest Display Suite module or some jQuery

Is Drupal 7 slower than Drupal 6?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 17:08:42
问题 One of the problems with Drupal in general is that it is slow. We run Pressflow 6 in a high traffic production environment and it consumes a lot of resources for a site of its size. Much has been made of whether Drupal 7 is slower than Drupal 6: http://drupal.org/node/615822 It appears that this is indeed the case, but can anybody confirm? Many thanks, Chris. 回答1: Yes. I can confirm. However. First the bad news: Drupal7 core is more complex. Complexity costs performance. Drupal7 core is

SSL: Why does Chrome report mixed content? (Drupal 6)

£可爱£侵袭症+ 提交于 2019-12-01 16:01:04
I've just got a site running nicely with the whole site running through SSL, but Google Chrome is throwing a "This page contains some insecure elements" message, which isn't good in terms of end user trust-ability. All other browsers work fine, and give the golden padlock. The site is a Drupal 6 e-commerce site, running on apache2, and the error appears in the front end as well as the admin area. Does anyone know of any methods to find out exactly which elements are being considered insecure? Edit: I've used Fiddler to check the traffic, and it really is all HTTPS. It even complains on the