Share domain is instantadpay.link (Marty 2026-11-04: ctbgo.com confuses people; a branded domain, bought on NameSilo $8.39): SHARE_HOSTS default instantadpay.link,ctbgo.com,mylinehq.com so every old ctbgo.com link keeps working; shareDomain default instantadpay.link; chatbot short-banner example on the new domain; my.js?v=20261104il, KNOWLEDGE_DATE 2026-11-04
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -33,7 +33,7 @@ function key() {
|
||||
function enabled() { return !!key(); }
|
||||
|
||||
// ---- canned answers: instant, free, always in voice ----
|
||||
const KNOWLEDGE_DATE = '2026-11-03'; // bump whenever the canned answers / prompt are brought up to date
|
||||
const KNOWLEDGE_DATE = '2026-11-04'; // bump whenever the canned answers / prompt are brought up to date
|
||||
const SUPPORT_RE = /(contact|reach|email|e-mail|message|talk to|speak (to|with)|get hold of) (the )?(support|admin|administrator|owner|marty|staff|team at instantadpay|someone|a (human|person|real person))|support (email|address|ticket|team|desk)|help ?desk|(open|send|file|submit|raise) (a )?(support )?ticket|\b(human|real person|live (agent|person|chat|support))\b|customer (service|support)|support@|how (do|can) i get (help|support)/i;
|
||||
const CANNED = [
|
||||
{ id: 'support', title: 'Contact support or open a ticket', q: ['How do I contact support?', 'How do I talk to a real person?', 'How do I open a support ticket?'], tags: ['support', 'help', 'ticket', 'contact', 'help desk'],
|
||||
@@ -190,7 +190,7 @@ const CANNED = [
|
||||
a: 'You get your share link the moment you sign in, free members included. Open Members > Promo tools: the "Your links" block at the top lists your invite link plus five angle versions (Instant, Ad spend, Free, Ledger, Two), each with a note on who it is for and Copy and Share buttons. They are the same link with a code on the end, so every join and purchase credits you; only the first page the person sees changes. One tip: switch on payouts (one free wallet step in Members) before your people start buying, because the contract locks each buyer to their sponsor at their first purchase.' },
|
||||
{ id: 'banner-image', title: 'Banner image link and sizes', q: ['Why was my banner image refused?', 'What banner sizes are there?', 'How do I upload a banner?'], tags: ['banner', 'image', 'sizes', 'campaign'],
|
||||
re: /(banner (image|url|link|size|creative|file)|image (url|link|field)|broken (banner|image)|upload (a |my |the )?(banner|image|creative)|(png|jpg|jpeg) link|which sizes?)/i,
|
||||
a: 'The image field on a banner campaign needs a direct link to the picture itself, one that ends in .png, .jpg, .gif, .webp or .svg, or an upload. A web page link (your join page, an image-hosting page) is refused, because it would show a broken banner. Easiest source: Promo tools > Banners, pick the size you want and tap Copy image URL. Game and BixPay banner links in Promo tools are short (for example https://ctbgo.com/b/turkeydrop/728x90.png) so they fit the image fields on exchanges and safelists that cut long links. Sizes are the standard ad sizes (728x90, 300x250, 160x600, 320x50 and more); the campaign form asks for the size too. Banner and text ads also run out on the wider network.' },
|
||||
a: 'The image field on a banner campaign needs a direct link to the picture itself, one that ends in .png, .jpg, .gif, .webp or .svg, or an upload. A web page link (your join page, an image-hosting page) is refused, because it would show a broken banner. Easiest source: Promo tools > Banners, pick the size you want and tap Copy image URL. Game and BixPay banner links in Promo tools are short (for example https://instantadpay.link/b/turkeydrop/728x90.png) so they fit the image fields on exchanges and safelists that cut long links. Sizes are the standard ad sizes (728x90, 300x250, 160x600, 320x50 and more); the campaign form asks for the size too. Banner and text ads also run out on the wider network.' },
|
||||
{ id: 'themes', title: 'Light and dark themes', q: ['Is there a light mode?', 'How do I switch themes?'], tags: ['theme', 'dark mode', 'light mode', 'appearance', 'accessibility'],
|
||||
re: /(dark ?mode|light ?mode|dark theme|light theme|night mode|themes?|appearance|too bright|too dark|high contrast)/i,
|
||||
a: 'InstantAdPay has light and dark themes (added 2026-11-02). In the member area use the Light, Dark or Auto control in the header, or the Appearance card on your Profile. Dark is the original look, Light is a bright green-grey workspace with the same layout, and Auto follows your device setting and switches with it. Your choice is saved on your account, so it follows you to any device once you sign in, and it applies to the public pages and your wall too. Nothing changes until you pick one. Both themes pass the accessibility contrast standard for text.' },
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// member share links go out on the share domain (2026-10-20): https://ctbgo.com/<name> -> /join/<name> on InstantAdPay.
|
||||
// member share links go out on the share domain (2026-10-20): https://instantadpay.link/<name> (ctbgo.com before 2026-11-04) -> /join/<name> on InstantAdPay.
|
||||
// The domain comes from site config (shareDomain); empty falls back to this site's own /join link.
|
||||
let SHARE_DOMAIN = '';
|
||||
const SHARE_READY = fetch('/api/config').then(r => r.json()).then(c => { SHARE_DOMAIN = String((c && c.shareDomain) || '').trim(); }).catch(() => {});
|
||||
|
||||
+1
-1
@@ -1263,7 +1263,7 @@
|
||||
<script src="/assets/wallet.js?v=20260911a"></script>
|
||||
<script src="/assets/promo.js?v=20261103gp"></script>
|
||||
<script src="/assets/support.js?v=20261101th"></script>
|
||||
<script src="/assets/my.js?v=20261103gp"></script>
|
||||
<script src="/assets/my.js?v=20261104il"></script>
|
||||
<script src="/assets/fuel.js?v=20261025ff"></script>
|
||||
<script src="/assets/engine-room.js?v=20261101th"></script>
|
||||
<script src="/assets/chat.js?v=20261016n"></script>
|
||||
|
||||
@@ -838,7 +838,7 @@ function siteConfig() {
|
||||
// share-link domain (2026-10-20, Marty): member invite links go out as https://<shareDomain>/<username>, which 302s to
|
||||
// /join/<username> here, so shared links do not carry instantadpay.com (Spamhaus DBL). '' = old instantadpay.com/join links.
|
||||
// Switch to the spare (mylinehq.com) if one gets flagged. Old links keep working either way.
|
||||
shareDomain: 'ctbgo.com',
|
||||
shareDomain: 'instantadpay.link',
|
||||
// BixPay Visa card (2026-10-29, docs/BIXPAY-INTEGRATION.md): '0' = nothing shows anywhere (no Profile field, Wallet card,
|
||||
// Overview card, promo tab, /bixpay guide, chatbot says coming soon). bixCompanyLink = the network fallback partner link
|
||||
// (Marty's own PARTNER link, IB12143793); bixpayLiveSince is stamped when the switch is flipped on (the Overview card runs a week).
|
||||
@@ -2199,12 +2199,12 @@ async function gameAnswer(g, slug, acct) { // the game token (only once a userna
|
||||
return { ok: true, needUsername, username: acct.username || null, token: needUsername ? null : g.mint(acct, memberId), pass: gamePassMint(acct.email, slug) };
|
||||
}
|
||||
|
||||
const SHARE_HOSTS = String(process.env.SHARE_HOSTS || 'ctbgo.com,mylinehq.com').split(',').map(x => x.trim().toLowerCase()).filter(Boolean);
|
||||
const SHARE_HOSTS = String(process.env.SHARE_HOSTS || 'instantadpay.link,ctbgo.com,mylinehq.com').split(',').map(x => x.trim().toLowerCase()).filter(Boolean);
|
||||
|
||||
// Short banner image URLs (2026-11-03; Michael Camire via Marty: the Spaces CDN URLs run about 105 characters and get cut off
|
||||
// by exchange and safelist image fields, so the banners never show). /b/<slug>/<file> serves the same file from
|
||||
// game-banners/<slug>/ on the Spaces CDN, bytes in place (no redirect: some sites only HEAD the URL), on the share hosts as
|
||||
// well as here: https://ctbgo.com/b/turkeydrop/728x90.png. A bare <size>.<ext> expands to <slug>-<size>.<ext>. Small
|
||||
// well as here: https://instantadpay.link/b/turkeydrop/728x90.png. A bare <size>.<ext> expands to <slug>-<size>.<ext>. Small
|
||||
// in-memory cache, 300 files, six hours, misses remembered one minute (a banner uploaded after someone asked for it shows up fast).
|
||||
const BANNER_CDN = 'https://coolify-saasytop.nyc3.cdn.digitaloceanspaces.com/game-banners/';
|
||||
const BANNER_TYPES = { png: 'image/png', jpg: 'image/jpeg', jpeg: 'image/jpeg', webp: 'image/webp', gif: 'image/gif' };
|
||||
@@ -2240,7 +2240,7 @@ const server = http.createServer(async (req, res) => {
|
||||
const p = u.pathname;
|
||||
// short banner images, served on every host (share hosts included) before the share-host redirect
|
||||
if ((req.method === 'GET' || req.method === 'HEAD') && p.startsWith('/b/') && await serveBanner(req, res, p)) return;
|
||||
// share-link domains (ctbgo.com, mylinehq.com): /<ref> goes to that member's join page, anything else to the same path
|
||||
// share-link domains (instantadpay.link active since 2026-11-04; ctbgo.com and mylinehq.com still answer): /<ref> goes to that member's join page, anything else to the same path
|
||||
// here. 302 (not 301) so links never get pinned in caches; the query (?v= angle, ?promo=) rides along.
|
||||
{ const sh = String(req.headers.host || '').toLowerCase().replace(/:\d+$/, '').replace(/^www\./, '');
|
||||
if (SHARE_HOSTS.includes(sh)) {
|
||||
|
||||
Reference in New Issue
Block a user