PDA

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


akanevsky
05-31-2009, 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 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 (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.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=215096)

akanevsky
06-01-2009, 06:55 PM
First Post Reserved

Greek76
06-01-2009, 09:27 PM
Looks great!

rule0
06-02-2009, 12:08 AM
very good, will try. :up:

Hornstar
06-02-2009, 12:59 PM
Thanks for the update, this is a really great hack!

One request tho, something which I have been hoping to come for ages from VB, is a way to give individual posts an extended edit length time. (If that makes sense, I feel it would fit neatly into this hack).

akanevsky
06-02-2009, 04:41 PM
Thanks for the update, this is a really great hack!

One request tho, something which I have been hoping to come for ages from VB, is a way to give individual posts an extended edit length time. (If that makes sense, I feel it would fit neatly into this hack).

Actually, it doesn't make much sense. If you were to give a post an extended edit length time, that means you're a moderator or admin, right? But then, you can edit the post anyway. So what would be the point of that feature?

Hornstar
06-02-2009, 08:38 PM
I'd want to be able to give it to any post and that user could edit there post again. does that make more sense now?

akanevsky
06-02-2009, 08:40 PM
I'd want to be able to give it to any post and that user could edit there post again. does that make more sense now?

Yes, it does. I'll think about it, although I cannot promise I will implement it. :)

Hornstar
06-03-2009, 06:16 AM
no worries, thanks for having a think about it anyway.

photofox
06-05-2009, 02:28 AM
Nevermind, problem solved.

MarkusB
06-06-2009, 01:51 PM
Thanks for the update, this is a really great hack!

One request tho, something which I have been hoping to come for ages from VB, is a way to give individual posts an extended edit length time. (If that makes sense, I feel it would fit neatly into this hack).

yes that would be very nice!
Thanks for the Hack, :up:

will test it after the move to another Server

TheInsaneManiac
06-11-2009, 01:08 PM
Now see in the old one the staff members could still delete posts. I feel as though if a staff member sees they get a permission error they may be confused and attempt to delete the post to see if it's a bug or something. Do you think you can add an option to disallow deletion also?

Thanks.

JacquiiDesigns
06-16-2009, 12:57 AM
AWESOME - Anthony I am so happy you updated this!
Thanks for the share ;)

Jacquii.

rrudeboy
06-29-2009, 12:13 PM
FYI: i installed this mod, and suddenly members who log on with their cellphones/smartphones could no longer reply to posts.

Trek
06-30-2009, 07:21 PM
I installed this, but after I did, all of the forms I have using Easy Forms (mod here on the website) would no longer submit. Looks good otherwise, but the forms I have are of a higher priority.

Kayvin
07-09-2009, 11:23 PM
This was one of the two mods you made Psionic Vision that were why I am still using 3.6.x.

I'll be upgrading this weekend, you're awesome.

JacquiiDesigns
07-10-2009, 01:59 AM
FYI: i installed this mod, and suddenly members who log on with their cellphones/smartphones could no longer reply to posts.

Um... Prolly because they should use a phone to call and talk to folks and use a computer to access the internet...

Jacquii.

Kayvin
07-10-2009, 04:14 AM
Um... Prolly because they should use a phone to call and talk to folks and use a computer to access the internet...

Jacquii.

Pwnt. :) My phone calls people too, Jacquii.

JacquiiDesigns
07-10-2009, 08:24 PM
Tech Geeks! LOL
I know - people have been trying to get me to buy a smartphone for months "Blackberry this Blackberry that..." I suppose I just of the ideology that phones are for calling people, not for surfing the net LMAO :P

Jacquii.

akanevsky
07-11-2009, 09:18 PM
FYI: i installed this mod, and suddenly members who log on with their cellphones/smartphones could no longer reply to posts.

Have them call the site and request the info via sms. :D

JacquiiDesigns
07-12-2009, 03:48 AM
https://vborg.vbsupport.ru/ lol

