PDA

View Full Version : How to update post content


Gavo34
06-03-2017, 06:20 PM
Hi,
I want to be able to click a link or button in showthread that updates post content to something I predefine but not sure what hooks to use, or what to use in datamanager.

In postbit_display_complete I can use

if (can_moderate($this->thread['forumid']))
{
$updatetopic = " SOME CODE TO ADD _GET Request?";
$this->post['message'] = $updatetopic.$this->post['message']; }


How can I update the topic with some new text
Say 'UPDATED'

Hook, I don't know? Can I use dataman in postbit_display_complete to do it?

if ($_GET['update_topic'])
dataman set topic data = "UPDATED";


Thanks


Never mind, I got it sorted, Thanks