All pastes #207257 Raw Edit

thread importer

public text v1 · immutable
#207257 ·published 2006-10-17 22:16 UTC
rendered paste body
Goals:
Pull the text of the auction via a quote reply
Pull the username or useridnumber from the profile link or both (whatever)
Allow an admin to fix up the errors or split the sale into different sales for multisale items (possibly by splitting them through <!-- split --> tags and a 'review' button, which adds pagination or a longer page to categorize each split item

Additional goal:
Allow users who just signed up to do similar for threads they own

Example thread that needs splitting:
http://forums.somethingawful.com/showthread.php?s=&threadid=2107948

Example singular item thread:
http://forums.somethingawful.com/showthread.php?s=&threadid=2115110

Action for pulling thread as admin:
1) Admin supplies threadid, or postid and userid if coder is sucky
2a) If threadid, pull threadid and look for the first url starting with http://forums.somethingawful.com/member.php?s=&action=getinfo&userid= and pull the number at the end
3a) Hit the first url that looks like this
http://forums.somethingawful.com/newreply.php?s=&action=newreply&postid=
and get the stuff inside the textbox, converting all timg to img if we are using bbcode
4a) go to edit area [to be designed by committee]

2b) If postid, go to http://forums.somethingawful.com/newreply.php?s=&action=newreply&postid=$postid and pull text, editing timg to img
3b) we're to the edit area already