this broke on the latest discourse version udpdate and no longer can show images as a background
Hi all,
Please forgive my ignorance, but I noticed that there are css options to have this component display for either anon, members, or both.
I would like to add a custom group as an option since I plan to use the banner as advertisement space. Paid members will be a part of an “ad-free / non-versatile banner” group, opposed to non-paid (regular), and anon users will be presented the versatile banner.
I assume css additions in the theme component customization area is the correct way to go about this once I create the group, but any guidance is appreciated.
I do not know enough to ask my question better than that.
Thanks
Hmm… if you want to target those groups, then perhaps you should use:
And hide the ads using CSS, if that’s your plan.
The house ads feature of the discourse advertising plugin allows you to exclude groups from seeing those ads. Maybe you can use that for showing ads instead of hiding the versatile banner based on the users groups.
Just a heads-up about changes to Ingur access from the UK which is affecting this TC.
I’ve just installed Versatile Banner on a new site, I have it running on other sites but this is the first ‘new install’ for a while, so it’s the first time I’ve seen the unconfigured default view of VB.
The default image background Versatile Banner is a link to Imgur, but unfortunately Imgur content is now completely inaccessible in the UK. I think this may be because of mandatory age-checking legislation that was introduced here, but I’m not sure.
So on first installation the Versatile Banner looks like this in the UK
I can confirm that spoofing my origin using a VPN fixes the image access issue.
It might be worth changing the default image to something GitHub-hosted? Could be in the VB repo? Or otherwise another hosting source which is not blocked in the UK.
이 부분을 지적해 주셔서 감사합니다! 여기서는 외부 이미지 호스트를 링크해서는 안 되는데, 이렇게 오래 작동한 것이 놀랍습니다. 해당 이미지는 꽤 많은 조회수를 기록하고 있으니, imgur에 감사드립니다!
이제 넘어가 보겠습니다… 이 PR이 병합되면 이미지가 테마 내에서 직접 소싱되도록 마이그레이션됩니다. 또한 URL을 제공하지 않으려면 선택적인 업로드 설정도 추가됩니다. 이번 업데이트 후에도 기존 배경 이미지 설정은 변경되지 않을 것입니다.
안녕하세요, 도움말 텍스트에 나와 있는 대로 쿠키 이름을 변경해도 배너가 다시 표시되지 않는 문제를 발견했습니다. versatile-banner.gjs 파일의 25/26줄 근처에 있는 코드를 수정하여 쿠키 이름이 변경되면 배너가 다시 표시되도록 해결했습니다. 이것이 최선의 방법인지 확실하지는 않습니다. (죄송합니다만 포크/풀 리퀘스트를 생성할 수 있는 GitHub 설정이 없습니다.)
감사합니다.
cookieClosed = cookie("banner_closed");
cookieClosed = (this.cookieClosed && JSON.parse(this.cookieClosed).name == settings.cookie_name)
? this.cookieClosed
: null;
cookieCollapsed = cookie("banner_collapsed");
cookieCollapsed = (this.cookieCollapsed && JSON.parse(this.cookieCollapsed).name == settings.cookie_name)
? this.cookieCollapsed
: null;
리포트 감사합니다! 방금 쿠키가 정상적으로 작동되도록 업데이트를 배포했습니다. 추가로 문제가 발생하면 알려주세요.
감사합니다 - 테스트해 보니 정상적으로 작동하는 것 같습니다.

