Pay to Blog Plugin. Question about disabling every 3 mo and annual subscription. Also have settings
WPMU DEV Community
Pay to Blog Plugin. Question about disabling every 3 mo and annual subscription. Also have settings
Inactive
780 pointsLike some sort of WPMU DEV God"
tutuology
Member
—
1st March 2011 (1 year ago)
Hey there- I'm going backwards here. Needed pay-to-blog rather than supporter (*ugh*). I will only charge month-to-month. I would really like to charge $19.95, but don't get that option (I can only enter a whole number). Is there a way to disable the 3 month and annual sections? Also, it is not clear what purpose the message area serves. Does one normally write a welcome message here? write about fees? what typically goes here? Another question....the Extend Blog area....what's that about? TIA :)
Hey there- I'm going backwards here. Needed pay-to-blog rather than supporter (*ugh*). I will only charge month-to-month. I would really like to charge $19.95, but don't get that option (I can only enter a whole number). Is there a way to disable the 3 month and annual sections? Also, it is not clear what purpose the message area serves. Does one normally write a welcome message here? write about fees? what typically goes here? Another question....the Extend Blog area....what's that about? TIA :)
I'll get you that code tidbit in just a moment, but I wanted to at least get you the following info to get you started.
The message you're referring to would simply be a welcome message, anything you want really. You can alternatively leave it blank.
The Extend blog area is for you to manually extend the blog for whatever reason. You could, for instance, extend a member's blog just to make them happy!
Sorry it took a moment, but I had some other items to work on as well. The following should remedy limit your user's payment options to just a single monthly subscription. Besides having attached the altered file itself, which you can simply replace your original with, I've included the alteration as follows.
So in the pay-to-blog.php file, you can simply replace lines 550 - 557 with the following:
/* echo '<p class="submit" style="padding-top:2px;">';
echo sprintf( __('Activate blog for three months (for %s %s)', 'ptb'), get_site_option( "pay_to_blog_3_cost" ), get_site_option( "pay_to_blog_currency" )) . '<br />';
echo pay_to_blog_paypal_button_output(3);
echo '</p>';
echo '<p class="submit" style="padding-top:2px;">';
echo sprintf( __('Activate blog for one year (for %s %s)', 'ptb'), get_site_option( "pay_to_blog_12_cost" ), get_site_option( "pay_to_blog_currency" )) . '<br />';
echo pay_to_blog_paypal_button_output(12);
echo '</p>'; */
The /* */ is another way of commenting the lines as opposed to using // on every line. Please let me know if any of this needs clarification!
I really wanted to pay 9.90 but it is not possible ...
I changed the "$ counter" to the display is ok
but it becomes random recording
Once the select stores the three months after the 12 months ...
impossible for him to keep the 3 values ??at the same time.
Responses (5)
WPMU DEV Fanatic — 1st March 2011 (1 year ago) #
Hi tutuology,
I'll get you that code tidbit in just a moment, but I wanted to at least get you the following info to get you started.
The message you're referring to would simply be a welcome message, anything you want really. You can alternatively leave it blank.
The Extend blog area is for you to manually extend the blog for whatever reason. You could, for instance, extend a member's blog just to make them happy!
Cheers,
David
WPMU DEV Fanatic — 2nd March 2011 (1 year ago) #
Hi tutuology,
Sorry it took a moment, but I had some other items to work on as well. The following should remedy limit your user's payment options to just a single monthly subscription. Besides having attached the altered file itself, which you can simply replace your original with, I've included the alteration as follows.
So in the pay-to-blog.php file, you can simply replace lines 550 - 557 with the following:
The /* */ is another way of commenting the lines as opposed to using // on every line. Please let me know if any of this needs clarification!
Cheers,
David
WPMU DEV Fanatic — 2nd March 2011 (1 year ago) #
The first attachment didn't work since I attached it as a PHP file. I've zipped it so it should hopefully work now!
Member — 30th May 2011 (11 months ago) #
Hello,
I really wanted to pay 9.90 but it is not possible ...
I changed the "$ counter" to the display is ok
but it becomes random recording
Once the select stores the three months after the 12 months ...
impossible for him to keep the 3 values ??at the same time.
What I forgot to change it?
Sorry for my English, I'm French;)
line332 for exemple
Member — 30th May 2011 (11 months ago) #
sorry !
Thanks !!
Become a member