The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Auto Link Threads
I am trying to do something similiar to here with the hacks / support threads. I have it all set where it will make the both of them but I am trying to get them to link.
Will try to explain. I do a form pretty much like newthread but it does it twice (so the support forums has been started) but want them to link. If your on the support thread, it will give you the link to the file thread with the description etc. If your on the file thread, it will give you the link to the support thread. I have to keep them seperate as the file thread will have way more stuff in it than what I want in the main thread (support thread). I cant figure out how to do this as I have no idea what the postid will be. So what would I write for it to know this? I will pay well if needed for this little code... |
#2
|
||||
|
||||
Well you have to add a field to thread- table called for example linkid
then when inserting the threads, you have to fill it with the other threadid. then you've just add a link into your showthreadtemplate which calls showthread.php?threadid=$threadinfo[linkid].. can't help more without knowing your exact code |
#3
|
|||
|
|||
Thanks...
At the time of creating the thread, I will not know the threadid as its posting it at the same time. I think this will work however if I give both threads the same linkid and at the same time being sure that its not a linkid that I have already used. So, how would I go about having it auto-increment and know the linkid at the same time? |
#4
|
||||
|
||||
Quote:
|
#5
|
|||
|
|||
Hmmm, so how would I go about doing this? Create a new table and have it autoincrement and connect to threadid somehow?
I also wouldnt want it to increment unless its told to (like when I create both threads). That way, the only ones that have linkid's are the ones that have two threads. |
#6
|
||||
|
||||
no just add the linkidtable as i told ya
then in your script you find for example this parts..: PHP Code:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|