View Full Version : Is there a way to make a special message appear for only certain usergroups?
cdoyle
10-30-2004, 12:22 AM
Hi,
I hope this is the right forum to post this question.
But I was wondering if this is possible,
On our forum, we have 2 sets of users. 'Registered' or free members, and 'Platinum' Members (members who have paid the subscription service). The platinum members get the avatar, signature, and access to more forums.
What I thought would help to encourage the free members to upgrade to the platinum, if possible have a message appear in the header.
That says something like
"Do you want an Avatar, or Signature, or access to more forums? Then upgrade to our Platinum Membership by clicking here"
Is there a way to make a message like this appear for only the registered members? and not for the people who have already signed up for the platinum?
Thanks in advance
Chris.
Hi,
I hope this is the right forum to post this question.
But I was wondering if this is possible,
On our forum, we have 2 sets of users. 'Registered' or free members, and 'Platinum' Members (members who have paid the subscription service). The platinum members get the avatar, signature, and access to more forums.
What I thought would help to encourage the free members to upgrade to the platinum, if possible have a message appear in the header.
That says something like
"Do you want an Avatar, or Signature, or access to more forums? Then upgrade to our Platinum Membership by clicking here"
Is there a way to make a message like this appear for only the registered members? and not for the people who have already signed up for the platinum?
Thanks in advance
Chris.
yes in very easy way
check what is usergroupid of registed members
now lets say you want to show the msg on index.php
so on index.php before
eval('print_output("' . fetch_template('FORUMHOME') . '");');
Add
if ($bbuserinfo['usergroupid'] == "4") {
// 4 is exsample to registed usergroup id
eval('$buymsg = "' . fetch_template('buypl') . '";');
} else {
$buymsg = "";
}
now add new template called buypl with the text you wanted
also edit forumhome template and add $buymsg where you want it to be showen
this supuse to work
if not tell me ;)
Michael Morris
10-30-2004, 08:20 AM
Don't do that - there's no reason to hack the code for this.
In you're header (or wherever you want this message) use
<if condition="is_member_of($bbuserinfo, 2)">
Message to registered users.
</if>
Don't do that - there's no reason to hack the code for this.
In you're header (or wherever you want this message) use
<if condition="is_member_of($bbuserinfo, 2)">
Message to registered users.
</if>
nice template condition. didnt thought about that ;)
Michael Morris
10-30-2004, 09:13 AM
No problem. This actually reminded me to update one of my very first hacks...
I've learned so much since then.
https://vborg.vbsupport.ru/showthread.php?t=66959
@cdoyle - That will accomplish the task you wants and then some since it allows you to create custom messages for several different groups including lurkers.
cdoyle
10-30-2004, 02:58 PM
Thanks!!
That worked great!!
so easy too, I thought there would be alot more too it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.