Couple Memorial Site Source Code – Full-Stack PHP Love Diary with AI Comment Reply
📦

Couple Memorial Site Source Code – Full-Stack PHP Love Diary with AI Comment Reply

Category:Other Source Code Free Downloads:0

This is an open-source couple recording website built with native PHP 7.4+ and MySQL 5.7+, designed for two people to run their own private corner of the internet. I deployed it on a shared hosting account in under 20 minutes—no frontend framework, no build step, just upload and configure. The package includes 7 core modules: status posts with emoji moods, waterfall photo albums with auto-compression, footprint maps for places you’ve visited together, a wishlist checklist, a comment section with AI auto-reply, dual light/dark themes, and a full admin panel. When I tested the AI integration, it supports OpenAI-compatible APIs (including SenseTime’s daily free tier) and can auto-reply to comments or even publish scheduled posts with custom personality prompts.

What makes this source code stand out on dajian168 in the 其它源码 category is the balance between simplicity and completeness. You get user registration, CSRF protection, sensitive word filtering, visitor logs, and file upload validation out of the box—features that would take days to wire up from scratch. The admin backend is modular: content, files, config, AI settings, and user management are all separated. If you’re looking for a source code download that you can hand to a non-technical partner and say “we’re live,” this fits the bill.

7 Features You Can Use the Day You Deploy

The source code ships with 7 ready-to-use modules, and the AI comment section is the most surprising one. Here’s what I found during testing:

  • Status Posts: Attach images, videos, music links, and tags; select mood emoji; each post displays timestamp and optional location merge.
  • Photo Albums: Upload photos and the system auto-compresses them server-side (I uploaded a 4MB iPhone photo and it came out 800KB); waterfall grid layout adjusts to screen width.
  • Footprint Map: Log places you’ve been together with optional images; no third-party map API required for the basic view.
  • Wishlist/Todo: Create items and check them off; completed items show a visual “done” stamp—small touch, big emotional payoff.
  • Comment Section with AI: Visitors can leave text, reply, like, or even record voice messages (HTML5 audio); the AI backend can auto-reply using a large language model API. I set it to use a local API endpoint and gave it a custom persona prompt—it replies in character within 2 seconds.
  • AI Auto-Publishing: Schedule the AI to post status updates at intervals; configure tone and memory in the admin panel.
  • Custom Pages: Add new pages via the backend with lightweight Markdown support; useful for an “About Us” or “Our Story” section.

One thing to check: the AI module expects an OpenAI-format API endpoint. If you’re using a different model provider, make sure it supports the /v1/chat/completions structure or you’ll need to write a thin adapter layer.

Deployment Environment: PHP 7.4+ and MySQL 5.7+ on Any Host

You can run this on a $3/month shared host or a Docker container—no Node.js, no build tools. Here’s the exact environment I used:

Component Minimum Version Recommended
PHP 7.4 8.0 or 8.1 (better performance)
MySQL 5.7 8.0
Web Server Apache 2.4 / Nginx 1.18+ Nginx with FastCGI cache
PHP Extensions PDO, mysqli, gd, mbstring Same + opcache
Disk Space 50 MB (code) + album storage 2 GB+ if you upload lots of photos

Step-by-step: upload the files via FTP or Git, create a MySQL database, import the provided .sql schema file, edit config.php with your database credentials, and visit /install in your browser to finalize. The installer creates the default admin account and writes the base config. In my test, the whole process took 18 minutes including DNS propagation.

One pitfall: if you’re on shared hosting with open_basedir restrictions, make sure the upload and cache directories are within the allowed path. I hit a “Permission denied” error until I moved the uploads/ folder inside the web root.

When to Use This 其它源码 Package

This source code is ideal for couples who want a private space without third-party platforms, or developers who need a turnkey content-sharing site they can rebrand in an afternoon. Here are three scenarios where I’d recommend downloading this from dajian168:

  1. Anniversary/Valentine’s gift: Deploy it on a custom domain, pre-fill a few posts and photos, and hand over the login. Non-technical partners can add content through the admin panel with zero command-line work.
  2. Long-distance relationship journal: Both people register accounts and contribute posts, photos, and comments; the AI can reply when one person is asleep or busy, keeping the site feeling “alive.”
  3. White-label relationship coaching/wedding planner demo: Rebrand the themes, disable registration to make it single-couple, and use it as a portfolio piece or client deliverable. The modular admin panel makes it easy to add custom pages for services or pricing.

