Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

11 Good

About phil_s

  • Rank
    Jr. Member
  • Birthday March 1

Profile Information

  • Gender
  • Location
    Vienna, Austria

Recent Profile Visitors

2,249 profile views
  1. Dummy question here: If I wanted the plugin to add a specific player parameter to all youtube shortlinks (e.g. enablejsapi=1) where would be the best place to add this? I changed line 170 to: "&format=json&maxwidth={$this->maxWidth}&maxheight={$this->maxHeight}&enablejsapi=1&html5=1"; but since the oembed?url gets rewritten by youtube I'm not sure this is working. Any pointers? Cheers guys!
  2. Thanks again guys, Just a quick update for anybody else who might run into this. Simply filtering out these: RewriteCond %{REQUEST_URI} !\.(cgi|pl|asp|rar|zip)$ [NC] RewriteCond %{REQUEST_URI} !wp-.*\.php$ [NC] ...took care of my problems. (No more crashes too) Cheers!
  3. Exactly what I needed... have only been cross-reading but: very interesting article with lots of hands on information, thanks a bunch!
  4. Hey there, A friend's server (php, to be exact) is now going down rather frequently (still irregular but almost every week), and I am trying to get to the bottom of it. It's a serverpilot configured small to middle tier DO Ubuntu server, running php 7 on nginx, https only, (with a letsencrypt certificate added manually by me, not via serverpilot) When looking through the various log files I found a couple of things I couldn't place, can you guys make anything of this? This happens multiple times a day (form different IPs) and goes on for 40-50 pings: - - [07/Mar
  5. Hi foks (Not sure if this would make more sense in the dev forum, feel free to move if necessary...) I am trying to do the following... In $page->introtext (a textfield with markdown parser) 1. find the link in which the href matches my $current_urlsegment var 2. Change the href to $link_to_overview 3. Add a ".active" CSS class to it 4. Get the whole thing back into the array 5. Output the array. To add a bit of context: - This is for a text that contains links to segments of a page. When a user clicks on a link (selects a segment), the surrounding text is fade
  6. Makes sense, thanks for the detailed explanation! Can you elaborate on what the profile check / assign @line 214/215/216 does? Is this only for checking if the image profile is Grayscale? What caught my eye initially in the brasseur guide was the following part, at the end of the gamma section: This would imply that there is a more accurate and I would guess more convenient way to do the whole conversion dance? This sounds perfectly reasonable, except for the ubiquitous "don't use save for web" caveat. "Save for web" removes the EXIF data, removes attached image profiles,
  7. What are your experiences with profile/color consistency when using Image Magick for resizing? I know @horst is probably the person with the most experience on this, (hope you can chime in here Horst) Problem: I noticed that In some cases Image Magic resized jpgs appear darker than the original, and after some digging it appears to involve various factors concering both the image preparation (Photoshop's save for web and even general profile handling before that) and the way the Image Magic resizing process is setup. - Images with an embedded (srgb) profile that were exported via
  8. While looking for a way to add target="_blank" to markdown formatted fields I came across these little gems in the TextformatterMarkdownExtra.module (in the wire>modules>textformatter folder, I'm running v3.0.33). Turns out someone (Ryan? Did you add this?) already thought of it: /** * A couple RCD extentions to MarkDown syntax, to be executed after Markdown has already had it's way with the text */ protected function markdownExtensions(&$str) { // add id attribute to a tag, when followed by a #myid if(strpos($str, '>#')) $str = preg_replace('/<([a-z][a-z0-9]
  9. Sorry, I should have been more specific. What I meant to ask was: It would be interesting to hear how other people manage their PTE pages when they're not direct children. In my case choosing a custom (hidden from the client) parent for the layout would indeed be less confusing, but it would also mean that under the custom parent, all layout blocks (hundreds) from all projects would be listed without any context right? Not that the context is needed there, just need to get the OCD in check I guess..
  10. Oh, nice It seems reading the manual helps as usual. Sorry. @Robin S How do you keep order without the context of the parent? (assuming you are using PTE for a similar setup)? Thanks a bunch guys!
  11. Just wondering why you would need to do this... I use PTE as a visual editor for modular layout blocks in a project page template of a Portfolio website. The client can create and arrange blocks with various configurations to build the individual project pages. The blocks will get added as children of the project page. The page tree thus looks something like this: home + projects + first project + block-fullwidth + block-fullwidth + second project + block-twohalves + block-fullwidth ... In theory the obvious benefit of using PTE here is that the client
  12. @MadeMyDay Looking forward indeed! Such an amazing module. Running smoothly on ProcessWire 3.0.30 devns here btw. One small quibble: How would you get the sort order from the drag and drop view of the module to correlate to the child pages in the tree view? As Jens pointed out, it seems there is currently no possibility to sync these two up or render/access the module's custom sort order? Cheers! Phil
  13. This works indeed! (telnet localhost 3000 connects..) Hum.. # iptables -L -n works, but there is no listing for a port 3000. So it should not be blocked? I also tried: curl -s localhost:3000 >/dev/null && echo Connected. || echo Fail. which results in "connected" Thanks Francesco!
  14. Hi guys, I have replicated my local gulp workflow on a digitalocean droplet, and I can't seem to get browsersync to work. Has anybody tried this before and can chime in? My PW install is at http://clients.domain.com/clientname/ In there, my folder setup looks like this, so gulp runs from the /templates folder: clients + public + clientname + site + templates + node_modules + gulpfile.js + package.json + src/ + assets/ I tried all kinds of shenanigans including leaving out any proxy settings, setting a proxy, dif
  15. @LostKobrakai thanks, this is actually what I am doing in the template right now $options_medimg = array( 'quality' => 60, 'upscaling' => false ); $options_smallimg = array( 'quality' => 48, 'upscaling' => false ); and then for the srcset: ... <img srcset=' {$image->width(1860, $options_largeimg)->url} 1440w, {$image->width(1600, $options_largeimg)->url} 1280w, {$image->width(800, $options_medimg)->url} 640w, {$image->width(480, $options_medimg)->url} 320w' sizes='(min-width: 1280px) 90vw, 100vw' src='{$image->width(320, $options_smallimg)
  • Create New...