NissanDiesel forums

Nissan diesel engines, and the people who love them
It is currently Fri Jul 21, 2017 9:39 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
Post Number:#1  PostPosted: Sat May 11, 2013 3:47 pm 
Offline
Site Admin
User avatar

Joined: Sat Nov 26, 2005 7:28 am
Posts: 5271
Location: Duvall, Wash.
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group