Support us and view this ad

可选:点击以支持我们的网站

免费文章

第一步:创建新仓库   第一步:创建新仓库 登录 GitHub 点击右上角 "+" → "New repository" 填写信息: Repository name: joomla-ad-unlock Description: Joomla 4 Ad Unlock Module - Click ads to unlock content Public 勾选 "Add a README file" 选择 MIT License 点击 "Create repository" 第二步:准备本地文件 创建本地目录结构: # 在你的电脑上执行mkdir joomla-ad-unlockcd joomla-ad-unlock # 创建目录结构mkdir -p {tmpl,sql/mysql,language/en-GB,media/{css,js,images},forms,src} # 初始化Gitgit init git remote add origin https://github.com/bluetoothbeijing/joomla-ad-unlock.git 第三步:创建所有文件 使用我下面提供的完整代码,创建以下文件: 1. README.md # Joomla 4 Ad Unlock Module A professional Joomla 4 module that allows you to lock content behind advertisements. Users must click ads to unlock premium content. ## Features - 🛡️ **Joomla 4.4+ Compatible**- 🚀 **PHP 8.3 Ready**- 🗄️ **MySQL 8.0 + utf8mb4 Optimized**- 📱 **Mobile Responsive**- 🔒 **Anti-Fraud Protection**- 📊 **Click Analytics**- ⚡ **Fast & Lightweight** ## Installation 1. Download the latest release: [mod_adunlock_v2.0.zip](https://github.com/bluetoothbeijing/joomla-ad-unlock/releases/latest)2. In Joomla admin: Extensions → Manage → Install3. Upload the ZIP file4. Enable the module: Extensions → Modules ## Configuration ### Basic Settings- **Content ID**: The article ID to unlock- **Ad ID**: Unique identifier for the ad- **Ad Code**: Paste your ad HTML/JavaScript- **Unlock Duration**: How long content stays unlocked (1-720 hours) ### Advanced Settings- **Cache**: Enable module caching- **Debug Mode**: Show debug information- **Google Analytics**: Track ad clicks ## Usage ### In Articles```html Manual HTML <div class="locked-content" data-content-id="123"> This content requires ad click to view.</div>   Requirements Joomla 4.0+ PHP 7.4+ (PHP 8.3 recommended) MySQL 5.7+ (MySQL 8.0 recommended) Apache/Nginx with mod_rewrite Support Issues: GitHub Issues Documentation: Wiki License MIT License. See LICENSE file. Author Developed by bluetoothbeijing text #### **2. LICENSE**```textMIT License Copyright (c) 2024 bluetoothbeijing Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT....

继续阅读完整内容

支持我们的网站,请点击查看下方广告

正在加载广告...

登陆