Blog automation
This commit is contained in:
@@ -705,20 +705,28 @@ long RecoCheckBlog( int itm_count, CVars in, CVars &out ){
|
||||
const PGresult *res;
|
||||
char vname[30];
|
||||
try {
|
||||
|
||||
// SELECT title,id,banner FROM blog_selections ORDER BY RANDOM() LIMIT 1;
|
||||
// title | id | banner
|
||||
// -------------------------------------------------+----+----------------------------------------------------------------------------
|
||||
// ime and price management when working an online | 3 | https://blog.wrenchboard.com/wp-content/uploads/2022/01/time_manageent.jpg
|
||||
|
||||
load_db_record( out, "SELECT title,id,banner FROM blog_selections ORDER BY RANDOM() LIMIT 1 ");
|
||||
|
||||
int ic = itm_count;
|
||||
long member_id = REQ_LONG(in, "member_id", 1, -1);
|
||||
|
||||
snprintf(vname, sizeof (vname), "title_%05d", ic);
|
||||
out[vname] = "Paying mind to similarity index";
|
||||
out[vname] = out["title"];
|
||||
|
||||
snprintf(vname, sizeof (vname), "description_%05d", ic);
|
||||
out[vname] = "The similarity index is a term you should be familiar with as an online writer. It is defined as the composite number that is highlighted after matching two texts to determine how similar the content from both pieces is.";
|
||||
out[vname] = out["title"]; //"The similarity index is a term you should be familiar with as an online writer. It is defined as the composite number that is highlighted after matching two texts to determine how similar the content from both pieces is.";
|
||||
|
||||
snprintf(vname, sizeof (vname), "card_type_%05d", ic);
|
||||
out[vname] = "BLOG";
|
||||
|
||||
snprintf(vname, sizeof (vname), "offer_id_%05d", ic);
|
||||
out[vname] = "0";
|
||||
out[vname] = out["id"];;
|
||||
|
||||
snprintf(vname, sizeof (vname), "blog_id_%05d", ic);
|
||||
out[vname] = "37";
|
||||
@@ -727,7 +735,7 @@ long RecoCheckBlog( int itm_count, CVars in, CVars &out ){
|
||||
out[vname] = "icon1";
|
||||
|
||||
snprintf(vname, sizeof (vname), "banner_%05d", ic);
|
||||
out[vname] ="https://blog.wrenchboard.com/wp-content/uploads/2022/01/wrechboard-sample.jpg";
|
||||
out[vname] = out["banner"]; //"https://blog.wrenchboard.com/wp-content/uploads/2022/01/wrechboard-sample.jpg";
|
||||
|
||||
snprintf(vname, sizeof (vname), "banner_location_%05d", ic);
|
||||
out[vname] ="URL";
|
||||
@@ -742,10 +750,10 @@ long RecoCheckBlog( int itm_count, CVars in, CVars &out ){
|
||||
out[vname] = "Read Now";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_title_%05d", ic);
|
||||
out[vname] = "Article - Similarity Index";
|
||||
out[vname] = out["title"]; //"Article - Similarity Index";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_description_%05d", ic);
|
||||
out[vname] = "Similarity index is a term you should be familiar with as an online writer";
|
||||
out[vname] =out["title"]; // "Similarity index is a term you should be familiar with as an online writer";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_style_%05d", ic);
|
||||
out[vname] = "short_style";
|
||||
|
||||
Reference in New Issue
Block a user