-
Posts
2,233 -
Joined
-
Last visited
-
Days Won
47
Everything posted by netcarver
-
FieldtypeComments without the email/name field?
netcarver replied to JayGee's topic in General Support
I don't think you can prevent the output of those fields - but there is a trick you can pull to prevent them being editable (as well as hiding them using a CSS rule on the wrap classes.) If you override the preset values - but to the same strings as the preset would use anyway - then the form renders them with the disabled attribute. Like this.. <?php echo $page->comments->renderForm([ 'presets' => [ 'cite' => $user->name, 'email' => $user->email, ], ]); I haven't verified, but I believe that the comments fieldtype will replace any tampered fields in the posted form with the original preset, so this might work for you. -
Have you tried setting the "defaultAdminTheme" config setting to the theme you want? $config->defaultAdminTheme = 'AdminThemeReno'; // Or whichever theme you want users to have by default
-
Hi @BitPoet This looks great. Are we able to get/save/flush using any kind of namespacing? Wirecache has getFor() / saveFor() / deleteFor() etc, which are very useful for classifying cache entries and doing targeted flushing.
-
HOW TO: sendmail setup with smtp.gmail for local web development
netcarver replied to OrganizedFellow's topic in Tutorials
@David Leon Hello, I'm sure you are aware that this forum is for ProcessWire and not Wordpress. There is probably someone here who has some experience of running Wordpress, but that's not me so I can't help directly. Have you had any success asking about your issue on any Wordpress forum? Hope you manage to get this sorted out. -
Hello @Grigorij Schleifer and welcome to the Processwire forums. You will definitely need to install an AMP package on your mac before you will be able to run Processwire locally. (AMP = Apache, MySQL and PHP.) I personally don't use a mac so I can't advise you about the best option there - but hopefully one of our mac users will read this thread soon and join the conversation.
- 8 replies
-
- installation
- mac
-
(and 1 more)
Tagged with:
-
New blog: About the new ProFields Combo field
netcarver replied to ryan's topic in News & Announcements
Looks really nice, thanks Ryan. -
Set admin template to 'https only' without breaking localhost
netcarver replied to humanafterall's topic in API & Templates
@humanafterall If you are developing on localhost and need to override the https settings in your template files you can do this by using copying your site/config.php file to site/config-dev.php file, and adding this option to the new file: $config->noHTTPS = true; ...and it should work. There are several posts here in the forum that talk about how to setup your dev and live config files. -
Hi @modifiedcontent have you considered just using Ryan's ProcessForgotPasswords module that is already part of PW and just loading it in your template file and having it take care of things for you? I've not tried it myself in my own template files but it is certainly possible. Something like this might work for you on your reset page template (totally untested, but you seem to be willing to experiment)... <?php if ($user->isLoggedin()) { $session->logout(); $session->redirect('/'); } else { $pfp = wire()->modules->get("ProcessForgotPassword"); $pfp->useInlineNotices = true; $pfp->emailFrom = 'your-from-address@your.domain'; echo $pfp->execute(); } There are several other settings like 'useInlineNotices' that are documented in the module from lines 17-28, linked here. You'll be better served using this core module if you can, rather than writing something yourself. If you do want to use this as a learning opportunity, and decide to go with your own code then I'd suggest research in the following areas: CSRF tokens, session variables, cryptographically secure random number generators, MD5 weaknesses and password hashing.
-
Hello fellow PW devs, Do any of you know if it's possible to have or use multi-language textareas within a configurable module's settings page? I know it's possible to translate individual strings from within the module using the language tools - but I'd like to be able to offer different translations for a configuration field, if possible, without having to do something like use a multiplier field.
-
Ryan's ProCache module is the other obvious candidate to mention here.
-
That's basically impossible for anyone to answer as there are so many other variables involved than just the row count and your machine specs. It will also depend on how much of that data needs to be loaded per page view, how many requests per second you expect to handle, will you be using caching, are there background updates happening, are the tables correctly indexed and using the most suitable storage engine, how many sessions will be active at peak, will you be triggering external API calls as part of the page views, what about asset loading - all assets optimised, and how often you'll need to be updating rows in the DB, do the pages involve JS rendering anything on the frontend etc. etc. I think you'd be better off setting a target for acceptable page loading times and then asking "What do I need to do to get 80% of my page loads to this time or better?" You also need to consider if PW's API is a good fit for your programming needs and if the Admin interface is suitable for you and any users who may need access to the admin. I'd suggest setting your speed goals and then trying an import of a subset of your data and then seeing how your resource needs and page speeds scale going from say 100 thousand to 200 thousand rows and then extrapolating from that. If you do try out PW, please keep us updated with your results.
-
Pete and I can finally announce the availability of a discounted "Early-Bird" batch of NiftyPasswordsPlus. Once this batch is gone, we will be offering one further discounted batch before the pricing reverts to normal. Details in the opening post above this. Please feel free to ask any questions you may have about the module here.
-
Sqlite -- Modules, Case Studies or Advise
netcarver replied to Davis Harrison Dion's topic in General Support
@Davis Harrison Dion Hello, whilst there has been sporadic chat in the forums regarding sqlite over the years, I don't think we are any closer to seeing core support for it. I'm also unaware of any third party integration that's using it. I'd be delighted if I were wrong about that though; perhaps someone lurking in here does know how it can be done. -
Hi @modifiedcontent, yes, it's now all packaged up as a module and currently in testing. I posted about it here. Please be aware, as mentioned in that post, Pete and I intend to release this as a commercial module sometime this week.
-
You might also be able to use ESRCH's PagesSum module to do this - but I never tried it on checkbox fields before. https://github.com/netcarver/PW-PagesSum