-
Posts
650 -
Joined
-
Last visited
-
Days Won
6
Everything posted by rick
-
I'm not sure where to post this so I've placed it here. I'm currently trying to clean up an application. By clean up, I mean removing all php notices, warnings, blah blah blah. When uploading an image, php uses a tmp_name without an extension (but does include the dot) eg, abcfedphp. This produces a php notice from Pagefile.php relating to the missing extension reference on lines 216 and 219. I'm not going to be changing any core files. How would you address this?
-
It's not that you need to learn at least one programming language, rather that you start with the concepts (ie, Object Oriented Programming, server configurations, etc.). Once you have a good grasp on the concept, the programming language you choose will feel effortless. You will be in a better position to decide which language best suits your project. Just my $.02
-
If you have a whole ass gallery (not sure, but I think that is a lot ?) you may want to consider batch processing your images outside of Processwire. I have a few *nix shell scripts that watermark my whole ass gallery. Not poking fun, that is just really funny. Let me know if you would like to take a look at them.
-
Hi @brandy and welcome to the forum. First, no one laughs. Second, take a look at this older post. Lastly, just an FYI, you can better search the forum content by typing this into your browser: site:processwire.com/talk {search terms} or you can use /blog rather than /talk to search the blog articles. You'll find that everyone here is both knowledgeable and willing to help, so please ask away!
-
Demo Form Expired error in FF if you elect to go back (no cancel transaction option) rather than complete the stripe form.
-
-
Dagnabit! ^ My best Walter Brennan impression.
-
I have an image field with SVG as one of the allowed file types. However, when I try to upload an SVG image in page edit, I get the following error: Error Call to undefined function ProcessWire\simplexml_load_string() File: .../www/cre8aplace/wire/core/Pageimage.php:533 523: * @return array of width and height 524: * 525: */ 526: protected function getImageInfoSVG($filename = '') { 527: $width = 0; 528: $height = 0; 529: if(!$filename) $filename = $this->filename; 530: $xml = @file_get_contents($filename); 531: 532: if($xml) { 533: $a = @simplexml_load_string($xml)->attributes(); 534: if((int) $a->width > 0) $width = (int) $a->width; 535: if((int) $a->height > 0) $height = (int) $a->height; 536: } 537: Other image types load fine. I haven't seen a post relating to this issue, so I assume it's pilot error again. ? Is there some special field setting I have missed or is this an actual bug? Is it a continuation of the git issue regarding dimension attributes? <svg id="e532202f-8294-4472-8a94-ef01c23bf434" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1111.01" height="589.53" viewBox="0 0 1111.01 589.53"> There is no attributes section in the file. The dimensions are included in the header as shown.
-
I've been using unsplash for a while, but I hadn't realized their history or progress. Really liking undraw. Thanks for the tip!
-
I found this random picture generator the other day but kept forgetting to post it here. It's basically lorem ipsum but for photos. They have quite a nice feature set too.
-
[solved] ubuntu 20.04 php7.4 does not parse index.php
rick replied to rick's topic in General Support
I didn't actually find a solution to the issue of the admin displaying text while the front-end displayed correct data. I've never seen that before. So I uninstalled php and reinstalled php and now the backend works. -
I upgraded my ubuntu version to 20.04, which install php7.4. I have php parsing other files such as a phpinfo file, but when I try to access the processwire admin, I get the index.php text dump. The front-end appears to display correctly. Any ideas what I am overlooking? Thanks in advance!
-
Default Site Template - Delayed Output - Mobile First?
rick replied to NooseLadder's topic in Getting Started
Mobile first is a front-end concept. It really doesn't matter which back-end CMS you use to serve data. Obviously ProcessWire is the best solution. ? Personally, I prefer the blank profile to start most projects. The responsive approach is in the name, mobile first. Start with whichever CSS you prefer (Bootstrap, etc.) and design from mobile upward. I find it easier to sketch the mobile interface on a whiteboard, then sketch at the additional breakpoints, noting the changes for each. A clear map up front will save you many headaches later. It's all personal preference as to which CSS framework , profile, javascript library, etc. that you want to use. -
Is this interface for the front-end or admin? How many products? If only a few then you can code it yourself (Buy Now buttons are the easiest to implement) Yes it can. Can be accomplished with buy now buttons. Is this a free account for one of the duration terms? ie, coupon code for 1 year, another coupon for 2 year... This is the default behavior of online payments. Why would one account need a 1-year and 5-year membership concurrently? This can easily be coded. I don't know anything more about your site and your goals so my answers are over simplified.
-
Are all the associated template files present and spelled correctly? The view option does not display when their is no corresponding template file.
-
Works for me with/without https. Which you might want to adjust to https only.
-
Works for me.
-
It appears that the upgrade to the latest stable version was corrupt. A clean install has it working again. Although I fail to see the reasoning behind having non-usable field names displayed while advanced mode is enabled. I don't recall if the prior version I was running had this "issue" because following the article example simply worked.
-
I think this issue is one of those gotchas. I haven't located the area in the source where this field name is created. Any hint would be greatly appreciated.
-
You may also want to take a look at vscodium. It's the same as vscode but without microsoft's tracking. It is free also.
-
That is the problem. My field shows title_fieldname_UUID as the file name when I hover over the collapse toggle. I've deleted the page, template, and field, then re-created a new one. The problem is persistent with every attempt. If it works for you, but not for me, then I obviously have something configured incorrectly with my PW installation. I have no idea what that might be. ?
-
When editing an image (your colin-watts... pic) what does the field name display when you hover over the collapse toggle (on far right of field)? Mine shows the name format I posted with the UUID. Does yours display only your field name?
-
Hello all, I am creating a single custom image field as per the 3.0.142 post. However, when attempting to edit any image, I found the custom fields have been renamed. This also breaks any template code that tries to access those images. The field names have this pattern: title_fieldname_UUID, where title is the title field in the custom template, fieldname is the field name in the custom template, and UUID is a randomly generated ID. The custom field entries in the database are correct, that is, page references, image name, image size, dimensions, etc., are all correct. All other field names (non-custom) on the page are correct (advanced mode on). I see that other forum posts regarding custom image fields have not referenced my issue, so I assume it is pilot error except I don't see the current master version referenced elsewhere. Ubuntu 18.04 PW 3.0.164 Master PHP 7.2.24 Apache 2.4.29 Can someone provide more clues as to how I can track this down. I appreciate your help.
-
Hello @Ralph, 1. The developer tools (Inspect Element in FF) shows the font size set in your main.css file on line 1760 for screens wider than 768px. You will need to search for other media queries to set the font size for other screen sizes. See here for more information. 2. The developer tools shows your link definition in main.css on line 1107. See this reference for more information about styling links. 3. You will need to edit your "<div id="header-wrapper">" to include whatever logo image you wish. You will most like likely need to add css styles to make the logo appear as you wish. 4. The text "', 'auto'); ; ga('send', 'pageview');" appears to a remnant from a previous copy/paste. The developer tools shows this text immediately after the <body> tag. You can edit the template where the body tag is located and delete this extraneous text. 5. A google search for changing your site's favicon will give you sufficient results to accomplish this task. Hope this helps.
-
Even though I don't run windows laragon looks amazing.