hohleweg
09-03-2009, 02:47 PM
hi
i make the update and
have a problem
i see the plug in double
why?
greetings jo

akanevsky
09-05-2009, 12:06 AM
hi
i make the update and
have a problem
i see the plug in double
why?
greetings jo

Probably from an old template modification. You might want to revert your templates.

hohleweg
09-05-2009, 09:55 AM
hi
yes from older version
i have
$adv_editform
in templatest
i deleted it now its ok
greetings jo

klaush
09-05-2009, 09:00 PM
Great, one of the best! Thanks for the update!

The Smoking Gun
11-23-2009, 04:53 PM
Well done my good man......Marked, Voted and nominated!!!!

TSG!

Zaiaku
11-26-2009, 11:03 PM
Hoping for this one for vb4. Great work!

Ganin
12-18-2009, 09:15 AM
Thanks, installed.

Kayvin
12-25-2009, 12:27 AM
Hoping for this one for vb4. Great work!

The presence of this mod on vB 4 will be mandatory before I make the big changeover, it's one of my mods I use daily.

hohleweg
01-25-2010, 04:14 PM
it gives also for 4.0 ?
or which something similar

grtings jo

hohleweg
02-27-2010, 09:01 AM
*push

dweber
03-02-2010, 01:17 AM
Is this mod ready for 4.0?

Valter
04-02-2010, 08:25 PM
I'm missing this on vB4.

Are you planning to update it?

Valter
04-04-2010, 10:12 PM
I've updated it for my forums, and it works fine, but it would be great to have official support.

https://vborg.vbsupport.ru/external/2010/05/23.jpg

Frans72
04-13-2010, 04:45 PM
I've looked into this one as well, looks workable. But if you have a working vB4 version of this mod already, could you somehow upload/attach it?

The table structures seems to have remaining mostly the same, it's mostly the new variables system (and registration of them) that caused me trouble getting it to show at all. Quite frustrating to debug :)

Valter
04-18-2010, 07:00 PM
I can not post it without Psionic Vision's permissions.

I've already asked for permissions, but there is no reply yet.

Frans72
04-18-2010, 08:06 PM
Ah, that's to bad. I think I see the changes needed.. it just looks like a lot of work :)

Did you use/edit the latest version 2.1.0 ? I ask 'cos I had a lower version which I initially looked at, that one I could follow. The 2.1.0 uses this method of injecting itself into templates which is more tricky.

Come to think of it, is that more future-proof then the previous $adv_edit variable method ? Once I understood how to pass variables around in vB4 that seemed to work ok. Though repeating lots of code over use in several templates gets annoying.

rmd708
04-18-2010, 09:04 PM
I will pay someone to modify this for 4.0 suite so that I can edit author names when creating articles. PM me if anyone can do this.

James T Brock
05-06-2010, 08:46 PM
This mod takes ages to install when I try to upload it and it shoots my server load through the roof making my forum unable for 10-20 minutes. I tried this on a test site and then my live site and same results. This mod is not friendly to big boards!

Frans72
05-08-2010, 07:57 AM
Uploading by itself cannot be made problematic by the code you're uploading, it's not active yet :) I've used 2.02 on vb 3.6.7 and that ran fine.

Aynybody heard from the author yet? I'd like to see the vB4 version made available, would hate to have to do work already done.

Frans72
05-13-2010, 01:37 PM
For anybody needing just the edit author/date functionality, check out this mod for vB4: https://vborg.vbsupport.ru/showthread.php?t=241481

fluidswork
05-13-2010, 04:22 PM
Thanks great....................

ArchAngelz
05-22-2010, 02:24 AM
Maybe you could release it for us since the original author doesn't seem to be supporting this anymore?

I've updated it for my forums, and it works fine, but it would be great to have official support.

https://vborg.vbsupport.ru/external/2010/05/23.jpg

Neutral Singh
06-10-2010, 06:34 PM
Maybe you could release it for us since the original author doesn't seem to be supporting this anymore?
i second this request or Valter, can you be generous enough to post it in this thread itself? Many thanks!!

