Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

mantis

Privileged
  • Joined

  • Last visited

Everything posted by mantis

  1. Bravo Teodora!!! I'm also going through the ones on Code School. It seems I'm getting struck with work once again which is eating into my studying time
  2. It was probably when you went to get more cider
  3. First, you can force SSL in wp_config.php using define( 'FORCE_SSL_ADMIN', true ); If you continue to get errors they are most like likely coming from media attachments where images were included via the editor pre SSL. I wrote about it here: http://www.kirstencassidy.com/force-ssl-for-wordpress-media-attachments/
  4. I would do something like this <?php $fruits= array('Apples', 'Bananas', 'Coconuts'); printf( __( 'I love %1$s, and %2$s.', 'my-text-domain' ), $fruits[0], $fruits[1] ); ?> If you need to change the position of the elements then do so in the array rather than in the output.
  5. You can customise the WordPress feed by copying the appropriate feed template in wp-includes and using the load_template() function to include the modified version in a plugin (preferably) or in a theme. There is some more information about customising feeds here https://codex.wordpress.org/Customizing_Feeds You could also probably use one of these hooks https://codex.wordpress.org/Plugin_API/Action_Reference#Feed_Actions to modify the feed.
  6. So for those who didn't make the meeting last night we discussed a great many things including curry, poo, contracts, and mountain climbing. We also mentioned JavaScript once or twice. @@citypaul gave us some homework which can be found on the slack channel. You will need the link there to do it and it involves watching videos. Some of us were were making our own forEach functions to better understand callbacks. https://gist.github.com/mantismamita/1b092e5427a1d8e66abc
  7. I might have to try that. I like that they have php
  8. I've only done through question 6. I'm a bit caught up with work but hopefully I'll get a chance to do a few more before Thursday. This http://www.codewars.com/?language=javascript is pretty entertaining for anyone who wants to freshen up on their JavaScript.
  9. More videos : http://nodecasts.net/
  10. mantis replied to Aled Mann's topic in WordPress
    WordPress generates several images sizes by default and more if you specify so you need to go into your template file and see what code is being output. It is probably something like: <?php the_post_thumbnail('medium'); ?> You could try changing the 'medium' to another image size in this case.
  11. Hmm, well if you're just collecting it then perhaps another database would make sense but I would think just keeping the information in separate tables should be sufficient in the event that someday you change your mind and do need the data as part of your installation. Security wise, is it because it is especially sensitive information or just as a precaution? Its worth using an SSL protocol if you are collecting anything sensitive. Also make sure properly escaped and use nonces (number used once) https://codex.wordpress.org/WordPress_Nonces to add a security token.
  12. I've never tried it. I guess now isn't the time to start On Question 6 and published my answers here https://github.com/mantismamita/learnyounode-sols/tree/master I'm not worrying about refactoring for now. Hopefully I'll get through another couple questions before Thursday but I won't have much time.
  13. mantis replied to mantis's topic in Server Side
    Hey there @@citypaul Not so bad to have a break from internet access every now and then I actually stopped short of doing the mockups and continuing the feature list as I wasn't sure to what degree everyone had agreed on the idea and thought it might be a better use of time if we collectively agree on some things before going any further. Notably whether this is the kind of app we want to build. I'm not entirely opposed to a facebook belly app if that's the direction we want to go in. Perhaps we could do a poll or something to see if we agree on this idea to begin with? Enjoy your hols!
  14. I had the opposite happen with Q3 and Q4. They returned the wrong number of lines but passed. Or maybe I just can't count.
  15. Thanks @@rbrtsmith I'm sure I'll be PM ing you here at some point. Another resource for anyone who likes videos: http://devfreecasts.org/nodejs/
  16. mantis posted a topic in Server Side
    As per our meeting last Thursday here is my idea for an app we can all work on. My original idea for a star reward chart (presumably for children and parents) isn't terribly exciting and could perhaps be better adapted to something we can all use. Star reward chart (for personal projects?) it should allow for multiple users. it should save user data (I think we discussed localStorage?) it should save a point value for each user it should play a little tune with a small animation each time a user reaches a milestone it should play a longer tune with a better animation when a user reaches a predefined goal it should list all users and the number or stars they have received it should show information the user wants to share It should allow the user to determine what they want to share to be continued... I was thinking about it in the context of learning node or any other technology or language and though it might be good to have something like a list of goals and milestones to get to a finished goal or project. For example, I have several side projects that I work on from time to time and I occasionally have periods of progress but the project goals are not really written down anywhere and I don't often make the time for them. Something that does help motivate me is public accountability. If I say I want to do something by a certain date or spend x amount of time per day on something I am more likely to do it if I've announced it. There are lots of apps that have todo lists and project planners but I find they do really cater to personal projects and most are quite complex. Incidentally there is an app called coach.me that does something like this but its not adapted for side projects and mainly wants you to pay someone to coach you along. At any rate this is the beginning of my idea. Perhaps we could all come up with one and then either elaborate on them or decide on one. @@citypaul suggested using "it should" and "it shouldn't" to determine functionality.
  17. Ah, I don't feel so bad then. I eventually got through Q4 but I'm reviewing my javascript now. Maybe we could post if we get stuck? Otherwise if its right we can just go on. I think if we posted the answers too soon I, for one, wouldn't bother to muddle through them all on my own.
  18. Thursday evening is fine for me too. How do we meet? Google Hangout?
  19. Oooh, just saw this. Haven't been around much but can't resist trying it out
  20. I was going to say that you can embed a Codepen which is essentially the same thing. Doesn't have version control but would be a lot less work
  21. I think you might end up paying more for a free one. WooCommerce has a booking plugin that although not cheap, is one of the better options for WordPress booking systems. http://www.woothemes.com/products/woocommerce-bookings/ It's not cheap but you could probably set it up on your own if you know your way around WordPress. This could also take care of some of the issues with payment gateways and multiple currencies although further plugins may be necessary depending on what you are doing. Otherwise here is a list
  22. So what you really need is to customise the loop so that you are getting one post from each category. You need to start by creating a loop using WP Query Have look at that link there under category Parameters and there should be some examples to get you started. From there it is just a question of using the right markup for your slider. Good Luck!
  23. You're getting the error because you are not providing an array in which to search. You need to search within the individual users for the role of administrator (or your custom role) for example try: <?php $users= get_users(); var_dump($users[0]->roles); ?> then you can use inarray(); In your case you can use a php counter to loop through all of the users.
  24. Looks like there are some javascript errors, notably : setPositionProperty(-(position.left - (slider.viewport.width() - lastChild.width())), 'reset', 0); Uncaught TypeError: Cannot read property 'left' of undefined Its from this function (below) so you'll want to go through it and find out exactly what isn't working here. Have a look at var lastChild = slider.children.last(); var position = lastChild.position(); var setSlidePosition = function(){ // if last slide if(slider.active.last){ if (slider.settings.mode == 'horizontal'){ // get the last child's position var lastChild = slider.children.last(); var position = lastChild.position(); // set the left position setPositionProperty(-(position.left - (slider.viewport.width() - lastChild.width())), 'reset', 0); }else if(slider.settings.mode == 'vertical'){ // get the last showing index's position var lastShowingIndex = slider.children.length - slider.settings.minSlides; var position = slider.children.eq(lastShowingIndex).position(); // set the top position setPositionProperty(-position.top, 'reset', 0); }
  25. This is actually css territory rather than WordPress but you would want to target only the direct children of your nav class like so .bordermenu > ul > li > a{ font-size: 18px; margin-bottom: 50px; padding-bottom: 5px; -webkit-transition: .1s all linear; -moz-transition: .1s all linear; -o-transition: .1s all linear; transition: .1s all linear; } .bordermenu > ul > li > a:hover{ border-bottom: 3px solid rgba(255,255,255,1); }

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.