Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-07-20 07:37:02

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

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

#2 2015-07-20 16:42:02

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

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

#3 2015-07-20 18:22:20

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: cbe_rand_content : generate fake content

Okay…
Fork, amend, pull request (if you want) :)

Offline

#4 2015-07-20 21:45:45

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

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

#5 2015-07-21 12:27:41

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: cbe_rand_content : generate fake content

etc wrote #293561:

The generator said

huh ?

Offline

#6 2015-07-21 13:21:56

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

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,303

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

#8 2015-07-21 13:44:41

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

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,303

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

#10 2015-07-21 18:00:26

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

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,303

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

#12 2020-02-26 20:21:09

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,578
Website

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

Board footer

Powered by FluxBB