wpmetabox / meta-box-text-limiter Goto Github PK
View Code? Open in Web Editor NEWMeta Box Extension: Add option to limit text/textarea fields by characters / words
Home Page: https://metabox.io/plugins/meta-box-text-limiter/
Meta Box Extension: Add option to limit text/textarea fields by characters / words
Home Page: https://metabox.io/plugins/meta-box-text-limiter/
Hi guys,
Using the text-limiter plugin for the first time since my custom one created a long time ago has stopped working and don't have time to fix... :-)
I have a problem though. When I call a limited field in the frontend like this:
$diary_description = rwmb_meta('diary_description');
I get the following:
Warning: explode(): Empty delimiter in /home/****/public_html/wp-content/plugins/meta-box-text-limiter/text-limiter.php on line 98
Warning: array_slice() expects parameter 1 to be array, boolean given in /home/****/public_html/wp-content/plugins/meta-box-text-limiter/text-limiter.php on line 102
Warning: implode(): Invalid arguments passed in /home/****/public_html/wp-content/plugins/meta-box-text-limiter/text-limiter.php on line 102
Any thoughts?
Cheers,
Will
Hi,
This addon would have been more useful to me if there was an option to set a soft limit, so that once the limit is exceeded it doesn't prevent further input, and rather displays a warning, or appends a class to the field so we can change the background colour.
I've been using the jQuery Text Counter Plugin v0.8.0 plugin up to now, which allows me to do this, but of course the nice thing with the metabox limiter is that it can be set up directly via the field settings rather than custom coding it each time.
Until you saved them. But I found a quickfix for this issue: at file text-limiter.js
just add Limiter.init();
after line 73.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.