drupal-6

Drupal Ubercart: multi-currency?

余生长醉 提交于 2019-12-14 03:42:10
问题 what's the safest way to integrate multi-currency support to Ubercart ? I found this module: http://drupal.org/project/multicurrency but it is still under development and it says it requires custom installation procedure to be installed. Is this the main way to do it ? Or am I missing something ? thanks 回答1: I've solved with this great tutorial: http://vintagedigital.net/content/how-add-multicurrency-support-ubercart 来源: https://stackoverflow.com/questions/3195279/drupal-ubercart-multi

Validation on user registration form?

耗尽温柔 提交于 2019-12-14 03:19:08
问题 i have made module in which i am trying to add validation like if the user had entered the characters in "Phone No" text filed and same on "Mobile No". This will run when user had open the user registration form. I have made this.... <?php function form_intro_form_alter($form_id,&$form){ if($form_id == 'user_register' || $form_id == 'user_edit'){ $form['Personal Information']['profile_pno']['#validate'] = array('form_intro_pno_validate' => array()); //profile_pno is for Phone No. $form[

Unset blank array items on the fly

℡╲_俬逩灬. 提交于 2019-12-14 03:16:10
问题 I have an array which is being built using: $features_data[$i] = preg_split("/\n/", $row); The output is as follows: Array ( [0] => Array ( [0] => [1] => [2] => <img src="http://example.com/sites/test/files/imagecache/feature-image/testimage_0.jpg" alt="" title="" class="imagecache imagecache-feature-image imagecache-default imagecache-feature-image_default" width="654" height="260" /> [3] => [4] => [5] => [6] => Test 1 [7] => [8] => [9] => [10] => Lorem ipsum dolor sit... [11] => [12] => )

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

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[

Drupal 6: Views: Listing taxonomy terms with tagged nodes underneath

 ̄綄美尐妖づ 提交于 2019-12-13 16:22:00
问题 I need to create a view that lists out taxonomy terms and then list the top 3 recent(sort by node:date updated) nodes with that tag example out put: Article Article 1 Article 2 Article 3 Podcast Podcast 1 Podcast 2 Podcast 3 . . . I created a view of type "Term" and I can get the view to output all of the terms. However, I don't see how to link in the nodes tagged with the taxonomy term. I looked around in the view of type node, but I couldn't get anywhere close to what I needed to output.

What is the opposite of Access Callback user_is_anonymous?

给你一囗甜甜゛ 提交于 2019-12-13 14:40:49
问题 I know that is used in a drupal module to specify that only anonymous users can see that module. What would be the callback that specifies only logged in users ? I have a page that I only want accessible to logged in users. Thank You 回答1: It is the user_is_logged_in() function, which basically checks that the user's ID ($GLOBALS['user']->uid) is greater than zero. The function converts the uid into a Boolean type and returns TRUE for any user that is logged in, because they would have a uid

Faking Auto Increment Increment on a Table in MySQL Using Trigger

时光怂恿深爱的人放手 提交于 2019-12-13 07:45:32
问题 I have a content table in my MySQL database (a Drupal content table, for what it's worth), which has an auto incremented primary key, nid. I want to be able to implement an odd and even id solution, where content created on production has even ids and content created on dev has odd ids, to avoid id conflicts when I sync. Unfortunately, MySQL doesn't support sequences, or per-table auto increment increment values (i.e. increment by 2 only for db.node, rather than 1). The best solution I can

Using PHP or JavaScript, can I append some text to every href URL rendered in a page?

╄→гoц情女王★ 提交于 2019-12-13 07:21:23
问题 first time posting! I'll try to be as clear as possible. I have a Drupal 6 website and am using a custom template file to render some pages differently than the rest of the website. This is what the code I'm working with looks like: <?php print $header; ?> <?php if ($title): ?><h1><?php print $title; ?></h1><?php endif; ?> <?php print $content ?> The page renders correctly when the URL looks like this: http://example.com/somepage/?format=kiosk Except any link that is rendered in the page will

Drupal: Associating grouping more than one CCK field

家住魔仙堡 提交于 2019-12-13 07:09:55
问题 I have an article content type with a node reference CCK field that links to other articles (related articles) . I need to add a text field for each node reference that allows an admin to specify "why it's related". How do I go about this in D6? Articles can be related with other articles so it makes sense to have the "why it's related" to go in the main article referencing the related articles. This is using the text area type ahead so that the user will be given teh drag and drop UI for