How to let the users know theirs subscription ended

AndreaMarucci

Well-known member
My forum is a pay one but unfortunately XF doesn't send an email telling the user that his subscription is ended so the user find hisself without permission to write and send an email to me asking why.

I need a suggestion. How can I tell a user that his subscription is ended so that he can pay to restore the permissions?

Thank you very much!
 
You will need an add-on for this which you could then tie in to a new cron task.

As your forum is a pay forum though, surely the users know how long they purchased a subscription for and when it's going to end?
In that respect it's no different to any other fixed duration subscription - the onus is till on the user to renew it.
 
You could also use a template condition to display a message on the forum:

http://xenforo.com/community/threads/usergroup-checking-in-the-templates.9447/

For example:

Admin CP -> Appearance -> Templates -> PAGE_CONTAINER

Add this code (where X is the user_group_id of the subscriber group):

Code:
						<xen:if is="!{xen:helper ismemberof, $visitor, X}">
						<div class="importantMessage" style="text-align: left; padding: 10px;">
							MESSAGE FOR USERS WHO ARE NOT IN GROUP X
						</div>
						</xen:if>

as shown below:

Code:
						<xen:if is="{$isAwaitingEmailConfirmation}">
							<p class="importantMessage">
								{xen:phrase your_account_is_currently_awaiting_confirmation_confirmation_sent_to_x, 'email={$visitor.email}'}<br />
								<a href="{xen:link account-confirmation/resend}" class="OverlayTrigger">{xen:phrase resend_confirmation_email}</a>
							</p>
						</xen:if>
						</xen:hook>
						
						<xen:if is="!{xen:helper ismemberof, $visitor, X}">
						<div class="importantMessage" style="text-align: left; padding: 10px;">
							MESSAGE FOR USERS WHO ARE NOT IN GROUP X
						</div>
						</xen:if>

						<xen:include template="ad_above_top_breadcrumb" />

The result:

Screen shot 2011-05-09 at 9.29.23 AM.webp
 
@Brogan Thanks but my users always forgot when the subscription ended so they prefer to ask me what happen and why they doesn't see anymore all the forums...

@Jake. This can be the solution without installing a specific addon. Thank you very much!!!
 
I've tried this one
Code:
<xen:if is="!{xen:helper ismemberof, $visitor, 12} or !{xen:helper ismemberof, $visitor, 3} or !{xen:helper ismemberof, $visitor, 4}">
<div class="importantMessage" style="text-align: left; padding: 10px;">
MESSAGE for all the users but not for the users in group 3, 4 and 12.
</div>
</xen:if>
but does not work since I'm in UG 3 and the message appear also to me...

Am I doing something wrong?
 
This one works
Code:
<xen:if is="!{xen:helper ismemberof, $visitor, 12} AND !{xen:helper ismemberof, $visitor, 3} AND !{xen:helper ismemberof, $visitor, 4}">
<div class="importantMessage" style="text-align: left; padding: 10px;">
MESSAGE.
</div>
</xen:if>
 
Top Bottom