The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vB database question
Hi,
how would I go about adding a thread to the database without using vB to add it? I have an audio page and I want to use vB as the comments backend. So when I add the audio clip into my audio database, I also want it to add a thread into the vB database, so users can comment on the audio clip. I have made a forum where I want all the threads to be made by my audio adding script. I have had a quick look into it, I assume I will need to add a line to the "thread" and "post" tables of vB? Is that all? Any info on this topic would be appreciated, thanks |
#2
|
||||
|
||||
you have to insert a new row into the thread and the post table, afterwards you have to update the forum counters.
just look at newthread.php there is shown whats needet |
#3
|
|||
|
|||
Cheers, I will do. One other quick question about this.
I dont really want the new comments for the audio shown in the "View All New Posts" page on vB, how do I stop that from happening? Thanks in advance. |
#4
|
|||
|
|||
Ignore that! I'll just hide the forum from everyone cept me.
|
#5
|
|||
|
|||
Quote:
finally got round to doing this, i cant see the bit for updating forum counters! anyone help pls! |
#6
|
||||
|
||||
it's the line UPDATE forum SET replycoun=replycount+1 ....
|
#7
|
|||
|
|||
Doesn't updateforumcounts()(or whatever that function is) do the same thing?
That's what I've been using. |
#8
|
|||
|
|||
Quote:
Code:
$query = "update forum set replycount=replycount+1,threadcount=threadcount+1,lastpost='".time()."',lastposter='".addslashes($postusername)."' where forumid in ($foruminfo[parentlist])"); $foruminfo[parentlist] to 34 34 being the number of the forum itz going to update. |
#9
|
||||
|
||||
nope, as this wouldn't upgrade the forums one level above it...
you should change it into (34,forumid of it's category)... |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|