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
  #202  
Old 08-29-2005, 10:37 PM
ashraf_gawdat ashraf_gawdat is offline
 
Join Date: May 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Realy it is a great hack, I was searching for such one from ages, and good I found it before I request one.

But I have very simple questions :

Can I limit the permission of using this hack to only "SUPER ADMINISTRATORS" which are specified in config.php ?

And can I also give this permission to certain users by their user id ?
Reply With Quote
  #203  
Old 08-30-2005, 12:22 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes.

IN editpost.php, REPLACE

PHP Code:
// calculate user's editlevel
if (in_array($bbuserinfo['userid'], preg_split('#\s*,\s*#s'$superadministrators, -1PREG_SPLIT_NO_EMPTY)) 
    OR 
$bbuserinfo['permissions']['adminpermissions'] & CANCONTROLPANEL)
{
    
$bbuserinfo['editlevel'] = $editlevel['admin'];
}
else if (
$bbuserinfo['permissions']['adminpermissions'] & ISMODERATOR)
{
    
$bbuserinfo['editlevel'] = $editlevel['smod'];
}
else if (
can_moderate($threadinfo['forumid'], 'caneditposts'))
{
    
$bbuserinfo['editlevel'] = $editlevel['mod'];
}
else if (
$bbuserinfo['userid'] == $postinfo['userid'])
{
    
$bbuserinfo['editlevel'] = $editlevel['author'];
}
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'];

WITH

PHP Code:
// calculate user's editlevel
if (in_array($bbuserinfo['userid'], preg_split('#\s*,\s*#s'$superadministrators, -1PREG_SPLIT_NO_EMPTY)) OR $bbuserinfo['permissions']['adminpermissions'] & CANCONTROLPANEL)
{
    
$bbuserinfo['editlevel'] = $editlevel['admin'];
}
else
{
    
$bbuserinfo['editlevel'] = $editlevel['author'];

Reply With Quote
  #204  
Old 08-30-2005, 08:49 PM
ashraf_gawdat ashraf_gawdat is offline
 
Join Date: May 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Done, but with no effect ! Adminstrators still have the permission to use these advanced options when they edit a post. But I don't want them to have this permission or even see these options. Only Super Adminstrator should have the permission.
Reply With Quote
  #205  
Old 08-30-2005, 10:49 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

remove the

Code:
OR $bbuserinfo['permissions']['adminpermissions'] & CANCONTROLPANEL
as well
Reply With Quote
  #206  
Old 09-07-2005, 08:31 PM
Space Goat Space Goat is offline
 
Join Date: Nov 2004
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nevermind, I figured out what was wrong
Reply With Quote
  #207  
Old 09-10-2005, 09:45 PM
JsnakeJ JsnakeJ is offline
 
Join Date: Mar 2005
Location: Pennsylvania
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, thank you.
Reply With Quote
  #208  
Old 09-11-2005, 07:45 AM
ben_erhan ben_erhan is offline
 
Join Date: Dec 2004
Location: Kastamonu/TURKEY
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heyy Friends,

I have instaled this hack but I can not see it while the editing post.
There is not any table " Advanced Editing Options".
I am using vb 3.0.8.is it a problem?
I have made every thing correctly 2 times but everythin is same.
I have run sql,edited editpost.php,created new template,edited editpost template,but there is not any conlution.
Reply With Quote
  #209  
Old 09-12-2005, 04:09 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it shouldn't be a problem, there were not much changes in vb308
it should work.
Reply With Quote
  #210  
Old 09-13-2005, 08:13 PM
ben_erhan ben_erhan is offline
 
Join Date: Dec 2004
Location: Kastamonu/TURKEY
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

but it does not work.
I did every detail very cafeful,but there is not ant conclution
Reply With Quote
  #211  
Old 09-15-2005, 07:37 PM
MThornback MThornback is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Xenon, just so your aware....I edited your hack a BIT for my board to remove the IP editing ability...it was no good for the boards I run....hope there is no issue
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 02:37 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.04708 seconds
  • Memory Usage 2,315KB
  • 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_code
  • (2)bbcode_php
  • (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