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)
-   -   Advanced Editing Options For Mods & Admins (https://vborg.vbsupport.ru/showthread.php?t=61412)

Boofo 02-26-2004 02:20 PM

What is the code on that line?

TeH Z0mB1E 02-26-2004 03:52 PM

$bbuserinfo['editlevel'] = $editlevel['author'];

thats it.

Boofo 02-26-2004 04:05 PM

This is what it should look like right before and after that line.

PHP Code:

else
{
 
// someone else is trying to edit this post, permission check will be set up later by originalvb
 // maybe it's a mod just having delete permissions..
 
$bbuserinfo['editlevel'] = $editlevel['author'];



TeH Z0mB1E 02-26-2004 05:03 PM

PHP Code:

     // someone else is trying to edit this post, permission check will be set up later by 

    
originalvb
    
    
// maybe it's a mod just having delete permissions..
    
$bbuserinfo['editlevel'] = $editlevel['author'];
}

// now do permissioncheck
if ($postinfo['editlevel'] > $bbuserinfo['editlevel'])
{
    
print_no_permission();



thats what mine looks like.

Chris M 02-26-2004 05:18 PM

Change:

PHP Code:

      // someone else is trying to edit this post, permission check will be set up later by 

    
originalvb 
     
    
// maybe it's a mod just having delete permissions.. 
    
$bbuserinfo['editlevel'] = $editlevel['author']; 


to:
PHP Code:

      // someone else is trying to edit this post, permission check will be set up later by     
    // maybe it's a mod just having delete permissions.. 
    
$bbuserinfo['editlevel'] = $editlevel['author']; 


:)

Satan

Boofo 02-26-2004 05:20 PM

Thanks, Chris. ;)

TeH Z0mB1E 02-26-2004 05:27 PM

done this and the error has changed to

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/alienfi/public_html/forums/editpost.php(161) : eval()'d code on line 48

Boofo 02-26-2004 05:36 PM

Ok, then take the code that is in there right now, and re-add it from the hack install file. That should fix any mistake you might have made the first time. ;)

TeH Z0mB1E 02-26-2004 06:03 PM

Quote:

Originally Posted by Boofo
Ok, then take the code that is in there right now, and re-add it from the hack install file. That should fix any mistake you might have made the first time. ;)

you mean just install it again?

Boofo 02-26-2004 06:05 PM

Yes. Just copy over the code already there. ;)


All times are GMT. The time now is 04:35 PM.

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.01220 seconds
  • Memory Usage 1,743KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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