vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Prevent users seeing the delete post box when editing a post? (https://vborg.vbsupport.ru/showthread.php?t=40853)

Darren Lewis 07-09-2002 12:26 PM

Prevent users seeing the delete post box when editing a post?
 
Hi

I don't allow members to delete their posts, only edit them. Moderators and Admin can delete posts.

How can I remove the box to delete posts from the editpost template when a user edits a post, but have the box show when a moderator or admin edits a post?

Is this just a simple template mod, or do I have to edit the editpost.php file?

If I need to hack the php file, what do I need to do?

Thanks.

Darren.

Birdie501 07-09-2002 01:40 PM

Hi,

please wait about 2 hours, when i am back home i will release this!

Birdie501 07-09-2002 02:52 PM

OK RELEASE is here: https://vborg.vbsupport.ru/showthrea...threadid=40861

Logician 07-09-2002 03:12 PM

Excuse me but doesnt that delete box automatically removed if you disable usergroup's "Can delete own threads" and "Can delete own posts" rights via Admin CP? I think it is.. :rolleyes:

Gary King 07-09-2002 03:40 PM

Quote:

Originally posted by Logician
Excuse me but doesnt that delete box automatically removed if you disable usergroup's "Can delete own threads" and "Can delete own posts" rights via Admin CP? I think it is.. :rolleyes:
lmao that's what I was gonna say :P

Birdie501 07-09-2002 04:11 PM

Uppss my fault :-))

Admins please delete my hack :)

Gary King 07-09-2002 04:12 PM

But a nice try nonetheless :)

Darren Lewis 07-09-2002 04:44 PM

Quote:

Originally posted by Logician
Excuse me but doesnt that delete box automatically removed if you disable usergroup's "Can delete own threads" and "Can delete own posts" rights via Admin CP? I think it is.. :rolleyes:
That's what I thought, but when I checked (using a test member account) I can 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."

Birdie501 thanks for your hack - I'll download it and have a look.

Darren.

Darren Lewis 07-10-2002 10:29 AM

I've carried on the discussion in the hack release thread, so perhaps this thread could be closed now?

Darren

Bison 01-06-2003 01:09 AM

There is use for this hack ... don't kill it yet. For those using the PM Users upon Thread Deletion hack, this is a quite usefull since it hides that hack too ... ya just have to modify your template and add that hack template to yours.

With the two combine, this is a very good hack!


All times are GMT. The time now is 09:11 PM.

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.01006 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete