The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Starting New Threads via Script Call
I have a news system on my website that I coded up in php myself that I would like to hook up to vBulletin 3.0. Basically, I have a need that whenever a news item gets posted onto my front page, the "News System User" needs to start a new thread with the same news item into the System News forum. In other words, I need to have a way to start new threads automatically (ie called from another script).
I've hacked newthread.php in my current v2 vBulletin installation that does this, but I was wondering if anyone had any tips on doing this elegantly in v3. Is there anything like this that has been posted yet for vBulletin 3? |
#2
|
||||
|
||||
Take alook at the build_new_post() function in includes/functions_newpost.php and newthread.php to see how the arrays etc are passed to it.
|
#3
|
|||
|
|||
hi,
Also you could use the vbulletin mysql tables. Create one Newsboard. Set the permission to the Newsposters. And than read out with an php script the news out of the vbulletin database. Replys are comments. With that output you can do everything... I think thats better than a single news script? |
#4
|
||||
|
||||
Quote:
Sounds like a good place to start. I'll check out the function there and also read through newthread.php. Shad-gt, I already have a separate database/table for the news entries and I've already written the other support scripts for the news items (eg allow people to submit news, have admin check it over and edit if necessary, etc). Also, I have other sections of the site (weekly poll, reviews, etc) that will need the ability to post into the forums, too. Thanks for your thoughts, though. If anyone else has any other thoughts, I'd be happy to hear them, of course. |
#5
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|