Commit Graph

30 Commits

Author SHA1 Message Date
martbost e00b7b2f59 Guides (Marty 2026-11-17, evergreen guides plan): /guides index, /guides/is-it-legit (BannerLine 0x6c77...9f9b on Polygonscan, live ledger, the 30 / 10x5.5 / 5+5 / 5 split from the contract constants plus the edge rules: sponsor set once and only if already a member, failed send to the fund, missing early levels to the company, kept spots feed the fund), /guides/free-account (one network sign-in, own a spot before sharing, banner checks, refuel spots, fund gifts), /guides/faq (from the chatbot canned answers, FAQPage JSON-LD); /how links them; footer Guides link; sitemap; chatbot f-guides entry + sponsor rule fact
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 08:25:02 -06:00
martbost f8e6a9d174 Old /splashpg.php?r= and /lcp.php?r= links keep the referral (301 to /?ref=<network username>), like ViralAdSource
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 08:17:12 -06:00
martbost 6313bbf719 Network Weekend (Marty 2026-11-17): ribbon + date-gated chatbot fact (gift a spot), no price or split change
netdeals.js + /assets/netweekend.js (/api/network-deals from the hub), loaded by common.js (not admin, never in a frame),
common.js?v=20261117nw. FACTS line live Fri 11-27 00:00 CT to Tue 12-01 00:00 CT (WEEKEND_NOW test clock).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:25:58 -06:00
martbost a428075330 Spot edits: unlimited, full link check on every one, every one logged; admin takedown and restore (Marty 2026-11-16)
Edits (POST /api/my/spot/<id>, /api/my/default, uploads): still any number of times. Every change now gets the full check:
checkLink, then (LINK_PROBE on) the link must answer (safety.probeLink, up to 3 redirects each checked) and an image address must
download as a real 468x60 image of 150 KB or less (safety.probeImage; the address is kept, a Banner Spin image rotates). The
Banner Spin image + click link LinkSpin just handed the member are not fetched (that would count a LinkSpin click). safety.js gains
privateIp + safeLookup with the Node 20 fix VBB/ViralAdBlitz needed (honors opts.all, answers an array). Every real change is
logged on the spot (or the default): old and new link and image, time, via edit/upload; the owner sees the newest 10. 120 changes
an hour per connection (each one fetches the link).

