Previous Thread
Next Thread
Print Thread
Rate Thread
#57841 07/30/2004 2:08 AM
Joined: Jul 2001
Posts: 12
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 12
Is it possible to have an expiration date for new members? I'd like to give a free one week trial when a member registers. If they don't pay after one week, they can't post, only view.

Sponsored Links
#57842 09/01/2004 5:45 PM
Joined: Jul 2001
Posts: 12
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 12
No ideas on this?

#57843 09/01/2004 6:15 PM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
1. Disable custom title changing for Members, Junior Members and COPPA Members.
2. All your subscribed users - make them a special custom title.

Then

Try (untested) in ultimatebb.cgi:
Find:
Code
	my @temp_profile = &OpenProfile($profile_number);
Add below:
Code
if (($GotTime{LastLoginJulianDATE} - &jday(split(/-/, $temp_profile[10])) > 7) && !$temp_profile[31] && $temp_profile[8] ne 'Administrator' && $temp_profile[8] ne 'Moderator') {
&StandardHTML("Your trial period is over.........");
}
Find:
Code
	if($profile[0]) {
Add below:
Code
if (($GotTime{LastLoginJulianDATE} - &jday(split(/-/, $profile[10])) > 7) && !$profile[31] && $profile[8] ne 'Administrator' && $profile[8] ne 'Moderator') {
&StandardHTML("Your trial period is over.........");
}

#57844 09/01/2004 6:18 PM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Note that the unsubscribed users, even after their trial period is over, will be shown in the Recent Visitors list (it's easy to fix it - copy the first "add below" part to right under the line which begins with "my @up", and replace "$temp_profile" with "$up"), but they shouldn't have access to do anything. Since it's untested, I recommend you to do some testings. All your administrators and moderators have permanent access (as long as they're admins or mods,) so you can't try on your own user.

#57845 09/05/2004 3:01 PM
Joined: Jul 2001
Posts: 12
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 12
Thanks. I'll have to give this a try. They can view topics but they just can't post after the trial. I will be upgrading soon to threads. I wonder if they have expiration date in that. I'll have to check. Thanks again.

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2440
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 23
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)