News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Ad Management mod

Started by SMFHacks.com Team, January 30, 2006, 08:41:19 PM

Previous topic - Next topic

jerm

Quote from: Prasad007 on February 02, 2006, 12:48:30 PM
Quote from: electrohome88 on February 02, 2006, 12:46:09 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

Prasad007

Quote from: electrohome88 on February 02, 2006, 01:00:33 PM
Quote from: Prasad007 on February 02, 2006, 12:48:30 PM
Quote from: electrohome88 on February 02, 2006, 12:46:09 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

Prasad007

yes works like a charm! Thank you once again! :) :)

jerm

Quote from: Prasad007 on February 02, 2006, 01:02:20 PM
yes works like a charm! Thank you once again! :) :)


good, glad it worked :)

MrFurious

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:


<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:[email protected]">
      <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:[email protected]";
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>

jerm

nope.. it should work
at a quick glance at your ad code, i think it doesn't close the </a> tag


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

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>');

cnpldotca

how does one make a banner rotation script to use with this mod?

marinelife

I run PHPAdsnews to run mine
This is a great mod, thanks so much

houston

#28
Quote from: d3v on February 01, 2006, 04:01:32 AM
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.

houston

Thanks for the great Mod.    ;D

jerm

Quote from: cnpldotca on February 02, 2006, 03:03:00 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

Quote from: houston on February 02, 2006, 09:41:39 PM
Quote from: d3v on February 01, 2006, 04:01:32 AM
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

marinelife

#31
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

L.G.S

FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


jerm

Quote from: marinelife 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

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

marinelife


L.G.S

I installed fine but the permissions are not added?
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


jerm

did you install this version?
ad_mod_rc2_v1-4.zip

L.G.S

FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


mandos

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

jerm

Quote from: mandos 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

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

Advertisement: