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) »
  • on line sign up with html snippet
Pages: [1]

Author Topic: on line sign up with html snippet  (Read 2023 times)

brigittem

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 1
on line sign up with html snippet
February 21, 2010, 08:32:31 am
Hi,

I put a html snippet form on another website, outside drupal and civicrm.

Things works great as long as the user don't make an error in the register form. But if for example he forgets a mandatory field, he is redirected into civicrm and drupal to complete the form.

How to keep the user on the register site, outside drupal and civicrm ?

Thank you.

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: on line sign up with html snippet
February 21, 2010, 08:59:20 am

i dont think u can keep the error case outside of drupal/civicrm. in case of error the form needs to be dynamically generated (and is no longer a static html page)

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

brigittem

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 1
Re: on line sign up with html snippet
February 21, 2010, 01:17:54 pm
hum. I'm a bit disappointed : what is html snippet for ?

All right, I'll keep the online sign up form inside drupal and civicrm, and customize the theme for anonymous, so that they won't see where they are. (Zen theme + role theme switcher).

I wonder how to customize the form ? (with html snippet, it was possible to reconfigure the layout with an html editor).

First step : how could I change the width of the first column (field label) in the form ?

Thank you for your help,

Brigitte
« Last Edit: February 21, 2010, 02:48:19 pm by brigittem »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: on line sign up with html snippet
February 21, 2010, 03:39:01 pm
Easiest way to affect small changes in CiviCRM page layouts is to put additional CSS styles for specific 'id' elements in civicrm/css/extras.css in your installation. Any additional css styles put in this file will be loaded.

If this isn't sufficient, you can create a custom copy of civicrm.css and make changes there. Point to this alternate copy from Administer >> Configure >> Global Settings >> Resource URLs

If css changes aren't sufficient, you'll need to go the route of template customization:
http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in%2C+Profile%2C+Contribution+and+Event+Registration+Screens
Protect your investment in CiviCRM by  becoming a Member!

brigittem

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 1
Re: on line sign up with html snippet
February 23, 2010, 07:21:43 am
Thank you, I tried your link http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in%2C+Profile%2C+Contribution+and+Event+Registration+Screens and I progress. I've already made some improvements. I've difficulties in editing css and tpl files because I use Notepad or an old Dreamweaver. Could you advise me a Smarty editor ?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: on line sign up with html snippet
February 23, 2010, 11:23:55 am
Any text editor can work - they're just text files - but an editor which helps with PHP and HTML is better. I like TextMate personally.
Protect your investment in CiviCRM by  becoming a Member!

brigittem

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 1
Re: on line sign up with html snippet
February 24, 2010, 04:03:59 pm
I didn't manage to customize my profile form. Do you konw if it's possible to have a multi-line textarea in the profile form (text length=500) ?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: on line sign up with html snippet
February 24, 2010, 04:34:59 pm
Custom fields of type = Note will display as textarea (plain text or rich-text editor, your choice)  in profiles and built-in forms.
Protect your investment in CiviCRM by  becoming a Member!

brigittem

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 1
Re: on line sign up with html snippet
February 25, 2010, 02:05:04 am
Thanks

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • on line sign up with html snippet

This forum was archived on 2017-11-26.