The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Using indexpost() on non-vB Pages...
I'm writing a news system that inserts news into vBulletin for comments, and am having trouble getting the posts to be indexed for searching. I'm not including any vB files, so I copied the indexpost() function over and had it switch databases to the forums DB to index it. However, it's not indexing the posts...
PHP Code:
Edit: Oh, btw..the echos were there to help me debug..didn't work very well...$val was empty on those echos, except for in the loop...$worddone[$val] was always empty... |
#2
|
||||
|
||||
Either I didnt understand what exactly you are trying to do or you are inserting into wrong tables: Why arent you inserting your posts into "thread" and "post" tables if you are trying to add them into your vb db as messages?
|
#3
|
|||
|
|||
I am. I insert them to the post and thread table and then try to index them via that function. It doesn't work.
|
#4
|
||||
|
||||
Require global.php and then call indexpost(), you'll have to completely rewrite the function otherwise.
|
#5
|
|||
|
|||
I think including global.php would cause problems though..I'm using a different DB than the forums one, and am using a variable named $DB_site to access it...
|
#6
|
||||
|
||||
So you have $DB_site already defined? Should've said so.
What's the problem then? Is the $DB_site class identical to the one vBulletin uses? |
#7
|
|||
|
|||
I'm using the exact same $DB_site class, but with a different DB in completely separate files.
|
#8
|
||||
|
||||
Quote:
|
#9
|
|||
|
|||
I'm inserting the thread and post manually, therefore I also have to index it or it will not show up in search.
|
#10
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|