[GH-ISSUE #6864] Suggestion for Optimizing the Placement of Sponsor Ads #4562

Closed
opened 2026-10-31 20:40:32 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @3094422652 on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6864

In recent versions of the 3x-ui panel, forced/pop-up sponsor ads have been added to the login page and the home dashboard. This display method is overly intrusive, undermines the server management panel’s originally professional and clean UI, and seriously affects the user experience during daily operations.

Describe the solution you'd like

Remove the ad pop-ups and forced display blocks from the login page and home dashboard. We suggest that sponsor ads be uniformly repositioned and pinned to the bottom of the left sidebar.

Alternatives you've considered

No response

Concrete use case

No response

Mockups, screenshots, or examples

This ensures stable, long-term exposure for sponsors (supporting the project’s monetization) while avoiding visual obstruction or disruption in users’ core operational areas, achieving a win-win balance between sustaining project development and preserving user experience.

Which parts of the panel would this affect?

Frontend (UI / panel pages)

Are you willing to help?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
Originally created by @3094422652 on GitHub (Oct 17, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6864 ### Is your feature request related to a problem? In recent versions of the 3x-ui panel, forced/pop-up sponsor ads have been added to the login page and the home dashboard. This display method is overly intrusive, undermines the server management panel’s originally professional and clean UI, and seriously affects the user experience during daily operations. ### Describe the solution you'd like Remove the ad pop-ups and forced display blocks from the login page and home dashboard. We suggest that sponsor ads be uniformly repositioned and pinned to the bottom of the left sidebar. ### Alternatives you've considered _No response_ ### Concrete use case _No response_ ### Mockups, screenshots, or examples This ensures stable, long-term exposure for sponsors (supporting the project’s monetization) while avoiding visual obstruction or disruption in users’ core operational areas, achieving a win-win balance between sustaining project development and preserving user experience. ### Which parts of the panel would this affect? Frontend (UI / panel pages) ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [ ] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
bsakaguchi 2026-10-31 20:40:32 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 17, 2026):

This is a feature request, not a bug. One thing to know first: the panel did have a sponsor card at the bottom of the sidebar, but the maintainer removed it on purpose in v3.10.2. The cards that are left on the login page and the dashboard are inline cards with a close button. They are not pop-ups or modals. Where sponsors appear is the maintainer's call, so this issue stays open as an enhancement.

What the code does today (default branch, v3.10.2)

  • Only three sponsor slots are left: export type SponsorSlot = 'dashboard' | 'page' | 'login'; (frontend/src/lib/sponsors.ts:3). The backend accepts only the same three: sponsorSlots = map[string]bool{"dashboard": true, "page": true, "login": true} (internal/web/service/panel/sponsor.go:69).

  • The sidebar slot was taken out in commit 6f1dd0d7 "feat(sponsors): drop the sidebar slot and simplify the Sponsors page", which is included in v3.10.2. Its message says: "The sidebar no longer carries a sponsor card. The backend stops serving the "sidebar" slot…" Commit fd7b3559 had added it, together with the other slots, in v3.10.0.

  • The cards are drawn inline in the page:

    • login, below the login form: <SponsorSlot slot="login" variant="compact" className="login-sponsor" /> (frontend/src/pages/login/LoginPage.tsx:251)
    • dashboard, in the overview: <SponsorSlot slot="dashboard" /> (frontend/src/pages/index/IndexPage.tsx:217)

    No Modal is used anywhere in frontend/src/components/sponsor/.

  • Each card has a close button (frontend/src/components/sponsor/SponsorCard.tsx:76-85). It hides that card for SPONSOR_DISMISS_MS = 24 * 60 * 60 * 1000, which is 24 hours, per browser (frontend/src/lib/sponsors.ts:6).

  • The sidebar still has a Sponsors menu entry that opens the Sponsors page (frontend/src/layouts/AppSidebar.tsx:238). It is a link, not a card.

Related requests: #6818 asked to hide these cards permanently and was closed as not planned. #6844 and #6856 are still open and ask for an off switch. In #6824 the maintainer wrote: "No opt-out switch or bundling is planned." This issue asks for something different: to move the cards rather than switch them off. It also asks to bring back the sidebar placement that 6f1dd0d7 just removed, so I have not closed it as a duplicate.

Verdict: Feature request

This reply was generated automatically. A maintainer may follow up.

<!-- gh-comment-id:6235388895 --> @github-actions[bot] commented on GitHub (Oct 17, 2026): This is a feature request, not a bug. One thing to know first: the panel did have a sponsor card at the bottom of the sidebar, but the maintainer removed it on purpose in v3.10.2. The cards that are left on the login page and the dashboard are inline cards with a close button. They are not pop-ups or modals. Where sponsors appear is the maintainer's call, so this issue stays open as an enhancement. **What the code does today (default branch, v3.10.2)** - Only three sponsor slots are left: `export type SponsorSlot = 'dashboard' | 'page' | 'login';` (`frontend/src/lib/sponsors.ts:3`). The backend accepts only the same three: `sponsorSlots = map[string]bool{"dashboard": true, "page": true, "login": true}` (`internal/web/service/panel/sponsor.go:69`). - The sidebar slot was taken out in commit `6f1dd0d7` "feat(sponsors): drop the sidebar slot and simplify the Sponsors page", which is included in v3.10.2. Its message says: *"The sidebar no longer carries a sponsor card. The backend stops serving the "sidebar" slot…"* Commit `fd7b3559` had added it, together with the other slots, in v3.10.0. - The cards are drawn inline in the page: - login, below the login form: `<SponsorSlot slot="login" variant="compact" className="login-sponsor" />` (`frontend/src/pages/login/LoginPage.tsx:251`) - dashboard, in the overview: `<SponsorSlot slot="dashboard" />` (`frontend/src/pages/index/IndexPage.tsx:217`) No `Modal` is used anywhere in `frontend/src/components/sponsor/`. - Each card has a close button (`frontend/src/components/sponsor/SponsorCard.tsx:76-85`). It hides that card for `SPONSOR_DISMISS_MS = 24 * 60 * 60 * 1000`, which is 24 hours, per browser (`frontend/src/lib/sponsors.ts:6`). - The sidebar still has a **Sponsors** menu entry that opens the Sponsors page (`frontend/src/layouts/AppSidebar.tsx:238`). It is a link, not a card. **Related requests:** #6818 asked to hide these cards permanently and was closed as not planned. #6844 and #6856 are still open and ask for an off switch. In #6824 the maintainer wrote: *"No opt-out switch or bundling is planned."* This issue asks for something different: to move the cards rather than switch them off. It also asks to bring back the sidebar placement that `6f1dd0d7` just removed, so I have not closed it as a duplicate. Verdict: Feature request *This reply was generated automatically. A maintainer may follow up.* <!-- claude-issue:analyst -->
Author
Owner

@sariyan-0 commented on GitHub (Oct 18, 2026):

Honestly, it is very disappointing to get an AD for something that I am hosting myself

<!-- gh-comment-id:6245533986 --> @sariyan-0 commented on GitHub (Oct 18, 2026): Honestly, it is very disappointing to get an AD for something that I am hosting myself
Author
Owner

@muxue-wang commented on GitHub (Oct 19, 2026):

In the nginx reverse proxy, add the following configuration, and the advertisements can be removed.

location /pannel-path {
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";

    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header Range $http_range;
    proxy_set_header If-Range $http_if_range;

    proxy_redirect off;
    proxy_pass http://127.0.0.1:your_port;

    # 删除广告
    # Delete advertisement
    # ===== 新增开始 =====
    proxy_set_header Accept-Encoding "";   # 关键:禁止上游压缩
    proxy_hide_header ETag;                # 防 304 命中未注入的旧副本
    proxy_hide_header Last-Modified;

    sub_filter_types text/html;
    sub_filter_once off;

    sub_filter '</head>' '<style id="ngx-hide-menu12">#app > div > div.ant-sidebar > aside > div > ul.sider-nav > li:nth-child(12){display:none !important}</style></head>';

    sub_filter '</body>' '<script id="ngx-del-menu12">...完整脚本见文件...</script></body>';
    # ===== 新增结束 =====
}

# 删除广告
# Delete advertisement
location /x/sponsors {
    return 404;
}
<!-- gh-comment-id:6258267369 --> @muxue-wang commented on GitHub (Oct 19, 2026): In the nginx reverse proxy, add the following configuration, and the advertisements can be removed. ``` location /pannel-path { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Range $http_range; proxy_set_header If-Range $http_if_range; proxy_redirect off; proxy_pass http://127.0.0.1:your_port; # 删除广告 # Delete advertisement # ===== 新增开始 ===== proxy_set_header Accept-Encoding ""; # 关键:禁止上游压缩 proxy_hide_header ETag; # 防 304 命中未注入的旧副本 proxy_hide_header Last-Modified; sub_filter_types text/html; sub_filter_once off; sub_filter '</head>' '<style id="ngx-hide-menu12">#app > div > div.ant-sidebar > aside > div > ul.sider-nav > li:nth-child(12){display:none !important}</style></head>'; sub_filter '</body>' '<script id="ngx-del-menu12">...完整脚本见文件...</script></body>'; # ===== 新增结束 ===== } # 删除广告 # Delete advertisement location /x/sponsors { return 404; } ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#4562
No description provided.