CB bot content in fields

More
10 years 9 months ago #49380 by juansolos
Hi,
i try to use the content bot plugin for CB to display cb field of the author in FC fields.

This plugin seems to works only for the main text ($article->'text').

Any idea to be able to display this plugin for other fields, or to add some fields automaticly to the main text.

Regards

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #49382 by ggppdk
Replied by ggppdk on topic CB bot content in fields
Hello

you need to enable content plugin triggering
(find the parameters at the top right of field configuration)

1. enable content plugin triggering parameter

2. then in the plugin list select it
NOTE: if the plugin does not appear in the list
- or -
it appear but selecting it gives no results then SELECT NONE plugin (this means trigger all content plugins including system plugins with content events)

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #49383 by juansolos
Replied by juansolos on topic CB bot content in fields
Thanks.
But i have checked it yet.

Plugin is enable.

Trigger plugn yes. No change if i select plugin or not.

But this plugin can work on maintext.

In the plugin php file, it seems to be generate only for 'title', 'introtext', 'fulltext' and 'text'.

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #49384 by ggppdk
Replied by ggppdk on topic CB bot content in fields
Hello

then you will have to place it in the description text

maybe the plugin is doing some extra check, can not say more without looking into the plugin code

In the plugin php file, it seems to be generate only for 'title', 'introtext', 'fulltext' and 'text'.


when we trigger plugins in custom fields, we pass objects to the plugin's value into the text and also have:
title, text, state, etc

but we do not pass introtext and fulltext properties

maybe a:
introtext = text in our plugin trigger code will fix this


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #49393 by juansolos
Replied by juansolos on topic CB bot content in fields
I try without success to adapt it
There is something like that in the file
Code:
if ( isset( $article->text ) ) { $article->text = preg_replace_callback( '/\{cb:(.*?)\}/s', array( $this, 'replacer' ), $article->text ); }
that i change.
And this
Code:
if ( isset( $article->fulltext ) ) { $text .= $article->fulltext; }
I dont anderstand the relation with the $article and the $item of FC

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #49401 by ggppdk
Replied by ggppdk on topic CB bot content in fields
Hello

$item and $article are just variable names and they are names with a function or "variable scope"

what we give with name
$item

is used inside the bot with name:
$article

And if they bot has:

if ( isset( $article->text ) ) {
$article->text = preg_replace_callback( '/\{cb:(.*?)\}/s', array( $this, 'replacer' ), $article->text );
}


Then nothing needs to be changed,

anyway i meant to change FLEXIcontent code and not the bot


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.314 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save