Jump to content

joe_ma

Members
  • Posts

    182
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Liebefeld, Switzerland

Recent Profile Visitors

4,537 profile views

joe_ma's Achievements

Sr. Member

Sr. Member (5/6)

26

Reputation

  1. Oh, I see! There is a difference indeed. The site is https://domain.com and the form gets loaded from https://www.domain.com. When I add the www for the site, the form is displayed. So I set htacces rewrite to always use https://domain.com without www. It looks, like it should work. Thank you very much for your help!
  2. OK; when this is commented out, the form is displayed. The console throws another error though: regarding two lines in formbuilder.js that are dealing with the size of the viewport.
  3. But to me that seems to be the case. I don't see any difference. Site: https://domain.com Form: https://domain.com/form-builder/form/
  4. It says: But It certainly IS the same origin, as the form was built within the same pw site.
  5. So far I haven't done anything. Where ore how do I adjust these?
  6. Hi everybody On site where I use a form built with formbuilder that worked just fine until very recently. I use the embed option A (easy embed) where you simply put a tag in the text, where you want to show the form. All of a sudden, the form isn't displayed any more. Instead ther is the blocked-by-response error or a similar message. How can this be fixed? Thank you for help.
  7. Just so as you know: The problem was triggered by Kaspersky anti virus software. It seems to interfere with Firefox. Weird but still a problem for all of us, since the combination Firefox/Kaspersky might be rather common.
  8. Sorry for asking this question here, but I cannot ask it in the VIP section because I use an version of FormBuilder that is expired. I have a fairly simple form on a website done with FormBuilder (PW 3.0.148, FormBuilder 0.2.4) that seems to work quite well. I've tested it with Firefox (88.0.1), Chrome, Opera, Edge and it works in all browsers as expected. The form is embedded in the page by pasting the name of the form in the body field. Now my customer tells me, that her Firefox (88.0.1) is blocking the page where the form is embedded: "Firefox may not open this page" for safety reasons. I have no clue as to what seems to be the problem here, since the form is on the same server and has the same domain.
  9. I thought that maybe using the WireArray::Explode function to create an array first and then loop through this array could work. The code looks like this: $content .= '<main class="front">'; // begin list container $content .= '<ul class="topCircles" role="navigation">'; // begin list for nav $items = $page->children('sort=front_position'); // page array $links = $items->explode(function($item) { // turn into a php array return array( 'pos' => $item->front_position, 'url' => $item->url, 'title' => $item->title ); }); $link = reset($links); for ($index = 1; $index <= 16; ++$index) { $content .= '<li class="circle">'; if ($link['pos'] == $index) { $content .= '<a href="' . $link['url'] . '">' . $link['title'] . '</a>'; $link = next($link); } $content .= '</li>'; } $content .= '</ul> </main>'; // end nav and list container This produces a list, but only with one link (the first one with "Text") and 15 empty li elements. $links does contain all the elements though, as shows print_r($links): Array ( [0] => Array ( [pos] => 1 [url] => /rederei/text/ [title] => Text ) [1] => Array ( [pos] => 3 [url] => /rederei/logos/ [title] => Logos ) [2] => Array ( [pos] => 4 [url] => /rederei/plakate/ [title] => Plakate ) [3] => Array ( [pos] => 5 [url] => /rederei/events/ [title] => Events ) [4] => Array ( [pos] => 6 [url] => /rederei/krimitage/ [title] => Krimitage ) [5] => Array ( [pos] => 7 [url] => /rederei/fotografie/ [title] => Fotografie ) [6] => Array ( [pos] => 9 [url] => /rederei/sonstiges/ [title] => Sonstiges ) [7] => Array ( [pos] => 14 [url] => /rederei/ideen/ [title] => Ideen ) [8] => Array ( [pos] => 15 [url] => /rederei/ueber/ [title] => Über ) [9] => Array ( [pos] => 16 [url] => /rederei/mit/ [title] => Mit ) ) Still don't know what's wrong with the loop.
  10. That doesn't do the trick either. Since there are less than 16 pages in $items this produces only – in this case – 10 li elements. And they are without links.
  11. Oops. So how can I achieve this List ?
  12. Hello I'd like to build an unordered list for a front page that looks like this: <ul class="topCircles" role="navigation"> <li class="circle"><a href="#texte">texte</a></li> <li class="circle"></li> <li class="circle"><a href="logos.html">logos</a></li> <li class="circle"><a href="plakate.html">plakate</a></li> <li class="circle"><a href="events.html#">events</a></li> <li class="circle"><a href="krimitage.html">krimitage</a></li> <li class="circle"><a href="fotografie.html">fotografie</a></li> <li class="circle"></li> <li class="circle"><a href="sonstiges.html">sonstiges</a></li> <li class="circle"></li> <li class="circle"></li> <li class="circle"></li> <li class="circle"></li> <li class="circle"><a href="ideen.html">ideen</a></li> <li class="circle"><a href="ueber.html">über</a></li> <li class="circle"><a href="mit.html">mit</a></li> </ul> It's a 4×4 set of circles, some of them with links in it, some without. Redactors should be able to choose, at what position a certain page should be linked to. So I put an integer field (front_position) into the template for these pages, where redactors indicate the desired position for the pages. I tried to achieve all of this with this code: $content .= '<main class="front">'; // Container for circles $content .= '<ul class="topCircles" role="navigation">'; // nav list // Output of 16 li elements with links at the chosen postions $items = $page->children; // Array of pages $item = reset($items); // set the first element of the array // loop for 16 elements; put a link in it where front_position == $index for ($index = 1; $index <= 16; ++$index) { $content .= '<li class="circle">'; if ($item->front_position == $index) { $content .= '<a href="' . $item->url . '">' . $item->title . '</a>'; $item = next($items); } $content .= '</li>'; } $content .= '</ul> </main>'; // Ende Liste und Container This doesn't work though. I only get 16 empty li elements. Thanks for help.
  13. Hi everyone I have a form built with the formbuilder module that uses a datetime field with a date picker. The frontend is in German but it is not a multi language site, so the backend is in English. Is there a way to have the date picker showing the German version in the frontend and the weeks beginning with a monday not a sunday? pw: 3.0.148 FormBuilder: 0.2.4 Locale is set to setlocale(LC_ALL, 'de_CH.UTF-8') in the config.php
  14. Ah, I just found the solution: the template of the older version has no namespace. After defining a namespace, the form works fine.
×
×
  • Create New...