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)

MischiefThought 02-23-2004 02:51 PM

Hmm.. I got mine working, but.. It removes the posts, and leave's the "manage" and "view post" options there. Any ideas?

Gary King 02-23-2004 07:38 PM

Quote:

Originally Posted by MischiefThought
Hmm.. I got mine working, but.. It removes the posts, and leave's the "manage" and "view post" options there. Any ideas?

Can I see a screenshot?

MischiefThought 02-23-2004 08:52 PM

Here you go:

MischiefThought 02-26-2004 10:26 AM

Any ideas, Gary W? It's been 3 days, :S (Dont mean to be rude).

Gary King 02-26-2004 11:16 AM

Change $deletebutton = 1; to $deletebutton = 0; then all new deleted posts will disappear.

The way you have it right now is how vBulletin works, posts aren't usually permanently deleted (staff can still see the deleted posts, just in case they ever need to.)

MischiefThought 02-27-2004 12:59 PM

$deletebutton = 0; is what i have it set to.

Gary King 02-27-2004 07:03 PM

Yep that is correct.

MischiefThought 02-27-2004 07:48 PM

Your not understanding what i'm saying...

I have the delete set to 0, and its not working.

MischiefThought 02-28-2004 02:04 AM

Ok, does anyone have any ideas? I'm really gettin mad now, it's been over 3-4 days atleast.

Gary King 02-28-2004 01:32 PM

Check the source code of the post and make sure that there is the following code when viewing a thread:
PHP Code:

<input type="submit" name="deletepost" value="remove" id="rb_del_soft" tabindex="1" class="button" /> 


Sebastian 03-01-2004 10:45 PM

uhm.. is it possible to make this a delete link rather than a submit botton? looks tacky on postbit.

Gary King 03-01-2004 11:05 PM

Quote:

Originally Posted by Sebastian
uhm.. is it possible to make this a delete link rather than a submit botton? looks tacky on postbit.

Replace the newly added code in template with
HTML Code:

<a href="editpost.php?$session[sessionurl]do=deletepost&amp;deletepost=<if condition="$deletebutton">delete<else />remove</if>&amp;p=$post[postid]">delete</a>

Sebastian 03-02-2004 01:29 AM

doesn't work... get a blank page on rc3 using link instead of button.

Gary King 03-02-2004 08:42 PM

I'm pretty sure because you did not do it correctly, template modifications never display a blank page unless you remove everything.

Sebastian 03-03-2004 12:03 AM

have you tested it? i get a blank page when i click the 'delete' link. as in the $_REQUEST does not exist in editpost.php.

Gary King 03-03-2004 01:21 AM

Okay thanks for letting me know; read the Note: here: https://vborg.vbsupport.ru/showpost....40&postcount=1

Wifey 03-15-2004 10:30 PM

I've installed this and I'm not sure why it's not working. I don't see any text for the delete link so I'm not sure what I've done wrong. Any help?

Gary King 03-15-2004 11:10 PM

Quote:

Originally Posted by ashkarita
I've installed this and I'm not sure why it's not working. I don't see any text for the delete link so I'm not sure what I've done wrong. Any help?

Did you add the phrases?

Wifey 03-15-2004 11:19 PM

Quote:

Originally Posted by Gary W
Did you add the phrases?

I didn't know I was supposed to add phrases actually - it doesn't say that initally and I'm new to this, I'm sorry :(

What phrases do I need to add?

Gary King 03-16-2004 12:03 AM

Quote:

Originally Posted by ashkarita
I didn't know I was supposed to add phrases actually - it doesn't say that initally and I'm new to this, I'm sorry :(

What phrases do I need to add?

Nevermind phrases aren't required. Should work just fine for you because instructions are very simple.

Wifey 03-16-2004 12:24 AM

I'm going to try uninstalling and reinstalling because I don't know why it's not working. I've followed the directions exactly as they're stated, and yes, the instructions are very simple. Hrm. I'll just keep my fingers crossed.

edit: Okay, I uninstalled and reinstalled and it's still not working. I guess I'll just take it out. Thanks for your help but I don't wanna waste your time because I'm sure you have better things to do! I have no idea why it's not working - I've installed another hack you listed and it worked perfectly. Who knows!

msimplay 03-26-2004 07:02 PM

hmm this would be better if there was a pop up confirming delete yes/no
i would like the ability to delete with one button but hands can easily slip
so a delete popup would be good as an addon or an update to the hack itself

Slave 04-02-2004 11:27 PM

I've had a play and created a "Quick Delete" button to use with this hack .. you can find it attached ..

:)

(no I'm not a PSD expert .. far from it .. so you might find it better to make one yourself :p)

Gary King 04-03-2004 12:07 AM

Thanks, I'll add that to the first post :)

Slave 04-03-2004 01:07 AM

nps .. :)

Sin City 04-06-2004 08:44 AM

i did every step correctly, but i see no button for the quick delete... i saw someone mention postbit_legacy ... would i need to edit something there as well or what?

Scrub 04-06-2004 10:21 AM

By looking at your forums, you seem to be using the vB2 layout postibt, right? If so, then you'll need to edit postbit_legacy to get it to show up. ;)

Sin City 04-07-2004 06:14 AM

thanks Scrub... i got it now... sweet hack... thank you

on a side note... i have no problem using the Quick Delete to delete an entire thread...like Gary said... you must have missed something

trinitym 04-21-2004 10:04 PM

Woo! Excellent hack for my lazy arse. ;) Perfect for non-permanent deletion anyway. I figure if I'm going to permanently kill something, I might as well do it the long way to make sure.

*clicks install*

<edit>Took out the pop-up fix for now, seems my butt also needs more caffiene.</edit>

Chris-FH 04-22-2004 12:21 AM

The delete-button is also shown in the private messages.

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

C.

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 04:17 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.01294 seconds
  • Memory Usage 1,819KB
  • 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
  • (1)bbcode_html_printable
  • (5)bbcode_php_printable
  • (8)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
  • (40)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