The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
New page added, set permissions for registered users only?
Hey guys,
I created a new page on my site and I like to set permissions for only registered users can access not unregistered. How ever it doesn't show any permissions for the new page in Channel Management/Usergroup -> Channel Permissions on the site. How do I add this new page I made to Channel Management to set the users that I wish to look at this page? Hope you guys can help. Many thanks, DigoAlmino |
#2
|
||||
|
||||
Can put your new content into a PHP Module and use PHP to give a No Permission to usergroups that have no permission?
|
#3
|
|||
|
|||
Hey Lynne,
How will I do this sorry? Because I'm still new to PHP and I'm learning things as I go. Because what I want is the page to be blocked by guest due to it's a application form for different areas of the community. So I'm trying to figure out with the Channel Management is there a way I can add this new page in or like you said Lynne make a script to block that usergroup ID. If you have instructions for the PHP block content Lynne that will be fantastic. Thank you. DigoAlmino |
#4
|
||||
|
||||
Something like....
PHP Code:
|
#5
|
|||
|
|||
I need it in HTML pls
|
#6
|
|||
|
|||
I am not sure I understand your reply. You asked for PHP originally and that is what @Lynne provided. Please clarify.
|
#7
|
|||
|
|||
I didn't ?? ... Digo asked for PHP, I need HTML
|
#8
|
|||
|
|||
My mistake, thanks for clarifying.
Code:
<vb:if condition="$userinfo['usergroupid'] == 1"> <!-- Unregistered Users HTML Code --> <vb:else /> <!-- Your Logged in Users HTML Code --> </vb:if> |
#9
|
|||
|
|||
Tried it, but this happens .. You are not logged in. Welcome
My code is as follows. <vb:if condition="$bbuserinfo['usergroupid'] == 1"> <!-- Unregistered Users HTML Code --> You are not logged in. <vb:else /> <!-- Your Logged in Users HTML Code --> Welcome </vb:if> |
#10
|
|||
|
|||
Oops, I am not at home where I could test the code. At a hotel bar at the moment, during a business stay. I pulled the reference $bbuserinfo from the vb5 manual. If the variable did not exist it should be 'NULL' and 'NULL does not equal 1, so either way you should not have executed that branch.
Try: Code:
<vb:if condition="$userinfo['usergroupid'] == 1"> Where are you placing that code? What template? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|