Jump to content

pwired

Members
  • Posts

    2,318
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by pwired

  1. Yes that's right, the main.inc file is part of the Delayed Output, also known as the main.inc strategy https://processwire.com/docs/tutorials/how-to-structure-your-template-files/page4 The main.inc file is further explained in the comments down this page: http://processwire.com/docs/tutorials/how-to-structure-your-template-files/page5
  2. Hi, and welcome to Processwire. 1. Technically, the underscore in _main.php is simply a way to make Processwire identify this as an include file rather than a regular template file. http://processwire.com/docs/tutorials/default-site-profile/page2 2. The _main.php file is simply used in a different output strategy. Rather than splitting the markup into _head.php and _foot.php files, all the markup is instead contained in a _main.php file, which represents an entire HTML document. http://processwire.com/docs/tutorials/default-site-profile/page3 The reason behind all this, is that Processwire allows you to choose different strategies to make your website scalable, e.g. making maintenance much more easy.
  3. Yes I have looked at it with a narrowed view. I should have googled about Imagick PHP before I did my post. Just because I never had the need for something like this doesn't mean there is no need for it.
  4. more to code, db requests, background processing, memory usage, Applying a picture editor filter is much more efficient
  5. Somehow they always seem to find a valid excuse for not taking the time to go through the forum. Even if the answer or subject they are looking for is already there many times in the forum. I found the latest excuse very creative: "I wanted to know if there was a better answer"
  6. Im glad that the German court several times now ruled Adblock and Adblock Plus legal to use. The German court has essentially declared that users are legally allowed to control what happens on their screens and on their computers while they browse the Web. I hope other countries will follow.
  7. commercial license https://www.padloper.pw/
  8. I get your point: will Processwire still exist in the future ? This question has been asked a few times already and to my opinion answers have been a bit vague about it. But the answer is: yes Processwire will still exist in the future. Even in the worst case scenario when no developer team would exist anymore. I base my opinion on the fact that the core of Processwire is coded so very well, that it is php version proof for a long time to come. But that worst case scenario is very unlikely to happen. As you may have noticed, both developers and coders are attracted to Processwire for the beautiful way how it works and therefore it is no coincedence that the forum of Processwire is filled with high skilled coders. So, if for whatever reason the developers team would cease to exist, other coders will step in immediately to continue Processwire. If your thoughts are about if Processwire will be superseded by another cms/cmf system in the future, this is also very unlikely. The vast majority of Processwire users came from other cms/cmf systems they where using before. It is because of being frustrated with the ruled limited ways of other cms/cmf systems they ended up with Processwire. This in it self is another indicator that Processwire will be there in the future.
  9. Don't use any script or structure from softacolous. All you need is the webspace from your hoster. Make sure you delete any welcome html/ php file and scripts from your hoster. If you see any default .htaccess file open it first to see any hosting restrictions/configurations from their side. Then delete the .htaccess file also. So when you have empty webspace then upload the processwire files and install processwire. If this is not what it is about in your case then post some more information to help you out.
  10. https://processwire.com/docs/tutorials/how-to-structure-your-template-files/page3 https://processwire.com/api/templates/
  11. Go to site\modules\InputfieldCKEditor\config.js and open config.js in your editor. This will stop CKeditor from putting the <p> tag including the start and stop (global) <p> tag : CKEDITOR.editorConfig = function( config ) { config.enterMode = 2; }; And this will give you both the <p> and <br> tag when needed but does not prevent the start and stop <p> tag CKEDITOR.editorConfig = function( config ) { config.enterMode = CKEDITOR.ENTER_BR // pressing the ENTER Key puts the <br/> tag config.shiftEnterMode = CKEDITOR.ENTER_P; //pressing the SHIFT + ENTER Keys puts the <p> tag }; ======================== Tested with processwire 2.6.1
  12. Tuts+: "ProcessWire, and its lack of a mature theming model, is simply not the right choice for that use case" "If your programming skills are not that great, you are going to find it difficult to go ahead with ProcessWire" "You can’t really do much without coding skills" About Processwire: The vast majority of Processwire users came from other cms/cmf system(s) they were using before. So, a good article about Processwire would for example write about the reason why people choose Processwire over another (established) cms/cmf system. So far so good, but let's go on a bit. The majority of Wordpress users only know Wordpress. If not, and they would have been using other cms/cmf systems before, then would they really end up with using Wordpress ?
  13. pwired

    Indexer

    Hi, Forum: https://processwire.com/talk/topic/5416-fixing-pw-install-in-a-latin1-database-should-have-been-utf-8/ https://processwire.com/talk/topic/2053-force-utf-8-encoding-for-pw/ https://processwire.com/talk/topic/1735-get-data-from-a-latin-1-encoded-db-and-insert-it-into-pw/ General: http://php.net/manual/en/function.utf8-encode.php#82210 Lots of inspirational solutions here: http://stackoverflow.com/questions/910793/detect-encoding-and-make-everything-utf-8 Or maybe this: https://github.com/neitanod/forceutf8
  14. Hi, This thread and post gives you a start https://processwire.com/talk/topic/8193-strategies-for-storing-and-using-email-templates/ https://processwire.com/talk/topic/5704-module-wiremailsmtp/page-2#entry68098 There's also 2 modules who can do some work for you http://modules.processwire.com/modules/wire-mail-smtp/ http://modules.processwire.com/modules/wire-mail-swift-mailer/ Hopefully altogether this will put you in the right direction.
  15. So much already been written in the forum about wp. Anything new ? So, instead my 5 cts, here is my 1 ct about it. How many times has wp been in the news about plugin hacks ? I used to post about that a few times. Last week they made the news (securi) again with plugin hacks. It just goes on and on so I stopped posting about it. The people I bumped into wanting me to make websites with wp, simply believe wp is the best choice. Thing is you can't have a discussion with believers. Using pw I learned so many things that really matter. I just want to mention here that I noticed that the number of newbies without coding experience entering the pw forum has dropped to almost zero. Unlike the high number of them entering this forum during the time of the modx evo collapse.
  16. Not recommended but you can try a work around by creating .user.ini file and put it in the directory where the actual upload script resides. You can give it for example these values: upload_max_filesize = 24M post_max_size = 32M Did you check your shared hosting restrictions ? Some shared hosting have file size restricted. What file size can you upload successfully ? That will give you something to start with.
  17. Possibly you have something mismatching in your .htaccess or config.php Did you first install a new installation of processwire on the new Host ? When you migrate a site to another server I always recommend to install a fresh installation of processwire on the new Host. That reveals any unexpected needed server configurations or restrictions on the new host and ensures ending up with a correct .htaccess and config.php After the installation of a new processwire on the new host delete the site folder and empty the database. Upload your site folder and import your sql file. Adapt credentials in config.php and chmod to 400. Let us know how you proceeded with your migration.
  18. Hi, If your PHP setup is running in safe mode, you can only change values from the php.ini file. If the upload_max_filesize is larger than post_max_size, you must increase post_max_size so that it is bigger than upload_max_size. If the value of post_max_size is larger than memory_limit, you must increase memory_limit so that it is larger than post_max_size. Try increasing the following values in php.ini, for example: memory_limit = 32M upload_max_filesize = 24M post_max_size = 32M
  19. This is simply hosting restrictions related. The majority follow the same restrictions, some deviate, some change them during time. Through the years I bumped into a few hosters who follow different restrictions. You simply have to adapt your .htaccess to them. https://processwire.com/talk/topic/2439-htaccess-issue/
  20. pwired

    Colors and Time, :)

    It's also nice to view the page source of this.
  21. Yes I see what you mean, it won't improve uploads.
  22. Opera's data saving servers seem to have good compression.
  23. Connecting through Opera's data-saving servers might improve something for your client. http://www.opera.com/turbo Not sure how much it would improve for uploads.
  24. @LostKobrakai, thanks for this example. I like that kind of approach. Never thought this could be done with so little lines of code. Nice to see this pdo/php directly mixed with processwire api. Edit: There is more to find about this in the forum like here: https://processwire.com/talk/topic/2242-interact-with-external-database-mysql/#entry20969 But are $myDB and new Database reserved words in Processwire, and if so where can I find them declared or explained, or can you chose just any other word ? I can't find anything about Database in the api cheatsheet or with google.
  25. It would be very interesting to see some php example of this.
×
×
  • Create New...