This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

?changing query operator in views or finding duplicate nodes by specific fields

Have a filter that shows duplicate contacts by email address, I need to change it to show duplicates by email addresses or first name and last name since some contacts have were entered with different email addresses.

By simply using Views, without any customizations, the query looks like this:
filter by email AND first name AND last name

I need it to look like:
filter by email OR (first name AND last name).

Filter operators don't affect operators of the query between the fields... How can I do that?
Thank you.

Generate dynamic form multiple times on the same page.

Is their any way to generate a the same form giving it different information on the same page multiple times?

My end goal is to simply have multiple submit buttons on a single page, each one submitting something different.

This all needs to be dynamic, so I can not create a form for each button by hand.

This is what I have for the form set up

/*
* A form, just the add button. Ticker to add is bassed upon variable passed in.
* @return: HTML formatted tab.
*/
function stock_watchlist_add_button_form($ticker=NULL) {
if($ticker) {
$form['Ticker'] = array(
'#type' => 'hidden',
'#value' => $ticker
);

$form['user'] = array('#type' => 'value', '#value' => $GLOBALS['user']->uid);

// the submit buttom
$form['submit'] = array('#type' => 'submit', '#value' => t('Add'));
return $form;
}
}
/*
* Called when the button for stock_watchlist_add_button_form. Puts value into the DB and sets the status message.
* @param: $form_id
* @param: @form_values
*/
function stock_watchlist_add_button_form_submit($form_id, $form_values) {
db_query("INSERT INTO stock_watchlist (user_id, ticker, date_added, close_when_added, scan, date_range) VALUES ('%s', '%s', '%s', '%s', '%s', '%s')" , $form_values['user'], $form_values['Ticker'], date("d/M/Y"), $close,'--','--');

Multiple Profile Images. Is it possible?

Could someone tell me, please, if there is a way to allow users to upload multiple images to their profiles.

Anyone with any help at all is a greatly thanked individual in my books.

THANKS
http://messcasts.com/

How do I mix radio buttons and text fields on a form

I can't get my head around this, and can't find anything from browsing, so can someone give me a hand! I want to render a form that has a set of radio buttons, but accompanying each option is a list selector.

So,

[Radio 1]
[Select 1]

[Radio 2]
[Select 2]

[Radio 3]
[Select 3]

I can't figure out how to render this with the form array.

I can get

[Radio 1]
[Radio 2]
[Radio 3]

[Select 1]
[Select 2]
[Select 3]

But that's not really what I'm after. I briefly got

[Radio 3]

Prevent blocks containing ajax-type widgets from reloading with every page refresh

I'm using the timeline and gmap modules to some limited success. They're pretty cool but need to mature.

My major concern with modules that utilise large amounts of javascript is that they take so long to load. This will seriously harm the end user experience especially when a block view is enabled on most/all pages. Caching just doesn't seem to be cutting it. In particular I've noticed that timeline has a tendency to throw errors if the page refreshes before the js has finished loading.

On to my question...

XRMS integration and equivalents

XRMS offers great CRM possibilities. Perhaps we could add some of the XRMS basics to Drupal through independent modules and encourage XRMS integration.

There are several posts calling to add an XRMS equivalent, something just a touch more professional than CiviCRM, to Drupal, but all of it depends on adding a big chunk of code. What if we extended the Drupal user by the equivalent of CiviCRM and XRMS combined using several small modules?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions