You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 257 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Changin Default Subscription Periods [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
LunaFaye
Nuke Soldier
Nuke Soldier


Joined: Jun 12, 2005
Posts: 20

Location: Columbus OH

PostPosted: Tue May 09, 2006 3:10 pm Reply with quoteBack to top

Does anyone know where I would go to edit the subscription periods that come default with Nuke? For example, when you go to your admin.php and select "Users", and enter a user name in the field and select "Modify". Then you have the option of manually subscribing them to the site. The default subscription periods are in years. How would one go about making the default subscription periods in months, rather than years? So instead of subscribing someone for 1 year, you could select 1 month, 2 months, etc.

Luna Faye

_________________
Oracle of Pæthieon
Find all posts by LunaFayeView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Sun May 14, 2006 6:38 pm Reply with quoteBack to top

In modules/Your_Account/admin/index.php, they are listed in the following code

Code:

            $content .= "<option value='1'>1 "._YEAR."</option>";
            $content .= "<option value='2'>2 "._YEARS."</option>";
            $content .= "<option value='3'>3 "._YEARS."</option>";
            $content .= "<option value='4'>4 "._YEARS."</option>";
            $content .= "<option value='5'>5 "._YEARS."</option>";
            $content .= "<option value='6'>6 "._YEARS."</option>";
            $content .= "<option value='7'>7 "._YEARS."</option>";
            $content .= "<option value='8'>8 "._YEARS."</option>";
            $content .= "<option value='9'>9 "._YEARS."</option>";
            $content .= "<option value='10'>10 "._YEARS."</option>";


Have to change all those constant _YEARS to the months

Of course you also have to change the lines
Code:

$expire = $subscription_expire*31536000;

to count in months instead of years (change 31536000 to 2592000 - the number of seconds in a regular month)

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
LunaFaye
Nuke Soldier
Nuke Soldier


Joined: Jun 12, 2005
Posts: 20

Location: Columbus OH

PostPosted: Wed May 17, 2006 12:19 pm Reply with quoteBack to top

Evaders,

That worked like a charm. Thanks. Very Happy

Luna Faye

_________________
Oracle of Pæthieon
Find all posts by LunaFayeView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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 vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.042 Seconds - 373 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::