68 Classifieds Forums
Go Back   68 Classifieds Forums > v3.1.x Help & Support > v3.1 Questions & Support > Banner Ads by Openads
v3.1 Questions & Support Help and support for 68 Classifieds v3.1.x

 
Thread Tools Display Modes
(#1)
Old
Grebogreen Grebogreen is offline
Member
Grebogreen is on a distinguished road
 
Posts: 36
Join Date: Apr 2007
Default Banner Ads by Openads - 05-10-2007, 01:23 PM

Not sure wether to laugh or cry.
After installing Openads and wading through the pages of instructions and getting the jist of it, I created the code

<?php
if (@include('/websites/...../phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:1', 0, '', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
?>

Popped it in my home.tpl.php to try it and got

Fatal error: Smarty error: [in home.tpl.php line 26]: syntax error: unidentified token '=' (Smarty_Compiler.class.php, line 1396) in /websites.....on line 1095

Please, please don't tell me I need the developer ver.
Reply With Quote
(#2)
Old
suzkaw suzkaw is offline
Help you, I will.
suzkaw has a spectacular aura about
 
Posts: 1,955
Join Date: Mar 2006
Location: Belmont, NC
Default 05-10-2007, 01:31 PM

Try to use this instead:

PHP Code:
{php}
if (@include(
'/websites/...../phpadsnew.inc.php')) {
if (!isset(
$phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:1', 0, '', '', '0', $phpAds_context);
echo
$phpAds_raw['html'];
}
{/
php}


--
Thanks,
Eric Barnes
68 Classifieds
Documentation - Modifications - My Blog

Reply With Quote
(#3)
Old
suzkaw suzkaw is offline
Help you, I will.
suzkaw has a spectacular aura about
 
Posts: 1,955
Join Date: Mar 2006
Location: Belmont, NC
Default 05-10-2007, 01:32 PM

Here is a link with more information:
http://smarty.php.net/manual/en/lang...nction.php.php


--
Thanks,
Eric Barnes
68 Classifieds
Documentation - Modifications - My Blog

Reply With Quote
(#4)
Old
Grebogreen Grebogreen is offline
Member
Grebogreen is on a distinguished road
 
Posts: 36
Join Date: Apr 2007
Default 05-10-2007, 01:58 PM

Nice one Eric.
Can't see Ad yet but NO Errors.
Now back to that OpenAds Admin page for a couple of hours to get my Ad showing.
Reply With Quote
(#5)
Old
suzkaw suzkaw is offline
Help you, I will.
suzkaw has a spectacular aura about
 
Posts: 1,955
Join Date: Mar 2006
Location: Belmont, NC
Default 05-10-2007, 03:53 PM

I don't know if it makes a difference or not but when I used openads I would always use the javascript invocation code then just wrap {literal} tags around it.


--
Thanks,
Eric Barnes
68 Classifieds
Documentation - Modifications - My Blog

Reply With Quote
(#6)
Old
Mike-N-Tosh Mike-N-Tosh is offline
Senior Member
Mike-N-Tosh will become famous soon enough
 
Posts: 143
Join Date: Jan 2007
Default 05-10-2007, 10:36 PM

I use openads on my site. If you are using php invocation, then heed Eric's last post and wrap the code with the {literal}{/literal}.

You can select what invocation code to use and I use the javascript code instead which is commented out and works just fine with 68c.

just my 2�,
-Mike


Mike-N-Tosh
v3.1.5 Developer

IndianaPC.org

I can what I can and I can't what I can't.
Reply With Quote
(#7)
Old
Grebogreen Grebogreen is offline
Member
Grebogreen is on a distinguished road
 
Posts: 36
Join Date: Apr 2007
Default 05-11-2007, 02:14 AM

Ho no guys, what you doing to me. I managed at the end to get a banner to show but must say that end bit of which code to select was a bit of a mistery. By the time I had got to do the code I was totaly confused, it kept telling me I had no campaigns, then no zones & banners. It seemed like pure luck when I got to the end.
What your saying is, that the javascript is better and I should wrap it up in {literal}'s. Off I go to find out what they are, I've never done so much reading.
Reply With Quote
(#8)
Old
freemls freemls is offline
Junior Member
freemls is on a distinguished road
 
Posts: 9
Join Date: May 2007
Default Banner Ads by Openads - 05-11-2007, 03:59 AM

Hi All I need some help how do I place affilliate ads on the side of my site

I want 4 small ads on the left and right

I am not a programmer and have'nt got a clue how all the code etc work so if any one can help and tell me what goes where and how I will greatlly appreciate it

Here the ad I want to place on the left
<EMBED src= "http://www.offerforge.com/ImageHosting/outsurance/swf/10314206_120x60.swf" FlashVars="ClickTAG=http://za.offerforge.com/z/672/ZA2184/" width="120" height="60" >
<img src='http://za.offerforge.com/42/2184/672' border='0' />



and here the one for on the right

<a href="http://affiliates.trafficsynergy.com/z/979048/CD2193/"><img src="http://affiliates.trafficsynergy.com/42/2193/979048" alt="Home Theatre Systems" border="0"></a>


Can any one please convert it for me with the code I need to place them on my site and tell me where to insert the new converted code

Thanks


Thinus Smith
www.freemls.co.za
Reply With Quote
(#9)
Old
Mike-N-Tosh Mike-N-Tosh is offline
Senior Member
Mike-N-Tosh will become famous soon enough
 
Posts: 143
Join Date: Jan 2007
Default 05-12-2007, 12:15 AM

Quote:
Originally Posted by Grebogreen View Post
Ho no guys, what you doing to me. I managed at the end to get a banner to show but must say that end bit of which code to select was a bit of a mistery. By the time I had got to do the code I was totaly confused, it kept telling me I had no campaigns, then no zones & banners. It seemed like pure luck when I got to the end.
What your saying is, that the javascript is better and I should wrap it up in {literal}'s. Off I go to find out what they are, I've never done so much reading.
Grebogreen,

Sorry, I'm not tring to confuse you. Either type of code will work. To clarify: If you are going to use php for your invocation code, then you need to use {literal} your php code {/literal}
My comment about using javascript code was just a personal preference, because I had less trouble using javascript code. (I use the ad software to serve several different websites). As far as choosing which invocation code to use is actually quite simple. When you get to the point in the openads where you are to generate the code (I believe that it defaults to php code), BUT it is a pull down menu and you can simply choose which type of code you would like for it to generate.

As far a quick reference guide to openads:
There are two parts that are needed to make it work, publishers and advertisers. Quite simply advertisers are the ones that supply the ads and publishers are the ones that supply the websites that the ads are viewed in.

When you are an advertiser and want to place an ad it needs to be in an AD CAMPAIGN. A campaign in lamens terms is simply a name for what your advertising. So you could have several ads for a GREAT WIDGET CAMPAIGN, such as an animated flash 468x60 full banner ad, a static full banner ad 468x60 as well as a 125x125 widget ad, etc... If you also sold gadgets as well as widgets, you would want to have a different campaign for gadgets.

A publisher is a website (place to view the ads). A publisher has zones to publish the ads. Zones are simply areas within your website where ads could be placed. It is important, because zones need to have parameters such as the size (you wouldn't want a full banner ad 468x60 showing up in your side column that is only 150 pixels wide). Other parameters might be that on one page that is for horses, you might only want horse ads and not widget ads.

A basic classifieds ad website might have two zones. Top banner ad (468x60) and a side zone (125x125). Obviously, you could get much more complicated if you wanted to.

Hope that helps,
-Mike


Mike-N-Tosh
v3.1.5 Developer

IndianaPC.org

I can what I can and I can't what I can't.
Reply With Quote


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Banner Exchanging Kateedyd Off Topic 2 05-06-2007 04:20 PM
FABULOUS!!! Banner Mod! alisa v3.1 Modifications 0 05-05-2007 07:49 AM
Display Banner in one Category BABBSELA v3.1 Questions & Support 3 02-10-2007 02:22 PM
Updated - maffo banner mod Maffo v3.1 Questions & Support 4 01-25-2007 12:35 PM
adding a simple banner rotator From old forum calaf6 v3.0 Modifications 0 03-30-2006 04:47 PM



Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com