The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
[solved] update forum counters on hook newpost_process
hello ,
i Create plugin on hook : newpost_process it job move threads to another forumid when user posted duplicate thread Content. PHP Code:
I tried a lot : PHP Code:
after threads greated already . is anyway to make update to forum counters on hook : newpost_process Or another way to update the forum counters when this condition is true ! |
#2
|
|||
|
|||
I think maybe it only works in newpost_complete because when newpost_process is called, the new post has not been saved yet. Maybe you can do something like, in newpost_process:
Code:
if(//Condition) { $dataman->set('forumid', $vbulletin->options['search_duplicate_thread_forumid']); $update_counters = 1; } else $update_counters = 0; then in newpost_complete, Code:
if ($update_counters) { // forum counter build code here } |
#3
|
||||
|
||||
Quote:
Your idea completely succeeded Thank you to my brother :up: |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|