Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Friday, May 24 2013 @ 02:17 AM EDT


 Forum Index > Extensions > Plugins New Topic Post Reply
 Plugin code to run when stories are edited.
   
Anonymous: Gavin
 08/12/08 01:54PM (Read 953 times)  



Hi,

I have a site that uses a custom com_header function in it's theme. There is an image that display's in the header that is based on the story_id, topic_id or static_page_id. Everything works perfect, except when someone edits the story_id, static_page_id, or topic_id.

I remember a few years ago on the dev mailing list there was talk about running plugin code whenever a story is saved, I was wondering if this is implemented?

Basically what I need is whenever a story is saved I would like my code to be passed the old id along with the new id, so I can change my database fields to match the new ids.

Is this possible without hacking any core files?

 
 Quote
Dirk
 08/12/08 02:06PM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
There's PLG_itemSaved, but that's probably too late (I don't think you'll get the old sid). And then there's PLG_itemPreSave, but that's not implemented for the Admin's story editor.

So I guess the answer is "no" Confused

bye, Dirk

 
Profile Email Website
 Quote
Anonymous: Gavin
 08/12/08 02:27PM  



Thanks for your reply,

I wish I would have read it half an hour ago cause I just came to the exact same conclusion.

Gavin

 
 Quote
Content generated in: 0.64 seconds
New Topic Post Reply

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