vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Confirm Logout - View Topic
Topic Rating: *****
Printable View
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Confirm Logout (16th Mar 08 at 11:31am UTC)
This will create a 'confirm box' asking if you are sure you want to log out.


<script>
/*Confirm Logout
Coded By Wrighty
No Ripping, Reposting or Claiming*/

var _a = 'Are you sure you wish to logout?'

function _x(){
    if(confirm(_a)){
        location.href = '/action/logout'
    }
}
var _b = get('menu_buttons','id').getElementsByTagName('a')[get('menu_buttons','id').getElementsByTagName('a').length -1]
if(vf_username != 'guest'){
    _b.href = 'javascript:_x();';
}
</script>


Main Header
Alex Bailey
Senior Member
****

Posts: 503
Status: Offline
Gender: Male
Location: Uk
Age: 32
Joined:  
Reputation: 8%  


pmmsnaim
Re: Confirm Logout (18th Jul 08 at 9:30pm UTC)
not working for me :/

www.bailey.vforums.co.uk

ting-tong2k6@hotmail.com
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 31
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Confirm Logout (19th Jul 08 at 9:41pm UTC)
Make sure this code is above the "Add Website Link To Menu" code. {Wink}

rroll.to— Shorten a link, rickroll your friends.
Alex Bailey
Senior Member
****

Posts: 503
Status: Offline
Gender: Male
Location: Uk
Age: 32
Joined:  
Reputation: 8%  


pmmsnaim
Re: Confirm Logout (20th Jul 08 at 2:22pm UTC)
ah thanks {Cheesy}

ting-tong2k6@hotmail.com
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 31
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Confirm Logout (20th Jul 08 at 3:30pm UTC)
No worries; I first realized the error when the "Website" button asked me if I was sure I wanted to logout. {Tongue Out}

rroll.to— Shorten a link, rickroll your friends.
ashkir
Full Member
***

[Avatar]

Posts: 1,159
Status: Offline
Gender: Male
Location: Cali!
Age: 34
Joined:  
Reputation: 42%  


pmtwitterskypemsnyahoo
Re: Confirm Logout (28th Jul 08 at 11:08pm UTC)
Preview :] http://wimg.co.uk/OFQRys.gif

Tried in Safari, Opera, Internet Explorer and Firefox all have the same box and no special effects, so not uploading each screenshot. :].
 Printable View

All times are GMT+0 :: The current time is 5:32am
Page generated in 0.9353 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums