Jump to content

maxf5

Members
  • Posts

    144
  • Joined

  • Last visited

  • Days Won

    1

maxf5 last won the day on November 4 2017

maxf5 had the most liked content!

About maxf5

  • Birthday January 30

Profile Information

  • Location
    Deutschland
  • Interests
    schalke04, whisky, rock 'n roll

Recent Profile Visitors

3,399 profile views

maxf5's Achievements

Sr. Member

Sr. Member (5/6)

136

Reputation

  1. hey community! i am wondering if processwire is still ready for php 8.4? getting so much deprecated warnings with 8.4.1: Deprecated: ProcessWire\Database::getQueryLog(): Implicitly marking parameter $wire as nullable is deprecated, the explicit nullable type must be used instead in wire/core/Database.php on line 142 Deprecated: ProcessWire\MarkupFieldtype::__construct(): Implicitly marking parameter $page as nullable is deprecated, the explicit nullable type must be used instead in wire/core/MarkupFieldtype.php on line 82 Deprecated: ProcessWire\MarkupFieldtype::__construct(): Implicitly marking parameter $field as nullable is deprecated, the explicit nullable type must be used instead in wire/core/MarkupFieldtype.php on line 82 Deprecated: ProcessWire\Tfa::getModule(): Implicitly marking parameter $user as nullable is deprecated, the explicit nullable type must be used instead in wire/core/Tfa.php on line 491 Deprecated: ProcessWire\Tfa::autoEnableSupported(): Implicitly marking parameter $user as nullable is deprecated, the explicit nullable type must be used instead in wire/core/Tfa.php on line 922 Deprecated: ProcessWire\RememberTfa::serverValue(): Implicitly marking parameter $user as nullable is deprecated, the explicit nullable type must be used instead in wire/core/Tfa.php on line 1904 Deprecated: ProcessWire\RememberTfa::getFingerprintString(): Implicitly marking parameter $types as nullable is deprecated, the explicit nullable type must be used instead in wire/core/Tfa.php on line 1961 Deprecated: ProcessWire\ModulesConfigs::getModuleConfigInputfields(): Implicitly marking parameter $form as nullable is deprecated, the explicit nullable type must be used instead in wire/core/ModulesConfigs.php on line 561 Deprecated: ProcessWire\ModulesLoader::hasPermission(): Implicitly marking parameter $user as nullable is deprecated, the explicit nullable type must be used instead in wire/core/ModulesLoader.php on line 750 Deprecated: ProcessWire\ModulesLoader::hasPermission(): Implicitly marking parameter $page as nullable is deprecated, the explicit nullable type must be used instead in wire/core/ModulesLoader.php on line 750 Deprecated: ProcessWire\Language::__construct(): Implicitly marking parameter $tpl as nullable is deprecated, the explicit nullable type must be used instead in wire/modules/LanguageSupport/Language.php on line 31 Deprecated: ProcessWire\Languages::setDefault(): Implicitly marking parameter $language as nullable is deprecated, the explicit nullable type must be used instead in wire/modules/LanguageSupport/Languages.php on line 309 Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in wire/core/WireSessionHandler.php on line 51
  2. Since the update (30173) pages with active pagination are throwing a 404. Anybody also have this issue?
  3. I also wonder why you can edit the field types for "FieldtypeFile" module and not in "FieldtypeImage"
  4. I know ? i have a template (without file) called "field-hero" (for my hero images-field). In that template there is a textarea field and an options field (singlechoice, radio): .. and only the textfield is displayed:
  5. Hi, i am trying to add a select options - field to one of my images fields. Usually you create a new template "field-FIELDNAME" and add the custom fields for the images there. I have a textarea field which is visible, but the options field isn't there. Can you help? Ryan has select options in his example: https://processwire.com/blog/posts/pw-3.0.142/
  6. Isn't there this onboard method? https://processwire.com/api/ref/wire-array/slices/
  7. try: wire('pages')->find("template=basic-page, content_blocks.downloads.tags!='', check_access=0"); https://processwire.com/docs/selectors/#access_control
  8. You have to make the ajax call with the url .. not the template file. Make sure you have created a page with that template. $.post('ajax.inc', function(e) {}); $.post('/path-to-ajax-page', function(e) {}); Example Ajax Template from different db: $mydb = new Database('host', 'username', 'password', 'db'); $result = $mydb->query("SELECT * FROM example"); from pw db: $query = $database->prepare("SELECT id, name FROM pages LIMIT 10"); $result = $database->execute($query); Your js $.ajax({ type: "GET", url: "/path-to-ajax-template", success : function(data){ var markup = $(data).find('#result'); $('#result').html(markup); } });
  9. Hi Sir, thanks for the module - great addition! I always get the 404 errors from the script and those pages dont hit into the counter. Whats the deal with this "phcv1"?
  10. Thanks @Noel Boss ! Am I the only one with this mystical box shadow?
  11. @Noel Boss thank you for the improvements, looking good so far! Can you update the version info here, too? https://github.com/noelboss/AdminThemeBoss/blob/master/AdminThemeBoss.info.json When you have ProcessWireUpgrades installed it always alerts you that a new version is available ?
  12. Pass it to an associative array (not tested): <?php namespace ProcessWire; function processNewPerson(WireArray $data) { $u = new Page(); $u->template = "person"; $u->parent = $pages->get("/people/"); $u->of(false); $u->first_name = $data["first_name"]; $u->last_name = $data["last_name"]; $u->full_name = $data["first_name"] . " " . $data["last_name"]; $u->city = $data["city"]; $u->name = $sanitizer->pageName($u->full_name, true); $u->save(); } if($input->post["submit"]) { $data = WireArray::new([ "first_name" => $sanitizer->text($input->post['first_name']), "last_name" => $sanitizer->text($input->post['last_name']), "city" => $sanitizer->text($input->post['city']) ]); $people = $pages->find("template=person, first_name=$data['first_name'], last_name=$data['last_name']"); if($people->count === 0) processNewPerson($data); }
  13. Here is a little fix: In your templates/admin.php add a custom css file: $config->styles->add($config->urls->templates . "styles/admin.css"); require($config->paths->adminTemplates . 'controller.php'); in templates/styles/admin.css .PageList .PageListItem:hover .PageListActions { display: inline-block !important; }
  14. no problem, thanks for clearing up. I thought i would be the same as $page->created, $page->modified
  15. Dates are stored as timestamps and you have to search the whole day :) $start = strtotime(date('Y-m-d') . " 00:00:00"); $end = strtotime(date('Y-m-d') . " 23:59:59"); $result = $users->find("birth_date>=$start, birth_date<=$end");
×
×
  • Create New...