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
Hide Post Delete Option Hack Ver. 1.0 Details »»
Hide Post Delete Option Hack Ver. 1.0
Version: 1.00, by Birdie501 Birdie501 is offline
Developer Last Online: Feb 2011 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-08-2002 Last Update: Never Installs: 6
 
No support by the author.

************************************************** **
Hide Post Delete Option Hack Ver. 1.0
by Birdie501
Requested by Darren Lewis
here -> https://vborg.vbsupport.ru/showthrea...&postid=270940
Latest Version 1.0, tested for vb 2.2.x
Support: As good as i can
************************************************** **

What this hack does?
It hide the delete post option for users in editing post!
Only admins or moderators can delete posts!

Please click install if you use this hack!

zip attached.


I think screenshots are not neccessary!

Show Your Support

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

Comments
  #2  
Old 07-09-2002, 03:32 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Isn't there an option for this in the admin cp? I don't know, seems like there would be.
Reply With Quote
  #3  
Old 07-09-2002, 03:42 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Birdie501
well i think there is one to allow users to delete posts or not, but they would still see the option to delete if they aren't allowed to delete posts! Like here on vb.org!
Actuallly, you ARE allowed to delete posts here LoL
Reply With Quote
  #4  
Old 07-09-2002, 03:50 PM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

upps sorry thats correct!
just tried!

But this hack is usefull if your users are not allowed to delete posts as requested by Darren Lewis

old post was:
well i think there is one to allow users to delete posts or not, but they would still see the option to delete if they aren't allowed to delete posts! Like here on vb.org!
Reply With Quote
  #5  
Old 07-09-2002, 04:46 PM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Birdie501, thanks for releasing this for me.

I've set these options in the admin panel, but the when I checked (using a test member account) I can still see the delete post box, but clicking on the button brings up an error page saying "You do not have permission to access this page."
Reply With Quote
  #6  
Old 07-10-2002, 08:55 AM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've set the option off for the usergroup, but the delete box still appears. When they click on the delete post button, then they get told that they can't do this.

What I want is for them to not be able to see the box to click on in the first place.
Reply With Quote
  #7  
Old 07-10-2002, 08:59 AM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure you entered your page as normal user? Maybe you have a cookie problem and you enter the page still as admin. Maybe thats the reason why you still see the box!????
Reply With Quote
  #8  
Old 07-10-2002, 09:10 AM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Birdie501
Are you sure you entered your page as normal user? Maybe you have a cookie problem and you enter the page still as admin. Maybe thats the reason why you still see the box!????
Yeah, I've even tried it from a different PC and I can still see that box as a normal user. It was one of my members who asking me about it that brought it to my attention.

Thanks anyway.

I may just delete the box from the template. If mods want to delete the whole post, it's probably best to edit it and leave a remark instead.

Darren.
Reply With Quote
  #9  
Old 07-10-2002, 09:26 AM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Darren do you have any hacks installed that uses different editpost templates like the wysiwyg hack? and did you try with my code?
Reply With Quote
  #10  
Old 07-10-2002, 09:44 AM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Birdie501
Darren do you have any hacks installed that uses different editpost templates like the wysiwyg hack? and did you try with my code?
The only one I've got that required modifying the standard editpost template is the Spell Checker hack that Parker Clack released. This just adds a button to the bottom of the form and a bit of javascript. None of the other hacks use different editpost templates.

I never thought to revert the template. Anyway, I've installed your hack just now and it works perfectly. A regular member cannot see the delete post box, but I can

Thanks for that.

Darren.
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 01:44 AM.


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.04638 seconds
  • Memory Usage 2,287KB
  • Queries Executed 23 (?)
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_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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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