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)

ashraf_gawdat 08-29-2005 10:37 PM

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 ?

akanevsky 08-30-2005 12:22 PM

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



ashraf_gawdat 08-30-2005 08:49 PM

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.

Xenon 08-30-2005 10:49 PM

remove the

Code:

OR $bbuserinfo['permissions']['adminpermissions'] & CANCONTROLPANEL
as well :)

Space Goat 09-07-2005 08:31 PM

nevermind, I figured out what was wrong

JsnakeJ 09-10-2005 09:45 PM

Great hack, thank you.

ben_erhan 09-11-2005 07:45 AM

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.

Xenon 09-12-2005 04:09 PM

it shouldn't be a problem, there were not much changes in vb308
it should work.

ben_erhan 09-13-2005 08:13 PM

but it does not work.
I did every detail very cafeful,but there is not ant conclution

MThornback 09-15-2005 07:37 PM

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 :)

Xenon 09-16-2005 01:27 PM

of course no problem ;)

MJM 09-29-2005 09:47 PM

Just checking on any ETA for use with 3.5 ...

Thanks,
~ Mark

Sal Collaziano 10-05-2005 01:16 PM

Same here. I REALLY want to be able to use this with 3.5. The most important feature of this, to me, is being able to edit the member's name who posted the message...

Xenon 10-05-2005 05:00 PM

Sorry no ETA yet

i am overloaded with work, don't expect any of my hacks not installed on vb.org to be released until vb.org has not been upgraded to 3.5.

Sal Collaziano 10-10-2005 08:33 PM

Quote:

Originally Posted by Xenon
Sorry no ETA yet

i am overloaded with work, don't expect any of my hacks not installed on vb.org to be released until vb.org has not been upgraded to 3.5.

No problem at all.. Just know we're anxious. :)

Lionel 10-19-2005 04:25 AM

Quote:

Originally Posted by xitrum
Thanks for the nice mod Xenon. I got everything installed correctly I think. The problem is when I tried to edit the author of a post and click submit. The author is never changed. Am I missing something? TIA.

xitrum

I also have the same problem. I just installed 5 minutes ago on 3.07

Xenon 10-19-2005 04:04 PM

hmm, if you installed everything correctly, there shouldn't be such a problem, this hack worked perfectly for the 149 users which have it installed

logofreax 11-09-2005 06:08 PM

Hi, short question?

Does this great hack work on 3.5 or is there work on it?

cu
logofreax

Xenon 11-15-2005 09:32 PM

There is a version released by Dark Visor, for 3.5 which is based on this one ;)

akanevsky 11-15-2005 09:58 PM

Quote:

for 3.5 which is based on this one
Yes, except my nickname was recently changed from Dark Visor to Psionic Vision :) Look in my profile.

David_R 02-11-2006 03:25 AM

is this hack also available for 3.5 version ?
we have to upgrade our board from 3.0.x version to 3.5 latest and got this hack installed.

thanks.

carolem 02-11-2006 10:20 AM

Quote:

Originally Posted by David_R
is this hack also available for 3.5 version ?
we have to upgrade our board from 3.0.x version to 3.5 latest and got this hack installed.

thanks.

Yes, check out this thread:
https://vborg.vbsupport.ru/showthread.php?t=98737

logofreax 09-26-2008 07:22 AM

logofreax clicks uninstall cause no solution for 3.7 and installs this one:

Change Threads/Posts Owner/Date 1.7

It works pretty good.

cu
logofreax

Dagothar 02-25-2009 01:18 AM

Thanks, logofreax.

Xenon--great idea, and almost tried to install, as I see it's "Supported" and you were online in Feb 2009.

Perhaps mark "Unsupported"?


All times are GMT. The time now is 11:15 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.01331 seconds
  • Memory Usage 1,775KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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