<?php /* Class Name: your custom name Description: Import ads ffor blah blah blah Version: 0.001 Author: Your name Author URI: http://www.if yo want */ /* */ class somename { function dispatch() { $query="SELECT * FROM DATABASE"; $itemRS = mysql_query($query); list($posttitle,$postdescription,$postcategory,$user etc....) = mysql_fetch_row($itemRS); For each post create user and if user does not exist create one Create post Add post meta if any } function somename() { // Nothing. } } $kachavadom = new kachavadom(); register_importer('kachavadom', 'KACHAVADOM.COM', __('Import ads from kachavadom.com'), array ($kachavadom, 'dispatch')); ?>
There are currently 1 users browsing this thread. (0 members and 1 guests)