Skip to content

nightStar9569/giftloop_wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GiftLoop - WordPress Gift Exchange Platform

GiftLoop is a comprehensive WordPress-based gift exchange platform that allows users to send and receive gifts in a unique "river of gifts" system. The platform includes both user-to-user gift exchanges and corporate promotional gifts.

🎁 Features

Core Functionality

  • User Registration & Authentication: Secure user management system
  • Gift Exchange System: Users can send and receive gifts with equivalent value
  • Points & Tickets System: Reward system for daily logins and gift activities
  • Notification System: Real-time notifications for gift activities
  • Gift History: Complete tracking of sent and received gifts

Gift River (プレゼントの川)

  • Random Gift Distribution: Lottery-style gift claiming system
  • Corporate Gifts: Companies can provide promotional gifts
  • Daily Limits: Prevents abuse with daily claiming limits
  • Slot Machine UI: Engaging visual interface for gift claiming

Admin Features

  • Dashboard: Comprehensive admin dashboard with statistics
  • User Management: Monitor user activities and points
  • Gift Management: Oversee all gift transactions
  • Company Gift Management: Manage corporate promotional gifts
  • Analytics: Detailed statistics and reporting

🏗️ Architecture

Plugins Structure

wp-content/plugins/
├── giftloop-core/           # Core functionality
│   ├── inc/
│   │   ├── db.php          # Database schema and helpers
│   │   ├── cpt-gift.php    # Custom post type for gifts
│   │   ├── rest.php        # REST API endpoints
│   │   ├── notifications.php # Notification system
│   │   ├── tickets.php     # Ticket management
│   │   └── admin.php       # Admin dashboard
│   └── giftloop-core.php   # Main plugin file
├── giftloop-company/        # Company gift management
│   ├── inc/
│   │   ├── cpt-company-gift.php # Company gift post type
│   │   └── rest-company.php     # Company REST API
│   └── giftloop-company.php
├── giftloop-api/           # API integrations
├── giftloop-payments/      # Payment processing
├── giftloop-analytics/     # Analytics and reporting
└── my-custom-user-data/    # Custom user data management

Database Tables

  • giftloop_users: User points, tickets, and daily claim tracking
  • giftloop_gifts: User-to-user gift transactions
  • giftloop_company_gifts: Corporate promotional gifts
  • giftloop_company_claims: Company gift claim records
  • giftloop_notifications: User notification system
  • giftloop_transactions: Points and tickets transaction history

🚀 Installation

  1. WordPress Setup: Ensure you have WordPress 5.0+ installed
  2. Plugin Installation: Copy all GiftLoop plugins to wp-content/plugins/
  3. Database Setup: Activate the giftloop-core plugin to create database tables
  4. Theme Setup: Use the provided giftloop-theme or integrate with your theme
  5. Configuration: Configure company accounts and gift categories

📋 Requirements

System Requirements

  • WordPress 5.0 or higher
  • PHP 7.4 or higher
  • MySQL 5.7 or higher
  • HTTPS enabled (for secure transactions)

Recommended Plugins

  • WooCommerce (for e-commerce integration)
  • Advanced Custom Fields (for additional gift metadata)
  • Redis (for caching and session management)

🎯 Usage

For Users

  1. Registration: Create an account on the platform
  2. Daily Check-in: Claim daily tickets for gift river access
  3. Send Gifts: Register gifts to send to other users
  4. Receive Gifts: Accept or decline incoming gifts
  5. Gift River: Participate in the lottery-style corporate gift system

For Companies

  1. Company Registration: Register as a corporate gift provider
  2. Gift Management: Create and manage promotional gifts
  3. Analytics: Monitor gift performance and user engagement
  4. Campaign Management: Set up time-limited promotional campaigns

For Administrators

  1. Dashboard Access: Monitor platform activity via admin dashboard
  2. User Management: Oversee user accounts and activities
  3. Gift Moderation: Review and approve gift submissions
  4. System Configuration: Configure platform settings and limits

