The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Hello! I'm interested in what direct MySQL queries would be necesary to add a new thread in the preset forum of my choice, without worrying about any verification, ect. It can be just like a thread made by a Guest, however, it would need to be put into a forum with access for only mods/admins. We (at MTGnews.com) are trying to update our news submissions forms to make new threads for reported news in a special forum. We can format everything into whatever format. I've been trying to edit the newthread.php and what not to do some, but there are several files that need to be edited to allow posting as such and it's a pain largely because we don't want to have to log users out of our forums or cause any other difficulties. Unfortunately, it's not exactly clear what the necessary info is for the queries to insert a new thread/post with a guest acount is, nor how to how to execute them. Maybe someone more experienced with vB knows how to do this? Thanks!
|
|
#3
|
||||
|
||||
|
Ok, well here's the issue then. I know that we're liscensed, however only the webmaster has the liscense stuff. Before I ask for it, is it possible to have multiple users on these forums on the same liscense? Wouldn't want to lock him out or something...
|
|
#5
|
||||
|
||||
|
There! I finally got my lazy webmaster to give me licensed access. Now, does anyone know how to help me?
|
|
#6
|
||||
|
||||
|
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=37446" target="_blank">https://vborg.vbsupport.ru/showt...threadid=37446</a>
|
|
#7
|
||||
|
||||
|
Quote:
.
|
|
#8
|
||||
|
||||
|
You basically need two things, INSERT INTO thread and INSERT INTO post. Then you need to updateforumcount() for the forum, and if you are posting as a user, you need to update that user's information (lastpost, total posts, etc.).
Most of the things in newthread.php are NOT expendable. |
|
#9
|
||||
|
||||
|
Quote:
|
|
#10
|
||||
|
||||
|
You don't need to use the templates, just echo directly as you would with any other PHP file.
|
![]() |
|
|