Quote:
Originally Posted by edenx
Hello AndrewD, thanks for this hack.
Question:
I want to Force Accept Termns & Conditions every time a member access Links and Downloads Manager, actually it seems it stores a cookie for 20 hours or something, but I want it to appear every time a user enters the LDM
Can you help me?
Thanks
RFC
|
Take a look at the code of local_links.php. Around line 317, you'll find a sequence that reads
Code:
if ($vbulletin->db->num_rows($asb)) {
$ldm_accept_timeout = 24*60*60; // one day
$rec = $vbulletin->db->fetch_array($asb);
if (($rec['usertime']+$ldm_accept_timeout)>TIMENOW) {
$ldm_accept = 1;
}
}
Change the line
Code:
$ldm_accept_timeout = 24*60*60; // one day
to something like
Code:
$ldm_accept_timeout = 3600; // one hour
You'll need a value greater than zero, otherwise you're going to irritate your members greatly as they try to look around your site and keep being asked the same question.