|
Joined: May 2002
Posts: 41
User
|
User
Joined: May 2002
Posts: 41 |
Hey... I've really learned a lot about how UBBThreads works by reading here... but there is one thing I cannot figure out for myself. I want to be able to move multiple threads at once. IE:- I want to put check boxes by threads so that an admin or moderator can move them by ticking the box and then clicking a button. Any ideas?
Last edited by MTO; 06/19/2002 3:03 PM.
|
|
|
|
Joined: May 2002
Posts: 41
User
|
User
Joined: May 2002
Posts: 41 |
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
I've never looked into doing something like this. Has anyone else tried this?
|
|
|
|
Joined: Jan 2002
Posts: 218
Enthusiast
|
Enthusiast
Joined: Jan 2002
Posts: 218 |
No, but the functionality exists in ikonboard which may provide a starting ground. In addition to this, what I would like to see is the ability to move a thread and have a link remain in the original forum. That is perhaps one functionality that I miss the most.
|
|
|
|
Joined: Mar 2002
Posts: 305
Enthusiast
|
Enthusiast
Joined: Mar 2002
Posts: 305 |
Dave, you'd truly be my hero if you figured this one out. We spend about 5 hours a week moving threads into archive forums.
[:"red"]Lisa[/]
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
I still have to get to work on the auto archive thingie for this.. lol but I'll put it on my list of things to kill time with.
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
I been kinda looking at this. The hardest part that I can see is figuring out the number of posts that were moved and updating the "from" board and "to" board's thread/post count. Edit: And other information needs to be updated as well. The board's "last post" information will need to be figured out. Also, I just looked and the regular "move one at a time" route wont move threads with unapproved posts in them so I wont either.
Last edited by JustDave; 06/17/2002 9:13 PM.
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
I been working on this here and there. So far I have modified: menu.php (added "Move threads" option in Post Managment) chooseforum.php (follows through with the menu link options) I have created: viewmovethreads.php (displays list of threads available to move that was selected from choosforum.php and allows selection of target board to move to) Still working on: doviewmovethreads.php (will do the actual moving of the threads) When finished this will be located and accessed from the admin area. This is sort of related to the auto-archival system I wanted to make so it's helping me figure out how to go about it. LoL
|
|
|
|
Joined: Jan 2002
Posts: 218
Enthusiast
|
Enthusiast
Joined: Jan 2002
Posts: 218 |
posted by JustDave: This is sort of related to the auto-archival system I wanted to make so it's helping me figure out how to go about it. LoL
Excellent! That is one hack that I'm really looking forward to.
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Dave you're a Threads maniac!
|
|
|
|
Joined: Jun 2002
Posts: 62
Power User
|
Power User
Joined: Jun 2002
Posts: 62 |
I can' wait either. It will be usefull on my board also
|
|
|
|
Joined: Mar 2002
Posts: 305
Enthusiast
|
Enthusiast
Joined: Mar 2002
Posts: 305 |
[]but I'll put it on my list of things to kill time with I know you're very busy, and I truly appreciate all the hacks you've put up for us. However I just wanted to mention that our mods have offered to send you cookies if you get this completed.
Last edited by Lisa_P; 06/24/2002 11:38 AM.
[:"red"]Lisa[/]
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
I've been killing time. I have this modification working, as far as I can tell. I have messed a few things up (thread/post count per board) on my test site but I think I got that licked now... LoL I have one or two changes to make and then I'll start putting together the instructions. Once done I'll send the zip file to you for testing on your test site. (When I see my name all over my test site it is hard to know if something is not being done correctly... lol) Edit Note: I still had a few glitches with thread/post counts but they are fixed now. The script only lists the last 20 threads of the selected "from board" that can be moved to the "to board". I'll be adding a "Next" button to select the next 20 threads from the "from board". I suppose a "Back" button would be handy too. LoL Also note, this script will move ALL posts including unapproved ones. (was way to hard otherwise) Now the moderator in the "to board" will have to approve them. (or that's how I think it will work) LoL More to come.
Last edited by JustDave; 06/30/2002 2:29 AM.
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
[] In addition to this, what I would like to see is the ability to move a thread and have a link remain in the original forum.
After monkeying with this "move many threads" script I can see how one would go about leaving a link. I think 4 new fields would be needed in w3t_Posts.
B_MovedTo (stores the board keyword that the post was moved to) B_MovedBy (stores the name of ther user that moved it) B_MovedOn (stores when it was moved) B_MovedNum (stores the number of the post that was moved)
When a post is moved a new post is made in the "from" forum to mirror the information of the post being moved.
Then as postlist.php cycles through the posts for the current forum and it runs accross posts that contain data in the above fields it would list the subject link and substitute board and post number with B_MovedTo and B_MovedNum information.
Also, I think some sort of note in the subject area should be displayed saying the post was moved. (post moved by JustDave on 06/29/02 11:35 PM)
Things like thread/post count should not be affected by "marker posts" though. (my opinion)
I believe that the "marker posts" is something that Rick has plans on developing in the future so I don't think I'll be doing anything with this.
|
|
|
|
Joined: Mar 2002
Posts: 305
Enthusiast
|
Enthusiast
Joined: Mar 2002
Posts: 305 |
That's just awesome. We're ready when you are! I know the feeling with the testing -- our mods think I'm joking when I say I've been talking with myself so much, just making test post after test post, that it's beginning to frighten me. Thank you a hundred times for all the work you've put into this.
[:"red"]Lisa[/]
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
I'm putting in "select all" and "unselect all" buttons right now. I should have this finished soon. (trying to make navigation and use as easy as possible)
|
|
|
|
Joined: Jan 2002
Posts: 218
Enthusiast
|
Enthusiast
Joined: Jan 2002
Posts: 218 |
Sounds great Dave! Do you ever sleep.
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
I sent you the zip via email. (from your profile) Let me know if it seems to be working so I can post it for everyone.
|
|
|
|
Joined: Mar 2002
Posts: 305
Enthusiast
|
Enthusiast
Joined: Mar 2002
Posts: 305 |
I got it -- thank you! I just got it up and it certainly seems to work! I feel like a kid in a candy store! We've wanted this for SOOO long! I absolutely hate typing this, because I'm thrilled with it the way it is, but . . . it would be much more useful if you could sort by the categories (sort by date, descending, ascending, by subject, etc. -- like the postlist page works.) There are times when we want to move all posts before a certain date, or there are times when we open a new forum and transfer some of the threads to it since they are more relavent in the new forum. If that's just impossible to do (or not worth the effort ), I'd think it would be better to sort the threads by ascending date, instead of descending date. It's usually the earlier threads that need to be moved first. Regardless, it's great.
[:"red"]Lisa[/]
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
hehe thanks for the insight. I don't use my boards like a regular .threads owner so letting me know how you use them and how you would want a script to work helps. I'll see if I can get everything in you mentioned and get this out tonight still. I'll send you the zip when I have the updates installed.
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
Ok I think I have the script as close to the postlist.php functionality as possible. Let me know what you think and if it's safe to post the zip file. LoL
|
|
|
|
Joined: Mar 2002
Posts: 305
Enthusiast
|
Enthusiast
Joined: Mar 2002
Posts: 305 |
I've checked for every scerio I could think of that you might not have thought of, and I haven't come up with a darn thing! I checked for whether the forum totals increased/decreased correctly and they seem to, I checked if mods could see any boards to move to/from that they didn't have access to and they can't. It even sets the forum total at 0 if you move all the threads out -- there is currently a bug in 6.0.1 that doesn't set it to zero if you delete all the threads -- so you even improved on that! This is a marvelous piece of work. We're going to have to dedicate a page on our site to you Dave. I just got your new email -- back in a few!
[:"red"]Lisa[/]
|
|
|
|
Joined: Mar 2002
Posts: 305
Enthusiast
|
Enthusiast
Joined: Mar 2002
Posts: 305 |
It's perfect! Absolutely perfect! The only thing I changed is that I added the menu link in both the admin and mod section. [:"red"]YAY!!![/] I'm really torn trying to decide if IIP or this is your greatest work. I feel like a kid in a candy store, I put a copy of our database on an empty database we had, and I've just been moving stuff from here to there and back again. THANK YOU VERY MUCH!
[:"red"]Lisa[/]
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
Addict
Joined: Apr 2002
Posts: 1,768 |
That might be overkill. When moving a post, wouldn't it would be sufficient to simply replace the body of the moved post with something like this? code: This post moved to <a href=...>xyz board</a>
The "..." represents the URL of the new post's location. Is there really any need to add more info to the database?
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
posted by Lisa_P: It's perfect! Absolutely perfect! The only thing I changed is that I added the menu link in both the admin and mod section.
[:"red"]YAY!!![/] I'm really torn trying to decide if IIP or this is your greatest work.
I feel like a kid in a candy store, I put a copy of our database on an empty database we had, and I've just been moving stuff from here to there and back again.
THANK YOU VERY MUCH!
Your Welcome I added instructions to add to the moderator menu also as an option. Thanks. I have posted this addon here.
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
The problem is that in order to point to the post being moved you need to know it's post number (B_Number) which it already has so thats easy. If you use the same post (and therefore post number) to store the information as to where the post was moved to you end up needing to make a new post to hold the old information and then need to get the new post's post number so you can point to it. You could even have the marker post's B_Posted timestamp set to the same as the post it replaced so it isn't bumped up on the list. I figured it would be easier to have the postlist.php actually link to the location rather than loading showflat.php or showthreaded.php only to find that you need to look elsewhere. (one less step) Also, adding the additional fields will allow for having searches being able to skip "marker posts" so users dont end up hopping around to find what they are looking for. I dunno... was just some thoughts. LoL but I know that I do tend to overkill things more often than underkill. LoL Edit Note: Oh and another thing... lol Having additional fields, or at least one of them, would allow for the marker posts to be singled out for expiration at a set time. (after everyone know's the post has been moved, how ever long that is)
Last edited by JustDave; 06/30/2002 6:06 PM.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 69
Joined: January 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|