Admin takedown (the Viral Banner Blitz way, 8e6d2f9): /admin (new page) finds a spot by #number, wallet or network username;
POST /api/admin/spots/<id>/takedown {reason (required, the owner sees it), credit}. Hidden everywhere at once: the board shows a
house tile in its place (nobody else moves), the gate gives its step to a house site, /go/<id> goes home, its Network Ad Space
banner is paused (approved = 0) and no new one is placed. No views or clicks count while down. My Spots shows "Taken down" with
the reason and no edit controls. Restore (POST .../restore) reverses it (NAS resumed). Admin ledger: GET /api/admin/actions (who,
when, reason, credit decision). The contract is never touched.
CREDIT BACK IS NOT BUILT: a spot is a $5 on-chain purchase and this site has no free replacement spot or post credit, so
credit: "back" is refused with a note until Marty decides what it means here; takedowns are "no credit".
Chatbot: CANNED takedown + banner answer (unlimited checked, logged edits) + FACTS EDITS/TAKEDOWN lines, KNOWLEDGE_DATE 2026-11-16.
line.css?v=9, my.js?v=z3.
Tests: smoke section 10 (the lookup shape, edit log, unlimited edits, refusals: unreachable, 404, private address, http redirect,
shortener, bad image size/404/unreachable; redirect followed; same link logs nothing; upload logged; default checked + logged;
takedown: token, reason, credit choice, credit back refused, held house tile, image nowhere, /go home, gate, no views, owner view,
no edits while down, ledger, restore, /admin) against a stand-in internet preloaded into the app (qa/out/probe-stub.cjs, nothing
leaves the machine), plus phone renders of My Spots taken down and /admin: 193/193 with UI. chatbot.test 181/181.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 05:23:54 -06:00
martbost 197aa39fca Network hub hook (Marty 2026-11-16): sign out everywhere, hub blocks and erases end sessions here; "Sign out everywhere" button
hubevents.js (new, byte-identical in VBB, DLB, ViralAdBlitz, DownlineHydra, 5xYourTeam): POST /api/hub/events, signed by the hub
with HUB_SECRET (same hook InstantAdPay and LinkSpin take). member.signedout and member.blocked: the person is looked up by hub id
(/v1/resolve, signed as bannerline) and every session of their main wallet or any contract wallet ends. member.erased: matched by
the wallet SHA-256s the hub now sends with the event. Only sessions made before the event end (a replay never signs anyone out
twice); a failed hub lookup answers 503 so the hub resends. Off with HUB_HOOK=0. Admin status: hubEvents (counts only).
My Spots: "Sign out everywhere" next to Sign out (POST /api/auth/logout-everywhere -> networksso.signOutEverywhere, then every
session of this wallet here ends). my.js?v=z2.
Smoke section 9 (refused signatures, signedout in two browsers, replay, older event, blocked, erased by wallet hash, other events,
hub down -> 503 -> resent, Sign out everywhere, admin view): 145/145 with UI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 05:01:28 -06:00
martbost ffb4275683 Network hub sign-in, step 3 (Marty 2026-11-15): networksso.js hub mode + every GET passes networksso.page()
networksso.js (the same file on every network site): with HUB_SSO=on (and HUB_URL, HUB_SECRET, HUB_SITE) /sso/start asks the network hub instead of one other site, /sso/in takes the hub's h1. token (this site's HUB_SECRET, iss hub, aud this site, 60 s, single use, state cookie) and falls back once to the old pairwise provider when the hub has nobody. page(): a signed-in member's real page load tells the hub once (nsso.hp, through hub /sso/set and straight back) and pings POST /v1/activity once a day (fire and forget; HUB_ACTIVITY=0 turns it off), only when the hub answered /health lately, so a hub that is down never takes a page with it. HUB_SSO stays off until switched on per site.
qa smoke passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:20:13 -06:00
martbost 0aaea45a5c Site assistant (Marty 2026-11-15): chat widget in the Downline Banners ultraviolet + lime look on every page, CANNED + FACTS from this repo's code and the BannerLine contract ($5 spot, 300 views in 30 days, 30% sponsor + 55% as $0.275 x 10 + 10% company + 5% momentum fund, fund buys after 4 h quiet, max 12 a day, 7-day gift cooldown, look-around tour, buy for someone, refuel spots, 468x60 up to 150 KB), retrieval over the shared network knowledge base on the hub (netkb.js, home entries boosted, another site named = its answer), reasoning off, account problems hand off to network support. Chat admin routes use a constant-time ADMIN_TOKEN check. chatbot.test 165, smoke 131/131
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 13:07:32 -06:00
martbost 6d277171ca Footer network links carry a referral username (Marty 2026-11-15): the signed-in member's own network username, else the sponsor the visitor came in on. /api/me now also answers username (signed in) and refName (the sponsor's network username via nameOf; never the wallet, so the bl.ref cookie is not read client side). Tracked links get it as s1 (LinkSpin sends it on as ?ref=), plain links as ?ref=, none for Earners Corner. Same approach as VBB 6798503. common.js?v=20261115nr. Smoke 127/127
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:03:31 -06:00
martbost 5e42a48eaa PolHunter mission dlb-how (Marty 2026-11-14: every rebuilt network site gets a PolHunter mission). /how carries the one-line PolHunter embed (data-selector "main.wrap > .card", 5 slots, the code lands in one of the How it works cards, picked per hunter per day); CSP admits https://polhunter.com in script-src and connect-src only. Smoke 127/127
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 17:00:32 -06:00
martbost 18745d2923 GET /api/admin/member-lookup (Marty 2026-11-14, network hub member lookup): read-only, x-admin-token; ?q=<wallet> or <spot id> answers myData (spots with tx, payouts, directs, username) plus known, chainMember, aliasWallets, paidFor, gifted, contract, explorer. Smoke 127/127
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 12:53:37 -06:00
martbost da16bfaf4d Trust pack (Marty 2026-11-14): legal pages, network footer, Telegram image + week stats.
- /terms, /disclaimer (Earnings Disclaimer), /privacy: TrustClickz, 615 Green Valley Drive, Moody, AL 35004; written from the real mechanics: a $5 spot buys advertising (300 guaranteed views + a place in the line), same-transaction split 30/55/10/5, the contract holds only the momentum fund, paid only when later spots sell, nothing held or withdrawn, no refunds on-chain, one-time purchases, crypto risk, data (wallet, username from the hub, hashed visit checks, cookies, no email stored) and one account across the network through the hub. No earnings cap shown. Sitemap.
- Footer: Terms, Earnings Disclaimer, Privacy, Contract, Ledger, Support, company line, 'Part of the network' from the hub (netsites.js, GET /api/network-sites, 10 min cache, fallback list), Downline Banners marked current.
- tgproof.js: each sale message adds this week's spot numbers (Central-time week, bought vs gifted) and shows a large kit image above the text via link_preview_options (rotated, no caption length limit); TG_API for the test stand-in.
common.js?v=20261114t, line.css?v=8. Smoke 122/122 (stand-in Telegram: one message per sale, never two per tx; stand-in hub serves the list; legal pages; footer on phone).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 10:50:37 -06:00
martbost 920efd72d6 Promo kit (Marty 2026-11-14: "get all the creatives built for downline banners and VBB, and put them in all the places they need to go"): promokit.js is the one source for the Downline Banners kit, published as GET /api/promo-kit?u=<network username or wallet> (public, CORS open, read by /promote and by InstantAdPay's Promo tools > Network sites): personal links (?ref=), 21 creatives (3 angles: $5 spot + 300 guaranteed views / 10 levels pay as spots sell after yours / no withdrawals, paid in the same transaction; each in 125x125, 468x60, 728x90, 300x250, 160x600, 1200x630, 1080x1080) at /art/kit/dlb-<angle>-<shape>.png (ad-blocker-neutral names, rendered crisp from HTML by tools/kit-art.mjs with Playwright), 5 lines, 3 headlines, 1 email, 2 posts (facts per SPEC.md + contract: sponsor 30%, 10 levels x 5.5%, splits fixed; nothing promised). /promote page (kitpage.js + promote.js + kit.css): username from sign-in, ?u= or typed; nav + footer link Promote; sitemap. server.js: one require + one hook line. common.js?v=20261114p. Smoke 106/106 (promo kit feed, every PNG at its exact size, Promote page signed in, desktop + phone screenshots; gate step now screenshots itself if it ever stalls).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 10:08:08 -06:00
martbost 57e733b55d Member lookups through the network hub (Marty 2026-11-14: "want everything looped through the hub to verify membership"): hubpeople.js asks POST /v1/resolve (ref / wallet / hub id, signed as bannerline, cached 5 minutes, 2.5 s timeout, hub skipped 30 s after a failure); netMember / nameOf ask the hub first and InstantAdPay's /api/network/member only when the hub is unreachable (wallet-aliases.json still first). Sponsor pick: the hub network sponsor for the wallet that will own the spot (the buy page asks /api/sponsor?for=<owner> just before the buy; else the signed-in wallet), resolved to a wallet by hub id, nearest up the network line who owns a spot here, none = no sponsor; then the /w/ welcome line (usernames resolved through the hub), then the ?ref= cookie. Admin status shows hubLookup. join.js?v=20261114h. Smoke 91/91 (stand-in hub + stand-in InstantAdPay)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 09:25:46 -06:00
martbost 7c2aab8f65 Buyer names: an admin wallet alias (POST /api/admin/wallet-alias {wallet, username}, a MySQL document) for members who bought from a second wallet (bizventures, spot #3, Marty 2026-11-14); the sale toast shows a short wallet instead of 'A member' when no name is known; common.js?v=20261114a. Smoke 76/76
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 07:38:06 -06:00
martbost 2c0e0dcedc Client IP: rightmost X-Forwarded-For (the one Coolify's proxy adds); cf-connecting-ip only with CF_PROXIED=1. The domain is not on Cloudflare, so a visitor could send a fake cf-connecting-ip and count as many unique viewers. Smoke 76/76
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:02:08 -06:00
martbost 7aa6bb6ed1 Old referral links: check before the home page is served (/?<old username> was served as home)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 15:27:07 -06:00
martbost 81c6123275 Old site links (2026-11-13): /?<old username> referral links map to that person's network username (oldrefs.json, 1,993 matched by email) as ?ref=; old *.php page addresses go home
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 15:22:14 -06:00
martbost 27d784136d Returning-member results (2026-11-13): /w/<code> opens counted per code (welcome-visits.json, MySQL document), GET /api/admin/welcome-stats: codes opened, total opens, new members since the first open with their sponsors
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 15:15:58 -06:00
martbost 5d148a5b3b Board: no repeated banners (Marty 2026-11-13): a member whose spot is on the board gets no Banner Spin fill tile, and no image or Banner Spin code appears twice on one board
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 14:57:25 -06:00
martbost 62985840f7 Network Ad Space + board fill (Marty 2026-11-13 'proceed'): dlbnas.js keeps one standing 468x60 house banner in NAS (25k views, refilled when low, link ?src=nas) and places any spot past 30 days with fewer than 300 views in NAS for exactly the views owed; NAS-served views count toward the spot's 300 (My Spots). Empty board slots show members' own LinkSpin Banner Spins (one active 468x60 per member, refreshed every 10 min) before house ads. art/house-strip-nas.png. Smoke 76/76.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 14:14:30 -06:00
martbost 76d9bc0b21 Returning members (Marty 2026-11-13): /w/<code> personal links remember each old member's sponsor line (network sponsor first, then the old Downline Banners upline, network usernames, nearest first; welcome.json in MySQL via docstore, loaded with POST /api/admin/welcome). When they open the buy page, the sponsor is the first in that line who has a wallet linked AND already owns a spot (the contract only binds a sponsor who is a member); nobody qualifies -> no sponsor, never the company. Plain ?ref= links are used only without a personal code. Smoke 76/76.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 11:13:44 -06:00
martbost d5fdddd5af Network ad zones in seven subtle places (Marty 2026-11-13: 'do all seven'), LinkSpin zones on Marty's account, each mounted once with a small 'Network' label: ledger after the 10th sale (468x60), above the footer on every page (728x90 wide / 320x50 phone), after a purchase (300x250), My Spots under the stats (468x60), How it works between cards (300x250), contract proof (468x60), 404 (300x250). CSP admits linkspin.app (script + serve call). SEO: per-page descriptions, canonical, Open Graph + Twitter cards with a 1200x630 preview (art/og-share.png), JSON-LD on home, /sitemap.xml, robots Sitemap line, My Spots noindex. common.js?v=4, line.css?v=6. Smoke 76/76.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 10:52:10 -06:00
martbost 87354e29b6 Payment proof + transparency (Marty 2026-11-13): every spot sale posts ONE message to the group's payments topic (tgproof.js: buyer, each member paid with POL and $ at the contract's price, company + fund line, Polygonscan verify + live ledger links; once across app copies via docstore.claim; never older than 2 h). New /ledger (every sale and payout, live, verify links) and /contract (verified source, owner, keeper, fee wallets, price feed, live reads, fixed split, how to check). Live sale toasts bottom-left on every page (real ledger rows only, newest 30 min). Nav + footer links. common.js?v=3, line.css?v=5. Smoke 76/76.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 10:35:08 -06:00
martbost c6ca40a241 Downline Banners data in MySQL (Marty 2026-11-13: database is the standard): docstore.js (same file as LinkSpin/InstantAdPay) keeps store.json, refuel spots, hub report and sign-in nonces in MySQL (DOCSTORE_URL), one writer at a time; startup waits for the store before loading anything. chain-index.json stays a rebuildable cache, art/ uploads stay files. Smoke 76/76.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 09:38:51 -06:00
martbost 9408b7af8b My Spots: 'Use a LinkSpin Banner Spin' (two taps: pick a 468x60 spin, image + tracking link fill and save). Refuel spots: /api/partner/refuel-spot (signed) queues one buyFor per $50+ counted refuel tx, bought from the engine wallet with a 3 POL reserve, every cost recorded (refuelspots.js); never sends at the same time as the keeper. my.js?v=5, line.css?v=4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 08:55:44 -06:00
martbost 34ffe2eb78 One address (Marty 2026-11-13): www. and new. redirect 301 to downlinebanners.com (SITE_HOST), path and query kept
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 08:34:52 -06:00
martbost 289fcaf2c8 Click macros (Marty 2026-11-13): a spot's Target link can carry {clickid}, {spot} and {type} (gate/organic), filled on every click, for LinkSpin's Downline Banners source; hint on My Spots, my.js?v=4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 08:25:54 -06:00
martbost bdb2aacf27 Network hub shadow mode (Marty 2026-11-13): hubreport.js reports every on-chain member to the hub as a contract bind by wallet (one way; unknown wallets kept and re-asked every 6 h), visible in /api/admin/status; off unless HUB_ENABLED
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 08:00:18 -06:00
martbost 0507c1a815 Downline Banners (Marty 2026-11-13: keep the name): renamed everywhere members see it, new stacked-banner logo + favicon; network sign-in (arrive signed in from InstantAdPay/LinkSpin as your wallet); share links, sponsor and directs use network usernames (?ref=username resolves through InstantAdPay)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 07:35:22 -06:00
Marty Bostick 1c203eba8a Banner Line web app v1: gate, board, buy, My Spots, dashboard, chain index, keeper, local smoke test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 06:35:32 -06:00