Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Technical Support    Forum Support  ›  How do you use Ad code box?
Users Browsing Forum
Googlebot, Yahoo! Bot and 1 Guests

How do you use Ad code box?  This thread currently has 1,028 views. Print
2 Pages 1 2 » Recommend Thread
kbruce
March 5, 2007, 5:59pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 20
Posts Per Day: 0.02
Time Online: 9 hours
I'm puzzeled....which is not very hard to do to me  
I do not understand the "Ad code Box" or the "How Many Ad's to Show" box.  in Main Preferences
I have enabled phpadsnew on my site and i want to serve up banners  from supporters.  Any help would be much appreciated.

http://www.sec6.com
Logged Offline
Private Message Private message
Justin
March 5, 2007, 6:17pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,080
Gender: Male
Posts Per Day: 6.43
Reputation: 93.42%
Reputation Score: +298 / -21
Time Online: 37 days 1 hours 12 minutes
Location: Tallassee, AL
Age: 22
Add the ad code, then specify the number of ads to show.  Make sure you aren't selected for a group to not show the ads to.


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 1 - 15
kbruce
March 6, 2007, 8:56pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 20
Posts Per Day: 0.02
Time Online: 9 hours
Here is the code I am putting in the box.

<script language='JavaScript' type='text/javascript' src='http://sec6.com/ads/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
  
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://sec6.com/ads/adjs.php?n=" + phpAds_random);
   document.write ("&amp;what=zone:1");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&amp;referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://sec6.com/ads/adclick.php?n=a46a7d9b' target='_blank'><img src='http://sec6.com/ads/adview.php?what=zone:1&amp;n=a46a7d9b' border='0' alt=''></a></noscript>

I would like to use the php code but i need to use an include page and dont know where to put it
phpadsnew.inc.php

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

The documentation says also The view() function does not work well in template-based websites.
Is it hopeless for me?
Thanks for the help.
PS I also need a forum upgrade
Logged Offline
Private Message Private message Reply: 2 - 15
kbruce
March 7, 2007, 8:07am Report to Moderator Report to Moderator
E-Blah Member
Posts: 20
Posts Per Day: 0.02
Time Online: 9 hours
Ok the Javascript is working but I would really like to use the PHP code

I would like to use the php code but i need to use an include page and dont know where to put it
phpadsnew.inc.php

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

Any way to point me?
Logged Offline
Private Message Private message Reply: 3 - 15
kbruce
March 7, 2007, 10:35am Report to Moderator Report to Moderator
E-Blah Member
Posts: 20
Posts Per Day: 0.02
Time Online: 9 hours
Give me some time and I may have this figured out
I do not need to put the
<?php include("/ads/phpadsnew.inc.php"); ?>
But i do need to name my test page .php instead of html

Now just getting it into eblah ad code
Logged Offline
Private Message Private message Reply: 4 - 15
kbruce
March 7, 2007, 3:32pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 20
Posts Per Day: 0.02
Time Online: 9 hours
PHP is not working , any ideas?
Logged Offline
Private Message Private message Reply: 5 - 15
Justin
March 7, 2007, 4:25pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,080
Gender: Male
Posts Per Day: 6.43
Reputation: 93.42%
Reputation Score: +298 / -21
Time Online: 37 days 1 hours 12 minutes
Location: Tallassee, AL
Age: 22
PHP will never work.

If you need something like that to work, use JavaScript.


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 6 - 15
kbruce
March 7, 2007, 5:45pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 20
Posts Per Day: 0.02
Time Online: 9 hours
Thanks Justin, I do have  Javascript working.
Logged Offline
Private Message Private message Reply: 7 - 15
Nat
March 7, 2007, 7:08pm Report to Moderator Report to Moderator

It's Nice Here :)
Administrator
Posts: 1,640
Gender: Male
Posts Per Day: 0.89
Reputation: 88.89%
Reputation Score: +32 / -4
Time Online: 5 days 10 hours 4 minutes
Location: manchester (UK)
Age: 46
The actual add script need to have a "show" as a javascript


"Thats The Way The Mop Flops"
http://www.motionandheart.co.uk/
Logged Offline
Site Site Private Message Private message Reply: 8 - 15
Justin
March 7, 2007, 9:26pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,080
Gender: Male
Posts Per Day: 6.43
Reputation: 93.42%
Reputation Score: +298 / -21
Time Online: 37 days 1 hours 12 minutes
Location: Tallassee, AL
Age: 22
Quoted from kbruce
Thanks Justin, I do have  Javascript working.


I mean, you can't do PHP, but you can call the php using JavaScript and then return valid JavaScript code.  This is how the things in the Admin Center work.  They could work other ways (server-sided), but that would be senseless.


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 9 - 15
kbruce
March 12, 2007, 2:42pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 20
Posts Per Day: 0.02
Time Online: 9 hours
I am happy with using just the javascript...baby steps for me right now.  
A) I would like to know where to put the javascript code in the header to get a banner to work on the main forum page.
B) The script only works on my first board in the forum. does not pull up banners in 2nd, 3rd or 4th boards. Is there something I need to activate from the admin panel for the other boards?
Logged Offline
Private Message Private message Reply: 10 - 15
Justin
March 12, 2007, 2:52pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,080
Gender: Male
Posts Per Day: 6.43
Reputation: 93.42%
Reputation Score: +298 / -21
Time Online: 37 days 1 hours 12 minutes
Location: Tallassee, AL
Age: 22
What do you mean?  A screen shot would help.


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 11 - 15
kbruce
March 12, 2007, 7:40pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 20
Posts Per Day: 0.02
Time Online: 9 hours
Here you go



This post contains attachments; to download them you must login.

Logged Offline
Private Message Private message Reply: 12 - 15
kbruce
March 12, 2007, 8:09pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 20
Posts Per Day: 0.02
Time Online: 9 hours
Basicly I would like to put my logo and a banner like you have on this forum up there ^  
Logged Offline
Private Message Private message Reply: 13 - 15
Justin
March 12, 2007, 8:27pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,080
Gender: Male
Posts Per Day: 6.43
Reputation: 93.42%
Reputation Score: +298 / -21
Time Online: 37 days 1 hours 12 minutes
Location: Tallassee, AL
Age: 22
Just edit your template, at the top of it add your ad code (somewhere around <blah main>).


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 14 - 15
2 Pages 1 2 » Recommend Thread
Print

E-Blah Community    Technical Support    Forum Support  ›  How do you use Ad code box?