@simion Version 1.0 of the multipurpose plugin is activated:

Am using Newspaper 8.6
-
This reply was modified 8 years by
support.sd.
Hi,
Can we get the source code for td-composer? The zip that comes with the theme contains only minified JS files.
Regards,
all texte needs to be html encoded & eacute ; é then it is not a problem.
-
This reply was modified 8 years by
support.sd.
-
This reply was modified 8 years by
support.sd.
@simion The theme package contains an older version of the plugin then, can you confirm when the
td-social-counter.zip was last modified? On the theme package that I downloaded from themeforest yesterday it was last modified on March 21 2017 11:26:58.
-
This reply was modified 9 years by
support.sd.
@Simion C. I also have this issue with the latest version. The reason why this happens is because on line 61 of the td_social_counter.js you have written:
facebook_access_token.val( data.replace( 'access_token=' , '' ) );
But data is an object, not a string. You can’t use replace on it. I have fixed this by replacing your code with the following:
if (data.hasOwnProperty('access_token')) {
data = data.access_token;
data = data.replace('access_token=', '');
facebook_access_token.val(data);
} else {
facebook_access_token.val( data.replace( 'access_token=' , '' ) );
}
Hi Bogdan,
Thank you for your reply.
We use default WordPress functions to add our content from a non WordPress site to a WordPress site.
If we use the default WordPress functions for inserting uncategorized posts cat_id=1, we get this error.
Default $cat_id = 1;
$post = array(
'post_date' => date('Y-m-d H:i:s', strtotime($r["object_dateonline"])),
'post_date_gmt' => date('Y-m-d H:i:s', strtotime($r["object_dateonline"])),
'post_content' => $bodytext,
'post_title' => $r["object_title"],
'post_name' => $r["object_title"],
'post_excerpt' => cleanTeasertext($r["object_teasertext"]),
'post_status' => 'publish',
'comment_status' => 'open',
'ping_status' => 'open',
'post_modified' => date('Y-m-d H:i:s'),
'post_modified_gmt' => date('Y-m-d H:i:s'),
'post_parent' => 0,
'post_type' => $post_format,
'comment_count' => 0,
'filter' => false,
'post_category' => array($cat_id), // category ID should be placed here!
);
And maybe you can add this in your next version đ
Adding an “if else condition” around your variable to check if you can use the php function foreach for your variable could be considered as good coding.