The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I want to do something every time a new post is added, but I can't find the file that inserts new posts into the database. It's driving me crazy, and I know it's probably right under my nose.
Does anyone know?
|
|
#2
|
||||
|
||||
|
class_dm_threadpost.php
|
|
#3
|
|||
|
|||
|
Thanks Lynne! Any idea where I would insert some custom code after a new post is inserted into the database? Is it within this function?
function post_save_each_post($doquery = true) |
|
#4
|
||||
|
||||
|
Usually you would use a plugin hook and not edit the files directly... will make upgrading and maintaining much easier in the long run...
In plugin manager look at the hooks newreply_post_complete and newthread_post_comoplete... find those hooks in the php files and any code you add to those plugins will be like they were added to the php files at those hooks. |
|
#5
|
|||
|
|||
|
Thanks BirdOPrey, good to know!
|
|
#6
|
|||
|
|||
|
Still can't figure out how to do what I want.
![]() Basically, I just want the user to get a notification (NOT by email) every time someone replies to a thread they've created or posted in. I'm sure many people have requested this, but I haven't seen a solution for it anywhere so I'm trying to take a stab at it... Any suggestions? |
|
#7
|
||||
|
||||
|
Quote:
|
|
#8
|
|||
|
|||
|
I know, but I want something more than just thread subscriptions. I want instant on-site notifications for multiple actions (the first one being a new post), like Facebook has.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|