-
Posts
396 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Pixrael
-
Ideas to add: https://gist.github.com/kongondo/2b0a16df9eca30f5b9f9b92c7584e7e3
-
Markup regions - how to include files in _main.php
Pixrael replied to JayGee's topic in API & Templates
If in doubt, always use this: <?php namespace ProcessWire; ?> on the file to include, and use this: wire('pages')-> instead of $pages-> .. and that never fails ? -
I use BS all the time and my websites never look the same. I change everything I need, it's very easy to use SASS, and its grid and utilities classes are great. Maybe the sites look the same because you/they leave it with the "out of the box" style and layouts. You simply adjust colors, borders, sizes, spaces, fonts, icons, shadows, pictures, backgrounds, etc. and create designs/layouts in a creative/useful way and that's it. But never ever copy and paste the examples and start throwing code on it... and this will happen with any framework you use. You should always start with a good (useful) design of the page, without thinking about its implementation and then use BS or any other tool to do it as it was designed, as simple as that. PS: Ah.. I forgot.. I'm a graphic designer LOL
-
Interesting Tool => Code Snippets Manager { https://masscode.io/ }
- 242 replies
-
- 3
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
finding a repeater in pages by repeater subfield
Pixrael replied to jon9china's topic in General Support
-
If we check the reviewer website (https://dougmcarthur.net/) then we understand why he sees the Processwire environment so difficult and complicated, even for Wordpress standards this website is very simple: a theme template and a couple of posts. Additionally for that plain homepage in the "recommended" Wordpress it needs: Fully Loaded Time: 9.4s Total Page Size: 5.68MB Requests: 52
-
A Master Class!
-
An elegant way to do this is how the Intuit company does it in the footer of the sites, see: https://www.intuit.com/ they have a link to a page for the explanation (intuit-cookies-policy) and other link to configure cookie management. Will be interesting if we have a module that do both: create the page for the blah blah.. and show the modal to admin the behavior.. then output the markup for this links (About cookies | Manage cookies) ?
-
Where do I store arbitrary data like global info or settings?
Pixrael replied to Vigilante's topic in Getting Started
https://processwire.com/blog/posts/pw-3.0.133/#new-page-gt-meta-method <-- the new kid on the block -
I use an ionos.com (former 1and1) dedicated server and it works great (features, performance and prices), but if what you need is something easy/cheap to admin for PHP projects you can evaluate this packages: https://www.ionos.com/hosting/php-web-hosting
-
Where do I store arbitrary data like global info or settings?
Pixrael replied to Vigilante's topic in Getting Started
https://modules.processwire.com/modules/fieldtype-yaml/ -
? Will be great if you can mix Markup Regions with the concept of the "Tags File Compiler" module https://processwire.com/blog/posts/processwire-3.0-alpha-2-and-2.6.22-rc1/#new-module-file-compiler-tags
-
LoginRegisterPro <-- Great News!!
-
integrating payment process in a user registration form
Pixrael replied to JeevanisM's topic in General Support
Add the "Paid" field to the user template: https://processwire.com/talk/topic/16400-is-it-possible-to-add-custom-user-properties-to-the-user/ Then you can update that field: $user->setAndSave('paid', 'true'); You can use a FieldtypeCheckbox for that too, then the ON value is 1 and OFF value is 0 -
https://prog.tube/laravel-php-create-a-social-network-full-app https://github.com/lvntayn/laravel-social-network
-
This is my code fragment that is currently working.. but I save the image to file because my case // here I load the SVG file $svg = file_get_contents("https://www.domain.com/site/templates/images/$image.svg"); // here goes code to modify some elements, colors and texts in the svg .... // here I set the SVG var to Imagick and save to a PNG file ready for download $im = new \Imagick(); $im->readImageBlob($svg); $im->setImageFormat("png24"); $im->scaleImage(1024, 1024, true); $im->writeImage("../downloads/$filename"); $im->clear(); $im->destroy(); $file = "https://www.domain.com/site/downloads/$filename"; echo $file; I implemented it as a service that is called by AJAX and returns the URL to the generated image.
-
It work for me. Try to assign the image path manually to verify that the Imagick is working: $im->readImageBlob("https://www.domain.com/site/templates/images/image.svg"); If you are able to open the picture in the browser using the path, this should render the picture on the page.
-
Error on module Login/Register when enter a wrong password
Pixrael replied to Pixrael's topic in Modules/Plugins
-
Error on module Login/Register when enter a wrong password
Pixrael replied to Pixrael's topic in Modules/Plugins
@adrian I tried this and works with wrong password entries, but if both parameters are ok, then I get a fatal error: Error: Exception: Login not attempted due to overflow. Please wait at least 20 seconds before attempting another login. (in /var/www/vhosts/domain.com/app.domain.com/wire/modules/Session/SessionLoginThrottle/SessionLoginThrottle.module line 150) -
Error on module Login/Register when enter a wrong password
Pixrael posted a topic in Modules/Plugins
In the Login/Register module I receive this error when the email exist but the password is incorrect. Any solution? Because the module has no new updates. Notice: Trying to get property 'name' of non-object in /var/www/vhosts/pdhvac.com/wms.pdhvac.com/site/modules/LoginRegister/LoginRegister.module on line 394 -
No idea... try this alternative: $im = new \Imagick(); $im->readImageBlob($imageurl);
-
try $config->path https://processwire.com/api/ref/config/path/
-
How to convert a codeigniter website to a PW website?
Pixrael replied to GradDev's topic in General Support
It seems that the website is very simple in its structure: lists/details structure.. maybe even with the ProcessBlog module and using categories you can make the whole site. If I had to do it, I would do the following process without having to study another platform or make new code: - I would use a scrapper software on the current site and export the data to a csv file with the fields and names I want. - I would create the templates in PW for the parent listing page / child detail page for each data model or use only one for all with tags/categories, depend on your idea - I would use the ImportPagesCSV module to create all pages in only one step All this you can do without having the html+css design implemented. I think that having the idea of fields and templates, this would not take me more than 4 hours of work. If you don't have access to a scrapper software, there are some extensions for chrome that can help you, or you can make a small code and use https://github.com/paquettg/php-html-parser. The idea with this is to avoid understanding CodeIgniter or the database. I have done this before for marketing affiliate pages = 100% Guaranteed ? -
WOW! .. THANKS @Robin S ..You always helping! I'll try this ?