Support Forum
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...
Visit Cruise Talk Central and Mr Papa's World
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.
- 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).
- Display a separate form (if current user has admin access) with 2 drop-downs: Forums and Topics
- Topic drop-down will be populated based on selected Forum from drop-down 1
- 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.
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.
Visit Cruise Talk Central and Mr Papa's World
single topic to existing topic?? you mean single post?
Visit Cruise Talk Central and Mr Papa's World
you can already do that... in the admin tools... but it has to be to a new topic...
Visit Cruise Talk Central and Mr Papa's World
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...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)