Example

The example above retrieves information about all hosted adtools added before April of this year -- but after 10 October 2007. The output is further restricted to adtools that belong to any of the following sites: 2, 4, 5, 6, 9, 10, 11, 12, or 13. Also, any adtool with an adid between 250-344 will be excluded from the results. If you use the Build Your Anything Module (BYOA), this function also considers whether or not the affiliate is authorized to see that particular adtool.

To get the URL of the fifth adtool retrieved by the function, put {$fhg[4].url} in your template.

Extended Example

This code is tabulated to show the flow of the code; if sending text emails, you'll want to remove the tabulation.

Variables in this example:

$program the id of the program you want to be used in affiliate link codes

$sitelist a comma-delimited list of each site you want to show fhgs for

For each of the sites chosen, this code will show first picture galleries, then movie galleries. For each gallery, it will show the date it was added, and the url (with the affiliate's nats code attached).