Not Solved Replacing Attachment Inside Post
#1
Not Solved
Ive been working on a plugin that hides attachments to specific users.
( I know there are plugins out there, but non that do what I require specifically )

Basically what I have at the moment is this line of code that replaces the the attachment with a custom template:
eval("\$post['attachments'] = \"".$templates->get("hideattachmentsuntilreply")."\";");

The problem is when the attachment is inserted into the post using the 'Insert into Post' button the plugin no longer works.

What can I do to replace the attachment if its placed into the post?

Thanks
Reply


Messages In This Thread
Replacing Attachment Inside Post - by BleepyEvans - 2012-02-13, 06:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)