Jump to content

fbg13

Members
  • Posts

    344
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by fbg13

  1. fbg13

    Move site

    @henri This is unrelated to processwire. There are many possible reasons why it doesn't work. We can't know what it is by the little info you provided nor is this the place for this questions. Ask your hosting provider if they can help you move the site, or search for guides on how to move a site to a different host.
  2. fbg13

    Move site

    Move files to new server, import database, point domain to the new server, wait for the domain to propagate.
  3. Checkout _main.php Uikit 3 Regular site profile uses markup regions
  4. @Lenz https://github.com/processwire/processwire/blob/643c9d3a87ddd8d579c4879c2382a9170466344b/wire/modules/Markup/MarkupPagerNav/MarkupPagerNav.module#L675 $_pages = $pages->find('id>1, limit=10'); foreach ($_pages as $p) { echo "{$p->title}<br>"; } echo '<hr>$config->pagerHeadTags: ', \htmlspecialchars($config->pagerHeadTags), '<br>'; echo $_pages->renderPager(); echo '$config->pagerHeadTags: ', \htmlspecialchars($config->pagerHeadTags), '<br>';
  5. Checkout https://github.com/cytopia/devilbox
  6. According to the image above. // loop over repeater items // repeater is the name of my repeater field foreach ($page->repeater as $r) { // person is the name of my page ref field for selecting persons // can hold a single page (can be set in field's settings, details tab) echo $r->person->title, " "; // skills is the name of my page ref field for selecting skills // can hold multiple pages so we have to loop (can be set in field's settings, details tab) foreach ($r->skills as $s) { echo $s->title, " "; } // or use eq echo $r->skills->eq(0)->title, " "; echo $r->skills->eq(1)->title, " "; } // outputs // Jim Programmer Designer Programmer Designer
  7. One way to do something like that is with the repeater field. You have a repeater field and the repeater has two page ref fields (people, roles). And you repeat the fields for every person. The way i described in my first comment the roles field would go to the people template, so on the video page you would only have the people field. You add a person and then click on it, a modal opens to edit the persons page where you can set the role.
  8. @neosin After you select asmselect as your input field type, check the "Settings specific to “asmSelect”" below. There you have "Link selected pages to page editor?" that lets you open the selected page in a modal and edit any fields that page has. You can also create new pages from the page ref field (check the "Allow new pages to be created from field?" option).
  9. phptherightway.com hackingwithphp.com developer.mozilla.org/en-US/docs/Learn/JavaScript
  10. $first = $selectWatch->eq(0); $second = $selectWatch->eq(1); $third = $selectWatch->eq(2); https://processwire.com/api/ref/wire-array/eq/
  11. Why are there two modules? Can the main module be used without the "Packages Manager" module? Why the "sort by name" button and not use the table header? Delete all button goes all the way to the right because no "position: relative" on parent. You could also float it to right. Sorry if these were already discussed.
  12. I installed the module, converted the field and nothing changes for me.
  13. @Juergen I get null without parentheses. What PHP version are you using? I'm using 7.1.13
  14. @Juergen works for me. Your $image is null, so check that you're on the right page/have the right field name.
  15. @mikhail The Fieldset field can also be used to achieve that.
  16. @BitPoet The module doesn't remove the mention page on uninstall, it's not found because it's hidden. If you create it in the getModuleInfo method it will be removed by PW on uninstall. public static function getModuleInfo() { return array( ... "page" => [ "name" => "mention", "title" => "Mention", "status" => "hidden" ] ); }
  17. @CarloC try { echo $modules->get('LoginRegister')->execute(); } catch (WireException $e) { echo "Too many failed login attempts.<br>" . $e->getMessage(); }
  18. @CarloC try { $session->login($username, $pass); } catch (WireException $e) { $loginError = "Too many failed login attempts.<br>" . $e->getMessage(); }
  19. How about making it only visible when a get variable is set and has the same value as a variable set by the user? $pass = '12345'; if ($_GET['pass'] !== $pass) { exit; }
  20. I can confirm this, tested with PHP 7.1/7.2, PW 3.0.87/86 on Opera and FireFox, both uikit and default themes.
  21. .foo is another tld they they force https on, here is a blog post by google https://security.googleblog.com/2017/09/broadening-hsts-to-secure-more-of-web.html
  22. https://ma.ttias.be/chrome-force-dev-domains-https-via-preloaded-hsts/
  23. The 2018 Guide to Building Secure PHP Software
  24. What are you doing here then? Go use django, we wont stop you.
×
×
  • Create New...