Learn how to run PHP 7.0.0 on EasyPHP DevServer 14.1 VC11 with easy 8 steps for less than 10 minutes!
Waiting to EasyPHP DevServer release v15.10 with bundled PHP 7, I went to install latest PHP on my machine running v14.1 VC 11. And, actually, that was quick and easy. You can do it by following 8 easy steps below.
If you already use Easy Webinar Plugin within your WordPress website, and you are on EWP version 4.2.7 or older, you probably noticed kind of slow dashboard. In this article you can learn how to achieve speed up with single code snippet.
If you already use Easy Webinar Plugin (4.2.7 or older) within your WordPress website, you probably noticed a kind of slow dashboard.
But, there is a small lack of it – phone number for location, displayed in bubble on map, has not clickable. So, if you wish to use Skype or other VoIP software on your computer to make a call, you can`t.
Until author make this available (I raised support topic Phone number in bubble as link long time ago), you can apply hack described below to achieve this enhancement.
Step 1: Modify slp.js wrapper
Open this file in editor, and go to line 1223 (this is related to plugin version 4.2.39), just above line that contains case 'fullspan', and insert 4 lines of code highlighted below:
So, you don’t have Enhanced Map, but you wish to modify core file. No problem, it’s legal (as plugin is released under GNU GPL3 license).
Open file /wp-content/plugins/store-locator-le/include/class.slplus.php in your editor and go to line 186 (this is related to version 4.2.39) and replace part of code for phone in Bubble HTML syntax (line 186-187) with version I provided above (three highlighted lines of second snippet in Proper Solution section).
Now when you have set phone number for location, in bubble you’ll have clickable phone number, so visitor can click and call phone by skype or other VoIP software directly from PC/Laptop or mobile device.
Please note, modified files (slp.js and class.slplus.php) will be overwritten on Store Locator plus plugin update. So, remember that before you ask me “where my fix disappeared after plugin/website upgrade” 😉
TinyMCE 4 in WordPress 3.9 break old customization for adding custom colours, so here we have a tip about how to convert old code to new format supported in TinyMCE 4
WordPress 3.9 brings up latest TinyMCE 4 rich text editor as grat speed improvement, but this update break a lot of TinyMCE plugins (advanced image, advanced link, etc), including various handy customizations for TinyMCE editor in WP-way.
One of them are custom colour swatches. Until 3.9 we simply put following code to functions.php and got our own colours in editor:
Change number of colour swatches
Please note, my default TinyMCE 4 have limit up to 40 colour swatches (80 array elements) distributed in 5×8 grid (ROWSxCOLS). So, to append custom colours after default colours, we need to increase number of rows displayed on swatches popup.
To achieve this, we use textcolor_rows parameter.
We even can change grid layout and alter default 5×8 with, for example, 4×10 by setting parameters below:
Please note, this is just example. You can play with layout and colour set as you wish.
How To Add ‘More Colors’ Functionality?
TinyMCE 4 drop support for ‘More Colors’ option, but now there is WordPress plugin TinyMCE Color Picker that brings back this functionality to WordPress 3.9+
Learn how to preselect value in dropdown list when custom Visual Composer block is added to page/post layout, based on default plugin settings.
I’m currently implementing support for Visual Composer to my plugins, and went to not well documented dropdown attribute parameters.
So, when we have array of available values (no matter if array contains key=>value, values only or it’s mixed), and we also have default value for that parameter set in plugin options (for example), it is possible to preselect that default value in dropdown list.
Even you will not find clear explanation about how to do that in WPBakery Knowledge base for vc_map() functionality, if you dig plugin files, or analyse other plugins, you’ll find it for sure 🙂
Example parameters for dropdown attribute
So, here we go. Magic parameter that we need here is std, and should contain default value (key for multidimensional array). Here is demo code:
As you can see above, we set default value dynamically, based on defaults provided by function.
Easy Tables for Visual Composer allows you to use only text content, but shortcodes are not processed. We have a working solution.
Easy Tables is a table manager for Visual Composer that allows you to create and manage tables with drag and drop interface. Main difference between tables inserted through TinyMCE inside VC Text Block is that Easy Tables use standalone block.
Currently, only text can be inserted as content of cells, and shortcodes are not processed. So, we have a solution for that lack (until author implement this functionality to original plugin).
Easy Tables hack
It’s really easy. Simply open plugins file /wp-content/plugins/easy-tables-vc/lib/templates/vc_table.html.php and change last line in file that says
And voila, all shortcodes inside Easy Tables cells will bee processed.