Drupal - use l or url function for mailto links
Does anyone know how to use the l() or url() function to create mailto links? I am running drupal 6. ...
Does anyone know how to use the l() or url() function to create mailto links? I am running drupal 6. ...
I'm trying to create a custom form in Drupal 6 and everything seems to work okay with the code below including when submitted a new entry is created in the database however all the $form_state values are empty. What am I missing? <?php function rate_form($form_state) { $form = array(); $form['rate']['name'] = array( '#type' => '...
I've got the following two vocabularies: Categories, with items: Big Medium Small Make, with items: Samsung Whirlpool KIC I've then made a product content type, where these two categories are required. My problem comes in where I want a menu (preferably using taxonomy menu and dhtml menu) so I can obtain the following menu: B...
I've created a Block using a View and would like to add some information to it that cannot be obtained from the View itself. I need to write a small function that queries for some extra data. I thought of putting this function in the MYTHEME_preprocess_node but when I put a simple $variables['test'] = 'test' and then do a print $test in...
I'm trying to create a custom search but getting stuck. What I want is to have a dropdownbox so the user can choose where to search in. These options can mean 1 or more content types. So if he chooses options A, then the search will look in node-type P,Q,R. But he may not give those results, but only the uid's which will be then themed ...
Hey there. Long time mysql/php user, first time Drupal user. Actually, I'm not doing the Drupal development (I'm just using the database to pull in some data to a separate application), and I'm just trying to figure out if this is how it's supposed to work: Every one of the "value" fields in the content_type_* tables is of type LONGTEXT...
How can I add a onkeyup event to a custom form field in Drupal 6? ...
I'am trying to develop a Custom drupal module which will read arguments from the URL and populate the form fields accordingly. I was successful in doing that for title filed but i was unable to that for body field and a custom cck field, i named field_url here is my code function formexample_form_alter(&$form, &$form_state, $form_id) ...
I have a problem that i cant seem to get my head around. What i need to do is to create lists in drupal, where you can group nodes together depending on what category they belong to, and also have that category as a header. ex: - January (category, header) -- week 1 (category, header) --- 1. bananas (node) --- 2. apples (node) --- 3....
How do you remove a folder from the URL? I have a Drupal installation in a folder and I would like to remove that subfolder from the URL. So instead of: www.example.com/subfolder/* I would like the url to be: www.example.com/* thanks ...
Hey all, I'm looking to generate a hierarchical breadcrumb from a taxonomy term (e.g. grandparent/parent/child) when all I have is the TID of "child". I've been toying around with taxonomy_get_tree(), but it seems quite difficult to do without very heavy iteration. There has to be an easier way. Thoughts? Thanks! ...
I have a Drupal module which performs a soap request on node save via hook_nodapi. This isn't a big performance loss on individual saves, but if thousands of nodes are being saved in batch mode this is a big bottleneck. I would like to perform a different action when the hook is invoked from batch mode but can't see an easy way to tell ...
I have a Drupal 5 website on which I want to display a list (or grid) of affiliate links to different products, sales and offers. Each 'affiliate product' node will have a title, description, an image and a URL. When either the image or URL link is clicked, the user should be redirected to the URL. I've gotten close to this, using a v...
Hi all, I'm theming a node-MyContentType.tpl and I would like the ability to 'print' only a specific Vocabulary. In other words, I would like something like that: <Title> <Vocabulary [1]> <Body> <Vocabulary [2]> I think it should be fairly easy, but I'm struggling.... Ideally, I would love to pass arguments to: print the "label" ...
I am using auto node title which will generate the title of a node. However, this is not happening when I create a node using node_save. See below: function save_contact($firstName, $lastName, $email, $showErrors = false) { global $user; $edit = array(); $edit['type'] = 'contact'; $edit['uid'] = $user->uid; $edit['name'...
Which modules can I use to add a google map to a node with a address entered by a user, so that the location shows on the map? (i'm asking, because I tried a few and could never find one that worked straight off the bat) Am I allowed to just use google maps? Will the Google Map API work from my local machine, or will it only work once i...
How would I add a prefix to a text field? For example, I have a field called "website" which is currently displayed like this: website: ____________ Where _ is the input field. With the module "field markup" i can add prefix and suffixes but they apppear AFTER the _ or before the website part. I need to end up with: website: http:// ...
How can I add CAPTCHA (version 6.x-2.0-rc3) to custom form in Drupal 6? Is it just me or is it really difficult to find any good documentation on Drupal.... ...
How can I get a Module to redirect if a user doesn't have the correct permissions to view it instead of getting the usual "Access denied. You are not authorized to access this page." page message? ...
Hi, I am using the node invite and token module. I have followed this flash tutorial video: http://www.adevbox.com/files/2008-06-25%5F1703.swf My problem is regarding the email format being sent. In the ?q=admin/settings/node_invite I have checked the blog entry checkbox. Now the node invite works but I can't format my body section va...