Welcome to Geeklog, Anonymous Tuesday, November 26 2024 @ 06:34 am EST

Geeklog Forums

Plugin Help


Yeraze

Anonymous
I'm trying to write a plugin that will show digg, reddit, del.icio.us, etc button on stories. I had thought I would simply add them to the "Story Options" block but I can't find any plugin hooks to allow me to add things to that. IS there any plugin callback that I can use to add things to stories ?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The closest we have to an API for the story options is PLG_itemSaved, which is currently only called from the Admin's story editor. And you would have to mess around in the "related" text yourself, e.g. taking care that you don't add your link a second time when editing the story.

Alternatively, you would have to hack STORY_whatsRelated (in system/lib-story.php).

bye, Dirk
 Quote

All times are EST. The time is now 06:34 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