Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Na'ven's Upgrade System - AutoMod Module
#1
Heart 
NOTICE:
This module comes PREINSTALLED with THT 1.3.5 Reworked! PLEASE do not install it on 1.3.5 Reworked. You don't need to.

Module: Na'ven's Upgrade System
Module Version: 1.0
For THT Version: 1.3 Reworked
Author: Na'ven Enigma
Website: http://thelifemaster.com

NOTICE:
I noticed that some people might want to upgrade their members to a free package at some point and not allow other members to upgrade or order the free package attributed to that member. This means the package needs to be disabled. When I built this module, I set the admin upgrade area to only show non-disabled packages. I figured it would help with clutter, but it seems like some people might have a problem with that. So, below is how you can set it to show all packages. I didn't make it a module since its just a quick one line change.

Open: admin/pages/users.php
FIND:
PHP Code:
$all_packs_query $db->query("SELECT * FROM <PRE>packages WHERE is_disabled = '0' ORDER BY `type` ASC"); 

REPLACE IT WITH:
PHP Code:
$all_packs_query $db->query("SELECT * FROM <PRE>packages ORDER BY `type` ASC"); 

DESCRIPTION:
This module makes it so that clients can upgrade and downgrade their hosting accounts in the client area. Administrators can upgrade and downgrade members in the administration area and any packages needing to be approved, can be approved in the admin area as well. This also adds 10 new email templates and is Kloxo Ready.

This is a robust upgrade system in terms of how it works behind the scenes. It checks for many loopholes, keeps your coupons or allows P2H upgraders to add a new one, and more. Only P2H users can enter coupons since they need to be able to for the required signup posts. As I'm going to be releasing THT 1.3.5 Reworked either tonight or tomorrow, I decided to simply add some bug fixes I found on paid cron into this system as well instead of creating a separate module for them. THT 1.3.5 Reworked will have all the modules I've made, preinstalled. This is the last module I needed to build to make THT stable enough and full featured enough, to be able to start using it for my own hosting. That being said, I'll only be building for THT 1.3.5 Reworked now and will release bug fixes and things for it on occasion.

DIY INSTRUCTIONS:
If you're using this on an older THT version than 1.3 Reworked, you'll need to edit the templates in the database and copy the code from the files in the includes/tpl/email directory to your templates table. The filenames are the same as the names in the database and each template has an _descrip file with it as well. The _descrip file is for the template's description. Please note that this module has not been tested on older versions of THT.

This module installs 10 new email templates. You can customize them if you wish.

If you want Kloxo to be used on your system, you need to install it before this module. To make things easier, Kloxo's rewritten server file is included with this release. It DOES require the Kloxo module to be installed first. It will probably work without the Kloxo mod being installed before it, but it will have less features if you don't install the mod first. (Ex. Custom DNS templates and turning the welcome email on and off in the admin area.)

PREREQUISITES: (Install in this order)
AutoMod: http://thehostingtool.com/forum/thread-1754.html
AutoMod Patch 1: http://thehostingtool.com/forum/thread-1767.html
THT SDK: http://thehostingtool.com/forum/thread-1758.html
Bug Fix - Paid Cron: http://thehostingtool.com/forum/thread-1757.html
Na'ven's Coupons: http://thehostingtool.com/forum/thread-1759.html
Na'ven's Coupons Patch 1: http://thehostingtool.com/forum/thread-1769.html
Kloxo Server Module for 1.3 Reworked: http://thehostingtool.com/forum/thread-1770.html (Optional)


Attached Files Thumbnail(s)
           

.zip   navens_upgrade_system.zip (Size: 54.26 KB / Downloads: 717)
.zip   upgrade_system_screenshots.zip (Size: 144.84 KB / Downloads: 715)
---
See my GitHub at https://github.com/cozylife
Reply


Messages In This Thread
Na'ven's Upgrade System - AutoMod Module - by ReworkedScripts - 03-31-2012, 02:38 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)