The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Acept or Decline Condition
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! |
#2
|
||||
|
||||
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! |
#3
|
||||
|
||||
Quote:
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. |
#4
|
|||
|
|||
Xxman, do you want to use these instructions on a vB2 board?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|