Chat 2 by Siropu

Chat 2 by Siropu [Paid] 2.5.2

No permission to buy (€29.99)
By default, you don't need to touch the widget position settings.

Got it. I understand them now.

I do have a new but less pressing problem though. I've made a page node and it's pretty simple stuff. Here's the code below:

HTML:
<xf:widget key="siropu_chat" />

<xf:widget key="portal_view_new_posts" />

<xf:widget key="forum_overview_new_posts" />

<xf:widget key="gaming_events" position="sidebar" />

<xf:css>
    .p-body-pageContent [data-widget-key="forum_overview_new_posts"]
    {
        display: none;
    }
    @media (max-width: 900px)
    {
        .p-body-pageContent [data-widget-key="forum_overview_new_posts"] { display: block; } 
        .p-body-pageContent [data-widget-key="portal_view_new_posts"] { display: none; }
    }
</xf:css>

The CSS code is just to make sure that the right widget is displayed depending on whether you're viewing the page with a mobile device or desktop.

The problem lies in the fact that I'm trying to give users the option of positioning the chat either at the top of the page or below the page. Unfortunately, though most of the display conditions work, I simply cannot get the Chat widget to move up or down the page with "Above Content" and "Below Content". Furthermore, there will always be a Chat widget locked into the position that is specified in the above code.
 
I simply cannot get the Chat widget to move up or down the page with "Above Content" and "Below Content".
If you have the permission to change the chat position from your chat user settings, changing Display mode in ACP won't do anything because your user setting is overriding the admin setting for you.
 
If you have the permission to change the chat position from your chat user settings, changing Display mode in ACP won't do anything because your user setting is overriding the admin setting for you.

Oh I have the Display Mode set to Custom in the ACP. But I'm not trying to change the position via the ACP. I can actually put the chat wherever I want as the admin of course. I'm instead trying to give my users the option to change the chat position for themselves, but it's borked as explained above.
 
You have to add the chat upload editor icon to the editor toolbar in ACP > Content > BB code button manager

This works great, but somehow also added the chat image upload bbcode button in threads/posts, too. How can I avoid it? Thank you :)

For the moment, this css edit temporarily removes it from post pages (for those in a similar situation):

Code:
.message-inner button#xfCustom_chat-1 {
    display: none;
}
 
Last edited:
Oh I have the Display Mode set to Custom in the ACP.
Display mode "Custom" option is when you want to use a different position than the ones available, by changing the widget positions.

I'm instead trying to give my users the option to change the chat position for themselves,
By default, you just have to give them the permission to do that. Nothing else is required.

How can I avoid it?
You can't. Only with CSS.
 
You can't. Only with CSS.

I'm wondering if some sort of template modification could work. The below addition to the editor template seems to do the trick, except that it also removes the xfCustom_chat button from the chat editor, too. :unsure: If there were a way to not target the chat editor ...
Code:
<xf:set var="$removeButtons" value="{{array_merge($removeButtons,['xfCustom_chat'])}}" />
 
Hi.

I can't see any way of uploading an image. I'm an admin with full access on everything.
I have enabled all chat bbcodes. I can only insert an image link. Canno upload

You have to add the chat upload editor icon to the editor toolbar in ACP > Content > BB code button manager

@Siropu , could you walk me through that? I'm in ACP > Content > BB Codes and not sure how to add the icon to the editor?

content bbcodes.png

Then into this:

content bbcodes2.png

Am I adding in a dropdown?

content bbcodes3.png

I've got admin user permissions set to:
content bbcodes4.png

Any chance you could help out a slightly tech-challenged supporter of your chat add-on?

Please and thank you! Really loving the chat addition; it's our first time going to a chat room in years and our users are loving it!
 
What do you mean by "not changing properly."?

The problem lies in the fact that I'm trying to give users the option of positioning the chat either at the top of the page node or below the page node. Unfortunately, though most of the display conditions work, I simply cannot get the Chat widget to move up or down the page with "Above Content" and "Below Content". Furthermore, there will always be a Chat widget locked into the position that is specified in the above code, regardless of the Display Mode the user sets.
 
I'm in ACP > Content > BB Codes
Go to BB code button manager and click the toolbar you want to change. On the page that opens, drag and drop the upload icon from the top toolbar to the bottom toolbar and save.

Furthermore, there will always be a Chat widget locked into the position that is specified in the above code, regardless of the Display Mode the user sets.
I don't see any issues on my end. Make sure that you haven't unset any of the default chat positions in widget settings.
 
Go to BB code button manager and click the toolbar you want to change. On the page that opens, drag and drop the upload icon from the top toolbar to the bottom toolbar and save.

Oh sweet, that totally worked, thank you! Last question about this particular thing, I added it to every tool bar (there's 4 listings for the different size viewings,) does the Chat add-on use every tool bar depending on viewing size?
 
I jinxed myself, another question. What EXIF parameters does the image upload (using Chat) pull from? Is it possible to change those parameters? Is it the default Xen settings, or is it it's own?

And where does it pull the file size limitations from? Uploading smaller pictures from desktop just fine, but my phone pictures are too large.
 
Last edited:
does the Chat add-on use every tool bar depending on viewing size?
Chat editor has the same behavior on mobile as the thread editor. Is basically the same editor.
Is it possible to change those parameters? Is it the default Xen settings, or is it it's own?
Image uploads ads basically XF attachments.

And where does it pull the file size limitations from?
There is an admin option called "Maximum image upload file size" which allows you to control the size of chat uploads.
 
Chat editor has the same behavior on mobile as the thread editor. Is basically the same editor.

Image uploads ads basically XF attachments.


There is an admin option called "Maximum image upload file size" which allows you to control the size of chat uploads.

Thank you so much for the prompt replies!
 
I don't see any issues on my end. Make sure that you haven't unset any of the default chat positions in widget settings.

I have enabled every position that is selectable in Display Mode. Have you tried making a new page node and used this code?:

HTML:
<xf:widget key="forum_overview_new_posts" />

<xf:widget key="siropu_chat" />

Try to move the chat above the Latest Posts widget using the Display Modes. Also, even though it does allow me to put the chat below the breadcrumbs, it's not really the look I'm trying to establish, and also, it puts two chatboxs on the page. One below the Latests Posts widget and one below the breadcrumbs.
 
Have you tried making a new page node and used this code?:
If you call the chat widget on a different page and allow users to change the Display mode, you can end up with two chat instances.

EDIT: It won't work as expected of user has set a different pos.
 
Updated css rule to remove the chat image upload button from post and thread bbcode bars:

Code:
.message-inner button#xfCustom_chat-1, .message-inner button#xfCustom_chat-2 {
    display: none;
}

If you find other classes to add just let me know, thanks :)
 
is it possible with this add-on to view deleted messages (as a staff member) like you can on the forums?
Like a soft-delete on the forums, or is it automatically a hard-delete?
 
Back
Top Bottom