PDA

View Full Version : Doing something right after a thread is posted


filburt1
04-14-2004, 11:00 PM
I want to execute right after a valid thread is posted (best after build_new_post(), I reckon). However, phpinclude_start is useless in this situation and phpinclude_end does not seem to work either.

So how can I execute arbitrary code once build_new_post() (functions_newpost.php) completes successfully WITHOUT EDITING ANY FILES? Crappy solutions acceptable and I'm out of ideas but the cleaner the better.

VBDev
04-14-2004, 11:11 PM
in the redirect template with a conditional to select if it comes from newpost (will not work if redirect message is disabled :ermm: ) ?!

Why don't u want to edit a file ? Should be really easier :p

Edit : oups, if you want to run code it will not be a good solution :nervous:

filburt1
04-15-2004, 12:45 AM
in the redirect template with a conditional to select if it comes from newpost (will not work if redirect message is disabled :ermm: ) ?!

Why don't u want to edit a file ? Should be really easier :p

Edit : oups, if you want to run code it will not be a good solution :nervous:
I do not want to edit files to make upgrading far easier, especially from an initial release.