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 Profiles (Moderator: Dave Greenberg) »
  • profiles forms in wordpress
Pages: [1] 2

Author Topic: profiles forms in wordpress  (Read 4726 times)

arakuna

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Wordpress 3.3.1
  • MySQL version: not sure
  • PHP version: not sure
profiles forms in wordpress
March 10, 2012, 12:17:24 am
Hi,

I am hoping someone can help me.

I am trying to have anonymous uses fill in a profile form to subscribe to a magazine. I have created a profile and given the everyone role permission to create a profile, but when I go to the suggested url <siteroot>/civicrm/profile/create&gid=10 like the help text suggests I am getting a page cannot be found.

I have tried using the HTML snippet in a wordpress page but, wordpress changes all the formatting and javascript.

Can anyone please tell me if there is a short code I can insert into a wordpress page or a quick way of making the profile form public.

Cheers

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: profiles forms in wordpress
March 10, 2012, 08:06:16 am

try a url similar to:

http://wordpress.demo.civicrm.org/?page=CiviCRM&q=civicrm/profile/create&reset=1&gid=1

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

arakuna

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Wordpress 3.3.1
  • MySQL version: not sure
  • PHP version: not sure
Re: profiles forms in wordpress
March 10, 2012, 06:13:10 pm
Awesome, thanks Lobo, that worked a treat.

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: profiles forms in wordpress
April 12, 2012, 07:57:20 am
Is there any documentation on this? I've been hunting for info an how to expose a profile, and so far this thread is all I've come across.

Thanks
Graham
Graham Mitchell
http://mc3.coop

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: profiles forms in wordpress
April 25, 2012, 03:37:25 pm
The documentation is forthcoming in the new version of book.civicrm.org I believe.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

emma_dmaqg

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.1.0
  • CMS version: Wordpress
  • MySQL version: 5.0.77
  • PHP version: 5.2.11
Re: profiles forms in wordpress
May 01, 2012, 07:29:52 am
Hey, this answer isn't complete enough for me and I have the same question...can you expand it to the "for dummies" version?
Thanks!

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: profiles forms in wordpress
May 01, 2012, 08:01:56 am
Hi Emma

I'm guessing here based on my experience with CiviCRM and Drupal, but based on Lobo's suggestion above...

Having created your profile, in order to locate the URL to access it, try:

http://www.yoursite.com/?page=CiviCRM&q=civicrm/profile/create&reset=1&gid=1

where the final bit, gid=1, provides the ID number of the profile you just created.

To find the ID of your profile, go to Administer > Customize Data & Screens > Profiles, where you will see a list of your profiles.  The ID of each profile should be displayed in this listing, so if your profile ID is, for example, 15, then the url will be of the form:
http://www.yoursite.com/?page=CiviCRM&q=civicrm/profile/create&reset=1&gid=15

Hope this helps.
Graham Mitchell
http://mc3.coop

wrosner

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.41
  • CMS version: WP 3.3.1
  • MySQL version: 5
  • PHP version: 5
Re: profiles forms in wordpress
May 03, 2012, 06:23:02 pm
Hi,

So I have exactly the same situation.  My URL's in wordpress don't conform to the example being given.

I'm wondering if it's because I am using "friendly" URL's.  Just not sure but would love to be able to use signup forms within the WP site.

Any ideas?

Thanks


Wes

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: profiles forms in wordpress
May 04, 2012, 01:08:56 am
If you turn off friendly URLs, does it work then?
Graham Mitchell
http://mc3.coop

wrosner

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.41
  • CMS version: WP 3.3.1
  • MySQL version: 5
  • PHP version: 5
Re: profiles forms in wordpress
May 07, 2012, 10:55:55 am
Hi,

OK.  So now I feel silly.  WHERE do I make so they are not friendly URL's.  I see settings for posts but not for pages.

It seems like the way things are embedded into wordpress content is different than with the other CMS's and I actually like it better.  The short code generator that allows for Event Registration or Donation pages is great.  Is it possible that other forms could be included in this area.

Would love to solve this but not sure what to do.

Thanks

Wes

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: profiles forms in wordpress
May 07, 2012, 02:37:23 pm
So what's the URL of one of the event registration or donation pages on your site? (Feel free to use example.com for your domain)
Graham Mitchell
http://mc3.coop

wrosner

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.41
  • CMS version: WP 3.3.1
  • MySQL version: 5
  • PHP version: 5
Re: profiles forms in wordpress
May 07, 2012, 06:46:04 pm
example would be www.example.com/get-involved-2/make-a-donation/

Thanks

Wes

wrosner

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.41
  • CMS version: WP 3.3.1
  • MySQL version: 5
  • PHP version: 5
Re: profiles forms in wordpress
May 08, 2012, 08:23:13 am
OK.  So I did change the permalinks to be in the style "page=xx".  The site continued to work but changing the URL as described did not to get to the profile.  I know I am not supposed to past links but is it possible to refer to a site.  I will try and see if I get my hand slapped.

So the site is at civicrm dot wlfarm dot org.

I would then append *something" on this to get to my profile which happens to be group id 16

Does this help?


Many many thanks,

Wes

wrosner

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.41
  • CMS version: WP 3.3.1
  • MySQL version: 5
  • PHP version: 5
Re: profiles forms in wordpress [SOLVED]
May 10, 2012, 09:10:42 am
Ok.  I figured out what I was doing wrong.  My clue came when I was looking at a link for sharing a donation page.  When I saw the pattern of that URL I realized it would likely solve my problem.  So in our site we have friendly URL's that look like www.example.com/mainnav_section_page/subpage_name/


To get the form to show I used the following

"/get-involved-2/join-our-mailing-list/?page=CiviCRM&q=civicrm/profile/create&reset=1&gid=16"

The "/get-involved-2/join-our-mailing-list/" is a valid page but when presented does not actually show ANY of the content from that page.

The remainder "?page=CiviCRM&q=civicrm/profile/create&reset=1&gid=16" causes the form to be presented. 

So I simply moved the content that I wanted to preceed the form to the Profile directions and all is good with the world.

Hope this helps someone.

Thanks


Wes


compass

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 5
  • CMS version: wordpress
  • MySQL version: 5
  • PHP version: 5
Re: profiles forms in wordpress
July 07, 2012, 02:35:05 pm
Is there a way to add a {create user name and password}  into a profile.  This way someone can enter their information and gain the ability to log back into wordpress and edit the crm profile latter on..

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • profiles forms in wordpress

This forum was archived on 2017-11-26.