Add the following code toI need two things in the Shoutbox widget.
siropu_shoutbox
template at the start:<xf:js>
$(function() {
var toggle = $('.siropuShoutbox a[data-toggle="visibility"]');
<xf:if is="!$xf.visitor.user_id">
toggle.click();
</xf:if>
$('.siropuShoutbox .block-header').click(function(e) {
if (e.target.className.match('block-header')) {
toggle.click();
}
});
});
</xf:js>
The code above makes it expanded for guests. If you want it expanded for all users, then un-check admin option "Start collapsed"please also help with the code to load the shoutbox widget expanded at first for guest visitors and all members
Added /ai command where uses can ask questions or requests to get automated responses from ChatGPT.
To set it up, add your API key in admin options and set the new user group permission "Use /ai command".
The AI response doesn't have the shout limit set in admin options.is the max token length adjusted with the max allowed length of the shouts?
AI doesn't know what has been posted into the shoutbox it will only provide responses based on the prompt.Is the AI in any way aware of the context, or will it react to the prompt only?
What's the bug? I don't get it...
Add in extra.less templateIs it possible to make the messages font smaller?
.siropuShoutboxMessage
{
font-size: 12px;
}
.siropuShoutboxShouts
{
font-size: 12px;
}
Add in extra.less template
Or this for all text including usernames.CSS:.siropuShoutboxMessage { font-size: 12px; }
CSS:.siropuShoutboxShouts { font-size: 12px; }
uh, that's right. worked in incognito on a quick try. thank you.Its probably because the file is cached in the browser.
We use essential cookies to make this site work, and optional cookies to enhance your experience.