The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
custom page
Hi
I have made a simple custom page and i want to make it accessible for members only I have tried following code but it does not work can you show me what i have done wrong . $stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> if ($vbulletin->userinfo['member'] < 2 OR $vbulletin->userinfo['member'] > 7) { $vbulletin->url = 'index.php?' . $vbulletin->session->vars['sessionurl']; eval(print_standard_redirect('redirect_exitwithast ernwarning')); } <head> $headinclude <title>$vboptions[bbtitle]</title> </head> <body> $header <!-- Custom Code Start Here --> some code here <!-- / Custom Code Ends here --> </body> </html> Many thanks Eddie |
#2
|
|||
|
|||
<a href="https://vborg.vbsupport.ru/showthread.php?t=62164" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=62164</a>
|
#3
|
|||
|
|||
Hi
it seems very complex i just want to have the page seen by members only i do not want navbar or footer just logo . I was told the code i had would work but i may have got part of it wrong. Thanks Eddie |
#4
|
||||
|
||||
Have you tried this? Edit user group to suit your needs.
HTML Code:
$stylevar[htmldoctype] <html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vboptions[bbtitle]</title> </head> <body> $header <if condition="is_member_of($bbuserinfo, 5, 6, 7)"> Stuff to show to memebrs of usergroup 5, 6 and 7 <else /> Sorry ... this page is only viewable by the members of the forum. </if> </body> </html> |
#5
|
||||
|
||||
You cannot put php into your template.
(This is php: PHP Code:
|
#6
|
|||
|
|||
Thanks everyone that helped but have now solved the problem
Eddie |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|