Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by itsberni

  1. ok - read it. i think that's exactly what i need. thanks for sharing! the question now is only if this is compatible with the login/register ( Pro - Version ). in the module settings of login/register the fields refer exclusively to the template "user". i guess i could get problems here... What do you think?
  2. no, i did not. i didn't find a way how user-profiles could be integrated into the "normal" page tree. i will dig in this first. Anyway, thanks a lot to all of you!
  3. hi 3fingers, i think it's great that you are thinking about my usecase. maybe it's not the "right" way to solve this problem. i will describe it briefly: users can log in and create a profile. this profile should then be accessible via its own url on the site. ( entry/url-user-1/ to achieve this, i create (at the moment manually) a page name per user ( url-user-1 ), which i combine with the entry of the user. in the template of the url page i have the possibility - per page - to select the appropriate user ( $user->id ) via a page-reference field. since i may want to use this url as a segment in the further course of the portal, i want to store it automatically in the respective user entry during the assignment. This way I can achieve that every user gets his own page, which can then also appear in a sitemap. the much more elegant and less cumbersome way would probably be to enter the url in the user-entries themselves and automatically create a page with the template mentioned above, which is linked to the user->id. For this I simply did not yet deal enough with the hooks. i hope i could now contribute even more to the confusion 😉 Many greetings
  4. $page->entryPages->id did it, when adjusting the fieldtype-settings. Thanks for pointing to this....
  5. it´s a Page reference - field and this writes the needed id into the session. But i cannot compare it with $user->id. When i write $user->id == 1234 - this works wire('session')->message("Hello World 2 ! You saved {$page->entryPages}")
  6. Hello, what I'd like to do with a Hook is this. the hook should work if I change a certain field on a page with a certain template. Afterwards a value should be written in the template "user". Somehow I am stuck at the moment. If I enter the value $page->entryPages fix in the if statement ( eg. 1234 ), it works. Where do I have my error: $wire->addHookAfter('Page::changed', function(HookEvent $event) { $page = $event->object; $change = $event->arguments(0); if($page->template == 'entry' && $change == 'entryPages') { // execute some code when "entryPages" changes on "entry" pages // show info about the value "entryPages wire('session')->message("Hello World 2 ! You saved {$page->entryPages}"); // get all users $allUser = wire('pages')->find("template=user"); foreach($allUser as $user){ // where the user->id == $page->entryPages, write the value in user-template if( $user->id == $page->entryPages ) { // check out if success wire('session')->message("This is it {$user->id}"); $user->setAndSave('userEntryUrl', $page->name); } } } }); Thank you!!
  7. Hi! when sanitizing an url, it outputs "http://myDomain.com". Is there a possibility to use https instead? Many Thanks!
  8. Crazy - or an April Fool's joke! As of today... haven't tried the tips any further - but it will be hard to understand now, when the error is now gone.
  9. Hey guys, I've discovered some pretty strange behavior. A date I set from 4/6/20 - 4/19/20 appears in the calendar in May. can anyone help me with that? thanks a lot!
  10. I did. That's the way to go. I´m deactivating the folders in both sites....and viola. Now i'm able to setup the AdminThemeUiKit in both environments. Perfect - you made my day. Many thanks
  11. what kind of clicks do you recommend 😉 - when i click on the link ("click here to change the file is used " - which is obvious ) i will get an error 500
  12. @kongondo i have tried both versions - with "www" and without. But that isn't my problem any longer because this was only for testing. now i come along with a virtual host and that works fine! But the problem with the admin-theme is still a topic.
  13. Hi LostKobrakai, i´ve got also an issue with the "AdminThemeUikit" in case of a multisite-Setup (option #1). i'm using pw 3.0.123 and i couldn't install the admin Theme within the 2nd Site. When i refresh the "modules" within the 2nd Site, the system throws following notification: Module "AdminThemeUikit" has multiple files (bold file is the one in use). Click here to change which file is used if i click on the link, a error 500 occurs. It´s also not possible to install the adminTheme twice..... Any Ideas?!
  14. but in this context another issue occurs: if i want to use the AdminThemeUikit within my 2nd Site ( it was already installed in the main-site ) the following notification comes up. When i Click on the Link an error 500 occurs. I thought, in case of Option #1, there are no dependencies between the different "Site-folders". Each Site-Structure has it´s own module environment?!
  15. Hi Guys, i want to refresh this post because I couldn't get option #1 working. I want to set up a multidomain - project and i want to test it with a subdomain from my origin Project. my main site is working fine - this is the setup: - pwFolder - wire - site - site-otherdomain index.config.php .... a.s.o. the index.config.php: function ProcessWireHostSiteConfig() { return array( /* * Some Examples (you should remove/replace them if used). * Just note that the values must begin with 'site-'. * */ 'sub.mydomain.de' => 'site-otherdomain', 'www.sub.mydomain.de' => 'site-otherdomain', 'www.mydomain.com' => 'site-mydomain', 'dev.mydomain.com' => 'site-dev', /* * Default for all others (typically /site/) * */ '*' => 'site', ); } Domain-Hosting Setup: sub.mydomain.de points to "pwFolder" mydomain.de points also to "pwFolder" when i write into the Browser "www.sub.mydomain.de" nothing happens - no error, only "Site was not found". it seems the configuration in the index.config.php has no effect. Is there anything i forgot? Thanks a bunch! SOLVED: Subdomains do not work - it works with a complete different domain ( here: Virtual Host )
  16. Hi Rick, this was my misunderstanding. I had the opinion that i could set a specific value to a checkbox. my usecase is a form, where you can choose ( via checkbox ) different "products". Every product has, of course, it‘s own price. When Checkbox is Chosen and the form is sent the value of the checkbox should be submitted - that was my thought - misbelief 😉 thank you though....
  17. Thanks for sharing your thoughts. i'll try to solve it with a hidden field for each checkbox.
  18. hi Guys, are there any issues known with 3.0.113. The module doesn't send any notification-mail. Any Problems known with this version of PW? Many Thanks!
  19. something for further explanation: I want to calculate a price using checkboxes: e.g. checked state <input name="myCheckbox" type="checkbox" value="15" /> unchecked <input name="myCheckbox" type="checkbox" value="0" /> the change of the value happens via js. now, in case of submission, the value in the Database is that one ( Detail - Tab of the FB-Field ) These entrys appear as well in a page ( i create a page with this data ) as in the admin-Email. it seems to be, that FB ignores my specific value in case of submission. i also tried to let this fields empty to force the use of my values but the first one is mandatory. that works neither. Some ideas.....?
  20. Sry for confusion.... corrected the Post.
  21. Hi Guys, i use the embed-method "D" in Formbuilder. In the form i use some checkboxes for calculating. To achieve this i set the value of the checkbox like this: <input name="myCheckbox" type="checkbox" value="<?= $someValue ?>" /> When i send the Form, the value changes into the entry, i made in formbuilder in the Detail-Section of the checkbox-field. does anybody know, how to accomplish, that the Form sends my specific value? many thanks!
  22. Hi all, tried several things.....changed the php-version on the Server (down to 7.0). Updating pw to the latest master (123). Uninstalling and installing the module again. the result is the same. could there be any problem with the server (mittwald) to handle pdf-files in terms of security? any thoughts or suggestions? SOLUTION: The PHP-Version has to be 7.0.32 CGI - now it works!!
  • Create New...