vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Hide Post Delete Option Hack Ver. 1.0 (https://vborg.vbsupport.ru/showthread.php?t=40861)

Birdie501 07-08-2002 10:00 PM

Hide Post Delete Option Hack Ver. 1.0
 
************************************************** **
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!

Velocd 07-09-2002 03:32 PM

Isn't there an option for this in the admin cp? I don't know, seems like there would be.

Gary King 07-09-2002 03:42 PM

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 :p

Birdie501 07-09-2002 03:50 PM

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!

Darren Lewis 07-09-2002 04:46 PM

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."

Darren Lewis 07-10-2002 08:55 AM

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.

Birdie501 07-10-2002 08:59 AM

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!????

Darren Lewis 07-10-2002 09:10 AM

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.

Birdie501 07-10-2002 09:26 AM

Darren do you have any hacks installed that uses different editpost templates like the wysiwyg hack? and did you try with my code?

Darren Lewis 07-10-2002 09:44 AM

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.


All times are GMT. The time now is 10:08 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01055 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete