What does this hack do?
It can change the owner of multiple threads and post. For this, it adds another option to your mod actions on forumdisplay and showthread. After selecting some threads or posts, you can choose the new owner by name or UserID. By name works with the AJAX namesuggestion, we all know it from writing a PM. After changing the name(s), it rebuilds thread/forum counters.
This hack makes use of phrases, simple group permissions and is creating an entry into the moderation log.
Tested only on vB 3.5.4, but should work also for vB 3.5.0 up to 3.5.4
Demo is not available, due to missing permissions on my board.
Please click INSTALL, otherwise I will not support you.
Changes from 1.0:
-Ability to change also the owner of posts. If you change the owner of the firstpost, the owner of the thread will be also changed
- Added group permission. This works not with Bitfields, because I didn't want to have a file to upload. Instead, you can enter usergroups that should have access to that feature. Due to performance, it is checked only by calling the function, the links are showed for all mods. If you don't enter any group, the forum permission is checked (like it was in 1.0).
- Added possibility to enter also the UserID of a user
- "forumdisplay_changethreadsowner" is still uncached, because its not used quiet often and don't need to be cached.
How to install?- Simply import product
Options are not displayed. How do I add them manually?
If you choose to not automatically add both options you have to add that options manually.
1. Disable automatic template edit in the Change threads/posts owner settings
Changes from 1.0:- Ability to change also the owner of posts. If you change the owner of the firstpost, the owner of the thread will be also changed
- Added group permission. This works not with Bitfields, because I didn't want to have a file to upload. Instead, you can enter usergroups that should have access to that feature. Due to performance, it is checked only by calling the function, the links are showed for all mods. If you don't enter any group, the forum permission is checked (like it was in 1.0).
- Added possibility to enter also the UserID of a user
- "forumdisplay_changethreadsowner" is still uncached, because its not used quiet often and don't need to be cached.
SELECT thread.forumid, firstpostid, postid, parentid, thread.threadid
FROM vb_post
INNER JOIN vb_thread as thread ON (thread.threadid=post.threadid)
WHERE post.postid IN (2);
I have a suggestion. So I installed this and tried it out and it was about as painless as could be. But since I was having to go through pages and pages in the forums finding threads that needed to be changed, that's when I noticed it.
Say you're on the 10th page of a forum and that's the page in which you want to change a thread. You do that, and it brings you back to the first page of the forum. Is there a way it could bring you back to the 10th page?
I just installed this and after selecting several threads and typing in a new name I got the following error when pressing the change owner button...
Fatal error: Only variables can be passed by reference in /vbb/inlinemod.php(220) : eval()'d code on line 74
Any clues what the problem might be?
In case it helps, this only happens if I use the option when looking at a forum (forumdisplay.php). If I use it when looking at a thread (showthread.php) then it works fine.