Welcome to Geeklog, Anonymous Thursday, April 18 2024 @ 07:54 pm EDT

Geeklog Forums

Creating PHP Block


Muna

Anonymous
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
Text Formatted Code
<?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'];
    }
?>

 
 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
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
Geeklog Polish Support Team
 Quote

Muna

Anonymous
How do i generate HTML/JS with phpadsnew?
 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
Quote by Muna: How do i generate HTML/JS with phpadsnew?

That's a good question to be posted at their forum Wink

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
Geeklog Polish Support Team
 Quote

All times are EDT. The time is now 07:54 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content