Jump to content

digitex

Members
  • Posts

    217
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by digitex

  1. I'll put that on my to do list. I don't have a GH account yet so I'll have to set that up first. @adrian done. Thanks for the suggestion. Turns out I did already have GH account, it's just been so long since I logged in I had forgotten.
  2. While we're on the subject of comments 😋 I have another question. When notifications come in, I have never seen any actions other than "approve now". Many comments are not useful to the public, to say the least, so an admin won't want to approve but to do anything else requires logging in to manually mark as spam or delete. This kind of defeats the purpose of moderating directly from the notification email and if you do nothing the comments remain pending and clog up the system. I found the code in CommentNotifications.php that deals with moderation actions but I'm not certain how to add to it. if($comment->status == Comment::statusPending) { $status = $this->_("Pending Approval"); $actionURL .= "approve"; $actionLabel = $this->_('Approve Now'); } else if($comment->status == Comment::statusApproved) { $status = $this->_("Approved"); $actionURL .= "spam"; $actionLabel = $this->_('Mark as SPAM'); } else if($comment->status == Comment::statusSpam) { $status = sprintf($this->_("SPAM - will be deleted automatically after %d days"), $field->get('deleteSpamDays')); $actionURL .= "approve"; $actionLabel = $this->_('Not SPAM: Approve Now'); } else { $actionURL = ''; $actionLabel = ''; $status = "Unknown"; } Having the option to mark as spam on a pending comment seems like it would be very useful.
  3. I figured it was tracy, I was just marvelling at how much easier it is to read than phpMyAdmin. I found a solution here: This works. It's an odd behaviour for the Approve Now button in the notification email to only work when comments are rendered through the render function. I can work with it though 😂 Thanks for your help.
  4. Thanks for the hint @adrian. The interface looks very different on my end but I found the settings. Seems my problem is different in more than one way: the schemaVersion is already set to 6. I don't see a message like you described, the approval email simply does nothing when clicking the approve link i.e. pending comments remain pending. I had hoped your issue and mine may have had a similar solution.
  5. Can you narrow things down for me adrian? I'm having the same problem but there's a lot of code to go through and I don't know where to look. Please.
  6. Does fieldType PDF support tags? You can configure tags in the field set up but I get an error when I check for them with $pdf->getTag(). Edit: The field is fine, I made a mistake in how I was retrieving the tags, forgot that in order to get the tags as an array it should be $pdf->tags(true); and so the way I was doing it was the problem.
  7. @Robin S I just installed the latest version and upgraded from 1.9 to 2.1 (this morning). BRILLIANT!!!! Beautifully done. It works perfectly. Thanks again for a very handy module.
  8. No it doesn't. I have other fields that do fill in when field visibility is conditional but not in this case. I don't know why but when the field in question is not displayed, the other field beside it, set to 50%, stays at 50% and the fields in the next row flood in and alter the layout, in a bad way. I'm using this module because I need a custom selector and it's very handy. I got around the problem by giving both fields 100% width so not a big deal.
  9. @Robin S This is a very handy module, thank you. I have a situation that is inconvenient at best but has me wondering. I have 2 fields set side by side on the template with 50% width and a showif condition that means one of the fields only appears occasionally but when it's not visible the layout goes to hell since the first field is set to 50% width. Is it possible to expand this module to include the column width so that if the same selector that determines visibility is met the column width would change from 50% to 100% to fill in the row? If so it would allow for field visibility to change without effecting the rest of the layout. that would be awesome.
  10. @Robin S Thanks for that. I didn't even know those options were there. I agree percentage based should be default.
  11. @adrian Yes I read through that thread, maybe not every post, it's a whopper. I didn't see any post addressing the big incompatibility I mentioned above. I like the look of UiKit better than the default, it's more modern and slick but I used to enjoy being able to set custom widths in unconventional setups e.g.: Model Name (50%) Secondary Name (checkbox 15%) Second Model Name (visible only if checkbox is checked 35%). All widths equal 100% but it doesn't work with UiKit (I tried) which is a bummer but mostly frustrating because I have the ability to set those weird, unconventional widths due to the column width config being a slider that uses 1% increments. If it's not possible to make UiKit work with any custom width combo then the slider should probably not be there encouraging it. A minor gripe.
  12. I'm still experiencing problems with UIKit and column widths. One of the biggest selling features of PW is that it "makes no assumptions on how you choose to work" which is very powerful but now thanks to UIkit it is dictating how templates are laid out. The biggest issue is that there is a column width slider that allows adjustments in increments of 1% which is clearly not supported by UIkit. Maybe it's time to ditch the slider and replace it with a series of radio buttons allowing between 1 to 6 columns so admins don't start making custom adjustments like they used to be able to do.
  13. I'm getting this now. I installed an SSL certificate to log in securely and now I get this error. Only thing is, the site is old, first done in 2013 with PW 2.X so the site config file actually has no $config->httphosts setting. I added it to the config file and it seems to be working.
  14. Thank you. I was just starting to lose it. One particular client insists on using Google Map instead of Open Street Map and I was getting nowhere. Geocoding wasn't working in the backend and the map wasn't showing on the front although there were no errors. Then I saw this post ^ and enabled the geocoding API in the Google Console. This is important information for anyone having trouble.
  15. I didn't even think of that. Thank you.
  16. I'm working on a site that's using a background video on the home page. I've run into a problem though. I created a file field to hold the video and call it in with the following: <video class="video-background" loop no-controls autoplay src="<?php echo $hp->video->url;?>" poster=""></video> This doesn't work and throws this error: HTTP load failed with status 403. BUT when I upload the video to a sub-directory in Templates and use this code: <video class="video-background" loop no-controls autoplay src="<?php echo $config->urls->templates?>css/images/WB5.m4v" poster=""></video> It works. I expect it's an htaccess thing but I can't understand why since any other file works fine why is video different and what do I need to do to get around it?
  17. It happened only on that page in that spot and didn't change when I turned the h4 into an h3. I found nothing in the CSS or any JS that would effect it. It seems the browser(s) were rendering that area as if it was inline. I'll try @OrganizedFellow's suggestion. Stupid gremlins.
  18. My understanding has always been that block level elements get 100% width by default. Has that changed? I have fixed the issue by writing a CSS rule to govern <p> tags setting the width to 100% but I've never had to do that before. Shouldn't have to do that. Still have no idea why that's displaying that way without the new rule. Freaked me out but I have it under control again. So it's solved (ish).
  19. Help! I'm working on a privacy policy page. The text was submitted as Word so I first pasted into BBEdit to remove the Word formatting then pasted into CKEditor on the site. In one spot only an H4 tag is displaying inline somehow beside the previous paragraph instead of on it's own line. See the heading "ACCURACY" below. I searched for hidden characters using 3 different text editors and an online service, I checked it in 3 different browsers. There's no code that would target that and no JS or CSS effecting it. It displays correctly in CKEditor: And when you look at the source markup there is nothing that would cause it: The last paragraph of text is a single line and the only way I can fix it is to insert additional text to force that paragraph onto 2 lines: Has anyone seen this before? Is there something I'm missing? I'm going nuts and can't spend the rest of my life on this. Any help is appreciated.
  20. As far as I know Leaflet use OpenStreetMap which is not google. With the new changes to google maps I'm sure more people will turn to OpenStreetMap so some day with the uptick in usage they may become a pay service as well but not yet. I should also add I am converting all google maps over to leaflet. It has fewer styling options but looks good and works very well.
  21. Hey Adrian, I'm sure I must have had it config'd wrong but I needed something quick so I just went with a front end option. I uninstalled already.
  22. Yeah I have the same problem. Except no matter what settings I put in config I can't get options to appear and when I export the csv I get a completely blank file. It looked promising. Maybe it's not compatible with pw 2.8.62
  23. I fixed it in phpmyadmin. I haven't seen this behaviour with Import from CSV before either. If it's not a bug, and it likely isn't, the fact that the space doesn't appear in the admin when it does appear in phpmyadmin and effects sorting, I think is an issue.
  24. I know what the problem is. I went into phpmyadmin and looked directly at the field value in the table. Most of the values have a leading space before the street name, the ones that do not are the ones appearing at the tail end of the list. The space is not visible when you view the field in the admin. @ryan Is this a bug in the Import Pages From CSV module? The CSV file I imported had no leading space and I did a zap gremlins (BBEdit) before import. Although I can't verify that the zap gremlins command actually did what it says it will do. Is there an easy way to fix it or do I have to go through manually and remove the space? Edited to add: @wbmnfktr I was drafting this post as you were posting your question. You got it. A phantom space in the database.
  25. No I get the same result when using street directly in the selector. I did try it with the limit removed which effectively removes the pagination as well. If there's something different about the wrong sorted entries I can't see it. They were all imported by csv at the same time from the same file created in the same way. The server it's on is the dev-environment. I just moved the necessary files to the root when publishing. I also tried foreach($members->sort($sort) as $member) { echo "<li class=\"member-item\"><div class=\"member-name\">{$member->last_name}, {$member->first_name}</div><div class=\"member-address\">{$member->street_number} {$member->street}</div></li>"; } Which did not work either.
×
×
  • Create New...