phpBB2 MOD: myVIPcode v1.1.3

News & discussion about the forum's server, hardware, software, upgrades, features, etc.

Moderator: Nissan_Ranger

Post Reply
User avatar
asavage
Site Admin
Posts: 5326
Joined: 13 years ago
Location: Duvall, Wash.
Contact:

phpBB2 MOD: myVIPcode v1.1.3

#1

Post by asavage » 6 years ago

This post is mostly for search engines to find, in case someone else becomes as frustrated as I was with trying to find a VIP-code MOD that would actually install on phpBB v2.0.23 with EasyMOD 0.4.0 .

phpBB version 2 is dead -- that is, it's no longer officially supported, though there are a couple of websites devoted to unofficial support, for folks like us that are still running it.

I had to re-create a MOD I'd installed in 2007, and found that I hadn't documented what I'd done.

So, in re-creating, instead of just editing the forum directly like last time, I glued together two existing MODs and added a couple things of my own. This gives me the ability to apply the MOD in future without having to remember where to modify what manually.

Incidentally, EasyMOD 0.4.0 does not seem all that stable to me [shrug] but EM 0.4.0 will install this.

myVIPcode v1.1.3

Here's the included first few lines:

##############################################
## MOD Title: Add a VIP code during registration
## MOD Author: asavage < asavage@iname.com > (Al Savage) http://nissandiesel.dyndns.org
## MOD Description: User has to enter a VIP-Code during registration, otherwise the registration fails.
## Default: VIP-Code is displayed on the Registration Agreement page.
## ACP Configuration: there is an option to easily set your VIP Code.
## VIP-Code maximum length is 6 alphanumerics, the logic checks if they are (A-Z, a-z, 0-9).
## MOD Version: 1.1.3 - created for phpBB 2.0.23, additions to 1.1.2 by Al Savage <asavage@iname.com>
##
##
##
##
## IMPORTANT INFORMATION - PLEASE READ:
## ------------------------------------
## 1. The default place for the VIP-Code to be displayed is on the Registration Agreement page
## (templates/subSilver/agreement.tpl). If you want it to be displayed somewhere else, delete
## the section block at the end of this MOD, beginning with:
##
## #
## #-----[ OPEN ]------------------------------------------
## #
## templates/subSilver/agreement.tpl
## [ . . . ]
## <!-- myVIPcode mod -- begin -->
##
## and replace with your own code.
##
## Installation Level: (Easy)
## Installation Time: ~1 Minutes
## Files To Edit: includes/usercp_register.php
## admin/admin_board.php
## language/lang_english/lang_main.php
## templates/subSilver/profile_add_body.tpl
## templates/subSilver/agreement.tpl
## templates/subSilver/admin/board_config_body.tpl
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## Author Notes:
## This is the "myVIPcode" ("Add a VIP code during registration") mod (Martin Aignesberger)
## plus the "VIP Code add-on" (Add-on ACP management) combined together.
## Additionally, I modified the code placement for where the output goes on the
## Registration Agreement page, added a bit of font-size and color:red changes.
##
## Tested on 2.0.23 only.
##
##############################################################
## MOD History:
## 2006-08-11 - Version 1.0.0
## 2006-08-14 - Version 1.1.0 - VIP code works independently from visual confirmation
## 2006-08-14 - Version 1.1.1 - minor fixes
## 2007-02-10 - Version 1.1.2 - some typos
## 2013-05-10 - Version 1.1.3 - combined with "VIP CODE addon", moved messages to lang.
##############################################################
[ rest of file not included here; download at link above.]
Regards,
Al S.

1982 Maxima diesel wagon, 2nd & 4th owner, 165k miles, rusty & burgundy/grey. Purchased 1996, SOLD 16Feb10
1983 Maxima diesel wagon, 199k miles, rusty, light yellow/light brown. SOLD 14Jul07
1981 720 SD22 (scrapped 04Sep07)
1983 Sentra CD17, 255k, bought 06Jul08, gave it away 22Jun10.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest