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)

Chris-FH 04-26-2004 06:07 PM

Quote:

Originally Posted by Chris-FH
The delete-button is also shown in the private messages.

Is there a way, only to show the button in threads?

C.

Yes it is...

In your postbit- and postbit_legac-template find:

PHP Code:

<form action="editpost.php" method="post"

(from the code above)

Above ad:

PHP Code:

<if condition="THIS_SCRIPT == 'showthread'"

Find

PHP Code:

</form

(from the code above)

Underneath, you have to ad:

PHP Code:

</if> 

C.

007 04-27-2004 12:34 AM

I am trying out a few differint things with this hack. One question though. Is the URL used in VB3 to delete posts this?

editpost.php?s=&do=deletepost&p=xxxxx

Doesn't seem to work, although according to the values Gary's form uses this should work. What is the correct URL? I am working on incorporating a popup confirmation.

M.C. 04-29-2004 11:48 PM

006, read a NOTE on first page.... but i think it should be way out ;)

mtha 04-30-2004 05:33 PM

can I add "reason" when deleting post, using this quick delete feature?

Jujimufu 05-14-2004 02:25 AM

Don't understand why everybody is having so much trouble with this? I installed it in about 6 or 7 minutes and was laughing out loud after deleting a dozen posts in zero time. Check it out!

http://www.trickstutorials.com/temporary/antoine.gif

I even added a funny alt tag. Thanks a lot Gary! :devious:

Edit: I didn't read the whole thread at first, but thanks to Chris FH and Gary again for fixing the problem with it appearing in the private messaging postbit and the user groups visibility thing. NOW! This is a very slick hack. :rambo:

!!!cyr0n_k0r 05-15-2004 09:10 AM

id still like to see an optional popup window asking if your sure you want to delete the thread.

mtha 05-15-2004 06:13 PM

Quote:

Originally Posted by !!!cyr0n_k0r
id still like to see an optional popup window asking if your sure you want to delete the thread.

add a

onclick="return confirm('Are you sure you want to delete this post')"

in to the link code.

!!!cyr0n_k0r 05-15-2004 06:49 PM

Code:

                <form action="editpost.php" method="post">
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="p" value="$post[postid]" />
                <input type="hidden" name="do" value="deletepost" />
                <input type="hidden" name="deletepost" value="<if condition="$deletebutton">delete<else />remove</if>" />
                <input type="image" name="submit" src="$stylevar[imgdir_button]/delete.gif" align="middle" border="0" />
                </form>

Here is my code for the delete button. Where in there should I add the onclick?

!!!cyr0n_k0r 05-16-2004 04:15 AM

nevermind, figured it out.

ImportPassion 05-16-2004 07:06 PM

Quote:

Originally Posted by Boofo
Not for the first post, it doesn't. It works fine for other posts but not the first post in a thread.

works exactly as expected.


All times are GMT. The time now is 01:06 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.03790 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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