-
Posts
2,318 -
Joined
-
Last visited
-
Days Won
2
Everything posted by pwired
-
After so many times for so long, being in the news being compromised makes you wonder if wordpress is still worth anyones time and effort.
- 9 replies
-
- 2
-
-
- infosec
- cybersecurity
-
(and 3 more)
Tagged with:
-
Yes you can create a template directly from within the processwire backend without a template file in the templates folder associated with. You can just the same add fields to such a template. Here is a thread that shows how flexible templates can be used in processwire: https://processwire.com/talk/topic/740-a-different-way-of-using-templates-delegate-approach/
-
make visit counter code count once per session
pwired replied to EyeDentify's topic in Getting Started
https://processwire.com/talk/topic/2868-count-views-of-post/ -
The forum is your friend https://processwire.com/api/coding-style-guide/ https://processwire.com/talk/topic/3961-new-to-cms/ https://processwire.com/talk/topic/2994-learning-php/ https://processwire.com/docs/tutorials/but-what-if-i-dont-know-how-to-code/ https://processwire.com/talk/topic/6030-learning-php-where-to-learn-just-enough-to-make-living-w-pw-easier/
-
anti-spam Simple Anti-spam protection for contact forms
pwired replied to EyeDentify's topic in Tutorials
Thanks for this example. Using thumbnail pictures instead of numbers also works good against bots. -
// grab and output a random image Just put this in each grid cell: $image = $page->images->getRandom(); if($image) echo "<img src='$image->url'>";
-
Hi and welcome to processwire You can even use "a page" to store the data of the form fields, use the api to select "the page" that holds the php that will process the form. Follow these threads and you will be making forms in no time: https://processwire.com/talk/topic/2089-create-simple-forms-using-api/ https://processwire.com/talk/topic/407-processing-contact-forms/#entry3208 https://processwire.com/talk/topic/3105-create-pages-with-file-upload-field-via-api/page-3
-
Do you have debug mode on ?
- 1 reply
-
- image field
- images
-
(and 1 more)
Tagged with:
-
I've seen that line a few times before, but the thing is, with PW it's the first time "I've got it right", everything makes so much sense.
-
Yeah just read it. Since I came across the delayed output (and using leading underscore for view files) I fell in love with it. Set variables (or placeholders as some call it) with init values, output them in _main.php, give them overrides as needed in a template file. Use wireRenderFile() for view files. You can in fact stack your site with any layers you want, outputted in _main.php
-
Good point BitPoet. Now that we are on it, why isn't there an api function/command that can do a redirect without the $session thing ?
-
Moved site from WAMP to test server and now getting Error
pwired replied to Jon's topic in General Support
Hi Jon, Why don't you tell us something more about what you are using e.g: processwire version you are using did you zip up, ftp or cpanel upload what hoster you are using Anyway in such case I would first run on your online host, a fresh new processwire installation with the same version as you are using local on your computer. Running a fresh new processwire installation will tell you if your online host environment is meeting all the needed requirements. After that simply replace the online site folder with the one you have local, use zip, and ftp or cpanel for upload. After that adapt your config.php local values to the online host values and finally import your local sql file. If everything is working locally but not online, these steps will narrow down where the problem might be. Usually: .htaccess, index.php or paths mismatch hosting restrictions file missing or corruption during zip compress/extract or ftp upload => maybe in your case (field not exist) the .sql migration Anyway let us know about how it goes -
@sinnut, ok maybe we found something here that needs attention.
-
@BitPoet, your good man, I did the upgrade again from 2.7.2 to dev-3.0.6, then changed the part on line 412 like you showed, and now both back and front end are working !!!
-
Ok I tried another upgrade, just to see, this time from 2.7.2 to dev-2.7.3 This time everything went well as you can see: Before: After: After:
-
Tried with different server same upgrade 2.7.2 to dev-3.0.6 Same error. This is not server path related. I will have a look later on. Error: Exception: Filename doesn't exist: E:/UniServerZ/www/site/templates/E:/UniServerZ/www/site/assets/cache/FileCompiler/layouts/_home.php (in E:\UniServerZ\www\wire\core\TemplateFile.php line 104) #0 E:\UniServerZ\www\wire\core\WireFileTools.php(434): ProcessWire\TemplateFile->setFilename('E:/UniServerZ/w...') #1 E:\UniServerZ\www\wire\core\Functions.php(463): ProcessWire\WireFileTools->render('E:/UniServerZ/w...', Array, Array) #2 E:\UniServerZ\www\site\assets\cache\FileCompiler\site\templates\home.php(11): ProcessWire\wireRenderFile('E:/UniServerZ/w...') #3 E:\UniServerZ\www\wire\core\TemplateFile.php(218): require('E:\\UniServerZ\\w...')
-
Just out of curiousity and for trying, I upgraded a local dev site on laptop from version 2.7.2 to dev-3.0.6 php 5.4.12 with PDO There are many ways to upgrade but no matter what way I try I always get this error message: Error: Exception: Filename doesn't exist: Z:/web/site/templates/Z:/web/site/assets/cache/FileCompiler/layouts/_home.php (in Z:\web\wire\core\TemplateFile.php line 104) #0 Z:\web\wire\core\WireFileTools.php(434): ProcessWire\TemplateFile->setFilename('Z:/web/site/tem...') #1 Z:\web\wire\core\Functions.php(463): ProcessWire\WireFileTools->render('Z:/web/site/ass...', Array, Array) #2 Z:\web\site\assets\cache\FileCompiler\site\templates\home.php(11): ProcessWire\wireRenderFile('Z:/web/site/ass...') #3 Z:\web\wire\core\TemplateFile.php(218): require('Z:\web\site\ass...') Edit: This could be something with my server paths I will setup a default server with default server paths and have a look again.
-
Did you check if everything is writeable in your destination folders ?
-
I noticed that uikit is becoming popular lately. Even Ryan is fond of it. As far as I have played with it, I find it worth to invest time in. http://getuikit.com/ For small projects I always use pocketgrid. Here you find more in the forum: https://processwire.com/talk/topic/3791-things-to-read-about-css-frameworks/page-2 https://processwire.com/talk/topic/1576-css-template-framework/ https://processwire.com/docs/tutorials/installing-a-css-framework/ https://processwire.com/talk/topic/4572-pure-a-set-of-small-responsive-css-modules-that-you-can-use-in-every-web-project/
-
-
Imagine your clients reading that.
-
Product Hunt will receive the following info: your public profile, friend list and email address. Sorry there seems to be no opt out for this. Isn't there another way to upvote for processwire without spreading my private data around ?
-
I just put this teeny weeny code at the top of my main.css where I initialize site wide css: img { height: auto; max-width: 100%; width: auto; } With @media rules I simply rearrange/stack boxes holding images. Less is more, so to speak, works all the time. Edit: Not relevant, See next LostKobraKai's post
-
Now the recommended name for a constructor is __construct. Try to find any classes and rename its constructor to get rid of the deprecation errors. Have a look here: http://php.net/manual/en/migration70.deprecated.php
-
Your host is serving php 5.2.17, go into your cpanel and select php 5.4.xx or up.