The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello,
I have points mod in my site. I want to remove points if user post thread in X forum. I search the class of the thread post and i dont find him... Where the post thread function is? tnx! |
#2
|
|||
|
|||
![]()
I think you can use hook newpost_complete, and check for $type == 'thread' (if $type == 'reply' it's a reply and not starting a thread). This is in includes/functions_newpost.php around line 690 (the end of function build_new_post()).
|
#3
|
|||
|
|||
![]()
I try to add this:
PHP Code:
PHP Code:
why? |
#4
|
|||
|
|||
![]()
To be honest, I don't know what 'folderid' is for (maybe for when you select a subscription folder?). If you want to check for a forum id, then I think what you want is to check $foruminfo['forumid'].
Edit: one other thing - that location is pretty early in the function, and there could be an error or the user could be previewing the thread, so you might not want to subtract your points there. If you want to do it only when the thread or reply is posted then you'd want to do it after $dataman->save() is called. |
#5
|
|||
|
|||
![]()
Success!
tnx! |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|