ThreadsDev FusionBB Greeting Cards FusionBBDev.com Measurection.com VertexHost NASCAR Racing MouseFunFacts.com Myrtle Beach Info UBB.Threads Modifications threadsdev.net
FusionBB

Trans-D Tropin
Use Coupon Code '1004' to Save $20 Off Your Initial Order of Trans-D Tropin®
V6 Threads Development >> Modifications

Pages: 1
JoshPetAdministrator
The artist formerly known as Mr. Bug
****

Reged: 11/29/01
Posts: 11414
Loc: Charlotte, NC
Beta-[6.3-6.4] Mass Threads Move for 6.3
      #84984 - 06/15/03 01:57 AM Attachment (146 downloads)

Mod Name / Version: Mass Threads Move for 6.3 & 6.4

Description: This modification and enclosed scripts will allow admins/moderators to move multiple threads from one forum to another . This includes unapproved posts.

Working Under: UBB.Threads 6.3 & 6.4

Mod Status: Beta

Any pre-requisites: none

Author(s): JustDave

Date: 06/14/03

Credits: JoshPet minor update to instructions for 6.3

Files Altered: /admin/menu.php, /admin/chooseforum.php

New Files: viewmovethreads.php, doviewmovethreads.php

Database Altered: none

Info/Instructions: This is really JustDave's work - just minor tweak to the instructions for 6.3. <img src="/forum/images/graemlins/smile.gif" alt="" />

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.




--------------------
Josh - Joshua PettitWebsite - For Hire Coding work and Modifications

Feel Better, Look younger - www.BuyTransD.com
Use Coupon Code 1004 to Save $20 Off Your Initial Order of Trans-D Tropin

