Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 03:17 am EDT

Geeklog Forums

PLG_itemSaved when editing an item


Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
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
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
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
 Quote

Status: offline

mystral-kk

Site Admin
Admin
Registered: 03/19/06
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."
 Quote

All times are EDT. The time is now 03:17 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