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 - 3:26 pm

Please add me in the list of people eagerly waiting for this feature to be implemented.

 

Also since it's not going to make in 4.2 release as well can I get some kind of guidance here if I want to implement it on my own may be using sf-hook-template.php.

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

its on the list (as you mentioned)... 4.3 will be tough since its primarily a wp 3.0 compatibility release, but we shall see..

I dont believe there is a way to use the hooks to do this...

best bet would be to do it the db itself or write another script/plugin...

Avatar
Anubhava
Guest
Guests
Feb 7, 2010 - 3:47 pm

Thanks a lot for your quick reply Mr Papa.

 

Alright writing a plugin to SPF might not be a bad idea. Although I don't know at present the structure of SPF plugins. Is there an example somewhere in downloaded files?

 

I have taken a look at wp_sf tables and looks like it is quite doable (at least in theory).

 

Here is how I am thinking of doing it.

  1. Through sf-hook-template.php at the top of every post provide a link "Move this post to another topic" if current user is admin (not sure if I can check current user's access level in hooks file though).
  2. Display a separate form (if current user has admin access) with 2 drop-downs: Forums and Topics
  3. Topic drop-down will be populated based on selected Forum from drop-down 1
  4. Once admin selects a Forum and Topic and clicks on Confirm button concerned post will be moved through a SQL query. In SQL I believe I just need to update topic_id field of a post row in wp_sfposts table.

Regards.

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

the mechanics are not hard. in fact, andy and I were just discussing it...

so you only want to move a single post to new topic? we are discussing two options: moving post to new topic or moving post and all posts that follow to new topic...

you will need to update both the topic and the post involved.

Avatar
Anubhava
Guest
Guests
Feb 7, 2010 - 4:02 pm

Right now I just want to move a single topic to an existing topic.

 

Thanks.

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

single topic to existing topic?? you mean single post?

Avatar
Anubhava
Guest
Guests
Feb 7, 2010 - 4:11 pm

My apologies.

 

I just want to move a single post to an existing topic.

 

Thanks.

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

you can already do that... in the admin tools... but it has to be to a new topic...

Avatar
Anubhava
Guest
Guests
Feb 7, 2010 - 4:20 pm

Right moving a single post to a new topic option I know.

 

But our admins want to move a single post to an existing topic because many users post in wrong topics.

 

Thanks.

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

now that is problematic... and is in the list too, but it is going to confuse folks... because posts are not sorted by date order.. they are sorted by post id... this is a GREAT time and resource savings in forum execution... and for within a topic, they are the same thing really...

however, when we start moving posts from one topic to another existing topic, the sort order may appear to look odd to people and may appear out of order...

so, back to your hook idea... you will have to update the post and both topics...

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