196
I have an ASP script I was using on an old site. The
purpose of the script was to allow a user to post a
classified ad into my system while at the same time, taking
the text and posting it to various other classified ad
websites that I defined.
The ASP script isn't really that complicated once you see
what it's doing. Basically it takes information posted and
parses it according to the site it's going to.
Say I have 3 other sites defined. The items I define are:
Site address: regular url to website
Login Address: Site to log in (if needed)
Login ID: Name to log in with (if login address>"")
Login PW: Password to send (again only if needed)
Post Address: specific URL to post classified info to
SuccessString: the string to look for in the resulting page
after the submit to see if the ad was posted correctly.
All of the following use the information from the ad they
submitted if it's available otherwise it uses a default
value defined on a site-by-site basis. This is because one
site might require phone # to be (555)555-5555 and another
might want it in the format: 5555555555
Name: user's name
Phone: user's phone # if on the ad
Title: title of ad
Description: body of ad & a footer defined by me
URL: Classified URL if available, user's URL if available,
website address at my site where ad details can be displayed
(first available in this order)
Photo URL: if available
and a few others perhaps..
So I see it as needing to be set up with:
Table: xoops_sites
Fields: SID (site ID), Title, URL, LoginURL, Login, Pass,
PostURL, SuccessString
Table: xoops_sites_variables
Fields: SID, SiteField (the field name on the destination
website's form), SourceField (the field name on my
classified submission form, if any), DefaultValue (the
default value to use if no source field is supplied or
sourcefield submitted is empty).
Maybe a history table recording what ads were submitted
where and if they were successful or not.
I'm a decent ASP script writer but I lack the skill with PHP
to accomplish this. Help. ;)
If anyone is interested in helping I can send you the ASP
script I was using (that worked). I'll attach the script
later when I have access to it.