Advertisement:

Author Topic: Ad Management mod 3.2 Released SMF 2.0.x and SMF 1.1.x Support!  (Read 1363940 times)

Offline jerm

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,245
Re: Ad Management mod
« Reply #20 on: February 02, 2006, 01:00:33 PM »
oh, its probably conflicting with another mod or something. i can re-code it to put it in a different spot
okay thanks!

try it out now

Offline Prasad007

  • SMF Hero
  • ******
  • Posts: 1,557
  • Gender: Male
  • JOOMLA AND SMF FAN!!
Re: Ad Management mod
« Reply #21 on: February 02, 2006, 01:01:05 PM »
oh, its probably conflicting with another mod or something. i can re-code it to put it in a different spot
okay thanks!

try it out now
okay. lemme see

Offline Prasad007

  • SMF Hero
  • ******
  • Posts: 1,557
  • Gender: Male
  • JOOMLA AND SMF FAN!!
Re: Ad Management mod
« Reply #22 on: February 02, 2006, 01:02:20 PM »
yes works like a charm! Thank you once again! :) :)

Offline jerm

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,245
Re: Ad Management mod
« Reply #23 on: February 02, 2006, 01:02:55 PM »
yes works like a charm! Thank you once again! :) :)


good, glad it worked :)

Offline MrFurious

  • Semi-Newbie
  • *
  • Posts: 29
Re: Ad Management mod
« Reply #24 on: February 02, 2006, 01:03:45 PM »
Quick trouble-shooting question on this mod.  Every time I put in my ads, it turns everything on thw whole page into a link.  I've checked the coding on my ads and it's all good.  I'm just wondering if the mod isn't compatible with javascript or something as I'm using it for banner rotation.  Hopefully I (we) can get it figured out as this will save me a huge amount of time by not having to put the ads into each and every theme.  Here's a copy of the ad code just incase there's something I'm overlooking that someone else may catch:

Code: [Select]
<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="901" id="AutoNumber1">
    <tr>
      <td width="225" align="center"><a href="http://www.muelleroptics.com" target="_blank"><img src="http://www.savageshooters.net/images/Banners/Sm_Mueller.gif" width="140" height="60" border="0"></a></td>
      <td width="225" align="center"><a href="http://www.sharpshootersupply.com" target="_blank"> <img src="http://www.savageshooters.net/images/Banners/Sm_SSS.jpg" width="140" height="60" border="0"></a></td>
      <td width="225" align="center"><a href="http://www.cpmuzzlebrakes.com" target="_blank"> <img src="http://www.savageshooters.net/images/Banners/CP_MuzzleBrakes.jpg" width="140" height="60" border="0"></a></td>
      <td width="226" align="center"><a href="mailto:briggs.j-b@comcast.net">
      <img src="http://www.savageshooters.net/images/Banners/NorthlandBanner1.gif" width="140" height="60" border="0"></a></td>
    </tr>
  </table>
  </center>
</div>

<div align="center">
<SCRIPT LANGUAGE="JavaScript">

               <!-- Begin
var how_many_ads = 5;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
url="mailto:ngl_services@juno.com";
alt="Nathaniel G. Lambeth Sr - Gunsmith and Custom Ammunition";
banner="http://www.savageshooters.net/images/Banners/Lambeth_Large.gif";
width="468";
height="60";
}
if (ad==2) {
url="http://www.tacticaldynamics.us";
alt="Tactical Dynamics";
banner="http://www.savageshooters.net/images/Banners/TacticalDynamics.gif";
width="468";
height="60";
}
if (ad==3) {
url="http://www.coyotejakes.com";
alt="Coyote Jakes Shooting Benches and Rests";
banner="http://www.savageshooters.net/images/Banners/Lg_CoyoteJakes.gif";
width="468";
height="60";
}
if (ad==4) {
url="http://www.rifle-barrels.com";
alt="Broughton Rifle Barrels";
banner="http://www.savageshooters.net/images/Banners/Lg_Broughton.jpg";
width="468";
height="60";
}
if (ad==5) {
url="http://www.dogbegone.com";
alt="Prairie Dog Be Gone DVD's by Velocity Films";
banner="http://www.savageshooters.net/images/Banners/VelocityFilms.gif";
width="468";
height="60";
}
document.write('<center>');
document.write('<a href=\"' + url + '\" target=\"_top\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0><br>');
document.write('</center>');
// End -->
</SCRIPT>
</div>

Offline jerm

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,245
Re: Ad Management mod
« Reply #25 on: February 02, 2006, 01:07:31 PM »
nope.. it should work
at a quick glance at your ad code, i think it doesn't close the </a> tag

Code: [Select]
document.write('<center>');
document.write('<a href=\"' + url + '\" target=\"_top\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0><br>');
document.write('</center>');

maybe it should look something like
Code: [Select]
document.write('<center>');
document.write('<a href=\"' + url + '\" target=\"_top\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0></a><br>');
document.write('</center>');

note this line: document.write('alt=\"' + alt + '\" border=0></a><br>');

Offline cnpldotca

  • Semi-Newbie
  • *
  • Posts: 72
