Responsive design fixes and updates for Volvo retailer landing page.
Depending from where you want to access the page, post or custom post-type data, it might not always be available that easily.
WordPress provides an option to get your data through the page-slug.
The function is called get_page_by_path.
1 |
$page = get_page_by_path( basename ( $_SERVER['REQUEST_URI']),OBJECT, "your-post-type" ); |
I am currently working on a client project with a custom solution from someone else, that has messy date strings all over … oh what fun :)
STR_TO_DATE to the rescue! [MySQL Date functions]
1 2 3 |
SELECT whatever FROM table WHERE STR_TO_DATE('21-02-2016', '%d-%m-%Y') > CURDATE() |
’21-02-2016′, ‘%d-%m-%Y’ does the magic and tells STR_TO_DATE how to treat the string.
Specifier | Description |
---|---|
%a |
Abbreviated weekday name (Sun ..Sat ) |
%b |
Abbreviated month name (Jan ..Dec ) |
%c |
Month, numeric (0 ..12 ) |
%D |
Day of the month with English suffix (0th , 1st , 2nd , 3rd , …) |
%d |
Day of the month, numeric (00 ..31 ) |
%e |
Day of the month, numeric (0 ..31 ) |
%f |
Microseconds (000000 ..999999 ) |
%H |
Hour (00 ..23 ) |
%h |
Hour (01 ..12 ) |
%I |
Hour (01 ..12 ) |
%i |
Minutes, numeric (00 ..59 ) |
%j |
Day of year (001 ..366 ) |
%k |
Hour (0 ..23 ) |
%l |
Hour (1 ..12 ) |
%M |
Month name (January ..December ) |
%m |
Month, numeric (00 ..12 ) |
%p |
AM or PM |
%r |
Time, 12-hour (hh:mm:ss followed by AM or PM ) |
%S |
Seconds (00 ..59 ) |
%s |
Seconds (00 ..59 ) |
%T |
Time, 24-hour (hh:mm:ss ) |
%U |
Week (00 ..53 ), where Sunday is the first day of the week |
%u |
Week (00 ..53 ), where Monday is the first day of the week |
%V |
Week (01 ..53 ), where Sunday is the first day of the week; used with %X |
%v |
Week (01 ..53 ), where Monday is the first day of the week; used with %x |
%W |
Weekday name (Sunday ..Saturday ) |
%w |
Day of the week (0 =Sunday..6 =Saturday) |
%X |
Year for the week where Sunday is the first day of the week, numeric, four digits; used with %V |
%x |
Year for the week, where Monday is the first day of the week, numeric, four digits; used with %v |
%Y |
Year, numeric, four digits |
%y |
Year, numeric (two digits) |
%% |
A literal “% ” character |
% |
x , for any “x ” not listed above |
As I said before, Learning Management is really taking off and I get many client requests to do some kind of integration or custom solution for them.
What is a LMS?
A Learning Management System (LMS) is a software application for the administration, documentation, tracking, reporting, and delivery of educational courses, training programs, or learning and development programs.
It is used by organizations to manage and deliver their internal training programs and can be used by schools and universities for managing online courses as well. An LMS typically includes features such as creating and delivering content, user management, tracking progress, assessments, reporting, and collaboration tools.
In one of my latest articles I started listing solutions for WordPress, WordPress and the LMS universe.
But those solutions might not always be the best fit for your project. Many of them actually try too hard to be everything. The amount of cross linked functionality is getting insane and increases the point of failure.
In some cases a trimmed down solid solution might be the better way to go. SaaS (Software as a Service), part of the cloud trend, is providing more and more options, this includes the LMS arena.
A SaaS solution refers to software that is delivered to users over the internet, typically on a subscription basis. Instead of installing and running the software locally on individual computers or servers, users access it through a web browser or a thin client. The service provider manages the infrastructure, maintenance, and upgrades of the software, allowing users to benefit from the latest features and improvements without having to manage the underlying technology themselves.
Stop worrying about the software and concentrate on your content again. The SaaS provider takes care of functionality, support, updates and delivery.
This is nothing new, solutions like TalentLMS or Litmos LMS offer this for some time now.
TalentLMS is a cloud-based Learning Management System (LMS) designed for small to mid-sized businesses and organizations. It offers features such as creating and delivering online courses, tracking progress and performance, reporting, and integrations with other tools like Google Drive, Dropbox, and Zapier. TalentLMS also includes mobile learning capabilities, allowing users to access courses on their smartphones or tablets. The platform is easy to use and offers a range of customization options for branding and layout. It also includes features for creating and managing certificates and badges for learners upon completion of courses.
Litmos is a cloud-based Learning Management System (LMS) designed for businesses and organizations of all sizes. It offers features such as creating and delivering online courses, tracking progress and performance, reporting, and integrations with other tools like Salesforce, Marketo, and Google Drive. Litmos also includes mobile learning capabilities, allowing users to access courses on their smartphones or tablets. The platform is easy to use and offers a range of customization options for branding and layout. It also includes features for creating and managing certificates and badges for learners upon completion of courses. Additionally, Litmos offers features for automating course assignments, tracking compliance with regulatory requirements, and providing personalized learning experiences for individual learners based on their performance and progress.
Modern SaaS solutions provide Public APIs, that allow you to seamlessly integrate them with your current solution. So in case of a LMS, that part of your project could be handled by the SaaS provider, while e-commerce, social and other content areas remain under your full control.
We are looking at a very crowded LMS market, but always nice to have options :)
Now that Parse is phasing out (01/2017), people are looking for alternatives that offer:
Collaborative list of Parse alternative backend service providers @ GitHub
CodePress Admin Columns allows you to manage and organize columns, for posts, users, comments and media lists in the WordPress admin panel.
This little tweak allows you to add sorting to your columns. Add and adjust depending on the columns you have setup.
1 2 3 4 5 6 7 8 9 |
function admin_columns_users_registered_column_sortable( $columns ) { $custom = array( "column-user_registered" => "user_registered", ); return wp_parse_args( $custom, $columns ); } add_filter( "manage_users_sortable_columns", "admin_columns_users_registered_column_sortable" ); |
LaunchControl is a fully-featured launchd GUI allowing you to create, manage and debug system- and user services on your Mac.
“Switcher Studio is a mobile production suite that allows content creators to use an iPhone or iPad as a portable video mixer. Share your events and engage your audience using the power of video without spending thousands of dollars on expensive cameras and gear. All you need is Switcher Studio and an iPhone or iPad – record the video output to your primary device and stream live video anywhere with an internet connection. Send video in real-time to your preferred content delivery network (CDN). Stream to services like YouTube, Ustream, Bambuser, Concert Window, The Cube and more. Switcher Studio is compatible with most RTMP streaming platforms”
Really like what they have to offer, will have to take it for a spin soon …
Anyone using WPLMS 1.9x should wait and not update to 2.0x yet.
Not all bugs are fixed and I see many users having problems, just by reading the support forums and the comments over on Envato.
I have a vanilla test environment of WPLMS 1.9x on my testserver and i had no problems until 2.0 came along.
The last customtypes plugin update today killed the setup completely. Many of the old child themes break or have parts broken. Fresh sample data is not working either. Sadly some of my customers already did an update themselves …. perfect ! Will be a long weekend.
I am doing a complete reset of my test environment and waiting for the next update :)
Rant: This theme / plugin is getting too bloated in many areas. Two many unknown variables, due to the huge amount of dependencies …
Nice set of Google Analytics helper plugins.
Riveted is measuring the amount of time users are actively engaged (e.g., clicking, scrolling, using the keyboard) and then reporting the data to Google Analytics in frequent intervals. GitHub
Scroll Depth is a small Google Analytics plugin that lets you measure how far users are scrolling. GitHub
Screentime is a small tool that helps you start thinking of your website traffic in terms of time instead of hits (pageviews, visits, etc). You can define areas of the page, called Fields, and then Screentime will keep track of how much time each Field is on screen for. GitHub