Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
cbe_rand_content : generate fake content
A recent post from gfdesign reminded me that I wrote this plugin a couple of years ago because I needed to quickly populate articles (title, body and excerpt) and comments.
It generates funny text like that :
Yqipsfnaw boionfa eibhgukl ufu nikyewtf ua uft akba oprks. Wevpkhrfi cefgm oqnahe ahpage el. Xduajaeo hg avfid kjh twkan igxju wu iuvobykh nvhhrrs. Dexx ue wdoaeov oatailoa ifpmd dis.
I developed it very quickly without worrying about optimization or admin preferences. That’s why I put it in a corner and have forgotten there.
It is now hosted on Github so that everyone can download and improve it.
If you only need to install and run it, here is the text file.
Last edited by CeBe (2015-07-21 17:52:31)
Offline
Re: cbe_rand_content : generate fake content
That’s a funny one! Enhance it with some word generator, and it will beat me at writing.
Offline
Re: cbe_rand_content : generate fake content
Okay…
Fork, amend, pull request (if you want) :)
Offline
Re: cbe_rand_content : generate fake content
The generator said
<li>the probabilities to 8 characters each would probably wants to receive "plugin.php >
// Use and end with Textpattern"
Offline
Re: cbe_rand_content : generate fake content
Offline
Re: cbe_rand_content : generate fake content
I fed this nifty text generator with your plugin’s code. :)
I think, if your plugin spoke some Earthlish language, Pete could use on his demo site, to populate various article lists.
Offline
#7 2015-07-21 13:43:50
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,304
Re: cbe_rand_content : generate fake content
Hi Claire, thanks for setting up this plugin with some well considered functions for generating different article types (I had a quick look at the help while in installation preview). Unfortunately I’m getting
Fatal error: Call to undefined function _cbe_rndc_init() in /Users/Uli/Sites/txp457/textpattern/lib/txplib_misc.php(615) : eval()'d code on line 160
on finishing the installation. It’s on an almost Vanilla installation of a local 4.5.7 (only gbe_permlink is installed). Can I provide you with some more information?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: cbe_rand_content : generate fake content
etc wrote #293578:
I fed this nifty text generator with your plugin’s code. :)
Ah!
I think, if your plugin spoke some Earthlish language, Pete could use on his demo site, to populate various article lists.
We’ll see when (if..?) my neurons are back from vacation.
Unless someone does it before.
Offline
#9 2015-07-21 14:39:17
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,304
Re: cbe_rand_content : generate fake content
uli (me, myself) wrote #293584:
Can I provide you with some more information?
I found out that I can install cbe_rand_content with ied_plugin_composer’s installation routine: No hickups, and it works properly (thanks again).
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: cbe_rand_content : generate fake content
uli wrote #293584:
Unfortunately I’m getting
Fatal error: Call to undefined function...
Uh, sorry… I was replying to etc’s message and completely missed yours.
Anyway, it’s repaired now, and some other potential issues have been fixed too.
Technical note:
_cbe_rndc_init()
was missing, is now there, but does nothing. It is just a placeholder for future versions, if this should happen. It also means that your installation is functional.
Offline
#11 2015-07-22 12:13:59
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,304
Re: cbe_rand_content : generate fake content
CeBe wrote #293595:
Uh, sorry… I was replying to etc’s message and completely missed yours.
No problem, we’ve written at the same time.
Anyway, it’s repaired now, and some other potential issues have been fixed too.
Merci bien :)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: cbe_rand_content : generate fake content
Just wanted to point to a tweaked update of this plugin for txp 4.8 thanks to bloke, which you can find here.
TXP Builders – finely-crafted code, design and txp
Offline