TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

June 26, 2024, 09:02:26 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,280
  • Total Topics: 21,227
  • Online today: 319
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 278
  • Total: 278

Ads?

Started by JCphotog, January 11, 2007, 03:34:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JCphotog

I'm curious what you guys do for ads?  I've been using phpadsnew, but I'm having problems with flash banners and IE along with issues getting an invocation code to work with tiny portal's blocks.  Do you guys run ads on your forums?  Do you use phpadsnew, http://custom.simplemachines.org/mods/index.php?mod=255 , or something else?  I'd love some insight on the issue. 

I don't want to go with adsense, but I would like to give a few thank you banners to people that support the site...

rebelrose

The ad Management mod is nice and gives you many options as to where to place ads, you can also place a few thank you banners in blocks as well.

But the mod might be your best bet.

JCphotog

Cool.  It sounds good.. :)  Are there many additions to templates outside of the default template?

rebelrose

no not that I recall, are you using the default theme?

Ianedres

Quote from: JCphotog on January 11, 2007, 03:34:59 AM
I'm curious what you guys do for ads?  I've been using phpadsnew, but I'm having problems with flash banners and IE along with issues getting an invocation code to work with tiny portal's blocks.  Do you guys run ads on your forums?  Do you use phpadsnew, http://custom.simplemachines.org/mods/index.php?mod=255 , or something else?  I'd love some insight on the issue.

I use phpadsnew on my site. Although I am not using any flash ads, I have not had any problems with phpadsnew in TP using other types of ads.

I've actually created a few blocks that, based on membergroups, displays a prompt to register through an intersitial ad with a graphic to unregistered users. That could easily be changed to 'thanks' and so forth.

JCphotog

Neat.  I'd like to hear more about how you did that.  What does your invocation code look like to get an ad to show in the side bar?  I had troubles with both the php and remote java code supplied by the script... Which version are you running?

Ianedres

For the registration prompt, I first set up an interstitial ad through phpadsnew in the Geocities-style. I copied the invocation code to the clipboard and then move over to TP's admin panel for blocks.

I added a new scriptbox (very important to use that versus anything else!) to TP. In the body section, I paste only the invocation code from the clipboard. Set the permissions for what groups you want to see (or not see) the ad. Save the block and activate it in the block manager menu.

Now, once you reload your site's page, it should follow your set permissions when to display the interstitial ad.

One caveat: As admin, TP defaults to displaying the block, regardless of permissions- which means, in my case, a registration prompt on every page load.

If you're having problems, the first step is to copy the invocation code to a .htm or .php file and place it on your server. Enter the address into your browser and verify that the ad is being displayed through phpadsnew.

I am using SMF 1.1.1, TP 0.9.7, and phpadsnew 2.0.9 pr1. My site is www.bayoumx.com if you wish to see it work.

JCphotog

Yeah.  That's what I'm trying to do.  No go for me.  I'm using the same code that functions in my template, and it doesn't resolve in a TP block.  Can you post your code.  Also I went to check your site out and got an error: Board structure corrupt: unable to find parent board  I hope everything is ok..


Ianedres

Quote from: JCphotog on January 12, 2007, 01:58:02 PM
Yeah.  That's what I'm trying to do.  No go for me.  I'm using the same code that functions in my template, and it doesn't resolve in a TP block.  Can you post your code.  Also I went to check your site out and got an error: Board structure corrupt: unable to find parent board  I hope everything is ok..

My board's error was from the RSS Feed Post mod; corrected with a backup copy of my index.php. Almost made me puke this morning when it showed up.  :buck2:

Alright.. back to the block code. This is it exactly:



<script language='JavaScript' type='text/javascript' src='http://www.bayoumx.com/adserver/adx.js'></script>
<script language='JavaScript' type='text/javascript' src='http://www.bayoumx.com/adserver/adlayer.php?what=zone:5&target=_self&layerstyle=geocities&align=right&padding=2&closetext=%5BClose%5D'></script>



Double-check your site permissions for the block, use a scriptbox type, and activate it in TP.

You should be able to use the above script code to pull the prompt from my ad server and display on yours.  :coolsmiley:

About the only thing I can think of right now is make sure you are using remote invocation (full paths) instead of the local options.

JCphotog

Cool.  That works to create a pop up.. but I want just a 150 x 300 block.. so I used what's below.  I like how simple your invocation code is.  Where'd you get it?  Can you alter it to be a popup that shows behind the forum page?


<center><script language='JavaScript' type='text/javascript' src='http://www.mysite.com/adserver/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://www.mysite.com/adserver/adjs.php?n=" + phpAds_random);
   document.write ("&what=zone:6");
   document.write ("&exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.mysite.com/adserver/adclick.php?n=a493da71' target='_blank'><img src='http://www.mysite.com/adserver/adview.php?what=zone:6&n=a493da71' border='0' alt=''></a></noscript></center>