Log in

View Full Version : Administrative and Maintenance Tools - Adv. Editing Options for Mods and Admins


akanevsky
10-05-2010, 10:00 PM
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 4.0.x
|| Released : Oct 05, 2010
||
|| 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 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=61412), 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.2.0
The hack has been ported to vBulletin 4.0.x.

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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=251701)

midnz
10-06-2010, 12:58 AM
Thank-you very much :)
Installed on 4.0.7. I am able to change the author of an existing post successfully however the post date refuses to change for me.

I had hoped that I could change the post dates on two particular threads/articles that are displayed using Bananalive's Article Forums v4.x (https://vborg.vbsupport.ru/showthread.php?t=237116) so that they would disappear to the next page and out of view. They're both just demos of BBCodes that have been released here on vb.org. 2nd and 3rd articles in this forum (http://www.vcclan.org/forums/articles.php?c=213&styleid=42) (Test Demo and Another Test Demo).

I tested changing the post dates on normal posts (not affected by Banalive's Article Forums) in my main forum (http://www.vcclan.org/forums/forum.php?styleid=32) but with the same results. The post dates won't change. Hopefully I'm not just being blonde :confused: ...

akanevsky
10-06-2010, 01:05 AM
Thank-you very much :)
Installed on 4.0.7. I am able to change the author of an existing post successfully however the post date refuses to change for me.

I had hoped that I could change the post dates on two particular threads/articles that are displayed using Bananalive's Article Forums v4.x (https://vborg.vbsupport.ru/showthread.php?t=237116) so that they would disappear to the next page and out of view. They're both just demos of BBCodes that have been released here on vb.org. 2nd and 3rd articles in this forum (http://www.vcclan.org/forums/articles.php?c=213&styleid=42) (Test Demo and Another Test Demo).

I tested changing the post dates on normal posts (not affected by Banalive's Article Forums) in my main forum (http://www.vcclan.org/forums/forum.php?styleid=32) but with the same results. The post dates won't change. Hopefully I'm not just being blonde :confused: ...

Did you check the checkbox "apply the custom date"?
IF you did and it still doesn't work, what exactly are you trying to do? Change the date of existing post or a new one?

midnz
10-06-2010, 01:44 AM
Did you check the checkbox "apply the custom date"?
IF you did and it still doesn't work, what exactly are you trying to do? Change the date of existing post or a new one?

No, I didn't check the checkbox. I didn't notice it before. I've just tried it and it works now. Thanks very much :).

CThiessen
10-07-2010, 11:15 AM
Hi,
great Mod, thanks for that.
Do you think you could make it work for the Bog´s also.

One thing I missing in vB4 is the possibility to move Threads to Blog´s (And the post as comments)
If this works also for Blog´s i could do it. Just c&p an change author and Date.

Thanks
Christian

gagan007
10-12-2010, 03:32 AM
tagged and rated excellent :)
Will install shortly.


Edit: Marked as Installed

Dr.osamA
10-14-2010, 03:57 AM
installed

5 stars

thanxxxx bro

COL NIL SATIS
10-15-2010, 10:09 AM
tagged

Tortikova
10-16-2010, 05:45 AM
Its works for blog entries?

New Joe
01-22-2011, 01:56 AM
Its works for blog entries?

No it doesn't.

Fready
02-01-2011, 09:36 AM
I hope this is supported.
I installed it but even as it was set to Admins only, my Super Moderators could also use it.

rwoscott
02-18-2011, 08:09 AM
I seem to have a problem with this hack.
When I (as an admin, who has access to use the hack) try to comment on a CMS article, I get the following message:
"You did not specify a username for your post."

Users in lesser groups can post comments successfully.

I've disabled this hack, and I can add comments, so I'm assuming it is related to this plug-in.

Thanks.

AbeFroman
03-16-2011, 08:59 PM
How do I activate this mod?

I copied the xml file and the php file to the appropriate directory, but when I go to edit a post as the admin, I don't see an option to change the time?

Also I dont see anything in the admin section for the advanced editing options.

Valter
10-06-2011, 05:20 PM
vB 4.1.7, add-on version 2.2.0.

Replying to thread gives this error:
Call to undefined function build_thread_counters()

To fix this:

1. Open product XML, search for:
build_thread_counters($threadinfo['threadid']);
2. Add this ABOVE:
require_once(DIR . '/includes/functions_databuild.php');


NOTE: There are two instances of:
build_thread_counters($threadinfo['threadid']);
Apply fix on both of these.

ka81
12-08-2011, 12:43 PM
does it work correctly on 4.1.8?
it's enough to download and install only A.E.O_2.2.0_by.Psionic.Vision.zip or also I shave to make changes from post #14 ?

Thanx!

Valter
12-09-2011, 07:01 AM
Yes, it does.

-Edit XML to implement above fixes, then import it.
-Upload included files.

Merjawy
12-28-2011, 03:16 AM
Thanks for the fix, I had to uninstall but then I applied the fix now and its fine

Also changed the date style from MM/DD/YY to DD/MM/YY

sutto
07-22-2012, 04:24 AM
Cool Mod.

Is there a way to see a list of posts they have been changed using this mod?

I would like to keep an eye on what posts moderators are changing. Specifically the author (previous > current) etc.

In addition, is there a way to restrict the author selection to a pre-defined list? For example, I only want moderators changing particular posts to the 'Moderator' user. I don't want them all to have the ability to change the author to absolutely anyone on the forum.

JackThomson120
07-30-2012, 04:58 PM
Is it just me or does this not show when you're on newreply.php and posts without a username?

sevak
08-10-2012, 11:25 AM
Fatal error: Call to undefined function build_thread_counters() in /home/hithokth/public_html/includes/functions_newpost.php(784) : eval()'d code on line 17

got this error when editing a post with multiple entry...

i am trying to split them as they are automatically added in old post
---------- Post added at 11:13 ---------- Previous post was at 11:12 ----------

now issue is that this 10 post having 100 videos now....while it should be 100 posts...

searched and got this mod...tried to cut and paste in new post with time so it will add as as post down and if it worked i can split all...but this error came in 4.2.0....

any proper soultion??

Bro_Joey_Gowdy
11-21-2012, 12:07 AM
Downloaded and installed... nice upgrade from this one:

https://vborg.vbsupport.ru/showthread.php?t=215096

:cool:

fxdigi-cash
12-04-2012, 06:03 PM
it doesn't work in vb4.2

M.C.
01-17-2013, 05:29 PM
gives blank screen on 4.2 :(

fabs23
05-24-2013, 11:03 AM
Hi,
I fixed the problem this way:
In plugins
A.E.O. - Process Settings ('editpost') - (2/2) and
A.E.O. - Process Settings ('newpost') - (2/2)

after the line
//update counters

you have to add
require_once(DIR . '/includes/functions_databuild.php');

Greetings
fabs

Kayvin
06-03-2014, 08:43 PM
Hi,
I fixed the problem this way:
In plugins
A.E.O. - Process Settings ('editpost') - (2/2) and
A.E.O. - Process Settings ('newpost') - (2/2)

after the line
//update counters

you have to add
require_once(DIR . '/includes/functions_databuild.php');

Greetings
fabs

You are my hero.

RedHacker
06-01-2016, 12:29 AM
Install in 4.1.7 Version but i cant change time and date.

ka81
08-08-2016, 08:54 PM
Hello
Is it possible to assign this hack for group ID ??

I got some difficult situation:
1) /admincp/options.php?do=options&dogroup=psionic_advedit set to S-Admin.
2) user1 - group Administrator (ID6). In that group settings Can Moderate All Forums (is Super Moderator) YES, Can Moderate All Forums (is Super Moderator) YES.
3) user2 - group Super Moderator (ID5). In that group settings Can Moderate All Forums (is Super Moderator) YES, Can Moderate All Forums (is Super Moderator) YES.
I have to give to user2 this permissions, so he can use normal search in /admincp/user.php?do=modify (as you know in /modcp/user.php?do=find you can search only by Name). Anyway, user2 is Super Moderator, but he can use this hack when editing posts.