🔧 Configuration

Gift Categories

The system supports the following gift categories:

  • Food & Beverages
  • Cosmetics & Beauty
  • Electronics
  • Fashion & Accessories
  • Home & Living
  • Books & Media
  • Sports & Outdoor
  • Events & Entertainment
  • Other

Points System

  • Daily Login: 1 ticket per day
  • Gift Creation: 1 ticket per gift created
  • Gift Reception: 1 ticket per gift received
  • Points Exchange: 100 points = 1 ticket
  • Ticket Exchange: 1 ticket = 50 points

Company Gift Limits

  • Daily Limits: Configurable per gift
  • Total Quantity: Maximum gifts available
  • Time Period: Start and end dates for campaigns
  • Delivery Types: Physical, Digital, QR Code, Coupon, Direct Link

🔌 API Endpoints

Authentication

  • POST /wp-json/giftloop/v1/auth/login
  • POST /wp-json/giftloop/v1/auth/register

User Management

  • GET /wp-json/giftloop/v1/user/profile
  • GET /wp-json/giftloop/v1/user/history

Tickets & Points

  • GET /wp-json/giftloop/v1/tickets/balance
  • POST /wp-json/giftloop/v1/tickets/claim-daily

Gifts

  • GET /wp-json/giftloop/v1/gifts
  • POST /wp-json/giftloop/v1/gifts
  • GET /wp-json/giftloop/v1/gifts/{id}
  • POST /wp-json/giftloop/v1/gifts/{id}/{action}

Company Gifts

  • GET /wp-json/giftloop/v1/company-gifts
  • GET /wp-json/giftloop/v1/company-gifts/random
  • POST /wp-json/giftloop/v1/company-gifts/{id}/claim

Notifications

  • GET /wp-json/giftloop/v1/notifications
  • POST /wp-json/giftloop/v1/notifications/{id}/read

🎨 Theme Integration

The provided giftloop-theme includes:

  • Responsive Design: Mobile-first approach
  • Modern UI: Clean, intuitive interface
  • Gift River Animation: Engaging slot machine-style interface
  • User Dashboard: Comprehensive user profile and history
  • Admin Interface: Company and user management screens

🔒 Security Features

  • Nonce Verification: CSRF protection for all forms
  • Input Sanitization: All user inputs are properly sanitized
  • Permission Checks: Role-based access control
  • Rate Limiting: Daily limits prevent abuse
  • Secure API: REST API with proper authentication

📊 Analytics & Reporting

User Analytics

  • Gift sending/receiving patterns
  • Points and tickets usage
  • Company gift engagement
  • User retention metrics

Business Intelligence

  • Popular gift categories
  • Peak usage times
  • Company gift performance
  • Revenue tracking (if integrated with payments)

🚀 Deployment

Production Checklist

  • Enable HTTPS
  • Configure database backups
  • Set up monitoring and logging
  • Configure caching (Redis recommended)
  • Set up CDN for assets
  • Configure email notifications
  • Test all payment integrations
  • Set up error tracking

Performance Optimization

  • Database indexing on frequently queried fields
  • Caching of gift listings and user data
  • CDN for static assets
  • Optimized images for gift displays
  • Lazy loading for gift history

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

📄 License

This project is licensed under the GPL v2 or later.

🆘 Support

For support and questions:

  • Check the documentation
  • Review the code comments
  • Contact the development team
  • Submit issues on the project repository

🔄 Updates

Version 1.0.0

  • Initial release with core functionality
  • User gift exchange system
  • Company gift river feature
  • Basic admin dashboard
  • REST API implementation

Future Roadmap

  • Advanced analytics dashboard
  • Mobile app integration
  • Social features and sharing
  • Advanced payment gateways
  • AI-powered gift recommendations
  • Multi-language support

GiftLoop - Making gift-giving magical through technology! 🎁✨

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors