Support Forums

Old 01-07-2009, 02:40 PM   #1
Junior Member
 
Join Date: Jan 2009
Posts: 8
Rep Power: 0
pngservices is on a distinguished road
Default openx

anyone get openx to run? i get an error when inputting the code into the layout.tpl ...
pngservices is offline   Reply With Quote
Old 01-07-2009, 02:47 PM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,792
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

If you are using javascript be sure and place it inside literal tags:
{literal}
your code
{/literal}
__________________
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 01-07-2009, 03:04 PM   #3
Junior Member
 
Join Date: Jan 2009
Posts: 8
Rep Power: 0
pngservices is on a distinguished road
Default

Quote:
Originally Posted by Eric Barnes View Post
If you are using javascript be sure and place it inside literal tags:
{literal}
your code
{/literal}
i tried it with that..not getting an error now just getting all the text instead of the banner


PHP Code:
{literal}
<?php
  
//<!--/* OpenX Local Mode Tag v2.6.3 */-->

  
define('MAX_PATH''/home/petra2/public_html/tulsabuyandsell.com/openx');
  if (@include_once(
MAX_PATH '/www/delivery/alocal.php')) {
    if (!isset(
$phpAds_context)) {
      
$phpAds_context = array();
    }
    
$phpAds_raw view_local(''300'''''0'$phpAds_context'');
  }
  echo 
$phpAds_raw['html'];
?>
{/literal}
java code is working..... isnt this php code..wont it run without the literal>?

Last edited by pngservices; 01-07-2009 at 03:08 PM.
pngservices is offline   Reply With Quote
Old 01-07-2009, 03:11 PM   #4
Moderator
 
 
Join Date: Mar 2006
Posts: 4,150
Rep Power: 102
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by pngservices View Post
i tried it with that..not getting an error now just getting all the text instead of the banner


PHP Code:
{literal}
<?php
  
//<!--/* OpenX Local Mode Tag v2.6.3 */-->

  
define('MAX_PATH''/home/petra2/public_html/tulsabuyandsell.com/openx');
  if (@include_once(
MAX_PATH '/www/delivery/alocal.php')) {
    if (!isset(
$phpAds_context)) {
      
$phpAds_context = array();
    }
    
$phpAds_raw view_local(''300'''''0'$phpAds_context'');
  }
  echo 
$phpAds_raw['html'];
?>
{/literal}
java code is working..... isnt this php code..wont it run without the literal>?
Yes, what you have above is php code, you surround that with {php{/php} tags. Surround javascript with {literal}{/literal}
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 01-07-2009, 03:41 PM   #5
Junior Member
 
Join Date: Jan 2009
Posts: 8
Rep Power: 0
pngservices is on a distinguished road
Default

Mmm... php code always gives me an error even in the brackets..anyone actually installed openx..
pngservices is offline   Reply With Quote
Old 01-07-2009, 03:43 PM   #6
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,792
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

I have used it in the past but I always used the javascript method.
__________________
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 01-07-2009, 03:56 PM   #7
Junior Member
 
Join Date: Jan 2009
Posts: 8
Rep Power: 0
pngservices is on a distinguished road
Default

they ads appeared right after your first reply using java..then they just stopped.. must be openx itself. ill just delete and start from scratch.
pngservices 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
Openx messing up logo alignment free2take v4 Modules / Modifications 3 12-21-2008 11:17 AM


All times are GMT -4. The time now is 10:48 AM.


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