SMF 2.1.3 has been released! Take it for a spin! Read more.
Started by Grudge, August 12, 2006, 06:09:49 AM
Quote from: 3mrhythm on May 04, 2007, 04:11:06 PMi have a question..i have a group called ASM (annual supporting members) and i just spear headed my asm mafia .. basically a group within the asm group to help police the forum and such.. without extra privies just that they are kinda there to mediate.. but i want to have a special logo for them different from the asm logo that i have now. I have setup a seperate membergroup "asm mafia" so when a member is inducted into the mafia i put thier name in that member group and make that group thier primary group. However i want thier paid subscription to still end a year from when they started and if they are in this new group (based off of the asm group) its not a paid subscription.. is there a way to link the new group to the original asm group so that when thier asm subscription is up or not renewed that it will bump them from the asm mafia group as well? thanks.. hope that makes sense
Quote from: Stumpy on February 17, 2007, 10:01:10 PMPossible fix (at least for me) on the expiration date issue. Note that I have not tried this yet, but if someone knows more about php than me and can tell me if I'm on the right track, I'd appreciate it.In about line 800 of ManagePaid.php, Grudge sets $duration (for a year) as 31556926, which appears to be pretty close to the number of seconds in a year.In line 920 for a simple subscription addition, he's got "$endTime = time() + $duration;"At least in my very simple testing, which involved printing the current time and then attempting to add seconds to it, I kept getting errors when I tried to print "time() + $duration;" After playing around a bit, I was able to get it to do it by setting $endTime = time(), then setting $duration = 31556926, and finally setting $endTime += $duration. Since the time equivalent of 31556926 is somewhere around January 1, 1971, it appears that that's the number that was getting entered AS the endTime, rather than incrementing the endTime.Again, I'm a complete NOOB at PHP and Grudge appears to be a monster, so this might be totally wrong or it might have something to do with the version of PHP one is using....and I'm so new at this that I don't even know how to tell you what version I'm on.
Quote from: RebelRose on May 02, 2007, 12:38:45 PMQuote from: RebelRose on April 21, 2007, 07:29:12 PMCan the layout be modified, if so what template would I modify?I would really like to know if the layout can be modified and if so what template would I need to edit for modifications.
Quote from: RebelRose on April 21, 2007, 07:29:12 PMCan the layout be modified, if so what template would I modify?
Quote from: Bigguy on May 11, 2007, 11:34:05 AMWhat layout are you talking about that you want to modify.
Quote from: jay.jarri on May 07, 2007, 04:01:07 AMHello thereIs it possible we could modify the codes a bit to have the following features?1. Payment at registration2. Different Packages (monthly, quaterly, six-month and year)3. Paypal payment fully integrated through ipnI already have "paid-subscription" mod installed on my computer and it works brilliant... The same features at the registration will do my requirement.Jarri
Quote<?php// Version: 1.1; Modifications// Paid Subscriptions Mod$txt['paid_subscriptions'] = 'Paid Subscriptions';$txt['subscriptions'] = 'Subscriptions';$txt['subscription'] = 'Subscription';$txt['paid_subs_desc'] = 'Below is a list of all the subscriptions which are available on this forum.';$txt['paid_subs_none'] = 'There are currently no paid subscriptions available!';$txt['paid_current'] = 'Existing Subscriptions';// Some errors.$txt['paypal_could_not_connect'] = 'Could not connect to paypal server';$txt['paypal_unverified_subject'] = 'Unverified Paypal Transaction';$txt['paypal_unverified_body'] = 'A user attempted to add a paid subscription to your forum, but the transaction was unverified.';$txt['paid_sub_not_active'] = 'That subscription is not taking any new users!';$txt['paid_disabled'] = 'Paid subscriptions are currently disabled!';$txt['worldpay_password_wrong'] = 'Payment ignored as WorldPay password is incorrect - please ensure you have the correct callback password set.';$txt['2co_password_wrong'] = 'Payment ignored as hxxp:2co.com [nonactive] secret word is incorrect - please ensure you have the correct secret word and hxxp:2co.com [nonactive] ID set.';$txt['paid_unknown_transaction_type'] = 'Unknown transaction type in ipn.php';$txt['paid_missing_transaction_type'] = 'Cannot find transaction file %s.php';$txt['paid_empty_member'] = 'Paid subscription handler could not recover member ID';$txt['paid_could_not_find_member'] = 'Paid subscription handler could not find member with ID: %d';$txt['paid_count_not_find_subscription'] = 'Paid subscription handler could not find subscription for member ID: %1$s, subscription ID: %2$s';$txt['nochex_could_not_connect'] = 'Could not connect to nochex server';$txt['nochex_unauthorised_subject'] = 'Unauthorised nochex Transaction';$txt['nochex_unauthorised_body'] = 'A user attempted to add a paid subscription to your forum, but the transaction was rejected.';?>