Edited by JoshPet (01/02/04 07:01 PM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
Turbosport
Member


Reged: 09/08/01
Posts: 157
Loc: Kent, UK.
Re: Beta-[6.3] Mass Threads Move for 6.3 [Re: JoshPet]
      #85311 - 06/17/03 04:18 AM

I have an issue that if you move a thread to a forum you cant then use this mod to move it back, anyone else got this ?

--------------------
Regards

Clint



Running on WIN2003 Web Server.



Paranoid people get followed too!


Post Extras: Print Post   Remind Me!   Notify Moderator  
Turbosport
Member


Reged: 09/08/01
Posts: 157
Loc: Kent, UK.
Re: Beta-[6.3] Mass Threads Move for 6.3 [Re: Turbosport]
      #85313 - 06/17/03 04:23 AM

Ah another thing I have just noticed is that if I select more than one file only one moves and the other disapears !

--------------------
Regards

Clint



Running on WIN2003 Web Server.



Paranoid people get followed too!


Post Extras: Print Post   Remind Me!   Notify Moderator  
mario2
Enthusiast
**

Reged: 07/08/99
Posts: 470
Loc: Los Angeles, Rio de Janeiro, M...
can I move 30 000 threads at once? All threads except first 20 threads? [Re: Turbosport]
      #85362 - 06/17/03 02:31 PM

so this could move all old threads to an archive board??

Post Extras: Print Post   Remind Me!   Notify Moderator  
JoshPetAdministrator
The artist formerly known as Mr. Bug
****

Reged: 11/29/01
Posts: 11414
Loc: Charlotte, NC
Re: Beta-[6.3] Mass Threads Move for 6.3 [Re: Turbosport]
      #85417 - 06/17/03 06:32 PM

Haven't noticed any problems. We used it here to combine the archived finished mods forum and the archived beta mods forum.

--------------------
Josh - Joshua PettitWebsite - For Hire Coding work and Modifications

Feel Better, Look younger - www.BuyTransD.com
Use Coupon Code 1004 to Save $20 Off Your Initial Order of Trans-D Tropin


Post Extras: Print Post   Remind Me!   Notify Moderator  
mario2
Enthusiast
**

Reged: 07/08/99
Posts: 470
Loc: Los Angeles, Rio de Janeiro, M...
I did a little hack on it to use it for archiving [Re: JoshPet]
      #85743 - 06/19/03 04:52 AM

Instead of the number 30, I used a variable $massmovenumber= 30; and carefully increased it up to 3000

This way I archived 20 000 threads with no maior difficulty. Works great!!

Now I put it back to $massmovenumber= 300; as 3000 should be used with great care only!!


Post Extras: Print Post   Remind Me!   Notify Moderator  
tenshu
Journeyman


Reged: 05/12/03
Posts: 118
Re: I did a little hack on it to use it for archiving [Re: mario2]
      #94495 - 09/11/03 09:21 PM

i cant get this to work, it says its moved the thread but when i check its not moved...

Any suggestions??

thanks again


Post Extras: Print Post   Remind Me!   Notify Moderator  
JoshPetAdministrator
The artist formerly known as Mr. Bug
****

Reged: 11/29/01
Posts: 11414
Loc: Charlotte, NC
Re: I did a little hack on it to use it for archiving [Re: tenshu]
      #94498 - 09/11/03 09:30 PM

Hmmmm..... I'd double check your instructions. I know this works because I isntalled it here when we had some reorganization to do.

--------------------
Josh - Joshua PettitWebsite - For Hire Coding work and Modifications

Feel Better, Look younger - www.BuyTransD.com
Use Coupon Code 1004 to Save $20 Off Your Initial Order of Trans-D Tropin


Post Extras: Print Post   Remind Me!   Notify Moderator  
tenshu
Journeyman


Reged: 05/12/03
Posts: 118
Re: I did a little hack on it to use it for archiving [Re: JoshPet]
      #94509 - 09/11/03 11:35 PM

omg sorry it is working! told you its one of those weeks!

Thanks its great!!


Post Extras: Print Post   Remind Me!   Notify Moderator  
JoshPetAdministrator
The artist formerly known as Mr. Bug
****

Reged: 11/29/01
Posts: 11414
Loc: Charlotte, NC
Re: I did a little hack on it to use it for archiving [Re: tenshu]
      #94517 - 09/12/03 01:06 AM

LOL

I know sometimes we're not much help..... but I guess at least if others say they know it works under 6.3 then you know to double check instructions. I've installed things and stared at them until I was blue.... only to finally find what I did wrong.

--------------------
Josh - Joshua PettitWebsite - For Hire Coding work and Modifications

Feel Better, Look younger - www.BuyTransD.com
Use Coupon Code 1004 to Save $20 Off Your Initial Order of Trans-D Tropin


Post Extras: Print Post   Remind Me!   Notify Moderator  
ksanuk
Member


Reged: 02/06/02
Posts: 290
Loc: Bangkok, Thailand
Re: I did a little hack on it to use it for archiving [Re: JoshPet]
      #100608 - 11/26/03 09:07 PM

Hi,

Did anybody try this for 6.4?
I'm about to create an archive and this mod would make my live quite a bit easier

Sanuk!


Post Extras: Print Post   Remind Me!   Notify Moderator  
dman
Journeyman
***

Reged: 01/14/03
Posts: 145
Re: I did a little hack on it to use it for archiving [Re: ksanuk]
      #100609 - 11/26/03 09:21 PM

It works fine on my 6.4b1.

Post Extras: Print Post   Remind Me!   Notify Moderator  
ksanuk
Member


Reged: 02/06/02
Posts: 290
Loc: Bangkok, Thailand
Re: I did a little hack on it to use it for archiving [Re: dman]
      #100618 - 11/27/03 01:00 AM

Hi,

Cool. Thanks.

Sanuk!


Post Extras: Print Post   Remind Me!   Notify Moderator  
lcantey
Member


Reged: 05/20/99
Posts: 166
Loc: CA
Re: I did a little hack on it to use it for archiving [Re: JoshPet]
      #105076 - 01/14/04 12:10 AM

I'm having some problems running this one too. If I select two posts, I'm only seeing the first one get moved. I haven't finished looking at it, but the update seems to do the correct "OR". One thing I did find was that $oldboard was not getting set in doviewmovethreads, and only the updating for the new boards was getting run.

Lee


Post Extras: Print Post   Remind Me!   Notify Moderator  
lcantey
Member


Reged: 05/20/99
Posts: 166
Loc: CA
Re: I did a little hack on it to use it for archiving [Re: lcantey]
      #105151 - 01/14/04 06:41 PM

Okay, I found why the last thread isn't moved, here is an example:

UPDATE w3t_Posts
SET B_Board = 'website'
WHERE B_Main = '1569' OR B_Main = '35731'
AND B_Board = ''
;

The precedence of AND and OR makes it: B_Main = '1569 OR (B_Main = '35731' AND B_Board = '') which is all except the last one. I fixed it by adding parens around the WHERE $Formatted_q in the UPDATE. Of course it doen't move posts now becasue of $oldbard not being set, so on to that...

Lee


Post Extras: Print Post   Remind Me!   Notify Moderator  
lcantey
Member


Reged: 05/20/99
Posts: 166
Loc: CA
Re: I did a little hack on it to use it for archiving [Re: lcantey]
      #105153 - 01/14/04 07:01 PM

That was easy enough. After adding Code:
$oldboard = get_input("oldboard","post");

to the top where it was seting newboard it seems to be running correctly now.

Lee


Post Extras: Print Post   Remind Me!   Notify Moderator  
Sheall
User


Reged: 05/25/02
Posts: 41
Re: Beta-[6.3-6.4] Mass Threads Move for 6.3 [Re: JoshPet]
      #113028 - 05/11/04 06:52 AM

This modification has one small problem, it allows moderators to move threads to forums they do not have moderator access to. The fix is below.

IN VIEWMOVETHREADS.PHP

FIND THIS:

Code:

$initialcat = "";
$boardSelect = "<select name=\"newboard\" class=\"formboxes\">";
while ( list($Title,$Board,$Catnum,$Sorter,$Name) = $dbh -> fetch_array($sth)) {



AND CHANGE IT TO THIS:

Code:

$initialcat = "";
$boardSelect = "<select name=\"newboard\" class=\"formboxes\">";
while ( list($Title,$Board,$Catnum,$Sorter,$Name) = $dbh -> fetch_array($sth)) {


$Board_q = addslashes($Board);
$query = "
SELECT Mod_Board
FROM {$config['tbprefix']}Moderators
WHERE Mod_Uid = '{$user['U_Number']}'
AND Mod_Board = '$Board_q'
";
$sti = $dbh -> do_query($query);
list($check) = $dbh -> fetch_array($sti);
if ( ($user['U_Status'] != 'Administrator') && (!$check) ) {
continue;
}



Post Extras: Print Post   Remind Me!   Notify Moderator  
JoshPetAdministrator
The artist formerly known as Mr. Bug
****

Reged: 11/29/01
Posts: 11414
Loc: Charlotte, NC
Re: Beta-[6.3-6.4] Mass Threads Move for 6.3 [Re: Sheall]
      #113057 - 05/11/04 09:48 PM

Normal functionality in Threads is that a moderator can move posts to any forum that they can WRITE to. They don't have to be moderators in the forum they are moving TO. The move function in threads works the same way. Thus the moderator of a forum can move posts OUT of their forum to the correct forum.

--------------------
Josh - Joshua PettitWebsite - For Hire Coding work and Modifications

Feel Better, Look younger - www.BuyTransD.com
Use Coupon Code 1004 to Save $20 Off Your Initial Order of Trans-D Tropin


Post Extras: Print Post   Remind Me!   Notify Moderator  
fofas
Lurker


Reged: 09/30/05
Posts: 3
Re: Beta-[6.3-6.4] Mass Threads Move for 6.3 [Re: JoshPet]
      #130115 - 10/25/06 08:27 AM

Sehr hilfreich / very useful

THX

--------------------
Schnäppchenshop (EDV, Büro und Schule)


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 18 anonymous users are browsing this forum.

Moderator:  JoshPet, Gardener, Ian_W, Anno 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating: *****
Topic views: 7964

Rate this topic

Jump to
 
Hot Topic
No posts have caught fire as of yet.

Developers for Hire
Are you looking for custom modifications? Upgrades? Installs?
We have developers who can help!
View Our Services Page for information.

Login
Enter your username and password to login. If you do not have a username you can register one HERE.
username:
password:

Send Password
Remember Me

Online
119 guests have been online with in the last 90 minutes.

ThreadsDev.com
Trans-D Tropin

Current Threads
No current threads found...

Modifications
Recently Added:
· View Private Messages v0.9.3
· Stop Guests from seeing "Who's Online." [6.5.5]
· User List Display Limited by Post Count 1.0
· Paginate PMs 1.0
· Today and Yesterday

Most Downloaded:
· Inline Images 3.1
· Quote Username 1.0
· Games Arcade Deluxe v1.8
· UbbThreads and Photopost Total Integration Version 4
· Tool Tip Body Preview 3.0

Highest Rated:
· Mass Threads Move for 6.3
· Update Last Posts 1.0
· Update B_Parent User 1.0
· Integrated Index Page (IIP) 5.3.1
· IIP SideBarPal 1.1

Recent Stylesheets:
· Mix-Colors_2-0_3D for UBBT v6.3 - 6.5
· Mix-Colors_2-0 for UBBT v6.3 - 6.5
· Dark-Grey_3-0 for UBBT v6.3 - 6.5
· Green-Orange_1-0 for UBBT v6.3 - 6.5
· ebay_1-0 for UBBT v6.3 - 6.5

Recent Template Mods:
· Postlist modification - line separates new topics and replies
· I need some help with my postlist.tmpl file
· Edit, reply, and quote buttons mod for Facelift 6.5
· Google Add Sense add on for Threads 6.5
· Article templates for Thread 6.5

Shout Box

Short Stats
New Members:
4 Last 24 hours
20 Last 7 days
107 Last 31 days

Boards:
11676 Total topics
73324 Total replies

Totals:
5728 Members
85000 Posts

Max Online:
814 Total
(06/01/06 09:46 AM)


Web Hosting Provided by
VertexHost Web Hosting

Content ©2003-2006 ThreadsDev.NET
Powered By UBB.threads™ 6.5.5

 .: IIP 5.5 by David Lozier ©2003 :. 
Distributed by ThreadsDev.net

Visit Our Sister Sites!
JoshuaPettit.com and ThreadsAddons.com
Web Hosting Provided by
VertexHost Web Hosting

Generated in 0.483 seconds in which 0.456 seconds were spent on a total of 26 queries. Zlib compression enabled.


Whiplash Claims - Gold Necklace - Whiplash - Jewellery