Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Advanced Editing Options For Mods & Admins Details »»
Advanced Editing Options For Mods & Admins
Version: 1.2.1, by Xenon Xenon is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 3.0.6 Rating:
Released: 02-09-2004 Last Update: 06-01-2005 Installs: 119
 
No support by the author.

Ok, another one of my vb2 Hacks has been ported over and Optimized

This hack allows mods and Admins to restrict the edit permissions on a levelbased system.
Admins can disallow everyone to edit that post, while mods just can restrict editing by the author. Supermods can restrict editing by normal moderators as well.

Admins also have additional features:
- Editing the Timestamp of that Post
- Editing the Author
- Editing the IP

Nothing more to explain i think, look at the screenies if you need more infos.

Please don't forget to click install

Show Your Support

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

Comments
  #22  
Old 02-26-2004, 02:20 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the code on that line?
Reply With Quote
  #23  
Old 02-26-2004, 03:52 PM
TeH Z0mB1E TeH Z0mB1E is offline
 
Join Date: Aug 2003
Location: AFT Servers
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

thats it.
Reply With Quote
  #24  
Old 02-26-2004, 04:05 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'];

Reply With Quote
  #25  
Old 02-26-2004, 05:03 PM
TeH Z0mB1E TeH Z0mB1E is offline
 
Join Date: Aug 2003
Location: AFT Servers
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #26  
Old 02-26-2004, 05:18 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

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
Reply With Quote
  #27  
Old 02-26-2004, 05:20 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, Chris.
Reply With Quote
  #28  
Old 02-26-2004, 05:27 PM
TeH Z0mB1E TeH Z0mB1E is offline
 
Join Date: Aug 2003
Location: AFT Servers
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #29  
Old 02-26-2004, 05:36 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #30  
Old 02-26-2004, 06:03 PM
TeH Z0mB1E TeH Z0mB1E is offline
 
Join Date: Aug 2003
Location: AFT Servers
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #31  
Old 02-26-2004, 06:05 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes. Just copy over the code already there.
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 07:40 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.05073 seconds
  • Memory Usage 2,318KB
  • 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
  • (4)bbcode_php
  • (1)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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