Hi this was a hack that i previously used in classic,
although it was an External Loggin i also used it
to only allow registered members to see certain web pages.
By removing the actual Login feilds and just ran
the check.
Is there a simular code for v7 Threads that i coud adopt?
This is the code i used previously.
UBB Classic.
Cookie.inc.php
<script type="text/javascript">
<!--
function getCookie(name) {
var cname = name + "=";
var dc = document.cookie;
if (dc.length > 0) {
begin = dc.indexOf(cname);
if (begin != -1) {
begin += cname.length;
end = dc.indexOf(";", begin);
if (end == -1) {
end = dc.length;
} // end if
return (dc.substring(begin, end));
} // end if
} // end if
return null;
}
//-->
</script> Cookiediplay.inc.php
<script type="text/javascript">
<!--
var user_cookie = getCookie('ubberxxxxx.xxxx');
if(''==user_cookie || null==user_cookie) {
//document.writeln('<div class="small">You are not logged in.' , '<br />
<a href="http://www.xxxx/ultimatebb.cgi">Login</a> or
<a href="http://www.xxxx/cgi-bin/ultimatebb.cgi?ubb=agree">Register</a></div>')
} else {
var user_array=user_cookie.split("&");
user_array[2] = unescape(user_array[2]);
document.writeln(user_array[2]);
//document.writeln('Hello, ', user_array[2]);
//document.writeln('<br />[<a title="Click here to log out.
" href="http://www.xxxx/cgi-bin/ultimatebb.cgi</cgi-bin/ultimatebb.cgi?ubb=logoff">','log out</a>]');
}
//-->
</script> Any help would be appreciated thanks

As it can be handy
