![]() |
manually inserting a thread - 3 problems
OK, i've almost figured out how to manually start a new thread. I can get the thread to be started with the first post with the correct username in the correct forum but I am having 3 problems.
1. The user post count is not being updated. 2. I don't know how to pass $postid from build_new_post to build_new_index 3. My search index is not being rebuilt (ie. posts aren't becoming searchable) Here's what i have. What am i doing wrong? PHP Code:
|
AFAIK, calling build_new_post should increase the relevant counts and add it to the index.
The code I would use is slightly different to yours ; PHP Code:
|
Thanks so much! That worked perfectly. I am posting my code containing the build_post_index here just in case anyone needs it:
PHP Code:
|
All times are GMT. The time now is 01:14 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|