|
|
#1 |
|
Member
Join Date: Mar 2007
Posts: 51
Rep Power: 12 ![]() |
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'];
}
?>
|
|
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,356
Rep Power: 125 ![]() |
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 |
|
|
|
|
|
#3 |
|
Member
Join Date: Mar 2007
Posts: 51
Rep Power: 12 ![]() |
That did the trick.
Thanks for your help again. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |