';
}
diff --git a/chatbot.js b/chatbot.js
index 4f43281..73b2a99 100644
--- a/chatbot.js
+++ b/chatbot.js
@@ -384,6 +384,7 @@ ${passTiersFact()}${heroesFact()}${refuelFact()}${synFact()}${polminerFact()}${w
- PIPELINE (live since 2026-09-15): a follow-up board on the dashboard, tab 'Pipeline' between My line and Buy packages, with its own training video on the Training tab. Columns: Talking to, Joined, Wallet linked, Payouts on, Bought, Building, Later. Prospects (from the My line prospect list) and directs are placed automatically from what they have actually done (coaching rung, on-chain buys); nobody drags cards. The sponsor adds a note, a follow-up date and a tag (hot, later, no response, not interested); a 'Follow up today' strip lists due cards; stalled cards (quiet 3+ days) are flagged; each card carries the message for its exact stage with 'Open chat with this message' (member chat) or copy.
- LEADER TOOLS (since 2026-10-16): a 'Leader tools' section on the Training tab with the Leader's Guide (a downloadable PDF: building wide, how width unlocks levels 2 and 3, network reach, Qualified Start, LinkSpin, the wallet as your key, the first week), the narrated presentation to share, and the Build wide video. My line and Pipeline each have a Leader tools card with a direct 'Download the Leader's Guide (PDF)' button and 'Open Leader tools'.
- UNACTIVATED SPONSOR = WALK UP, NEVER HOLD (2026-09-16, Marty): if a buyer's sponsor has not linked a wallet or switched on payouts, the purchase is NOT held. The site walks the sponsor line upward to the first upline who is activated with payouts on and the buy goes through under them (on-chain sponsorship for that buyer is then theirs, permanently); if nobody in the line is activated it goes under the company catch position (#1). The buyer sees a one-line notice and proceeds; once the position exists on the chain the skipped sponsor gets a blunt email + on-site message (they lost this referral for good, how to switch on payouts) and the upline who was paid gets a message that the referral is theirs permanently with a nudge to coach the one who missed it; the referral MOVES to whoever got paid (the account's stored sponsor is re-pointed when the position is created on-chain), so the buyer leaves the skipped sponsor's My line for good; the skipped sponsor can never earn from that wallet. Only a transient chain error ('rpc') still pauses a buy ("try again in a minute").
+- YOUR DIRECTS' DETAILS (2026-11-12): in Members > My line > 'Your line', each person who joined through your link shows their email (with a copy button), where they came from (the referring site and the link's source tag, e.g. 'from mailer.gold/mailergold'; 'no referring site' when the browser hid it; accurate source tags start 2026-11-12, older sign-ups mostly read 'no referring site') and how they joined (your invite link, your bridge page, a link version, a game, came over from LinkSpin, moved over from BTC4Hits). The same email + origin show in the Activity drop-down and the three-level downline card for your directs. Levels 2 and 3 never show emails: they belong to their own sponsor's direct relationship. The search box also matches email and source.
- FIND A MEMBER (2026-11-12): every member list on My line (Your line, the three-level downline, the Holding tank) has a search box at the top of its sort/filter bar. Type part of a name, username (with or without @), email or member number and the list narrows as you type, starting on page 1; it works together with the sort and the filter chips. Emails only show (and match) for your own level 1.
- DRILL DOWN FROM THE OVERVIEW (2026-09-15): every name chip in 'Your line at a glance' on the Overview is clickable; it jumps to My line with that person's Activity panel already open and the row highlighted.
- VISIT PACKS ARE PAID UP FRONT (2026-09-15, Michael's question): a verified-visits campaign charges the whole pack when it is created (3 credits per visit, so 1,000 visits = 3,000 credits) and then delivers over time as members complete verified visits (each member can do at most 20 a day, so packs fill gradually: tens per day at today's size). The Campaigns row shows 'paid up front' and 'N of M visits delivered'; the credits are not being consumed again, they were reserved once. Same for featured-day bookings: a featured link is a flat buy (featuredPerDay credits per day, whole run charged when booked), its row shows 'paid up front', the day count and 'runs through ', and it ends on its last day ('run ended'). FEATURED CANNOT TAKE ADDED CREDITS (2026-09-16, Hugh and Michael both tried): the row offers 'Extend run' which books more days after the current run (or from today if it ended) and charges them right away; there is no 'Buy more views' on a featured row any more. Visit packs offer 'Buy more visits' (charged now, adds to the pack). Credits added to a campaign are set aside immediately (Available drops at once) and whatever is unspent returns to Available when the campaign ends.
diff --git a/leaderboard.js b/leaderboard.js
index fe2a705..27fd182 100644
--- a/leaderboard.js
+++ b/leaderboard.js
@@ -133,7 +133,7 @@ async function renderPage() {
const fmtD = ts => new Date(ts).toLocaleDateString('en-US', { timeZone: TZ, month: 'short', day: 'numeric' });
const desc = 'Who is selling the most ad packages on InstantAdPay this week and this month. Weekly and monthly referral contest standings, read from the chain.';
let h = 'Leaderboard | InstantAdPay'
- + '' + themehead.tag() + ''
+ + '' + themehead.tag() + ''
+ '
'
+ '
Referral contest
Leaderboard: who is selling.
Ranked by ad packages sold to other people (your own positions never count, and the company account is not a contestant). Read from the chain, updated live. Weeks run Monday to Sunday, Central time.
';
diff --git a/server.js b/server.js
index b5ee8ef..dcf7d8c 100644
--- a/server.js
+++ b/server.js
@@ -2411,7 +2411,7 @@ const server = http.createServer(async (req, res) => {
const r = await drip.unsubscribe(u.searchParams.get('e'), u.searchParams.get('t'));
const msg = r.error ? r.error : 'Done. You will not get any more emails from InstantAdPay, apart from sign-in codes you ask for and receipts for payments to or from your account. Your account is unchanged.';
res.writeHead(r.error ? 400 : 200, baseHeaders({ 'Content-Type': 'text/html; charset=utf-8', 'Cache-Control': 'no-store' }));
- return res.end('InstantAdPay' + themehead.tag() + '
');
}
// -- public API
@@ -3097,6 +3097,9 @@ const server = http.createServer(async (req, res) => {
const rTot = await ads.earnedTotals(joined.map(r => r.email)); // surf earnings per referral (Marty, 2026-09-29)
out.referrals = joined.map(r => ({
name: r.username || r.email.replace(/^(.).*(@.*)$/, '$1***$2'), // username, else privacy mask
+ // directs only (this list IS the member's directs): email, where they came from and how they joined, up front in
+ // "Your line" instead of buried in the three-level card (Marty, 2026-11-12)
+ email: r.email, src: r.joinedRef || null, via: r.joinedVia || null, ref: r.code || null,
joined: r.created,
lastSeen: r.lastSeen || 0,
wallet: !!r.address, activated: !!r.memberId,
@@ -4734,6 +4737,7 @@ const server = http.createServer(async (req, res) => {
name: m.username ? '@' + m.username : m.memberId ? 'member #' + m.memberId : 'member',
ref: m.code || null, // opens the activity drop-down (Clinton's ask, 2026-09-14): any of the three levels
email: L.level === 1 ? m.email : null, // directs only
+ src: L.level === 1 ? (m.joinedRef || null) : null, via: L.level === 1 ? (m.joinedVia || null) : null, // where a direct came from (2026-11-12)
joined: m.created,
lastSeen: m.lastSeen || 0,
wallet: !!m.address, activated: !!m.memberId,
@@ -4765,6 +4769,8 @@ const server = http.createServer(async (req, res) => {
try { out.directs = ((await accounts.downline(a.email, 1))[0] || { members: [] }).members.length; } catch (e) { out.directs = 0; }
try { out.badges = await ads.milestonesOf(a.email); } catch (e) { out.badges = []; }
try { out.positions = (await accounts.positions(a.email)).length; } catch (e) { out.positions = 0; }
+ // your own directs: contact + origin (Marty, 2026-11-12). Levels 2 and 3 belong to someone else's direct relationship: no email.
+ try { if (await accounts.isDownlineOf(s.email, a.email, 1)) { out.direct = true; out.email = a.email; out.src = a.joinedRef || null; out.via = a.joinedVia || null; } } catch (e) {}
return json(res, 200, out);
}
// -- broadcast a message to your downline (1/day), on-site inbox + email
@@ -6133,7 +6139,7 @@ const server = http.createServer(async (req, res) => {
+ ''
+ ''
+ ''
- + '' + themehead.tag() + ''
+ + '' + themehead.tag() + ''
+ ''
+ '
@' + esc(un) + ' unlocked ' + label + '
' + esc(sub.charAt(0).toUpperCase() + sub.slice(1)) + '. On InstantAdPay every ad package that sells pays the sponsor in the same transaction, straight to their wallet, on-chain.
Advertising with a performance referral program. Not an investment; no income is guaranteed.
'
@@ -6199,7 +6205,7 @@ const server = http.createServer(async (req, res) => {
let a = await accounts.byUsername(tok); if (!a) a = await accounts.byCode(tok);
// a deleted or never-seen name is a real 404, never a bare "Banner wall" page at 200 (a soft 404 Google kept indexed, 2026-10-30)
if (!a) {
- const nf = 'No wall under that name | InstantAdPay' + themehead.tag() + '