vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Disable Usergroups From Deleting Posts (https://vborg.vbsupport.ru/showthread.php?t=40805)

Boofo 07-08-2002 03:02 AM

This line is in the usergroup.php not the user.php. You need to edit your instructions.

makeyesnocode("Can delete own threads by deleting the first post","candeletethread",0);

g-force2k2 07-08-2002 03:04 AM

i made an error :p i will fix the changes and update tomarrow ;\ don't have a forum to test with at the moment so i'll re add later... sorry about that...

g-force2k2

g-force2k2 07-08-2002 03:07 AM

Quote:

Originally posted by Boofo
Tmakeyesnocode("Can delete own threads by deleting the first post","candeletethread",0);
yeah i know i make some techincal errors ;\ i ain't that great so sorry if a make a few mistakes... i ain't perfect i'll admit that just used to knowing where things are i forget a small thing like usergroup ;)

g-force2k2

Boofo 07-08-2002 03:12 AM

After adding it after the first occurrance, I can still edit posts so that looks good. You haven't tested this yet? Shouldn't it be in the beta section until it is fully tested at least once? :)

g-force2k2 07-08-2002 03:16 AM

I did test it boofo ;) just didn't notice that there were two differen't if ($action=="deletepost") {

my friend allows me to test on his forum but hes not on right now ;\

i tested it but after you stated the issue about two different actions that got me... so i'll do another final test tomarrow... and i'll have to take into consideration the editing perms...

but i did test and it didn't allow for deletion ;) but better sure to make sure there isn't anything added before reattaching something that is...

g-force2k2

Boofo 07-08-2002 03:18 AM

Oh, ok. I guess I must have misunderstood you. I will test it now and let you know if all is well. :)

g-force2k2 07-08-2002 03:24 AM

in the editpost.php

for security purposes... find both:

PHP Code:

if ($action=="deletepost") { 

after that place:

PHP Code:

// +++++++ Start Checking Delete Post Permission [ Start ] +++++++

  
$perms=getpermissions();
    if(!
$perms[candeleteposts]) {
      eval(
"standarderror(\"".gettemplate("error_cantdeleteposts")."\");");
      exit;
    }
// +++++++ Start Checking Delete Post Permissions [ End ] +++++++ 

I don't see what harm that could do and i've overlooked the coding and the first seems to be checking permissions and the second seems to carry out the actions... so adding to both is probably the best way to go until i can further look into it :)

g-force2k2

Boofo 07-08-2002 03:28 AM

It worked fine with just doing it after the first one. If they can't get the permisssion, they can't carry anything out. :) Go ahead and test it with both if you want and let me know how it goes. I am going to leave it as is for now. If it ain't broke, I don't want to break it. :)

g-force2k2 07-08-2002 03:32 AM

yeah i know what you mean... but i guess better safe then sorry thanks for the help alot Boofo :) and thanks for testing the edit option for me... just so you know i reattached and added the template addon to the

PHP Code:

$templatesused 

if you wanted to just add that in... but thanks for the help :D

g-force2k2

Boofo 07-08-2002 03:35 AM

No problem. Glad to help. Now I expect to see my name up in lights as the Ultimate Beta Tester (is there such a thing and if there is, isn't being proud of that a little strange?) :)


All times are GMT. The time now is 05:37 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.02529 seconds
  • Memory Usage 1,738KB
  • 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_php_printable
  • (1)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