CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Relationship Creation in Front-End WordPress Page (bug) ?
Pages: [1]

Author Topic: Relationship Creation in Front-End WordPress Page (bug) ?  (Read 454 times)

JMM

  • I post occasionally
  • **
  • Posts: 67
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.4.33
Relationship Creation in Front-End WordPress Page (bug) ?
December 18, 2013, 08:05:56 am
I don't know wether this is a CiviCRM core or WordPress integration issue :

Most CiviCRM features can be used in Fron-End Mode (i.e. integrated in a WP Page), just by removing "wp-admin/admin.php" from the URL (see http://wiki.civicrm.org/confluence/display/CRMDOC/Displaying+Public+Forms+in+WordPress+Frontend+Sites)

When I apply this to the Relationship Creation Form, the pull-down list of the "Select contact" field is displayed with empty lines.

Selecting any of the lines, fills the "Select contact" field with nonsenses (e.g. "<![endif]-->")

This can easily be reproduced on the (WordPress) Demo : see attached screen copy

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Relationship Creation in Front-End WordPress Page (bug) ?
December 18, 2013, 08:52:10 am

except for a few pages that are designed to be front end pages, most civi pages make the assumption (sometimes) that they are on the backend and this impacts the urls that are generated for ajax etc.

This is potentially solvable, but will require a few core changes across the framework. Its not currently on the planned feature list

If you are a coder and want to take a look at it, might want to take a look at:

CRM/Utils/System/WordPress.php, function url

U need to ensure tht when a page is viewed on the frontend all urls are generated on the frontend

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

JMM

  • I post occasionally
  • **
  • Posts: 67
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.4.33
Re: Relationship Creation in Front-End WordPress Page (bug) ?
December 18, 2013, 10:15:19 am
I am not personally a coder, but may find one.
Thank you

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Relationship Creation in Front-End WordPress Page (bug) ?

This forum was archived on 2017-11-26.