vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Adv. Editing Options for Mods and Admins (https://vborg.vbsupport.ru/showthread.php?t=132291)

akanevsky 11-22-2006 10:00 PM

Adv. Editing Options for Mods and Admins
 
I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.

/*================================================= =====================*\
|| Adv. Editing Options for Mods and Admins
||
|| Author : Anton Kanevsky
|| Co-Author(s) : Xenon
|| Works on : vBulletin 3.5.x - 3.8.x
|| Released : Jun 01, 2009
||
|| Time required to install: ~30 seconds
|| Difficulty: easy
\*================================================ ======================*/

DESCRIPTION

This hack gives your board staff a few advanced post editing options that are available in New Thread, New Post and Edit Post interfaces. Since this is a port of Xenon's Adv. Editing Options for Mods and Admins Hack, credits for the original idea (but not for the port cause it has a lot new features that were not present in the original :)) belong to him.

Note that this hack may interfere with other hacks that make use of posting functions. If such problems appear, place the following code in the very beginning of the problematic script:

------------------------------------------------
define('BYPASS_AEO', true);
------------------------------------------------

This should eliminate whatever problem appears. If it does not, please feel free to mention it.

STATISTICS

File Uploads: 1
Products to Install: 1


FEATURES

Basics:
  • Post Editing Hierarchy (available to mods, s-mods, admins and s-admins):
    Superadministrators: Can restrict editing to moderators (and above), supermoderators (and above), admins (and above), or superadmins only.
    Administrators: Can restrict editing to moderators (and above), supermoderators (and above) or admins (and above).
    Supermoderators: Can restrict editing to moderators (and above) or supermoderators (and above).
    Moderators: Can restrict editing to moderators (and above).

  • Post Author (available to administrators only):
    Administrator can specify a custom author of any post. Guests (non-existing users) can also be specified.

  • Post Date/Time (available to administrators only):
    Administrator can specify a custom date and time for any post.

  • Post IP (available to administrators only):
    Administrator can specify a custom ip address for any post.

Advanced:
  • A system-wide switch that defines the minimal editlevel required to use the hack.
    It can be found in vBulletin Options -> Advanced Editing Options for Mods and Admins.
  • A per-user editlevel override, available via admincp user options.
  • Color-coded listing of users to whom a custom editlevel has been applied.

Note:
To make the subject of the override clear for you, here is an example. If you turn you take a regular registered user and set the override to "Administrator" in that user's profile, then that user will be able to use hack options that would otherwise be available only to administrators.

VERSION HISTORY

2.1.0
[+] The hack is now compatible with vBulletin 3.5.x - 3.8.x.
[+] Eliminated all template edits. The difference in template edits between different vBulletin versions is handled automatically.
[+] Added support for attachments for posts with custom user setting. These attachments are now saved, and their ownership is set to whatever custom user is specified.
[+] When a post is submitted with a custom user setting, that user's activity dates are updated if they are older than the post's date. The dates of the user's activities are never set to the future. If a new post is made with a date in the future, the user's activity dates are set to present time.
[+] When a post is submitted with a custom dateline, last post information in forum and thread is now rebuilt properly.
[+] If a post is submitted with a custom dateline, the thread's firstpostid and creation date are now set to match whatever posts is now the first one in the thread.
[+] In the event that you have installed "vS-Hide Hack Resurrection," and you are changing the ownership of a post that has been thanked, the ownership of thanks is updated automatically, and so are the users' thanked counts.
[+] Removed a lot of redundant code, so the hack should now work faster than it did before.

2.0.2
[+] The hack is now officially compatible with vBulletin 3.6.
[+] Added a workaround for hacks that use new post functions. See description for details.
[+] Unlike before, adv_editform form elements now use vbulletin styles.

2.0.1
[F] Removed extra queries from showthread and showpost.
[F] "adv_editform" is now cached.

2.0.0
[+] A "superadministrator" editlevel.
[+] A system-wide switch that defines the minimal usergroup required to use the hack.
[+] A user-level override of system permissions that defines the editlevel associated with any particular user.
[+] A listing of users for whom an override was defined (with color key). Located under "Users" in the control panel navigation menu.

1.0.2
[+] When you make a post, you have a new checkbox available. That checkbox is off by default, and it allows you to choose whether to use the custom dateline in your post.

1.0.1
[F] Lastposters were not updated on newthread and newreply when replied by admin.

1.0.0
First Release

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL

akanevsky 11-23-2006 05:08 PM

First Post Reserved.

Adrian Schneider 11-23-2006 05:23 PM

Cool, thanks for sharing. This will come in handy on one of my sites.

aveon 11-23-2006 07:09 PM

nice mod thanx

Nathan2006 11-23-2006 08:43 PM

Thanks Anthony,

Was waiting for the 3.6x version:D

Install;)

COBRAws 11-24-2006 12:06 AM

Quote:

Originally Posted by Nathan2006 (Post 1123919)
Thanks Anthony,

Was waiting for the 3.6x version:D

Install;)

