In my ubbt.inc.php script I added this to the includes:
include("$thispath/ads/phpadsnew.inc.php");
Then I just call this function:
view ('', 2, '', '', '0');
The functioin parameters will vary depending on what is being used. I believe that my phpadsnew version is 1.7 and I am using it with .threads 5.4.6
I don't remember having to modify anything to make it work though. I added it in about 1 year ago (maybe longer) and haven't touched it sense with the exception of adding the include and function calls to each version.
Hope that helps.
