Welcome to Geeklog, Anonymous Tuesday, November 26 2024 @ 11:53 pm EST
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
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
7
12
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."
9
5
Quote
All times are EST. The time is now 11:53 pm.
- 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