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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Stand-alone script not working
Pages: [1]

Author Topic: Stand-alone script not working  (Read 3851 times)

jmmb

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Stand-alone script not working
May 08, 2007, 04:07:08 pm
Hello, we have installed, configued and set up a simple CiviCRM form for a client's website to take (among other things) names and e-mails of potential volunteers.  I created a profile using some standard and custom fields, and it appeared to be perfect in the preview.  However, when I copied the standalone code into a new page, it is definitely not perfect.  You can see what I mean here:  http://www.nbconference.org/node/25

As a new CiviCRM user (though not new to Drupal), I'm stumped about what's going on....  The site is built in Drupal 5.1 and we're using CiviCRM vsn. 1.6.8703.  Thank you for helping with this problem,


Jim

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Stand-alone script not working
May 08, 2007, 04:17:23 pm
Hi Jim - Welcome!

Looking at the linked node on our site - I think the problem might be in the "Input Format" setting for that Drupal Node. Try setting that to "Full HTML" (it looks like it's set to "Filtered HTML" now which is the default setting - and which doesn't allow form fields etc. to be rendered properly).
Protect your investment in CiviCRM by  becoming a Member!

jmmb

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: Stand-alone script not working
May 08, 2007, 04:23:23 pm
Dave - thank you for replying!  I did think of that and double checked it - but the Input Format is set to "Full HTML".  I only wish it was so easy!  Any other ideas?  Regards,

Jim

jmmb

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: Stand-alone script not working
May 08, 2007, 04:36:58 pm
Well, I just tried re-copying and pasting the code again.  This time, after pasting, rather than going back into TinyMCE view, I just submitted it (making extra sure it was in Full HTML mode, which it was).  Now it looks quite a bit better - the form part itself seems to be okay - but there are 2 broken image type links above it that are weird, as well as 2 identical profile names (which I'd actually prefer to not be displayed at all - had the impression that was only for admin purposes and wouldn't show up for end-users)....  Anyway, at least it's getting closer!  Any ideas on these other problems?  Thanks,

Jim

geilhufe

  • I post frequently
  • ***
  • Posts: 293
  • Karma: 33
    • Social Source Software
Re: Stand-alone script not working
May 08, 2007, 08:13:26 pm
(1) TinyMCE strips out stuff even independent of the input filter. So disable the rich text field when you cut and paste.
(2) Sometimes the HTML filter will kill tags generated by CiviCRM. Use an admin only filter like PHP.

We've found this works consistently.

If you want to "fix" you html filter for CiviCRM, compare the code CiviCRM generates to the code Drupal displays in the browser. Add every missing tag into your HTML filter settings.
Drupal and CiviCRM consulting, strategy and configuration
http://www.social-source.com/

jmmb

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: Stand-alone script not working
May 09, 2007, 09:14:27 am
Thanks for that post - I went back, disabled TinyMCE and re-submitted the infomation in PHP input mode.  It looks like it's working now, but there are 2 things that are still troubling.

1.  It displays (I believe) correctly in Firefox and Camino, but in Safari the "open section" and "close section" links are displaying like broken images.  Does anyone know of a fix so it displays uniformly in Safari?

2. To the "open section" and "close section" links at the top - it doesn't seem to do anything (and I don't understand the purpose of it anyway).  Can someone explain the purpose of this, and it it's not absolutely necessary can it be removed.  It *didn't* show up in the admin preview, so I'm surprised it's there at all.

Thanks for your advice and help,

Jim

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Stand-alone script not working
May 09, 2007, 11:47:36 am
Quote from: jmmb on May 09, 2007, 09:14:27 am
1.  It displays (I believe) correctly in Firefox and Camino, but in Safari the "open section" and "close section" links are displaying like broken images.  Does anyone know of a fix so it displays uniformly in Safari?

Take a look at the HTML - the open and close links use <img .../> tags - and you should be able to copy the img src= value into any browser and view the + or - icons. If this doesn't work - then your Global Settings >> Resource URL may be incorrect.

Quote from: jmmb on May 09, 2007, 09:14:27 am
2. To the "open section" and "close section" links at the top - it doesn't seem to do anything (and I don't understand the purpose of it anyway).  Can someone explain the purpose of this, and it it's not absolutely necessary can it be removed.  It *didn't* show up in the admin preview, so I'm surprised it's there at all.

If you are seeing both links, this also indicates a Resource URL problem (because the Javascript functions which "show" and "hide" these is not working). That said, you can remove all the open / close section parts of the HTML - it's purpose is to allow users to collapse the form - but it's not necessary to use it.
Protect your investment in CiviCRM by  becoming a Member!

jmmb

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: Stand-alone script not working
May 10, 2007, 01:43:14 pm
Thank you for your advice - it was very helpful.  On looking at the code closer, I realized that the CiviCRM module was installed before we switched its DNS and site name info....  So the image links were pointing to the old URL path - I changed it (along with the script path) and now it appears to be working correctly.  Cheers,

Jim

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Stand-alone script not working

This forum was archived on 2017-11-26.