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)
-   -   Message Editing Hierarchy (https://vborg.vbsupport.ru/showthread.php?t=38988)

Marshalus 07-28-2002 11:54 PM

After I applied this hack, I can no longer edit my own posts.

Logician 07-29-2002 06:47 AM

Quote:

Originally posted by Marshalus
After I applied this hack, I can no longer edit my own posts.
Marshalus, I'm using the hack for weeks without any problems, so are u sure u applied it correctly? Anyway let's trace what's the problem with your editing problem:

In hack's code find:
PHP Code:

show_nopermission(); exit; 

Replace it as:
PHP Code:

echo "My userid=".$bbuserinfo[userid].'<br>';
echo 
"My user group id=".$bbuserinfo[usergroupid].'<br>';
echo 
"Message Owner user group id=".$log_usergroupid[usergroupid].'<br>';
echo 
"Message Owner user id=".$postinfo[userid].'<br>';
exit; 

Then try to edit your post that you say you cant edit and tell me what the hack will display to you.

This code is for debugging purposes only, so after you debugged, revert back to the original hack code.

Chris M 07-29-2002 08:52 AM

Nice one Logician:)

Satan

Xenon 07-29-2002 03:59 PM

Hi pal!

i have made an upgrade to your code. Permissions are no longer checked per usergroupid but on the normal getpermission base

also i have made some exact error-messages ;)

and a cahnge of permission checks:
why let moderators edit other moderators posts?
normal members cannot edit other members post..

So Mods can edit Membersposts and their own, but no other mod's post

Supermods can edit Members/Moderators/own Posts, but no posts from other supermods... aso...

hope it's ok for ya pal ;)

inetd 07-29-2002 08:58 PM

install this hack later
Good idea!

Ein 09-27-2002 12:29 AM

It works pretty good, except for two...my co-admin can edit my posts with no problem, but that doesn't really bug me. And one of my Mods can do whatever, too, but don't let it bug you, he's also able to access the Admin Forum for no reason. Good show!

Ohh...yea, I'm using vB version 2.2.8.

Xenon 09-27-2002 10:22 AM

are you sure your mod isn't in the admin group?

normally that shouldn't happen if you have setup all permissions correctly.

your coadmin can edit your posts?
do you have userid 1?

N9ne 09-27-2002 06:21 PM

What if I don't want the function that no one can edit userid=1's posts? I want it so only admins can edit admins' posts, not no one being able to edit userid=1's posts...so how can I remove that?

Xenon 09-27-2002 06:25 PM

just remove this block:
Code:

if($postinfo[userid]==1 or $postperms[cancontrolpanel]==1) {
    $editpriority="Root Admin";
    eval("standarderror(\"".gettemplate("error_editpriority")."\");");
    exit;       
  } else

next code should be: if(....

NTLDR 09-27-2002 07:46 PM

Quote:

Originally posted by Logician
I never thought about the aftermath of this default behavior, until one of my SuperModerators peaked into my message and "stole" a hidden BB code from me! :)
Any user should be able to do this by just quoting your message if I'm correct?

This is still a good hack none the less :)


All times are GMT. The time now is 11:03 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.01089 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_php_printable
  • (2)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