hansv

Members
  • Content Count

    74
  • Joined

  • Last visited

Community Reputation

14 Good

About hansv

  • Rank
    Full Member

Profile Information

  • Gender
    Male
  • Location
    Leuven, Belgium

Recent Profile Visitors

1,647 profile views
  1. hansv

    @adrian many thx A simple table check was enough. The cause of this is still a mistery, but I'm glad the site is working again. hansv
  2. I got this morning an error on all pages that uses the hanna-code module on site that is already a few years online. I use the latest pw dev Als guest you see this error on www.orgelpijpjes.be Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Error has been logged. As administrator Error: Exception: SQLSTATE[HY000]: General error: 1036 Table 'hanna_code' is read only (in /customers/9/7/b/orgelpijpjes.be/httpd.www/site/modules/TextformatterHannaCode/TextformatterHannaCode.module line 305) #0 /customers/9/7/b/orgelpijpjes.be/httpd.www/site/modules/TextformatterHannaCode/TextformatterHannaCode.module(305): PDOStatement->execute() #1 /customers/9/7/b/orgelpijpjes.be/httpd.www/site/modules/TextformatterHannaCode/TextformatterHannaCode.module(198): TextformatterHannaCode->getReplacement('inthepicture', Array, true) #2 /customers/9/7/b/orgelpijpjes.be/httpd.www/wire/modules/Fieldtype/FieldtypeText.module(94): TextformatterHannaCode->formatValue(Object(ProcessWire\Page), Object(ProcessWire\Field), '<p>[[inthepictu...') #3 /customers/9/7/b/orgelpijpjes.be/httpd.www/wire/modules/Fieldtype/FieldtypeTextarea.module(119): ProcessWire\FieldtypeText->___formatValue(Object(ProcessWire\Page), Object(ProcessWire\Field) This error message was shown because: you are logged in as a Superuser. Error has been logged Has anyone suggestions how to solve this? thx
  3. PW 3.0.52 with uikit site profile After installing the Core-module Language Support I get the following error Session: Module reported error during install (LanguageSupport): SQLSTATE[HY000]: General error: 1214 The used table type doesn't support FULLTEXT indexes Any idea how this error can be avoided?
  4. hansv

    On transferring my database online, I get the following error when I try to enter my templates, fields, formbuilder form. Error: Exception: SQLSTATE[42000]: Syntax error or access violation: 1104 The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay ( .... /wire/core/PageFinder.php line 410) Any suggestions how to fix? Many thx
  5. hansv

    I don't know is this topic is still alive? Just put this line in the header of _main.php, close your browser and restart or refresh (CTRL-F5) a few times and the favicon appears. <link rel="icon" href="<?=urls()->templates?>styles/images/favicon.ico">
  6. hansv

    @Robin S Thx for showing me the right direction, I used http://projects.jga.me/toc/
  7. hansv

    Maybe it's better to visualize In the body-field of a page there is content. 1 Lorem with H3-tag Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit sapien, pulvinar sit amet mi nec, consequat rhoncus nunc. Cras est urna, finibus ut elementum elementum, tincidunt id enim. 1.1 Lorem with H2-tag Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit sapien, pulvinar sit amet mi nec, consequat rhoncus nunc. Cras est urna, finibus ut elementum elementum, tincidunt id enim. 1.2 Lorem with H2-tag Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit sapien, pulvinar sit amet mi nec, consequat rhoncus nunc. Cras est urna, finibus ut elementum elementum, tincidunt id enim. 2 Lorem with H3-tag Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit sapien, pulvinar sit amet mi nec, consequat rhoncus nunc. Cras est urna, finibus ut elementum elementum, tincidunt id enim. 3 Lorem with H3-tag Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit sapien, pulvinar sit amet mi nec, consequat rhoncus nunc. Cras est urna, finibus ut elementum elementum, tincidunt id enim. In e.g. a sidebar (see below), the headers (h2, h3, may also h4) are generated, and when scrolling down the page-content (body-field), you scroll down to the headers in the sidebar. The tags are always, h2, h3 and h4 1 Lorem with H3-tag 1.1 Lorem with H3-tag 1.2 Lorem with H3-tag 2 Lorem with H3-tag 3 Lorem with H3-tag I try to find a way to generate the headers of the page-body-field and show them in a side-bar-panel. This is PW-related, the scrolling down part is for the front-end framework, e.g. Uikit. In the cheatsheet of PW I find way's to refer to page-fields (title, summary, body, ..) but I try to find a way to recognize specific html-content (headers, h2 -> h4) within the body-field.
  8. hansv

    Thx Kongondo & fbg13 for your replies. I think this is a pure PW-question, the integration of uikit is a side-issue. I can rephrase the question in different ways how can I make an index of page-content? how can I find all subtitles and paragraph titles in a page and show them together as a summary
  9. hansv

    Ryan has opened my eyes with his skyscrapers2-demo. Uikit is really a fantastic frontend-framework. My question is about scrolling uikit-side-nav and the pw-code to use for the content. Is it possible to realize a scrolling nav-side-bar as the uikit-layout-example: https://getuikit.com/docs/layouts_documentation.html ? The scrolling-bar should show the headers for example h3 en h2 of the body-part of the page When scrolling down the page, the headers in the sidebar, e.g. h3 h2, show where you are in the page. Can anyone show me the way to the code to trigger e.g. the h3 and h2 headers?
  10. @adrian Als I see it know, this answer is the logic itself and it works very well. PW and its community is fantastic, thx
  11. Thx adrian and pwfoo for this quick answer. This code is working very well $person = $users->find('instrument=' . $instr); But my foreach loop doesn't work. I only get the first instrument.
  12. I extended my users-template with a lot af fields? One of them is 'instrument' The code beyond is working fine (see screenshot 1). 'instrument' is a page-select-field in the user template (the pages are violin, cello, clarinet, ...). But this is not nice and efficient coding!! // Violin $person = $users->find('instrument=violin'); echo "violin"; foreach ($person as $p) { // $user fields are shown echo $p->first_name; } // cello $person = $users->find('instrument=cello'); echo "cello"; foreach ($person as $p) { // $user fields are shown echo $p->first_name; } // clarinet $person = $users->find('instrument=clarinet'); echo "clarinet"; foreach ($person as $p) { // $user fields are shown echo $p->first_name; } // and so on With a foreach the code could me more efficient, but the find-selector givns a problem with the variable $instr. // all instrument in a foreach foreach ($user->instrument as $instr){ $person = $users->find('instrument=$instr'); // does not work, neither do find('$instr') and find($instr) echo $instr->title; foreach ($person as $p) { // $user fields are shown echo $p->first_name; } } With $person = $users-find($instr); only the value of $instr is shown (e.g. violin) but not the values of $p (e.g. first name of person. (see screenshot 2) How can I use a variable as find-selector?
  13. @pwFoo Problem solved. No blames to the FrontEndUser-module, all shame is for me!!! In my _main.php there was also code to log in. It was ment for a button to login. Conclusion: there was interference between login-code in the _main.php file and the login-code in the template file. Sorry for wasting your time, the FrontEndUser-module is excellent.
  14. I re-installed the module, now only the 302 redirect loop. My template-code <?php // load module $fu = $modules->get('FrontendUser'); // Additional LoginPersist and ProcessForgotPassword module integration (built-in) $fu->login(array('username','password','forgot')); // process login / form submit $fu->process($pages->get('/ledenzone/')->url); // output form $body .= $fu->render(); .htaccess the original PW 3.0, now changes maded When I login as a non-existing user, I get the 'login failed' message When I login as admin or as existing user I get the redirection loop I'm just logging in, it' not about a registration of a new user
  15. I exported my profile into a new PW installation and now I get a fatal error: Fatal error: Call to a member function login() on null in D:\xampp\htdocs\pwf6_str08\site\templates\account-login.php on line 8 Code line 8: $fu->login(array('username','password','forgot'));