The 3.5 is 3.6 compatible ;)

akanevsky 11-24-2006 12:07 AM

Quote:

Originally Posted by COBRAws (Post 1124005)
The 3.5 is 3.6 compatible ;)

Not necessarily, but true for this particular hack. :)

Ronak 11-24-2006 12:48 AM

Awesome hack was waiting for this :D

Snatch 11-24-2006 08:33 AM

Is it possible with this hack. That a normal user can edit his Thread in a Forum how all user edits are disabled ?

ragtek 11-24-2006 08:56 AM

thx for your work :)

akanevsky 11-24-2006 11:43 AM

Quote:

Originally Posted by Snatch (Post 1124141)
Is it possible with this hack. That a normal user can edit his Thread in a Forum how all user edits are disabled ?

Nope, it is not possible.

Nathan2006 11-24-2006 03:40 PM

Quote:

Originally Posted by COBRAws (Post 1124005)
The 3.5 is 3.6 compatible ;)

Yes but I think it was conflicting with
Post by Proxy - Let your staff post using another username(s)

But with this new 3.6x version they both work great;)

Thanks for the update Anthony:)

Updated

akanevsky 11-24-2006 03:54 PM

Quote:

Originally Posted by Nathan2006 (Post 1124297)
Yes but I think it was conflicting with
Post by Proxy - Let your staff post using another username(s)

But with this new 3.6x version they both work great;)

Thanks for the update Anthony:)

Updated

Why would you want to have both hacks installed at the same time?

Nathan2006 11-24-2006 04:39 PM

Quote:

Originally Posted by Psionic Vision (Post 1124310)
Why would you want to have both hacks installed at the same time?


Because I can send pm's using other accounts ;)

Quote:

Send PM on behalf of User:

chris1979 12-23-2006 08:02 AM

It's not working for me. When I edit the poster's username, it removes the old username but doesn't add the new one in.

Any ideas what might cause that?

akanevsky 12-23-2006 12:13 PM

Quote:

Originally Posted by chris1979 (Post 1143888)
It's not working for me. When I edit the poster's username, it removes the old username but doesn't add the new one in.

Any ideas what might cause that?

It works fine for me on vBulletin 3.6.4.

BOLT 12-23-2006 04:25 PM

PV, I am absolutely TERRIBLE with installing these types of things and I know I'll be spending days trying to figure out how to get this on my forum. So, if it's not that much of a hassle, do you think you could install this on my weightlifting forum (once I get it up) for me if I give you access to the admin panel?

chris1979 12-24-2006 08:16 AM

Quote:

Originally Posted by Psionic Vision (Post 1143952)
It works fine for me on vBulletin 3.6.4.

That's good.

For me, when I try to change the member who posted the message, it deletes the old username but doesn't add in the new one.

Any idea what can cause that?

akanevsky 12-26-2006 01:42 AM

Quote:

Originally Posted by chris1979 (Post 1144375)
That's good.

For me, when I try to change the member who posted the message, it deletes the old username but doesn't add in the new one.

Any idea what can cause that?

It works on an unhacked installation, so the problem might be caused by another hack.

Valter 12-26-2006 11:15 PM

Quote:

Originally Posted by Psionic Vision (Post 1145127)
It works on an unhacked installation, so the problem might be caused by another hack.

I've tried it on test forum and have the same problem. No other hack installed, original style, original files.

PoetJA-1975 01-16-2007 08:08 AM

Quote:

Note that this hack may interfere with other hacks that make use of posting functions. If such problems appear, place the following code in the very beginning of the problematic script:

------------------------------------------------
define('BYPASS_AEO', true);
------------------------------------------------

This should eliminate whatever problem appears, but if not - feel free to post in this thread.
There's a hack I know this was interfering with in 3.5.x - but I don't recall...
A list of those possible conflicting?

Jacquii.

akanevsky 01-16-2007 06:31 PM

Quote:

Originally Posted by PoetJA-1975 (Post 1160433)
There's a hack I know this was interfering with in 3.5.x - but I don't recall...
A list of those possible conflicting?

Jacquii.

AEO - but you quoted the fix.

wbear 01-31-2007 05:49 PM

Nice job on this, works a treat. Thank you!

PoetJA-1975 02-07-2007 04:48 PM

Just an FYI for GARS users and AEO...
Adv. Editing Options for Mods & Admins ---> init_startup
is where you place the define('BYPASS_AEO', true); at the very beginning of the plugin ;)

Jacquii.

akanevsky 02-07-2007 05:51 PM

Quote:

Originally Posted by PoetJA-1975 (Post 1176892)
Just an FYI for GARS users and AEO...
Adv. Editing Options for Mods & Admins ---> init_startup
is where you place the define('BYPASS_AEO', true); at the very beginning of the plugin ;)

Jacquii.

No, that is not where you place it. If you place it there, AEO will be disabled globally and that's not the goal.

PoetJA-1975 02-07-2007 07:39 PM

Quote:

Originally Posted by Psionic Vision (Post 1176936)
No, that is not where you place it. If you place it there, AEO will be disabled globally and that's not the goal.

