Jump to content

All Activity

This stream auto-updates     

  1. Past hour
  2. Yes, I can imagine it would be complex. I think ExpressionEngine did it by means of an inline group-by. For instance: <li class="whatever" groupby="datacolumn"> And then there was a sort-by also: <li class="whatever" groupby="datacolumn" sortby="whatever">
  3. Today
  4. I've realised the issue is that when the user page is created, if I filled out the form as dave@gmail.com, the page is create as dave-gmail.com. And so I need to log in as dave-gmail.com, not dave@gmail.com. So I'm guessing I need to set the user page title as the person's name when I'm creating it? Let me know what you think @Jan Romero ๐Ÿ˜
  5. https://processwire.com/docs/start/install/upgrade/
  6. I consider it was a huge stupidity of all governments when they closed everything because the population must have immunity for that virus. I'm also afraid but I understand that I can't avoid it.
  7. Using the module on a multi-language site. When saving a page, I get the following error: "Call to a member function setLanguageValue() on string", File: .../modules/SearchEngine/lib/Indexer.php:99 98: if ($index_field_exists) { 99: $page->get($index_field)->setLanguageValue($language, $index[$language->id]); 101: } I suppose we need a $page->of(false) here before calling setLanguageValue() ?
  8. Thanks for your replies guys! Here is the output when outputting all the debugInfo inside the JSON. What seems interesting to me is that every variation seems to refer to itself as the original? That could be something maybe? The weird thing is, I use this exact same technique on a lot of sites and never had this issue. So I would guess it's some configuration setting somewhere that might be off. { "image": { "name": "cirkels_oo.jpg", "description": [], "focus": "50% 50%", "original": { "src": "/site/assets/files/2823/cirkels_oo.jpg", "width": 300, "height": 240, "orientation": "landscape" }, "debug": { "L": { "thumb": "<img src='/site/assets/files/2823/cirkels_oo.jpg' style='max-width:120px; max-height:120px;width:100px; height:auto;' alt='' />", "files": { "original": "{SELF}", "basename": "cirkels_oo.jpg", "url": "/site/assets/files/2823/cirkels_oo.jpg", "filename": "/Users/eelke/Documents/Werk/Server/janvaneyck/site/assets/files/2823/cirkels_oo.jpg", "created": "2020-03-12 17:08:20", "modified": "2020-03-12 17:08:20", "filemtime": "2020-04-29 12:34:22", "suffix": "", "extension": "jpg", "filesize": 55446 }, "variations": [ "cirkels_oo.400x0.jpg", "cirkels_oo.1500x1500.jpg", "cirkels_oo.320x320.jpg", "cirkels_oo.750x750.jpg" ], "imageinfo": { "imageType": 2, "mime": "image/jpeg", "width": 300, "height": 240, "focus": null, "description": "", "tags": "", "orientation": 0, "rotate": 0, "flip": 0, "channels": 3, "bits": 8, "appmarker": { "APP0": "JFIF", "APP13": "Photoshop 3.0", "APP2": "ICC_PROFILE", "APP14": "Adobe" }, "iptcRaw": null }, "webp_copy": { "hasWebp": false, "webpUrl": null, "webpQuality": 90, "filesize": 0, "savings": 0, "savings_percent": 0 }, "engines": { "neededEngineSupport": "JPG", "installedEngines": { "ImageSizerEngineIMagick": "priority 0", "ImageSizerEngineAnimatedGif": "priority 0", "ImageSizerEngineGD": "priority 0" }, "selectedEngine": "ImageSizerEngineIMagick", "engineWebpSupport": false }, "options_hierarchy": { "imageSizerOptions": { "upscaling": true, "cropping": true, "autoRotation": true, "interlace": false, "sharpening": "medium", "quality": 90, "hidpiQuality": 60, "defaultGamma": -1, "webpAdd": true }, "individualOptions": { "sharpening": "medium", "cropping": false, "quality": 95, "forceNew": false }, "finalOptions": { "hidpiQuality": 60, "forceNew": false, "quality": 95, "webpQuality": 90, "webpAdd": true, "webpOnly": false, "cropping": false, "upscaling": true, "interlace": false, "autoRotation": true, "sharpening": "medium", "defaultGamma": -1, "cropExtra": null, "scale": 1, "useUSM": false } } }, "M": { "thumb": "<img src='/site/assets/files/2823/cirkels_oo.jpg' style='max-width:120px; max-height:120px;width:100px; height:auto;' alt='' />", "files": { "original": "{SELF}", "basename": "cirkels_oo.jpg", "url": "/site/assets/files/2823/cirkels_oo.jpg", "filename": "/Users/eelke/Documents/Werk/Server/janvaneyck/site/assets/files/2823/cirkels_oo.jpg", "created": "2020-03-12 17:08:20", "modified": "2020-03-12 17:08:20", "filemtime": "2020-04-29 12:34:22", "suffix": "", "extension": "jpg", "filesize": 55446 }, "variations": [ "cirkels_oo.400x0.jpg", "cirkels_oo.1500x1500.jpg", "cirkels_oo.320x320.jpg", "cirkels_oo.750x750.jpg" ], "imageinfo": { "imageType": 2, "mime": "image/jpeg", "width": 300, "height": 240, "focus": null, "description": "", "tags": "", "orientation": 0, "rotate": 0, "flip": 0, "channels": 3, "bits": 8, "appmarker": { "APP0": "JFIF", "APP13": "Photoshop 3.0", "APP2": "ICC_PROFILE", "APP14": "Adobe" }, "iptcRaw": null }, "webp_copy": { "hasWebp": false, "webpUrl": null, "webpQuality": 90, "filesize": 0, "savings": 0, "savings_percent": 0 }, "engines": { "neededEngineSupport": "JPG", "installedEngines": { "ImageSizerEngineIMagick": "priority 0", "ImageSizerEngineAnimatedGif": "priority 0", "ImageSizerEngineGD": "priority 0" }, "selectedEngine": "ImageSizerEngineIMagick", "engineWebpSupport": false }, "options_hierarchy": { "imageSizerOptions": { "upscaling": true, "cropping": true, "autoRotation": true, "interlace": false, "sharpening": "medium", "quality": 90, "hidpiQuality": 60, "defaultGamma": -1, "webpAdd": true }, "individualOptions": { "sharpening": "medium", "cropping": false, "quality": 95, "forceNew": false }, "finalOptions": { "hidpiQuality": 60, "forceNew": false, "quality": 95, "webpQuality": 90, "webpAdd": true, "webpOnly": false, "cropping": false, "upscaling": true, "interlace": false, "autoRotation": true, "sharpening": "medium", "defaultGamma": -1, "cropExtra": null, "scale": 1, "useUSM": false } } }, "S": { "thumb": "<img src='/site/assets/files/2823/cirkels_oo.jpg' style='max-width:120px; max-height:120px;width:100px; height:auto;' alt='' />", "files": { "original": "{SELF}", "basename": "cirkels_oo.jpg", "url": "/site/assets/files/2823/cirkels_oo.jpg", "filename": "/Users/eelke/Documents/Werk/Server/janvaneyck/site/assets/files/2823/cirkels_oo.jpg", "created": "2020-03-12 17:08:20", "modified": "2020-03-12 17:08:20", "filemtime": "2020-04-29 12:34:22", "suffix": "", "extension": "jpg", "filesize": 55446 }, "variations": [ "cirkels_oo.400x0.jpg", "cirkels_oo.1500x1500.jpg", "cirkels_oo.320x320.jpg", "cirkels_oo.750x750.jpg" ], "imageinfo": { "imageType": 2, "mime": "image/jpeg", "width": 300, "height": 240, "focus": null, "description": "", "tags": "", "orientation": 0, "rotate": 0, "flip": 0, "channels": 3, "bits": 8, "appmarker": { "APP0": "JFIF", "APP13": "Photoshop 3.0", "APP2": "ICC_PROFILE", "APP14": "Adobe" }, "iptcRaw": null }, "webp_copy": { "hasWebp": false, "webpUrl": null, "webpQuality": 90, "filesize": 0, "savings": 0, "savings_percent": 0 }, "engines": { "neededEngineSupport": "JPG", "installedEngines": { "ImageSizerEngineIMagick": "priority 0", "ImageSizerEngineAnimatedGif": "priority 0", "ImageSizerEngineGD": "priority 0" }, "selectedEngine": "ImageSizerEngineIMagick", "engineWebpSupport": false }, "options_hierarchy": { "imageSizerOptions": { "upscaling": true, "cropping": true, "autoRotation": true, "interlace": false, "sharpening": "medium", "quality": 90, "hidpiQuality": 60, "defaultGamma": -1, "webpAdd": true }, "individualOptions": { "sharpening": "medium", "cropping": false, "quality": 95, "forceNew": false }, "finalOptions": { "hidpiQuality": 60, "forceNew": false, "quality": 95, "webpQuality": 90, "webpAdd": true, "webpOnly": false, "cropping": false, "upscaling": true, "interlace": false, "autoRotation": true, "sharpening": "medium", "defaultGamma": -1, "cropExtra": null, "scale": 1, "useUSM": false } } } }, "L": "/site/assets/files/2823/cirkels_oo.1500x1500.jpg", "M": "/site/assets/files/2823/cirkels_oo.750x750.jpg", "S": "/site/assets/files/2823/cirkels_oo.320x320.jpg" } }
  9. Some client dont let to keep the credits, some do but however, you can see the source code - Meta author - Jeevanism@processwire http://bhimonlineclassroom.in/ http://onnippu.com/ http://www.kasitabusiness.com/ http://pkrosifoundation.org/
  10. can I follow the OP steps in 2020 ? or any thing altered now ?
  11. $news = $pages->find("template=news-article,sort=-publish_date, publish_date<$today,id!={$page->id}"); PS: if publish_date is a datetime field, then ProcessWire already knows 'today' (string) ๐Ÿ™‚.
  12. What's the best way to exclude the current page from results without resorting to filtering the results in a FOR LOOP. $news = $pages->find("template=news-article,sort=-publish_date, publish_date<$today"); In this example If I want to exclude the current page how would I do that? Is there a sibling reference?
  13. Hello, I tried to uninstall this module so I could test another, but I'm getting this error after uninstalling it. Based on what this error seems to be indicating, I made sure that I uninstalled TextformatterPrivacyWire first, before uninstalling PrivacyWire. But that didn't work either. Is there something else that I should be doing? I thought it might be ProCache, but I turned that off too. Please let me know. Thank you! Error: Exception: Module TextformatterPrivacyWire requires: PrivacyWire>=0.0.5 (in /usr/home/jc/public_html/test.com/wire/core/Modules.php line 1857 #0 /usr/home/jc/public_html/test.com/wire/core/Wire.php(383): ProcessWire\Modules->___install('TextformatterPr...') #1 /usr/home/jc/public_html/test.com/wire/core/WireHooks.php(823): ProcessWire\Wire->_callMethod('___install', Array) #2 /usr/home/jc/public_html/test.com/wire/core/Wire.php(450): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Modules), 'install', Array) #3 /usr/home/jc/public_html/test.com/wire/core/Modules.php(1303): ProcessWire\Wire->__call('install', Array) #4 /usr/home/jc/public_html/test.com/wire/core/Modules.php(1194): ProcessWire\Modules->getModule('TextformatterPr...') #5 /usr/home/jc/public_html/test.com/wire/modules/Fieldtype/FieldtypeText.module(97): ProcessWire\Modules->get('TextformatterPr...') This error message was shown because: you are logged in as a Superuser. Error has been logged.
  14. Yesterday
  15. What exactly is the resulting settings or options here with the size call? Have a look at it with: https://processwire.com/api/ref/pageimage/get-debug-info/ // instead of // $img = $image->size($size["width"], $size["height"], $size["settings"]); // call $debuginfo = $pageimage->getDebugInfo($size["settings"], 'string'); // 'string' | 'array' | 'object' // and inspect the $debuginfo with Tracy or a var_dump()
  16. Hi @Greg Lumley, Implementing a "user admin" on the front-end isn't difficult because of PW's API -- In theory, that is. If you aren't familiar with PHP, or aren't familiar with the API, then it obviously will be a little more difficult. You can ask any questions here in the forum and a plethora of highly-skilled programmers will be glad to help. That's another big selling point with PW vs any other. The community support is second to none. The following is an example break-down of one of my sites. I have one site where specific users have the only permissions to access specific pages. All other users could only view pages. Think of it like the *nix RGE permission structure, where Root is super user, Group is any registered user, and Everyone else is a guest just visiting. PW initially gives you the Root and Everyone roles, so you will need to add the Group role. You can name it what you want. And since I don't let *any* user access the PW admin, I don't need to specify any permissions, such as page-edit, etc. I use Processwire's built-in page management to further limit a user to only their pages. Specifically, all pages have a created_users_id, and other information that is saved each time a page is created or updated. So when a user wants to create a new entry (page) their $user->id is assigned to the created_users_id property. Now I have a one-to-many relationship between a user and all of their pages. I also have different sections where a user can create a page. For example, when a user logs into my site acme.com, they can create a page under "high-explosives", and another page under "jet-powered devices". They may not wish to create a page under any other section. Each section has it's own template, so I can easily use selectors to retrieve the user pages by section, or even retrieve all pages. The front-end "user admin" interface is simply a two column layout with a menu on the left and the content on the right. I use the Group role to determine the menu options. I obviously don't want one user viewing details of another user, except for me as super user (Root). This also restricts the admin page(s) from view by the Everyone (Guest) role. I also have a drill-down capability from this initial user admin page to get more specific details. Each user can manage their own personal data page as well. That is the basic overview. The next thing are the modules. If you do not have your own login system then I would recommend LoginRegisterPro as it covers all the bases (register, login, forgot password, etc.) that you will need for your user access requirements. I am currently looking into implementing @bernhard's RockFinder3 module to handle queries because I have many users and they each have many pages and I want to be as efficient as possible. You must have TracyDebugger. That is a requirement (should be in core ๐Ÿ˜Ž ). It will save you many hundreds of hours of scratchin' your head. You may elect to use other modules, such as caching, etc. These are just the minimum I would recommend for a project like yours. I hope this helps.
  17. @horst, if you have a chance, please look at the above? Sorry for pinging you like this.... ๐Ÿ™‚
  18. Hi Rick, I'd like it to be a front-end as in "user admin", so essentially a custom front end admin. If that makes sense. ๐Ÿ˜
  19. Isn't it required in the new word of EU web bureaucracy to list every single cookie on demand (by category) and explain what is does, where it's from and can set it individually? So, for example, in the same example category "my user settings" I can agree to remember a "my selected language" cookie but not another cookie with "my last page visited"? As Borlabs cookie does it, or Klaro (kind of)? Am I wrong with my understanding of the current GDPR law situation? Or is this implemented already and I just did not find it? (Right now I am evaluation this module against using KLARO directy)
  20. @Robin S Dudeeeeee, you rock! It works like a charm. Didn't know there's such a thing!!!!! Thanks!
  21. When I look at the templates in the site via ftp it does not match what PW sees: The session template is missing from the ftp [yes, it has been refreshed].
  22. I have followed your instructions. There are now some data entered. When the tabs have not been selected: - the current site shows: <div class="accordion"> <div class="accordion-section"> <a class="accordion-section-title community-club" href="#accordion-1">Badminton</a> <div id="accordion-1" class="accordion-section-content" style="display: none;"> </div> </div><!--end .accordion-section--> </div> - whereas the original site shows: <div class="accordion"> <div class="accordion-section"> <a class="accordion-section-title community-club active" href="#accordion-1">Badminton</a> <div id="accordion-1" class="accordion-section-content open" style="display: block;"> <div class="row"> <div class="col-md-12"> <div class="session"> <h3>Huddersfield Eagles Junior Badminton Club</h3> <h4>Royds Hall Sports Centre</h4> <p>Sunday - 9:00am - 12:00pm</p> <p> </p> <p><a href="https://web.archive.org/web/20180815082939/mailto:enquiries@vivesport.co.uk?subject=Huddersfield Eagles Junior Badminton Club booking please" class="btn btn-primary" target="_blank">Book this session</a></p> Clicking the current version alters nothing. When the original is clicked and opened the code starts: <div class="accordion"> <div class="accordion-section"> <a class="accordion-section-title community-club active" href="#accordion-1">Badminton</a> <div id="accordion-1" class="accordion-section-content open" style="display: block;"> So, being a great detective [!!], the accordion isn't opening!
  23. After setting up a new user template using this guide: https://processwire.com/blog/posts/processwire-core-updates-2.5.14/#multiple-templates-or-parents-for-users, the pages are created fine but I can't log in as the newly created user. I did notice that my new template doesn't have a 'name' field like the users in admin/access/users. Is this the field that is checked when logging in? Here is my code that I am using to create the page when someone registers: $np = new Page(); // create new page object $np->template = $templates->get("user-hunt"); $np->parent = $pages->get("/members/"); // Match up the sanitized inputs we just got with the template fields $np->of(false); $np->name = $hunt_name; $np->title = $hunt_name; $np->member_hunt_name = $hunt_name; $np->member_hunt_contact_name = $contactname; $np->member_hunt_position = $position; $np->member_hunt_address = $address; $np->member_hunt_postcode = $postcode; $np->member_hunt_telephone = $telephone; $np->member_hunt_country = $country; $np->email = $email_address; $np->pass = $password; // Save the page $np->save(); $np->of(true); Also, when it creates the page, it's putting the title as the created date/time for some reason. ๐Ÿคฏ
  1. Load more activity
ร—
ร—
  • Create New...