vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Delete a post with only one button (in postbit) (https://vborg.vbsupport.ru/showthread.php?t=60704)

PhoenixBB 06-10-2004 08:03 AM

Quote:

Originally Posted by mtha
I think if you put it into the right place, then the button ONLY display together with "edit" one, and the Edit button only shows up for those who can edit.

note. The code should be added ABOVE the </if> to close the checking for those who can edit.

But this isn't a button for editing, it's for deleting. My members can edit, they cannot delete. If they click the normal edit button they don't get the delete option, but they have the 'quick delete' button there. Sure they'll get no permission when they click it, but I figure it'd be better to hide it.

The code is in the right place.

I think I'll probably be able to try and figure it out from the code on the quick edit hack.

mtha 06-11-2004 04:10 AM

Quote:

Originally Posted by PhoenixBB
But this isn't a button for editing, it's for deleting. My members can edit, they cannot delete. If they click the normal edit button they don't get the delete option, but they have the 'quick delete' button there. Sure they'll get no permission when they click it, but I figure it'd be better to hide it.

The code is in the right place.

I think I'll probably be able to try and figure it out from the code on the quick edit hack.

:) sorry, I let my members to delete their posts, so I didnt think of this.

There're two way you can do it:

- Try to figure out how to get the value of $show['deletepostoption'] then you <if condition="$show['deletepostoption']">
- or use condition where usergroup=6 (admin) or user is moderator something around the delete part.

PhoenixBB 06-11-2004 12:40 PM

Quote:

Originally Posted by mtha
:) sorry, I let my members to delete their posts, so I didnt think of this.

There're two way you can do it:

- Try to figure out how to get the value of $show['deletepostoption'] then you <if condition="$show['deletepostoption']">
- or use condition where usergroup=6 (admin) or user is moderator something around the delete part.

Thanks, I'll give it a shot. :)

SIINSI 08-08-2004 07:27 PM

I just noticed that too.... I don't allow users to delete. How can I get rid of the images to those withut permissions?

TIA

Miguel

AnhTuanCool 08-09-2004 01:34 AM

Small problem, the browser doesn't redirect to the previous page that contain the deleted post. That would be hard for some hundred pages thread. :(

Any idea?

Blam Forumz 08-18-2004 08:59 PM

/me installs & clicks teh button

the wiz 09-28-2004 12:46 PM

Installed. :)

cnczone 01-24-2005 02:29 PM

great hack

Dys 01-30-2005 06:44 AM

Not sure why but no matter what, its a soft delete... even if I change the line in the functions_showthreads 1 or 0 jut does soft delete.

am I really the only one who noticed this? or did I just miss an entire step?

interfx 02-12-2005 09:11 PM

Does this work on 3.0.6?

Installed it, works great...


All times are GMT. The time now is 11:58 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.02303 seconds
  • Memory Usage 1,734KB
  • 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
  • (3)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