Search Forums
Forums
Kiwitrees on Twitter
    Tags

    charts, colors, re-order, widget, language, login failure, simpl_pages, 3.3.0, age, emigration, latest version, validation, .po, resources, html, privacy, administration pages, button, tools, marriage, design, 3.0.0 widgets, HTML block, lists, kiwitrees, special character, Favourites, googlemaps, REFN, ADDR, calendar, spam, merge, version, My Page, name, footer, menus, Add a wife, missing data, research, bug, sanity checker, illegitimate, translation, add, 1939 Register, fancy image bar, 2.0, contact, 3.2.3, permissions, 3.3.1, json, inactive, save settings, relationships, custom, responsive menus, source

    Topic:   Contact form 3.1.0  

    This topic contains 36 replies, has 3 voices, and was last updated by kiwi kiwi 2 years, 4 months ago.

    Viewing 15 posts - 1 through 15 (of 37 total)
    • Author
      Posts
    • #4857

      jacoline
      Participant

      479 posts

      Got this error when trying to use the contactform

      Parse error: syntax error, unexpected ‘addInlineJavascript’ (T_STRING) in …./webtrees/message.php on line 53

      Regards,
      Jamie Jaconelli

      admin and owner of:
      www.jaconelli.dk/webtrees, www.jaconelli.dk/history, www.familien-johnsen.dk(submenu) and danish support at www.host-siden.dk/sandbox and facebook

      #4858
      macalter
      macalter
      Participant

      551 posts

      I too got this error after realizing that I forgot to try after install.

      -----
      Kiwitrees:
      "A-D connections 3.3.1"
      PHP 7.0 Fast CGI

      "The Royals 3.3.1"
      PHP 7.0 Fast CGI
      mySQL server: 5.1.56
      MacOS: 10.11.6  (El Capitan)
      Browsers (mac): Safari  Version 11.0;  Firefox 56.0
      [updated: 07 Oct 2017]

      #4861
      kiwi
      kiwi
      Keymaster

      1595 posts

      Yes, I see it. Looks like I missed testing the bulk messaging options in admin users.

      The fix is to replace these lines (51-53, in message.php):

      	$controller->
      		pageHeader()
      		addInlineJavascript(‘window.opener.location.reload(); window.close();’);

      with these (just adding a couple of pointers)

      	$controller
      		->pageHeader()
      		->addInlineJavascript(‘window.opener.location.reload(); window.close();’);
      Nigel
      My personal kiwitrees site is www.our-families.info
      #4863
      macalter
      macalter
      Participant

      551 posts

      Just to confirm, do I include the -> or are they only to insert into this forum? I know to remove the

      
      

      -----
      Kiwitrees:
      "A-D connections 3.3.1"
      PHP 7.0 Fast CGI

      "The Royals 3.3.1"
      PHP 7.0 Fast CGI
      mySQL server: 5.1.56
      MacOS: 10.11.6  (El Capitan)
      Browsers (mac): Safari  Version 11.0;  Firefox 56.0
      [updated: 07 Oct 2017]

      #4864
      kiwi
      kiwi
      Keymaster

      1595 posts

      Yes, definitely. They are the change.

      Nigel
      My personal kiwitrees site is www.our-families.info
      #4865
      macalter
      macalter
      Participant

      551 posts

      my form (royalty site) is looking exactly like older version. Was it to appear per your demo earlier?

      -----
      Kiwitrees:
      "A-D connections 3.3.1"
      PHP 7.0 Fast CGI

      "The Royals 3.3.1"
      PHP 7.0 Fast CGI
      mySQL server: 5.1.56
      MacOS: 10.11.6  (El Capitan)
      Browsers (mac): Safari  Version 11.0;  Firefox 56.0
      [updated: 07 Oct 2017]

      #4866
      kiwi
      kiwi
      Keymaster

      1595 posts

      my form (royalty site) is looking exactly like older version. Was it to appear per your demo earlier?

      You haven’t enabled the “contact” menu module. Enable, then under Modules > Menus set its access level.

      Nigel
      My personal kiwitrees site is www.our-families.info
      #4867
      macalter
      macalter
      Participant

      551 posts

      Modules set contact > show to visitors SAVED
      Menu set contact > show to visitors > SAVED
      empty site cache; empty browser cache
      logged out; deleted cookies
      Home page > contact Site Admin still shows original form

      -----
      Kiwitrees:
      "A-D connections 3.3.1"
      PHP 7.0 Fast CGI

      "The Royals 3.3.1"
      PHP 7.0 Fast CGI
      mySQL server: 5.1.56
      MacOS: 10.11.6  (El Capitan)
      Browsers (mac): Safari  Version 11.0;  Firefox 56.0
      [updated: 07 Oct 2017]

      #4868
      kiwi
      kiwi
      Keymaster

      1595 posts

      There’s the problem. That footer link should NOT exist once you enable the new module. Looks like I need to correct code in the xenea theme for that. Temporarily switch to kiwitrees theme to see what I mean.

      Click on “Contact” in the main (top of the page) menus. That is the new feature, not the old link at the bottom.

      Though in your case, because you have the same contact for both Technical and Genealogy it still should not look very different. Just gets rid of the popup. The real differenmce cpmes of you have twp different contacts.

      The point of this module is primarily to allow a Contact link in the main menu instead of in the footer.

      Nigel
      My personal kiwitrees site is www.our-families.info
      #4869
      kiwi
      kiwi
      Keymaster

      1595 posts

      PS – I have also seen that the Contact menu item at the top is missing it’s correct icon. I’ve just fixed that as well. I can send you the files if you want, or they will be in the next release (3.1.1).

      Nigel
      My personal kiwitrees site is www.our-families.info
      #4870
      macalter
      macalter
      Participant

      551 posts

      Theme webtrees: contact form works but doesn’t look as polished as your theme; colours pink plastic looks similar
      Theme kiwitrees: contact form works and appears as per your demo

      Attached webtrees theme/ colours was similar

      webtrees

      -----
      Kiwitrees:
      "A-D connections 3.3.1"
      PHP 7.0 Fast CGI

      "The Royals 3.3.1"
      PHP 7.0 Fast CGI
      mySQL server: 5.1.56
      MacOS: 10.11.6  (El Capitan)
      Browsers (mac): Safari  Version 11.0;  Firefox 56.0
      [updated: 07 Oct 2017]

      #4872
      kiwi
      kiwi
      Keymaster

      1595 posts

      All fixed for next release. Except perhaps the comment that webtrees version doesn’t look great. I don’t know what that means, but don’t really have an interest in changing it. Perhaps not surprisingly I do plan on dropping that theme soon.

      Nigel
      My personal kiwitrees site is www.our-families.info
      #4873
      macalter
      macalter
      Participant

      551 posts

      Was amused seeing “webtrees” theme 🙂 . The body for text lines aren’t appearing for all 4 sides to make it look like a box was what I meant for appearance. Other than that, nice change. Theme Colors also looks similar “not 4 sided box”.

      I just sent & received a message from myself. Code change works and so does my settings.

      -----
      Kiwitrees:
      "A-D connections 3.3.1"
      PHP 7.0 Fast CGI

      "The Royals 3.3.1"
      PHP 7.0 Fast CGI
      mySQL server: 5.1.56
      MacOS: 10.11.6  (El Capitan)
      Browsers (mac): Safari  Version 11.0;  Firefox 56.0
      [updated: 07 Oct 2017]

      #4874

      jacoline
      Participant

      479 posts

      Thank you – seems correct now (without the error)
      I edit the code but missing the correct icon (as you also mention)
      Where do I edit that one? (using colors)

      Regards,
      Jamie Jaconelli

      admin and owner of:
      www.jaconelli.dk/webtrees, www.jaconelli.dk/history, www.familien-johnsen.dk(submenu) and danish support at www.host-siden.dk/sandbox and facebook

      #4875
      kiwi
      kiwi
      Keymaster

      1595 posts

      I edit the code but missing the correct icon (as you also mention)
      Where do I edit that one? (using colors)

      Just add this to /themes/colors/css/colors.css

      #main-menu li#menu-contact {
      	background: url[../images/contact.png] no-repeat 50% 25%;
      	background-size: 40px;
      }

      I added it at line 1923

      You also need a suitable image placed in /themes/colors/images. But you won’t need to add that, as I’ve used the same one you already have on your site for the colors theme 🙂

      Nigel
      My personal kiwitrees site is www.our-families.info
    Viewing 15 posts - 1 through 15 (of 37 total)

    You must be logged in to reply to this topic.