PDA

View Full Version : I want to delete the log out confirmation


tendo
01-31-2006, 07:15 PM
users complaining about the "you sure you wanna log out" dialog box. i found it in the navbar template, but i'm kinda scared to delete the js function because i think that will cause an error, not just get rid of the popup?

im not sure

<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>


can i just delete that?

thx for your time !!

tendo
02-23-2006, 03:41 PM
No one ever responded to this *bump* :)

Marco van Herwaarden
02-23-2006, 04:58 PM
Just change the first line of the function to:
return true;

Paul M
02-23-2006, 05:05 PM
can i just delete that? No, but you could alter the function to this ;

<script type="text/javascript">
<!--
function log_out()
{
return true;
}
//-->
</script>


Edit: Which is pretty much what Marco beat me to saying ;)

tendo
02-23-2006, 09:39 PM
Thanks guys I appreciate your time !!

Internet cupcakes for everyone ! ! ! :D

hrm i changed it to

<script type="text/javascript">
<!--
function log_out()
{
return true;
}
//-->
</script>

and it didnt break anything but it still asks you to confirm logout :/

tendo
03-08-2006, 04:01 PM
bump

Brad
03-08-2006, 04:27 PM
Open the navbar template.

Find:

<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]" onclick="return log_out()">$vbphrase[log_out]</a></td>

Replace with:

<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]">$vbphrase[log_out]</a></td>