Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Quick Delete Post Details »»
Quick Delete Post
Version: 1.00, by TECK TECK is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-30-2002 Last Update: Never Installs: 83
 
No support by the author.

This hack is an easy and cute one, of my 'Quick' series.

If you have permissions, it will allow you to [high]delete a post[/high] with the simple click of a button, while you view the thread. If there is only one post in the thread, the hack will delete the entire thread, instead.
Also the hack is designed to prevent accidental post deletion. A warning message will popup to confirm the message deletion.

ESTIMATED INSTALL TIME: 4 minutes
REQUESTED BY: (nobody)
TESTED IN VERSION: 2.2.6

[high]RELATED HACKS[/high]
Quick Reply Box (with Close/Open thread switch)
Quick Close/Open Thread (with reason)

[HIGH]HACK UPDATES[/HIGH]
Version 1.1
------------------------------------
Changes:
- added deletion warning message



You like this hack? Please click on the [high]Install[/high] button.
To download the latest version of this hack, click below:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 07-02-2002, 12:01 AM
Sinecure's Avatar
Sinecure Sinecure is offline
 
Join Date: Oct 2001
Location: Victoria, BC, Canada
Posts: 407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack installed perfectly, just as I wanted. The instructions were as clear as day, I'm not exactly sure where you went wrong Bofo, his instructions seemed more then clear to me?

Regardless, great hack Nakkid
Reply With Quote
  #23  
Old 07-02-2002, 12:12 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is not the code you said to put in the text link in the file I downloaded. There was no java script in the text link itself at all. That's where I got confused. Now it makes more sense when you show it to me.

Quote:
Originally posted by Nakkid
boofo, the link should look like that:
Code:
<a href="javascript:confirmdelete()">Delete Message</a>
grrrr.. firefly's hacks snooping arround...
remove the space between [high]java[/high] and [high]script[/high]

Reply With Quote
  #24  
Old 07-02-2002, 12:16 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

np boofo.
is all clear now? let me know if there is something else you are not sure and i will tell you how to do it.
all the best,
floren.
Reply With Quote
  #25  
Old 07-02-2002, 12:19 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nakkid,

Here is the code you had in the original file that you said I need to put in if it was a text link.

Code:
<smallfont><a href="editpost.php?s=$session[sessionhash]&action=deletethispost&postid=$post[postid]">Delete Post</a></smallfont>
That doesn't look any where near what you have in it now for this replacement. You changed it.

Code:
<a href="java script:confirmdelete()">Delete Message</a>
That is what was confusing me. Your instructions were wrong.
So, I guess I DID read ther instructions right the first time, huh?

Quote:
This hack installed perfectly, just as I wanted. The instructions were as clear as day, I'm not exactly sure where you went wrong Bofo, his instructions seemed more then clear to me?
Sinecure,

You must have gotten the updated file then.
Reply With Quote
  #26  
Old 07-02-2002, 12:21 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i understand now where was the prob. everytime you download again a file at vB.org, you must clear before the chache, orelse it will download the same old file.
Reply With Quote
  #27  
Old 07-02-2002, 12:32 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The file I downloaded the first time was also called 1.1. You had added the javascript code but not changed the text link in it yet. The new file with the text link changed is the same version number. My cache was cleared the first time for the file becasue I had not downloaded it before. So, I don't need anything else explained. All I needed was the right file in the first place, which is there now. You changed that text link after my message that it didn't work, huh?

Quote:
Originally posted by Nakkid
i understand now where was the prob. everytime you download again a file at vB.org, you must clear before the chache, orelse it will download the same old file.
Reply With Quote
  #28  
Old 07-02-2002, 12:35 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nope. i did not change it. why would i do this?
boofo, i always check my hacks properly and test them before i release them. also i always read the info properly just to make sure people get it right.

rest assured that if i would do this, forget to update a little piece of info, i will mention it here. so people know.
i use the auto-change function in my editor.. so it changes automatically everything in the command i enter. so when i highlighted the link, it replace it twice. and i never used in both files <smallfont>.

i send you a pm telling you to delete the irelevant posts you made here, to cleanup the thread. is up to you if you want to do this. acusing people that they do stuff like the one you posted above, wont get you far... at least not with me. thanks for the "cool" post.

let me know if you have any other problems with the hack.
regards,
floren.
Reply With Quote
  #29  
Old 07-02-2002, 07:43 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Nakkid
grrrr.. firefly's hacks snooping arround...
What?! Please delete that post, you are implying I created a hack that caused this confusiong when it's really vBulletin that separates java and script..
Reply With Quote
  #30  
Old 07-02-2002, 07:49 AM
Sinecure's Avatar
Sinecure Sinecure is offline
 
Join Date: Oct 2001
Location: Victoria, BC, Canada
Posts: 407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ummm, regardless, great hack nakkid.
I think I'm going to apply the modification so that only I can see this, or only administrators for that matter. I just don't want mods accidently deleting threads.
Reply With Quote
  #31  
Old 07-02-2002, 10:59 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nakkid,

The smallfont part was the part I added to your original code when I put it in the postbit _deletepost. You didn't have the smallfont tags in your original code. When I quoted it, I quoted it from the template file since I already had it open replacing the code with the NEW code in your UPDATED hack file. When I get to the day I find myself not being able to read and understand a hack so small and simple, then I'll hang up the old board and call it quits. I've installed too many hacks by now to make that kind of mistake every time. Give me a little more credit than that.

It really doesn't matter anyway, Floren. I installed that hack, got the right code for it now and it works great. What bothers me is your defence stance over something that a hundred other hack writers have done a thousand times before and never had a problem dealing with. I'm glad to see that we have at least one perfect hack writer here. I was starting to get worried.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04676 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete