The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi folks,
I hope this is the right forum for this, but here's what I want to do and I'm not exactly sure how to go about it. I have a private forum that I use for various informational items for my users. All the information I need posted, I store in a MySQL database that I collect from forms that are filled out. Now, I have this info in the database, but I would like to automatically post it to my vB forums. The databases are on two seperate machines, so injecting the data into the vB database manually would be problematical from a security standpoint (this was the first option I looked at). What I would like to do is use something like wget (wput?) or even write a custom PHP app that will post a formatted message under my user account to my forums on a sheduled basis (IE - I would setup a cron job). I can do a lot of things in PHP, but posting to a private forum that requires authentication is a mystery to me. My problem mainly is, I don't even know where to begin with doing something like this, and I was hoping ya'll could shed some light on that. Thanks, Flare |
#2
|
||||
|
||||
![]()
you have to build a script around this query:
Code:
INSERT INTO post (postid,userid,threadid,dateline,visible,pagetext) VALUES (null, your userid, threadid to post in, actual time, 1, and here is all infos you want to have in the post) you should also run this query to get the right ammount of replys in the thread: Code:
UPDATE thread SET replycount=replycount+1,lastpost=actualtime |
#3
|
|||
|
|||
![]() Quote:
I'm looking for a way to essentially simulate a user posting a message into a vB forum. |
#4
|
||||
|
||||
![]()
sorry, i missunderstood...
then i've no idea, i didn't work between two servers ![]() sorry |
#5
|
||||
|
||||
![]()
The easiest way would be to find an host that allows remote connections to MYSQL. You would be most comfortable with this solution. But if this is not an option for you, you have to write a script that submits info in "POST METHOD". Just make sure to add 2 more fields to your default vb new thread form and add username and password there. Of course username you provided should be allowed to access this forum. This should solve the problem if you are trying to create threads by a single poster id.
But if you are trying to move threads of different users with their own username, well this would be still possible but harder to explain how ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|