I am using admin message with pay to blog and I just noticed that the message appears in the admin to the blogs that people have not paid for yet. Is there a way to have this message show up only after they have made a payment? I want to share messages there only to paying members.
I am using wpmu v 3.0.1
admin message v 1.1
pay to blog v 1.5.3
I am using admin message with pay to blog and I just noticed that the message appears in the admin to the blogs that people have not paid for yet. Is there a way to have this message show up only after they have made a payment? I want to share messages there only to paying members.
I am using wpmu v 3.0.1
admin message v 1.1
pay to blog v 1.5.3
10635 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Sales & Support Lead
—
28th November 2010 (1 year ago)
#
Hiya TonyV,
I know we have an is_supporter() filter when using our Supporter plugin, but I'm not aware of anything similar with pay-to-blog. I'll ask a couple of the developers to chime in if they have an idea for how to do this easily, but it may need to be something that requires some custom coding.
Thanks Ulrich,
however that did not work.
I still see the admin message showing on a test account that I did not give credits to nor paid for the blogging service.
additionally the Automessage link shows in the left menu for this unpaid account.
Thanks for any additional information you can provide to fix this.
Responses (8)
Sales & Support Lead — 28th November 2010 (1 year ago) #
Hiya TonyV,
I know we have an is_supporter() filter when using our Supporter plugin, but I'm not aware of anything similar with pay-to-blog. I'll ask a couple of the developers to chime in if they have an idea for how to do this easily, but it may need to be something that requires some custom coding.
Thanks!
Member — 28th November 2010 (1 year ago) #
thanks,
I look forward to any input.
Tony V
Developer — 28th November 2010 (1 year ago) #
Hi @TonyV
You will need to modify the Admin Message plugin code.
Find line 40 in admin-message.php:
if ( !empty( $admin_message ) && $admin_message != 'empty' ){Replace it with the following two lines:
Member — 28th November 2010 (1 year ago) #
Thanks Ulrich,
however that did not work.
I still see the admin message showing on a test account that I did not give credits to nor paid for the blogging service.
additionally the Automessage link shows in the left menu for this unpaid account.
Thanks for any additional information you can provide to fix this.
Tony V
Member — 29th November 2010 (1 year ago) #
Ok, I figured it out. you said replace;
if ( !empty( $admin_message ) && $admin_message != 'empty' ){
really I should have only replaced
if ( !empty( $admin_message ) && $admin_message != 'empty' )
replacing the { at the end was messing things up.
so I just need to figure out now how to have the premium Automessaging not show up in the menu except for paying members.
Any ideas?
Thanks.
Tony V
Developer — 29th November 2010 (1 year ago) #
Sorry for that error in the code I gave you.
Are you referring to the menu item added by the following plugin? http://premium.wpmudev.org/project/automatic-follow-up-emails-for-new-users
If yes, open the file class.automessage.php, find line 180:
function setup_menu() {and add the following after that line:
Member — 30th November 2010 (1 year ago) #
that worked, thanks, but it was on line 108
Tony V
Developer — 30th November 2010 (1 year ago) #
Glad it worked. Let us know if there is any other thing we can help you with.
Thanks for viewing this post but this topic has been closed to new replies.
Become a member