Log in

View Full Version : Automatic Thread Creation


PaulSonny
04-22-2008, 12:28 PM
Hello everyone,

In my latest modification, I have implemented it so that it creates a new thread in a forum you specify, for purposes lets say the Forum ID is 5.

The thread is created in this forum automatically and is done without any errors. What I am wondering if this is possible.

much like the automatic thread creation, can you create a reply to an existing thread, more to the point, can I create a reply to one of the threads automatically created above?

if so is this pretty much done the same way as adding a new thread?

Thanks, Paul.

Opserty
04-22-2008, 01:48 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=102418" target="_blank">Create Posts</a>

You might need to browse the thread to see if there are updates/corrections to the initial article.

PaulSonny
04-27-2008, 05:12 PM
Thanks for that and ive got it working almost 100%, there is just one small issue im having.

The code in the above hyper is shows as $postthreadid = '4473'; but I want to replace 4473 with a figure from a DB field named threadnum, the query is named $ticketreply, so I have the code $postthreadid = $ticketreply['threadnum'];

This doesnt seem to work, if I enter a value it works, if I dont it wont work.

Any ideas? Thanks, Paul.

--------------- Added 1209320385 at 1209320385 ---------------

Why is it you spend all day trying to get it to work, and then you post for help then 5 minutes later you get it working?

I was trying to use the sql query without fetching the array.

Thanks, Paul.