The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
how do I edit the private forum message for a specific forum?
I want all non-VIP members to see "This forum is for VIP members only, click HERE to get access"
|
#2
|
||||
|
||||
Find the template and then you could put a condition around the phrase to change it based on the users usergroupid.
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.) |
#3
|
||||
|
||||
hmmm..
It looks like the template is FORUMDISPLAY, which is used at more places than just this error message. Can conditionals be used in phrases? I want this result: if not registered show: please register or login if registered but not VIP show: please upgrade to VIP if VIP show: content Thank you Lynne, I've read many of your posts on here - I wish there was a "Thank you" button on vb.org just for you! |
#4
|
||||
|
||||
You can't actually put a condition into a phrase. You can make a phrase that has variables in it and then pass a different variable depending on a condition though. But, then you are right back to where you started.
Where is this message/phrase that you are talking about? I'm not familiar with where it shows up (I don't have any private forums like that on my site). |
#5
|
||||
|
||||
The message shows up to a user who is not logged in or is not a member of the forum, the phrase is "no_posts_in_this_forum"
Default text is: Quote:
Quote:
|
#6
|
||||
|
||||
Ah, OK. Well, I think what you will want to do is just put a condition around that phrase in the FORUMDISPLAY template. Something like...
HTML Code:
<vb:if condition="$show['guest']"> - if not registered show: please register or login <vb:elseif condition="!is_member_of($bbuserinfo, x)"> - if registered but not VIP show: please upgrade to VIP <vb:else /> - if VIP show: content </vb:if> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|