The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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. |
#2
|
|||
|
|||
![]() Quote:
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 ![]() |
#3
|
||||
|
||||
![]()
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 HTML Code:
<if condition="is_member_of($bbuserinfo, 2)"> Message to registered users. </if> |
#4
|
|||
|
|||
![]() Quote:
nice template condition. didnt thought about that ![]() |
#5
|
||||
|
||||
![]()
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. |
#6
|
|||
|
|||
![]()
Thanks!!
That worked great!! so easy too, I thought there would be alot more too it. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|