Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Hide Post Delete Option Hack Ver. 1.0 Details »»
Hide Post Delete Option Hack Ver. 1.0
Version: 1.00, by Birdie501 Birdie501 is offline
Developer Last Online: Feb 2011 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-08-2002 Last Update: Never Installs: 6
 
No support by the author.

************************************************** **
Hide Post Delete Option Hack Ver. 1.0
by Birdie501
Requested by Darren Lewis
here -> https://vborg.vbsupport.ru/showthrea...&postid=270940
Latest Version 1.0, tested for vb 2.2.x
Support: As good as i can
************************************************** **

What this hack does?
It hide the delete post option for users in editing post!
Only admins or moderators can delete posts!

Please click install if you use this hack!

zip attached.


I think screenshots are not neccessary!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 07-10-2002, 09:51 AM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok thanks! Even if only you will use it , it was worth to make it
Reply With Quote
  #13  
Old 07-10-2002, 10:00 AM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll play around with a clean fresh install of vbulletin on my local PC and maybe drop a comment to Jelsoft about it if I still get the same. My online vb has been hacked a little so this may be interfering with things - can't see how though.

Cheers,

Darren
Reply With Quote
  #14  
Old 07-10-2002, 10:17 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this hack work with the WYSIWYG hack?

Quote:
Originally posted by Birdie501
Darren do you have any hacks installed that uses different editpost templates like the wysiwyg hack? and did you try with my code?
Reply With Quote
  #15  
Old 07-10-2002, 10:35 AM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes it will, but you don't need this hack. This function is already included in vb. You just have to disable the function 'can delete post" in admin Cp for the specific usergroup.
Reply With Quote
  #16  
Old 07-10-2002, 10:42 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I already did that but I never tried to log on under one of the groups I disabled it for to see if the button still shows up. Does the button show up if it is turned off?

Quote:
Originally posted by Birdie501
Yes it will, but you don't need this hack. This function is already included in vb. You just have to disable the function 'can delete post" in admin Cp for the specific usergroup.
Reply With Quote
  #17  
Old 07-10-2002, 10:53 AM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nothing will be shown.
Reply With Quote
  #18  
Old 07-10-2002, 10:56 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You mean if I use this hack, nothing will be shown, right? Because I just tested it without the hack and the button is still there.

Quote:
Originally posted by Birdie501
Nothing will be shown.
Reply With Quote
  #19  
Old 07-10-2002, 11:02 AM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Normally nothing will be shown if you turned it off!
Also if you use my code nothing will be shown!
Reply With Quote
  #20  
Old 07-10-2002, 11:31 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The delete button is still there (without your hack installed) even if it is turned off. It just gives you the "Can't delete" error message. If your hack is installed, the button is NOT shown. It works great for that part of it. But if you have the WYSIWYG hack installed, it is still shown in there unless I put the $deletepost in there. Then it doesn't show. But is also doesn't show even if you are allowed to delete messages in the WYSIWYG editor for some reason. Any ideas on how to make it work for that too?
Reply With Quote
  #21  
Old 07-10-2002, 11:48 AM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
The delte button is still there (without your hack installed) even if it is turned off. It just gives you the "Can't delete" error message. If your hack is installed, the button is NOT shown. It works great for that part of it. But if you have the WYSIWYG hack installed, it is still shown in there unless I put the $deletepost in there. Then it doesn't show. But is also doesn't show even if you are allowed to delete messages in the WYSIWYG editor for some reason. Any ideas on how to make it work for that too?
in editpost.php i have this and it works:


PHP Code:

if ( ($enableHTMLEdit == 1) AND ( ($bbuserinfo['enablewysiwyg']) ) ) {
if ( (
$bbuserinfo[usergroupid] == 6) OR (ismoderator($threadinfo[forumid],"candeleteposts")) ){
    eval(
"\$deletepost = \"".gettemplate("editpost_delete")."\";");
    } else {
    
$deletepost "";
    } 
 eval(
"dooutput(\"".gettemplate("editpost_wysiwyg")."\");");
  } else {

if ( (
$bbuserinfo[usergroupid] == 6) OR (ismoderator($threadinfo[forumid],"candeleteposts")) ){
    eval(
"\$deletepost = \"".gettemplate("editpost_delete")."\";");
    } else {
    
$deletepost "";
    }  
eval(
"dooutput(\"".gettemplate("editpost")."\");");
  } 
of course as you said you have to put $deletepost in template editpost_wysiwyg and delete the part of the form.
Reply With Quote
Reply

Thread Tools

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 02:32 AM.


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.08241 seconds
  • Memory Usage 2,311KB
  • Queries Executed 25 (?)
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)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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