So, I don't actually understand why Super Moderator has an access to hack, which is set for Administrator (S-Admin) only..
Ans as for me the best way is to assign hack for groupID, not for Hierarchy.

muffel
02-02-2017, 10:30 AM
gives blank screen on 4.2 :(

Does it now work in 4.2.x? Is there a workaround?
Or is there another similar addon that is able to change the date / time of posts?

Thank you!

muffel

Kane@airrifle
02-02-2017, 10:39 AM
Does it now work in 4.2.x? Is there a workaround?
Or is there another similar addon that is able to change the date / time of posts?

Thank you!

muffel


https://vborg.vbsupport.ru/showthread.php?t=241481

ka81
04-08-2018, 11:53 AM
Anyone please tell me, is there a similiar mod for newest/latest vBulletin version?
I mean mod that will work stable and let admin to change: post's aurhor, date, time and IP ?

Thank you!

ka81
04-27-2020, 05:44 AM
Hello!
Help please./
What and where should I chang to make the box CHECKED? I mean the one next to - Apply Custom Date & Time? (If you leave this unchecked, real date & time will be used.)


I see template adv_editform
There's a code:
<div style="margin-top: 2px;">
<label for="cb_use_new_dateline">
<input type="checkbox" id="cb_use_new_dateline" name="use_new_dateline" value="1" <vb:if condition="isset($checked['use_new_dateline'])">checked="checked"</vb:if> /> {vb:rawphrase advedit_use_new_dateline}
</label>
</div>

but I don't understand what to change...

PinkMilk
04-27-2020, 07:00 AM
Hello!
Help please./
What and where should I chang to make the box CHECKED? I mean the one next to - Apply Custom Date & Time? (If you leave this unchecked, real date & time will be used.)


I see template adv_editform
There's a code:
<div style="margin-top: 2px;">
<label for="cb_use_new_dateline">
<input type="checkbox" id="cb_use_new_dateline" name="use_new_dateline" value="1" <vb:if condition="isset($checked['use_new_dateline'])">checked="checked"</vb:if> /> {vb:rawphrase advedit_use_new_dateline}
</label>
</div>

but I don't understand what to change...

Remove the condition, change:
<vb:if condition="isset($checked['use_new_dateline'])">checked="checked"</vb:if> />

to:
checked="checked"