Support Forums

Old 09-12-2007, 11:30 AM   #1
Member
 
Join Date: Mar 2007
Posts: 51
Rep Power: 12
goose is on a distinguished road
Default Need help inserting Openads.org button ads

I set up a right hand column for Openads.org button ads. There is a bug with the software that won't let me use the javascript invocation code.

I was told I need to insert the Local Mode Tag into a PHP file which will deliver the output to the smarty template.

Anyone know how to put the code below into a php file to work with smarty?

Code:
<!--/* Openads Local Mode Tag v2.4.0 */-->
<?php
  // The MAX_PATH below should point to the base of your Openads installation
  define('MAX_PATH', '/home/public_html/advertising');
  if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) {
    if (!isset($phpAds_context)) {
      $phpAds_context = array();
    }
    $phpAds_raw = view_local('', 2, 0, 0, '', '', '0', $phpAds_context);
    echo $phpAds_raw['html'];
  }
?>
goose is offline   Reply With Quote
Old 09-12-2007, 11:34 AM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,356
Rep Power: 125
Eric Barnes is a jewel in the rough
Default

I haven't tried this but I believe you can insert it directly into the template file with Smarty's php tag. For example:
Code:
{php}
// The MAX_PATH below should point to the base of your Openads installation
  define('MAX_PATH', '/home/public_html/advertising');
  if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) {
    if (!isset($phpAds_context)) {
      $phpAds_context = array();
    }
    $phpAds_raw = view_local('', 2, 0, 0, '', '', '0', $phpAds_context);
    echo $phpAds_raw['html'];
  }
{/php}
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 09-12-2007, 11:44 AM   #3
Member
 
Join Date: Mar 2007
Posts: 51
Rep Power: 12
goose is on a distinguished road
Default

That did the trick.

Thanks for your help again.
goose is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modifying "Search" Button spaceboy v3.1 Modules & Modifications 6 02-27-2008 11:55 PM
Info button in Browse Users area doesn't work twlada v3.1 Questions & Support 2 02-10-2007 04:01 PM
Image as search button spaceboy v3.1 Questions & Support 1 09-09-2006 05:21 PM
favorites button. wel-usa v3.1 Questions & Support 5 07-17-2006 09:44 PM
Back Button Erases Previous Page Content garysmith v3.0 Questions & Support 0 04-13-2006 08:22 AM


All times are GMT -4. The time now is 07:19 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0