Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by mcwhitey

  1. Thanks Abdus, Can't say I fully understand but it does work now! Awesome! Good idea to submit a feature request Cheers!
  2. I'm having the same problem. Yet I can not find a solution. How do I change my integer into a real object? This is my code. According to the docs this should work. Right? $u->projectmanagers->add(1044); // THIS WORKS! $u->projectmanagers->remove(1044); // THIS DOESNT WORK! $u->save(); Only thing I can think of doing is first store the array, then remove all, then remove the one item from the array and then adding the array again. But I'd rather not
  3. Hi, How can I display, on every page of my site, what roles can view that pages template, based on what is checked in settings>templates>template-name>ACCESS TAB? I've only gotten as far as displaying the name of the current template: echo $page->template->get('name'); But I'm stuck here. Tried things like $page->template->get('permissions'); but I guess it's a bit more complicated than that. Hope someone van point me in the right direction. Cheers.
  4. Ah. This feature moved in PW3 from the system tot the advanced tab. Good move
  5. Hi, I'm rather new to PW. (And loving it) I have installed PW3 with the FrontendUser module. I tried the standard simple script and that worked. But now I want to add some custom fields that are in my user templates. I have created a page-field called userparent where you can choose another user. I don't know if this is relevant. The answer is probably on this page: https://bitbucket.org/pwFoo/frontenduser/wiki/Code snippets / Examples "Add custom form field with hook after field processed Add an additional form field to the registration form with field processing (add value to user object) inside your template file." But I'm having difficulty implementing the script due to my lack of knowledge. I keep getting internal server errors. How and where do I define the custom fields I want to make available in the form? I'm not extremely good at PHP but know more than the basic stuff. I hope someone can help me out.
  6. Hi, I'm using Processwire for a while now and I'm starting to love it more and more. I recently installed 3.x. Today I installed the native comments module but it seems that the table 'field_comment' was not created in the database. I retried to install it but without any luck. I get error messages and when I check phpMyAdmin, I can confirm that it's not there. Here is the complete error message when I try to use the form on the front end of a page: Error: Exception: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'domain_db.field_comment' doesn't exist (in /home/domain/domains/domain.nl/public_html/wire/modules/Fieldtype/FieldtypeComments/FieldtypeComments.module line 358) #0 /home/domain/domains/domain.nl/public_html/wire/modules/Fieldtype/FieldtypeComments/FieldtypeComments.module(358): PDOStatement->execute() #1 /home/domain/domains/domain.nl/public_html/wire/modules/Fieldtype/FieldtypeComments/FieldtypeComments.module(338): ProcessWire\FieldtypeComments->commentMaintenance(Object(ProcessWire\Field)) #2 /home/domain/domains/domain.nl/public_html/wire/modules/Fieldtype/FieldtypeComments/FieldtypeComments.module(183): ProcessWire\FieldtypeComments->checkNewComment(Object(ProcessWire\Page), Object(ProcessWire\Field), Object(ProcessWire\Comment)) #3 [internal function]: ProcessWire\FieldtypeComments->___sleepValue(Object(ProcessWire\Page), Object(ProcessWire\Field), Object(ProcessWire\Com This error message was shown because: you are logged in as a Superuser. Error has been logged. And this is what I get when I go to the Fieldtype that I created for comment: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'domain_db.field_comment' doesn't exist (getNumRows) I didn't start with a normal installation. Instead I used clsource's Ghost Clone. But I doubt that has anything to do with the errors. Hope someone will be able to shed some light onto this. Thanks in advance
  • Create New...