-
Posts
868 -
Joined
-
Last visited
-
Days Won
1
Everything posted by DaveP
-
I was going to mention the off-canvas menu also and, unlike OrganizedFellow, I like it. But I am on mobile, so haven't experienced it on a bigger screen.
-
On mobile so just a quick one -https://processwire.com/talk/topic/10448-css-only-responsive-multi-level-menu/
-
Don't know if this is relevant, but you can always use $page->getUnformatted() in your templates on a field-by-field basis.
-
@kongondo Lots of tools on the web - http://get-site-ip.com/ for example.
-
The specific error message in Chrome on mobile mentions a server misconfiguration. I'd be inclined to pursue that possibility some more.
-
Welcome, John. 50 isn't old.
-
Pagekite is another option - see this post.
-
...or maybe be able to configure processUpgrade to use a second GitHub source as well as the official repository?
-
Has anyone mentioned The Penguin Café Orchestra yet? I rediscovered them recently.
-
Not a proper solution, but you could just change the username temporarily, or add 'xxx' or something to it.
-
Hi kriegar, and welcome! If I understand your question (and please forgive me if I don't), the subfield selectors are something you want to add to your selector string ($query above)? Incidentally, $query looks like it should work from what I can see, and you obviously (from var_dump($query); above), have a good handle on debugging your code. Have you seen http://processwire.com/api/selectors/#subfield ? It should be as easy as you expect (PW often is, and some times even easier than that). Also, take a look at https://processwire.com/api/fieldtypes/repeaters/ as that talks about the same sort of thing.
-
I think you can do it simpler than the way you are doing. <?php $bgimage = $page->Background_Image; $output = "<script> $.backstretch(["; foreach($bgimage as $image){ $output .= '"'.$image->url.'",'; } $output = rtrim($output, ','); $output = "], {duration: 3000, fade: 750});"; echo $output; Usual written-in-browser caveat. So, what we are doing is building our output as we go along. The main (minor) advantage is that after the end of the foreach we can strip off the last trailing comma using rtrim. It doesn't matter how many background images there are - 1 or n. Darn! LostKobrakai beat me to it (with a very elegant reply).
-
https://dev.mysql.com/doc/refman/5.1/en/regexp.html#operator_regexp
-
Yes, because (from the php manual page)
-
Escaping (or entity encoding) of output can be done automatically at field level. Take a look at the 'Details' tab on e.g. a textarea field like the standard 'body' field. Under 'Text Formatters' you should see 'HTML Entity Encoder (htmlspecialchars)', which applies http://php.net/htmlspecialchars to the field's content when output. Depending on the sources of your field data, this might not really be necessary - if you absolutely trust everything you could be outputting it probably isn't. On the other hand...
-
There's a real security concern to just having the one USB Type-C port and no other way of charging the device. It means that just to charge it you are connecting a fully-enabled data port to a potentially hostile connection - especially if you leave your own charger at home or plug into a charging port integrated into a power socket. How do you know that all your machine isn't being compromised as well as charged?
-
Just spotted a blog post about this subject. May be of interest/help.
-
Looks like quite a few people have been looking and coming to similar conclusions! Few of my random thoughts- Vanilla probably should be favourite but I just can't get on with their website mixing links to the open & commercial versions - you just don't know which version you are reading about. Discourse is lead by Jeff Atwood (stackoverflow etc) and it shows. Now that's not necessarily a bad thing, but it is maybe a bit too radical a departure. And a complete resource hog with an unhelpfully non-php backend. There are responsive (or very nearly responsive) skins/templates for quite a few forums (SMF & phpBB for example), although there are still hundreds of table based ones. There is a distinct lack of integration tools available out of the box for the vast majority of forums.
-
Is PW a "better" fit for my needs in regard to sort query results?
DaveP replied to ZionBludd's topic in Getting Started
Welcome, mattcohen. Does WP let you sort search results by anything other than date yet? What diogo and LostKobrakai said, but I'll add a little bit. From your question, it looks like you know some php or at least prepared to learn (or you know loads). Take a look at http://processwire.com/api/selectors/. There's a lot to take in, but it will give you an idea of the power of PW selectors (especially http://processwire.com/api/selectors/#examples). We, of course, think/know PW will be a wonderful fit for your expressed needs but that's because we have been here a while. Maybe have a play with the Skyscrapers profile, on which some of those examples are based. The search page there is somewhat more detailed than in the PW install, and gives more of a feel for what you can do. -
-
Hi, webaff and welcome. There are a couple of things you can do: Take a look at ProcessRedirects. This module offers an easy way to redirect old urls to current pages. No point losing link equity if you can redirect meaningfully. (This would be my preferred option.) Head off any 'rogue' URL segments in your templates (in 'head.inc' or equivalent). This tutorial gives plenty of info - page 3 deals with throwing 404s.
-
An understated synopsis of a very well realised site. Everything just works - the colour scheme, layout and typography ('Raleway' is perfect in this context) are all beautifully done. Bravo.
-
Working ok for me. (Is it me, or is Chrome really cr*p these days?)
-
Assuming you are using javascript for the dropdowns (jQuery or the like), you could add a CSS class that way, and not need to change the module. If you want to post a sample of the markup you are outputting, we'll give it a go.