drupal

drupal rpx module registration mail

Hi, I have installed rpx module in drupal, i am trying to send registration mail details using providers gmail, yahoomail. mail is going properly but i cannot see password details . it is empty kindly any one help me how to send mail with details username and password . i have used folllowing function _user_mail_notify('register_no_ap...

Drupal's not reading correct values from DB

Hey Everyone, Here is my current problem. I am working with the chat module and I'm building a module that notifies users via AJAX that they have been invited to a chat. The current table structure for the invites table looks like this: |-------------------------------------------------------------------------| | CCID | NID | INV...

how to programmatically create menu items while creating nodes?

I'm creating some nodes programmatically, thus: foreach ($titles as $t) { $n = new stdClass(); $n->type = 'myType'; $n->uid = 1; $n->title = $t; $menu = array(); $menu['link_title'] = $t; $menu['menu_name'] = 'primary-links'; // this attempt at placing the menu item in a particular place in the // me...

AJAX jQuery click results in function event being fired twice

I have an AJAX chat room module in Drupal and I am trying to insert BBCode stlye tex tags to the submit box when the user clicks Insert Tex. I managed to get the following code to work the first time but afterwards when I click Insert Tex it inserts the tex tags triple times. $('#edit-chatroom-message-entry-submit').click(function (e) {...

Duplicate a Drupal installation from one server to another

Hello. I have been developing a Drupal 6 site on my PC using XAMPP. I'm done now, and everything looks peachy. Problem is, I need to put all my content (including custom modules and themes) up onto a staging server which only has a fresh Drupal 6 install on it. I can't imagine having to set up all my custom content types and whatnot al...

pager problem with drupal and taxonomy

Ok, so this is probably a silly question, but i thought i'd put it out there anyway: I know it's a strange solution to a simple problem, but i needed to control the listing of the nodes in the taxonomy pages, which i didn't feel i got the traditional way. So i went ahead and created a module that fetches the nodes based on taxonomy (taxo...

Hiawatha and Drupal

I posted this on serverfault as well, but I probably asked in the wrong group. I am using the Hiawatha web server and running drupal on a FastCGI PHP server. The drupal site is using imagecache and it requires either private files or clean urls. The issue I am having with clean urls is that requests to files are being rewritten into ind...

Is it possible to have anonymous purchases with ubercart without the creation of a new user account?

I would like to be able to have anonymous users purchase a product but not have a new account created when they purchase it. Unfortunately the creation of a new user seems to be very tightly integrated into ubercart's ordering system. And, because the order module is part of the ubercart core, it's behavior cannot be overridden easily....

Alter Oragnic Groups Membership Requests

Hi, I want to remove the option "Invite Only" from Membership Requests in Organic Groups. I've tried to do a hook_form_alter but I've had not luck. Can anyone point me in the right direction? Using: Drupal 6.16 Organic Groups 2.1 ...

How do I dynamically change ubercart's default messages from my module

There are some products for which I would like to have a special checkout complete message that would differ from the default. I know that I could probably do this by changing the default redirect page to something else. [And I'm not sure if that would introduce another problem] However, I would like to know if there is a standard/be...

Drupal: Multiple Stylesheets

I'm currently creating a custom Drupal theme for my company and I'm having trouble getting multiple stylesheets to load. I followed the instructions on this page by adding stylesheets to the .info file in the format: stylesheets[all][] = style.css stylesheets[all][] = name2.css etc... However, when I load the page nothing changes a...

DRUPAL: can I easily integrate my flv player with drupal, instead of using flowPlayer ?

I would like to better customize the skin of the flv video player in Drupal. The best module I can use for it is FlowPlayer, however I don't have access to the source code.. so I'm planning to develop my own flv player. Can I then easily integrate it in Drupal ? thanks ...

Drupal: integrate my own flv player (with CCK Video module)

What's the best way to integrate my flv player in drupal ? Using SWF tools ? In case I use SWF tools, should I somehow pass the flv video path to the player, right ? Is there any documentation about this ? thanks ...

Hide blocks on page not found in Drupal

I have google adsense in a block, and I want to hide the block when the page is a "Page not found" error page. It's against adsenses TOS to show their ads on error pages. I figure there must be a way to write a php script to put in the Page specific visibility options. Does anyone know how to do this? ...

Set/update cookie on every page load

I have a small snippet of code that does some work on a cookie on every page load. (It's for affiliate tracking if you want to know why) Where do I put this so it runs every every time a drupal page is loaded ...

DRUPAL: how to order the nodes alphabetically in the back-end

How can I order the nodes alphabetically in my Drupal back-end ? I cannot sort the columns by clicking on the headers unfortunately. Should I hack the code or install any plugin ? ...

Drupal best way to change text

Hi Guys, I'm using the module "simplenews" and during the registration process it reads "Select the newsletter(s) to which you wish to subscribe.". I'd like to change this line and wanted to ask what the best way is to do so without hard coding it? Thanks in advance! ...

DRUPAL: ordering the content in the back-end without using Views

Hi, I would like to order alphabetically the content in my Drupal back-end Is there any simpler method than using Views module or hacking the code for doing it ? I don't need an ordering selector, just to statically order the nodes differently. thanks ...

Confused about theme function calls.

I've created a content type that has a CCK text field. When I select the text field using the Drupal Themer widget it tells me the last function called was theme_text_formatter_default() , which I found in the CCK text.module It also tells me that it's parents were; content-field.tpl.php < theme_markup < theme_markup < node.tpl.php ...

How do I persist form data across an "access denied" page in Drupal?

We're building a small sub-site that, on the front page, has a one input box form that users can submit. From there, they're taken to a page with a few more associated form fields (add more details, tag it, etc.) with the first main form field already filled in. This works splendidly, thus far. The problem comes for users that are not l...