vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Acept or Decline Condition (https://vborg.vbsupport.ru/showthread.php?t=57170)

cerebro 09-17-2003 08:54 PM

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!

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> &gt;
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

Quote:

Originally Posted by cerebro
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?


All times are GMT. The time now is 05:51 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01079 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete