Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Change Threads/Posts Owner Details »»
Change Threads/Posts Owner
Version: 1.5, by Phalynx Phalynx is offline
Developer Last Online: Nov 2015 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-10-2006 Last Update: 05-31-2006 Installs: 68
Uses Plugins Template Edits
 
No support by the author.

A version compatible with vBulletin 3.7 GOLD can be found here:
https://vborg.vbsupport.ru/showthread.php?t=178208


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

Contains: 8 phrases, 3 additional templates, 2 Options
Installtime: <1 minutes
Difficulty: easy (1 product)

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


2. Open the template FORUMDISPLAY.

Search for:
Code:
<option value="mergethread">$vbphrase[merge_threads]</option>
Add after it:
Code:
<option value="changethreadsowner">$vbphrase[changethreadsowner_link]</option>


3. Open the template SHOWTHREAD

Search for:
Code:
<option value="undeleteposts">$vbphrase[undelete_posts]</option>
Add after it:
Code:
<option value="changepostsowner">$vbphrase[changethreadsowner_link]</option>

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 06-01-2006, 01:35 PM
D.Ilyin D.Ilyin is offline
 
Join Date: Oct 2005
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
Clicked install twice!!
Reply With Quote
  #43  
Old 06-01-2006, 01:53 PM
D.Ilyin D.Ilyin is offline
 
Join Date: Oct 2005
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

but.....
Quote:
Database error in vBulletin 3.5.4:

Invalid SQL:

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

MySQL Error : Unknown table 'post' in where clause
Error Number : 1109
Date : Thursday, June 1st 2006 @ 05:53:37 PM
Script : http://localhost/vb0/inlinemod.php
Referrer : http://localhost/vb0/inlinemod.php
IP Address : 127.0.0.1
Username : admin
Classname : vb_database
ONLY when try to change owner from inside thread .

UPDATED
And as a future suggestion:
decrease amount of posts old owner and adding amout to new owner of the thread.
Reply With Quote
  #44  
Old 06-01-2006, 02:02 PM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

updated mine
Reply With Quote
  #45  
Old 06-01-2006, 02:03 PM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so, where are the usergroup perms again?
Reply With Quote
  #46  
Old 06-01-2006, 02:12 PM
Phalynx Phalynx is offline
 
Join Date: Feb 2004
Location: Erlangen, Germany
Posts: 2,747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by D.Ilyin
but.....

ONLY when try to change owner from inside thread .
Should be fixed with the new XML named product-changethreadsowner151.xml, please download again.

Quote:
Originally Posted by Kihon Kata
so, where are the usergroup perms again?
In this case, vBulletin Options, "Change threads/posts owner"
Reply With Quote
  #47  
Old 06-01-2006, 03:29 PM
D.Ilyin D.Ilyin is offline
 
Join Date: Oct 2005
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Phalynx
Should be fixed with the new XML named product-changethreadsowner151.xml, please download again.
Thank's all works without errors for now.

PS What about my suggestion?
On big boards rebuilding posts count after changing some authors thread will be to long .
Quote:
Originally Posted by Kihon Kata
so, where are the usergroup perms again?
PSS Maybe you mean that: ./admincp/options.php?do=options&dogroup=changethreadsowner
Reply With Quote
  #48  
Old 06-03-2006, 02:09 PM
Jeordie015 Jeordie015 is offline
 
Join Date: Nov 2002
Location: Illinois, USA
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #49  
Old 06-03-2006, 05:15 PM
Phalynx Phalynx is offline
 
Join Date: Feb 2004
Location: Erlangen, Germany
Posts: 2,747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There should be no problem to implement this. Currently I'm calling the forum of the first thread. Lets see v1.6

Quote:
On big boards rebuilding posts count after changing some authors thread will be to long
Right, next version will add/remove postings.
Reply With Quote
  #50  
Old 06-16-2006, 09:00 AM
mawby mawby is offline
 
Join Date: Jun 2004
Location: Wiltshire, England
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mawby
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.

I'm happy with this, at least I can use it now.
Reply With Quote
  #51  
Old 07-24-2006, 04:11 AM
HappyPike's Avatar
HappyPike HappyPike is offline
 
Join Date: Feb 2002
Location: USA
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Phalynx
There should be no problem to implement this. Currently I'm calling the forum of the first thread. Lets see v1.6


Right, next version will add/remove postings.
Is the next version coming soon?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:56 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.08757 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete