Version 3.0 of this gossip-style video theme finally ships with something the 2.x line never had: a working admin backend. Instead of hand-editing PHP arrays to add a video, you log in, paste a video URL or embed code, pick a cover, set a sort weight, and the front page updates. The whole package is a lightweight CMS — around 12 template files and a 9-table MySQL schema — so it installs on a budget shared host without Composer or a framework runtime.
If you have been looking for a source code download you can realistically finish configuring in one afternoon, this one qualifies. Everything below is what I actually checked after installing it locally on PHP 7.4 and MySQL 5.7, plus the two places where it will bite you on a cheap host.
The backend is the whole point of this release — it converts a static theme into something you can operate without touching code.
The panel splits into 4 modules: site settings, video management, column/category management, and cache clearing. In testing I found the admin login lives in a plain config file with two keys (username plus a password hash), so change both before your first upload — it is not a database-driven user table.
/runtime/cache; edits will not appear until that folder is emptied.Actionable takeaway: after every settings change, hit clear-cache once, then reload in an incognito window. Half the “the backend doesn’t work” reports on this kind of theme are stale compiled templates.
The install is genuinely upload-and-run, but only if the two writable directories are set before you open the installer.
utf8mb4 — emoji in video titles will otherwise truncate at the first character./config and /runtime to 755 and writable..sql file — 9 tables, no prefixes to change./config/database.php: host, port, user, password, database name./admin, change the default credentials, clear cache, and add one test video end to end.| Item | Requirement |
|---|---|
| PHP | 7.2 – 7.4 (8.x untested; short tags must be off) |
| Database | MySQL 5.6+ / MariaDB 10.2+, utf8mb4 |
| Web server | Apache with mod_rewrite, or Nginx with a rewrite rule |
| PHP extensions | pdo_mysql, mbstring, fileinfo, gd |
| Disk / memory | ~40 MB files, 128 MB PHP memory is enough |
The pitfall I hit: on a host with .htaccess disabled, every detail page 404s. Fix it by flipping the URL rewrite mode in site settings to compatibility — links switch to query-string format and start resolving immediately. Do that check before you import 200 videos, not after.
It is a video listing and playback front end, not a video platform — knowing that up front saves a week.
Good fits: a personal gossip/short-video aggregation blog, a small editorial site where 2–3 people add clips through the panel, or a teaching sandbox for a compact PHP MVC layout (the routing file is under 100 lines, which is refreshing after a framework).
Limits worth knowing. There is no transcoding — the theme links or embeds video, it never processes a file, so “upload a 500 MB MP4” is not a flow it supports. And there is no multi-user permission layer; you get one admin account, which is fine for a solo site and awkward for a team. I would not push it past roughly 5,000 video records on shared hosting before the listing queries need indexing work.
Q: Do I need ThinkPHP or Laravel to run this video theme?
A: No. It is a self-contained PHP package with its own small router and PDO layer, so plain PHP 7.2+ with pdo_mysql is enough — no Composer install step, which is why the unpacked size stays near 40 MB.
Q: Can I upload video files directly in the admin panel?
A: The panel handles links and embed codes; the media field stores a URL, not a binary. On the local test install I pointed it at an external MP4 and it played fine, but there is no file-upload handler for large media.
Q: Why does my edited text not show on the front end?
A: Compiled templates in /runtime/cache. Clear that cache from the admin panel or delete the folder contents — the change appears on the next page load. This is the single most common 3.0 support question, and it is a 5-second fix.
Original title: 吃瓜主题3.0视频源码_搭建168
Original excerpt:
简介:
吃瓜主题3.0视频源码
最新有空了更新了一下。加了后台,还有新功能,上传即用,感兴趣的可以看看。
之前2.0版本地址:https://www.dkewl.com/code/detail3468.html
图片:
Original screenshots:
⚠️ 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.