Leaderboard
Popular Content
Showing content with the highest reputation on 06/05/2018 in all areas
-
It seems that the confirm field in this module get it's id based on the name attribute instead of the id attribute . So if one changes the id attribute to a value other than the name, the confirm input id is not effected. I consider this a bug. In the module that I am developing I have multiple tabs with forms in multiple tabs. This causes id duplication when using the InputfieldPassword field on two different tabs. I can get around the problem by specifying the id for the field, but in the case of the InputfieldPassword field, it bases the Confirm id attribute on the name attribute instead of the id attribute. I am using ProcessWire 3.0.98 and have attached the modified module (see lines 209 and 241) InputfieldPassword.module3 points
-
I'd say it's... GOOD! Today Microsoft isn't the Microsoft it was decades ago and Microsoft does a lot of things right nowadays. They listen. They deliver. They do better than Apple. Microsoft has the money to keep Github up and running. I'd be much more concerned if it was Facebook, Oracle, IBM, SAP, Adobe, Amazon, Apple, Alibaba (and similar) or several others. Who would have been better... Canonical, RedHat, any other free software foundation or company? I don't think so. Update: just saw that Nat Friedman will be part of the new team. This is awesome.2 points
-
Hi @louisstephens! Are you putting all that js inside a foreach? If so the variable names are the same for each list element. Therefore they get overwritten and you always get the last value in your itemId. Either change the variables to have index as part of their name (itemId1, itemId2) or (preferably) store the id as a data attribute and write a universal js which will get the corresponding data-attr value for each button click dynamically. If I totally misunderstood you case, please forgive me and provide some more details.1 point
-
Just so people don't prematurely jump to disabling useful security features: Having cookies enabled to allow for session storage or csrf protection can be justified as "legitimate interest" (Art. 6 GDPR), which means you no longer need explicit consent. You'll probably still need to document that justification in the privacy policy, though.1 point
-
@adrian Sent you a PM, to answer your questions above.1 point
-
This court decision is based on an older law prior to GDPR/DSGVO as this whole case started back in 2011(?). I guess you shouldn't be too scared right now but should be aware of changes in the future regarding Facebook (and any other social media services) usage as a company. This court decision could become a game-changer for further and upcoming privacy laws. At least in Germany we should watch closely to what happens in the very next future with the fan page of the Wirtschaftsakademie.1 point
-
What dose it mean ? I have Roderigo kitchen page Should I no ? Maryla and Nudyia posts menu speciales to Fecebook thursday every week for friday cheese & bean bucket contest and saturday Roderigo refried surprise all-u can eat day. Would be safer to learn Tweeter or Lincoln instead ? Or maybe Jeffry must finish online menu in PW.1 point
-
I'm so glad I wanted to share that with you today. Since November 2017, all of the company's infrastructure is built on ProcessWire. Whether it is the showcase website or the millions of transactions recorded in the database as pages or all the custom modules to interact with the company's data. Just to say that I feel lucky to work all the day with what I love, and when I remember that I was demoralized thinking I had to learn Wordpress or I don't know what, because before ProcessWire I never worked with a CMS and it was becoming vital. Then I stumbled on ProcessWire (hooray!). And now, a new step for me appeared yesterday. I have a trainee for a month. And my task is to teach him how to work with ProcessWire! This make me really proud ! Have a nice day everyone and again, thanks to this community and this software! ?1 point
-
Be careful with your site. ? Please create a backup of your website files and database first before trying anything else. No access is better than no site. Does your /reset.php work or do you see a 404 page not found page or errors at all? If it does work you could try this code to create a new SUPERUSER: <?php // if previously tried with this solution // https://processwire-recipes.com/recipes/resetting-admin-password-via-api/ // you need to include ProcessWire here as well - line below // require "index.php"; $newadmin = new User(); $newadmin->of(false); $newadmin->name = "newCmsAdminUser"; $newadmin->email = "user@domain.tld"; $newadmin->pass = "aSecurePasswordHere"; $newadmin->addRole("superuser"); $newadmin->save(); $newadmin->of(true); ?> I really don't know if this will work with ProcessWire 2.2.3 or if you need further adjustments.1 point
-
1 point
-
Just a guess but when your ProcessWire instance is in /pw/ your URLs are probably www.blahblah.de/pw/something/. Why did you place ProcessWire in a subfolder? Why not in DocumentRoot?1 point
-
1 point
-
Then with a hook, you can remove them, look : On a module : $this->addHookAfter('LoginRegister::buildProfileForm', $this, 'renderProfileForm'); protected function renderProfileForm($event) { $form = $event->return; foreach ($form->children as $field) { if ($field instanceof InputfieldEmail || $field instanceof InputfieldPassword) { $form->remove($field); } } } or in ready.php : wire()->addHookAfter('LoginRegister::buildProfileForm', function($event) { $form = $event->return; foreach ($form->children as $field) { if ($field instanceof InputfieldEmail || $field instanceof InputfieldPassword) { $form->remove($field); } } });1 point
-
Yes, it can be done. The documentation for the Repeater fieldtype shows API code for adding repeater items. The general approach is that for every row you will look for a "group" repeater item by title and if no item matches that group name you create one. And for every row you create a "photo" repeater item inside the relevant group item. Not tested but it should work once you have changed $page and any field names to suit your setup: // Parse the CSV data $handle = fopen('/path/to/your/file.csv', 'r'); while(($row = fgetcsv($handle)) !== false) { // Columns (maybe there are actually more of these) list($group_name, $image_name, $price) = $row; // Get the group item for this $group_name /* @var RepeaterPage $group_item */ $group_item = $page->groups->get("title=$group_name"); // If no such item exists, create one if(!$group_item->id) { $group_item = $page->groups->getNew(); $group_item->title = $group_name; $group_item->save(); $page->groups->add($group_item); $page->save(); } // Create a photo item for this row /* @var RepeaterPage $photo_item */ $photo_item = $group_item->photos->getNew(); $photo_item->title = $image_name; $photo_item->price = $price; // If there are more columns deal with them here $photo_item->save(); $group_item->photos->add($photo_item); $group_item->save(); // Perhaps not needed, but save the page for good luck $page->save(); }1 point
-
The Password is saved hashed... you cannot get it with phpmyadmin or ftp... But with the code from bernhard, you set a new password with this line: $admin->setAndSave('pass', 'yournewpassword'); And on your site, the new password should be "yournewpassword" ? Just test this password with your admin account (and change it!!!)1 point
-
Hey Adrian, thanks for all the good feedback in the last few posts. I am working on some fixes. I have confirmed that non-recurring dates are not showing up in find() in my latest version. I will fix this tomorrow and post an update here. I appreciate your feedback.1 point
-
I agree. Please create an issue for it on GitHub: https://github.com/processwire/processwire-issues/issues1 point
-
Good. Microsoft has always been the best for supporting developers. Also good because the founders of github will get a great payday soon ?1 point
-
Hey @joshuag - I really need to bump this find() only working on recurring dates issue. Can you please at least confirm that this is definitely the case because I need to start figuring out an alternative. I don't see how this module can be used without it. How can you generate a list of upcoming events when some are recurring and some are not if the find() method only finds the recurring ones. Thanks.1 point
-
1.9.5 is uploaded. I've disabled the FileCompiler because on Win localhost it was very slow, so if you have issues try to refresh the module cache. Changelog: - fix inline pagelist items if "Always show pagelist actions" was checked (reported by ottogal) - Delete and Trash action (non-superusers): skip confirmation if ctrl key is pressed - new Skip Trash? checkbox on page edit Delete tab (SuperUsers only, requested by Robin S) - fix NavItems causing JS error on "Find Files to Translate" page Search box - hotkey save: do not add blocking overlay until html5 required attribute requirements are not resolved (reported by Robin S, #95) - asmSelect searchbox: allow wider dropdown - AdminThemeUikit, percentage-based widths ON: move AsmSelect placeholder and maxlimit fields after Required field to avoid layout issues - add namespace and FileCompiler=0 to bypass PW's FileCompiler (slow compile on Win localhost, may need modules refresh)1 point
-
Definitely an interesting move, and I'm also wondering what Microsoft is planning to do with GitHub ? How will the focus of the platform evolve and will there be new restrictions for projects or users? Do they plan to integrate GitHub more tightly with their own tools? Could this mean that they're so attached to the GitHub platform that they need to make sure one of their competitors doesn't buy it first? Or perhaps this is just one more step in their ongoing effort to impress developers? There's not enough data to make any kind of educated guesses yet, so we'll just have to wait and see how it goes. One obvious thing is that a corporate entity like Microsoft wouldn't just go around buying services/platforms for the heck of it, or because said services/platforms have a great community, or whatever. Their primary goal will always be growing their business and bringing in more money – and somehow, directly or indirectly, GitHub is now part of that. Although I'm not particularly worried, I do think it's reasonable to be a bit concerned when a massive corporation like Microsoft buys out a platform as influential as GitHub – especially when that influence is probably most prominent within the open source community and individual developers working on non-commercial projects. Anyway, I can't see how wrecking the legacy of GitHub would be good for their business, so there's (probably) no need to be worried.1 point
-
Yep, why does it include each machine running Windows? ? +1 They call them "updates" but I'd call them replacing the complete system... Since MS can no longer directly connect to the treasuries of governments around the globe, they need to connect directly to the wallets of people.1 point
-
Take a look at these: https://gist.github.com/adrianbj/e391e2e343c5620d0720 https://gist.github.com/adrianbj/e391e2e343c5620d0720 https://gist.github.com/somatonic/5595081 and this conversation: https://processwire.com/talk/topic/1176-hiding-uneditable-pages-from-users/?do=findComment&comment=849161 point
-
hi @asilentwish, not sure, but maybe this module can help you? https://modules.processwire.com/modules/admin-restrict-branch/1 point
-
I would put Tracy in Strict Mode (you can toggle this via the button in the Panel Selector). This way you'll get the Tracy "bluescreen" which will show you a full stack trace so you can figure out what line in your module is causing the problem, rather than the final WireDatabasePDO.php as reported in the warning. The warning is clear that you are providing an array instead of a string, but this will help you figure out where this is happening.1 point
-
Wow, that works incredibly well for this usage! You are very creative, I never would have thought to use a similar plugin for such usage. It even works flawlessly with a multi chosen page reference field. You can have multiple pages of exterior photos and the each page will successfully pop into the field. It even solves the problem of what happens when photos are removed - they are automatically removed from this select field, so if all photos of a skyscraper are removed, it successfully has a photo count of zero. Bravo.1 point
-
I think the Connect Page Fields module will be suitable for this. You would create two new Page Reference fields for your Skyscraper template: interior_photos and exterior_photos. The visibility of these fields could be set to hidden if you don't want to see them in Page Edit. Then you would connect those fields to the corresponding fields on the Photo template. In terms of matching skyscrapers with or without interior or exterior photos you would then match against the count of the Page Reference field rather than a boolean.1 point
-
Hi Ryan, With the addition of the new profile, in terms of file size nearly 60% of the core is now made up of site profiles. For new users these profiles are no doubt very handy, but I think for a lot of existing users the profiles (apart from "blank") are not needed. Speaking for myself I don't have a need for the bundled profiles and so delete them each time after downloading a new version from GitHub. Doing that isn't a big deal, but it would be nice to keep things as lean as possible for users who don't need the profiles. And I'm not sure but are the profiles downloaded and discarded each time PW is upgraded via admin? What do you think about starting to make use of the Releases feature of GitHub? Each time when a new version is ready there could be a new release created, containing two zips: "processwire" and "processwire-no-profiles", or whatever naming scheme you think best. Using releases would have some other benefits too. For dev branch users it would be easier to know exactly what version of PW you are running, as opposed to the current scenario where changes to the latest version get pushed out over the week so someone who installs 3.0.105 on Saturday may have different files to someone who installs 3.0.105 on Thursday. When someone raises a problem in the forum they could say exactly what version they are running (could be an older release) and people who want to help could more easily download that exact release to try and replicate the problem. Another benefit to using releases is that you can collect metadata about downloads. That would be a great way to track the growing interest in PW over time. https://help.github.com/articles/getting-the-download-count-for-your-releases/1 point
-
Thank you Pwired, but please note that I mostly posted here working/devs versions (to minimise websites promotions). They are mostly from template selling portals where client buy template (html, wp, joomla... what they likes), and after it my job is full conversion to PW. At the end, many of these templates in source has large part of unused CSS, and because of that, in last step, I like to do and css optimisation/cleaning (eg. using node.js + grunt-uncss). Regards.1 point
-
Hello, here are some examples, all is Processwire, and all is conversion from HTML to PW. bistro, lawyer, mtrace, nekretnine, registar, prteam, entext... If you are interested, feel free to contact me. sasaoluic (AT) yahoo (DOT) com Best regards.1 point
-
1 point
-
There are also a lot of ways to leak data without having a full server compromise like publicly available sql dumps (put somewhere in the webroot) or permission issues on shared hostings. So encryption does still have a value even if the secret key and the encrypted content are on the same machine.1 point
-
This is everything wrong with programming help forums.... https://xkcd.com/979/0 points
-
I hope this doesn't happen... if($context == "GitHub" && $owner == "Microsoft") { str_replace("Chromium","Edge", $electron); } Lately, I've been loving Electron...?. I think Atom will be surplus to requirements though. No need for in-house competition with VS Code.0 points