Noticed that appending the name value pairs to the URL to pop-up a form imposed extraneous information to the form identifier in the code. For example, when appending the following to the link: ?width=500&height=500&iframe=true then needed to provide the following fix:

1. Go to your colorbox module and open the file: 'colorbox.pages.inc'
2. Go to the function: 'colorbox_form_page'
3. Before anything is handled on the form identifier, clean out the extraneous name value pairs:

  if (strpos($form_id, '?') > 0)
  {
  	$form_id = substr($form_id,0,strpos($form_id, '?'));
  }

4. For Access Control fix, go to your colorbox module and open the file: 'colorbox.module'
5. Go to the function: '_colorbox_form_page_access'
6. Before anything is handled on the form identifier, clean out the extraneous name value pairs:

  if (strpos($form_id, '?') > 0)
  {
  	$form_id = substr($form_id,0,strpos($form_id, '?'));
  }

7. Retest, finding that the question mark assumes when it is cleaned out, all other associated name-value pairs are also cleaned out so that the form identifier is clean and can associate the appropriate form into the modal.

Comments

frjo’s picture

Status: Active » Closed (won't fix)