Welcome to Geeklog Monday, October 23 2017 @ 11:23 am EDT


Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/2005
Posts: 1569
Location:la rochelle, France
Twitter plugin use plugin_itemsaved function to post a story to your twitter account. I wonder if the plugin could make the difference (and how?) between new story and edited story?

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/2005
Posts: 1569
Location:la rochelle, France
I know we could check for the story date, but need to know if someone see another approach.

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

mystral-kk

Site Admin
Admin
Registered: 19/03/2006
Posts: 100
Location:Japan
Quote by: cordiste

Twitter plugin use plugin_itemsaved function to post a story to your twitter account. I wonder if the plugin could make the difference (and how?) between new story and edited story?



Hi Ben,

Since plugin_itemsaved_*** is called EACH TIME an article is saved, it is impossible to tell whether it is a new story or not only by using the function. You have to record story id in a DB table when it is first posted and check for the story id later. As I said in Twitter DM, I just didn't want to use DB when I started to develope the Twitter plugin.
-- mystral-kk, "Every cloud has a silver lining."

All times are EDT. The time is now 11:23 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content