Closed (fixed)
Project:
Classified Ads
Version:
5.x-1.5-8
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2008 at 02:09 UTC
Updated:
2 Oct 2009 at 11:51 UTC
I need to know the tables, and fields and how to insert ads using an external php script please.
Comments
Comment #1
mcurry commentedI presume that you are capable of reading PHP code, since you are going to be using PHP to insert ads. The mysql queries and other information you need to do these operations may be found in the main ed_classified.module file.
In general, you will need to understand Drupal's node extension system - this ed_classified manages only the extra data fields, which are associated with a standard Drupal node. I cannot offer you much help with this, except to point you at the standard documentation on custom content types and node data load/insert.
http://drupal.org/node/132845
http://api.drupal.org/api/function/hook_load/5
http://api.drupal.org/api/function/hook_insert/5
Good luck on your quest!
Comment #2
bunset commentedThanks, good idea, I can start to understand too the modules structure, after the next step will be write my first module
;)