Re: Ad Management mod
« Reply #26 on: February 02, 2006, 03:03:00 PM »
how does one make a banner rotation script to use with this mod?

Offline marinelife

  • Jr. Member
  • **
  • Posts: 228
Re: Ad Management mod
« Reply #27 on: February 02, 2006, 03:15:57 PM »
I run PHPAdsnews to run mine
This is a great mod, thanks so much

Offline houston

  • Jr. Member
  • **
  • Posts: 149
Re: Ad Management mod
« Reply #28 on: February 02, 2006, 09:41:39 PM »
adsense?

Yes. But you will have to remove the code that you manually inserted if you chose to have the adsense display at the top of each thread. As directed in this thread http://www.simplemachines.org/community/index.php?topic=50984.0.

This mod places the code in exactly the same location.
« Last Edit: February 02, 2006, 09:46:38 PM by houston »

Offline houston

  • Jr. Member
  • **
  • Posts: 149
Re: Ad Management mod
« Reply #29 on: February 02, 2006, 09:47:52 PM »
Thanks for the great Mod.    ;D

Offline jerm

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,245
Re: Ad Management mod
« Reply #30 on: February 02, 2006, 10:03:55 PM »
how does one make a banner rotation script to use with this mod?
as suggested in the next post, you can use phpadsnew.. so im not sure if i will put that functionality into the script.. phpadsnew does a lot of stuff for you.. then just stick in the javascript code it outputs for you

adsense?

Yes. But you will have to remove the code that you manually inserted if you chose to have the adsense display at the top of each thread. As directed in this thread http://www.simplemachines.org/community/index.php?topic=50984.0.

This mod places the code in exactly the same location.

I added the ability to do that in the most current version

Offline marinelife

  • Jr. Member
  • **
  • Posts: 228
Re: Ad Management mod
« Reply #31 on: February 03, 2006, 01:28:06 PM »
Is the version that is downloadable now have all the new features. I downloaded one a few days ago, is that the same as the updated one that is dated feb 2, should I uninstall the one I have and install the one dated feb 2
I am running Ver 1.1RC2 which file should I use that has the lasted features
« Last Edit: February 03, 2006, 01:33:31 PM by marinelife »

Offline L.G.S

  • SMF Hero
  • ******
  • Posts: 2,658
  • Gender: Male
  • RuthlessIntent.com !
    • GamesandGoals.com
Re: Ad Management mod
« Reply #32 on: February 03, 2006, 01:35:39 PM »
Excellent, thanks!
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Offline jerm

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,245
Re: Ad Management mod
« Reply #33 on: February 03, 2006, 01:36:16 PM »
Is the version that is downloadable now have all the new features. I downloaded one a few days ago, is that the same as the updated one that is dated feb 2, should I uninstall the one I have and install the one dated feb 2
I am running Ver 1.1RC2 which file should I use that has the lasted features

you should uninstall the previous version you have, and install ad_mod_rc2_v1-4.zip this version of the mod to get all the new updates

Offline marinelife

  • Jr. Member
  • **
  • Posts: 228
Re: Ad Management mod
« Reply #34 on: February 03, 2006, 01:39:54 PM »
ok sweet thanks

Offline L.G.S

  • SMF Hero
  • ******
  • Posts: 2,658
  • Gender: Male
  • RuthlessIntent.com !
    • GamesandGoals.com
Re: Ad Management mod
« Reply #35 on: February 03, 2006, 03:42:14 PM »
I installed fine but the permissions are not added?
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Offline jerm

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,245
Re: Ad Management mod
« Reply #36 on: February 03, 2006, 03:47:58 PM »
did you install this version?
ad_mod_rc2_v1-4.zip

Offline L.G.S

  • SMF Hero
  • ******
  • Posts: 2,658
  • Gender: Male
  • RuthlessIntent.com !
    • GamesandGoals.com
Re: Ad Management mod
« Reply #37 on: February 03, 2006, 06:01:18 PM »
Ahh thanks  ;)
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Offline mandos

  • Semi-Newbie
  • *
  • Posts: 28
  • Gender: Male
    • TioOnline
Re: Ad Management mod
« Reply #38 on: February 04, 2006, 04:23:23 PM »
i have SMF 1.0.6 and TinyPortal 0.7.5 (TP is the reason i still have SMF 1.0.6 :D )
and i'm afraid it doesn't work
i downloaded the ad_mod_1-0-6_v1.zip (2KB) archive, uploaded to the package manager and once i pressed apply mod it failed modifying ./Themes/default/index.template.php
is TinyPortal the reason? or something else?

thanks in advance

Offline jerm

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,245
Re: Ad Management mod
« Reply #39 on: February 04, 2006, 04:25:01 PM »
i have SMF 1.0.6 and TinyPortal 0.7.5 (TP is the reason i still have SMF 1.0.6 :D )
and i'm afraid it doesn't work
i downloaded the ad_mod_1-0-6_v1.zip (2KB) archive, uploaded to the package manager and once i pressed apply mod it failed modifying ./Themes/default/index.template.php
is TinyPortal the reason? or something else?

thanks in advance

ya its possible..i've never worked with tinyportal before..
it only fails on index.template.php?