Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-14-2005, 03:36 PM
Jujimufu's Avatar
Jujimufu Jujimufu is offline
 
Join Date: Apr 2003
Location: Magicant
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Quick delete button in post bit

Awhile back there was this GREAT quick delete button for version 3.0.x

https://vborg.vbsupport.ru/showthread.php?t=60704

It seems like it all works for version 3.5.x , up until you have to modify the functions_showthread.php file in /includes

I searched around and it seems that file is now named class_postbit.php in /includes

The file is so much different than the original functions_showthread.php for the elder version, I'm reluctant to plug in the last bit of code for the old hack in the spot it recommends.

Has anybody had any experience with this older hack with the newer versions of vbulletin? :squareeyed:
Reply With Quote
  #2  
Old 11-14-2005, 06:06 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why do you need that if there is quick edit which also includes a quick delete?
Reply With Quote
  #3  
Old 12-14-2005, 08:02 PM
interfx interfx is offline
 
Join Date: Dec 2001
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone get this wokring for VB3.5? The nice part was a simple click on a delete graphic... Very simple and fast...

Anyone get this working?
Reply With Quote
  #4  
Old 12-17-2005, 10:42 AM
interfx interfx is offline
 
Join Date: Dec 2001
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any ideas out there?
Reply With Quote
  #5  
Old 12-17-2005, 10:54 AM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nobody answered my question in post #2.
Reply With Quote
  #6  
Old 12-17-2005, 11:01 AM
interfx interfx is offline
 
Join Date: Dec 2001
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was aware of the Quick Edit feature (it is turned on in my forums)

However, this is what it means

1. Click Edit Button
2. Click Button Physically Remove Message
3. Click Delete This Message

vs. the thread above, I have incorporated on another VB site, that was simply this process

1. Click on Delete Button (and it's gone)...

On my discussion forum, I moderate a lot, and this is much simpler than the quick edit process....

Is there a better way in VB3.5???
Thanks -
InterFX
Reply With Quote
  #7  
Old 12-17-2005, 12:52 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You don't need the file edit...

Simply apply the template edit, and edit this part:
HTML Code:
<input type="submit" name="deletepost" value="<if condition="$deletebutton">delete<else />remove</if>" id="rb_del_soft" tabindex="1" class="button" />
to
HTML Code:
<input type="submit" name="deletepost" value="delete" id="rb_del_soft" tabindex="1" class="button" />
If you want to remove the post completely, just change "delete" to "remove"

Chris
Reply With Quote
  #8  
Old 12-17-2005, 02:24 PM
interfx interfx is offline
 
Join Date: Dec 2001
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, but which template is this located in?
Reply With Quote
  #9  
Old 12-17-2005, 02:44 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Click the link to the hack above and apply the template edit that the first post suggests...

Chris
Reply With Quote
  #10  
Old 12-17-2005, 03:02 PM
interfx interfx is offline
 
Join Date: Dec 2001
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried but it is not working...

Code:
<if condition="$post['editlink']">
Now it puts up the button (Delete or Remove), but when I click on it, here's what it says...

"Invalid Action Specified"

Here's what I actuially edited...

Code:
		

			<if condition="$post['editlink']">

 <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="submit" name="deletepost" value="remove" id="rb_del_soft" tabindex="1" class="button" />
                     
                </form>  

				<a href="$post[editlink]"
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:33 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07285 seconds
  • Memory Usage 2,252KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete