The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
This is not a request for a hack but a request for ideas on how a hack could be implemented. As I would like to have a go at doing this hack if nobody has yet attempted it.
Often on my forum I have a situation where a thread is of equal interest to people in many forums. I really need a way to set a thread to be in more than one forum so people who regularly post in each can comment on it. The difficulty I have in thinking on how to implement it is that each thread is indexed on what forum it resides in. So how do you run forumdisplay efficiently when threads are in more than one forum. Or you could have a "pointer thread" which works in the same way as the current pointers, but you would have to find a way of updating the latest poster/post time on the pointer as well as the main thread whenever it is updated. This might be the best solution but I would be interested to hear your thoughts!! Thanks |
#2
|
|||
|
|||
Make a select box of all the forums in the newthread, something like:
- Cat1 : ID 2 -- Forum 1 : ID 3 -- Forum 2 : ID 4 and make the values go into an array. Then, loop the array and insert the thread sql data to each forum you selected. Just make insert's with different forumid's. |
#3
|
||||
|
||||
You can create another column in the thread table, let's call it "pointer".
There, you could keep all of the forum IDs in which you want that thread, i.e "1 2 5 97", where each number is an ID of a certain forum. Then you can use that value to select threads in other forums, you can add something like "OR pointer LIKE '%$forumid%'" to the WHERE clause of the query that selects the threads. Just an idea. |
#4
|
|||
|
|||
OR pointer LIKE '%$forumid%'
would show a post for forumid 199 in the forum 99 and 19 .. plus i think firefly's way takes much more hacking to implement. |
#5
|
||||
|
||||
But if he uses your way, he'll have X copies of the same thread.
Waste of space? |
#6
|
|||
|
|||
Well no I don't want to have duplicate posts!. I can live with extra entries in the thread table however.
Ideally this should be scaleable i.e. so I could cross post to every forum if I wanted. |
#7
|
||||
|
||||
[QUOTE]Originally posted by holev
OR pointer LIKE '%$forumid%' would show a post for forumid 199 in the forum 99 and 19 .. |
#8
|
||||
|
||||
Look in postings.php at the move redirect section for an idea on how to accomplish this.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|