drupal-6

Displaying User Relationships Module Blocks

I'm unable to display any of the User Relationships' auto-created blocks in any of my sidebars. I have tried enabling all modules and permissions I can think of, with no success. The block I'm most interested in is the block that would allow users to be invited to an existing relationship (e.g. Friend), but as I say this nor any of the o...

Showing full body from an RSS feed using Feeds module in Drupal 6.x

Alright, so this is my problem: I'm using the Feeds module to create nodes from an RSS feed. My problem is that feeds doesn't allow you to select 'body' in 'sources' (under Create nodes -> mappings in the left-side menu). I googled this quite a bit but cant find any solution to this problem. Any help would be very much appreciated. ...

Drupal: How to Render Results of Form on Same Page as Form

How would I print the results of a form submission on the same page as the form itself? Relevant hook_menu: $items['admin/content/ncbi_subsites/paths'] = array( 'title' => 'Paths', 'description' => 'Paths for a particular subsite', 'page callback' => 'ncbi_subsites_show_path_page', 'access arguments'...

drupal body class

drupal version is 6. just want to know where are those $body_classes comes form. I knew in template_preprocess_page , there is a variable called 'body_classes'. but my problem is, not all body_classes are come from preprocess page. for instance: I have a term named 'activities and attractions', then in my page.tpl.php, there is a cla...

Drupal - how to register a MENU_CALLBACK that is accessable to all users(even anonymous ones)?

I'm trying to learn Drupal 6. I want to register the path '/topic' to a MENU_CALLBACK using hook_menu(). Here's what I have: function mymodule_menu() { $items = array() $items['foo'] = array( 'page callback' => 'show_page_foo', 'access callback' => 'user_access', 'access arguements' => array('access foo con...

Drupal 6 story form submit URL change

While submitting Drupal Story form default redirect URL http://localhost/drupal/?q=node/20 I need to change into http://localhost/drupal_new/xyz.php?q=node/20 ...

How to send HTML email on new registration in DRUPAL 6?

I want to send the HTML email to new registered user. I am using Drupal 6. It has facility to send the mail to new registered user but the email is in only text format. But now how can i send the user mail in HTML format so that i can have some images and also some header - footer? Thanks in advance. Nitish Panchjanya Corporation ...

Drupal 6: set pager_query() to display last page of query?

Hi all, Does anyone here know how to set up a pager_query() to automatically go to the last page of the query when the page is displayed? I'm using theme_pager() to format the page. ...

How remove node ID [nid:n] in NodeReference fields

Hi. This is the same question of this link: http://stackoverflow.com/questions/1515722/removing-nidn-in-nodereference-autocomplete According with the first answer (Grayside) I've created my own module and activated. Then I create a new content, I look sth up in the nodereference field and finally select it -> it works (Doesn't appear ...

Preview for create/edit content doesn't work

Hi! I'm configuring a DRUPAL site web (that it was previously created) and I'm testing the diferent options. When I create a new content or edit a old content and change anything and then I click on 'Preview' doesn't appear the recent changes (just appear the old values), I have to save it before. NOTE: I do the accions as ROOT (it no...

AJAX in Drupal Forms?

How would you go about constructing a step by step form that uses AJAX through Drupal to pull the next form step? For example, Step 1: I like Baseball I don't like Baseball. When that person clicks on either Like or Don't Like, I want to use AJAX to recognize and pull the next part of the form, remove/hide the first section sin...

Customized User Registration Form

Hey Guys, i have made user-register.tpl.php file. And i have set many text field in that. But now i need that.... i want to store the users information to the database. bcz i have created the customized registration page, so i need that my text field values should be store in the database. like this....... Username: <input type="te...

how can i see the profile field on registration page?

Hey Guys, I have made customized user registration page. and i have made that on theme layer. But now i want to see the the fields which i have made in profile module. as i have written like this for <?php print drupal_render($form['account']['name']); ?> this code will show the user name field. which is default. now i want to see th...

Drupal: jQuery media module: how can I pass object ID ?

hi, I'm using jQuery-media module to embed my flash player. How can I pass the current id using the FlashVars ? I can only write static string in jquery Media advanced settings, but I would like to pass the object id, maybe some token ? thanks ...

How to Translate Template Strings in Drupal 6

I have some strings in my theme/template and I was hoping to translate them with t(), but they don't appear in /admin/build/translate/search. I could do it in PHP code and make my own function, but is this "the right way"? ...

Relationships via Email Rather Than User List

I'm new at Drupal, so I may have missed a solution despite a lot of research: I want users to be able to invite non-users and other users into a named relationship they've set up (using e.g. the Friendlist or User Relationships module) using only email addresses and not the user list. I believe that invitations from both of those modules...

get program name in drupal

I would like to get program name in Drupal (actually name in URL that calls program or function). example: http://localhost/drupal6/my_widget This works: $myURL = (basename($_SERVER['REQUEST_URI'])); // $myURL=my_widget but not when I have additional parameters: http://localhost/drupal6/my_widget/parm1/parm2 ...

Drupal, Lightbox: cannot edit the content inside

hi, I'm using Drupal and Lightbox module to display the content of articles in this website: donatellabernardi.ch/drupal if you click on an article the lightbox is displayed. However I have 2 problems with it: 1) I cannot use the libraries such as the tooltip library qTip from it. (If you move the mouse over the balls, you'll see the...

Why modules link is not coming on Administrator Main page?

I have added two modules in my drupal site called.... 1. me alias 2. Mime mail Whenever we add new modules to our site, it has links on admin page. but after activating modules, i can't see the links on admin page. but this happens only on server but on my localhost i can see the modules links on admin page. i have put screenshot o...

Best approach to limit users to a single node of a given content type in Drupal

I need to limit users to a single node of a given content type. So a user can only create one node of TypeX. I've come up with two approaches. Which would be better to use... 1) Edit the node/add/typex menu item to check the database to see if the user has already created a node of TypeX, as well as if they have permissions to create it...