HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Chat Room Expiration?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#108969 (In Topic #21339)
Avatar

Honoured member

Have combed the tutorials and can't find anything on whether or not chat rooms expire. Does anyone know?

What I can say is that two I have created have disappeared after some time.

I don't want this to be the case, and would like to set them to stay forever unless someone removes them through and administrative measure.

Any feedback appreciated, thanks!
Back to the top
 
Posted
Rating:
#108971
Avatar

Hi,

Rooms are only pruned if they are inactive longer than that option and have an owner or a private list of allowed usernames. Rooms created through the Admin Zone do by default not have those properties, while rooms created through the public site do.

Set the "Private room deletion time" option to "0" to disable room pruning entirely.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#108980
Avatar

Honoured member

Thanks Chris!

Sorry, I just noticed this statement when creating a room in the admin zone:

"The owner of the new room, if it is a personal chatroom. Note that personal chatrooms are subject to the automatic deletion setting (which may be disabled in the configuration if desired)."

Only thing is, I can't seem to find where the "configuration" is??

I looked on this page:

ocPortal Tutorial: Running chatrooms (features and advice) - ocPortal.com

Am I missing it??
Back to the top
 
Posted
Rating:
#108982
Avatar

Community saint

That configuration is at Admin Zone>Setup>Configuration>Feature Options>Chat System. I don't think you missed it; these Chat System configuration options aren't fully documented in that tutorial. But don't forget about the power of the Admin Zone search box at the top right of your website Admin Zone. Typing in a keyword or snippet of text (like chatroom or private room deletion time) in the search box, clicking the search button, and then looking for the Configuration section of results makes it easy to find various configuration settings. You can restrict the search results to only show Configuration results by adding @conf to the end of your search term in the search box.
Back to the top
 
Posted
Rating:
#108984
Avatar

Honoured member

Ok, thanks Jason I see it now…there are multiple locations to manage things. Not used to that…ooops  :$

Do you know if there is a way to set the chat box length to allow for more posts to appear??

I did query that a couple ways and also looked through the tutorial, am not finding a setting location?

Want to make it longer, can only get four or so in there now before it cuts off and you have to scroll…that won't work for us for football season and will need to be longer.
Back to the top
 
Posted
Rating:
#109011
Avatar

Community saint

I'll take a look at the chat box length. I'm thinking it's probably adjustable with a change to one of the templates.
Back to the top
 
Posted
Rating:
#109030
Avatar

Honoured member

I was thinking it could likely be done the way you set the number of posts to display on a discussion forum thread…like that.

But I can't find a setting that mirrors it for chat….

IE

"Number of chat posts to display".

Lemme know if you come across anything!

 :thumbs:
Back to the top
 
Posted
Rating:
#109039
Avatar

Community saint

I found what that needs to be edited to make the chat room message box longer. It is controlled by a CSS max-height property in chat.css. You will want to go to Admin Zone>Style>Themes and choose the Edit CSS option for your theme. Then select the chat.css file and click the Choose button. In the CSS editor, at or near line 113, you will want to change the default max-height value of 35em to something like 50em. This is the section of CSS code to look for:

Code

.messages_window_full_chat {
   max-height: 35em;
   overflow: auto;
}
That change gave me an extra 3 messages in the message display box and still kept the message entry box and message display box within the viewable web browser space. A setting of 50em worked for me, but the actual end-user experience for others will depend on several factors: screen resolution, web browser (menu bar, toolbars, status bar), font settings, zoom settings, etc. In other words, what looks good for me may not look good for everybody. Someone with shorter vertical web browser space, larger fonts, or higher zoom settings will need to scroll the message display box AND the web browser window to see older messages. That is probably the reason 35em was chosen as a default height for the message display box…it works well for the majority (if not everybody).

One other option is to remove (or comment out) the max-height CSS line. But this will just shift the scrolling from the message display box to the web browser window. Without the max-height property, scrolling down to older messages will scroll the message entry box off the screen and the user may have scroll back up to the top to enter their message.

So I guess this is one of those cases where you will have to decide which is the lesser evil: leave it as-is and live with the limited number of messages visible, increase the message display box height and possibly make it harder for some users to scroll through messages, or remove the message display box height and shift the message scrolling to the web browser window.
Back to the top
 
Posted
Item has a rating of 5 (Liked by Jason Verhagen)  
Rating:
#109045
Avatar

Honoured member

Worked like a champ!

I chose option 1, because it is more important to have more posts in the box as a standard…

So, my screen is now showing 7 instead of 5…which should be perfect

Thanks a lot Jason, really appreciate the help!

 :thumbs:
Back to the top
 
Posted
Rating:
#109139
Avatar

Honoured member

Hey Jason,

Had another question…do you know where the code line setting is to disallow expiration of the posts themselves??

I noticed that they only stay in the room for a certain time and then are deleted. Would like to have them never expire if possible…

Looked through the file you referenced previously, but can't find anything that looks like it addresses lifespan.

Thanks!

Rick

Back to the top
 
Posted
Rating:
#109141
Avatar

Hi,

Doesn't delete them, but it only shows 5 minutes of back-log when you enter a room. It's controlled by a constant in the code. I just added a tracker issue to make it a config option:
0002001: Make chat message back-log configurable - ocPortal feature tracker


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#109143
Avatar

Honoured member

Yikes, that won't work at all for what we had planned - which is running 6 + hour chat room that folks can go back and see what was said during the event at various points of entry/occurrence…..

Any possibility of this being addressed by September 1st??

(know its a long shot, but just in case)

Back to the top
 
Posted
Rating:
#109145
Avatar

Just put in a quick override via sources_custom/chat.php, set to 24 hours. Hopefully that'll sort it.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#109149
Avatar

Honoured member

That should do it!

On a side note:

I noticed that your posts from last week don't appear…that was what called this out. But mine do, and they are from Sun (4 days ago). I wonder if there is another setting in here that is at play.

IE, the posts made within 96 hours show, but thereafter do not - unless a log is downloaded.

I understand the above measure of live log being only so long each time someone enters the room, this seems to be a different issue though?



Back to the top
 
Posted
Rating:
#109159
Avatar

Right, I was wrong about this. It was actually coded to a maximum of 20 posts. I put it up to 500 on your site.

I don't want to put a really huge number on there because it will affect performance.

If you download logs, there is no limit.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#109161
Avatar

Honoured member

Awesome, thanks!  :thumbs:

I took a quick glance and 200 seems to be the mean, so we should be fine with that!
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: