View Full Version : Acept or Decline Condition
cerebro
09-17-2003, 08:54 PM
Hi, i looking for a hack to do a Acept of same condition. i will use in a XXX seccion of my VBulletin, where i looking for a confirmation of the user that there are older.
So i think in a Popup where show the condition and the user haves to Acept or Decline.
When accept, can go inside the Sub Forum...if decline, cant do.
In http://www.actiontrip.com/ can see a example, but no for a board....in the botton of the page have "The Baby of The Day" and the first time you see the popup, write some cookie, and later dont see.
Sorry for my english...im really bad for writte...i hoppe some one can understand...
thanks a lot!
cerebro
09-17-2003, 11:48 PM
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!
Xxman
05-10-2006, 05:12 PM
Well, i did it...
If I would to apply this hack on my forum for require an user's accept or decline action on multiple forums (three or more) how can I do ??
Thanks for your effort in advance.
Marco van Herwaarden
05-16-2006, 08:27 AM
Xxman, do you want to use these instructions on a vB2 board?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.