Sador
07-27-2010, 10:04 AM
I'd love this for vB4 as well.

ArchAngelz
07-28-2010, 07:04 AM
Valter says here that he cannot post it without permission.

However, given that this mod is marked as "unsupported", I see no reason why Psionic Vision would object to you supporting it on his behalf for us using vb4.

In addition, despite many requests for an update, Psionic Vision has obviously decided that he is not going to entertain them, as is evident from his absence in this thread.

Hence, I would move the proposal to have Valter do it for us; given that the request has already been made and Psionic Vision has not replied, we can assume that it is safe to do so unless Psionic Vision comes back in this thread to say that he is disallowing it.

Go Go Valter!

I can not post it without Psionic Vision's permissions.

I've already asked for permissions, but there is no reply yet.

JacquiiDesigns
07-28-2010, 07:32 AM
Valter says here that he cannot post it without permission.

However, given that this mod is marked as "unsupported", I see no reason why Psionic Vision would object to you supporting it on his behalf for us using vb4.

In addition, despite many requests for an update, Psionic Vision has obviously decided that he is not going to entertain them, as is evident from his absence in this thread.

Hence, I would move the proposal to have Valter do it for us; given that the request has already been made and Psionic Vision has not replied, we can assume that it is safe to do so unless Psionic Vision comes back in this thread to say that he is disallowing it.

Go Go Valter!
You can not assume that Psionic would allow his code to be re-released in this thread. It's his code. He has not selected "Re-usable Code" - have you tried PM or emailing him or contacting him via his site http://VisionScripts.com?

akanevsky
10-07-2010, 10:24 PM
Released version for 4.0.x. See my other thread.

dutchbb
02-05-2011, 02:42 PM
I'm trying to install the product but it keeps loading forever? (vb 3.8.6 pl1)

whaase
04-09-2011, 08:04 PM
This is a very nice hack! The only issue I have ran into, is that I can't use tapatalk with it active. Tapatalk still works fine for all regular members, but the ability to set a custom author of each post seems to be the hangup with it for Admins. If any staff that can use this hack are seeing "Did not specify username for post" with Tapatalk, the ability to set a custom author is probably why. I know this is an issue with tapatalk, and not necessarily the hack, but just thought I would throw it out there.

VTXCafe.com
05-10-2011, 02:19 PM
I uninstalled this yesterday and after uninstall I had members start complaining about attachment failures. Any reason anyone know why uninstalling this would effect people attaching photos?

flewfruit
07-02-2011, 09:15 AM
thank you very much...

dutchbb
07-07-2011, 10:36 AM
The zip seems to be corrupted, can you upload a new one?

dutchbb
07-07-2011, 10:40 AM
I installed this, but after I did, all of the forms I have using Easy Forms (mod here on the website) would no longer submit. Looks good otherwise, but the forms I have are of a higher priority.

Also can you look at this please? Thanks.

klaush
09-07-2011, 08:58 AM
The programmer wrote in the installation instructions:

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.

so if you have for example an issue with tapatalk place this line in the "mobiquo.php" sript under "define('IN_MOBIQUO', true);".

And that works fine for me!

This is a very nice hack! The only issue I have ran into, is that I can't use tapatalk with it active. Tapatalk still works fine for all regular members, but the ability to set a custom author of each post seems to be the hangup with it for Admins. If any staff that can use this hack are seeing "Did not specify username for post" with Tapatalk, the ability to set a custom author is probably why. I know this is an issue with tapatalk, and not necessarily the hack, but just thought I would throw it out there.

cheech47
09-25-2011, 02:29 PM
Great mod, is there anyway to edit PM's eg sent ones? few folk on my forum fighting via PM rather than in open forum, would like to edit these to diffuse the situation, thanks

Bro_Joey_Gowdy
11-21-2012, 12:06 AM
Uninstalled and upgraded to the 4.0.x version with more features:

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

:cool:

ka81
04-27-2020, 05:43 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...