Welcome back 👋
গল্পলোক Admin — Here's what's happening today.
Total Stories
6
↑ 2 this week
Total Views
1.8L
↑ 12% today
Total Likes
14.6K
↑ 8% today
Comments
347
↓ 2 removed
Ad Clicks
0
Configure ads below
Story Parts
18
3 parts/story avg
Top Stories
Quick Actions
Stories
Manage all Bengali stories and their parts
All Stories
| Title | Genre | Parts | Views | Likes | Status | Actions |
|---|
Featured & Trending
Control hero slider and premium collection
⭐ Hero Slider
Stories marked as Featured appear in the hero banner slider.
🔥 Trending
Stories ranked by views automatically appear in Trending.
💛 Premium Collection
Mark stories as Featured to include them in the Premium Collection section.
Categories
Manage story genres and categories
| Emoji | Name | Stories | Visible | Actions |
|---|
Comments
Moderate reader comments
Recent Comments
Requires Supabase connection
Connect Supabase to manage comments.
Smartlink & Exit Ads
Configure exit-intent smartlinks and popup ads. Ads NEVER interrupt reading.
Ad System Master Control
Enable or disable the entire ad system globally.
Ads Disabled
Ad URLs
Set your Smartlink and Popup redirect URLs.
Triggers on back button & page exit
Opens inside the popup modal
Popup Content
Customize what the exit popup says to readers.
Delay in milliseconds before popup appears
Ad Trigger Rules
Control exactly when ads appear. NEVER during active reading.
Reader Exit (Close story)
Trigger when reader closes a story or presses back
Browser Back Button
Detect browser back navigation
Page Exit / Tab Close
Trigger smartlink when user leaves the site
Mouse Exit (Desktop)
Detect when cursor leaves top of page
❌ Never Trigger During Reading
Ads will NEVER show while reading story parts
Analytics
Story performance and reader engagement
Views by Story
Likes by Story
Genre Distribution
Homepage Settings
Control homepage layout and sections
Section Visibility
Hero Slider
Categories Bar
Trending Stories
Premium Collection
Latest Stories
Emotional Stories
Continue Reading
Site Branding
Settings
Supabase connection and advanced configuration
🔌 Supabase Connection
Disconnected
Enter your Supabase project credentials. These are saved to localStorage only.
🗄️ Database Tables
Copy this SQL to set up your Supabase database tables.
-- Run in Supabase SQL Editor CREATE TABLE stories ( id uuid PRIMARY KEY DEFAULT gen_random_uuid(), slug text UNIQUE NOT NULL, title text NOT NULL, description text, genre text, mood text, author text, tags text[], views bigint DEFAULT 0, likes bigint DEFAULT 0, emoji text DEFAULT '📖', bg_color text, accent text, read_time text, is_featured boolean DEFAULT false, is_emotional boolean DEFAULT false, created_at timestamptz DEFAULT now() ); CREATE TABLE story_parts ( id uuid PRIMARY KEY DEFAULT gen_random_uuid(), story_id uuid REFERENCES stories(id) ON DELETE CASCADE, part_number int NOT NULL, title text NOT NULL, content text, emoji text, bg_color text, created_at timestamptz DEFAULT now() ); CREATE TABLE bookmarks ( id uuid PRIMARY KEY DEFAULT gen_random_uuid(), user_id uuid, story_id uuid REFERENCES stories(id) ON DELETE CASCADE, created_at timestamptz DEFAULT now(), UNIQUE(user_id, story_id) ); CREATE TABLE likes ( id uuid PRIMARY KEY DEFAULT gen_random_uuid(), user_id uuid, story_id uuid REFERENCES stories(id) ON DELETE CASCADE, created_at timestamptz DEFAULT now(), UNIQUE(user_id, story_id) ); CREATE TABLE profiles ( id uuid PRIMARY KEY, username text, avatar_url text ); CREATE TABLE comments ( id uuid PRIMARY KEY DEFAULT gen_random_uuid(), user_id uuid REFERENCES profiles(id), story_id uuid REFERENCES stories(id) ON DELETE CASCADE, content text NOT NULL, created_at timestamptz DEFAULT now() ); CREATE TABLE reading_history ( id uuid PRIMARY KEY DEFAULT gen_random_uuid(), user_id uuid, story_id uuid REFERENCES stories(id) ON DELETE CASCADE, current_part int DEFAULT 0, progress int DEFAULT 0, last_read_at timestamptz DEFAULT now(), UNIQUE(user_id, story_id) ); CREATE TABLE smartlinks ( id uuid PRIMARY KEY DEFAULT gen_random_uuid(), smartlink_url text, popup_url text, popup_title text DEFAULT 'আরও গল্প পড়তে চান?', popup_sub text DEFAULT 'Premium Bengali stories.', popup_cta text DEFAULT 'Explore Now →', enabled boolean DEFAULT false, trigger_delay int DEFAULT 500, updated_at timestamptz DEFAULT now() ); -- Enable Row Level Security (optional but recommended) ALTER TABLE stories ENABLE ROW LEVEL SECURITY; ALTER TABLE story_parts ENABLE ROW LEVEL SECURITY; -- Allow public read CREATE POLICY "Public read stories" ON stories FOR SELECT USING (true); CREATE POLICY "Public read parts" ON story_parts FOR SELECT USING (true); CREATE POLICY "Public read smartlinks" ON smartlinks FOR SELECT USING (true);