Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
requests-topic
Moving posts to another (existing) topic, splitting topics
Avatar
Anubhava
Guest
Guests
Feb 7, 2010 - 4:34 pm

Thanks again for your quick reply.

 

Exactly my thoughts because I also realized that sort order after moving might look odd in the posts display. But I thnk for my admins it is more important to have a post at right topic rather than having this issue.

 

I will update wp_sfposts and wp_sftopics (post_count field needs to be updated and post_id field I believe represents the very last post_id within a topic - so that might also need to be updated depending upon the post selected to move).

 

Thanks.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 7, 2010 - 4:36 pm

You will also need to rebuild the indexes in both topics (old and new). Look in the sf-support.php file for the two 'build_index' functions. You will need to call them both.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Anubhava
Guest
Guests
Feb 7, 2010 - 4:45 pm

You mean 2 build functions in sf-database.php right?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 7, 2010 - 5:06 pm

sf_build_forum_index

and

sf_build_post_index

for each affected one...  and yes, in sf-database.php

Avatar
Anubhava
Guest
Guests
Feb 7, 2010 - 5:14 pm

Thanks that's what I thought. I will copy sf_move_post() function to a new one and make my changes there. That way I can piggyback most of its calls.

 

Many thanks for your help. You guys are awesome.

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 7, 2010 - 6:55 pm

let us know how it goes...

Avatar
Anubhava
Guest
Guests
Feb 21, 2010 - 4:55 pm

Hi SPF Dev Team,

I didn't get much time after posting my previous post but today I got little bit of time to work on it. And I am happy to report that it went very smoothly. My Forum now has this feature of mve post to an existing topic working like a charm. Here is the UI :

 

  1. Admins will now see a new option in Edit Tools (shown as wrench icon

    on top of every post to Admins) called "Move This Post to a Topic".

  2. Once you click on this menu option a small pop-up will open with a

    drop-down list of all the forums.

  3. Select the destination forum and click"Next>"
  4. A new small pop-up will open with a drop-down list of all the

    existing topics within your chosen forum in previous

    step.

  5. If you selected wrong forum in step 3 you can always go back by

    clicking: "<Back"

     

  6. Select the destination topic where you want this post to move and

    click: "Move Poist"

     

  7. A confirmation (or failure if any) message will come up on top of

    the page with the yellow background and whola your post has moved.

PS: Earlier option has been renamed appropriately as "Move This Post

to a New Topic"

 

Thanks for all the help guys to point me to the right direction to build this feature.

cheers.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 21, 2010 - 5:02 pm

So do you re-index both from and to forums and topics because you will need to.
And you must also realise that the post being moved will slot itself into it's new topic sorted on its post id - so sequentially that could end up anywhere...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Anubhava
Guest
Guests
Feb 21, 2010 - 5:41 pm

Yes I do re-index it as suggested by you in previous posts. And yes I do realize that "sort by post it" syndrome but for us it was much more critical to have a post in right topic than a few incorrect post order display issues here & there.

 

Thanks.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 21, 2010 - 6:29 pm

nice work. we have a ticket to consider this in future version too...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625