Posted on: 09/21/06 01:05am
By: Anonymous (Muna)
I would like to create a php block for the following code, am quite new to PHP and HTML and would be happy if you help me with the block function to add into my lib-common.php
<?php
if (@include(getenv('DOCUMENT_ROOT').'/adverts/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('', 4, '_self', 'Frontpage', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
?>
Creating PHP Block
Posted on: 09/21/06 03:03am
By: Robin
Looking at the code it looks like you are using phpadsnew. AFAIK you cen generate HTML/JS code with ads. Therefore there is no need for a php block. You can use normal block for ads rotation.
Hope that helps,
Robert
Creating PHP Block
Posted on: 09/21/06 07:19am
By: Anonymous (Muna)
How do i generate HTML/JS with phpadsnew?
Creating PHP Block
Posted on: 09/21/06 08:27am
By: Robin
[QUOTE BY= Muna] How do i generate HTML/JS with phpadsnew?[/QUOTE]
That's a good question to be posted at their forum
Also there's an excellent User Guide available.
There are few steps before you generate the banner code. You have to setup advertizers, zones, campaigns, etc. When all of this is done then you generate the banner code to be used at a site.
Hope that helps,
Robert