well after having asked this question time and time again... At the rate of sounding a complete and totall @ss hole - Where the Hell do you place it?

Jacquii.

akanevsky 02-07-2007 07:59 PM

Quote:

Originally Posted by PoetJA-1975 (Post 1177033)
well after having asked this question time and time again... At the rate of sounding a complete and totall @ss hole - Where the Hell do you place it?

Jacquii.

In the beginning of the posting-related functions of the hack that causes conflicts. Unfortunately, that is different for every hack so I cannot give exact instructions.

PoetJA-1975 02-07-2007 08:47 PM

OK - seems MR PAULM has solved the issue - So I post for future reference...
quoted from: http://www.thevbgeek.com/showthread.php?t=866&page=2
----------------
----------------

In the AEO 'init_startup' hook ;

Find:

PHP Code:

global $vbulletin

Add below it:

PHP Code:

// Bypass Options // 
    // By Paul M - Because some mods choke on AEO // 
    
$bypass_aeo false
    if (
THIS_SCRIPT == 'report'$bypass_aeo true
    if (
is_object($vbulletin->gars)) $bypass_aeo true

    if (
$bypass_aeo) { 
        
$vbulletin->userinfo['editlevel'] = EDITLEVEL_AUTHOR
        return 
EDITLEVEL_AUTHOR
    } 
    
// End of bypass options // 


rjmjr69 02-09-2007 09:04 PM

Ok with this hack installed whenever any of my staff try to edit a post after selecting save the user name is now missing? I disabled it and all is well? Any ideas

rjmjr69 02-09-2007 11:30 PM

I got it to work right. I missed one of the template edits. Sorry for jumping the gun. Great mod I love it

Mutt 02-10-2007 08:53 PM

I only want to to appear on the edit page. how can I disable it for new reply & new thread?

akanevsky 02-10-2007 11:38 PM

Quote:

Originally Posted by Mutt (Post 1179418)
I only want to to appear on the edit page. how can I disable it for new reply & new thread?

You can't.

Mutt 02-11-2007 01:50 PM

ok, I moved it to the bottom of the page so it's not such a big deal. thanks

dizzy100 02-13-2007 06:10 PM

Think i've found quite a serious bug here.

Any posts with attachments in them will get their attachments deleted.

I had mine all deleted over the last day, couldn't place why and then realised it was because of using this hack (which i found handy instead of logging in and out). But looking at the posts with no attachments (where there should have been) proves it was whilst using this hack the attachments went astray.

Anyone have the same findings ?

dizzy100 02-13-2007 06:14 PM

Yes confirmed. The attachment is deleted but i hadn't noticed as the page was cached.

Needs addressing.

dcpaq2xx 02-13-2007 09:47 PM

Im trying to install this on Vb 3.6.4 and while trying to edit the templates it is not finding any of the text that your telling me to look for. What gives? I cant get by the template editing steps because of this.

Any help would be greatly appreciated.

Thanks

Doug

akanevsky 02-13-2007 10:19 PM

Quote:

Originally Posted by dcpaq2 (Post 1181860)
Im trying to install this on Vb 3.6.4 and while trying to edit the templates it is not finding any of the text that your telling me to look for. What gives? I cant get by the template editing steps because of this.

Any help would be greatly appreciated.

Thanks

Doug

It's there in standard vBulletin templates and compatibles. If your skin has templates that do not contain the code, then something is seriously wrong with that skin, and I cannot help you.

dcpaq2xx 02-14-2007 12:28 AM

To make sure that I am looking in the correct location, what is the exact path to the templates I need to edit? Maybe I am just not looking in the correct ones.

Thanks

Doug

Update... Actually I found it in the "editpost" template, I had to look for it manually among all the text, the search/find feature in the admin cp is not finding what im putting in there.
PHP Code:

<form name="vbform" action="editpost.php" method="post"<if condition="!is_browser('webtv')"onsubmit="return vB_Editor 


Tulsa 02-14-2007 04:25 AM

Your directions call for this in the "edit post" template.
Code:

<form name="vbform" action="editpost.php" method="post"<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(0, $vboptions[postminchars])"</if>>

The actual code is:
Code:

<form name="vbform" action="editpost.php?do=updatepost&amp;p=$postid" method="post"<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(0, $vboptions[postminchars])"</if>>
It's missing the blue text in a stock 3.6.4 template

Everyone can just look for
Code:

<form name=
and they find it just fine. It's the only instance of this in the "edit post" template.

Just like
Code:

<form action=
is the only instance of this in the "new post" template.

Excellent mod though! :up:

dcpaq2xx 02-14-2007 04:37 AM

Tulsa,

Thank you so much for the information. I was not aware of that. Usually in most cases I can copy and paste the first line and the find feature with find it. But for some reason it wouldnt work this time so immediately assumed the code wasnt there.

Thanks

Doug


All times are GMT. The time now is 07:13 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.01476 seconds
  • Memory Usage 1,856KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (18)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
  • (40)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