eddie w
05-19-2009, 07:08 PM
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
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