Well, i did it...
In forumdisplay, and top...add this
//Find:
<?php
error_reporting(7);
//Down:
if( isset( $HTTP_POST_VARS[agree] ) )
{
setcookie( "NameOFCookie", "true", time()+31536000);
Header( "Location: forumdisplay.php?forumid=IDFORUM" );
}
if( !isset($HTTP_COOKIE_VARS['NameOFCookie']) && @$HTTP_GET_VARS['forumid'] == '5' )
{
include("./global.php");
eval("dooutput(\"".gettemplate("NAMEOFTEMPLATE")." \");");
}
else
{
//Go to last line, beforce %> add:
}
//Make a New Templaes, and replate in the Hack "NAMEOFTEMPLATE" for the name.
//Replace IDFORUM for the ID of the forum
Here is a example of the New Template
{htmldoctype}
<html>
<head>
<title>http://foro.alkon.com.ar</title>
$headinclude
</head>
<body>
$header
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td width="100%"><img src="{imagesfolder}/vb_bullet.gif" alt="" border="0" align="absmiddle">
<normalfont><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a> >
Acces Private Forum</b></normalfont></td>
</tr>
</table>
<br>
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr id="cat">
<td bgcolor="{categorybackcolor}"><normalfont color="{categoryfontcolor}"><b>Private Forum</b></normalfont></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}"><normalfont>
<u><b>Disclaimer - Privacidad</b></u>
<Br><br>
DISCLAIMER TEXT.<br>
<br><center>
<form action="?" method="post"><input type="submit" value="Agree" ><input type="hidden" name="agree" value="true" ></form>
<form action="index.php?" method="post"><input type="submit" value="Dont Agree" ></form></center>
</normalfont></td>
</tr>
</table>
</td></tr></table>
$footer
</body>
</html>
Ok Thats all...i hope some one can used!
|