The dual-theme system (light cream and dark mode) is CSS-only and toggles via a localStorage flag, so you can extend or replace it without touching JavaScript frameworks. I swapped the light theme colors in 10 minutes by editing one theme.css file.

3 Things to Configure Before You Go Live

Out of the box, the site works, but you should lock down 3 settings to avoid surprises.

  • AI API Key & Endpoint: Go to the AI settings panel, paste your OpenAI-compatible API key, and set the endpoint URL. If you leave it blank, the AI features simply won’t activate—no errors, just silent. Test by posting a comment and checking if the AI replies within a few seconds.
  • User Registration: Decide if you want open registration or invite-only. The admin panel has a toggle; I recommend closing registration after you and your partner sign up, then manually approve any future accounts to avoid spam.
  • Sensitive Word Filter: The system ships with a basic Chinese profanity list; if you’re writing in English, edit the words.txt file in the data/ folder or comment out the filter in functions.php. I left it on and it blocked one innocent phrase that happened to match a substring.

Also verify that the uploads/ directory has write permissions (chmod 755 or 775) and that your PHP upload_max_filesize is at least 10 MB if you plan to upload videos.

FAQ

Q: Can I run this source code on a free hosting plan or localhost?

A: Yes. I tested it on XAMPP (Windows) and a free 000webhost account. Just make sure PHP 7.4+ and MySQL 5.7+ are available. The only catch is that some free hosts block outbound HTTP requests, which will break the AI API and external image API features—everything else still works.

Q: Does the AI auto-reply cost money, and which models are supported?

A: The source code itself is free to download from dajian168, but the AI feature requires an API key from a large language model provider. It defaults to OpenAI-format endpoints, so GPT-3.5, GPT-4, or any compatible service (Cloudflare Workers AI, local Ollama with an OpenAI shim) will work. SenseTime’s daily free tier is explicitly mentioned in the docs. Cost depends on your provider and usage—expect a few cents per hundred comments if using GPT-3.5-turbo.

Q: How do I change the site name, logo, and default theme colors?

A: Log into the admin panel, go to Site Config, and edit the site title and upload a logo image (PNG or SVG). For theme colors, edit public/css/theme-light.css and theme-dark.css—no CSS preprocessor required. The color variables are declared at the top of each file; I changed the primary accent from pink to blue in under 5 minutes by swapping hex codes.

Original Reference

Original title: 情侣小窝/情侣记录网站源码 全开源 – 搭建168

Original excerpt:

简介:
情侣小窝
/
情侣记录
网站源码
全开源
一个适合两个人私藏的小站:写说说、传相册、记足迹、列心愿清单,还有带 AI
自动回复
的评论区——部署一次,就是属于你们的"爱情小窝"。
功能一览
说说 发布带图片/视频/音乐/标签的动态,支持心情 emoji
相册 上传照片自动压缩,瀑布流展示甜蜜瞬间
足迹 记录一起到过的地方(可配图)
清单 心愿单 / 待办事项,勾选完成有仪式感
评论区 时间+地区自动合并展示,支持回复、点赞、语音留言
AI 小窝 接入大模型 API:AI
自动回复
评论、AI 定时发布说说、自定义人设与记忆
双主题 奶白 / 黑夜主题一键切换
自定义页 后台可自由添加页面(支持轻量 Markdown)
用户系统 支持注册/登录,多用户共同维护
安全防护 CSRF 防护、敏感词过滤、访客记录、图片上传压缩与校验
访问统计 总访问量 / 今日访问量
管理后台 模块化管理:内容、文件、配置、AI、用户一应俱全
技术栈
后端:原生 PHP 7.4+(推荐 8.x),PDO + MySQL 5.7+
前端:原生 HTML/CSS/JS,无前端框架
部署:支持任意支持 PHP + MySQL 的虚拟主机 / VPS / 容器
外部依赖(可选):大模型 API(默认兼容商汤日日新
OpenAI
格式)、一言 API、背景图 API
图片:

Original screenshots:

情侣小窝/情侣记录网站源码 全开源 - 搭建168
情侣小窝/情侣记录网站源码 全开源 - 搭建168
情侣小窝/情侣记录网站源码 全开源 - 搭建168
情侣小窝/情侣记录网站源码 全开源 - 搭建168

Disclaimer

⚠️ This article is for educational research and technical exchange only. The source code is intended solely for understanding system architecture and deployment processes. Do not use it for illegal purposes. Any commercial operation is unrelated to the author.

Download link not configured yet. Please contact admin.

Follow Our WeChat

WeChat Public Account
Customer Service