[TRN] Discussion Preview [Deleted]

Is it possible to NOT have these descriptions show up in responsive mode?

Do You want to hide the Attachment Title in responsive mode?

You can use media queries in EXTRA.css to hide elements

Code:
<xen:if is="@enableResponsive">
    @media (max-width:@maxResponsiveNarrowWidth) {
        .class {
        display: none;
        }
    }
</xen:if>

Replace .class with the actual classname that You wish to hide only in responsive mode.

http://xenforo.com/community/resources/responsive-design.2193/
 
Do You want to hide the Attachment Title in responsive mode?

You can use media queries in EXTRA.css to hide elements

Code:
<xen:if is="@enableResponsive">
    @media (max-width:@maxResponsiveNarrowWidth) {
        .class {
        display: none;
        }
    }
</xen:if>

Replace .class with the actual classname that You wish to hide only in responsive mode.

http://xenforo.com/community/resources/responsive-design.2193/
Not just attachment title. I dont want any function of this addon to work in responsive mode.
 
Not just attachment title. I dont want any function of this addon to work in responsive mode.

Then this should work:

Code:
<xen:if is="@enableResponsive">
    @media (max-width:@maxResponsiveNarrowWidth) {
        .fgx-discussion-preview-text, .fgx-attachments {
        display: none;
        }
    }
</xen:if>

Go to Style "Properties: Responsive Design" search for "maxResponsiveNarrowWidth" in ACP to have a look what You have defined.

(Use maxResponsiveNarrowWidth, maxResponsiveWideWidth or maxResponsiveMediumWidth)

;)
 
Is there a way to include thumbnails of images added with IMG tags to the previews?

There is currently no way to include hot linked images with this add-on. It would be hard to determine if hot linked images are thumbnail sized or full sized images. Maybe the Convert Image add-on can be an alternative? Then we will be sure there is a suitable thumbnail available.
 
There is currently no way to include hot linked images with this add-on. It would be hard to determine if hot linked images are thumbnail sized or full sized images. Maybe the Convert Image add-on can be an alternative? Then we will be sure there is a suitable thumbnail available.
That's what I figured, but I thought there might be some way to resize offsite images for display in the previews. I'd prefer not to convert them all to attachments for the simple reason that my users use a lot of images and I already get in the red with storage use on the server. Don't really want to have to upgrade anytime soon just to accommodate more attachments. I'll think about it, though. Thanks for the quick reply.
 
I believe I need to set up a demo forum soon.

I just found out that a demo forum requires an additional XF license. I need to wait a while before doing that. Maybe some of You guys who use this add-on are willing to share Your URLs here in this thread? I'd be very grateful ;)
 
@farang
I am seeing quite a few opening IMG tags in the previews for Forum View. I thought I had read that they are supposed to be stripped from previews. Is that correct? I see there is an option named "Use common placeholders in discussion/thread preview." I do not have this option ticked, just so you know. Thank you

EDIT: Okay, I think I've started to discern a pattern with this. None of the posts that have text before the image tags show the tags in the previews (at least none that I've seen no far). But if there's an image at the very top of the post, with no text preceding it, it will likely show the image tag in the preview. It doesn't with every such post, for some reason, but it does for the majority of them, maybe 7 out of 10.
 
Last edited:
@farang
I am seeing quite a few opening IMG tags in the previews for Forum View. I thought I had read that they are supposed to be stripped from previews. Is that correct? I see there is an option named "Use common placeholders in discussion/thread preview." I do not have this option ticked, just so you know. Thank you

EDIT: Okay, I think I've started to discern a pattern with this. None of the posts that have text before the image tags show the tags in the previews (at least none that I've seen no far). But if there's an image at the very top of the post, with no text preceding it, it will likely show the image tag in the preview. It doesn't with every such post, for some reason, but it does for the majority of them, maybe 7 out of 10.

Hi. I've never seen that and I haven't been able to reproduce it at my site. Can You PM me with your URL and the message text (using the BB Code editor). Thanks!
 
Hi. I've never seen that and I haven't been able to reproduce it at my site. Can You PM me with your URL and the message text (using the BB Code editor). Thanks!

Hello. I think we're good. After reading your reply I created a test forum and added at least a dozen new threads and could not reproduce the problem. I even copied and pasted the message text (using the BB Code editor) from a few existing posts that are showing the IMG tag in the preview, but the new duplicate threads do not show the IMG tag in the preview. So apparently it's not possible to reproduce, the problem does not occur when creating new threads after installing the addon (at least so far). For whatever reason, it only occurred with already existing threads/posts. So that's okay, I can live with that. Most people don't usually read past the first couple of pages anyway, and those older posts will quickly get buried. Thanks again for the quick reply.
 
@farang
Sorry, but that last post turned out to be completely wrong. Further testing proved I could reproduce the error and now I'm 99.9% sure what the problem is: images added with lower case "img" tags. Lower case image tags are the default BB Code for sites like Imgur and other image hosting sites and so a lot of users were just copying and pasting the code like that. XF adds the image tag in uppercase by default, and images added like that are fine in the previews. I just took the same image, created three threads adding the image in lower case tags and they all showed the tag in preview, the fourth one I added with uppercase and it did not show the tag in preview.
 
Last edited:
@farang
Sorry, but that last post turned out to be completely wrong. Further testing proved I could reproduce the error and now I'm 99.9% sure what the problem is: images added with lower case "img" tags. Lower case image tags are the default BB Code for sites like Imgur and other image hosting sites and so a lot of users were just copying and pasting the code like that. XF adds the image tag in uppercase by default, and images added like that are fine in the previews. I just took the same image, created three threads adding the image in lower case tags and they all showed the tag in preview, the fourth one I added with uppercase and it did not show the tag in preview.

Thanks for your work @imno007 . I will fix that in an update soon. ;)
 
Back
Top Bottom