The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Popup When Editing Other's Post
This is all I'm trying to do: I want to have vBulletin pop up a message asking the user if they really do want to edit someone else's post, after they have clicked the 'Edit' button.
If you want to take a stab at this on your own, please do, but this the code I have tried: I have this JavaScript next to the log_out() function (in the navbar template): HTML Code:
<script type="text/javascript"> function edit_post_confirm() { if (confirm("Are you sure you want to edit someone else's post?")) { return true; } else { return false; } } </script> HTML Code:
<if condition="$post[username] != $bbuserinfo[username]"> <a href="$post[editlink]" name="vB::QuickEdit::$post[postid]" onclick="return edit_post_confirm()"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a> <else /> <a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a> </if> Any ideas? |
#2
|
|||
|
|||
Guys? Anything?
Any way to create a confirmation popup when editing another's post? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|