Ad Manager?? Does any one know how to set one of these up? So it works?

Posted on 2001-06-13
Last Modified: 2010-05-18
Below is a tool to generate:
Log AdViews    
Log AdClicks

This is what the manual said.....

Welcome to the banner ad server setup page. This page will allow you to configure the ad server for use on your website. Once your server has been properly set up, you will be able to place rotating banner advertisements on your website, which is a great way to generate revenue!

To include rotating banners on your page, it must have the extension .phtml For example, if you wanted a banner on the first page of your website, you would call the file index.phtml. In the space below is the code for a simple page which includes banner rotation. The lines printed in green are required for your ad server to operate correctly.


The view() is the command that you should place wherever you want the actual banner to appear. The syntax used above should be fine for most uses. However, for advanced users, here is a detailed description of the view() tag and it's options:

string view (mixed what [, int clientID [, string target [, bool withText = 0]]]);
The argument "what" is currently one of the following:
[int]: Display the banner with this bannerID. Example: view(1);
"[width]x[height]: Display a randomly selected banner with this width/height. Example: view("468x60");
"html": Display a randomly selected HTML-banner
"[keyword]": Display a randomly selected banner with this keyword associated to it. Example: view("maingroup");
Note: Banners with the special keyword "global" associated to them, are also considered when using this syntax.

The optional argument clientID allows you to retrieve only banners by a specific client. Specify "" to view banners from all clients (in case you need the third or fourth argument, else don't specify it at all). Example: view("468x60", 1).
The optional argument "target" allows you to specify a frame target (may be one of "[framename]", "_blank", "_parent" and "_top"). Example: view("maingroup", 0, "_blank");
The optional argument withText allows you to show a banner with its associated line of text below it (for example, "Support our sponsor" is a common line of text). Example: view("maingroup", "", "", 1);
Some examples:

view(1); - Displays the banner with the bannerID of 1.
view("html"); - Displays a randomly selected HTML banner
view("468x60", 0, "_blank"); - Displays a randomly selected banner with a width of 468 pixels and a height of 60 pixels. If user clicks on it, the target destination will be opened in a new window.
view("Websites/Business/New_Media/"); - Displays a randomly selected banner from the group "Websites/Business/New_Media/" (in other words: with that keyword).


Question by:Danielson
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

ykf2000 earned 25 total points
ID: 6189665

put this two files

in a directory named adserver and it should be working
LVL 40

Expert Comment

by:Richard Quadling
ID: 6190067
You have NOT specified a absolute path, only a relative one.

You will have a problem if you load PHP files from a directory that does not contain the adserver directory.

Personally speaking, for all includes, I use the DOCUMENT_ROOT server variable.

This way, I always know where I am (metaphorically speaking! When I want to REALLY know where I am, I look out of the window and hope I recognise something!).


Put the two files in the adserver directory, but amend the code to something like ...

  require($HTTP_SERVER_VARS['DOCUMENT_ROOT'] . "/adserver/");
  require($HTTP_SERVER_VARS['DOCUMENT_ROOT'] . "/adserver/");

Something you might like to do is this!

  require($HTTP_SERVER_VARS['DOCUMENT_ROOT'] . "/../adserver/");
  require($HTTP_SERVER_VARS['DOCUMENT_ROOT'] . "/../adserver/");

and put the adserver directory parallel to the document directory (public_html, web, etc).

This way, users are NOT able to browese the files!

I use this method to store my database info files.

They are only accessible via FTP, not via HTTP!


Expert Comment

ID: 6419186
It's time to clean up this topic area and that means taking care of this question. Your options at this point are:

1. Award points to the Expert who provided an answer, or who helped you most. Do this by clicking on the "Accept Comment as Answer" button that lies above and to the right of the appropriate expert's name.

2. PAQ the question because the information might be useful to others, but was not useful to you. To use this option, you must state why the question is no longer useful to you, and the experts need to let me know if they feel that you're being unfair.

3.  Ask Community Support to help split points between participating experts.  Just comment here with details.

4.  Delete the question because it is of no value to you or to anyone else.  To use this option, you must state why the question is no longer useful to you, and the experts need to let me know if they feel that you're being unfair.

If you elect for option 2, 3 or 4, just post comment with details here and I'll take it from there.  We also request that you review any other open questions you might have and update/close them.  Display all your question history from your Member Profile to view details.



Hi Experts:

In the event that the Asker does not respond, I would very much appreciate your opinions as to which Expert ought to receive points (if any) as a result of this question.  Likewise, you can also suggest that I PAQ or delete the question.

Experts, please do not add further "answer" information to this question.  I will be back in about one week to finalize this question.

Thank you everyone.

Moondancer :)
Community Support Moderator @ Experts Exchange

P.S.  REGARDING POINTS, Guidelines and more:  
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 6929793
What would you like done with this old, open question?
Moondancer - EE Moderator

Expert Comment

ID: 6930224
In the attempt to help clean up abandoned Questions, I will ask Community Support to close this Question. Unless there is objection or further activity, I will suggest to split points between RQuadling & ykf2000 as soon as possible.

If you think your question was not answered at all, you can post a request in Community support (please
include this link) to refund your points.
The link to the Community Support area is:

Please do not accept this comment as an answer!


Expert Comment

ID: 6934799
Thank you.

Points have been split and transactions will be complete when comments are added by RQuadling in the following question.

Points for RQuadling

Moondancer - EE Moderator

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question