Posts from only a certain forum
Posts from only a certain forum
Hi there.
I just made a new chat room but I wanted posts from only a certain forum to get posted there, would that be possible to do?
Thanks...
I just made a new chat room but I wanted posts from only a certain forum to get posted there, would that be possible to do?
Thanks...
Re: [1.2.6] mChat Rooms add-on
So you mean if you had a sexy forum you want posts from forum id 4 to be posted in the new mchat room ? the rooms are selectable in mchat acp but you would need the forum id bit like how login reply edited is done in mchat.
Re: Posts from only a certain forum
- Open
ext/kasimi/mchatrooms/event/main_listener.php
- Find
Code: Select all
- This code is only accessible to donors -
- Add after, and adjust forum and room IDs:
Code: Select all
- This code is only accessible to donors -
Re: Posts from only a certain forum
Great man will try in a bit.
THX
Hate to be dense but where do I get the room ID from ?
THX

Hate to be dense but where do I get the room ID from ?
Re: Posts from only a certain forum
Found room ID, was not easy tho, thanks and it does work 
Added in 15 minutes 3 seconds:
I am assuming that this can be used for multiples ?
if ($event['forum_id'] == 123)
{
$sql_array['room_id'] = 456;
}
Like:
if ($event['forum_id'] == 123,124,125,126)
{
$sql_array['room_id'] = 456,126,134;
}
Also another question is it possible to not alow any chat in that room, so just the post shows?
Cheers

Added in 15 minutes 3 seconds:
I am assuming that this can be used for multiples ?
if ($event['forum_id'] == 123)
{
$sql_array['room_id'] = 456;
}
Like:
if ($event['forum_id'] == 123,124,125,126)
{
$sql_array['room_id'] = 456,126,134;
}
Also another question is it possible to not alow any chat in that room, so just the post shows?
Cheers
Re: Posts from only a certain forum
For more than one room, paste the same code block again with different IDs:
Code: Select all
- This code is only accessible to donors -
Re: Posts from only a certain forum
Thanks to both works perfectly 

Who is online
Users browsing this forum: Bing [Bot] and 0 guests