Log in

View Full Version : How to export all thread names guests can access (for external search application)


softjury
09-05-2008, 07:25 AM
Hi,

i'm looking for a code snippet that reads all (thread name, thread id)-datasets of threads guests have access to.

We have an external search application that can find misspelled words e.g. threads with word "ipod" in it if you're searching for "ipott".

So we need to export all thread names (post content is ignored) and thread ids. for obvious reasons the search app. should only be fed with public threads - in other words: threads guests can access.

Some pseudo code i think of:


$o_vb = new vbulletin_DataManager();
$o_vb->setOption(VISIBLE_FOR_GUESTS);
$array_threads = $o_vb->getAllThreadsAsArray();

(loop through $array_threads)
echo "$array_threads[id], $array_threads[name]\n";
(/loop)


Does anybody know how to achive this?

Thanks for reading,
Marcel.