Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SMFHacks.com Team on January 30, 2006, 08:41:19 PM

Title: Ad Management mod
Post by: SMFHacks.com Team on January 30, 2006, 08:41:19 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=255)

<!--
Ad Management Mod
Support site: www.smfads.com

----------
This mod will display ads on various parts of your forum on the default theme in SMF Version 1.1
---------
Version 3.1
+ New easy copyright removal system!

Version 2.3.6 November 15, 2009
- Updated to work with SMF 2.0 RC2

Version 2.3.5 June 09, 2009
- Fixed a database error
- Fixed welcome area colours
- Updated to work with SMF 2.0 RC1-1

Version 2.3.4 Sept 16, 2008
- Updated to work with SMF 2.0 Beta 4

Version 2.3.3 Mar 17, 2008
- Updated to work with SMF 2.0 Beta 3 Public

Version 2.3.2 Jan 27, 2008
- Updated to work with SMF 2.0 Beta 2

Version 2.3.1 Oct 22, 2007
- Updated to work with SMF 2.0 Beta 1.1

Version 2.3 Jan 11, 2007
- New setting: Disable ads for admins
- New setting: Disable reports(one less query)
- New setting: Disable all ads
- New setting: Ability to make post ads not look like posts.
- Added the ability to display ads between categories
- Added the ability to display ads after the last post
- Added the ability to display ads under child boards
- Fixed issues about not finding functions(caused forums to crash)


Version 2.0 Jun 13, 2006
- Enabled per board ads
- Ability to add multiple ads
- HTML/PHP style ads
- Ad reports
- Disabled ads in certain sections of the admin panel
- Many more minor improvments

Version 1.5 Mar 19, 2006
- Fixed an issue with the xml
- Added the ability to display ads on top of the menu on every page
- Added help files
- Revised some of the code in previous versions.

Version 1.4.1 Feb 8, 2006
- Fixed an issue when installing on a forum that has TinyPortal installed

Version 1.4 Feb 2, 2006
- Added the ability to disable ads according to their membergroup.

Version 1.3 Feb 1, 2006
- Updated database settings so that they wont be removed on re-installation.
- Added the ability to display ads on the bottom of every page.
- Added the ability to display an ad after the first post. (Idea courtesy Joomlaspan)

Version 1.2 Jan 30, 2006
- Offically released on simplemachines.org. No offical changes from previous version.


Version 1.0 Jan 5, 2006
- Not publicly released.
- Displayed ads only under the menu bar.
-->

Title: Re: Ad Management mod
Post by: steelsun on January 30, 2006, 11:21:34 PM
Anyone use this yet?
I'd like to see a working example.
Title: Re: Ad Management mod
Post by: street2k on January 31, 2006, 08:14:44 AM
Is this mod compatible with 1.06?
I get this error when I try to install this mod:

Install Actions for archive ad_mod_rc2_v1-2.zip:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: Ad Management mod
Post by: Herman's Mixen on January 31, 2006, 11:26:31 AM
you have to upgrade to 1.1 RC2 forum
Title: Re: Ad Management mod
Post by: jerm on January 31, 2006, 12:26:58 PM
Quote from: street2k on January 31, 2006, 08:14:44 AM
Is this mod compatible with 1.06?
I get this error when I try to install this mod:

Install Actions for archive ad_mod_rc2_v1-2.zip:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Hey,
I have added a version that should work with 1.0.6.
Download this file instead ad_mod_1-0-6_v1.zip
Title: Re: Ad Management mod
Post by: RBH on February 01, 2006, 12:57:13 AM
any chance this could be made to display certain banners in certain boards or does it do that?
Title: Re: Ad Management mod
Post by: desistyle on February 01, 2006, 03:11:31 AM
wow dude what a mod this is so great wow this is so awesomeeeeeeee wow too good
Title: Re: Ad Management mod
Post by: d3v on February 01, 2006, 04:01:32 AM
adsense?
Title: Re: Ad Management mod
Post by: BadCluster on February 01, 2006, 06:45:00 AM
i upload the mod as a zip file and try to install it,
before that i made everything '777' rights in the package folder and when i try to install it i get this error

"An Error Has Occurred!   
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!
Title: Re: Ad Management mod
Post by: jerm on February 01, 2006, 06:14:10 PM
Quote from: RBH on February 01, 2006, 12:57:13 AM
any chance this could be made to display certain banners in certain boards or does it do that?
i hadn't thought of doing that. i have a few other things i want to add to this mod. if possible, i will look into that.
Quote from: d3v on February 01, 2006, 04:01:32 AM
adsense?
i assuming your asking if this works for adsense, and yes it does.

Quote from: BadCluster on February 01, 2006, 06:45:00 AM
i upload the mod as a zip file and try to install it,
before that i made everything '777' rights in the package folder and when i try to install it i get this error

"An Error Has Occurred!   
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!


please verify that these files are also set to 777

Sources/ModSettings.php
Themes/default/index.template.php
Themes/default/BoardIndex.template.php
Themes/default/MessageIndex.template.php
Themes/default/Display.template.php
Themes/default/languages/Modifications.english.php
Title: Re: Ad Management mod
Post by: RBH on February 01, 2006, 06:42:14 PM
electrohome88, it would be nice to have it change like that. for instance, if you have a site with different interests, like boating and camping then when people enter the boating forum they would see banners advertising boat sites, when they enter the camping forum it would then show banners for camping supply outlets....etc etc.

still a very nice mod and will still use it.......look forward to the progression of it as well.
Title: Re: Ad Management mod
Post by: BadCluster on February 02, 2006, 05:47:24 AM
It worked... ;)
all the previous files and folders that u stated were already 777,
i just did a login and logout to my ftp and it worked.

Now another question...
which php i need to twist in order to change the ads order,
i mean i have one ad right now hangin on my forum and its at the center of the page,how can i move it more to the right or to the left????
Title: Re: Ad Management mod
Post by: d3v on February 02, 2006, 10:13:12 AM
thank you.
Title: Re: Ad Management mod
Post by: jerm on February 02, 2006, 12:38:50 PM
Quote from: BadCluster on February 02, 2006, 05:47:24 AM
It worked... ;)
all the previous files and folders that u stated were already 777,
i just did a login and logout to my ftp and it worked.

Now another question...
which php i need to twist in order to change the ads order,
i mean i have one ad right now hangin on my forum and its at the center of the page,how can i move it more to the right or to the left????

glad you got it to work, and i'll think about adding a feature that enables you do put the ad on the left side or the right, instead of just the middle
Title: Re: Ad Management mod
Post by: Prasad007 on February 02, 2006, 12:39:50 PM
Cool mod! Thank you!!!
Title: Re: Ad Management mod
Post by: jerm on February 02, 2006, 12:41:28 PM
i added a new version today. i had all evening off, so i desided to take a few hours and code some new features.
One of the biggest, is the abilty to remove ads depending on the users group. This is done through their permissions, so select the group permissions. To disable the ads for that group, you just uncheck the permission.

I have also made it so that you can now display ads on the bottom of every page.

And lastly, i made it possible to display an ad after the first post in a thread (Thanks to Joomlaspan for the idea)
Title: Re: Ad Management mod
Post by: Prasad007 on February 02, 2006, 12:42:52 PM
Quote from: electrohome88 on February 02, 2006, 12:41:28 PM
i added a new version today. i had all evening off, so i desided to take a few hours and code some new features.
One of the biggest, is the abilty to remove ads depending on the users group. This is done through their permissions, so select the group permissions. To disable the ads for that group, you just uncheck the permission.

I have also made it so that you can now display ads on the bottom of every page.

And lastly, i made it possible to display an ad after the first post in a thread (Thanks to Joomlaspan for the idea)
downloading now. thanks! :)
Title: Re: Ad Management mod
Post by: Prasad007 on February 02, 2006, 12:44:10 PM
8.     Execute Modification     ./Sources/ManagePermissions.php     Test failed


please help!!
Title: Re: Ad Management mod
Post by: jerm 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
Title: Re: Ad Management mod
Post by: 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!
Title: Re: Ad Management mod
Post by: jerm 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
Title: Re: Ad Management mod
Post by: Prasad007 on February 02, 2006, 01:01:05 PM
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
Title: Re: Ad Management mod
Post by: Prasad007 on February 02, 2006, 01:02:20 PM
yes works like a charm! Thank you once again! :) :)
Title: Re: Ad Management mod
Post by: jerm on February 02, 2006, 01:02:55 PM
Quote from: Prasad007 on February 02, 2006, 01:02:20 PM
yes works like a charm! Thank you once again! :) :)


good, glad it worked :)
Title: Re: Ad Management mod
Post by: MrFurious 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:


<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>
Title: Re: Ad Management mod
Post by: jerm 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


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>');
Title: Re: Ad Management mod
Post by: cnpldotca on February 02, 2006, 03:03:00 PM
how does one make a banner rotation script to use with this mod?
Title: Re: Ad Management mod
Post by: marinelife on February 02, 2006, 03:15:57 PM
I run PHPAdsnews to run mine
This is a great mod, thanks so much
Title: Re: Ad Management mod
Post by: 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 (http://www.simplemachines.org/community/index.php?topic=50984.0).

This mod places the code in exactly the same location.
Title: Re: Ad Management mod
Post by: houston on February 02, 2006, 09:47:52 PM
Thanks for the great Mod.    ;D
Title: Re: Ad Management mod
Post by: jerm on February 02, 2006, 10:03:55 PM
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 (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
Title: Re: Ad Management mod
Post by: 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
Title: Re: Ad Management mod
Post by: L.G.S on February 03, 2006, 01:35:39 PM
Excellent, thanks!
Title: Re: Ad Management mod
Post by: jerm on February 03, 2006, 01:36:16 PM
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
Title: Re: Ad Management mod
Post by: marinelife on February 03, 2006, 01:39:54 PM
ok sweet thanks
Title: Re: Ad Management mod
Post by: L.G.S on February 03, 2006, 03:42:14 PM
I installed fine but the permissions are not added?
Title: Re: Ad Management mod
Post by: jerm on February 03, 2006, 03:47:58 PM
did you install this version?
ad_mod_rc2_v1-4.zip
Title: Re: Ad Management mod
Post by: L.G.S on February 03, 2006, 06:01:18 PM
Ahh thanks  ;)
Title: Re: Ad Management mod
Post by: 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
Title: Re: Ad Management mod
Post by: jerm on February 04, 2006, 04:25:01 PM
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?
Title: Re: Ad Management mod
Post by: mandos on February 04, 2006, 04:29:39 PM
wow, THAT was a quick reply :)

yeap, it fails only in that file, and I can't upgrade to RC2 because TP doesn't work with it
it's ok though, there will be a compatible version soon :D I'll wait
the mod sounds perfect if you want to add a second, more precise title to your site (exactly what i'm trying to do!)
Title: Re: Ad Management mod
Post by: jerm on February 04, 2006, 04:33:11 PM
Quote from: mandos on February 04, 2006, 04:29:39 PM
wow, THAT was a quick reply :)

yeap, it fails only in that file, and I can't upgrade to RC2 because TP doesn't work with it
it's ok though, there will be a compatible version soon :D I'll wait
the mod sounds perfect if you want to add a second, more precise title to your site (exactly what i'm trying to do!)

well, if you want, you can still install the mod even though it fails on index.template.php
there is an option that will still allow you to display ads on most of the pages on your website.. but be aware, i've never actually tested this mod with TP.. so install at your own risk kinda thing

and change the title, you mean "Ad management" isnt a great title?
Title: Re: Ad Management mod
Post by: mandos on February 04, 2006, 04:39:00 PM
i meant adding an extra title for my site :)

my site (named TioOnline) should have been called: "Department Of Technology Of Biomedical Instruments"
it looks reeeally bad if I place it in the top of my site! so ad-management is greate because i can add this (as a flash maybe) under the control buttons!

the name of the mod is perfect, my sites name is the trouble :D

btw, I don't think that I'll risk it, i'm not a php programmer (yet! lol)
Title: Re: Ad Management mod
Post by: winnet on February 04, 2006, 09:21:29 PM
excelent mod, installed without problem
it will be 10 times more interesting if you add the option to insert different codes in different positions
or at least in top and bottom of page should be a way to insert differents scripts.
Title: Re: Ad Management mod
Post by: jerm on February 04, 2006, 09:23:29 PM
Quote from: winnet on February 04, 2006, 09:21:29 PM
excelent mod, installed without problem
it will be 10 times more interesting if you add the option to insert different codes in different positions
or at least in top and bottom of page should be a way to insert differents scripts.

i have done this for the rc2 most current version.. and seeing as lots of people have downloaded the version for 1.0.6, i will probably update it sometime next week
Title: Re: Ad Management mod
Post by: marinelife on February 04, 2006, 09:27:11 PM
I am on RC2 and one thing that would be cool is to replace the Simple Machine Forum Image in the top corner with the banner ads
Title: Re: Ad Management mod
Post by: marinelife on February 04, 2006, 09:27:58 PM
or like they have here and replace the Get in Gear image with the banner ads
Title: Re: Ad Management mod
Post by: jerm on February 04, 2006, 09:46:14 PM
its nice to have input on where people like to put their ads.
i'll see what i can work on through the week (i have an exam to study for .. so i might not be able to spend as much time as i'd like) but i will get around to doing it
Title: Re: Ad Management mod
Post by: marinelife on February 04, 2006, 09:48:38 PM
Sweet thanks
Title: Re: Ad Management mod
Post by: winnet on February 04, 2006, 09:51:56 PM
Quote from: electrohome88 on February 04, 2006, 09:23:29 PM
Quote from: winnet on February 04, 2006, 09:21:29 PM
excelent mod, installed without problem
it will be 10 times more interesting if you add the option to insert different codes in different positions
or at least in top and bottom of page should be a way to insert differents scripts.

i have done this for the rc2 most current version.. and seeing as lots of people have downloaded the version for 1.0.6, i will probably update it sometime next week

I dwld the rc2_v1-4.zip, cause I running now rc2 on one of my forums.
which are the most recent versions? or more advanced?
in this version there are just one place to insert scripts, and this script are displayed where you chose; but not 2 different script
but I may be wrong
Title: Re: Ad Management mod
Post by: jerm on February 04, 2006, 10:38:09 PM
Quote from: winnet on February 04, 2006, 09:51:56 PM
Quote from: electrohome88 on February 04, 2006, 09:23:29 PM
Quote from: winnet on February 04, 2006, 09:21:29 PM
excelent mod, installed without problem
it will be 10 times more interesting if you add the option to insert different codes in different positions
or at least in top and bottom of page should be a way to insert differents scripts.

i have done this for the rc2 most current version.. and seeing as lots of people have downloaded the version for 1.0.6, i will probably update it sometime next week

I dwld the rc2_v1-4.zip, cause I running now rc2 on one of my forums.
which are the most recent versions? or more advanced?
in this version there are just one place to insert scripts, and this script are displayed where you chose; but not 2 different script
but I may be wrong
that is the most current version of the ad management mod
Title: Re: Ad Management mod
Post by: winnet on February 04, 2006, 10:51:39 PM
so, this version allow to put two different scripts in different positions?
if yes, how so?

if no, no problem, take your time, good luck on exam, we will be here . . .
Title: Re: Ad Management mod
Post by: jerm on February 04, 2006, 10:54:48 PM
the most current version allows you to place ads on the top (under the menu), on the bottom of the page, and also after the first post in every topic

as of right now, those are the only spots you can put the ads, but i plan on adding more spots
Title: Re: Ad Management mod
Post by: winnet on February 04, 2006, 11:04:39 PM
yes I understand that, what I was asking was different scripts
I was thinking for example at a script in bottom, another, different one in front and so on. now the same script is put in different position.

Title: Re: Ad Management mod
Post by: trenchteam on February 04, 2006, 11:13:06 PM
Excellent Mod! Saves me lots of time!
Title: Re: Ad Management mod
Post by: houston on February 04, 2006, 11:16:01 PM
Quote from: winnet on February 04, 2006, 09:21:29 PM
excelent mod, installed without problem
it will be 10 times more interesting if you add the option to insert different codes in different positions
or at least in top and bottom of page should be a way to insert differents scripts.

I agree.
Title: Re: Ad Management mod
Post by: houston on February 04, 2006, 11:22:11 PM
Where would I go to reduce the spacing between the Ad and the menu items and my logo? Would it be within the code that the mod installed or somewhere else. Running SMF 1.1 RC2 and T.P. v0.8.6. I have attached an image to show the gaps that I have around the ad. Well, I was going to attache an image but there is no option to do that. You can go to this link instead. http://www.eaglebaycamp.com/forum/index.php (http://www.eaglebaycamp.com/forum/index.php)
Title: Re: Ad Management mod
Post by: jerm on February 04, 2006, 11:32:42 PM
Quote from: winnet on February 04, 2006, 11:04:39 PM
yes I understand that, what I was asking was different scripts
I was thinking for example at a script in bottom, another, different one in front and so on. now the same script is put in different position.



ya this has been suggested, and im trying to figure out the best way to do this.. its easier said than done

Quote from: houston on February 04, 2006, 11:22:11 PM
Where would I go to reduce the spacing between the Ad and the menu items and my logo? Would it be within the code that the mod installed or somewhere else. Running SMF 1.1 RC2 and T.P. v0.8.6. I have attached an image to show the gaps that I have around the ad. Well, I was going to attache an image but there is no option to do that. You can go to this link instead. http://www.eaglebaycamp.com/forum/index.php (http://www.eaglebaycamp.com/forum/index.php)
that would be in the index.template.php.. i guess in the next version i can remove the space.. cause you can easily add a space if you want to by just putting <br> in the code.. i'll change this in the next version
Title: Re: Ad Management mod
Post by: houston on February 05, 2006, 01:16:50 AM
This would work great for setting your forum logo. Just have the code placed above the row of menu items.
Title: Re: Ad Management mod
Post by: jeegee on February 05, 2006, 07:11:52 AM
[sent you a PM too, did not see this thread, sorry]

Wow Nice job. A few things that I realy want for my situation....

1. Can you please make it possible to add a option to display ads as a colomn on the left side? Do you know what I mean?

2. This one is more complex I think. Would it be possible to use different kind of styles? So several pieces of code?

Why? Well I use google adsense and want 2 places for the ads. The first is the left side as a colomn and also after the first post. But is that case I need to different codes (one colomn and the other as a wide one).

If 2. is far to complex, could you plz plz plz help me out to add only the left colomn option? I know php, so a work around would be good too. O btw this all for rc2 with the default theme.

ok, saw that someone alse also asked for the several codes to use.
Don't want to push you, but any idea when these 2 things couold added?

And again, your mod realy rocks.

o btw, a hint for google adsense users, according to the rules of google, you are not allowed
to display ads on admin and members pages. With this mod that can be done. Just unselect
display on all pages and check the others. Realy nicely done by the developper.

Regards,
Johan
Title: Re: Ad Management mod
Post by: winnet on February 05, 2006, 10:11:51 AM
Quote from: electrohome88 on February 04, 2006, 11:32:42 PM
Quote from: winnet on February 04, 2006, 11:04:39 PM
yes I understand that, what I was asking was different scripts
I was thinking for example at a script in bottom, another, different one in front and so on. now the same script is put in different position.



ya this has been suggested, and im trying to figure out the best way to do this.. its easier said than done


right now are 5 places for display with one cell to enter the script.
maybe you can to put a cell for enter the code near every places, and try to figure a way to associate the positions with script near them.

or put 2, 3 or more cell scripts numbered, and near the checkbox who indicate the positions put another one where the admin wrote the number of script.
so we can chose the place to insert script and the number of script used
but as I said, good like with exam and take your time, the mod is very useful as is now.
Title: Re: Ad Management mod
Post by: street2k on February 05, 2006, 12:20:28 PM
Im trying to get this MOD to work with my theme. It works perfect with the default theme. Are there any changes I need to make or is it possible for you to make a version of this MOD or add some notes where we can modify the settings such as theme.

Also I wish this Mod had a feature where a admin can specify which forums the ads will be viewable & be able to run multiple campaigns.
Title: Re: Ad Management mod
Post by: SALocalcom on February 05, 2006, 12:51:35 PM
The installation went fine and I added code, and get nothing.  No adverse effect, no scrible, just nothing.  Is the mod html friendly or is there other code necessary.
Title: Re: Ad Management mod
Post by: zasul on February 05, 2006, 01:11:46 PM
instaled it i add the code but nothing shows up
http://zas.blaisehosting.com/forum/index.php
Title: Re: Ad Management mod
Post by: jerm on February 05, 2006, 01:33:21 PM
Quote from: street2k on February 05, 2006, 12:20:28 PM
Im trying to get this MOD to work with my theme. It works perfect with the default theme. Are there any changes I need to make or is it possible for you to make a version of this MOD or add some notes where we can modify the settings such as theme.

Also I wish this Mod had a feature where a admin can specify which forums the ads will be viewable & be able to run multiple campaigns.

sorry, i didn't actually put any comments in my code (i will next release)
if you open up install.xml you should be able to see the lines of code you'd need to display the ads

Quote from: SALocalcom on February 05, 2006, 12:51:35 PM
The installation went fine and I added code, and get nothing.  No adverse effect, no scrible, just nothing.  Is the mod html friendly or is there other code necessary.
this is installed on the default theme only, are you sure your using the default theme as your theme?

Quote from: zasul on February 05, 2006, 01:11:46 PM
instaled it i add the code but nothing shows up
http://zas.blaisehosting.com/forum/index.php
your also not using the default theme, if you go to
http://zas.blaisehosting.com/forum/index.php?theme=1
you'll see that the mod has actually installed, you just have some errors in your code thats not allowing the images to show up properly
Title: Re: Ad Management mod
Post by: SALocalcom on February 05, 2006, 04:14:39 PM
I've saved my own theme as the default them, but I've only made color and button changes.
Title: Re: Ad Management mod
Post by: trenchteam on February 05, 2006, 05:37:02 PM
When you install the mod, you can see what files were changed in the default theme.  Make the changes manually on your custom theme. It will do the job.
Title: Re: Ad Management mod
Post by: SALocalcom on February 05, 2006, 06:30:16 PM
My theme is the default theme and has been since I originally started changing things.  Changes?  You mean chmod to 777, or 744......
Title: Re: Ad Management mod
Post by: eMachine on February 05, 2006, 07:31:19 PM
after installing the mod, it just did not appear... the ADS button/link whatever in options.

edit: just realized that it only works in English. my forum is non-english, that's why ADS option does not appears in navigation... how can i figure?
Title: Re: Ad Management mod
Post by: houston on February 05, 2006, 09:05:12 PM
For some reason when I chose Display ads on Thread it shows it twice one under the other. Is anybody else haveing this error?

Running smf1.1 RC2 with TP v0.8.6
Title: Re: Ad Management mod
Post by: jerm on February 05, 2006, 10:40:53 PM
Quote from: SALocalcom on February 05, 2006, 04:14:39 PM
I've saved my own theme as the default them, but I've only made color and button changes.
can ihave a link to your forum?
Quote from: eMachine on February 05, 2006, 07:31:19 PM
after installing the mod, it just did not appear... the ADS button/link whatever in options.

edit: just realized that it only works in English. my forum is non-english, that's why ADS option does not appears in navigation... how can i figure?

if you go into your Modifcations.yourlanguage.php
add these values
$txt['ad_management'] = 'Ads';
$txt['ad_management_index'] = 'Display ads on top index page (all pages)';
$txt['ad_management_bot_index'] = 'Display ads on bottom of index page (all pages)';
$txt['ad_management_board_index'] = 'Display ads on Board Index';
$txt['ad_management_thread_index'] = 'Display ads on Thread index';
$txt['ad_management_thread'] = 'Display ads on Thread';
$txt['ad_management_content_disc'] = 'Write your code here';
$txt['ad_management_firstad'] = 'Display ad after first post';
$txt['permissiongroup_ad_manage'] = 'Ad Management';
$txt['permissionname_ad_manageperm'] = 'Enable ads';
$txt['permissionhelp_ad_manageperm'] = 'To enable ads to appear for this membergroup, this must be checked';

and translate it to your language it should work

Quote from: houston on February 05, 2006, 09:05:12 PM
For some reason when I chose Display ads on Thread it shows it twice one under the other. Is anybody else haveing this error?

Running smf1.1 RC2 with TP v0.8.6
its not an error.. do you have both "display ads on index page" and "display ads on thread" checked off? if you do.. thats why you have it display twice. i might make it so that it wont happen in the next version
Title: Re: Ad Management mod
Post by: SALocalcom on February 05, 2006, 10:49:35 PM
The first url in my signiture....please.

Thanks!
Title: Re: Ad Management mod
Post by: jerm on February 05, 2006, 10:55:28 PM
Quote from: SALocalcom on February 05, 2006, 10:49:35 PM
The first url in my signiture....please.

Thanks!
sorry.. didn't even look at your signature
so you dont even see anything in the admin section?
Title: Re: Ad Management mod
Post by: SALocalcom on February 05, 2006, 11:03:03 PM
Yes, I see "ad mod" and 4 check boxes and a place to put the code.......added code and I don't get anything.


**************see page 6 of this thread............
Title: Re: Ad Management mod
Post by: houston on February 05, 2006, 11:03:35 PM
Quoteits not an error.. do you have both "display ads on index page" and "display ads on thread" checked off? if you do.. thats why you have it display twice. i might make it so that it wont happen in the next version

The only choice that I have selected is the Display ads on thread option.
Title: Re: Ad Management mod
Post by: SALocalcom on February 05, 2006, 11:06:11 PM
I check one, two boxes, tried all boxes checked.
Title: Re: Ad Management mod
Post by: jerm on February 05, 2006, 11:09:38 PM
Quote from: houston on February 05, 2006, 11:03:35 PM
Quoteits not an error.. do you have both "display ads on index page" and "display ads on thread" checked off? if you do.. thats why you have it display twice. i might make it so that it wont happen in the next version

The only choice that I have selected is the Display ads on thread option.
thats kinda odd, when you installed/uninstalled my mod, did you ever get any errors?
Quote from: SALocalcom on February 05, 2006, 11:06:11 PM
I check one, two boxes, tried all boxes checked.
you can pm me if you like, but can i see your index.template.php file?
Title: Re: Ad Management mod
Post by: SALocalcom on February 05, 2006, 11:12:32 PM
Sorry, I was replying to the wrong post.
OK, I give......
Title: Re: Ad Management mod
Post by: houston on February 05, 2006, 11:34:21 PM
Quotethats kinda odd, when you installed/uninstalled my mod, did you ever get any errors?

Installed Perfectly. I have not tried to unistall it.

Although I had to manually remove the google code that I inserted in the Display.template.php so that Google adsense would show up at the top of each thread.
Title: Re: Ad Management mod
Post by: jerm on February 05, 2006, 11:38:10 PM
Quote from: houston on February 05, 2006, 11:34:21 PM
Quotethats kinda odd, when you installed/uninstalled my mod, did you ever get any errors?

Installed Perfectly. I have not tried to unistall it.
seems pretty wierd.. can you verify something for me..
open up your display.template.php
and make sure this line only appears once

if ($modSettings['ad_management_thread'] && allowedTo('ad_manageperm'))
echo '<br /><div align="center">',$modSettings['ad_management_content'],'</div>';
Title: Re: Ad Management mod
Post by: houston on February 05, 2006, 11:45:08 PM
Quote from: electrohome88 on February 05, 2006, 11:38:10 PM
Quote from: houston on February 05, 2006, 11:34:21 PM
Quotethats kinda odd, when you installed/uninstalled my mod, did you ever get any errors?

Installed Perfectly. I have not tried to unistall it.
seems pretty wierd.. can you verify something for me..
open up your display.template.php
and make sure this line only appears once

if ($modSettings['ad_management_thread'] && allowedTo('ad_manageperm'))
echo '<br /><div align="center">',$modSettings['ad_management_content'],'</div>';


Yup is was inserted twice. Thanks fro pointing me in the right direction.

Cheers 8)
Title: Re: Ad Management mod
Post by: jerm on February 05, 2006, 11:46:50 PM
Quote from: houston on February 05, 2006, 11:45:08 PM
Yup is was inserted twice. Thanks fro pointing me in the right direction.

Cheers 8)

np.. thanks for pointing this out. its probably an issue with TP.. so i'll fix that up
Title: Re: Ad Management mod
Post by: ukrob12 on February 06, 2006, 01:58:50 PM
Great mod, only problem is it doesn't work with my theme (Saf)
Title: Re: Ad Management mod
Post by: street2k on February 06, 2006, 03:25:14 PM
Quote from: ukrob12 on February 06, 2006, 01:58:50 PM
Great mod, only problem is it doesn't work with my theme (Saf)
.

Same here. what files need to be edited so it will work for my theme.
Title: Re: Ad Management mod
Post by: jeegee on February 06, 2006, 03:41:37 PM
ok if you know php/html you could look into the file: install.xml

In that file you can see what parts, lines are changed/edited.
Not a very easy job. But for now I think you shloud do it with.

Untill someone makes a How To....

Ciao,
Johan
Title: Re: Ad Management mod
Post by: jerm on February 06, 2006, 05:08:33 PM
Quote from: street2k on February 06, 2006, 03:25:14 PM
Quote from: ukrob12 on February 06, 2006, 01:58:50 PM
Great mod, only problem is it doesn't work with my theme (Saf)
.

Same here. what files need to be edited so it will work for my theme.
like suggested, you should look into the install.xml file to get details
but the files you will edit to work with your theme:
index.template.php
Display.template.php
MessageIndex.template.php
BoardIndex.template.php
Title: Re: Ad Management mod
Post by: jerm on February 07, 2006, 12:27:25 AM
for those wondering where this mod is heading, and a few other things, check out the first post..
Title: Re: Ad Management mod
Post by: Bigguy on February 07, 2006, 01:10:06 AM
I just installed this on a new install of smf Rc2 and got this error.

(http://img.photobucket.com/albums/v704/bigguy982/erro1.jpg)

To solve it I opened a php editor and commented that line out and it works great.
Title: Re: Ad Management mod
Post by: Prasad007 on February 07, 2006, 09:00:05 AM
why wont this mod work on different themes
my theme is helios_multi
please help!
Title: Re: Ad Management mod
Post by: DeathfireD on February 07, 2006, 12:12:51 PM
Nice mod, Ill test this out when I get home. Btw did you happen to read my mod request last month about the phpbb inline mod? This looks somewhat like it, should be great and easy to get use to!
Title: Re: Ad Management mod
Post by: jerm on February 07, 2006, 10:15:42 PM
Quote from: Bigguy on February 07, 2006, 01:10:06 AM
I just installed this on a new install of smf Rc2 and got this error.

To solve it I opened a php editor and commented that line out and it works great.
you sure your using rc2? cause i dont even think that line exists in that area of that file..not even sure if it exsits at all.. but ya, that line should be commented out (my mod doesn't even touch that line.. so its even odder..)

Quote from: Prasad007 on February 07, 2006, 09:00:05 AM
why wont this mod work on different themes
my theme is helios_multi
please help!

it would be difficult for me to have this mod work for all themes. what i can suggest is look in the install.xml file, and look at what it edits, then apply it to your mod. for me to work on a mod that works with 1.0.6 and RC2, then have to make multiple versions to run on different themes would be a lot of work. i could guide you in the right direction though..

Quote from: DeathfireD on February 07, 2006, 12:12:51 PM
Nice mod, Ill test this out when I get home. Btw did you happen to read my mod request last month about the phpbb inline mod? This looks somewhat like it, should be great and easy to get use to!
i had actually not seen that you had requested a mod.. but glad you got your wishes true :)
Title: Re: Ad Management mod
Post by: Bigguy on February 07, 2006, 10:20:18 PM
Yep using smf 1.1 rc2 with the latest Tiny Portal.
Title: Re: Ad Management mod
Post by: jerm on February 08, 2006, 08:14:43 PM
I released a new version of my mod, but it will only effect those who have tinyportal installed. I came accross a bug that when you install my mod with tinyportal installed, it crashed the forums. You only need to upgrade if you have tinyportal installed. If you dont, you dont need to install it at all, there are no new features in this release
Title: Re: Ad Management mod
Post by: street2k on February 08, 2006, 09:16:17 PM
So your the mutha#@**^&* that's responsible  :). he he
Title: Re: Ad Management mod
Post by: jerm on February 08, 2006, 09:22:41 PM
sorry.. i had no idea till people started reporting an issue, then i looked into it
Title: Re: Ad Management mod
Post by: DeathfireD on February 09, 2006, 06:26:03 PM
Having a problem. It installed fine, now I added my google adsence code and clicked on a few of the check boxes and hit apply. But I dont see any ads show up. I tryed logging out but still dont see any. Is there something I need to edit in the themes?
Title: Re: Ad Management mod
Post by: jerm on February 09, 2006, 06:29:19 PM
may i have a link to your site?
Title: Re: Ad Management mod
Post by: JSellnau_TSCC on February 09, 2006, 07:37:04 PM
Quote from: DeathfireD on February 09, 2006, 06:26:03 PM
Having a problem. It installed fine, now I added my google adsence code and clicked on a few of the check boxes and hit apply. But I dont see any ads show up. I tryed logging out but still dont see any. Is there something I need to edit in the themes?

I have the same problem...
http://www.privaterights.com/forum

I need this fixed asap.

I have even tried to hard-code the ads into the theme and they still do not show up.
Title: Re: Ad Management mod
Post by: RC-Drift.com on February 11, 2006, 05:52:13 PM
I'm sorry but what code do I put in the code box?  has anyone got an example?
Title: Re: Ad Management mod
Post by: jerm on February 11, 2006, 05:56:42 PM
this would be an example


<script type="text/javascript"><!--
google_ad_client = "-----";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="7508705510";
google_color_border = "CCCCCC";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Title: Re: Ad Management mod
Post by: RC-Drift.com on February 11, 2006, 06:29:53 PM
Thank you very much, this is a great place for help and is how I like to run my forum too

So now I know the format of google ads (after signing up) what would banner ad code look like? (I'm trying to suss out how to use phpadsnew but pulling my hair out  >:()
Title: Re: Ad Management mod
Post by: houston on February 12, 2006, 12:15:32 AM
I have uploaded the ad_mod_rc2_v1-4-1.zip mod and all I see in the package manager is 16. Ad Management 1.4.1   [ List Files ] [ Delete ]. As you can see there is no option to upgrade. Should I unistall the current version and re apply the latest version.

P.S. I am currently running T.P. v0.8.6 and do not have any problems with it crashing my board. Would you reccomend not applying the update or should I go ahead any ways.

Again this is a great Mod

Thanks

Title: Re: Ad Management mod
Post by: jerm on February 12, 2006, 12:18:17 AM
Quote from: houston on February 12, 2006, 12:15:32 AM
I have uploaded the ad_mod_rc2_v1-4-1.zip mod and all I see in the package manager is 16. Ad Management 1.4.1   [ List Files ] [ Delete ]. As you can see there is no option to upgrade. Should I unistall the current version and re apply the latest version.

P.S. I am currently running T.P. v0.8.6 and do not have any problems with it crashing my board. Would you reccomend not applying the update or should I go ahead any ways.

Again this is a great Mod

Thanks


you would have known already if it crashed your boards.. but if its working fine right now, no need to upgrade. theres nothing special in the newest version
Title: Re: Ad Management mod
Post by: RC-Drift.com on February 12, 2006, 06:56:17 AM
If I use html it works, but if I use the code given above as an example
<script type="text/javascript"><!--
google_ad_client = "-----";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="7508705510";
google_color_border = "CCCCCC";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

then I get a 406 Not Acceptable error with the message:
'An appropriate representation of the requested resource /rc-drift-forum/index.php could not be found on this server.'
Title: Re: Ad Management mod
Post by: tarkhorani on February 13, 2006, 12:06:55 PM
I install the script on http://www.epaytalk.com and works great
you can see the sample on that site
Title: Re: Ad Management mod
Post by: Ludos on February 13, 2006, 04:38:47 PM
I don't want to be boring, but i've been looking for this kind of mod and i've found this one (http://www.simplemachines.org/community/index.php?topic=64866.0), that seems more complete, with a lot of options, the only bad thing (if we can consider it bad) is that was developed in french, althought it has an english version.

Atm i'm more interested in the one i've mentioned, but i'll wait for more development on Ad Management and i'll decide wich one is best for me.

I'm sorry mentioning an other mod on this topic, but it seems pretty good to me, and it can even be a model to follow on some options...

Regards

PS - Sorry my lousy english.
Title: Re: Ad Management mod
Post by: jerm on February 14, 2006, 01:57:37 AM
Quote from: RC-Drift.com on February 12, 2006, 06:56:17 AM
If I use html it works, but if I use the code given above as an example
<script type="text/javascript"><!--
google_ad_client = "-----";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="7508705510";
google_color_border = "CCCCCC";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

then I get a 406 Not Acceptable error with the message:
'An appropriate representation of the requested resource /rc-drift-forum/index.php could not be found on this server.'
you'll have to change the "google_ad_client = "-----"; to what yours is.. it wont work cause its not a valid "pub".

Quote from: Ludos on February 13, 2006, 04:38:47 PM
I don't want to be boring, but i've been looking for this kind of mod and i've found this one (http://www.simplemachines.org/community/index.php?topic=64866.0), that seems more complete, with a lot of options, the only bad thing (if we can consider it bad) is that was developed in french, althought it has an english version.

Atm i'm more interested in the one i've mentioned, but i'll wait for more development on Ad Management and i'll decide wich one is best for me.

I'm sorry mentioning an other mod on this topic, but it seems pretty good to me, and it can even be a model to follow on some options...

Regards

PS - Sorry my lousy english.

i know about this mod, i found it after i released mine, but anyways, its a totally different type of mod. that mod seemes like a phpadsnew, but for SMF. mine is more about placement of ads , etc.


sorry for the late responses.. i've been busy with studying
Title: Re: Ad Management mod
Post by: Razerst on February 16, 2006, 02:35:43 AM
Hope you can modify this. I think this version is good

btw, could you modify this mod, so I can show more than one ads in the same spot, or different spot?
Title: Re: Ad Management mod
Post by: jerm on February 16, 2006, 03:46:58 PM
Quote from: Razerst on February 16, 2006, 02:35:43 AM
Hope you can modify this. I think this version is good

btw, could you modify this mod, so I can show more than one ads in the same spot, or different spot?
i will be coding a new version in a couple days that will have a lot more features.
i hope to be able to include the ones you have suggested
Title: Re: Ad Management mod
Post by: Bigguy on February 16, 2006, 05:04:25 PM
I can show more than 1 ad. put these <p> </p> around each ad and both will show. Both in the same place though. (top or bottom not top and bottom with different ads)
Title: Re: Ad Management mod
Post by: Razerst on February 17, 2006, 12:21:40 AM
QuoteI can show more than 1 ad. put these <p> </p> around each ad and both will show. Both in the same place though. (top or bottom not top and bottom with different ads)

okay, that sounds good, I mean, could You modify this mod so I can show ads A in top of forums and ads B in the bottom of forums?
Title: Re: Ad Management mod
Post by: jerm on February 17, 2006, 12:25:34 AM
yes, thats the goal

my final exam is tomorrow night.. after that i can focus on coding again
Title: Re: Ad Management mod
Post by: ZhongFu on February 17, 2006, 10:22:45 AM
Cool mod! Thanks A Lot! :)
Title: Re: Ad Management mod
Post by: Col on February 17, 2006, 11:18:57 AM
How would you make it dispay random ads?

Is it possible to display ads outside of the forum?

Thanks.
Title: Re: Ad Management mod
Post by: ZhongFu on February 17, 2006, 02:21:17 PM
Great mod! Thanks a lot!
Title: Re: Ad Management mod
Post by: jerm on February 18, 2006, 06:41:59 PM
ad mod has been updated for 1.0.6 version.
Download and install ad_mod_1-0-6_v1-0-2.zip

For those using RC2 version, there is currently no updates. I am coding a new version right now..
Title: Re: Ad Management mod
Post by: street2k on February 19, 2006, 10:07:05 AM
Is there anyway you can show me/us where in the code & which script to make changes so this mod will appear in my theme other than the default theme. I have ad_mod_rc2_v1-4-1.zip
Title: Re: Ad Management mod
Post by: Padfoot on February 20, 2006, 06:08:00 PM
Does this work with 1.1 RC1??

Can't seem to get to work with mine...
Title: Re: Ad Management mod
Post by: tarkhorani on February 21, 2006, 02:02:17 AM
update for RC2 Please
Title: Re: Ad Management mod
Post by: jerm on February 21, 2006, 02:09:21 AM
Quote from: street2k on February 19, 2006, 10:07:05 AM
Is there anyway you can show me/us where in the code & which script to make changes so this mod will appear in my theme other than the default theme. I have ad_mod_rc2_v1-4-1.zip
have you tried looking in the install.xml file?

Quote from: Padfoot on February 20, 2006, 06:08:00 PM
Does this work with 1.1 RC1??

Can't seem to get to work with mine...

i haven't tested it on rc1, but you can try using the ad_mod_1-0-6_v1-0-2.zip version of the mod.. just change the package-info.xml file to include rc1

Quote from: tarkhorani on February 21, 2006, 02:02:17 AM
update for RC2 Please

there is a version for rc2..
ad_mod_rc2_v1-4-1.zip
Title: Re: Ad Management mod
Post by: Bigguy on February 21, 2006, 02:12:26 AM
To update to the latest just upload and install ???
Title: Re: Ad Management mod
Post by: jerm on February 21, 2006, 02:14:23 AM
Quote from: Bigguy on February 21, 2006, 02:12:26 AM
To update to the latest just upload and install ???

and uninstall the other version :) lol
Title: Re: Ad Management mod
Post by: Bigguy on February 21, 2006, 02:18:30 AM
getting an error when I try to uninstall in "Modifications.english.php"
Title: Re: Ad Management mod
Post by: jerm on February 21, 2006, 02:20:28 AM
Quote from: Bigguy on February 21, 2006, 02:18:30 AM
getting an error when I try to uninstall in "Modifications.english.php"
probably another mod conflicting with it
just download the file, its in languages file.. and delete all the stuff that has to do with ad_management
Title: Re: Ad Management mod
Post by: Bigguy on February 21, 2006, 02:23:00 AM
Sorry, its late here and I didnt completely understand what you meant.

Quote from: electrohome88 on February 21, 2006, 02:20:28 AM
Quote from: Bigguy on February 21, 2006, 02:18:30 AM
getting an error when I try to uninstall in "Modifications.english.php"
probably another mod conflicting with it
just download the file, its in languages file.. and delete all the stuff that has to do with ad_management
Title: Re: Ad Management mod
Post by: jerm on February 21, 2006, 02:24:47 AM
Quote from: Bigguy on February 21, 2006, 02:23:00 AM
Sorry, its late here and I didnt completely understand what you meant.

Quote from: electrohome88 on February 21, 2006, 02:20:28 AM
Quote from: Bigguy on February 21, 2006, 02:18:30 AM
getting an error when I try to uninstall in "Modifications.english.php"
probably another mod conflicting with it
just download the file, its in languages file.. and delete all the stuff that has to do with ad_management

go into your themes/default/languages/modifications.english.php and edit it and delete all the stuff that has to do with my ad mod
Title: Re: Ad Management mod
Post by: Bigguy on February 21, 2006, 02:28:17 AM
Ok, so uninstall it THEN delete the stuff in /modifications.english.php ??? This wont cause errors leaving it in until I delete it ???
Title: Re: Ad Management mod
Post by: jerm on February 21, 2006, 02:30:42 AM
no, it wont have any effect like that
Title: Re: Ad Management mod
Post by: Bigguy on February 21, 2006, 02:33:50 AM
Ok, thanks for the awesome help dude. :)
Title: Re: Ad Management mod
Post by: jfigura on February 21, 2006, 09:58:05 AM
At the risk of sounding foolish, or repeating another question, IS there a simple HTML code that can be used to display simple jpeg or gif banners?

I will learn how to adminsiter and use PHPads or something but for now, I would like to display a simple singular banner and I am apparently not intelligent enough to know for sure what code to use. Or maybe I am making it harder than it is.
Title: Re: Ad Management mod
Post by: Bigguy on February 21, 2006, 10:28:02 AM
I would suggest trying this mod out, it might be what your looking for.
Title: Re: Ad Management mod
Post by: jfigura on February 21, 2006, 10:32:08 AM
I have it installe don my board, but as I stated, I am unclear as to what code I need to put into the box in order to display a simple banner.

Title: Re: Ad Management mod
Post by: jerm on February 21, 2006, 11:07:24 AM
you will need to uploade an image somewhere onto your server
then in the textbox, type
<img src="location of image.." />
Title: Re: Ad Management mod
Post by: jfigura on February 21, 2006, 11:24:06 AM
Hi and Thanks. I did try that and a simple HREF, neither worked. I verified my path and it works thru IE so not sure what's happening here.

Guess its time to go into troubleshooting mode :(
Title: Re: Ad Management mod
Post by: jerm on February 21, 2006, 12:47:45 PM
seeing as your not that great with html
try www.w3schools.com
its where i learnt html when i first started
Title: Re: Ad Management mod
Post by: Col on February 21, 2006, 04:30:00 PM
Quote from: Col on February 17, 2006, 11:18:57 AM
How would you make it dispay random ads?

Is it possible to display ads outside of the forum?

Thanks.

Anyone?

Thanks.
Title: Re: Ad Management mod
Post by: jfigura on February 22, 2006, 06:12:36 AM
Quoteseeing as your not that great with html
try www.w3schools.com
its where i learnt html when i first started

I may not be the smartes person alive with HTML, but I do understand what is happening here, and what is happening is that the mod doesn't work for me. Either it is something to do with another mod, or my theme possibly. Thanks anyway.
Title: Re: Ad Management mod
Post by: jfigura on February 22, 2006, 06:44:14 AM
After paying more attention to this, I discovered that after installing, if I switched over to the "Default" SMF theme, the ad mod worked perfectly. When I switched back to my regular theme, it did not.

It seems that your install script only writes to the "default" theme. So, the question I have is, how does one correct this so that another theme can use it? Is it simply the action of coying the over written files from the default directory to my own, or is there another process?

Thanks.

--Joe
Title: Re: Ad Management mod
Post by: Bigguy on February 22, 2006, 03:05:47 PM
Go into the install.xml file of the ad mod and do all the changes listed in there for the theme you want it to work for. Hope that helps a bit.
Title: Re: Ad Management mod
Post by: jfigura on February 23, 2006, 09:43:07 AM
Not being a coder, I did figure out how to change the paths in the install script. I have it working now.

Title: Re: Ad Management mod
Post by: jerm on February 23, 2006, 12:54:45 PM
Quote from: Col on February 21, 2006, 04:30:00 PM
Quote from: Col on February 17, 2006, 11:18:57 AM
How would you make it dispay random ads?

Is it possible to display ads outside of the forum?

Thanks.

Anyone?

Thanks.

i haven't added the ability to display random ads, but if you know some javascript, you can get it to display random ads.. i dont know how though, sorry

Quote from: jfigura on February 23, 2006, 09:43:07 AM
Not being a coder, I did figure out how to change the paths in the install script. I have it working now.
im surprised it worked properly on another theme.. i didn't test it at all on another theme.
Title: Re: Ad Management mod
Post by: observ on February 24, 2006, 06:31:41 AM
I am not one of the people that knows the best to work with this stuff. I would like some help in installing this mod. I tryied to search for what i needed on the posts made before but i didn't find anything.
I would like some installing tutorial like:
You upload the files in this directory http/smf/etc..(where? exactly)
You go to this url: http://smf/etc/install.php
And so on, this is what i would like to see. For newbies like me that don't know much of it.
Title: Re: Ad Management mod
Post by: Col on February 24, 2006, 01:36:07 PM
Quote from: electrohome88 on February 23, 2006, 12:54:45 PM
i haven't added the ability to display random ads, but if you know some javascript, you can get it to display random ads.. i dont know how though, sorry

Thanks,

And can it display ads outside of the forum?
Title: Re: Ad Management mod
Post by: dieselv2 on February 25, 2006, 08:02:05 AM
outside the forum as on a website?

You'd have to code it in manually on the website
Title: Re: Ad Management mod
Post by: dieselv2 on February 25, 2006, 09:31:14 AM
can anyone help with installing this on skins other than default...not sure what to change in install.xml file
Title: Re: Ad Management mod
Post by: Col on February 25, 2006, 01:36:55 PM
Quote from: dieselv2 on February 25, 2006, 08:02:05 AM
outside the forum as on a website?

You'd have to code it in manually on the website

I thought there might be a PHP include, or similar.
Title: Re: Ad Management mod
Post by: jerm on February 25, 2006, 02:17:36 PM
Quote from: observ on February 24, 2006, 06:31:41 AM
I am not one of the people that knows the best to work with this stuff. I would like some help in installing this mod. I tryied to search for what i needed on the posts made before but i didn't find anything.
I would like some installing tutorial like:
You upload the files in this directory http/smf/etc..(where? exactly)
You go to this url: http://smf/etc/install.php
And so on, this is what i would like to see. For newbies like me that don't know much of it.
you have to use the package manager to install this mod, you dont upload it directly to any folder.. you upload it with the package manager, that can be found in the admin section

Quote from: Col on February 24, 2006, 01:36:07 PM
Quote from: electrohome88 on February 23, 2006, 12:54:45 PM
i haven't added the ability to display random ads, but if you know some javascript, you can get it to display random ads.. i dont know how though, sorry

Thanks,

And can it display ads outside of the forum?

no sorry.. it only displays ads on the board. if your really crazy, you might get it to work on your webpages, but that would require you to know php..
Title: Re: Ad Management mod
Post by: jerm on February 25, 2006, 02:23:20 PM
Quote from: dieselv2 on February 25, 2006, 09:31:14 AM
can anyone help with installing this on skins other than default...not sure what to change in install.xml file


you will have to edit the following files

index.template.php
Add:

if ($modSettings['ad_management_index'] && allowedTo('ad_manageperm'))
echo '<br /><div align="center">',$modSettings['ad_management_content'],'</div>';]]>

This is for display ads on the top. You might find a function call called template_menu();. Place the add code under that.

Add:

global $modSettings;

if ($modSettings['ad_management_bot_index'] && allowedTo('ad_manageperm'))
echo '<br /><div align="center">',$modSettings['ad_management_content'],'</div>';]]>

This code will display ads on the bottom of the page. You might find a function called function template_main_below() in the file.. that is the bottom of the page

BoardIndex.template.php

if ($modSettings['ad_management_board_index'] && allowedTo('ad_manageperm'))
echo '<br /><div align="center">',$modSettings['ad_management_content'],'</div>';

This should probably go near the top of the page.. below any global variables though (the same follows for the rest of the files)

Display.template.php
if ($modSettings['ad_management_thread'] && allowedTo('ad_manageperm'))
echo '<br /><div align="center">',$modSettings['ad_management_content'],'</div>';


MessageIndex.template.php
if ($modSettings['ad_management_thread_index'] && allowedTo('ad_manageperm'))
echo '<br /><div align="center">',$modSettings['ad_management_content'],'</div>';


This is all assuming you are using RC2
To display the ads after the first post might be very tricky and you will have to look into install.xml and try and figure it out yourself. If i just post code, you might screw up your boards

Also be sure to actually install this mod, then make modifications to those files. If you dont install the mod, you will get lots of errors on your board
Title: Re: Ad Management mod
Post by: thetzfreak on February 25, 2006, 02:24:46 PM
Wow... what a useful mod... thanks! Now here's a feature I would REALLY like to see:
How about a side bar with tower ads? Kinda like a menu type side bar on every page, except it's got ads.

Thanks.
Title: Re: Ad Management mod
Post by: jerm on February 25, 2006, 02:25:52 PM
Quote from: thetzfreak on February 25, 2006, 02:24:46 PM
Wow... what a useful mod... thanks! Now here's a feature I would REALLY like to see:
How about a side bar with tower ads? Kinda like a menu type side bar on every page, except it's got ads.

Thanks.

Thanks

I have thought of that and intend to include it in the next release
Title: Re: Ad Management mod
Post by: Col on February 25, 2006, 04:26:27 PM
Quote from: electrohome88 on February 25, 2006, 02:17:36 PM
Quote from: Col on February 24, 2006, 01:36:07 PM
Quote from: electrohome88 on February 23, 2006, 12:54:45 PM
i haven't added the ability to display random ads, but if you know some javascript, you can get it to display random ads.. i dont know how though, sorry

Thanks,

And can it display ads outside of the forum?

no sorry.. it only displays ads on the board. if your really crazy, you might get it to work on your webpages, but that would require you to know php..

I'm not that crazy! :P

I thought it might be a nice way to manage ads across a site.

Thanks anyway.
Title: Re: Ad Management mod
Post by: thetzfreak on February 28, 2006, 06:17:54 PM
Is it possible to use different ad codes for all the different places to display the ads?

Thanks.
Title: Re: Ad Management mod
Post by: jerm on February 28, 2006, 09:04:29 PM
Quote from: thetzfreak on February 28, 2006, 06:17:54 PM
Is it possible to use different ad codes for all the different places to display the ads?

Thanks.
not now, but in the future, yes
Title: Re: Ad Management mod
Post by: Prasad007 on March 03, 2006, 01:16:44 PM
Thanks. The new version with the TP works like a charm! :)
Title: Re: Ad Management mod
Post by: idahojoe on March 04, 2006, 12:23:44 PM
I read that it only works in the "default" themes. I'm currently using classic because I've modified the theme a bit and it doesn't work with "classic" theme. Is this mod going to work with the classic theme anytime soon?????? ???
Title: Re: Ad Management mod
Post by: jerm on March 04, 2006, 02:36:18 PM
Quote from: idahojoe on March 04, 2006, 12:23:44 PM
I read that it only works in the "default" themes. I'm currently using classic because I've modified the theme a bit and it doesn't work with "classic" theme. Is this mod going to work with the classic theme anytime soon?????? ???
its not that it doesn't work on the classic theme, it's that it doesn't install on the classic theme.
I dont think i will make this mod install on the classic theme, because there are just way too many themes out there, and everyone would ask me to make it install on their theme.
Your best bet would be to look into the install.xml file, and see what i edited, and replace it in your files
Sorry..
~jeremy
Title: Re: Ad Management mod
Post by: idahojoe on March 05, 2006, 10:59:21 AM
Can you tell me at least what I need to edit in the install.xml file so that I can get it working on the classic theme? Would be nice if it could install to all themes, old and new. Please help me out a little here as I'm not a computer coder. :D
Title: Re: Ad Management mod
Post by: Prasad007 on March 05, 2006, 12:19:01 PM
Quote from: thetzfreak on February 28, 2006, 06:17:54 PM
Is it possible to use different ad codes for all the different places to display the ads?

Thanks.
thats an awesome idea.
that way i could place my chitika ads on top and google below :)
Title: Re: Ad Management mod
Post by: jerm on March 05, 2006, 01:16:07 PM
Quote from: idahojoe on March 05, 2006, 10:59:21 AM
Can you tell me at least what I need to edit in the install.xml file so that I can get it working on the classic theme? Would be nice if it could install to all themes, old and new. Please help me out a little here as I'm not a computer coder. :D
http://www.simplemachines.org/community/index.php?topic=68632.msg496149#msg496149
hope that post helps you out some..
Title: Re: Ad Management mod
Post by: idahojoe on March 05, 2006, 02:29:50 PM
actually that didn't help at all, I am using version. 1.0.6 and I added your code and got parse errors. I figure this would be a good mod but does no good for users that can't just add it to any theme. Nice try but in order for a user that doesn't have code skills to use it needs to be easier to modify.
Title: Re: Ad Management mod
Post by: jerm on March 05, 2006, 02:31:11 PM
Quote from: idahojoe on March 05, 2006, 02:29:50 PM
actually that didn't help at all, I am using version. 1.0.6 and I added your code and got parse errors. I figure this would be a good mod but does no good for users that can't just add it to any theme. Nice try but in order for a user that doesn't have code skills to use it needs to be easier to modify.
so then you expect me to code this mod for the 100's of themes that are out there?
Title: Re: Ad Management mod
Post by: idahojoe on March 05, 2006, 02:38:05 PM
At least code it so that it works for the two themes that come with SMF "default" and "classic".
Title: Re: Ad Management mod
Post by: Bigguy on March 05, 2006, 02:42:45 PM
It does work with the default theme, I use it right now.
Title: Re: Ad Management mod
Post by: idahojoe on March 05, 2006, 02:53:51 PM
bigguy,
re-read my post... I said at least code it so that it works for the two themes that come with it.
Title: Re: Ad Management mod
Post by: Bigguy on March 05, 2006, 02:57:11 PM
@ idahojoe: Its really not that hard to ad the code manually. Try using This (http://www.mpsoftware.dk/phpdesigner.php) program or This (http://winmerge.sourceforge.net/) That should help out a bit.
Title: Re: Ad Management mod
Post by: idahojoe on March 05, 2006, 08:51:42 PM
I added it manually and I got parse errors. I wonder if it had to do because I wasn't using RC2 or whatever?
Title: Re: Ad Management mod
Post by: Bigguy on March 05, 2006, 08:53:52 PM
What error are you getting ??
Title: Re: Ad Management mod
Post by: idahojoe on March 06, 2006, 12:16:44 AM
The error I got was something along the lines of: "Parse error in index.template.php, something sour has went wrong...."

something like that.
Title: Re: Ad Management mod
Post by: Bigguy on March 06, 2006, 01:03:34 AM
well, that really doesnt help alot. Are you still getting the error ???
Title: Re: Ad Management mod
Post by: idahojoe on March 06, 2006, 02:27:42 PM
Of course I'm not, I took out what was causing the problem. Which was the code that he pasted a few posts before. Like I said, I wonder if I get the parse errors because I'm not using the rc2 version??
Title: Re: Ad Management mod
Post by: binary on March 07, 2006, 06:12:10 AM
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Sources/ModSettings.php Failure
2. Execute Modification ./Themes/default/languages/Modifications.english.php Success
3. Execute Modification ./Themes/default/index.template.php Failure
4. Execute Modification ./Themes/default/BoardIndex.template.php Failure
5. Execute Modification ./Themes/default/Display.template.php Success
6. Execute Modification ./Themes/default/MessageIndex.template.php Success
7. Execute Code install.php


can i get help on this, any help would be great
Title: Re: Ad Management mod
Post by: Bigguy on March 07, 2006, 08:53:51 PM
@ idahojoe: That is possible and probably the reason for the errors.

@ binary: try making those modifications manually to the files that failed to modify. All the directions should be in the .xml file of the zip for that modification. 2 programs I use for modifying files are Winmerge and Php designer 2005 Both awesome programs and they are free.

(I am not affiliated with either program in any way)
Title: Re: Ad Management mod
Post by: binary on March 08, 2006, 12:28:01 AM
Quote from: Bigguy on March 07, 2006, 08:53:51 PM
@ binary: try making those modifications manually to the files that failed to modify. All the directions should be in the .xml file of the zip for that modification. 2 programs I use for modifying files are Winmerge and Php designer 2005 Both awesome programs and they are free.

i not sure how to edit them like where to place the code
Title: Re: Ad Management mod
Post by: azarober on March 08, 2006, 01:36:12 AM
Hi !
  I am REALLY needing help ! trying to instal the mod "ad management mod : ad_mod_rc2_v1-4-1.zip"
which I have downloaded and tryied to install.
I downloaded the BoardMod and tryied to undestand it.
I Undestand thst there are posts explaining the process but i don't understand them: its language and words are for which understand it.
I need to know step by step how to install the "ad management mod : ad_mod_rc2_v1-4-1.zip" with the BoardMod, which i undestand is easier. Thanks in advance.



Roberto Azar
http://eba-stats.com
http://eba-stats.com/forum2
SMF 1.1 RC2
Babylon Theme
Title: Re: Ad Management mod
Post by: jerm on March 08, 2006, 06:59:22 PM
Quote from: binary on March 07, 2006, 06:12:10 AM
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Sources/ModSettings.php Failure
2. Execute Modification ./Themes/default/languages/Modifications.english.php Success
3. Execute Modification ./Themes/default/index.template.php Failure
4. Execute Modification ./Themes/default/BoardIndex.template.php Failure
5. Execute Modification ./Themes/default/Display.template.php Success
6. Execute Modification ./Themes/default/MessageIndex.template.php Success
7. Execute Code install.php


can i get help on this, any help would be great
another mod is conflicting with your mod, or you might be using the wrong ad mod version. remember to use ad_mod_rc2... if your using RC2 SMF, or ad_mod_1-0-6 if your using 1.0.6 SMF
if your using the correct version, try reading this post
http://www.simplemachines.org/community/index.php?topic=34526.0

Quote from: azarober on March 08, 2006, 01:36:12 AM
Hi !
  I am REALLY needing help ! trying to instal the mod "ad management mod : ad_mod_rc2_v1-4-1.zip"
which I have downloaded and tryied to install.
I downloaded the BoardMod and tryied to undestand it.
I Undestand thst there are posts explaining the process but i don't understand them: its language and words are for which understand it.
I need to know step by step how to install the "ad management mod : ad_mod_rc2_v1-4-1.zip" with the BoardMod, which i undestand is easier. Thanks in advance.



Roberto Azar
http://eba-stats.com
http://eba-stats.com/forum2
SMF 1.1 RC2
Babylon Theme

im not understanding exactly what your asking.
are you saying these two mods are conflicting and wont install if the other one is installed?
Title: Re: Ad Management mod
Post by: azarober on March 08, 2006, 10:06:35 PM
No, simply I am saying I don't know HOW to install the mod, I downloaded the 2 elements as said in your post, but i don't know HOW to continue: i am lost ! ...simply
Is there any another way to do it ?

Is this mod  the ONLY way to insert google adsense ONLY into the posts ?

Thanks in advance !

Roberto
http://eba-stats.com
http://eba-stats.com/forum2
SMF 1.1 RC2
Babylon Theme
Title: Re: Ad Management mod
Post by: binary on March 09, 2006, 04:13:02 PM
Quote from: azarober on March 08, 2006, 10:06:35 PM
No, simply I am saying I don't know HOW to install the mod, I downloaded the 2 elements as said in your post, but i don't know HOW to continue: i am lost ! ...simply
Is there any another way to do it ?

Is this mod  the ONLY way to insert google adsense ONLY into the posts ?

Thanks in advance !

Roberto
http://eba-stats.com
http://eba-stats.com/forum2
SMF 1.1 RC2
Babylon Theme

in the package manager in cpanel is where you install the mods.

Title: Re: Ad Management mod
Post by: azarober on March 09, 2006, 04:49:10 PM
Thanks a lot Binary ! Finally I have installed the mod with the following 4 files:

install.php (1570 bytes)
install.xml (8276 bytes)
package-info.xml (574 bytes)
readme.txt (855 bytes)

What to do now ? Where is the .mod file ?
Thanks in advance !


Roberto Azar
http://eba-stats.com
http://eba-stats.com/forum2
SMF 1.1 RC2
Default Theme
Title: Re: Ad Management mod
Post by: jerm on March 09, 2006, 06:11:13 PM
Quote from: azarober on March 09, 2006, 04:49:10 PM
Thanks a lot Binary ! Finally I have installed the mod with the following 4 files:

install.php (1570 bytes)
install.xml (8276 bytes)
package-info.xml (574 bytes)
readme.txt (855 bytes)

What to do now ? Where is the .mod file ?
Thanks in advance !


Roberto Azar
http://eba-stats.com
http://eba-stats.com/forum2
SMF 1.1 RC2
Default Theme
you do not upload the files manually, use the package manager to upload the ziped file
Title: Re: Ad Management mod
Post by: azarober on March 09, 2006, 10:39:41 PM
i used the package manager to upload the ziped file as binary said to me. the mod is uploaded at the package manager and i have this 4 files:

install.php (1570 bytes)
install.xml (8276 bytes)
package-info.xml (574 bytes)
readme.txt (855 bytes)

what's next ?


Roberto Azar
http://eba-stats.com
http://eba-stats.com/forum2
SMF 1.1 RC2
Default Theme

Title: Re: Ad Management mod
Post by: jerm on March 09, 2006, 10:42:28 PM
you click "install" or "proceed" whichever.. to install the mod
Title: Re: Ad Management mod
Post by: azarober on March 09, 2006, 10:50:59 PM
The package manager gives me the
"Ad Management 1.4.1" as mod installed
and give me the options  [uninstall] [list files] [delete]

clicking on files give me the following

"Files in archive ad-mod-rc2-v1-4-1.zip:

install.php (1570 bytes)
install.xml (8276 bytes)
package-info.xml (574 bytes)
readme.txt (855 bytes) "

Thanks in advance !


Roberto Azar
http://eba-stats.com
http://eba-stats.com/forum2
SMF 1.1 RC2
Default Theme

[/list]
Title: Re: Ad Management mod
Post by: jerm on March 09, 2006, 10:53:09 PM
then go into the admin section >features and settings > ads
and input your stuff
Title: Re: Ad Management mod
Post by: azarober on March 09, 2006, 10:57:31 PM
What is "the code": number of google adversiter ?
Title: Re: Ad Management mod
Post by: jerm on March 09, 2006, 10:59:28 PM
the code, is whatever code the advertising company gave to you.. if its google, then it should look something like this:

<script type="text/javascript"><!--
google_ad_client = "pub-*************";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="7508705510";
google_color_border = "CCCCCC";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Title: Re: Ad Management mod
Post by: azarober on March 09, 2006, 11:16:20 PM
GREAT my Sir ! So SIMPLE WITH YOUR HELP !!! My Sincere Gratitute !

But I think i made an error because appears double ads in the same place, i clicked ALL the options: it is correct ?
Can you verify my error ?
Something i must un-check ?

The links at the tree were neutralized: doesn't works !
"eBA Basketball Statistics Forum > Basketball Statistics Creative Analysis > Basketball Statistics Q & A  /  Estadisticas del Basquetbol P & R"

Thanks a lot in advance !

Roberto Azar
http://eba-stats.com
http://eba-stats.com/forum2
SMF 1.1 RC2
Default Theme
Title: Re: Ad Management mod
Post by: jerm on March 10, 2006, 01:59:35 AM
uncheck these
Display ads on Board Index     
Display ads on Thread index    
Display ads on Thread
Title: Re: Ad Management mod
Post by: quattro527 on March 10, 2006, 03:19:59 AM
Quote from: electrohome88 on March 09, 2006, 10:59:28 PM
the code, is whatever code the advertising company gave to you.. if its google, then it should look something like this:

<script type="text/javascript"><!--
google_ad_client = "pub-*************";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="7508705510";
google_color_border = "CCCCCC";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Love this mod!...only wished it would have been released sooner though.  >:( I had someone add some line codes to my index page (to use with PhpAdsNew), and now it doesnt work with my current theme.

Is there a way to place the banners elsewhere, or perhaps add an additional one?  I was planning on using phpadsnew up top, and Google AdSense on the bottom of the page... can someone lead me in the right direction?

My Site: www.audigeeks.com

Thanks!
Title: Re: Ad Management mod
Post by: L.G.S on March 10, 2006, 09:29:07 AM
I am using this to try and get guests to register (http:/www.tactical-illusion.com/board/)

But is there someway I can make it so that if an admin is logged in it does not show?
Title: Re: Ad Management mod
Post by: jerm on March 10, 2006, 12:19:54 PM
Quote from: quattro527 on March 10, 2006, 03:19:59 AM
Love this mod!...only wished it would have been released sooner though.  >:( I had someone add some line codes to my index page (to use with PhpAdsNew), and now it doesnt work with my current theme.

Is there a way to place the banners elsewhere, or perhaps add an additional one?  I was planning on using phpadsnew up top, and Google AdSense on the bottom of the page... can someone lead me in the right direction?

My Site: www.audigeeks.com

Thanks!

you can't display multiple ad code yet.. so its not possible

Quote from: L.G.S on March 10, 2006, 09:29:07 AM
I am using this to try and get guests to register (http:/www.tactical-illusion.com/board/)

But is there someway I can make it so that if an admin is logged in it does not show?
not at the moment. admins have all permissions and can't be denied permissions, so they have to see the ads no matter what. i'll change that in the next release
Title: Re: Ad Management mod
Post by: azarober on March 10, 2006, 02:41:16 PM
Thank You ! Done: unchecked what you said...but...

The links in the three-like manner doesn't works after installing the mod, although this line is checked:

"X Enable inline links
   Enabling this will cause your current location to be drawn in a single line, as opposed to in a tree-like manner."


Where to enable this links ?

Thanks a lot in advance !

Roberto Azar
http://eba-stats.com
http://eba-stats.com/forum2
SMF 1.1 RC2
Default Theme
Title: Re: Ad Management mod
Post by: L.G.S on March 10, 2006, 06:50:10 PM
Quote from: electrohome88 on March 10, 2006, 12:19:54 PM
Quote from: quattro527 on March 10, 2006, 03:19:59 AM
Love this mod!...only wished it would have been released sooner though.  >:( I had someone add some line codes to my index page (to use with PhpAdsNew), and now it doesnt work with my current theme.

Is there a way to place the banners elsewhere, or perhaps add an additional one?  I was planning on using phpadsnew up top, and Google AdSense on the bottom of the page... can someone lead me in the right direction?

My Site: www.audigeeks.com

Thanks!

you can't display multiple ad code yet.. so its not possible

Quote from: L.G.S on March 10, 2006, 09:29:07 AM
I am using this to try and get guests to register (http:/www.tactical-illusion.com/board/)

But is there someway I can make it so that if an admin is logged in it does not show?
not at the moment. admins have all permissions and can't be denied permissions, so they have to see the ads no matter what. i'll change that in the next release


What about some sort of code edit like a if guest page?

As in if you went to a page as a guest it says login (but in this case shows the ad) and if you are logged in it shows nothing.
Title: Re: Ad Management mod
Post by: Celdric on March 11, 2006, 08:22:52 AM
Hi. I just installed the mod on a 1.1 RC2. No error messages while I installed. But when I want to enter the section "features and option" in my admin cp I get this: Fatal error: Cannot redeclare modifyaddmanagement() (previously declared in /home/forumsho/public_html/showcase/Sources/ModSettings.php:256) in /home/forumsho/public_html/showcase/Sources/ModSettings.php on line 281

Actually I have just the shopmod and avatars installed. File permissions are set to 777. Though I'm using not the default template. May be that's the problem?


Update: I guess I found the reason for the problem. Kind of installation glitch.
Title: Re: Ad Management mod
Post by: azarober on March 13, 2006, 02:29:00 PM
Hi !
Finally with your help, the mod is working fine,
but after installing the mod
the links at the three-like manner ....

" Simple Machines Community Forum > SMF Development > SMF Coding Discussion > Mods and Packages > Post reply "

....doesn't works
,
were neutralized: just doesn't works !

At Configuration > Current Theme > Themes and Settings
this line is checked:

"X Enable inline links
   Enabling this will cause your current location to be drawn in a single line, as opposed to in a tree-like manner."

Where to enable those lost links ?

Thanks a lot in advance !

Roberto Azar
http://eba-stats.com
http://eba-stats.com/forum2
SMF 1.1 RC2
Default Theme
Title: Re: Ad Management mod
Post by: jerm on March 13, 2006, 05:16:13 PM
it is an ad post.. no links inside the post will work.
Title: Re: Ad Management mod
Post by: azarober on March 13, 2006, 05:37:28 PM
I am not speaking about the ad after the first post, but about the links at the home page of the forum....

And what with the three-like manner ....

" Simple Machines Community Forum > SMF Development > SMF Coding Discussion > Mods and Packages > Post reply "

at the bottom, it doesn't work too...

It does means that i must to decide or ad or links ?

Thanks a lot in advance !

Roberto Azar
http://eba-stats.com
http://eba-stats.com/forum2
SMF 1.1 RC2
Default Theme
Title: Re: Ad Management mod
Post by: jerm on March 13, 2006, 06:02:35 PM
this is not an issue with the ad mod, its either with your theme or with smf.. so you should post this issue somewhere else
Title: Re: Ad Management mod
Post by: azarober on March 13, 2006, 06:12:20 PM
Ok! Thanks a lot for your help, support, attention & answers !!!

Roberto
Title: Re: Ad Management mod
Post by: observ on March 16, 2006, 06:10:47 AM
Quote from: electrohome88 on February 25, 2006, 02:17:36 PM
Quote from: observ on February 24, 2006, 06:31:41 AM
I am not one of the people that knows the best to work with this stuff. I would like some help in installing this mod. I tryied to search for what i needed on the posts made before but i didn't find anything.
I would like some installing tutorial like:
You upload the files in this directory http/smf/etc..(where? exactly)
You go to this url: http://smf/etc/install.php
And so on, this is what i would like to see. For newbies like me that don't know much of it.
you have to use the package manager to install this mod, you dont upload it directly to any folder.. you upload it with the package manager, that can be found in the admin section

I don't have that option enabled. I can't install packages, because my hosting server is using safemode, so it won't allow me to install, only manual edit files that needs editing.
Title: Re: Ad Management mod
Post by: Bigguy on March 16, 2006, 08:58:53 PM
I have tried to manually add this mod to 1.06 everything looks fine except when I go to "features and Options" in the admin panel I get this:

QuoteParse error: syntax error, unexpected ',' in /home/*****/public_html/smf/source/Sources/ModSettings.php on line 309
Title: Re: Ad Management mod
Post by: jerm on March 16, 2006, 09:21:38 PM
Quote from: Bigguy on March 16, 2006, 08:58:53 PM
I have tried to manually add this mod to 1.06 everything looks fine except when I go to "features and Options" in the admin panel I get this:

QuoteParse error: syntax error, unexpected ',' in /home/*****/public_html/smf/source/Sources/ModSettings.php on line 309
either paste the contents of the file here, or pm me the file so that i can look into it
Title: Re: Ad Management mod
Post by: Bigguy on March 16, 2006, 09:41:39 PM
Actually I just got it to work. I installed it on a test server through package manager and then uploaded the other modsettings.php file to the forum I was modding. Thanks for the quick reply though.
Title: Re: Ad Management mod
Post by: Bigguy on March 16, 2006, 10:41:23 PM
I know thee are supposed to be permissions for each member group with this mod but I cant find then anywhere on my one forum that I am modifying, I can on the second one though. I can see the banner I put up but no one else can. What did I miss, like what code do I add ot get the permissions for this to show up in 1.0.6
Title: Re: Ad Management mod
Post by: jerm on March 16, 2006, 10:59:43 PM
if your using the most current version, the code for the permissions is at the bottom of the install.xml file
Title: Re: Ad Management mod
Post by: Bigguy on March 16, 2006, 11:06:05 PM
Is there a code I can insert somewhere that will just automatically show the ads for everyone guests included and just bypass the permissions for them ???
Title: Re: Ad Management mod
Post by: jerm on March 16, 2006, 11:13:50 PM
so if im understanding what your saying, you dont want to have the permissions feature installed. the reason why your having an issue is cause i think you installed this manually, and in the package, a script named install.php runs with sets the default value so that everyone can view the ads.
to remove the permissions completely, you will have to go through all the "if" statements that you had to put in for my ad mod, and take out && allowedTo('ad_manageperm')
be sure the ( brackets ) match up properly when you do this..
Title: Re: Ad Management mod
Post by: Bigguy on March 16, 2006, 11:21:59 PM
Ok I sort of understand that. How would I get the permissions to show in the admin panel for this. (manually)
Title: Re: Ad Management mod
Post by: jerm on March 16, 2006, 11:23:41 PM

<file name="$sourcedir/ManagePermissions.php">
<operation>
<search for position="replace"><![CDATA[ 'pm' => array(]]>
</search>
<add><![CDATA[ 'ad_manage' => array(
'ad_manageperm' => false,
),
'pm' => array(]]>
</add>
</operation>
</file>
Title: Re: Ad Management mod
Post by: Bigguy on March 16, 2006, 11:30:49 PM
Yep that added the permissions, thank you for your time, it is greatly appreciated :)
Title: Re: Ad Management mod
Post by: woolly bugger on March 17, 2006, 09:35:59 AM
Help please....

I'm trying to install this mod....

uploaded files to the /forum dir and ran the install.php this is what I get:

QuoteFatal error: Call to undefined function: db_query() in /www/k/kcomm/htdocs/forum/install.php on line 3


Title: Re: Ad Management mod
Post by: Bigguy on March 17, 2006, 11:39:50 AM
It could be conflicting with another mod. How did you upload it ??? Sometimes ftp will make all the files 0kb Did you use the package manager to upload this ???
Title: Re: Ad Management mod
Post by: jerm on March 17, 2006, 11:49:28 AM
Quote from: woolly bugger on March 17, 2006, 09:35:59 AM
Help please....

I'm trying to install this mod....

uploaded files to the /forum dir and ran the install.php this is what I get:

QuoteFatal error: Call to undefined function: db_query() in /www/k/kcomm/htdocs/forum/install.php on line 3



you have to use the package manager to install this mod, you dont upload it to your forum through ftp
Title: Re: Ad Management mod
Post by: sprattzer on March 19, 2006, 05:06:18 PM
Hello I uploaded the zip file in package manager but there is no option to install it and since there wuz none I thought that it wuz already installed but when I went to look to see if the tab wuz there for it it wuznt. can u help me? My host is telling me to get the ad codes up!!
Title: Re: Ad Management mod
Post by: sprattzer on March 19, 2006, 05:31:09 PM
ok fixed it thanks. can u use this as a banner display??
Title: Re: Ad Management mod
Post by: jerm on March 19, 2006, 05:51:32 PM
Quote from: sprattzer on March 19, 2006, 05:31:09 PM
ok fixed it thanks. can u use this as a banner display??
ya, just put the correct code in the textarea box
Title: Re: Ad Management mod
Post by: sprattzer on March 19, 2006, 07:46:53 PM
i tried putting [img]......gif[img]
Title: Re: Ad Management mod
Post by: jerm on March 19, 2006, 07:51:29 PM
it needs to be html code, so <img src="location of the picture" />
Title: Re: Ad Management mod
Post by: sprattzer on March 20, 2006, 09:05:10 AM
oh thanks!! but im more worried about ma ad codes and in the template im using its not working! help
Title: Re: Ad Management mod
Post by: True Knight on March 21, 2006, 08:35:32 AM
I'm also trying to get Ads using this mod in my board with the Amber theme. I have installed the mod but have no luck.

I would like a banner ad at the top under the head and some ads on the left under the stats. Can anyone help?

Thanks!
Title: Re: Ad Management mod
Post by: jerm on March 21, 2006, 02:40:08 PM
if your using a custom theme, you will have to install it manually on your custom theme. but please still install the mod, then install it on your custom theme yourself
Title: Re: Ad Management mod
Post by: True Knight on March 21, 2006, 02:44:03 PM
How do I manually install it. I have already installed the mod using the package manager.


Thanks
Title: Re: Ad Management mod
Post by: jerm on March 21, 2006, 02:47:41 PM
hopefully this post might help you
http://www.simplemachines.org/community/index.php?topic=34526.0
Title: Re: Ad Management mod
Post by: deadpoeticstar on March 21, 2006, 02:57:12 PM
i tried using the mod and an error came up...(using version .6)
Title: Re: Ad Management mod
Post by: jerm on March 21, 2006, 02:58:31 PM
Quote from: deadpoeticstar on March 21, 2006, 02:57:12 PM
i tried using the mod and an error came up...(using version .6)
that doesn't really help unless i know what error came up. and odds are another mod is conflicting with my mod
Title: Re: Ad Management mod
Post by: deadpoeticstar on March 21, 2006, 03:04:11 PM
Install Actions for archive ad_mod_rc2_v1-5.zip:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. 


whats weird is that i was able to use it before even after i upgraded to .6
Title: Re: Ad Management mod
Post by: jerm on March 21, 2006, 03:06:35 PM
so your using smf 1.0.6 ?
Title: Re: Ad Management mod
Post by: deadpoeticstar on March 21, 2006, 03:07:30 PM
yes i am....(reason i say before is cause i ran into some issues previous times and had to remove and recreate my forum)
Title: Re: Ad Management mod
Post by: jerm on March 21, 2006, 03:08:45 PM
you will have to install this version of my mod then:

ad_mod_1-0-6_v1-0-2.zip
Title: Re: Ad Management mod
Post by: deadpoeticstar on March 21, 2006, 03:10:14 PM
can you give a link to it? and tell me where i would have to insert the code?
Title: Re: Ad Management mod
Post by: jerm on March 21, 2006, 03:13:57 PM
i'm not really following you.
http://mods.simplemachines.org/index.php?mod=255
go there and download the mod i suggested, then use the package manager to upload and install the mod
if you wnt to install it manually, a few posts back i gave a link on how to do that
Title: Re: Ad Management mod
Post by: deadpoeticstar on March 21, 2006, 03:16:16 PM
thanks that did the trick :)
Title: Re: Ad Management mod
Post by: boogiedown on March 21, 2006, 03:34:54 PM
Nice mod! I like the update today to for rc1. the only problem i have, when using the default them and show banner "above menu", it doesnt look good layoutwise. I was thinking i wanted my ads in the "you have 2 messages" area but then relized they can shrink that area.

How about adding next to the forum logo, top right. to replace or go next to the logo. i will have my logo turned off though. that what im looking for :)

(http://www.retrolution.com/banner.jpg)
Title: Re: Ad Management mod
Post by: jerm on March 21, 2006, 04:00:09 PM
ya, im glad you realized you can shrink the section cause thats why i didnt put ads in there.. its a nice spot, i admit, but the shrinking factor makes it useless

the above menu doesn't look all that great, but way back when i first made this mod, someone requested it and i said i was gonna put it in, so thats why its there.. some people mod up their forum and dont have any of that top part, so the ad actually displays on the top of their page

i'll look into adding it to the section you requested.
Title: Re: Ad Management mod
Post by: boogiedown on March 21, 2006, 04:15:05 PM
I think the "above menu" is a good spot, just doesnt work on the default theme. Im sure it would have worked great on my old one, or other themes out there.
Title: Re: Ad Management mod
Post by: deadpoeticstar on March 22, 2006, 04:17:33 PM
ok there is one issue and that is when i add other themes...the ads wont display
Title: Re: Ad Management mod
Post by: Bigguy on March 22, 2006, 11:52:10 PM
You have to manually edit any other theme but the default theme in order for the ads to work right on another theme other than the default.

Quote from: deadpoeticstar on March 22, 2006, 04:17:33 PM
ok there is one issue and that is when i add other themes...the ads wont display
Title: Re: Ad Management mod
Post by: deadpoeticstar on March 23, 2006, 09:00:13 AM
how would i go about doing that? what would i have to modify so i can?
Title: Re: Ad Management mod
Post by: Bigguy on March 23, 2006, 03:10:29 PM
Look at the install.xml file that comes with the mod in there is all the code needed to change to another theme. You will probably have to edit the index.template.php and the boardindex.php and a couple others to get it to work on another theme. I cant quite exactly remember which ones but it does say in the xml file.
Title: Re: Ad Management mod
Post by: idahojoe on March 26, 2006, 06:07:03 PM
I followd a few links posted in this thread a few pages back, after I did that I got Parse errors. I'm trying to get this to work on the "CLASSIC" Theme with no luck. Is anyone willing to help me with getting it installed? I'm using SMF Version 1.0.6
Title: Re: Ad Management mod
Post by: dextrous on March 27, 2006, 04:49:38 AM
Ok, I have SMF 1.1 RC2. The ad_mod_rc2_v1-2.zip worked fine. Then I uninstalled it and tried to apply...ad_mod_rc2_v1-5.zip...but when I go to install it gives me this error...

Execute Modification ./Themes/default/index.template.php Test failed

Everything passes the test. Have you tested it?
Title: Re: Ad Management mod
Post by: Bigguy on March 27, 2006, 10:47:55 AM
All you have to do is put the edits in the index.template.php of the theme you are using and it will work.
Title: Re: Ad Management mod
Post by: dextrous on March 27, 2006, 10:32:23 PM
Quote from: Bigguy on March 27, 2006, 10:47:55 AM
All you have to do is put the edits in the index.template.php of the theme you are using and it will work.

I don't I follow  :(
Title: Re: Ad Management mod
Post by: jerm on March 27, 2006, 10:35:27 PM
another mod is conflicting with my mod.
you can try installing it anyways and see if it works
Title: Re: Ad Management mod
Post by: ynneb on March 30, 2006, 12:19:50 AM
I have the most recent installation of SMF and when i try to install any of the Versions I get an error saying the package is corrupt or incompatiable with this version.
Title: Re: Ad Management mod
Post by: Prasad007 on March 30, 2006, 12:23:45 AM
Quote from: ynneb on March 30, 2006, 12:19:50 AM
I have the most recent installation of SMF and when i try to install any of the Versions I get an error saying the package is corrupt or incompatiable with this version.
then try downloading then uploading the package.
Title: Re: Ad Management mod
Post by: jerm on March 30, 2006, 12:32:20 AM
oh.. i will have to update it so it installs on 1.0.7, thanks for letting me know

done.. theres nothing new at all with this version, it just allows you to install it on 1.0.7 now
Title: Re: Ad Management mod
Post by: carlatf on March 30, 2006, 10:19:06 AM
Hi,
I got an error when I tried to installed so I started to do the rest manually.
The problem is in the file index.template.php

1-

file name="$themedir/index.template.php">
   <operation>
      <search position="replace"><![CDATA[   template_menu();]]></search>


I have NO line template_menu();
The most similar I have is

        <div align="left" style="padding-top: 4px;">
                ', template_menu(), '
        </div>';

It's the same thing?
Can I replace the code like this



//Ad management code to display ads on top of the menubar

if ($modSettings['ad_management_index_above'] && allowedTo('ad_manageperm'))
   echo '<div align="',$modSettings['ad_management_align'],'">',$modSettings['ad_management_content'],'</div>';

   <div align="left" style="padding-top: 4px;">
                ', template_menu(), '
        </div>';

//Ad management code to display ads on the bottom of the memubar

if ($modSettings['ad_management_index_below'] && allowedTo('ad_manageperm'))
   echo '<div align="',$modSettings['ad_management_align'],'">',$modSettings['ad_management_content'],'</div>';
   
   
2- <search position="replace"><![CDATA[function template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt;]]>
</search>


I've got TWO of these:

function template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '</td>
   </tr></table><br />';
   

and

// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   // Show the [home] and [help] buttons.


Do I have to add the data on both?


Many thanks for reading such a long msg.
Best,
Carla
Title: Re: Ad Management mod
Post by: ynneb on March 30, 2006, 04:55:41 PM
Thanks, I am still getting the same error message.
Please excuse my ignorance but is my procedure correct?
I download the zip file to my computer, then upload it as it is to my forum.
Then run the install process.

Is this correct.

BTW I am using the latest Release cantidate that is available for down load.Is this the one you enabled for 1.0.7 ?
Title: Re: Ad Management mod
Post by: jerm on March 30, 2006, 11:40:54 PM
it appers to me that you are both using 1.0.* version of SMF?
if thats correct, you will need to download ad_mod_1-0-7_v1-0-2b.zip
Title: Re: Ad Management mod
Post by: ynneb on March 31, 2006, 01:26:37 AM
That worked superbly. You are a fabulous contributor.
Thanks so much for sharing this. :)

I just put a Flash banner in frontpage, copeid the code and pasted it into the your management winodw and every thing worked perfectly first go. http://machsupport.com/forum/index.php

I wonder if there is a random html script so that i could display different adds randomly?

Thanks again electro.. :)
Title: Re: Ad Management mod
Post by: carlatf on March 31, 2006, 07:50:25 PM
Quote from: electrohome88 on March 30, 2006, 11:40:54 PM
it appers to me that you are both using 1.0.* version of SMF?
if thats correct, you will need to download ad_mod_1-0-7_v1-0-2b.zip
Hi, sorry I forgot to post that, I'm using the SMF 1.1rc2 version. Updated with the last patch.

Title: Re: Ad Management mod
Post by: jerm on March 31, 2006, 11:08:07 PM
Quote from: carlatf on March 31, 2006, 07:50:25 PM
Quote from: electrohome88 on March 30, 2006, 11:40:54 PM
it appers to me that you are both using 1.0.* version of SMF?
if thats correct, you will need to download ad_mod_1-0-7_v1-0-2b.zip
Hi, sorry I forgot to post that, I'm using the SMF 1.1rc2 version. Updated with the last patch.


custom theme?
my mod only installs on the default theme..
Title: Re: Ad Management mod
Post by: eriktm on April 01, 2006, 12:55:23 PM
Can I use php?
Title: Re: Ad Management mod
Post by: jerm on April 01, 2006, 12:56:52 PM
Quote from: Erik™ on April 01, 2006, 12:55:23 PM
Can I use php?
nope.. i've tried a few times, and it just gives me errors
Title: Re: Ad Management mod
Post by: eriktm on April 01, 2006, 01:01:38 PM
But if I wanna use the include(); function...
Title: Re: Ad Management mod
Post by: jerm on April 01, 2006, 01:02:40 PM
why not just grab everything in that file, and place it in the textarea box instead?
Title: Re: Ad Management mod
Post by: nattydread on April 02, 2006, 12:02:45 PM
hello,
I have read this long forum,
I have an error when try to install the mod
./Themes/default/Display.template.php     Test failed
Strange because this is a new installation of the forum and in the previous installation (that unluckely went broken) I have had no problems with this mod...

I am running: joomla 107
smf bridge
SMF Integration version is 1.1 RC2 patch3
Latest Joomla-SMF Forum Version is 1.1RC2
AD MANAGEMENT Version 1.5 Mar 19, 2006

Before to attempt to install the mod I unwrapped the board
and unpatched as suggested.
I am using the default theme.

Do you think it could be fixed?

thanks
Title: Re: Ad Management mod
Post by: jerm on April 02, 2006, 01:25:00 PM
heres your options..
install anways with the error
if you dont use the options "Display ads on thread" or "display ads after first post"
you wont have any problem using my mod..

if you do use one of those options, you will have to manually edit the file.. something got screwed up with your files. look in the install.xml for what to edit
Title: Re: Ad Management mod
Post by: nattydread on April 02, 2006, 04:29:40 PM
Quotesomething got screwed up with your files. look in the install.xml for what to edit
do you meanthat another mod could have screwed?
for brevity I have odmitted to say that below the error message a part of a file was shown, and there a particular line is marked in red. It is something about a slash or a tag, couldn't remember.
Do  you think I can try fix it this one?

Sorry if I look like dummy but I am little afraid to put the hands on the code of this boar, it seems a little critical. Few days ago I had a board apparently perfectly working and then, after have installed a mod everything stopped to work.
It was something very bad (coul'nt doing nothing since the error just doesn't allowed me to ener ion no way in any part of the board to correct the issue!) then  I had to rebuild everything from scratch and it costed to me several oter days of work......that's why I am so prudent and I think is  better to ask to the master progrsammer.
Title: Re: Ad Management mod
Post by: jerm on April 02, 2006, 04:32:05 PM
lol, well i dont consider myself a master programmar.. but i'll take the complement :)

and yes, i think another mod might be conflicting with my mod
cause i've tested this on multiple forums and it installs fine
Title: Re: Ad Management mod
Post by: nattydread on April 02, 2006, 04:50:38 PM
btw you have masterd the code to make this mod, so the compliment is confirmed ;)

and, as far as you knowe, is it there a way to know which is the one causing the conflict?
Title: Re: Ad Management mod
Post by: jerm on April 02, 2006, 11:17:01 PM
pm me your display.template.php file..
Title: Re: Ad Management mod
Post by: nattydread on April 03, 2006, 11:21:57 AM
sorry mate for delay (I am from Italy) also I didn't get notified about your answer, I just occasionally found it. Ok I find  the file and PM it to ya.



(I have a board and child board so I think I need to use all the possibilities of the mod)

Thanks.

ops, I have tried but the message exceed the max allowed nr of characters allowed and have not been send..
I look if I find an email in your profile where to send it.

What a cool site you have!
Title: Re: Ad Management mod
Post by: carlatf on April 03, 2006, 08:50:59 PM
Quote
custom theme?
my mod only installs on the default theme..

I'm using a modified version of the SAF theme.
I planned to do all the needed modifications manually, isn't this possible so?

best.
Carla
Title: Re: Ad Management mod
Post by: jerm on April 03, 2006, 10:17:12 PM
Quote from: carlatf on April 03, 2006, 08:50:59 PM
Quote
custom theme?
my mod only installs on the default theme..

I'm using a modified version of the SAF theme.
I planned to do all the needed modifications manually, isn't this possible so?

best.
Carla


yes its possible
Title: Re: Ad Management mod
Post by: L.G.S on April 04, 2006, 07:57:35 AM
Can somebody tell me how to remove the background colour of the top index area?

I need it so that its just whatever code I unput (for example like the ads on the bottom of the index) please
Title: Re: Ad Management mod
Post by: aussieholden on April 04, 2006, 10:39:09 AM
I am having trouble with this mod I have put this code in to make a banner clickable as well but it affecting the board.

<a href="http://www.aussieholden.com"><img src="http://www.deepbluehosting.com/~aussieh/pics/KidneyHealthAustralia2006.jpg"/></a>

Is there something missing in this code or is it ok as when i use it it makes evey link highlight.
Title: Re: Ad Management mod
Post by: L.G.S on April 04, 2006, 10:56:37 AM
What does it do to your board?
Title: Re: Ad Management mod
Post by: aussieholden on April 04, 2006, 11:13:30 AM
As already stated

Quoteas when i use it it makes evey link highlight.

All links on the board are highlighted at the same time also affects the courser and makes it difficult to type or click somewhere else. The image code is ok but when the link is added that's when it affects the board.
Title: Re: Ad Management mod
Post by: L.G.S on April 04, 2006, 11:39:34 AM
at the end of the img tag it shouldn't be /> it should just be >
Title: Re: Ad Management mod
Post by: kegobeer on April 04, 2006, 11:43:12 AM
Quote from: L.G.S on April 04, 2006, 11:39:34 AM
at the end of the img tag it shouldn't be /> it should just be >

Actually, for XHTML compliance the closing / needs to be there (to properly close the img tag.)


<img src="http://test.com/image.jpg" alt="test image" />
Title: Re: Ad Management mod
Post by: L.G.S on April 04, 2006, 01:27:27 PM
So Dreamweaver is breaking compliance guidelines?
Title: Re: Ad Management mod
Post by: kegobeer on April 04, 2006, 01:33:05 PM
I guess that depends on whether Dreamweaver is configured for XHTML or HTML compliance.  Closing an img tag only applies to XHTML.
Title: Re: Ad Management mod
Post by: L.G.S on April 04, 2006, 01:53:55 PM
ok.

Could anyone please tell me how to remove the bg colour from the index area please?
Title: Re: Ad Management mod
Post by: jerm on April 04, 2006, 02:06:00 PM
Quote from: aussieholden on April 04, 2006, 10:39:09 AM
I am having trouble with this mod I have put this code in to make a banner clickable as well but it affecting the board.

<a href="http://www.aussieholden.com"><img src="http://www.deepbluehosting.com/~aussieh/pics/KidneyHealthAustralia2006.jpg"/></a>

Is there something missing in this code or is it ok as when i use it it makes evey link highlight.

thats odd.. i can't quite figure it out yet why thats happening. it only happends when you input that code in my mod?

Quote from: L.G.S on April 04, 2006, 07:57:35 AM
Can somebody tell me how to remove the background colour of the top index area?

I need it so that its just whatever code I unput (for example like the ads on the bottom of the index) please

your using a custom theme.. try putting the code in a <td> .. </td>
Title: Re: Ad Management mod
Post by: L.G.S on April 04, 2006, 04:05:57 PM
I'm not good with coding, an example please?
Title: Re: Ad Management mod
Post by: aussieholden on April 04, 2006, 09:17:34 PM
Thanks guys that fixed it just by removing the "/" it's stopped highlighting all the links at the same time.
Title: Re: Ad Management mod
Post by: jerm on April 04, 2006, 10:24:44 PM
Quote from: aussieholden on April 04, 2006, 09:17:34 PM
Thanks guys that fixed it just by removing the "/" it's stopped highlighting all the links at the same time.

glad to know you got it fixed :)
Title: Re: Ad Management mod
Post by: L.G.S on April 05, 2006, 06:07:07 AM
Quote from: aussieholden on April 04, 2006, 09:17:34 PM
Thanks guys that fixed it just by removing the "/" it's stopped highlighting all the links at the same time.

Wooo I knew it ;)
Title: Re: Ad Management mod
Post by: carlatf on April 05, 2006, 06:03:47 PM
Hi,

I got a rare "Incorrect table name ''
Archivo: /var/www/users/escuela/acidobase.com.ar/public_html/foros/Packages/temp/install.php
Línea: 3


when I was trying to install the mod.

Now everytime I try to go to the Server settings in the Administration panel  I get "unable to load 'show_settings'."

I did a little research and the only files that contains show_settings are  modsettings.php and manageserver.php.

This mod just modify modsetting, so I checked to see if it had modified something wrong but everything seems ok, there's no trace of the mod in modsettings.php

Any ideas about what else to look for?

Carla
Title: Re: Ad Management mod
Post by: boogiedown on April 05, 2006, 07:13:08 PM
Quote from: boogiedown on March 21, 2006, 03:34:54 PM
How about adding next to the forum logo, top right. to replace or go next to the logo. i will have my logo turned off though. that what im looking for :)

(http://www.retrolution.com/banner.jpg)

Can anyone help me code it to where ill get an ad in the top right of the default theme? Thanx
Title: Re: Ad Management mod
Post by: jerm on April 06, 2006, 12:25:51 AM
Quote from: carlatf on April 05, 2006, 06:03:47 PM
Hi,

I got a rare "Incorrect table name ''
Archivo: /var/www/users/escuela/acidobase.com.ar/public_html/foros/Packages/temp/install.php
Línea: 3


sorry.. i dont know that error. best try to post it in the support board

Quote from: boogiedown on April 05, 2006, 07:13:08 PM

Can anyone help me code it to where ill get an ad in the top right of the default theme? Thanx

index.template.php
look for this line
               <img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';
Title: Re: Ad Management mod
Post by: yerg on April 06, 2006, 04:02:36 AM
I'm using Epsilon and modified it to suit my needs.

I'm at a total loss here as to what to include where.

It appears I can't use any php includes statement to grab images and their respective links.

I'm no rocket scientist but I'm no idiot either and can't find any logical isntructions as to what code I can use to call these ads.

Assistance greatful  :-[
Title: Re: Ad Management mod
Post by: jerm on April 06, 2006, 01:34:44 PM

//Ad management code to display ads on the bottom of the memubar

if ($modSettings['ad_management_index_below'] && allowedTo('ad_manageperm'))
echo '<div align="',$modSettings['ad_management_align'],'">',$modSettings['ad_management_content'],'</div>';



this is activated when you check "Display ads below the menu on all pages"
Title: Re: Ad Management mod
Post by: yerg on April 06, 2006, 06:34:13 PM
so where is it grabbing the ads from?

The admin panel says "Any valid html code may be written here."

May be I've got the bull by the horns here but is this for those Google ad things only. Cos if so I best remove the code and stop wasting my time.

I have 25 businesses wishing to advertise on my forum and I've got images and links. I used to use, on another forum,  a simple php rotation script which I normally insert using a simple includes, may be I'm best hardcoding this into the template some way and forget this Mod.  :(

Title: Re: Ad Management mod
Post by: Yana on April 12, 2006, 07:29:03 AM
Quote from: electrohome88 on April 06, 2006, 12:25:51 AM
Quote from: carlatf on April 05, 2006, 06:03:47 PM
Hi,

I got a rare "Incorrect table name ''
Archivo: /var/www/users/escuela/acidobase.com.ar/public_html/foros/Packages/temp/install.php
Línea: 3


sorry.. i dont know that error. best try to post it in the support board

I am sorry, I have got the same error
It's only way to solve. Replace {$db_prefix} with smf_ in install.php
Title: Re: Ad Management mod
Post by: L.G.S on April 12, 2006, 08:23:04 AM
Can somebody tell me what I need to edit and add to change the background colour of it please?
Title: Re: Ad Management mod
Post by: jerm on April 12, 2006, 01:51:17 PM
try putting the add code inside a <div style="color:#FF0000;">... </div> tag

replace #FF0000 with the colour you want.
Title: Re: Ad Management mod
Post by: L.G.S on April 12, 2006, 03:04:39 PM
I tried and it hasnt changed anything
Title: Re: Ad Management mod
Post by: jerm on April 12, 2006, 08:10:19 PM
rc2 or 1.0.7 ?
Title: Re: Ad Management mod
Post by: L.G.S on April 13, 2006, 06:22:36 AM
RC2
Title: Re: Ad Management mod
Post by: jerm on April 13, 2006, 09:44:57 AM
assuming you've checked off "display ads on index..."

index.template.php, look for
if ($modSettings['ad_management_index'] && allowedTo('ad_manageperm'))
echo '<br /><div align="center">',$modSettings['ad_management_content'],'</div>';

and put
if ($modSettings['ad_management_index'] && allowedTo('ad_manageperm'))
echo '<table><tr><td><div align="center">',$modSettings['ad_management_content'],'</div></td></tr></table>';


put the color code inside the <td>.. i trust you know how to do that


be aware now.. that when you go to uninstall my mod, it will cause an error and you will have to manually uninstall it yourself (just for the pages where you'ved edited my code)
Title: Re: Ad Management mod
Post by: L.G.S on April 13, 2006, 02:48:29 PM
all it did was left align the ads
Title: Re: Ad Management mod
Post by: snider on April 13, 2006, 07:36:28 PM
Has anyone gotton this to work with the classic theme?
I have updated the install.xml to look in to the /classic folder and actually get a solid 1st round try at the install after that but now I am stuck.
Just doesn't want to install or work at all for me.
I get

1.     Execute Code     install.php     
2.    Execute Modification    ./Sources/ModSettings.php    Failure
3.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Failure
4.    Execute Modification    ./Themes/classic/index.template.php    Failure
5.    Execute Modification    ./Themes/classic/BoardIndex.template.php    Success
6.    Execute Modification    ./Themes/classic/Display.template.php    Success
7.    Execute Modification    ./Themes/classic/MessageIndex.template.php    Success

If its something as easy as sending me the files please do . I tried adding the code as stated around page 11 but it doesn't work , it says there are errors (not specific ) and make me resort back to the default theme.
Title: Re: Ad Management mod
Post by: Bigguy on April 14, 2006, 09:05:25 AM
What other mods do you have installed. ? Is one conflicting with this one. ???
Title: Re: Ad Management mod
Post by: jerm on April 15, 2006, 12:10:31 AM
2.    Execute Modification    ./Sources/ModSettings.php    Failure
there is am another mod conflicting with this one..

3.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Failure
this file can easily be edited.. its only copy pasting code

i would highly suggest installing this on a test forum first as i have NOT tested this on the classic theme
Title: Re: Ad Management mod
Post by: Saipan_Jon on April 15, 2006, 11:00:50 AM
I haven't read this entire thread, so this might have been posted above.  A great new feature for this mod would be to have the option of incorporating multiple ads and having a random generator (or assigned values) decide which ad is displayed.  I am running a phpbb forum on another site and installed a similar mod that gives you an unlimited number of ads.  It is very handy becuase I can use differnent sizes and shapes and determine their effectiveness by using google ad channels.

Anyway, thanks for the mod.  It is a lot easier than coding it into the templates, which is what I was doing before.
Title: Re: Ad Management mod
Post by: geezmo on April 16, 2006, 09:08:06 PM
Hello. Does this work with Bloc's Amber theme?
Title: Re: Ad Management mod
Post by: houston on April 16, 2006, 10:49:34 PM
It works in other TP themes that I have loaded. So it should work in his amber theme as well.
Title: Re: Ad Management mod
Post by: matt l on April 18, 2006, 12:50:04 AM
what a great mod.......I just stuck it in and I think it was the best one so far that i have put in.

Is there a way to place different ads in different postions with this? (i.e. Ad one at the bottom, Ad 2 at the top, Ad 3 on board #1, and so on)

Is there a way to make the ad rotate without having to code it? (like the news fader)

I am using it with the default theme and was wonderning if there is a way to place an ad in the big empty space to the right of the text that shows the unread post and time logged in and so on at the top of the page above the search bar?

so far I see that I can just place one single ad or a group of ads........I think.....I might be missing something...
Title: Re: Ad Management mod
Post by: jerm on April 18, 2006, 12:55:12 AM
no your not missing anything. i haven't coded it yet. classes ended. projects and finals to do. i can't really focus on coding the ad mod at the momement. i will get back to it in a few weeks
Title: Re: Ad Management mod
Post by: matt l on April 18, 2006, 01:01:46 AM
Cant wait for the next version. :D
Title: Re: Ad Management mod
Post by: .Darkman on April 19, 2006, 03:08:14 AM
does this work in default theme
bcoz i use helios multi
Title: Re: Ad Management mod
Post by: Bigguy on April 19, 2006, 03:13:18 AM
It works with any theme but if you use anything other than the default you will have to do a bit of manual editing.
Title: Re: Ad Management mod
Post by: geezmo on April 19, 2006, 03:37:54 AM
Hmm what manual editing do we need to do if we install it via "Packages?" I'm using the Amber theme.
Title: Re: Ad Management mod
Post by: .Darkman on April 19, 2006, 07:19:39 AM
what manual editing
Title: Re: Ad Management mod
Post by: eriktm on April 19, 2006, 07:25:22 AM
To get a mod working with a theme the author (in this case electrohome88) have written it in, you must go into some files and edit some lines... :P
Title: Re: Ad Management mod
Post by: geezmo on April 19, 2006, 09:01:12 AM
I tried installing this mod into my Amber theme and everything goes fine until the final step, where I press "Proceed" right after the execution test has passed. After I clicked the button the page just becomes white blank then freezes.

I changed my theme back to default but the same problem happened. How to solve this?
Title: Re: Ad Management mod
Post by: .Darkman on April 19, 2006, 09:14:18 AM
Quote from: Erik™ on April 19, 2006, 07:25:22 AM
To get a mod working with a theme the author (in this case electrohome88) have written it in, you must go into some files and edit some lines... :P
can you elaborate on it please
i installed the mod and everyting is fine even i could see the controls for the mod.
but the ads don't seem to show up any where
Title: Re: Ad Management mod
Post by: eriktm on April 19, 2006, 11:24:43 AM
Have you checked the boxes where it shall be shown?
:-\
Title: Re: Ad Management mod
Post by: Bigguy on April 19, 2006, 01:03:19 PM
In your admin panel under "Packages" Go to the "ad management" mod and click "list files" Then click on the "install.xml" file. In this file you will see sections like this:

<file name="$sourcedir/ModSettings.php">
<operation>
<search position="replace"><![CDATA[
'layout' => 'ModifyLayoutSettings',]]>
</search>

<add><![CDATA[
'layout' => 'ModifyLayoutSettings',
'ad_management' => 'ModifyAddManagement',]]>
</add>
</operation>



This part shows what file to edit==>> <file name="$sourcedir/ModSettings.php">

<operation>
This tells you what you are going to do when you find the place to edit.<search position="replace"><![CDATA[
      'layout' => 'ModifyLayoutSettings',]]>
</search>

<add><![CDATA[
      'layout' => 'ModifyLayoutSettings',
      'ad_management' => 'ModifyAddManagement',
]]>
</add>

So in other words the top part of this file tells you to go into your Sources directory and find the file "ModSettings.php" and find the code

'layout' => 'ModifyLayoutSettings', And replace it with this:

'layout' => 'ModifyLayoutSettings',
      'ad_management' => 'ModifyAddManagement',


Thats one modification done by hand. Hope this was a bit clear anyway. (I hope)

NOTE: Do not include any of these: ]]> Thats not part of the edit.
Title: Re: Ad Management mod
Post by: eriktm on April 19, 2006, 01:04:29 PM
Quote from: hfxzone on April 19, 2006, 09:14:18 AM
but the ads don't seem to show up any where

Well, if you have another theme than default, then you see what Bigguy have written ;)
Title: Re: Ad Management mod
Post by: .Darkman on April 20, 2006, 01:26:13 AM
i think this is not what i want
i'll make it clear.
i use helios multi

1. i downloaded the package
2. i installed it as all the test were successful
3. i went to features and options -> ads and checked all the boxes and gave my adsense code .
4. the ads don't showup anywhere.

please help.
Title: Re: Ad Management mod
Post by: jerm on April 20, 2006, 01:28:06 AM
you will have to manually install this if your using a custom theme.. if you log into your forum and choose the default theme, you will see it worked fine
Title: Re: Ad Management mod
Post by: .Darkman on April 20, 2006, 01:51:17 AM
that's right it worked just fine in default theme.
how to install it manually
Title: Re: Ad Management mod
Post by: jerm on April 20, 2006, 01:52:31 AM
theres a post right on this page that helps explain how to install on a custom theme..
Title: Re: Ad Management mod
Post by: Bigguy on April 20, 2006, 01:57:53 AM
My directions on the page before this should help. Thats how to install manually into your theme.

Quote from: hfxzone on April 20, 2006, 01:51:17 AM
that's right it worked just fine in default theme.
how to install it manually
Title: Re: Ad Management mod
Post by: .Darkman on April 20, 2006, 03:46:02 AM
Quotetheres a post right on this page that helps explain how to install on a custom theme..
can't find can you link to it

QuoteMy directions on the page before this should help. Thats how to install manually into your theme.
but the sources dir is common for all themes.
i wanna install it cutom theme
Title: Re: Ad Management mod
Post by: Bigguy on April 20, 2006, 08:54:03 AM
So you will have to find the edits for the index.template.php and the boardindex.template.php and Display.template.php and MessageIndex.template.php
Title: Re: Ad Management mod
Post by: Bigguy on April 22, 2006, 11:55:11 AM
Some one has asked me to install Ad Managment 1.5 on there site. They already had it installed so I uninstalled it and reinstalled, for some reason I had to ad some of the coding myself. I replaced the modsettings.php and the index.template.php with clean ones and inserted all the code.

For somereson it all works perfect no errors anywhere, but when you put the ad cod in and put a check where you want them to show, nothing shows at all but no errors, any one have any idea`s.

Here is the error I am getting now:

Quote8: Undefined variable: setArray
File: /home/tylerm/public_html/forum/Sources/ManageServer.php
Line: 486

This mod doesn`t touch that file does it ???
Title: Re: Ad Management mod
Post by: jerm on April 22, 2006, 12:27:19 PM
no, but make sure the edits you did in modsettings.php were correct..
Title: Re: Ad Management mod
Post by: Bigguy on April 22, 2006, 12:31:30 PM
I`ll try it again with a fresh Modsettings.php and post back in a minute.
Title: Re: Ad Management mod
Post by: Bigguy on April 22, 2006, 12:44:23 PM
hmm, all seems to be ok in that file but it kicks me to the admin page when I press save. and i still get that error.
Title: Re: Ad Management mod
Post by: jerm on April 22, 2006, 01:30:13 PM
got any other mods installed?
Title: Re: Ad Management mod
Post by: Bigguy on April 22, 2006, 01:59:58 PM
No just the rc2 update thats it.
Title: Re: Ad Management mod
Post by: jerm on April 22, 2006, 02:01:06 PM
replace ManageServer.php and give it a go then
Title: Re: Ad Management mod
Post by: Bigguy on April 22, 2006, 02:02:17 PM
Ok I`ll try that.
Title: Re: Ad Management mod
Post by: Bigguy on April 22, 2006, 02:05:13 PM
Nope no difference.
Title: Re: Ad Management mod
Post by: jerm on April 22, 2006, 02:07:46 PM
i really dont know what got screwed up lol.. maybe just replace all the files?
Title: Re: Ad Management mod
Post by: Bigguy on April 22, 2006, 02:09:20 PM
Should I try to uninstall it, replace the files it modified with clean ones and re-install ???
Title: Re: Ad Management mod
Post by: jerm on April 22, 2006, 02:15:12 PM
ya, you can try that.. see what happends.. also see if you get the error after you uninstall
Title: Re: Ad Management mod
Post by: Bigguy on April 22, 2006, 02:41:54 PM
Ok I uninstalled, re-uploaded clean versions of all the files that the ad management mod modifies. I then re-downloaded a clean version of the ad mod and went to package manager and uploaded.

It installed perfect, no errors. No errors in the error log either. I have the ad code in and a checkmark next to every place ads can be shown. When I click save now it saves the settings and keeps me on that page.

You can see in the forum where the ads are supposed to go in the posts, It places the box for it but no ads anywhere.
Title: Re: Ad Management mod
Post by: jerm on April 22, 2006, 02:43:49 PM
link to the site?
Title: Re: Ad Management mod
Post by: Bigguy on April 22, 2006, 02:45:05 PM
http://*******/forum/index.php
Title: Re: Ad Management mod
Post by: jerm on April 22, 2006, 02:51:33 PM
and run repair_settings.php to fix all the links that appear to have gone wrong


doesn't accept php code..
<?php include('http://www.x10hosting.com/adCode.php?ad=PLAN'); ?>
Title: Re: Ad Management mod
Post by: Bigguy on April 22, 2006, 02:56:05 PM
Can I alter that code somehow so it works ???

EDIT: Ran repair_settings and all was fine with it.
Title: Re: Ad Management mod
Post by: jerm on April 22, 2006, 02:59:25 PM
well, i think your using phpadsnew right?.. and if i recall (i've only used it once), you can request to get the ad code in either php or javascript.. get the code in javascript instead and stick it in the textarea box..
Title: Re: Ad Management mod
Post by: Bigguy on April 22, 2006, 03:01:49 PM
Ok I`ll try that I guess. It does work (I did a test with plain text) and thanks for all your help on this.

EDIT:I got it to work, Thanks again.
Title: Re: Ad Management mod
Post by: nobodyxxx on April 27, 2006, 03:01:23 AM
hi all the Add Management Mod doesent works for my SMF 1.0.7

plz help wat to do!!!!!!!
QuoteInstalling this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    install.php    
2.    Execute Modification    ./Sources/ModSettings.php    Success
3.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Success
4.    Execute Modification    ./Themes/default/index.template.php    Success
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Success
6.    Execute Modification    ./Themes/default/Display.template.php    Failure
7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Success
8.    Execute Modification    ./Sources/ManagePermissions.php    Success
Title: Re: Ad Management mod
Post by: Prasad007 on April 27, 2006, 04:05:42 AM
First of all DONT proceed with the install.

Are you using a custom theme?
if not then try uploading the original display.template.php file.

if you are, then the mod will have to be customized to fit that theme.
Title: Re: Ad Management mod
Post by: nobodyxxx on April 27, 2006, 09:33:05 AM
wat sore of customization
can u plz explain!!!!!!!!!!!!!!?????????????///
Title: Re: Ad Management mod
Post by: Prasad007 on April 27, 2006, 09:43:05 AM
Quote from: nobodyxxx on April 27, 2006, 09:33:05 AM
wat sore of customization
can u plz explain!!!!!!!!!!!!!!?????????????///
thats something i dunno much about :P
Title: Re: Ad Management mod
Post by: jerm on April 27, 2006, 01:37:13 PM
link to your site please
Title: Re: Ad Management mod
Post by: ryansdistrict on May 01, 2006, 01:53:46 PM
SMF Version: SMF 1.0.7
hello
i used to have this mod on the default theme working perfectly but i dont know how to make it work on  WindowsXP Theme by @nique (www) . to see whats going on why its not working The site where the ads at is  http://boards.ryansdistrict.com
Please can u tell me how to make it work
Thx
Title: Re: Ad Management mod
Post by: jerm on May 01, 2006, 03:26:08 PM
How to make mods work with themes? (http://www.simplemachines.org/community/index.php?topic=34526.0)
Title: Re: Ad Management mod
Post by: fortify on May 01, 2006, 05:15:20 PM
My ad mod is working http://www.getawebhost.net (http://www.getawebhost.net)

I dont know why the "after first post" setting posts twice????
I also have 2 ad management tabs in my options menu???
Title: Re: Ad Management mod
Post by: jerm on May 01, 2006, 08:39:01 PM
Quote from: fortify on May 01, 2006, 05:15:20 PM
My ad mod is working http://www.getawebhost.net (http://www.getawebhost.net)

I dont know why the "after first post" setting posts twice????
I also have 2 ad management tabs in my options menu???

did you happen to install this mod twice?

what other mods do you have installed?
Title: Re: Ad Management mod
Post by: fortify on May 01, 2006, 10:49:25 PM
1. SMF 1.0.7 / 1.1 RC2 Update 1.0   
2. SMFShop 2.1
3. Ad Managment 1.0.2b 
4. Board Viewers 0.6   
5. Shop Item: Change Display Name CSS 0.1
6. Shop Item: Profile Image 0.1   
7. Location Mod - Additional Maps 1.2   
8. Now Playing 1.1 
9. Location Mod 1.2   
10. Location Mod - Who Flags 1.2   
11. Sticky First Post (extends sticky topic) 1.2.1   
12. SSI Member Color Link 0.99
13. Redirection Boards 2.0 
14. Topic Ratings 1.03   

Title: Re: Ad Management mod
Post by: CertCityForum.com on May 03, 2006, 10:55:17 AM
HI Electrohome,
                        Thanks for creating such a great mod. As you mentioned earlier that this mod works only with Defualt Theme, and it needs to be customized for other themes. I am using Pn-Pn theme which seems to be popular lately and quite a few people might be using it.

Somehow your MOD gets installed with no problem but doesn't gives any options to place Ads. If you can please guide me and other on how to modify this to make it working.

Thanks
www.CertCityForum.com
Title: Re: Ad Management mod
Post by: jerm on May 03, 2006, 01:31:11 PM
Quote from: fortify on May 01, 2006, 10:49:25 PM
1. SMF 1.0.7 / 1.1 RC2 Update 1.0   
2. SMFShop 2.1
3. Ad Managment 1.0.2b 
4. Board Viewers 0.6   
5. Shop Item: Change Display Name CSS 0.1
6. Shop Item: Profile Image 0.1   
7. Location Mod - Additional Maps 1.2   
8. Now Playing 1.1 
9. Location Mod 1.2   
10. Location Mod - Who Flags 1.2   
11. Sticky First Post (extends sticky topic) 1.2.1   
12. SSI Member Color Link 0.99
13. Redirection Boards 2.0 
14. Topic Ratings 1.03   



i would suggest uninstall the mod, then going through the files that the ad mod has edited and verify that theres no code left in those files assisoated with my mod then re-install my mod

Quote from: CertCityForum.com on May 03, 2006, 10:55:17 AM
HI Electrohome,
                        Thanks for creating such a great mod. As you mentioned earlier that this mod works only with Defualt Theme, and it needs to be customized for other themes. I am using Pn-Pn theme which seems to be popular lately and quite a few people might be using it.

Somehow your MOD gets installed with no problem but doesn't gives any options to place Ads. If you can please guide me and other on how to modify this to make it working.

Thanks
www.CertCityForum.com

you are gonig to have to manually install this mod on your theme
Title: Re: Ad Management mod
Post by: CertCityForum.com on May 03, 2006, 08:51:28 PM

Quote from: CertCityForum.com on May 03, 2006, 10:55:17 AM
HI Electrohome,
                        Thanks for creating such a great mod. As you mentioned earlier that this mod works only with Defualt Theme, and it needs to be customized for other themes. I am using Pn-Pn theme which seems to be popular lately and quite a few people might be using it.

Somehow your MOD gets installed with no problem but doesn't gives any options to place Ads. If you can please guide me and other on how to modify this to make it working.

Thanks
www.CertCityForum.com

you are gonig to have to manually install this mod on your theme
[/quote]

Thanks for the reply, How should I go about doing that....any tips?

Cheers
www.CertCityForum.com
Title: Re: Ad Management mod
Post by: nobodyxxx on May 04, 2006, 02:06:14 AM
the ad Management mod dosent works on my smf 1.0.7

can any 1 pl help me abt it?
Title: Re: Ad Management mod
Post by: Niteblade on May 04, 2006, 08:19:51 PM
Quote from: CertCityForum.com on May 03, 2006, 08:51:28 PM

Quote from: CertCityForum.com on May 03, 2006, 10:55:17 AM
HI Electrohome,
                        Thanks for creating such a great mod. As you mentioned earlier that this mod works only with Defualt Theme, and it needs to be customized for other themes. I am using Pn-Pn theme which seems to be popular lately and quite a few people might be using it.

Somehow your MOD gets installed with no problem but doesn't gives any options to place Ads. If you can please guide me and other on how to modify this to make it working.

Thanks
www.CertCityForum.com

you are gonig to have to manually install this mod on your theme

Thanks for the reply, How should I go about doing that....any tips?

Cheers
www.CertCityForum.com

[/quote]

You could always do what I did ...

On a practice forum, overwrite the existing default theme files (located inside the default theme folder) with only those files that come with your custom theme (in your custom theme folder). Then, install whatever mod(s) that you want. Now, put your customized and newly modded files back into their original folder. MAKE BACKUPS and DO NOT PRACTICE ON A LIVE FORUM.
Title: Re: Ad Management mod
Post by: geezmo on May 05, 2006, 12:02:19 AM
i'm not sure if this has been asked before, but can the ad codes be modified for each of the position in the forum? right now, it seems all the ads in the forum will only use one ad code. google adsense forbids the use of the same ad format within the same page so i'm afraid having only one ad code for all the ad positions is not good. also that's a concern if i want a different ad code for each of the positions, say, i want a banner at the bottom of the menu but i want a leaderboard after the first post.
Title: Re: Ad Management mod
Post by: Todeshornisse on May 05, 2006, 06:28:32 AM
I'm not very familiar with the forum yet. I just added the add management. But how do I get any pictures in? Does this work with special code or something? I only can write text.
Title: Re: Ad Management mod
Post by: winrules on May 05, 2006, 05:07:00 PM
Quote from: geezmo on May 05, 2006, 12:02:19 AM
i'm not sure if this has been asked before, but can the ad codes be modified for each of the position in the forum? right now, it seems all the ads in the forum will only use one ad code. google adsense forbids the use of the same ad format within the same page so i'm afraid having only one ad code for all the ad positions is not good. also that's a concern if i want a different ad code for each of the positions, say, i want a banner at the bottom of the menu but i want a leaderboard after the first post.
Not yet, but i think electrohome said you'll be able to do that soon.


Quote from: Todeshornisse on May 05, 2006, 06:28:32 AM
I'm not very familiar with the forum yet. I just added the add management. But how do I get any pictures in? Does this work with special code or something? I only can write text.
you can use like <img src="myimage.gif" /> for the ad code
Title: Re: Ad Management mod
Post by: woden on May 06, 2006, 12:43:10 AM
Ive installed this mod, uninstalled and reinstalled. Everything installs fine, and the ads show up, the only problem is that the ads show up even for the VIP membergroup which I have unchecked the "show ads" in permissions.

I'd like to have the forum ad free for the VIP membergroup, but my permissions for "show ads" is being ignored.

Any idea what to do to fix this?
Title: Re: Ad Management mod
Post by: garfunkle on May 06, 2006, 08:47:23 PM
I've just installed this mod and it works great on default theme...Can't wait for it to work on other themes too.
Title: Re: Ad Management mod
Post by: Bigguy on May 06, 2006, 08:57:37 PM
You`ll have to modify the themes manually that you want it to work on. Most mods are only made for the default theme.
Title: Re: Ad Management mod
Post by: garfunkle on May 06, 2006, 09:02:30 PM
Oh right, has there already been a post on this, or does someone know how?
Title: Re: Ad Management mod
Post by: Bigguy on May 06, 2006, 09:09:14 PM
When you install a mod via package manager, there is a "list files" link next to the mod in the package manager. Press that and find the .xml file, all the modifications it does during install to the default theme are in there. Apply those to your other theme template files and you should be good to go.
Title: Re: Ad Management mod
Post by: garfunkle on May 06, 2006, 09:20:44 PM
Thanks! I'm pretty sure i can get it from here.
Title: Re: Ad Management mod
Post by: K_4_kelly on May 07, 2006, 10:52:30 AM
hi

is it possible for us to set the ads to display above/buttom the menu on the first page only?

thanks
Title: Re: Ad Management mod
Post by: woden on May 07, 2006, 05:15:37 PM
I finally got the permissions to work. I had to go into the phpMyAdmin and reset all the ad management permissions to zero, then go thru the permissions (in forum admin) and check/uncheck as needed.

Just a note for anyone who might have the same issue.
Title: Re: Ad Management mod
Post by: bjraines on May 07, 2006, 09:45:21 PM
any chance of adding adsense revenue sharing?
Title: Re: Ad Management mod
Post by: hartiberlin on May 10, 2006, 09:50:06 AM
Hi,
I am getting this error, when I try to install this mod on my RC2 forum at www.overunity.com
with the 1.5 Version of the mod:

Installations actions for "Ad Managment":
Installing this package will perform the following actions:  Type Action Description
1. Execute Code install.php 
2. Execute Modification - Modification parse error


I had uploaded the ZIP file in the download package manager and it displays this parse error,
so now I am afraid to install it.
I already did the CHMOD to 777 of the 5 or 6 files mentioned at the beginning of the thread...

What can I do ?

P.S: How can I just search this topic for keywords ?
Did simplemachines forget to include a search function just in a specific topic ????


================

PPS: Now it installed after I manually change all the folder and all files
to CHMOD 777 and also removed the Backup folder in Packages folder.

But now I have a different problem !
Where do I find the ads menu in the admin section ?

Do I have the wrong theme ? I am using the old standard theme,
Please have a look at:
www.overunity.com

Many thanks.

===============
Update: I have used so far on my forum the Babylon Theme !
That seems to be not the SMF default theme with the new 1.1 RC2 release...
Hmm... I changed the default theme now back and forth between
Babylon Theme and SMF default theme,but I could never find the ads options menu
in the admin section ! Where is it ?

Do I have to uninstall the ads mods again, then switch to SMF default theme and
then reinstall the mod and then it will work ?
Thanks.

================

Hmm, now sh*t happens again, now I wanted to uninstall it from the package manager,
in the admin section , but it says:


!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Uninstall Actions
Uninstall Actions "Ad Managment":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification install.xml Modification parse error
2. Execute Modification - Modification parse error


------
So how can I uninstall it from the Babylon theme , change then to the new SMF default theme
and install it again ?
Many thanks.
Title: Re: Ad Management mod
Post by: Bluesman on May 10, 2006, 06:59:58 PM
Hi,

I want to install this bad boy on a custom theme called Oxygen. I've checked the XML file for file modifications to do. The problem is that my theme only contains these files:

BoardIndex.template
index.template
Themes.template

and the file in languages

I'm missing the Display.template.php and MessageIndex.template.php files here. If i costom modify the files that are there, and run the mod on the default theme, i'm getting errors (i wouldn't expect anything else though).
Title: Re: Ad Management mod
Post by: hartiberlin on May 10, 2006, 07:56:37 PM
How can I manually UNINSTALL this mod ?
The automatic uninstall does not work as posted 2 posts ago...

Please help, I am in a very hurry to get this to work.
Many thanks.
Regards, Stefan.

P.S: I had disabled under OPTIONS the Tilde backup of old files...
Is this why I can´t uninstall the mod now ??
Title: Re: Ad Management mod
Post by: hartiberlin on May 10, 2006, 08:10:10 PM
Is it possible just to set the forum to the SMF default theme and then
reinstall the mod manually by  just uploading all  the single files from the ZIP archive
to the forum´s root directory
and then call via a webbrowser the install.php script ?

===== Update:
That doesn´t also work.
Then there comes up the error:

Fatal error: Call to undefined function: db_query() in /mounted-storage/home4/sub002/sc11940-GNVW/overunity/install.php on line 3
Title: Re: Ad Management mod
Post by: hartiberlin on May 10, 2006, 09:21:56 PM
Now I tried to restore from the SMF RC2 install zip package the following files:

ModSettings.php
Modifications.english.php
Help.english.php
index.template.php
BoardIndex.template.php
Display.template.php
MessageIndex.template.php
ManagePermissions.php

and FTPed them into my forum into the right directories and
CHMODed them to 777.
Then I tried to install the mod again now running in the SMF default theme,
while my forum was in Maintenance Mode...

But then I only got the parse errors again and when I tried to even install it anyway,
it reported:

Fatal error: packageinstall(): Failed opening required '/mounted-storage/home4/sub002/sc11940-GNVW/overunity/Packages/temp/./install.php' (include_path='.:/usr/local/lib/php') in /mounted-storage/home4/sub002/sc11940-GNVW/overunity/Sources/Packages.php on line 534

So what can I still try beforeI have to reinstall a clean version of SMF to overcome
alll these problems ?
Please help.
Many thanks.
Title: Re: Ad Management mod
Post by: jerm on May 11, 2006, 01:55:52 AM
Quote from: bjraines on May 07, 2006, 09:45:21 PM
any chance of adding adsense revenue sharing?
no, that can't and wont be included for certain reasons i can't mention

hartiberlin:
This only installs on the default them for RC2 which is not the babylon theme. If you want to manually uninstall/install, you will have to read the install.xml file which is located inside the zipped file. Try clearing out the Temp folder located inside the package directory.
Read the first post to find out where the ad panel is located.. there are even pictures to help you out.

Quote from: woden on May 07, 2006, 05:15:37 PM
I finally got the permissions to work. I had to go into the phpMyAdmin and reset all the ad management permissions to zero, then go thru the permissions (in forum admin) and check/uncheck as needed.

Just a note for anyone who might have the same issue.
You would have had to disallow the ads not only for the non post membergroup, but for the post membergroup has well. In this case, you coud have just Denied the permission in the non-post membergroup to do this

Title: Re: Ad Management mod
Post by: woden on May 11, 2006, 05:00:30 PM
I was trying to get around the fact that the ads still show for admins. In my case I have 4 admins.

Heres something I have managed to scrape together to handle it.

if (in_array(13, $GLOBALS['user_info']['groups']))     
{ echo ' I dont see an ad ';}
else
{ echo ' I do see ads ';}


Group 13 is my "VIP" group, adfree. Thus the ads still show for everybody except the chosen ones ;D

Of course replace "I dont see ads" with a blank and replace "I do see ads" with the ad code.
Title: Re: Ad Management mod
Post by: Naberius on May 11, 2006, 05:30:19 PM
Works very well thanks for making this one. I know you have mentioned a few times about enabling the mod to handle different banners for various page locations. I'm just wondering if you are looking into this or not.
The community I run is own by a non profit organization and we are selling advertising space on the forum, it would be very handy if we could offer banners in various locations.

Keep the good works comming.
Title: Re: Ad Management mod
Post by: hartiberlin on May 11, 2006, 06:00:15 PM
Quote from: electrohome on May 11, 2006, 01:55:52 AM


hartiberlin:
This only installs on the default them for RC2 which is not the babylon theme. If you want to manually uninstall/install, you will have to read the install.xml file which is located inside the zipped file. Try clearing out the Temp folder located inside the package directory.
Read the first post to find out where the ad panel is located.. there are even pictures to help you out.


Hi ,
as I have replaced all the original files you modify in your install.xml file again with the installion files ,
I wonder, why I can´t install the ad mod again then ?
Do you also write to any other files or configuration or *.ini files ?
As I have replaced:

ModSettings.php
Modifications.english.php
Help.english.php
index.template.php
BoardIndex.template.php
Display.template.php
MessageIndex.template.php
ManagePermissions.php

again with the original files from the SMF RC2 install package and also deleted the
TEMP folder in the Packages Folder, why does a new install of your Ad mod does not work ?

Many thanks.
Regards, Stefan.
Title: Re: Ad Management mod
Post by: jerm on May 11, 2006, 09:38:00 PM
Quote from: AMBA on May 11, 2006, 05:30:19 PM
Works very well thanks for making this one. I know you have mentioned a few times about enabling the mod to handle different banners for various page locations. I'm just wondering if you are looking into this or not.
The community I run is own by a non profit organization and we are selling advertising space on the forum, it would be very handy if we could offer banners in various locations.

Keep the good works comming.

I do, and i realize that its been a long time since a new release, but i just finished school last week. I've been relaxing some, and going to be taking a few day vacation soon as well. I also have other mods i'd like to write , so ya, but i will code a new version soon. I will be coding it a lot different, so the ad mod will soon be in version 2 :)

Quote from: hartiberlin on May 11, 2006, 06:00:15 PM
Quote from: electrohome on May 11, 2006, 01:55:52 AM


hartiberlin:
This only installs on the default them for RC2 which is not the babylon theme. If you want to manually uninstall/install, you will have to read the install.xml file which is located inside the zipped file. Try clearing out the Temp folder located inside the package directory.
Read the first post to find out where the ad panel is located.. there are even pictures to help you out.


Hi ,
as I have replaced all the original files you modify in your install.xml file again with the installion files ,
I wonder, why I can´t install the ad mod again then ?
Do you also write to any other files or configuration or *.ini files ?
As I have replaced:

ModSettings.php
Modifications.english.php
Help.english.php
index.template.php
BoardIndex.template.php
Display.template.php
MessageIndex.template.php
ManagePermissions.php

again with the original files from the SMF RC2 install package and also deleted the
TEMP folder in the Packages Folder, why does a new install of your Ad mod does not work ?

Many thanks.
Regards, Stefan.

What are the errors your getting, and which files?
Title: Re: Ad Management mod
Post by: evilopinions on May 11, 2006, 10:07:52 PM
Guests cannot see the ads only registered members can ! Help !
Title: Re: Ad Management mod
Post by: jerm on May 11, 2006, 11:01:59 PM
Quote from: evilopinions on May 11, 2006, 10:07:52 PM
Guests cannot see the ads only registered members can ! Help !
Admin > permissions
modify the guest permissions
Enable ads
make sure that permission is checked
Title: Re: Ad Management mod
Post by: Naberius on May 12, 2006, 05:39:43 AM
QuoteI do, and i realize that its been a long time since a new release, but i just finished school last week. I've been relaxing some, and going to be taking a few day vacation soon as well. I also have other mods i'd like to write , so ya, but i will code a new version soon. I will be coding it a lot different, so the ad mod will soon be in version 2

No worries sounds good.
Title: Re: Ad Management mod
Post by: hartiberlin on May 12, 2006, 07:01:04 AM
Quote from: electrohome on May 11, 2006, 09:38:00 PM


What are the errors your getting, and which files?

These are the errors:


!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Install Actions
Installations actions for "Ad Managment":
Installing this package will perform the following actions:  Type Action Description
1. Execute Code install.php 
2. Execute Modification install.xml Modification parse error
3. Execute Modification - Modification parse error

===================

I had now the Default theme enabled and deleted the Temp folder in Packages
and it said, no Mods installed, the uploaded the 1.5 version zip file again and when
clicking "Install" it shows these parsing errors. All Files have 777 permissons !
What can I still try ?
Thanks.
Title: Re: Ad Management mod
Post by: hartiberlin on May 12, 2006, 09:52:26 AM
This mod seems not to work at all !
I just did a fresh install of a new SMF 1.1 RC2 forum on another domain
www.westpreussenlied.de/forum/

and tried to install the ad mod there.

Then there came the following parse errors up:

!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Install Actions
Installations actions for "Ad Managment":
Installing this package will perform the following actions:  Type Action Description
1. Execute Code install.php 
2. Execute Modification install.xml Modification parse error
3. Execute Modification - Modification parse error


Then I manually changed again all files in all directories to 777 permission and
then finally the ad mod did install without parse or any other errors !

But now I have the problem, there is nowhere any option to set the ads up !!
There is no ad mod screen under "features and options" in the admin panel !

See these 2 pics:

(http://www.harti.com/mods/admod_no01.jpg)
(http://www.harti.com/mods/admod_no02.jpg)


What can I still do to get this ad mod working ?
Does it need to turn PHP Safe mode to OFF on the server ??
Please help.
Many thanks.
Title: Re: Ad Management mod
Post by: hartiberlin on May 12, 2006, 11:14:43 AM
Now I wanted to deinstall the 1.5 ad mod version and try the older one, but during
deinstallation in the package manager it says this:


Uninstall Actions
Uninstall Actions "Ad Managment":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification - Modification parse error

I had this option disabled when I did the install:
"Create Backup versions of replaced files with a tilda (~) on the end of their names"

Must this option be enabled or disabled to be able to uninstall ?

Also I have reset all Files in all folders to 777 permission and the uninstall also does not work....
Hmm......does this mod work at all ?
Title: Re: Ad Management mod
Post by: BFTUK on May 12, 2006, 11:24:27 AM
Quote from: electrohome on May 11, 2006, 01:55:52 AM
Quote from: bjraines on May 07, 2006, 09:45:21 PM
any chance of adding adsense revenue sharing?
no, that can't and wont be included for certain reasons i can't mention

I realise your not going to tell us but i'm intrigued as to why you can't tell us why this would'nt be included.

This would be a great mod and benefit to the software.
Title: Re: Ad Management mod
Post by: hartiberlin on May 12, 2006, 11:34:05 AM
One can´t deinstall it:
The package manager says:

Uninstall Actions
Uninstall Actions "Ad Managment":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Sources/ModSettings.php Test failed
2. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed
3. Execute Modification ./Themes/default/languages/Help.english.php Test failed
4. Execute Modification ./Themes/default/index.template.php Test failed
5. Execute Modification ./Themes/default/BoardIndex.template.php Test failed
6. Execute Modification ./Themes/default/Display.template.php Test failed
7. Execute Modification ./Themes/default/MessageIndex.template.php Test failed
8. Execute Modification ./Sources/ManagePermissions.php Test failed

Title: Re: Ad Management mod
Post by: hartiberlin on May 12, 2006, 01:06:26 PM
Well,maybe it is there, but I can not see it ??

Now something like this shows up,
looks like the clickable surfaces overlap...
but I can´t klick onto this:


(http://www.harti.com/mods/admod_no03.jpg)

P.S: I run my IE 6.01 browser in 1400x1050 screen resolution, but have also changed it
to 1024x768, same error and also via firefox, same error...

What must be the link to the admin section of the ad mod ?

Please tell me the right URL , like:

http://www.overunity.com/index.php?action=featuresettings;sa=basic;sesc=fggdfgdfgdfgdfgdfgdfgdf
Title: Re: Ad Management mod
Post by: hartiberlin on May 12, 2006, 06:37:11 PM
Hi All,
Electrohome was so nice and had a look at my problems and here are some
premiliary answers:

He wrote:

"I may have found the problem
I uploaded a file (phpinfo.php) in the root directory of your forum. It gives a little information about php.
Your host is currently running in safe mode. You will have to request that they turn that off. You can't install any mods when php is running in safe mode.
You can also try this out:
http://www.simplemachines.org/community/index.php?topic=28393.0
That might help out as well.

electrohome
Support Specialist
Sophist Member

--------------------------------------------------------------------------------
>Quote from: hartiberlin on Today at 05:25:55 PM
>Hi Electrohome,
>can I turn Safe mode ON again,
>after I had installed the scripts ?


no,  safe mode is being scrapped anyway in php6. It isn't needed if your scripts are made to be secure. (which smf is secure)

~Electrohome



Title: Re: Ad Management mod
Post by: Garry on May 12, 2006, 06:46:05 PM
Where do you get this " phpadsnew    "
Title: Re: Ad Management mod
Post by: winrules on May 12, 2006, 07:05:28 PM
http://www.phpadsnew.com/two/
Title: Re: Ad Management mod
Post by: Garry on May 12, 2006, 07:53:32 PM
<HTML>
Im looking for some simple code to display an image from some where

can anybody help me as I do not know HTML coding




<HEAD>
<TITLE>This is a test</TITLE>
</HEAD>
<BODY>

<B><FONT SIZE=6><P>This is a test</P>

<P>img http://i45.photobucket.com/albums/f97/GarryLawton/shortlife.jpg WIDTH=320 HEIGHT=240></img></P></B></FONT></BODY>
</HTML>

Title: Re: Ad Management mod
Post by: codyheit on May 16, 2006, 02:31:25 PM
Hi Everyone

I have been trying to install this mod on the classic theme for the last few hours and would like to know if anybody has already changed all the coding in the documents so that it will work on the classic theme.

If so I would really appreciate if it could be emailed to me.

[email protected]
Title: Re: Ad Management mod
Post by: zole on May 19, 2006, 06:08:57 AM
Quote from: electrohome on May 11, 2006, 11:01:59 PM
Quote from: evilopinions on May 11, 2006, 10:07:52 PM
Guests cannot see the ads only registered members can ! Help !
Admin > permissions
modify the guest permissions
Enable ads
make sure that permission is checked

i tried to do that but still not work, can you help me...?!
i mean everybody still can see the ADS....

Title: Re: Ad Management mod
Post by: Vinspire on May 19, 2006, 12:34:17 PM
Can anyone show me the screenshot of this mods ? plz  :'( :'( :'(
Title: Re: Ad Management mod
Post by: Edward A Freeman on May 19, 2006, 09:42:56 PM
is there any possibility of allowing this to use PHP as well as HTML and Javascript?

Ic an't find any Javascripts that will work in this mod, and if I can avoid it I would prefer not to mess with the main softwares' PHP code to hard code the ads in.

I'm on 1.0.7 using the Techhead theme, I will worry about modifying the necessary files in TechHead if we can get PHP included in the cod etha tcan be used.
Title: Re: Ad Management mod
Post by: Edward A Freeman on May 19, 2006, 09:46:17 PM
Quote from: Vinspire on May 19, 2006, 12:34:17 PM
Can anyone show me the screenshot of this mods ? plz  :'( :'( :'(

here is a shot of the ACP in 1.0.7 sorry don't have one of the actual ads working yet.

http://iabusinessprojects.com/forums/trademarks/modshot.png
Title: Re: Ad Management mod
Post by: Naberius on May 20, 2006, 01:50:22 AM
Quote from: Efwis on May 19, 2006, 09:42:56 PM
is there any possibility of allowing this to use PHP as well as HTML and Javascript?

Ic an't find any Javascripts that will work in this mod, and if I can avoid it I would prefer not to mess with the main softwares' PHP code to hard code the ads in.

I'm on 1.0.7 using the Techhead theme, I will worry about modifying the necessary files in TechHead if we can get PHP included in the cod etha tcan be used.

I have a java script, works very well.
paste it all into the ad box. all you need to change are the images an urls
<script language="JavaScript">
<!-- Begin hiding script from older browsers

// Replace the images inside the double-quotes to your own images
// You may have any number of images
adImages = new Array("image1","image2","image3")

// Replace the quotes to inside the double-quotes to your own quotes
// You may have any number of quotes but they must equal the number of images that rotate
quote = new Array("This is Image 1","This is Image 2","This is Image 3")

// Replace the quotes to inside the double-quotes to your links
adURL = new Array ("url1","url2","url2")


thisAd = 0
imgCt = adImages.length
quoteCt = quote.length

function rotate() {
  if (document.images) {
    if (document.cycle.complete) {
  thisAd++
  if (thisAd == imgCt && thisAd == quoteCt) {
    thisAd = 0
  }
  document.cycle.src = adImages[thisAd];
      window.defaultStatus = quote[thisAd];
}
// This sets the interval to which the images and quotes are rotated. 1000 equals 1 second
setTimeout("rotate()", 3500)
  }
}


function rotateLink() { window.parent.location.href = "http://" + adURL[thisAd] }


// End hiding script from older browsers -->
</script>
<body onLoad="rotate()">

<!-- Add an anchor tag to the image to call the rotateLink function of the script for links -->

<p align="center"><img src="image1" width="300" height="150" border="0" name="cycle"></p>
Title: Re: Ad Management mod
Post by: Edward A Freeman on May 20, 2006, 12:23:48 PM
Thanks it's working, but they aren't clickable links like they are supposed to be, any ideas on how to fix this?
Title: Re: Ad Management mod
Post by: Naberius on May 20, 2006, 07:27:27 PM
Hmm thats odd they are on mine when I tested. Dunno lemme look into it.
Title: Re: Ad Management mod
Post by: Edward A Freeman on May 20, 2006, 07:33:00 PM
take your time, I will be upgrading my boards to 1.1rc2 in about 2 hours, But if I could have them up and in place when I re-open the boards that would be great, if not no big loss at this time.
Title: Re: Ad Management mod
Post by: KasumiSH on May 20, 2006, 10:38:18 PM
The mod installed fine, but for some reason, after I placed the code for the ad banner and saved it, it zero byte'd the theme files for showing the boards, topic, etc.

Weird thing is, I reuploaded them, and saved again, and it works fine.

Just wanted to let you know in case it was a bug or something (I am using RC2, btw, and the version I d/l'ed was the newest for your mod).
Title: Re: Ad Management mod
Post by: Edward A Freeman on May 21, 2006, 05:56:48 PM
I need help adding this to the Amber Theme, even when I manually install the files needed to index.template.php on amber it doesn't show.
Title: Re: Ad Management mod
Post by: ArkServer on May 21, 2006, 08:52:46 PM
Quote from: Efwis on May 21, 2006, 05:56:48 PM
I need help adding this to the Amber Theme, even when I manually install the files needed to index.template.php on amber it doesn't show.

Does it work on your default theme?

the mod works here like a charm :)
Title: Re: Ad Management mod
Post by: Edward A Freeman on May 21, 2006, 09:13:43 PM
Quote from: ArkServer on May 21, 2006, 08:52:46 PM
Quote from: Efwis on May 21, 2006, 05:56:48 PM
I need help adding this to the Amber Theme, even when I manually install the files needed to index.template.php on amber it doesn't show.

Does it work on your default theme?

the mod works here like a charm :)
Works fine on my default, but the context of the index.template.php in amber is not the same as the default index.template.php.
Title: Re: Ad Management mod
Post by: hartiberlin on May 23, 2006, 04:12:29 PM
Hi All
I am trying now again to install the mod on my
main site overunity.com
but it is again not working.
PHP Safe mode is already a few days OFF on this site,
so this can not be an issue...

Hmm... how could I manually install this mod, instead using
the package manager ?
In which directory have the files to be placed to execute this mod ?
Maybe also the version 1.5 at mods.simplemachines.org  is corrupted ?

It says parse error always when I try to install via the package manager
and when I install it anyway, it is not installed afterwards but the package manager says:
installation complete....

What about the SET GID and SET UID and Sticky permission flags  in SMARTFTP ? Do I have to set all these additional permission flags for the files too ? For what forum folders ? all Themes and Sources folders and Packages too ?


I am scratching my hair and I have no idea, what else still to try ...
Many thanks.

Regards, Stefan.
Title: Re: Ad Management mod
Post by: hartiberlin on May 23, 2006, 06:05:32 PM
Quote from: winrules on May 12, 2006, 07:05:28 PM
http://www.phpadsnew.com/two/

Could this be used together with the ad mod to change the bannercode in the admin
panel ?
Or how is can this work together with the ad mod  ?

Thanks.
Title: Re: Ad Management mod
Post by: K_4_kelly on May 24, 2006, 07:59:54 AM
hi,

is it possible to make a pop up ads when member just enter to the forum?
also separate ad for different display method?
for example, ad A show on the top of the menu, ad B show on the bottom of the board?

thanks!! :)
Title: Re: Ad Management mod
Post by: tosp2 on May 24, 2006, 11:00:23 AM
I have a question in regards to manually adding this mod to a custom theme.

I added this code to my index.template.php file:
if ($modSettings['ad_management_index'] && allowedTo('ad_manageperm'))
echo '<br /><div align="center">',$modSettings['ad_management_content'],'</div>';]]>

Instead of doing every file right off the bat, I just tried to edit one to see what would happen.  But after installing that, I dont see any changes.  What is supposed to show?
With the old 1.0.7 version, I was able to put all my ads in the admin panel and they automatically showed up on the board, but I still dont see anywhere with this theme that Im using where I can input the ads for them to show.  Can you tell me how this is supposed to work?  Thanks!
Title: Re: Ad Management mod
Post by: meadwench on May 24, 2006, 03:26:48 PM
Love the mod! I run Joomla 1.07 with an SMF 1.1RC2 wrapped and bridged using Orstio's Bridge 1.13.

The mod installed easily, and I was able to go into Features and Options, click the 'Ads' button and set it all up, including placing my IFrame code for my PHPAdsNew ads.

I unzipped the mod zip file on my local drive, and opened the install.xml file to see what code needed to be copied into my GreenPortal2 template files, and in about 20 minutes, I was up and running!

Thanks again for a great mod.
Title: Re: Ad Management mod
Post by: madd on May 24, 2006, 03:36:31 PM
Can someone please help with some instructions to get this manually installed on a custom theme?
Title: Re: Ad Management mod
Post by: Bigguy on May 24, 2006, 04:30:14 PM
Look in the .xml file of the mod for all the edits and were to put them.
Title: Re: Ad Management mod
Post by: hartiberlin on May 25, 2006, 09:38:14 AM
It seems my problems with the ad mod were related to my clustered hosted webspace.
Electrohome has helped me to install it now ,
many thanks.

Now another question.

I want to have some ads not like banners but like
skycraper ads like 150 x 600 resolution so in a left or right frame besides the SMF forum...

What would be easiest method to do this ?

I could install additionally Tinyportal or MK Portal,
but this is too much overhead in this moment !

Is there an easy example, how I could integrate SMF into a frameset,
so that this ad mod would still work for normal banners and
in the left frame I could include some "skycraper" ads ?

Or will this feature be included soon in this ad mod ?
Many thanks.

Regards, Stefan.
Title: Re: Ad Management mod
Post by: jerm on May 26, 2006, 01:03:06 AM
i am in the process of coding the new version of my mod, and it will include skyscrapers ads on the left side of the board along with the right side.
if you can wait a week or two i should have it complete
Title: Re: Ad Management mod
Post by: stevencachia on May 27, 2006, 08:41:20 AM
<p align="left"><img src="yourimagehere.gif" /></p>

use this code and the banner will be on the left side
Title: Re: Ad Management mod
Post by: tosp2 on May 27, 2006, 10:58:49 AM
Has anyone figured out how to add banner ads in between board categories OR have different ads show up on different pages?  I am using a custom theme and got it configured to show the ads at the top of my forum page and show on each forum page, but I am getting more advertisements than I have room for so I need to start making new places for the ads or have different ones on different pages.  Can anyone advise on how to do this, or if its even possible?  Thanks!
Title: Re: Ad Management mod
Post by: eriktm on May 27, 2006, 12:06:47 PM
Why don't make a rotation?
Title: Re: Ad Management mod
Post by: Naberius on May 28, 2006, 06:10:01 PM
Quote from: electrohome on May 26, 2006, 01:03:06 AM
i am in the process of coding the new version of my mod, and it will include skyscrapers ads on the left side of the board along with the right side.
if you can wait a week or two i should have it complete

Beautiful, Look forward to it.
Title: Re: Ad Management mod
Post by: eriktm on May 29, 2006, 01:53:08 AM
Quote from: AMBA on May 28, 2006, 06:10:01 PM
Quote from: electrohome on May 26, 2006, 01:03:06 AM
i am in the process of coding the new version of my mod, and it will include skyscrapers ads on the left side of the board along with the right side.
if you can wait a week or two i should have it complete

Beautiful, Look forward to it.

Oh, yea...
That will be great. What about possibility to have small affiliate-button-place just under the copyright?
Title: Re: Ad Management mod
Post by: RebelRose on May 30, 2006, 12:26:35 PM
I added this mod when I was using the core theme and it worked great, however, I changed to using the Helios theme and now the ads do not show up?  Is there something special I have to do to make them work now?

SMF 1.1 RC2
Title: Re: Ad Management mod
Post by: Bigguy on May 30, 2006, 12:37:10 PM
You are going to have to edit that theme to work with the ad mod. If you go to the package manager and beside the mod it says "list files" press that link and then look for the install.xml file. You will see all the edits you have to do. The only ones you should have to do is the index.template.php, boardindex.template.php, Display.template.php, MessageIndex.template.php

EDIT: and maybe Modifications.english.php if your theme has it.
Title: Re: Ad Management mod
Post by: RebelRose on May 30, 2006, 12:41:01 PM
Edits ? as in code, hmmm, well ok I will look, but I am not sure I will know what I am looking at, but thank you for your reply.

Title: Re: Ad Management mod
Post by: Bigguy on May 30, 2006, 12:45:16 PM
Here is one edit:

where it says search you look for that line of code in the file named.

Quote<file name="$sourcedir/ModSettings.php">
<operation>
<search position="replace"><![CDATA[
      'layout' => 'ModifyLayoutSettings',]]>
</search>

where it says replace :

Quote<search position="replace"><![CDATA[
      'layout' => 'ModifyLayoutSettings',]]>
</search>

you would replace this:

Quote'layout' => 'ModifyLayoutSettings',

with this:

Quote'layout' => 'ModifyLayoutSettings',
      'ad_management' => 'ModifyAddManagement',



Don`t do this edit as it is done.
Title: Re: Ad Management mod
Post by: RebelRose on May 30, 2006, 12:51:34 PM
ok, I will be happy to try that if you could just answer one small question, where am I adding these changes too?

I am sorry but I am still a tab green at all of this, ok maybe a little more than a tad, but if you can tell me to which file I do this I will do it.

Thank you
Title: Re: Ad Management mod
Post by: Bigguy on May 30, 2006, 12:56:25 PM
It`s all in the install.xml file. The above code tell you to look in the source directory for the file ModSettings.php and find this line:

'layout' => 'ModifyLayoutSettings',

and replace with this:

   'layout' => 'ModifyLayoutSettings',
      'ad_management' => 'ModifyAddManagement',

Don`t do this edit as it is done. I listed the files that need changed in your theme a couple posts up. If you can`t find the lines of code it tells you to then you will need to go to the theme author for a bit of help or check that thread out. (Helios thread)
Title: Re: Ad Management mod
Post by: RebelRose on May 30, 2006, 01:00:19 PM
thanks
Title: Re: Ad Management mod
Post by: Bigguy on May 30, 2006, 01:04:03 PM
I have to step out right now for a bit but if you can`t get it by the time I come back I will help if you want.
Title: Re: Ad Management mod
Post by: RebelRose on May 30, 2006, 01:05:50 PM
Thanks but I think if I cannot get it I will just not use it, thank you anyway
Title: Re: Ad Management mod
Post by: Bigguy on May 30, 2006, 05:29:37 PM
A really good editor that might help is Php Designer (http://www.mpsoftware.dk/phpdesigner.php) it`s really great.
Title: Re: Ad Management mod
Post by: hartiberlin on May 31, 2006, 09:33:51 AM
Quote from: electrohome on May 26, 2006, 01:03:06 AM
i am in the process of coding the new version of my mod, and it will include skyscrapers ads on the left side of the board along with the right side.
if you can wait a week or two i should have it complete

Hi Jeremy,
sounds good.
But there seems to be  still an error
in the y height space for the ads in the current 1.5 version.
Please have a look e.g. at this:
http://www.overunity.com/index.php/topic,933.230.html (http://www.overunity.com/index.php/topic,933.230.html)

There you can see, that the ad after the first posting is
cut off too early at the text...

2. For skyscraper ads I would prefer, if you could introduce it additionally
to the banner ads, so that one can use at least  3 or 4 different ads
througout the whole forum. ( 2 different ads at the sides and 1 or 2 different banner ad)
also it would be good, that the side ads would reload again newly, when a user
clicks a new page in the forum.
Many thanks for thius great mod !
Regards, Stefan.
Title: Re: Ad Management mod
Post by: hartiberlin on May 31, 2006, 10:45:21 AM
P.S. Please Jeremy make it sure, that it also
works with TinyPortal together.
So will it also support the skin themes from Tinyportal ?

Many thanks.
Title: Re: Ad Management mod
Post by: willi1 on June 01, 2006, 03:48:36 AM
Hello,

i have installed the vers 1.5 and i use the Theme Classic YaBB SE Theme what must i do
to see the ads in this template i can´t see it, i can see the ads only in the smf standard theme.

i have the setting only in the english language is that possible to have the settings in german language?

sorry for my english.

can you help me? any suggestions?

best regards

André
Title: Re: Ad Management mod
Post by: Bigguy on June 01, 2006, 08:12:36 AM
Quote from: Bigguy on May 30, 2006, 12:37:10 PM
You are going to have to edit that theme to work with the ad mod. If you go to the package manager and beside the mod it says "list files" press that link and then look for the install.xml file. You will see all the edits you have to do. The only ones you should have to do is the index.template.php, boardindex.template.php, Display.template.php, MessageIndex.template.php

EDIT: and maybe Modifications.english.php if your theme has it.
Title: Re: Ad Management mod
Post by: willi1 on June 01, 2006, 10:13:30 AM
thank you for your answer,

my english is not so good, i understand so that i copy these files to the other theme is this correct?

best regards

André
Title: Re: Ad Management mod
Post by: ArkServer on June 01, 2006, 11:01:00 AM
Quote from: hartiberlin on May 31, 2006, 10:45:21 AM
P.S. Please Jeremy make it sure, that it also
works with TinyPortal together.
So will it also support the skin themes from Tinyportal ?

Many thanks.

I believe it works,  i use both tiny and this mod together and no probs.
Title: Re: Ad Management mod
Post by: Bigguy on June 01, 2006, 12:53:02 PM
No don`t copy them to your other theme. Go to the theme that you want the ad mod to work on. The only files you should have to modify in your theme you want it to work on are:

index.template.php, boardindex.template.php, Display.template.php, MessageIndex.template.php and maybe Modifications.english.php if your theme has it.

To find the "install.xml" file goto the package manager and click on "list files" next to the ad mod, then click "install.xml" In this file you will see the edits you have to make.
Title: Re: Ad Management mod
Post by: willi1 on June 01, 2006, 02:33:58 PM
thank you for your answer,

i have found the list file and i have open the install.xml file

sorry sorry but i don´t know what settings i must change in these files?

index.template.php, boardindex.template.php, Display.template.php, MessageIndex.template.php and maybe Modifications.english.php if your theme has it.

sorry again

best regards

André
Title: Re: Ad Management mod
Post by: RebelRose on June 01, 2006, 06:27:51 PM
I was going to try to make this mod work with my theme and I looked at the install.xml and saw things there that are suppose to be replace in order to make this mod work, however, I am not that great or even good with code and I could not figure out where in the files the code needed to be replace.

Any assistance would be greatly appreciated

SMF 1.1 RC2
Helios Multi Color
MK Portal 1.1

Title: Re: Ad Management mod
Post by: Mr. Freeweed on June 01, 2006, 06:36:59 PM
Im also trying to get the ad mod onto the helios theme

currenty using

smf 1.1 RC2
tiny portal
Title: Re: Ad Management mod
Post by: Bigguy on June 01, 2006, 09:07:16 PM
Here is the edit for the index.template.php. I do recomend getting an editor like php designer first.

Quote<file name="$themedir/index.template.php">
   <operation>
      <search position="replace"><![CDATA[   template_menu();]]></search>

<add><![CDATA[   template_menu();


if ($modSettings['ad_management_index'] && allowedTo('ad_manageperm'))
   echo '<br /><div align="center">',$modSettings['ad_management_content'],'</div>';]]>
</add>
</operation>


<operation>
<search position="replace"><![CDATA[function template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt;]]>
</search>

<add><![CDATA[function template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;

if ($modSettings['ad_management_bot_index'] && allowedTo('ad_manageperm'))
   echo '<br /><div align="center">',$modSettings['ad_management_content'],'</div>';]]>
</add>
</operation>
</file>

All this means is.

find:

Quotefunction template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt;

in "index.template.php" and replace it with:

Quotefunction template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;

if ($modSettings['ad_management_bot_index'] && allowedTo('ad_manageperm'))
   echo '<br /><div align="center">',$modSettings['ad_management_content'],'</div>';


After that, save the file, upload and move onto the next edit. ALWAYS MAKE A COPY OR A BACKUP OF THE FILE YOU ARE PLAYING WITH FIRST.
Title: Re: Ad Management mod
Post by: RebelRose on June 01, 2006, 10:11:15 PM
ok I did what you said to do, and I still do not see the ads, I have it to show an ad after first post. but nothing is showing
Title: Re: Ad Management mod
Post by: Bigguy on June 01, 2006, 10:51:52 PM
Ok that is just the edit for the "show on all pages" not for "after first post" With that edit it should show at the top of your page. I should also point out that I am using ad_mod_rc2_v1-4-1 i`m not sure if the edits are different for the newest version.
Title: Re: Ad Management mod
Post by: RebelRose on June 02, 2006, 12:06:48 AM
ok well maybe it is different

thanks anyway
Title: Re: Ad Management mod
Post by: Farmacija on June 02, 2006, 07:20:38 AM
Quote from: electrohome on February 01, 2006, 06:14:10 PM
Quote from: RBH on February 01, 2006, 12:57:13 AM
any chance this could be made to display certain banners in certain boards or does it do that?
i hadn't thought of doing that. i have a few other things i want to add to this mod. if possible, i will look into that.
Quote from: d3v on February 01, 2006, 04:01:32 AM
adsense?
i assuming your asking if this works for adsense, and yes it does.

Quote from: BadCluster on February 01, 2006, 06:45:00 AM
i upload the mod as a zip file and try to install it,
before that i made everything '777' rights in the package folder and when i try to install it i get this error

"An Error Has Occurred!   
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!


please verify that these files are also set to 777

Sources/ModSettings.php
Themes/default/index.template.php
Themes/default/BoardIndex.template.php
Themes/default/MessageIndex.template.php
Themes/default/Display.template.php
Themes/default/languages/Modifications.english.php

i do that but there isnt any change
Title: Re: Ad Management mod
Post by: Bigguy on June 02, 2006, 07:55:56 AM
Edits for ad_mod 1.5

In "index.template.php find:

Quotetemplate_menu();

and replace with:

Quote//Ad management code to display ads on top of the menubar

if ($modSettings['ad_management_index_above'] && allowedTo('ad_manageperm'))
   echo '<div align="',$modSettings['ad_management_align'],'">',$modSettings['ad_management_content'],'</div>';

   template_menu();

//Ad management code to display ads on the bottom of the memubar

if ($modSettings['ad_management_index_below'] && allowedTo('ad_manageperm'))
   echo '<div align="',$modSettings['ad_management_align'],'">',$modSettings['ad_management_content'],'</div>';

in the same file find:

Quotefunction template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt;

and replace with:

Quotefunction template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt;

//Ad management code to display your ads

   global $modSettings;

if ($modSettings['ad_management_bot_index'] && allowedTo('ad_manageperm'))
   echo '<div align="',$modSettings['ad_management_align'],'">',$modSettings['ad_management_content'],'</div>';

In BoardIndex.template.php find:

Quoteglobal $context, $settings, $options, $txt, $scripturl, $modSettings;

and replace with:

Quoteglobal $context, $settings, $options, $txt, $scripturl, $modSettings;

//Ad management code to display your ads

if ($modSettings['ad_management_board_index'] && allowedTo('ad_manageperm'))
   echo '<div align="',$modSettings['ad_management_align'],'">',$modSettings['ad_management_content'],'</div>';

In Display.template.php find:

Quoteglobal $context, $settings, $options, $txt, $scripturl, $modSettings;

and replace with:

Quoteglobal $context, $settings, $options, $txt, $scripturl, $modSettings;

//Ad management code to display your ads

if ($modSettings['ad_management_thread'] && allowedTo('ad_manageperm'))
   echo '<div align="',$modSettings['ad_management_align'],'">',$modSettings['ad_management_content'],'</div>';

In the same file find:

Quote</td></tr>';
   }

and replace with:

Quote</td></tr>';
if ($message['id'] == $context['first_message'])
   //Ad management code to display ads after the first post

   if ($modSettings['ad_management_firstad'] && allowedTo('ad_manageperm'))
   {
      echo '

   <tr><td style="padding: 1px 1px 0 1px;">
      <table width="100%" cellpadding="3" cellspacing="0" border="0">
         <tr><td class="windowbg3">
            <table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
               <tr>
                  <td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
                     <b>', $context['forum_name'], '</b>
                     <div class="smalltext">
                     </div>
                  </td>
                  <td valign="top" width="85%" height="100%">
                     <table width="100%" border="0"><tr>
                        <td valign="middle"><img src="', $message['icon_url'] . '" alt="" border="0" /></td>
                        <td valign="middle">
                           <div style="font-weight: bold;" id="subject_', $message['id'], '">
                              <a href="', $message['href'], '">', $message['subject'], '</a>
                           </div>
                           <div class="smalltext">« <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' »</div></td>
                        <td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
      if ($context['can_reply'] && !empty($options['display_quick_reply']))
         echo '
               ', $reply_button, '';

      // So... quick reply is off, but they *can* reply?
      elseif ($context['can_reply'])
         echo '
               ', $reply_button, '';

      // Can the user modify the contents of this post?
      if ($message['can_modify'])
         echo '
               ', $modify_button, '';

      // How about... even... remove it entirely?!
      if ($message['can_remove'])
         echo '
               ', $remove_button, '';

      // What about splitting it off the rest of the topic?
      if ($context['can_split'])
         echo '
               ', $split_button, '';
echo '
                        </td>
                     </tr></table>
                     <hr width="100%" size="1" class="hrcolor" />
                     <div class="post">', $modSettings['ad_management_content'] , '</div>
                  </td>
               </tr>
               <tr>
                  <td valign="bottom" class="smalltext" width="85%">
                     <table width="100%" border="0" style="table-layout: fixed;"><tr>
                        <td colspan="2" class="smalltext" width="100%">
                     </tr><tr>
                        <td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
                        </td>
                        <td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
                           <img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp;', $txt[511], '
                        </td>
                     </tr></table>
               </tr>
            </table>
         </td></tr>
      </table>
   </td></tr>';
   }

   }

In MessageIndex.template.php find:

Quoteglobal $context, $settings, $options, $scripturl, $modSettings, $txt;

and replace with:

Quoteglobal $context, $settings, $options, $scripturl, $modSettings, $txt;

//Ad Management Code to display your ads
if ($modSettings['ad_management_thread_index'] && allowedTo('ad_manageperm'))
   echo '<div align="',$modSettings['ad_management_align'],'">',$modSettings['ad_management_content'],'</div>';


If you have this installed on the default theme already these should be the only edits you need to do.

I was doing this last night but the power went out here where I live. This is for the current version. You must have it installed on the default theme in order for this to work.  BACKUP FILES FIRST.


Title: Re: Ad Management mod
Post by: RebelRose on June 02, 2006, 10:28:12 AM
BigGuy, I opened the index_template.php and I did not see an area that read just   template_menu();

I was going to try the edits you have listed here for ads mod 1.5, maybe I am missing something, I did see template_menu_main, I think is what it said, so I did not try the changes for fear I would mess something up.
Title: Re: Ad Management mod
Post by: Bigguy on June 02, 2006, 10:39:01 AM
Always make a backup of the file you are about to edit, then you can play a bit. If you mess up then replace the file with the original. I usually rename the index.template.php to index.template1.php after I download a copy of it. then with the copy on my desktop I can check things out and upload it knowing I have a backup of it.

As I said before the code does vary from theme to theme. For help with that edit try asking the theme author the proper place to put that edit. You can try the rest of the edits if you want to see if they will go.
Title: Re: Ad Management mod
Post by: RebelRose on June 02, 2006, 10:46:44 AM
Quote from: Bigguy on June 02, 2006, 10:39:01 AM
Always make a backup of the file you are about to edit, then you can play a bit. If you mess up then replace the file with the original. I usually rename the index.template.php to index.template1.php after I download a copy of it. then with the copy on my desktop I can check things out and upload it knowing I have a backup of it.

As I said before the code does vary from theme to theme. For help with that edit try asking the theme author the proper place to put that edit. You can try the rest of the edits if you want to see if they will go.

I will give it a go and see what happens, I have tried getting help from the them author on his board, as well as tried to get help for the author of this mod, to which I was told to just post it on the forum and someone was sure to help me.  I thank you for you time. And I will take your advise and do backups and copies before I do anything else.

Thank You
Title: Re: Ad Management mod
Post by: Bigguy on June 02, 2006, 10:49:53 AM
Your welcome, I hope it helps a bit. Once you get used to reading the .xml files you`ll be fine. You need a good editor to.
Title: Re: Ad Management mod
Post by: RebelRose on June 02, 2006, 10:52:04 AM
Yes I took your advise on getting an editor for php as well, again thank you so very much.
Title: Re: Ad Management mod
Post by: RebelRose on June 02, 2006, 11:40:33 AM
Quote from: Bigguy on June 02, 2006, 10:49:53 AM
Your welcome, I hope it helps a bit. Once you get used to reading the .xml files you`ll be fine. You need a good editor to.

Thank You So Very Much

The Edits worked GREAT

Thanks again
Title: Re: Ad Management mod
Post by: Bigguy on June 02, 2006, 11:58:12 AM
I`m glad it worked for you, cheers. :)
Title: Re: Ad Management mod
Post by: willi1 on June 02, 2006, 12:34:41 PM
thank you for your work,

now it works  :)

but i can´t see the ad settings in my admin control panel
where i must change these settings

have you any suggestions again


great  :)

best regards

André
Title: Re: Ad Management mod
Post by: Bigguy on June 02, 2006, 12:37:09 PM
Do you have a "Modifications.english.php" file in the languge directory of the theme you are trying to modify???
Title: Re: Ad Management mod
Post by: willi1 on June 02, 2006, 01:36:17 PM
no i have two files first settings.german.php and second settings.english.php
in the default theme is a modification.english.php but not in the classic theme

best regards
Title: Re: Ad Management mod
Post by: Bigguy on June 02, 2006, 01:55:25 PM
Copy the file "modification.english.php" to the language folder of the theme you are trying to modify.
Title: Re: Ad Management mod
Post by: Bigguy on June 02, 2006, 01:58:20 PM
after you copy that file to the language folder of the theme you want to modify go to features and options and you should see the "ads" link. Also in the permissions for each user group there is an option to enable ads.
Title: Re: Ad Management mod
Post by: willi1 on June 02, 2006, 02:10:46 PM
thank you very much,

now it works all  :)  :)  :)

i have copy the content of the modifications.english.php in the modifications.german.php and now i can all see the ads settings.

best regards

André
Title: Re: Ad Management mod
Post by: Bigguy on June 02, 2006, 02:11:22 PM
Glad I could help out. :)
Title: Re: Ad Management mod
Post by: SoftDux on June 02, 2006, 05:31:10 PM
Does anyone have a working copy for SMF 1.0.7 ?
Title: Re: Ad Management mod
Post by: eladio on June 03, 2006, 08:09:25 AM
i need help

i have tested that mod on my forum , but i have a problem becose i have a croatian language pack , and i can not see "ADS" button in Features and Options .

i have tested on english version and than is all OK .


sorry on bad english and thanks  :)







Title: Re: Ad Management mod
Post by: Bigguy on June 03, 2006, 11:07:45 AM
Have you checked here:

http://mods.simplemachines.org/index.php?mod=255

Quote from: SoftDux on June 02, 2006, 05:31:10 PM
Does anyone have a working copy for SMF 1.0.7 ?
Title: Re: Ad Management mod
Post by: eladio on June 03, 2006, 11:35:31 AM
Quote from: eladio on June 03, 2006, 08:09:25 AM
i need help

i have tested that mod on my forum , but i have a problem becose i have a croatian language pack , and i can not see "ADS" button in Features and Options .

i have tested on english version and than is all OK .


sorry on bad english and thanks  :)










i have a half problem solution  :D


if i type url : http://www.mypage.com/mySMFforum/index.php?action=featuresettings;sa=ad_management

then i manage to open  MANAGEMENT , hehe  :D

but there is a problem , then compleatly all text will be on center of page ::)

is there a chance to fix that center alligment in code ?

thanks and soory egen on my fuuny english  :D
Title: Re: Ad Management mod
Post by: Gamersea on June 03, 2006, 04:40:10 PM
I don't know what you language is.
But it makes some modifications in your:
Modifactions.English.php file that is in your theme directory.
To see it on your features at your language you have to copy the text in the modification.english.php file and past it in your modifications.your language.php file.
Title: Re: Ad Management mod
Post by: hartiberlin on June 03, 2006, 05:51:40 PM
Hi Jeremy,
is the new version with the skyscraper ad support soon coming,
or should I try to integrate these via tinyportal for instance ?

How many different ads will you support throughout the forum ?
Will there be more control which ads could be displayed in different "corners"
of the forum ?
Many thanks for your great work.
Title: Re: Ad Management mod
Post by: eladio on June 03, 2006, 07:10:08 PM
Quote from: Gamersea on June 03, 2006, 04:40:10 PM
I don't know what you language is.
But it makes some modifications in your:
Modifactions.English.php file that is in your theme directory.
To see it on your features at your language you have to copy the text in the modification.english.php file and past it in your modifications.your language.php file.

thanks , i have read this topic carefuly from start and find what i need to modify , and it works great  :)

..but is preaty easy with this link that i put over there (  http://www.mypage.com/mySMFforum/index.php?action=featuresettings;sa=ad_management ) call for ADS menu :)

..and then on blind test the code and manage banner , hehe  :)


hmm.. is there someone findout and solve a version of this mod for a classic theme or someother theme ??

..i have read that some people have a version for other themes, maybe they can ZIP a file/s for us  ???

:)

Title: Re: Ad Management mod
Post by: RBH on June 04, 2006, 10:44:06 PM
i am using this mod to place topsite banners and linkshare banners at the bottom of my pages. every looks like i want them to except when i open the smf arcade. when i open the arcade all of my topsite banners move to the top just below the tab bar and my linkshare banners at the bottom are off set and not how they look throughout the rest of the forum. since this only happens when using the arcade, what might i look at to try and remedy this? anyone else using this mod in the same fashion and have smf arcade and no problems? i used tables within my banner scripts and i thought maybe that might be the culprit but it doesn't display incorrectly on any page except the arcade. any suggestions would be appreciated. 
Title: Re: Ad Management mod
Post by: WarBirD on June 05, 2006, 06:23:58 PM
I have to admit, I am a little lost with all these changes making to different themes to make Mods work. :( Is it possible someone could make this Theme called Black22 (http://themes.simplemachines.org/index.php?lemma=19) to work with the Ad Management Mod. I really would appreciate the help. ;)
Title: Re: Ad Management mod
Post by: hawkshaw on June 05, 2006, 07:34:13 PM
Install Actions for archive ad_mod_1-0-7_v1-0-2b.zip:
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    install.php    
2.    Execute Modification    ./Sources/ModSettings.php    Success
3.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Success
4.    Execute Modification    ./Themes/default/index.template.php    Failure
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Success
6.    Execute Modification    ./Themes/default/Display.template.php    Success
7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Success
8.    Execute Modification    ./Sources/ManagePermissions.php    Success


All installation is okay but my index.template.php , can anyone help me with this? :(
Title: Re: Ad Management mod
Post by: hawkshaw on June 05, 2006, 07:42:51 PM
im using 1.0.7
Title: Re: Ad Management mod
Post by: Bigguy on June 05, 2006, 07:53:29 PM
Do you have any other mods installed ???


Quote from: hawkshaw on June 05, 2006, 07:34:13 PM
Install Actions for archive ad_mod_1-0-7_v1-0-2b.zip:
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    install.php    
2.    Execute Modification    ./Sources/ModSettings.php    Success
3.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Success
4.    Execute Modification    ./Themes/default/index.template.php    Failure
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Success
6.    Execute Modification    ./Themes/default/Display.template.php    Success
7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Success
8.    Execute Modification    ./Sources/ManagePermissions.php    Success


All installation is okay but my index.template.php , can anyone help me with this? :(
Title: Re: Ad Management mod
Post by: ellie789 on June 06, 2006, 06:35:56 AM
Hi

Does anyone know how to modify this so that it will work on other themes apart from the Default theme. I would greatly appreciate any help with this as it is a great mod but would be better if worked on different themes.

Ellie
Title: Re: Ad Management mod
Post by: WarBirD on June 06, 2006, 06:42:19 AM
@Ellie: It works on other themes actually, but you have to edit files for it to make it work. And like i said above, I am not that freaky with all that Code stuff, so I would appreciate any help myself to get it work for different themes. I tried some things and they didn´t work like they were supposed to be. I hope you and I, both get a little help and a little understand from all those Code Freaks out there that see all this as not really something difficult. ;)
Title: Re: Ad Management mod
Post by: Bigguy on June 06, 2006, 07:19:31 AM
Read back a couple pages, I set out all the edits you need to do to other themes in order to get it to work.

Quote from: ellie789 on June 06, 2006, 06:35:56 AM
Hi

Does anyone know how to modify this so that it will work on other themes apart from the Default theme. I would greatly appreciate any help with this as it is a great mod but would be better if worked on different themes.

Ellie
Title: Re: Ad Management mod
Post by: WarBirD on June 06, 2006, 07:25:51 AM
Quote from: Bigguy on June 06, 2006, 07:19:31 AM
Read back a couple pages, I set out all the edits you need to do to other themes in order to get it to work.

I tried some things and they didn´t work like they were supposed to be. So I guess its not that easy for anyone. Thats why I asked for a little help.
Title: Re: Ad Management mod
Post by: Bigguy on June 06, 2006, 07:29:11 AM
Did you read my posts as to what to edit. ??? Not all themes are the same. In some, the code is changed a bit. I suggest if you can`t get it by editing it yourself maybe the theme author will be able to help out.
Title: Re: Ad Management mod
Post by: hawkshaw on June 06, 2006, 07:32:07 AM
Quote from: Bigguy on June 05, 2006, 07:53:29 PM
Do you have any other mods installed ???


Quote from: hawkshaw on June 05, 2006, 07:34:13 PM
Install Actions for archive ad_mod_1-0-7_v1-0-2b.zip:
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    install.php    
2.    Execute Modification    ./Sources/ModSettings.php    Success
3.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Success
4.    Execute Modification    ./Themes/default/index.template.php    Failure
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Success
6.    Execute Modification    ./Themes/default/Display.template.php    Success
7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Success
8.    Execute Modification    ./Sources/ManagePermissions.php    Success


All installation is okay but my index.template.php , can anyone help me with this? :(

yup. 3 mods.

Mod Name     Version      
1.    SMF 1.0.7 / 1.1 RC2 Update    1.0    
2.    TinyPortal    0.86    
3.    Simple ImageShack    1.2.1
Title: Re: Ad Management mod
Post by: WarBirD on June 06, 2006, 07:36:53 AM
Quote from: Bigguy on June 06, 2006, 07:29:11 AM
Did you read my posts as to what to edit. ??? Not all themes are the same. In some, the code is changed a bit. I suggest if you can`t get it by editing it yourself maybe the theme author will be able to help out.

Yes, I read your posts but like you said, not all themes are the same. Thats a problem with many mods. And I know from some already asked Theme Authors, for other Reasons, that a lot of them don´t really care how to adapt a mod to their theme.

I will try to ask the Author of the Theme I need it for, hopefully it won´t be the same reaction. ;) Thx anyways.
Title: Re: Ad Management mod
Post by: Bigguy on June 06, 2006, 07:39:41 AM
I will try to help you later if you can`t find any help, I have to step out for a bit first though.
Title: Re: Ad Management mod
Post by: WarBirD on June 06, 2006, 07:44:27 AM
Quote from: Bigguy on June 06, 2006, 07:39:41 AM
I will try to help you later if you can`t find any help, I have to step out for a bit first though.

Thx m8, appreciate it.  ;) I added you in MSN, maybe we can talk later there. Thx again for your patience.
Title: Re: Ad Management mod
Post by: hawkshaw on June 06, 2006, 07:54:24 AM
thx bigguy  :)
Title: Re: Ad Management mod
Post by: Bigguy on June 06, 2006, 07:56:14 AM
Yep thats no problem. Anything I can do to help out.
Title: Re: Ad Management mod
Post by: WarBirD on June 06, 2006, 08:00:57 AM
Don´t worry, not all people are so incapable as I am.  :D :D
Title: Re: Ad Management mod
Post by: shinji on June 06, 2006, 10:02:05 AM
random never???  :-[
Title: Re: Ad Management mod
Post by: campxor on June 10, 2006, 05:54:04 AM
i have installed it but when i put in this code
src="http://www.hellzoneclan.net/images/evo/minilogo.gif" alt="Hellzoneclan" title="Hellzoneclan" border="0"></a>

that is what it saids on the Bord

what do i have to do?
Title: Re: Ad Management mod
Post by: fxpimps on June 10, 2006, 09:36:05 PM
Just downloaded this mod and attempted to install in CP Package Manager.

I get errors.

QuoteInstalling this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    install.php    
2.    Execute Modification    install.xml    Modification parse error
3.    Execute Modification    -    Modification parse error

I am running 1.1 RC2 and downloaded ad_mod_rc2_v1-5

I have no other mods intalled

What do i need to do to get this intalled correctly?

Title: Re: Ad Management mod
Post by: Naberius on June 12, 2006, 08:30:47 PM
Any word on a release date for the update? I have people queing up to give me money for advertising on my site.
Title: Re: Ad Management mod
Post by: Vinspire on June 13, 2006, 01:13:55 AM
I've gotten this error when i tried to install the mod

SMF 1.1 RC 2

File : ad_mod_rc2_v1-5

QuoteInstalling this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    install.php    
2.    Execute Modification    ./Sources/ModSettings.php    Test successful
3.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
4.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
5.    Execute Modification    ./Themes/default/index.template.php    Test successful
6.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
7.    Execute Modification    ./Themes/default/Display.template.php    Test failed
8.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
9.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
Title: Re: Ad Management mod
Post by: Bigguy on June 13, 2006, 08:06:51 AM
Install the mod then look at the install.xml file that comes with it and do those edits manually.
Title: Re: Ad Management mod
Post by: Vinspire on June 13, 2006, 01:47:32 PM
Quote from: Bigguy on June 13, 2006, 08:06:51 AM
Install the mod then look at the install.xml file that comes with it and do those edits manually.

And i have to manually uninstall it again if i wanted to uninstall it right ?  Isn't there any easier solution ?
Title: Re: Ad Management mod
Post by: Bigguy on June 13, 2006, 01:58:51 PM
yes you would have to remove the edits that you put in when you wanted to uninstall it. No I don`t think there is an easier way, sorry.
Title: Re: Ad Management mod
Post by: PrizeLive.com on June 13, 2006, 09:37:52 PM
Anyway to show ads between posts for certain member types?
Title: Re: Ad Management mod
Post by: drobb78 on June 13, 2006, 09:55:36 PM
I just changed my theme and now my ads aren't showing up. 
I even tried to uninstall and reinstall it but that didn't work.

Please advise.

David
www.ituneslinks.com/forum (http://www.ituneslinks.com/forum)
Title: Re: Ad Management mod
Post by: bicunisa on June 13, 2006, 10:03:11 PM
I'm using SMF 1.1 RC2, in spanish language.

I had to change the language back to English so the "ADS" tab would show.

Do you know why the tab doesn't show if the board is configured with another language than english???
Title: Re: Ad Management mod
Post by: Bigguy on June 13, 2006, 11:57:12 PM
@ SurfExcelerator.com: There is a way to show between posts with the current version of the ad mod. In the permissions for each member group is where you can turn ads on and off for certain groups.

@ drobb78: You have to modify any other theme but the default in order for the ads to show. I have posted the edits a couple pages back.

@ Sasuke kun: You might have to add the edits into the "modifications.yourlangauge.php" file.  ( I think)
Title: Re: Ad Management mod
Post by: jerm on June 14, 2006, 12:34:11 AM
Quote from: Sasuke kun on June 13, 2006, 10:03:11 PM
I'm using SMF 1.1 RC2, in spanish language.

I had to change the language back to English so the "ADS" tab would show.

Do you know why the tab doesn't show if the board is configured with another language than english???
thats a bit wierd. i would have thought it would have grabbed the english one by default if it couldn't find it in the spanish language file
Title: Re: Ad Management mod
Post by: Vinspire on June 14, 2006, 02:00:25 AM
Quote from: Bigguy on June 13, 2006, 01:58:51 PM
yes you would have to remove the edits that you put in when you wanted to uninstall it. No I don`t think there is an easier way, sorry.

Quote***Updates to come***
A lot of people have been requesting lots of things lately and i would just like to address some of the things you will get to see in the next release of the mod
- the ability to place ads in different places, such as: on the left side, on top of the page
- turn ads on/off depending on which board you are currently viewing
- turn off ads completely for the admin (may or may not be included.. i don't like the idea of the owner not seeing if their ads are showing up or not.. but we'll see)
- multiple text areas to input different types of ad code
- if possible, different types of ads depending on what board you are viewing

If i did this then when the next updates is here. I have to uninstall and manually modify the Display.template.php then only install the new version. It would a little troublesome.

So, when will the next version be out ?
Title: Re: Ad Management mod
Post by: jerm on June 14, 2006, 02:18:33 PM
Quote from: Vinspire on June 14, 2006, 02:00:25 AM
So, when will the next version be out ?

Testing it now
Title: Re: Ad Management mod
Post by: PrizeLive.com on June 14, 2006, 04:30:56 PM
It'd be nice to have ads available on the top or the bottom of a page, and also be able to show more than one set of different ads.
Title: Re: Ad Management mod
Post by: jerm on June 14, 2006, 04:41:24 PM
Quote from: SurfExcelerator.com on June 14, 2006, 04:30:56 PM
It'd be nice to have ads available on the top or the bottom of a page, and also be able to show more than one set of different ads.

Quote from: electrohome on June 14, 2006, 02:18:33 PM
Quote from: Vinspire on June 14, 2006, 02:00:25 AM
So, when will the next version be out ?

Testing it now
Title: Re: Ad Management mod
Post by: PrizeLive.com on June 14, 2006, 04:46:53 PM
Quote from: Bigguy on June 13, 2006, 11:57:12 PM
@ SurfExcelerator.com: There is a way to show between posts with the current version of the ad mod. In the permissions for each member group is where you can turn ads on and off for certain groups.

I don't see anywhere to do this.

I just went into the Permissions and saw nothing to change.
Title: Re: Ad Management mod
Post by: Bigguy on June 14, 2006, 06:34:17 PM
Goto: admin panel==>Permissions===>settings. Put a check mark next to these 3 options:

Enable the option to deny permissions
Enable permissions for post count based groups
Enable advanced by-board permissions

Then click on permissions again and see what you see.
Title: Re: Ad Management mod
Post by: Niteblade on June 14, 2006, 06:37:19 PM
I think there needs to a new feature in the next version that doesn't allow ads from company X (google) and company Y (yahoo) to be displayed on the same page...
Title: Re: Ad Management mod
Post by: Bigguy on June 14, 2006, 06:51:12 PM
What reason is there for this. ???

Quote from: nite0859 on June 14, 2006, 06:37:19 PM
I think there needs to a new feature in the next version that doesn't allow ads from company X (google) and company Y (yahoo) to be displayed on the same page...
Title: Re: Ad Management mod
Post by: Niteblade on June 14, 2006, 08:36:26 PM
https://www.google.com/adsense/localized-terms

General. You agree not to display on the same Web page in connection with which any Ad Unit, Ad, Link, Search Box, or Referral Button is displayed (a "Serviced Page") any advertisement(s) that an end user of Your Site(s) would reasonably confuse with a Google advertisement or otherwise associate with Google. If You have elected to receive content or Site-based Ads, You further agree not to display on any Serviced Page any non-Google content-targeted advertisement(s). If You have elected to receive Search Results on any Site(s), You agree that Google will be the exclusive provider of Internet search services on such Site(s). Certain Google services available as part of the Program may contain filtering capability, such as SafeSearch or AdSafe, that You may access through Your account. However, if You elect to enable any such filters, You acknowledge and agree that: (i) it is Your responsibility to enable such features in accordance with the specifications provided by Google, and (ii) Google does not and cannot commit that all results (including Ads, Links and Search Results) will be limited to results elected by enabling such filter(s). Google may also include in certain services features which are unsupported under Google's then current technical documentation. Such features are provided "as is" and Your use of them shall be undertaken solely at Your own risk.
Title: Re: Ad Management mod
Post by: Bigguy on June 14, 2006, 08:43:49 PM
I did not know that. Thanks for posting this, it`s very insightful.
Title: Re: Ad Management mod
Post by: Niteblade on June 14, 2006, 09:05:05 PM
I love this forum software; I love this community, therefore I will help in my little limited way when I can.

GUESTS ! You need to register !
Title: Re: Ad Management mod
Post by: PrizeLive.com on June 14, 2006, 09:32:16 PM
Quote from: Bigguy on June 14, 2006, 06:34:17 PM
Goto: admin panel==>Permissions===>settings. Put a check mark next to these 3 options:

Enable the option to deny permissions
Enable permissions for post count based groups
Enable advanced by-board permissions

Then click on permissions again and see what you see.

I did that but there's nothing new. How are you able to set ad code to be displayed within posts in a certain thread?
Title: Re: Ad Management mod
Post by: Bigguy on June 14, 2006, 09:38:32 PM
you cannot do it on just certain threads if you enable it it will show on all threads between posts. If you want to enable it for just certain member groups you can turn it off for them in the permissions. What version of ad mod are you running ??? also are you on the default theme ??? If not then you might have missed some edits.
Title: Re: Ad Management mod
Post by: PrizeLive.com on June 14, 2006, 09:45:02 PM
Quote from: Bigguy on June 14, 2006, 09:38:32 PM
you cannot do it on just certain threads if you enable it it will show on all threads between posts. If you want to enable it for just certain member groups you can turn it off for them in the permissions. What version of ad mod are you running ??? also are you on the default theme ??? If not then you might have missed some edits.

The "Display ads on Thread" option doesn't do anything after I select it. Could that code be wrong in whichever file it is? I'm running version 1.2 of Ad Management. I'm using the default theme only right now.
Title: Re: Ad Management mod
Post by: bicunisa on June 14, 2006, 10:37:53 PM
Quote from: electrohome on June 14, 2006, 12:34:11 AM
Quote from: Sasuke kun on June 13, 2006, 10:03:11 PM
I'm using SMF 1.1 RC2, in spanish language.

I had to change the language back to English so the "ADS" tab would show.

Do you know why the tab doesn't show if the board is configured with another language than english???
thats a bit wierd. i would have thought it would have grabbed the english one by default if it couldn't find it in the spanish language file

It seems to be a GENERAL problem of SMF, every mod that you install, needs to have a language pack for your boards, if it doesn't, then it will not show the TABS it install.
Title: Re: Ad Management mod
Post by: Vinspire on June 14, 2006, 11:22:40 PM
Quote from: electrohome on June 14, 2006, 02:18:33 PM
Quote from: Vinspire on June 14, 2006, 02:00:25 AM
So, when will the next version be out ?

Testing it now

Then I guess i will wait for the new version to be out.

Hopefully it wont be long for the new version :)
Title: Re: Ad Management mod
Post by: Bigguy on June 15, 2006, 12:27:44 AM
If your running Smf 1,1rc2 you should really update your ad mod to the newest version.

Quote from: SurfExcelerator.com on June 14, 2006, 09:45:02 PM
Quote from: Bigguy on June 14, 2006, 09:38:32 PM
you cannot do it on just certain threads if you enable it it will show on all threads between posts. If you want to enable it for just certain member groups you can turn it off for them in the permissions. What version of ad mod are you running ??? also are you on the default theme ??? If not then you might have missed some edits.

The "Display ads on Thread" option doesn't do anything after I select it. Could that code be wrong in whichever file it is? I'm running version 1.2 of Ad Management. I'm using the default theme only right now.
Title: Re: Ad Management mod
Post by: Vinspire on June 15, 2006, 02:42:59 AM
Ermm ... Any idea when is the next version will be out ?
Title: Re: Ad Management mod
Post by: Bigguy on June 15, 2006, 08:09:08 AM
No, but it should be sometime soon
Title: Re: Ad Management mod
Post by: PrizeLive.com on June 15, 2006, 09:54:58 AM
How can I show the "Shoutbox" on the bottom below the last board but above the forum stats? Forum is here: http://www.moneytalkpro.com/index.php.

Which file do I edit to make this happen?

Thanks.
Title: Re: Ad Management mod
Post by: Bigguy on June 15, 2006, 11:09:10 AM
That doesn`t have anything to do with ad management does it ???
Title: Re: Ad Management mod
Post by: PrizeLive.com on June 15, 2006, 01:26:08 PM
Quote from: Bigguy on June 15, 2006, 11:09:10 AM
That doesn`t have anything to do with ad management does it ???

No sorry, posted in wrong thread.
Title: Re: Ad Management mod
Post by: jerm on June 15, 2006, 02:02:29 PM
Quote from: Vinspire on June 15, 2006, 02:42:59 AM
Ermm ... Any idea when is the next version will be out ?
soon enough. a lot of changes have been made, and i want to make sure there are no bugs/complications
Title: Re: Ad Management mod
Post by: Jelte on June 15, 2006, 03:38:46 PM
Great addon! I've installed it (on the safgreen theme manually) and it works great!

I have only one question:

How can I change the author name of the ad displayed after the first post?
Title: Re: Ad Management mod
Post by: Vinspire on June 16, 2006, 12:10:29 AM
Quote from: electrohome on June 15, 2006, 02:02:29 PM
soon enough. a lot of changes have been made, and i want to make sure there are no bugs/complications

Thanks for the good news. Then i shall wait for the new version to be out  :D :D :D
Title: Re: Ad Management mod
Post by: PrizeLive.com on June 16, 2006, 08:34:55 AM
What are some features in the new upgrade?
Title: Re: Ad Management mod
Post by: Vinspire on June 16, 2006, 11:45:07 AM
Quote from: SurfExcelerator.com on June 16, 2006, 08:34:55 AM
What are some features in the new upgrade?

This is taken from the #1 Post in this thread

Quote***Updates to come***
A lot of people have been requesting lots of things lately and i would just like to address some of the things you will get to see in the next release of the mod
- the ability to place ads in different places, such as: on the left side, on top of the page
- turn ads on/off depending on which board you are currently viewing
- turn off ads completely for the admin (may or may not be included.. i don't like the idea of the owner not seeing if their ads are showing up or not.. but we'll see)
- multiple text areas to input different types of ad code
- if possible, different types of ads depending on what board you are viewing
Title: Re: Ad Management mod
Post by: PrizeLive.com on June 16, 2006, 02:02:14 PM
Thanks
Title: Re: Ad Management mod
Post by: BoA on June 16, 2006, 03:44:12 PM
2) When using Opera, a white space is left when the Ad management MOD tries to dsplay Google Adsense. (even though I set the background color exactly the same as the background color of the board)
Title: Re: Ad Management mod
Post by: Round11 on June 17, 2006, 06:54:55 PM
Wonderful job.  Works wonderfully on my board.  Much appreciated.
Title: Re: Ad Management mod
Post by: hjiljgkl on June 18, 2006, 07:41:33 AM
Great mod, good for making your ads easy to add and not making them look out of place ;)
Title: Re: Ad Management mod
Post by: ComputerLady on June 18, 2006, 06:52:37 PM
I like the idea of this mod a lot, but did get errors when I tried to install (ad_mod_rc2_v1-2.zip from MOD download area). Attempts to open the 'Features and Options' section would produce a fatal error. Was able to remove it, and delete it. For some odd-ball reason, the 'AD' section within 'Features and Options' now shows! Anything added here doesn't show up because the rest of the mod is gone.

Using SMF 1.1 RC2, with new default theme. (No real customization there.)

Other MOD's installed:
1.    Enchanced post template      1.0.1
2.    Attachments Mod    1.0
3.    Board Viewers    0.6
4.    Merge Double Posts    1.04
5.    Report PM to Administrator    0.2
6.    CAPTCHA (code verification)    0.1
7.    VisualWarning    1.3    
8.    SMF 1.0.7 / 1.1 RC2 Update    1.0
9.    Custom Profile Mod    1.11
10.    Reason For Editing Mod    1.12
11.    Topic Ratings    1.03

I can remove some of these MOD's, especially those that are not all that useful to assist with troubleshooting. (Some of them have kind of outlived their usefulness as my moderators have grown more sophisticated.) 
Title: Re: Ad Management mod
Post by: Niteblade on June 19, 2006, 01:59:05 AM
How do I disable, not just hide, my forum name from being displayed as the poster of the ads after the first topic ?

I would like the entire space after the first post to be reserved for ads; No date, no buttons ( quote, modify, remove, split topic ) , no icon, no subject line, no forum name : nothing but an ad.
Title: Re: Ad Management mod
Post by: Bigguy on June 19, 2006, 09:28:45 AM
Computerlady, if your installing onto smf 1.1 rc2 you should be installing this version:
ad_mod_rc2_v1-5.zip

@ nite0859: I don`t think you can do that without making aditional edits.
Title: Re: Ad Management mod
Post by: jerm on June 19, 2006, 12:48:30 PM
version 2 is now out
Title: Re: Ad Management mod
Post by: Vinspire on June 19, 2006, 12:57:32 PM
Quote from: electrohome on June 19, 2006, 12:48:30 PM
version 2 is now out

Awesome !!! And i guess i am the first to get to download it.

ad_mod_rc2_v2.zip (15KB)     Download : 1

;D ;D ;D
Title: Re: Ad Management mod
Post by: tosp2 on June 19, 2006, 03:13:01 PM
Before I install this new version, so I know what I am doing right off the bat...how will this upgrade affect my modifications for my custom theme that I had to do in version 1?  Will it work with these modifications?  Will it overwrite them?  Will I have to do the modifications for each file again for the theme?  Will I encounter any errors due to the modifications I had to do?  Im excited to install this, but nervous about screwing up the way its working now.  Can you please advise on this matter?  Thanks
Title: Re: Ad Management mod
Post by: Bigguy on June 19, 2006, 03:18:14 PM
If you had to install the last version of the Ad mod manually then you will have to take out those edits and replace them with the new edits. The edits for this mod differ from 1.5 so you will have to refer to the install.xml file for the manul way to add the code to your theme.

Try going here for more help (http://www.smfads.com)
Title: Re: Ad Management mod
Post by: tosp2 on June 19, 2006, 03:23:24 PM
Ugghh, that was a job in itself the first time  LOL  Wasnt looking forward to doing it again.  Thanks anyway!

P.S.  I'm assuming that I can just overwrite the existing modifications with the new ones? Or do I have to completely go back down to the bare files again by removing the current edits and start fresh with the new ones?
Title: Re: Ad Management mod
Post by: Bigguy on June 19, 2006, 03:25:11 PM
I would suggest uninstalling 1.5 if that is the version you have installed, removing the edits. Then installing the new one on the default them and add the new edits to your theme you are using.

EDIT: This version is only for smf 1.1rc2
Title: Re: Ad Management mod
Post by: ComputerLady on June 19, 2006, 04:54:54 PM
Quote from: electrohome on June 19, 2006, 12:48:30 PM
version 2 is now out

Guess I was trying wrong version. At any rate, installed new one with no problems or errors. Now all I need to do is finish writing the code for my ad section! Much appreciated and good job!

Before I forget, I better get over and become a charter member. Been meaning to do that for a while....
Title: Re: Ad Management mod
Post by: Bigguy on June 19, 2006, 04:58:02 PM
Glad it installed ok for you. It`s nice your suporting smf, glad to hear that to. ;)
Title: Re: Ad Management mod
Post by: muhammadasad on June 19, 2006, 06:21:53 PM
I am trying to install Ads mod on my SMF 1.0.7 but its not working. I also download mod from http://mods.simplemachines.org/index.php?mod=255 for SMF 1.0.7, it was installed but it doesn't working.
Title: Re: Ad Management mod
Post by: Bigguy on June 19, 2006, 06:23:11 PM
I this the one you downloaded for smf 1.0.7:

ad_mod_1-0-7_v1-0-2b.zip
Title: Re: Ad Management mod
Post by: RBH on June 19, 2006, 10:48:49 PM
i went to uninstall 1.5 and had errors so i manually removed. i then went to install ver 2 and had errors in display template. i am trying to make the changes to display template but hit a snag.

here is what i have.
</td></tr>';
if($context['is_sticky'] && ($message['id']==$context['topic_first_message'])) {
echo '<tr><td class="titlebg" style="padding: 3px 0px;">&nbsp;</td></tr>';
}

if($context['is_sticky'] && ($message['id']==$context['topic_first_message'])) {
echo '<tr><td class="titlebg" style="padding: 3px 0px;">&nbsp;</td></tr>';
}

}

}
echo '


it looks like something got added twice maybe when i installed a sticky post mod a while back? the question i have though is what to remove and what to replace for the ad mod. here is whats suppose to be searched for
<search position="replace"><![CDATA[ </td></tr>';
}]]>
</search>


here is the code that gets added

</td></tr>';
if ($adpost = show_posts($adcounter))
{
echo '

<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><img src="', $message['icon_url'] . '" alt="" border="0" /></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>
<div class="smalltext">« <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' »</div></td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
', $reply_button, '';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
', $reply_button, '';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
', $modify_button, '';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
', $remove_button, '';

// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
', $split_button, '';
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</div>
</td>
</tr>
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp;', $txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}

}


any ideas or suggestions? ???
Title: Re: Ad Management mod
Post by: Bigguy on June 20, 2006, 08:56:38 AM
Take the top edit out...unless you don`t have that mod installed now then take them both out and add the normal edit for the add mod. BACKUP BACKUP BACKUP
Title: Re: Ad Management mod
Post by: RBH on June 20, 2006, 06:41:04 PM
thanks bigguy, so far so good. ;D  love the new features electrohome!
Title: Re: Ad Management mod
Post by: jerm on June 21, 2006, 01:58:33 AM
glad'ja enjoy
Title: Re: Ad Management mod
Post by: eriktm on June 21, 2006, 04:33:47 AM
I see that smfads.com (http://smfads.com) is down.
I can't reach the site. Whats the problem?
Title: Re: Ad Management mod
Post by: Bigguy on June 21, 2006, 12:46:03 PM
I can get on it now, but sometimes I can`t. I`m behind a router on a cable modem and all I did was add my cable modems DNS to the router somewhere and I can get on. (Does that make sense)
Title: Re: Ad Management mod
Post by: PrizeLive.com on June 21, 2006, 01:55:15 PM
The new update is great but what if you want to have ads on all boards or on the index page of the forum? I have 130+ boards, so do I have to type in all the board numbers?
Title: Re: Ad Management mod
Post by: jerm on June 21, 2006, 02:13:28 PM
Quote from: Erik™ on June 21, 2006, 04:33:47 AM
I see that smfads.com (http://smfads.com) is down.
I can't reach the site. Whats the problem?
changing servers

Quote from: SurfExcelerator.com on June 21, 2006, 01:55:15 PM
The new update is great but what if you want to have ads on all boards or on the index page of the forum? I have 130+ boards, so do I have to type in all the board numbers?
if you leave the input box empty, it will display on all boards
Title: Re: Ad Management mod
Post by: PrizeLive.com on June 21, 2006, 02:53:55 PM
Quote from: electrohome on June 21, 2006, 02:13:28 PM
if you leave the input box empty, it will display on all boards

great, thanks! ;D
Title: Re: Ad Management mod
Post by: muhammadasad on June 21, 2006, 03:52:19 PM
Quote from: Bigguy on June 19, 2006, 06:23:11 PM
I this the one you downloaded for smf 1.0.7:

ad_mod_1-0-7_v1-0-2b.zip

Yes, i installed this version but its not working. Plz help me out for my SMF 1.0.7
Title: Re: Ad Management mod
Post by: PrizeLive.com on June 21, 2006, 04:22:33 PM
Report Tab
Clicking this tab will give you a short summary on what ads are placed and where they are placed on your forum, plus how many hits they are getting.

------

That report is pretty cool but can't you count click-throughs some how? Hits don't really help since you can already determine that anyway.

Also, on this page: http://www.moneytalkpro.com/index.php?board=11.0, how can I show the banner under the child boards?
Title: Re: Ad Management mod
Post by: Bigguy on June 21, 2006, 04:30:41 PM
I`m not sure if there is a way to show it under child boards. As for "click-throughs" that is something electrohome will have to answer.
Title: Re: Ad Management mod
Post by: PrizeLive.com on June 21, 2006, 04:49:48 PM
Quote from: Bigguy on June 21, 2006, 04:30:41 PM
I`m not sure if there is a way to show it under child boards. As for "click-throughs" that is something electrohome will have to answer.

There has to be a way. I'm sure its just a code change in display.template.php but I'm not sure what to do. I may mess with it later but I'd rather not mess anything up.

Yeah I hope he can answer the click-through question cuz that's more important than hits.
Title: Re: Ad Management mod
Post by: jerm on June 21, 2006, 04:56:37 PM
Quote from: SurfExcelerator.com on June 21, 2006, 04:22:33 PM
Report Tab
Clicking this tab will give you a short summary on what ads are placed and where they are placed on your forum, plus how many hits they are getting.

------

That report is pretty cool but can't you count click-throughs some how? Hits don't really help since you can already determine that anyway.

Also, on this page: http://www.moneytalkpro.com/index.php?board=11.0, how can I show the banner under the child boards?

i can't do click through. to do that, i'd hvae to program something like phpadsnew, which wont happen. this mod is more to easy in ad placement, so that you dont have to edit the theme file yourself. if you want a click through program, i'd suggest to install phpadsnew

childboard:
i had never thought of placing ads under the child boards, i'll include that in the next version
Title: Re: Ad Management mod
Post by: tosp2 on June 21, 2006, 07:48:35 PM
I think Ive decided not to upgrade right now due to the trouble in having to re-edit all my files due to the custom theme I am using.  However, I did want to make a suggestion for the next version if I could.  I was looking to have ad placement inbetween board categories (there is a background space there) on the board index, as well as at the bottom of the forum page, just like the top.  I dont want to use skyscraper ads and I would rather keep most of the ads on the main board index instead of inbetween posts.  I havent seen that the new current version can do this, so if it can please let me know that I am missing it, otherwise, I would like to see these placements included in subsequent versions.  Thanks!  :)
Title: Re: Ad Management mod
Post by: ArkServer on June 22, 2006, 03:03:18 PM
I cannot see the ads in the board and thread index page tho i enabled it.
http://atlantis.montecarlohosting.net/~arksvr/forum/index.php/board,413.0.html

What should i do to edit it manually?

if possibel can you take a quick look in my php files? the mod installed without any problems.
Title: Re: Ad Management mod
Post by: Niteblade on June 23, 2006, 08:18:19 PM
Has anyone installed this along with Tiny Portal ? They fight.
Title: Re: Ad Management mod
Post by: jerm on June 23, 2006, 08:37:06 PM
Quote from: ArkServer on June 22, 2006, 03:03:18 PM
I cannot see the ads in the board and thread index page tho i enabled it.
http://atlantis.montecarlohosting.net/~arksvr/forum/index.php/board,413.0.html

What should i do to edit it manually?

if possibel can you take a quick look in my php files? the mod installed without any problems.

i see the ads..

Quote from: nite0859 on June 23, 2006, 08:18:19 PM
Has anyone installed this along with Tiny Portal ? They fight.
they don't fight. i've tested it along site a couple others and it works fine with tp installed
Title: Re: Ad Management mod
Post by: ArkServer on June 23, 2006, 08:38:55 PM
it works when you click and see the topic itself but the ad do not show up in the topic list index..
Title: Re: Ad Management mod
Post by: Bigguy on June 23, 2006, 08:51:47 PM
I can see it fine on the Topics list. If you have FF and No script installed, try allowing the script to run.

Quote from: ArkServer on June 23, 2006, 08:38:55 PM
it works when you click and see the topic itself but the ad do not show up in the topic list index..
Title: Re: Ad Management mod
Post by: Naberius on June 24, 2006, 04:22:46 AM
I said this on the admod support site and I will say it here as I am so happy with what you have done. Bravo!!!
Major Kudos to bigguy and Jeremy. After a quick manual install it works first time on all locations. I love the reports. I love the most the way each Ad location can be named for management purposes.

This has turned out far better than I could have dreamed. Thank you for your time.
Title: Re: Ad Management mod
Post by: Vinspire on June 24, 2006, 06:09:35 AM
Quote from: AMBA on June 24, 2006, 04:22:46 AM
I said this on the admod support site and I will say it here as I am so happy with what you have done. Bravo!!!
Major Kudos to bigguy and Jeremy. After a quick manual install it works first time on all locations. I love the reports. I love the most the way each Ad location can be named for management purposes.

This has turned out far better than I could have dreamed. Thank you for your time.

Same here. One of the best mod and no error in the 1st installation.

Great job guys !!! I am lovin' it  ;D ;D ;D
Title: Re: Ad Management mod
Post by: BFTUK on June 24, 2006, 02:20:12 PM
Quick question. I have this mod running but get two adverts showing after the first post (I think at some point i've reinstalled the mod which caused this error)

Which file do i need to edit? and what code am i looking for?  ???
Title: Re: Ad Management mod
Post by: jerm on June 24, 2006, 04:32:31 PM
Display.template.php
and depending on the version your using
look for
//Ad management code to display ads after the first post
two of those would probably be in that file

make a back up before you edit anything. editing after the first post can be tricky
Title: Re: Ad Management mod
Post by: BFTUK on June 24, 2006, 04:54:49 PM
Thanks but i could'nt find that in the code!

Any other ideas?

Using 1.07
Title: Re: Ad Management mod
Post by: jerm on June 25, 2006, 12:25:51 AM
if ($message['id'] == $context['first_message'] && allowedTo('ad_manageperm'))
Title: Re: Ad Management mod
Post by: Vinspire on June 25, 2006, 01:20:06 AM
My ad management mod in themis theme  :P  ;)

(http://img59.imageshack.us/img59/7467/themis5rk.jpg)
Title: Re: Ad Management mod
Post by: ArkServer on June 25, 2006, 06:57:13 AM
(http://arkserver.servehttp.com/weird.JPG)
Title: Re: Ad Management mod
Post by: rocketman on June 26, 2006, 09:53:18 AM
For some reason i do not see the AD Configuration portion in the Admin screen.  Is there something I'm missing?  I am using the default Theme.  I have tried to uninstall and reinstall several times, but I still do not see it...

Thanks in advance.
Title: Re: Ad Management mod
Post by: Vinspire on June 26, 2006, 10:02:32 AM
Quote from: rocketman on June 26, 2006, 09:53:18 AM
For some reason i do not see the AD Configuration portion in the Admin screen.  Is there something I'm missing?  I am using the default Theme.  I have tried to uninstall and reinstall several times, but I still do not see it...

Thanks in advance.


I assume that your mod installation is successful.

Try looking here

Admin -> Configuration -> Ad Management :)
Title: Re: Ad Management mod
Post by: Antac on June 27, 2006, 08:22:28 AM
I have succesfull installed AD mod on forum 1.0.7. but I can`t see banner with my "Classic YaBB SE Theme" it works only with default theme!!!

why???
ideas?
Title: Re: Ad Management mod
Post by: Bigguy on June 27, 2006, 09:22:17 AM
You have to do the edits manually in order for the ads to show up on anything else other than the default theme. Look in the install.xml file for the template edits.
Title: Re: Ad Management mod
Post by: Antac on June 27, 2006, 09:48:36 AM
Quote from: Bigguy on June 27, 2006, 09:22:17 AM
You have to do the edits manually in oder for the ads to show up on anything else other than the default theme. Look in the install.xml file for the template edits.

:( I don`t understand u...do u mean that I should change install.xml or some file of theme where is the problem!???
Title: Re: Ad Management mod
Post by: Bigguy on June 27, 2006, 11:04:43 AM
No...Go into your admin panel to packages, find the ad mod and beside it there will be a link to "List Files" press that and look for the file called "Install.xml" All the edits that need to be done are in that file. You need to edit the template files on the theme you are using in order for it to show on that theme.
Title: Re: Ad Management mod
Post by: Antac on June 27, 2006, 12:00:16 PM
Quote from: Bigguy on June 27, 2006, 11:04:43 AM
No...Go into your admin panel to packages, find the ad mod and beside it there will be a link to "List Files" press that and look for the file called "Install.xml" All the edits that need to be done are in that file. You need to edit the template files on the theme you are using in order for it to show on that theme.

aha....I understand now...but thats too complicated for me...I`am afraid I could f*cked up whole forum...exsist maybe easier way?
Title: Re: Ad Management mod
Post by: Bigguy on June 27, 2006, 04:12:09 PM
No as long as you back everything up then you should be ok. Just backup before you play, I always make a copy of the file that I`m editing incase I screw up I can just put the backup I have in place.
Title: Re: Ad Management mod
Post by: Zeremi on July 02, 2006, 01:56:34 PM
Woo first mod that works perfectly!! YAAY!! It rocks, thanks!

But is there possible to put like one to down, other to up and like that...?
There is only possible to put the same to places that you select?


Thanks!
-Zeremi
Title: Re: Ad Management mod
Post by: Bigguy on July 03, 2006, 01:20:48 AM
Can you explain more.

Quote from: Zeremi on July 02, 2006, 01:56:34 PM
Woo first mod that works perfectly!! YAAY!! It rocks, thanks!

But is there possible to put like one to down, other to up and like that...?
There is only possible to put the same to places that you select?


Thanks!
-Zeremi
Title: Re: Ad Management mod
Post by: Zeremi on July 03, 2006, 04:21:14 AM
I got ad named A and B.
I wanna put A into option "Display ads on every page (ontop)"
I wanna put B into option "Display ads on every page (onbottom)"
But I dont want to put A on bottom or B on top

Is that possible?
Title: Re: Ad Management mod
Post by: Bigguy on July 03, 2006, 11:02:40 AM
Yes I would think so.
Title: Re: Ad Management mod
Post by: Zeremi on July 03, 2006, 02:12:49 PM
Well, there is only one box for the code...

So how is it possible?
Title: Re: Ad Management mod
Post by: Bigguy on July 03, 2006, 02:32:32 PM
What version of the ad mod are you using ???
Title: Re: Ad Management mod
Post by: Zeremi on July 03, 2006, 02:41:57 PM
ad_mod_1-0-7_v1-0-2b

And SMF 1.0.7
Title: Re: Ad Management mod
Post by: Bigguy on July 03, 2006, 02:43:23 PM
Ok in Version 2 for smf 1.1rc2 there is a way to do this. In the version you are using there is not, sorry. You will have to upgrade to get that feature in ad management.
Title: Re: Ad Management mod
Post by: Zeremi on July 03, 2006, 03:02:04 PM
Yar! Why everyone uses the same version!

Okey... Im gonna update the whole SMF... But not yet... Soon...

Muahahahahaaa!!!
Title: Re: Ad Management mod
Post by: Zeremi on July 04, 2006, 06:46:23 AM
I did upgrade it and download different version but still...

Doesnt work!
Title: Re: Ad Management mod
Post by: Bigguy on July 04, 2006, 10:34:14 AM
Did you recieve any errors while installing through the package manager ??? Are you using a diferent theme other than the default one.
Title: Re: Ad Management mod
Post by: Zeremi on July 04, 2006, 10:51:11 AM
No errors.

I use Dark Red... But I try the default now.
Title: Re: Ad Management mod
Post by: Zeremi on July 04, 2006, 10:53:14 AM
Nope, the same thing when using other themes...
Title: Re: Ad Management mod
Post by: Bigguy on July 04, 2006, 11:22:05 AM
Can you provide me a link. Do you have your ad code inserted properly.
Title: Re: Ad Management mod
Post by: Zeremi on July 04, 2006, 11:32:30 AM
Well, there is no ads right now at the site but heres a screenshot.

http://img448.imageshack.us/img448/7854/nimetn1wb.jpg (http://img448.imageshack.us/img448/7854/nimetn1wb.jpg)
Title: Re: Ad Management mod
Post by: Bigguy on July 04, 2006, 11:38:01 AM
I don`t believe that`s the latest version. You should uninstall it and use the newest version with smf1.1 rc2 or have you not upgraded yet. If your using a different theme other than the default all the edits must be put in manually to the template files listed in the "install.xml" file.

EDIT: This is the latest version of the ad mod: ad_mod_rc2_v2.zip (http://mods.simplemachines.org/index.php?action=download;mod=255;id=16492)
Title: Re: Ad Management mod
Post by: Zeremi on July 04, 2006, 11:46:36 AM
I download that, I install it, I did put the files to FTP and right director...

But what execute code    install.php  mean?
Title: Re: Ad Management mod
Post by: Zeremi on July 04, 2006, 11:50:40 AM
Oh sorry, I think it works now! I was looking at features and options, not the right place...

But thanks anyway! And sorry for many tiny posts and double posts!
-Zeremi
Title: Re: Ad Management mod
Post by: Bigguy on July 04, 2006, 11:52:16 AM
When installing this mod you have to goto your "Admin panel" then to "Packages" then click on "Download Packages" Hit the browse button and find the zip file on your computer and upload that way. Once you have it uploaded hit the proceed link.

It will do a test to see if it can install itself, you should see the word "success" beside all of the files, if you do then hit the "Install now" button at the bottom right corner. This will install the mod. First you will have to remove the other one and all your edits that you did if any before trying to install it this way.

EDIT: Ok, glad you got it.
Title: Re: Ad Management mod
Post by: Zeremi on July 04, 2006, 02:27:59 PM
Doh...

I did everything that I should to display my picture with html code.
Only thing... It wont show anything...

So...  >:(
Title: Re: Ad Management mod
Post by: Zeremi on July 04, 2006, 02:42:58 PM
Ok, I noticed it goes to default theme. How can I change it to go my Dark Red theme?

And btw, the new version aint working. This is hard to explain but ill try...

There are two Ad Management places, one under Features and Option's place, other just at Configuration.
At FandO there is this one box thing that I posted the screenshot.
In C there is better version that allows multiple ads and more features.
But the better wont work. The bad works and I need more places than one.
And that works only at default theme.

Lets say that there read A at the bad version and B at the better.
When I change to default there reads A, not B...
But in the configure place I did put that there should be read B...

Hehe, got it?

I test somethings more... Like taking the A away from the bad version... Maybe its over my B...
Title: Re: Ad Management mod
Post by: Zeremi on July 04, 2006, 03:37:06 PM
Ok, I ot it work! for only default theme...

So please answer soon for my question: How to make ads show in other themes? (example Dark Red)

Thanks!
-Zeremi
Title: Re: Ad Management mod
Post by: Zeremi on July 04, 2006, 04:25:40 PM
Well, I search this mods pages and found the answer... Almost...

I should manually add things by the install.xml file, right?
Now there is a problem... It asks some file from my themedir that I dont got...

>:(

Why this is so ***king hard...

(Sorry for the 4th double post...)
Title: Re: Ad Management mod
Post by: Bigguy on July 04, 2006, 04:29:22 PM
If the file it is asking for is not there, thats ok. This means that your theme will use the default template in which case the edits for that file should already be done when you installed it.
Title: Re: Ad Management mod
Post by: Zeremi on July 04, 2006, 04:38:54 PM
...

Great...

I juuuust replaced the edited files with the normals...

Isnt there other way? like all the files that I need to put into default I would put it into Dark Red...?

Becaus im bad at that coding, tired and that code... Its freaking big...  :-[
Title: Re: Ad Management mod
Post by: Bigguy on July 04, 2006, 04:55:03 PM
The files from the default theme might not exactly be compatible with the theme your trying to use. Thats why you have to manually add the edits to other themes.
Title: Re: Ad Management mod
Post by: Zeremi on July 04, 2006, 05:03:36 PM
"Template Parse Error!
There was a problem loading the /Themes/DarkRed/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
parse error, unexpected T_STRING, expecting ',' or ';'"

...

And I was happy for one moment...

Now excuse me, I need to go shout...
Title: Re: Ad Management mod
Post by: Bigguy on July 04, 2006, 05:08:58 PM
All the edits that need to be done can be found here (http://www.smfads.com/forums/index.php?board=7.0)
Title: Re: Ad Management mod
Post by: Zeremi on July 04, 2006, 05:17:08 PM
Yes thats gonna be big help, thanks... Just after this...

EVERYONE OF MY THEMES THAT I SET TO EVERYONE GOES TO THE DEFAULT THEME!!!  >:( >:( >:(

Im so close to explode!!!
Title: Re: Ad Management mod
Post by: Zeremi on July 04, 2006, 05:25:08 PM
This is offtopic
but what the **ck is happening?! My whole forum destroyed?!

Now it gives me this:
"Fatal error: Call to undefined function: show_topofpageads() in /home/www/hgfin.awardspace.com/smf/Sources/Load.php(1607) : eval()'d code on line 170"

Sorry but im so **cking pissed off right now...
Title: Re: Ad Management mod
Post by: Bigguy on July 04, 2006, 07:57:04 PM
I`m not sure what that error is. I don`t think the ad mod touches that file.
Title: Re: Ad Management mod
Post by: jerm on July 05, 2006, 01:02:52 AM
Quote from: Zeremi on July 04, 2006, 05:25:08 PM
This is offtopic
but what the **ck is happening?! My whole forum destroyed?!

Now it gives me this:
"Fatal error: Call to undefined function: show_topofpageads() in /home/www/hgfin.awardspace.com/smf/Sources/Load.php(1607) : eval()'d code on line 170"

Sorry but im so **cking pissed off right now...

LoadAds.php is not located in the Sources folder
Title: Re: Ad Management mod
Post by: webvision on July 06, 2006, 08:37:20 PM
Sir, I have just installed SMF, and I want to install Ad Managment Mod.
How can I do it ?, There is no Ad Managment Heading in the Admin Panel under Forum Configuration. Plz explain me the complete method of Ad Management Installation.
Title: Re: Ad Management mod
Post by: Bigguy on July 06, 2006, 09:56:37 PM
Download the version you need according to the version of smf that you have to your desktop. Then go to your admin panel then to packages then to Download Packages and browse for the ad mod, upload and install. That should be about it. If you are not using the default theme you will have to edit the theme you are using after installing it.
Title: Re: Ad Management mod
Post by: joesdomain on July 08, 2006, 09:29:07 AM
I tried uploading and installing the package and i get the following error:

Fatal error: packageinstall(): Failed opening required '/usr/local/psa/home/vhosts/joesdomain.ca/httpdocs/Packages/temp/./install.php' (include_path='.:/usr/local/psa/apache/lib/php') in /usr/local/psa/home/vhosts/joesdomain.ca/httpdocs/Sources/Packages.php on line 534


Any idea? Im using SMF's default theme

Joe
Title: Re: Ad Management mod
Post by: Bigguy on July 08, 2006, 05:15:07 PM
Did you use the package manager to upload it or did you upload it from your desktop. ???
Title: Re: Ad Management mod
Post by: jerm on July 10, 2006, 11:32:01 AM
create a folder inside package manager called temp, and chmod it to 777
Title: Re: Ad Management mod
Post by: chris_fairweather on July 10, 2006, 11:55:36 AM
Quote from: Zeremi on July 04, 2006, 11:32:30 AM
Well, there is no ads right now at the site but heres a screenshot.

http://img448.imageshack.us/img448/7854/nimetn1wb.jpg (http://img448.imageshack.us/img448/7854/nimetn1wb.jpg)

What verson was that???
Title: Re: Ad Management mod
Post by: tarkhorani on July 11, 2006, 10:51:10 AM
I am happy that I donated $10 to this mod, it is graet mod that my $10 is nothing for it. I download the ver2 and hope it continue to develop.

from epaytalk.com (http://epaytalk.com) & TalkInter.net (http://talkinter.net) forums
Title: Re: Ad Management mod
Post by: jerm on July 11, 2006, 11:24:09 PM
Quote from: tarkhorani on July 11, 2006, 10:51:10 AM
I am happy that I donated $10 to this mod, it is graet mod that my $10 is nothing for it. I download the ver2 and hope it continue to develop.

from epaytalk.com (http://epaytalk.com) & TalkInter.net (http://talkinter.net) forums

Thanks a bunch :)
Title: Re: Ad Management mod
Post by: rugged on July 12, 2006, 11:08:20 AM
i run smf 1.0.7 - which ad mod should i download?
and since im stupid, how do i install?? where do i put this on my server?? downloaded 1.0.6 put it in the root,in default theme, tried to run the install and nothing happened. got a parsing error with the xml and fatal error with the install.
can you help????
ahhhhhhhhhh!!!!!!
can u hold my hand & walk me through this please????  :'(
thanks
Title: Re: Ad Management mod
Post by: Bigguy on July 12, 2006, 11:46:59 AM
This si the version you would like: ad_mod_1-0-7_v1-0-2b.zip

It is uploaded through the package manager in the admin panel.
Title: Re: Ad Management mod
Post by: rugged on July 12, 2006, 12:23:25 PM
sank u so much - worked like a charm and now i know how to add mods in the future... :) :-*
Title: Re: Ad Management mod
Post by: Bigguy on July 12, 2006, 12:35:46 PM
your very welcome.
Title: Re: Ad Management mod
Post by: marinelife on July 12, 2006, 01:03:38 PM
is there a way to turn of Ad reports, it seems to make the site I run go slower. I have phpadnews running so reports is not needed for me
Title: Re: Ad Management mod
Post by: PrizeLive.com on July 12, 2006, 04:56:13 PM
Anyway to incorporate the click-through tracking as the guy who made the "SMF Links" mod did? This would be a great addition!!
Title: Re: Ad Management mod
Post by: jerm on July 13, 2006, 11:51:24 AM
don't know if that will ever be included. it would make my mod into something that i didn't intend it to be in the first place. phpadsnew already does a really good job of it..
Title: Re: Ad Management mod
Post by: Uzbekistan on July 14, 2006, 04:45:02 AM
I have installed the mod - works perfect! Great job.

One question - I put adsense ticking "show under menu" and leaving boards field empty so it shows on all boards.
Now I want to put different banner and I want to show it in certain board. Is it possible to set priority, let's say "Second banner" has higher priority, so it would show insted of adsense on that particular board?

If not such a functionality would be a nice addition.
Title: Re: Ad Management mod
Post by: Bigguy on July 14, 2006, 10:48:59 AM
I don`t think there is but it`s a good idea. Glad you got it installed.
Title: Re: Ad Management mod
Post by: PrizeLive.com on July 14, 2006, 12:21:16 PM
Quote from: Uzbek on July 14, 2006, 04:45:02 AM
I have installed the mod - works perfect! Great job.

One question - I put adsense ticking "show under menu" and leaving boards field empty so it shows on all boards.
Now I want to put different banner and I want to show it in certain board. Is it possible to set priority, let's say "Second banner" has higher priority, so it would show insted of adsense on that particular board?

If not such a functionality would be a nice addition.

You can select what ads are shown on which boards.
Title: Re: Ad Management mod
Post by: Bigguy on July 14, 2006, 01:26:40 PM
Yes this is true, but you can`t set priority like he was asking.

Quote from: SurfExcelerator.com on July 14, 2006, 12:21:16 PM
Quote from: Uzbek on July 14, 2006, 04:45:02 AM
I have installed the mod - works perfect! Great job.

One question - I put adsense ticking "show under menu" and leaving boards field empty so it shows on all boards.
Now I want to put different banner and I want to show it in certain board. Is it possible to set priority, let's say "Second banner" has higher priority, so it would show insted of adsense on that particular board?

If not such a functionality would be a nice addition.

You can select what ads are shown on which boards.
Title: Re: Ad Management mod
Post by: PrizeLive.com on July 14, 2006, 01:41:59 PM
Quote from: Bigguy on July 14, 2006, 01:26:40 PM
Yes this is true, but you can`t set priority like he was asking.

Doing this would be what he wants... Have google on all boards but have something else on a different board... That's setting priority..
Title: Re: Ad Management mod
Post by: Bigguy on July 14, 2006, 01:47:19 PM
Ok, I guess I was talking about both ads on the same board but show one before the other all the time or something along that lines.
Title: Re: Ad Management mod
Post by: PrizeLive.com on July 14, 2006, 01:50:05 PM
Yeah but he doesn't want both shown... He said "instead of"....

Quote from: Uzbek on July 14, 2006, 04:45:02 AM
Is it possible to set priority, let's say "Second banner" has higher priority, so it would show insted of adsense on that particular board?
Title: Re: Ad Management mod
Post by: Bigguy on July 14, 2006, 04:08:57 PM
Well, I guess I read it wrong then, sorry about that.
Title: Re: Ad Management mod
Post by: PrizeLive.com on July 14, 2006, 04:11:57 PM
Quote from: Bigguy on July 14, 2006, 04:08:57 PM
Well, I guess I read it wrong then, sorry about that.

Haha no biggie.
Title: Re: Ad Management mod
Post by: Osidguy on July 15, 2006, 05:36:54 AM
Hello,

I have apparently successfully installed the mod (all 'success' messages in admin), I have activated it successfully, but cannot see the link under Configuration.

Any ideas?

Thanks

I ought to add that I have SMF 1.0.7.
and have installed ad_mod_1-0-7_v1-0-2b.zip:

which has the following files

install.php (1596 bytes)
install.xml (9949 bytes)
package-info.xml (585 bytes)
readme.txt (682 bytes)
Title: Re: Ad Management mod
Post by: cut-killer on July 15, 2006, 05:50:33 AM
hello

sorry for my english... i cant good....

ok...

i heave installed ad managment, wunderfull mod.. thank you...

my problem, when i klick a link, then goes in my window up... i will make it "target blank"

how to ? also the link must be open in a new windows, not this from my own site...

thank you...

Title: Re: Ad Management mod
Post by: aussieferal on July 15, 2006, 09:18:12 AM
Is there a way to make the ads only appear for guests?
Title: Re: Ad Management mod
Post by: jerm on July 15, 2006, 06:21:26 PM
Quote from: Uzbek on July 14, 2006, 04:45:02 AM
I have installed the mod - works perfect! Great job.

One question - I put adsense ticking "show under menu" and leaving boards field empty so it shows on all boards.
Now I want to put different banner and I want to show it in certain board. Is it possible to set priority, let's say "Second banner" has higher priority, so it would show insted of adsense on that particular board?

If not such a functionality would be a nice addition.

Once you set an ad as board specific, only that ad will show in that board. all other ads wont show. The only way to have rotating ads on board specific, is to make another ad that is board specific to that board. Hope that makes sense.

Quote from: Osidguy on July 15, 2006, 05:36:54 AM
Hello,

I have apparently successfully installed the mod (all 'success' messages in admin), I have activated it successfully, but cannot see the link under Configuration.

Any ideas?

Thanks

I ought to add that I have SMF 1.0.7.
and have installed ad_mod_1-0-7_v1-0-2b.zip:

which has the following files

install.php (1596 bytes)
install.xml (9949 bytes)
package-info.xml (585 bytes)
readme.txt (682 bytes)


You installed version 1.* To find the ad managment, go to features and settings

Quote from: cut-killer on July 15, 2006, 05:50:33 AM
hello

sorry for my english... i cant good....

ok...

i heave installed ad managment, wunderfull mod.. thank you...

my problem, when i klick a link, then goes in my window up... i will make it "target blank"

how to ? also the link must be open in a new windows, not this from my own site...

thank you...



if i understand correctly, this all depends on the code your ad company has given you, and not my mod.
Title: Re: Ad Management mod
Post by: jerm on July 15, 2006, 06:22:05 PM
Quote from: aussieferal on July 15, 2006, 09:18:12 AM
Is there a way to make the ads only appear for guests?
disable the permission for everyone. Then enable it for guests
Title: Re: Ad Management mod
Post by: Webrunner on July 16, 2006, 07:26:55 AM
I really like this mod, great work!  :D

I have one question though.
I am have a lot of custom pages in which i create the page header with SSI. The banners dont show up in these pages. Probably because the mod tries to detect what forum or section it is in (in fact it isn't in one of the forums but on a seperate page.) For an example page see here: http://www.vrouwenpower.nl/horoscoop/

The banner you see working now is hardcoded into index.template.php so that is not the mod working.

What modifications do i have to make to the pages to make the ads show up? I rather not modify the mod since that will make upgrading and updating more difficult.
Title: Re: Ad Management mod
Post by: cut-killer on July 16, 2006, 12:40:40 PM
Quote from: cut-killer on July 15, 2006, 05:50:33 AM
hello

sorry for my english... i cant good....

ok...

i heave installed ad managment, wunderfull mod.. thank you...

my problem, when i klick a link, then goes in my window up... i will make it "target blank"

how to ? also the link must be open in a new windows, not this from my own site...

thank you...



if i understand correctly, this all depends on the code your ad company has given you, and not my mod.


----------------

hello

i use this code...

<script type="text/javascript"><!--
google_ad_client = "pub-0096697545230609";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "image";
google_ad_channel ="";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>



i cant see where or what i can make to show in target blank window... i think.. must make it @ the code from you hack...  ? what you think ?

mfg
Title: Re: Ad Management mod
Post by: jerm on July 16, 2006, 01:48:14 PM
Quote from: Webrunner on July 16, 2006, 07:26:55 AM
I really like this mod, great work!  :D

I have one question though.
I am have a lot of custom pages in which i create the page header with SSI. The banners dont show up in these pages. Probably because the mod tries to detect what forum or section it is in (in fact it isn't in one of the forums but on a seperate page.) For an example page see here: http://www.vrouwenpower.nl/horoscoop/

The banner you see working now is hardcoded into index.template.php so that is not the mod working.

What modifications do i have to make to the pages to make the ads show up? I rather not modify the mod since that will make upgrading and updating more difficult.

what version of the mod are you running?

Quote from: cut-killer on July 16, 2006, 12:40:40 PM
Quote from: cut-killer on July 15, 2006, 05:50:33 AM
hello

sorry for my english... i cant good....

ok...

i heave installed ad managment, wunderfull mod.. thank you...

my problem, when i klick a link, then goes in my window up... i will make it "target blank"

how to ? also the link must be open in a new windows, not this from my own site...

thank you...



if i understand correctly, this all depends on the code your ad company has given you, and not my mod.


----------------

hello

i use this code...

<script type="text/javascript"><!--
google_ad_client = "pub-0096697545230609";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "image";
google_ad_channel ="";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>



i cant see where or what i can make to show in target blank window... i think.. must make it @ the code from you hack...  ? what you think ?

mfg
google adsense does not allow you to open up their ads in a popup or another window
Title: Re: Ad Management mod
Post by: Webrunner on July 16, 2006, 01:52:07 PM
I downloaded it today, i downloaded ad_mod_rc2_v2.zip
Title: Re: Ad Management mod
Post by: jerm on July 16, 2006, 11:39:55 PM
Quote from: Webrunner on July 16, 2006, 01:52:07 PM
I downloaded it today, i downloaded ad_mod_rc2_v2.zip

you can add this code to your page:
$ads = show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

This will be triggered whne you have this checked off:
QuoteDisplay ads on every page right below the menu
Title: Re: Ad Management mod
Post by: Webrunner on July 18, 2006, 07:09:49 PM
I am sorry, i wasn't clear enough.
The pageheader is entirely created with SSI, so the code used on the page is from index.template.php
Now it gives me undefined functions error in index.template.php
f.i Fatal error: Call to undefined function show_indexAds() in /home/website/html/forum/Themes/vp/index.template.php on line 749

It does this only on pages that are created with SSI, so inside the forum it works great.
Any ideas?
I already tried to include LoadAds.php but that doesn't work :(
Title: Re: Ad Management mod
Post by: jerm on July 19, 2006, 12:31:25 PM
Do this:
require_once($sourcedir . '/LoadAds.php');
loadAds();
Now you can use the function show_indexAds();

Make sure that $souredir is defined.
Title: Re: Ad Management mod
Post by: bugsmi0 on July 21, 2006, 12:21:46 AM
I tried installing this mod and it says not compatiable with RC2 and recomended not to install i got the v2.0 version
Title: Re: Ad Management mod
Post by: Bigguy on July 21, 2006, 12:32:24 AM
How did you try to upload it. ???
Title: Re: Ad Management mod
Post by: Webrunner on July 21, 2006, 03:20:37 AM
Mine works now, i added the code you suggested to index.template.php
Title: Re: Ad Management mod
Post by: bugsmi0 on July 21, 2006, 03:53:21 AM
It says be default everyone can see the ads but so far it appears onlly logged in users can, guest are unable to see, is there a setting to make it so everyone can see ?

also where or how would you set certain banners for certain membergroups ?
Title: Re: Ad Management mod
Post by: Bigguy on July 21, 2006, 07:32:45 AM
Look under permissions for the settings for guests. I don`t think you can set certain banners for certain membergroups, sorry.
Title: Re: Ad Management mod
Post by: Uzbekistan on July 22, 2006, 04:06:14 AM
Quote from: jerm on July 15, 2006, 06:21:26 PM
Quote from: Uzbek on July 14, 2006, 04:45:02 AM
I have installed the mod - works perfect! Great job.

One question - I put adsense ticking "show under menu" and leaving boards field empty so it shows on all boards.
Now I want to put different banner and I want to show it in certain board. Is it possible to set priority, let's say "Second banner" has higher priority, so it would show insted of adsense on that particular board?

If not such a functionality would be a nice addition.

Once you set an ad as board specific, only that ad will show in that board. all other ads wont show. The only way to have rotating ads on board specific, is to make another ad that is board specific to that board. Hope that makes sense.

Hi Jerm, the thing is I supposed so as well. But it didn't work then.
I ticked "Display ads on every page right below the menu" for Adsense, leaving boards field empty.
Then I set code for a banner and set a certain board. However only AdSense would show up.

But anyway, I figured out that I needed to go through "Show on board index/thread index/thread" ticks leaving that one clear. It works now, thx!

Just a suggestion, i think it would be nice to have a "Copy ad thingy" (Blair language) where you can create a copy of an existing ad and just edit it.

Peace guys, great job!
Title: Re: Ad Management mod
Post by: Webrunner on July 22, 2006, 05:08:17 AM
It would also be nice if i could show an ad on all boardfs except one or two, or even make a selection interface for it.
Title: Re: Ad Management mod
Post by: trenchteam on July 23, 2006, 05:11:16 AM
wow. This mod has come a long long way!  I've been using a custom theme so I wasnt able to see the changes.  I might have to mod out my custom theme for this.  FANTASTIC! ;D ;D ;D
Title: Re: Ad Management mod
Post by: Bigguy on July 23, 2006, 11:32:17 AM
The edits you need to do for custom themes is here:

http://www.smfads.com/forums/
Title: Re: Ad Management mod
Post by: trenchteam on July 24, 2006, 03:19:32 AM
^ thanks. That will help a ton!
Title: Re: Ad Management mod
Post by: SLiM_BoY on July 24, 2006, 05:57:31 PM
I think it's so difficult to edit Babylon theme..Because this theme doesn't have more then 2-3 codes.
Then, I'll be so happy if anybody can upload modified Babylon theme files  :-[ :-*
Title: Re: Ad Management mod
Post by: SLiM_BoY on July 24, 2006, 07:21:56 PM
Quote from: SLiM_BoY on July 24, 2006, 05:57:31 PM
I think it's so difficult to edit Babylon theme..Because this theme doesn't have more then 2-3 codes.
Then, I'll be so happy if anybody can upload modified Babylon theme files  :-[ :-*

We did the modifies for Babylon theme..And also I added the modified files for v2 ad_mod..

You can download files in that topic > http://www.smfads.com/forums/index.php?topic=22.15

Thanks again bigguy ;)
Title: Re: Ad Management mod
Post by: City Builder on August 04, 2006, 01:26:35 PM
Im getting an error when trying to apply this mod.

I've uploaded ad_mod_1-0-7_v1-0-2b.zip  to my server and Im running SMF 1.07 and I get the following error:
4. Execute Modification ./Themes/default/index.template.php Failure

Did I download the wrong version of the mod for my board?

I've got the following mods already installed:
Spoiler Tag 1.04
Faster Parsecode 1.10
Message Icon Manager 1.2
MessagePreview 1.0 (but not applied)
Contact Page 1.0
Integrated Chat 2.3 (but not applied)
TinyPortal 0.86

Can someone clue me in to what Ive got thats causing this error.

Thanks
Title: Re: Ad Management mod
Post by: Celdric on August 04, 2006, 01:34:10 PM
Hi.  :) I just installed v 2.0. I have a banner manager that generates a line of code. When I add this line of code into the ad mod content box and try to save, I get a 403 forbidden on index.php and the action

index.php?action=admod;sa=edit;ad=1

The banner code below. I have it in use on top of the page. Works fine. So I have no idea what's wrong.
I should mention when I add the url of the banner image directly into the box, it works. Seems to me it has a problem with the javascript.


<script type="text/javascript" src="http://forumshowcase.net/bannerm/banner_js.php?placement_id=2"></script>
Title: Re: Ad Management mod
Post by: jerm on August 04, 2006, 01:53:39 PM
Quote from: City Builder on August 04, 2006, 01:26:35 PM
Im getting an error when trying to apply this mod.

I've uploaded ad_mod_1-0-7_v1-0-2b.zip  to my server and Im running SMF 1.07 and I get the following error:
4. Execute Modification ./Themes/default/index.template.php Failure

Did I download the wrong version of the mod for my board?

I've got the following mods already installed:
Spoiler Tag 1.04
Faster Parsecode 1.10
Message Icon Manager 1.2
MessagePreview 1.0 (but not applied)
Contact Page 1.0
Integrated Chat 2.3 (but not applied)
TinyPortal 0.86

Can someone clue me in to what Ive got thats causing this error.

Thanks

install it anyways, then manually apply the mod to index.template.php . That file is probably one of the eaist to manually install.

Celdric, i just tried that code out and i got no errors when applying it.
Title: Re: Ad Management mod
Post by: City Builder on August 04, 2006, 02:52:14 PM
Quote from: jerm on August 04, 2006, 01:53:39 PM
install it anyways, then manually apply the mod to index.template.php . That file is probably one of the eaist to manually install.

Celdric, i just tried that code out and i got no errors when applying it.

Sorry if Im a bother, but are there specific instructions as to how to apply the mod manually to the index.template.php file that I've not seen yet?

Or is it just a matter of "replacing" this stuff from the file:
Quote<file name="$themedir/index.template.php">
   <operation>
      <search position="replace"><![CDATA[<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>]]>
      </search>

<add><![CDATA[
<table width="100%" cellpadding="0" cellspacing="0" border="0">';
if ($modSettings['js_text_displayads_index'] && allowedTo('ad_manageperm'))
{
   echo '   <tr><td id="bodyarea">
         <br />
            <div align="center">',$modSettings['js_text_content'],'</div></td></tr>';
}
echo '<tr>]]>
</add>
</operation>

<operation>
   <search position="replace"><![CDATA[   echo '</td>
   </tr></table>';]]></search>
<add><![CDATA[
   global $modSettings;
   echo '</td></tr>';
if ($modSettings['js_text_displayads_botindex'] && allowedTo('ad_manageperm'))
{
   echo '   <tr><td id="bodyarea">
            <div align="center">',$modSettings['js_text_content'],'</div><br /></td></tr>';
}

   echo '</table>';]]>
</add>
</operation>

</file>



<file name="$themedir/BoardIndex.template.php">
   <operation>
      <search position="replace"><![CDATA[   echo '
<table width="100%" cellpadding="3" cellspacing="0">]]></search>

<add><![CDATA[
if ($modSettings['js_text_displayads_board_index'] && allowedTo('ad_manageperm'))
   echo '<div align="center">',$modSettings['js_text_content'],'</div>';
echo '
<table width="100%" cellpadding="3" cellspacing="0">

]]></add>
</operation>
</file>


Thanks again,
Title: Re: Ad Management mod
Post by: Celdric on August 04, 2006, 04:14:55 PM
Thanks for trying, Jerm. :) Strange thing this one. I have the 403 even not my server error log. I guess I have to ask my webhost.
Title: Re: Ad Management mod
Post by: jerm on August 05, 2006, 12:14:30 AM
City Builder, look at this post and follow the instructions for index.template.php
http://www.smfads.com/forums/index.php?topic=59.0
Title: Re: Ad Management mod
Post by: doug@atd on August 05, 2006, 05:15:41 PM
I just installed smf v 1.0.7, hosted at GoDaddy.  I used their install interface, then moved the files to my subdomain folder and ran/removed the repair settings file, per another post instructions.  Everything works great and I've been able to tweak the interface, per post suggestions.  My forum will be linked to my main site soon.

Question: I want to add the ad management mod, but I'd prefer to have the right column ads and not be limited to the top and bottom banner ads.  If I read the posts correctly, Ad Management V 2.0 is the mod with right column ads, but it's only for smf 1.1 rc2 and not my v 1.0.7.  So I have to settle for Ad Mgmt V1.5, or upgrade to smf 1.1 rc2.  BUT, upgrading to 1.1 rc2 for a live site is not advised until the final release sometime this year.  Is that right?

So it sounds like I have no choice but to continue with smf 1.0.7 and Ad Mgmt mod V1.5, and then upgrade to 1.1 rc2 later on.  Do I have this correct?

Thanks!

Doug
Title: Re: Ad Management mod
Post by: City Builder on August 05, 2006, 06:58:31 PM
Thanks jerm,

I thought it was screwed up since my layout kept getting messed up when ever I entered a banners html coding into the box, when it turned out it was that I left off one of the " in the img src tag.

Works as described, thanks for a great mod.
Title: Re: Ad Management mod
Post by: trenchteam on August 05, 2006, 10:38:30 PM
Does exactly what I want it to do using AA damage by metalcore.  Thanks guys for this wonderful mod!! you can see it in action at www.shoyoroll.com ;)
Title: Re: Ad Management mod
Post by: keith80 on August 07, 2006, 02:02:43 PM
I have 2 probs with the 1.0.7 version... 1 is I can't find the Link to Add the ads, and 2, I tried to uninstall the mod and it still showed in the General Configuration, reinstalled and it showed twice, and I can't get rid of the mod now....
Title: Re: Ad Management mod
Post by: Bigguy on August 07, 2006, 02:30:03 PM
The link to add ads is in "Features and Options" in your admin panel. The reason it shows twice now is it has put the code into a template file twice. To uninstall you will have to remove the code manually from the files. Here is a link to the edits for the template files:

http://www.smfads.com/forums/index.php?topic=59.0
Title: Re: Ad Management mod
Post by: City Builder on August 07, 2006, 04:19:39 PM
The only issue that I have is that when I check for the ads to appear at the bottom of every page, nothing appears at the bottom of every page, and Im using the default SMF 1.07 theme.
Title: Re: Ad Management mod
Post by: Bigguy on August 07, 2006, 05:17:49 PM
Make sure all the edits went into the files they were supposed to.
Title: Re: Ad Management mod
Post by: City Builder on August 08, 2006, 02:16:22 AM
Okay, I'll double check although package manager said everything was sucessfull other than the index tempate which I manually edited as per the instructions that were posted.
Title: Re: Ad Management mod
Post by: doug@atd on August 09, 2006, 08:05:19 PM
Is anyone supporting this topic?  I've had a couple questions go unanswered.

Does anyone know which file contains the ad table created by the ad management function?  I set up a text ad through the admin panel to be placed after the first topic.  It works fine in IE and Netscape.  However, when I try to w3c validate that page, it shows two places in the nested table that holds the text ad where the ending cell tag </td> is missing. (I validate the page to ensure my pasted ad code is valid)

Is the nested table that holds the ad a static table that I can correct in a php file, as long as I never uninstall the Ad Management mod?  If so, which file is it?  I couldn't seem to find it.

Or is that a dynamically built table that changes each time you change the ad?  I plan to change the text ad weekly, so if it's going to rebuild a table with missing tags each time you change the ad, there's no point in fixing it.

I just want a valid page, and missing cell tags seems like a problem.

I have a newly installed and live v 1.0.7.

Here's the page I'm trying to validate:
http://forum.allthingsdemocrat.com/index.php?topic=3.0

Thanks.

Doug
Title: Re: Ad Management mod
Post by: Bigguy on August 09, 2006, 09:15:03 PM
Yes we are watching this topic. You might get better support here:

http://www.smfads.com

If I had seen your questions I would have at least tried to answer them. As for were the ad code is placed, I`m not positive on that. Jerm will know for sure.
Title: Re: Ad Management mod
Post by: jerm on August 11, 2006, 01:59:11 AM
doug@atd

To use version 2.0 you need to upgrade to smf 1.1rc2

your valitation probably has something to do with the ad code you put in. Your site is down, so i can't tell.


And please, next time give us time to respond to your questions. I am the only creator of this mod, and bigguy is another one who helps me out.
Title: Re: Ad Management mod
Post by: deadpoeticstar on August 12, 2006, 12:59:56 PM
Got one question...how soon could it be till you get an update for RC3?
Title: Re: Ad Management mod
Post by: Bigguy on August 12, 2006, 01:14:28 PM
I would imagine, that will be out sometime after RC3 is released to the public. That`s just my speculation though. Does it not work with RC3 ???
Title: Re: Ad Management mod
Post by: deadpoeticstar on August 12, 2006, 01:23:22 PM
no cause the apply mod portion wasn't displayed in the mods portion all that was visible was the list files and delete

and this was used on my test site created for RC3
Title: Re: Ad Management mod
Post by: Mujahid on August 12, 2006, 07:10:49 PM
How can i edit the files or coding in the custom theme?
I`m using BluBur skin..Can anyone help me please?
Title: Re: Ad Management mod
Post by: Bigguy on August 12, 2006, 07:17:31 PM
All the edits for the ad mod are here:

http://www.smfads.com/forums/index.php?board=7.0

Title: Re: Ad Management mod
Post by: Mujahid on August 12, 2006, 07:26:06 PM
well,thanks for the help.
Title: Re: Ad Management mod
Post by: Bigguy on August 12, 2006, 07:28:03 PM
I`d be glad to help if you need more help.
Title: Re: Ad Management mod
Post by: Webrunner on August 12, 2006, 08:09:49 PM
Please update this for RC3 :D
Great mod!
Title: Re: Ad Management mod
Post by: Bigguy on August 12, 2006, 08:22:09 PM
I`m sure it will be but probably after it is released to the public.
Title: Re: Ad Management mod
Post by: jerm on August 13, 2006, 12:14:32 AM
Quote from: Webrunner on August 12, 2006, 08:09:49 PM
Please update this for RC3 :D
Great mod!
already up.. i meant to put it up earlier, just slipped my mind
Title: Re: Ad Management mod
Post by: Bigguy on August 13, 2006, 12:20:26 AM
that was quick, lol. Awesome. ;)
Title: Re: Ad Management mod
Post by: Webrunner on August 15, 2006, 03:31:16 PM
 :D
Title: Re: Ad Management mod
Post by: PrizeLive.com on August 15, 2006, 03:34:28 PM
Quote from: Webrunner on August 12, 2006, 08:09:49 PM
Please update this for RC3 :D
Great mod!

why?

rc3 isnt available yet
Title: Re: Ad Management mod
Post by: Bigguy on August 15, 2006, 03:44:10 PM
Quote from: jerm on August 13, 2006, 12:14:32 AM
Quote from: Webrunner on August 12, 2006, 08:09:49 PM
Please update this for RC3 :D
Great mod!
already up.. i meant to put it up earlier, just slipped my mind
Title: Re: Ad Management mod
Post by: jerm on August 15, 2006, 07:01:46 PM
Quote from: SurfExcelerator.com on August 15, 2006, 03:34:28 PM
Quote from: Webrunner on August 12, 2006, 08:09:49 PM
Please update this for RC3 :D
Great mod!

why?

rc3 isnt available yet

it is , for charter members
Title: Re: Ad Management mod
Post by: Mujahid on August 16, 2006, 08:31:51 AM
when i tried to apply the mod,i got this error..
4. Execute Modification ./Themes/bluBlur/index.template.php Test failed

Before uploading the mod,i just went to install.xml file and change the theme path..but it is showing the above error now..
i`ve tried this mod in my Test Forum and it works fine but when i try to install it in my original forum,it is giving the index.template error...
please help me with that..Thanks!
Title: Re: Ad Management mod
Post by: deadpoeticstar on August 16, 2006, 08:45:30 AM
I think i major question is can this be installed manually to all templates that are available or is it just for the 3 basic templates that come with a standard install of SMF
Title: Re: Ad Management mod
Post by: Mujahid on August 16, 2006, 09:09:47 AM
ok thanks but my problem is now solved..there was little a code error which i removed and its now been installed and working fine for me..Thanks!
Title: Re: Ad Management mod
Post by: Bigguy on August 16, 2006, 10:07:59 AM
It should be able to be installed on most themes.

Quote from: deadpoeticstar on August 16, 2006, 08:45:30 AM
I think i major question is can this be installed manually to all templates that are available or is it just for the 3 basic templates that come with a standard install of SMF
Title: Re: Ad Management mod
Post by: deadpoeticstar on August 16, 2006, 10:32:28 AM
well to manually install it do i just follow the instructions in the XML file?
Title: Re: Ad Management mod
Post by: Bigguy on August 16, 2006, 10:52:29 AM
Follow these edits here:

http://www.smfads.com/forums/index.php?board=7.0

Make sure you get the right version.
Title: Re: Ad Management mod
Post by: Mujahid on August 16, 2006, 06:40:22 PM
well,today what i`ve notice is that the ads which i`m showing through ad manager are not showing in Firefox..is this the only problem with me or i need to do something for it..!
Title: Re: Ad Management mod
Post by: K_4_kelly on August 16, 2006, 07:05:54 PM
for some reason
this function ---> Display ads within posts
didn't work for me...
any clue?
Title: Re: Ad Management mod
Post by: Bigguy on August 16, 2006, 07:06:19 PM
I`m using FF and the ads show fine on my site. Do you have the script blocker on in FF

Quote from: Mujahid on August 16, 2006, 06:40:22 PM
well,today what i`ve notice is that the ads which i`m showing through ad manager are not showing in Firefox..is this the only problem with me or i need to do something for it..!
Title: Re: Ad Management mod
Post by: Mujahid on August 17, 2006, 07:24:57 AM
well,i`m not the regular user of FF..i just visit my forum through FF to see if there is any problem and then i found that problem..i don`t know if i`ve blocked or not...how can  i check it?
Title: Re: Ad Management mod
Post by: Assistance on August 17, 2006, 09:07:39 AM
I just wanted to say thank-you for a great mod
I do not use it for "Ads" however I found the functionality of this mod was perfect for displaying other things that should be only shown in certain boards.  Not only that, but I was hacking up my index.temp trying to add something to the "member" area :P

The amount of randomness that can be used with this mod is incredible..

ty
Title: Re: Ad Management mod
Post by: paulyoung76 on August 17, 2006, 09:06:08 PM
i can't see the ads management in Chinese version smf. could it be support for Chinese version? the ads only can show in English version smf. then others language can't use it. please create a Chinese version mod soon. waiting to use it
Title: Re: Ad Management mod
Post by: Bigguy on August 17, 2006, 09:36:47 PM
If someone wants to translate it that would be great, I myself don`t know chinese so I can't.
Title: Re: Ad Management mod
Post by: paulyoung76 on August 17, 2006, 10:27:12 PM
i can help you translate the english words to chinese if you want. then it should be can run in chinese version also
Title: Re: Ad Management mod
Post by: Bigguy on August 17, 2006, 11:12:33 PM
Can you post the translated version here:

www.smfads.com
Title: Re: Ad Management mod
Post by: Stretsh on August 18, 2006, 11:08:09 PM
Quote from: Mujahid on August 16, 2006, 09:09:47 AM
ok thanks but my problem is now solved..there was little a code error which i removed and its now been installed and working fine for me..Thanks!
Mind sharing the solution? Cause I get the same error while installing.
Title: Re: Ad Management mod
Post by: new200 on August 21, 2006, 08:33:16 PM
I'm currently running SMF 1.1 RC2. Just downloaded ad_mod_rc2_v2.zip

I tried to install the mod using pakage installer. Everything passed, accept Display.template.php FAILED.  Any help on this???? Thanks lot....
Title: Re: Ad Management mod
Post by: Bigguy on August 21, 2006, 08:44:59 PM
Install the mod and then download you Display.template.php file and add the edits manually. They are typed out here:

http://www.smfads.com/forums/index.php?topic=22.0

If your using any theme but the default you will have to add the edits to the template files anyway.
Title: Re: Ad Management mod
Post by: edchapman on August 21, 2006, 10:01:29 PM
Quote from: Mujahid on August 16, 2006, 06:40:22 PM
well,today what i`ve notice is that the ads which i`m showing through ad manager are not showing in Firefox..is this the only problem with me or i need to do something for it..!

I'm not seeing them in FireFox either.
Not seeing them in Camino either.
Title: Re: Ad Management mod
Post by: Uzbekistan on August 22, 2006, 10:12:08 AM
Check whether you enabled them in "Permissions" for all membergroups (you have to go through permissions of each membergroup).
Title: Re: Ad Management mod
Post by: Bigguy on August 22, 2006, 11:49:35 AM
Do you have scripts blocked in FF. This could also be a reason your not seeing them.
Title: Re: Ad Management mod
Post by: Bandai on August 22, 2006, 02:14:59 PM
is there a way to ad Ads on the login page also? what file should be edited?

and also maybe add this on the feature list?

thanks a lot!
Title: Re: Ad Management mod
Post by: Bigguy on August 22, 2006, 02:17:50 PM
There isn't a way to do that with this mod but I would imagine editing the right file would give you the ads there.
Title: Re: Ad Management mod
Post by: Bandai on August 22, 2006, 02:25:27 PM
how about adding that in the future version?

and yeah do you know what file to edit the login page? I can't seem to find it..
Title: Re: Ad Management mod
Post by: Bigguy on August 22, 2006, 02:28:27 PM
Well this is JUST a guest but I would think it could be the login.template.php file in the themes folder under the theme you are using. Remember that's just a GUESS, and back it up before playing with it.
Title: Re: Ad Management mod
Post by: Bandai on August 22, 2006, 02:33:42 PM
the theme i'm using doesn't have a login.template.php i already checked index.template.php and index.php it doesn't have any forms for login either...

sorry for being a noob at this.. first time to setup a board.
Title: Re: Ad Management mod
Post by: Bigguy on August 22, 2006, 02:40:22 PM
Then use the login.template.php file that's in the default theme folder. If your theme doesn't have one then the theme you are using uses the file from the default theme.
Title: Re: Ad Management mod
Post by: Bandai on August 22, 2006, 02:44:33 PM
really? i didn't know that...

thanks a lot for pointing me to the right direction! you're a great help!

God Bless!

I'm off to work on my board now.
Title: Re: Ad Management mod
Post by: Bigguy on August 22, 2006, 02:49:41 PM
No problem, glad I could help out. Hope your board turns out great. ;)
Title: Re: Ad Management mod
Post by: mynix on August 22, 2006, 05:56:33 PM
I have this same issue , can anyone help??


Quote from: Mujahid on August 16, 2006, 08:31:51 AM
when i tried to apply the mod,i got this error..
4. Execute Modification ./Themes/bluBlur/index.template.php Test failed

Before uploading the mod,i just went to install.xml file and change the theme path..but it is showing the above error now..
i`ve tried this mod in my Test Forum and it works fine but when i try to install it in my original forum,it is giving the index.template error...
please help me with that..Thanks!
Title: Re: Ad Management mod
Post by: Bigguy on August 22, 2006, 06:11:31 PM
Install the mod and then do the edits for the file it failed at. All the edits are here:

http://www.smfads.com/forums/index.php?board=7.0
Title: Re: Ad Management mod
Post by: mynix on August 22, 2006, 06:33:27 PM
1. I am using the newly upgraded rc3 with the new rc3 ad mod ( not rc2)
( all i see on the link is rc2 for any current edit versions)  Can i still use the same edits?

2. When I installed rc3 ad mod ( with the error message), it messed up my forum. Shouldn't I edit the index.template.php before I install it?


3. So basiclly you are saying to install the mod ( even if it messes with the forum) then go back and edit the index.template.php?



Quote from: Bigguy on August 22, 2006, 06:11:31 PM
Install the mod and then do the edits for the file it failed at. All the edits are here:

http://www.smfads.com/forums/index.php?board=7.0
Title: Re: Ad Management mod
Post by: Bigguy on August 22, 2006, 08:13:07 PM
It should not have messed up anything and i'm sorry if it did. You should have been able to install the mod and then go and do the edits and put them in place and it should be all good. The edits for the 2 different ad mods shouldn't be that different. I'll go write them up now on smfads.com. I'm sorry for any inconvenience.The edits are the same in both versions.
Title: Re: Ad Management mod
Post by: mynix on August 22, 2006, 09:25:06 PM
Oh so install it for the  default then edit my  custom theme .php files?

Or modify the rc3 ad mod  | however leaving the index.template.php path the default theme path), then modifying it after the install?
Title: Re: Ad Management mod
Post by: Bigguy on August 22, 2006, 09:43:17 PM
Yes. Any files that you cannot find in your custom template have already been edited in the default theme.
Title: Re: Ad Management mod
Post by: mynix on August 22, 2006, 10:04:27 PM
This message is for all those with a paid / custom theme that has been made specifically for your own use.  If someone made your theme for you, you should ask them to help upgrade to the latest version (rc3).

The following files should be upgraded to rc3, before you update with rc3 ad mod. This is to make sure all modifications in (especially in index.template.php) are not lost.


If you don't have that luxury of having the person that developed your theme. You can try your hand at editing the file yourself if the file is not heavily modified.

As explained through the link above; http://www.smfads.com/forums/index.php?topic=22.0  (http://www.smfads.com/forums/index.php?topic=22.0)

*phew*
Title: Re: Ad Management mod
Post by: bjp on August 24, 2006, 11:22:35 AM
Can some one help me please. I want to insert afetr firts post this adsense, but only for guest : but i always get an error, even if i set it to php

if (!$message['member']['is_guest'])
         echo '
         <div align="center">
        <script type="text/javascript"><!--
google_ad_client = "xxx";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "F1F2F5";
google_color_bg = "F1F2F5";
google_color_link = "0000CC";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Title: Re: Ad Management mod
Post by: jerm on August 24, 2006, 04:52:27 PM
Just use this:

<div align="center">
        <script type="text/javascript"><!--
google_ad_client = "xxx";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "F1F2F5";
google_color_bg = "F1F2F5";
google_color_link = "0000CC";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>


Use permissions to only enable it for guests
Title: Re: Ad Management mod
Post by: DawnsWebDesigns on August 26, 2006, 04:20:04 PM
When I first tried this mod on RC3 it somehow worked.  But I've since crashed my board 2/3 times with other mods & now this won't work.  So I tried to do it manually.

My forum sort of crashed again...I got a parsing error.  It's saying this code's missing something:

//Display Ads on the Message index
$ads = show_threadindexAds();
if(!empty($ads))
[b]if($ads['type']==0)[/b]
echo $ads['content'];
else
eval($ads['content']);
unset($ads);


The line I highlighted is the line it has a problem with.  It's saying I'm missing a (,) or a (;)...so I tried adding both...one after the other...& it still acts like it's wrong.  ???
Title: Re: Ad Management mod
Post by: Bigguy on August 27, 2006, 12:03:06 AM
This should work. Try this in place of that code:

//Display ads on the top of the page
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
Title: Re: Ad Management mod
Post by: bjp on August 27, 2006, 01:31:21 AM
Quote from: jerm on August 24, 2006, 04:52:27 PM
Just use this:

<div align="center">
        <script type="text/javascript"><!--
google_ad_client = "xxx";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "F1F2F5";
google_color_bg = "F1F2F5";
google_color_link = "0000CC";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>


Use permissions to only enable it for guests
Sorry, what do you mean with"Use permissions to only enable it for guests" ?
Title: Re: Ad Management mod
Post by: Bigguy on August 27, 2006, 12:23:36 PM
You can enable who sees the ads in your permissions in the admin panel.
Title: Re: Ad Management mod
Post by: swriders on August 27, 2006, 10:08:18 PM
Quote from: Bigguy on August 07, 2006, 02:30:03 PM
The link to add ads is in "Features and Options" in your admin panel. The reason it shows twice now is it has put the code into a template file twice. To uninstall you will have to remove the code manually from the files. Here is a link to the edits for the template files:

http://www.smfads.com/forums/index.php?topic=59.0

Will this work for version 1.0.8 also?
Title: Re: Ad Management mod
Post by: Bigguy on August 27, 2006, 10:10:04 PM
yes these edits will work for SMF 1.0.8 to.
Title: Re: Ad Management mod
Post by: swriders on August 27, 2006, 10:18:23 PM
Will these edits also put the Ad Mgmt link under "Forum Configuration"? All I have is 2 Ad Mgmt bars under "edit Features and Options".
Title: Re: Ad Management mod
Post by: Bigguy on August 27, 2006, 10:30:51 PM
No they won't that feature is only for SMF 1.1 rc2/3
Title: Re: Ad Management mod
Post by: DawnsWebDesigns on August 28, 2006, 05:56:41 PM
Quote from: Bigguy on August 27, 2006, 12:03:06 AM
This should work. Try this in place of that code:

//Display ads on the top of the page
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);


Thank you...I'll try it.  :D
Title: Re: Ad Management mod
Post by: redstorm on August 29, 2006, 01:57:19 PM
how to make ads mod run with babylon theme in 1.1RC3 ? help me!!!
Title: Re: Ad Management mod
Post by: Bigguy on August 29, 2006, 03:35:09 PM
Use the edits found here to manually edit the template files only

http://www.smfads.com/forums/index.php?topic=22.0
Title: Re: Ad Management mod
Post by: doug@atd on September 01, 2006, 04:15:27 PM
jerm-

Thanks for the reply.  It's definitely not my ad code that's invalid, as I always paste the code into an html page first, then upload it and w3c validate it.  I've done that for the header and footer ads that I've added manually to the index.template.php.  Same ad code that validates there, doesn't validate when used in the ad management mod because the two </td> end tags are missing.

Hope that helps.

p.s. I removed the mod from my forum, for now.
Title: Re: Ad Management mod
Post by: Loverboy on September 01, 2006, 06:30:57 PM
I use RC3 and I installed the Mod succesfully.. but I can't find any tool of ad management mod .. Could anyone tell me why
Title: Re: Ad Management mod
Post by: shergill on September 01, 2006, 06:32:49 PM
Question about the Display Ads within Posts feature. Can I say something like 'display between 1 and 3rd post' and also display between '7th and 9th post'?
Title: Re: Ad Management mod
Post by: Loverboy on September 01, 2006, 06:38:14 PM
Quote from: LocoTurk on September 01, 2006, 06:30:57 PM
I use RC3 and I installed the Mod succesfully.. but I can't find any tool of ad management mod .. Could anyone tell me why

Because I use a Dutch Language pack on my forum and the Mod is in English right? .. So is there a Dutch version of this Mod.. I'm sorry, I'm new at this Smf forum.
Title: Re: Ad Management mod
Post by: Loverboy on September 02, 2006, 11:27:27 AM
Fatal error: packageinstall() [function.require]: Failed opening required '/local/web/websites/6993155865/www/web/Packages/temp/./install.php' (include_path='.:/php/includes:/usr/share/php') in /local/web/websites/6993155865/www/web/Sources/Packages.php on line 540


I get this message when i tried to install it :(
Title: Re: Ad Management mod
Post by: jerm on September 02, 2006, 12:34:07 PM
Dutch language files for version 2.0 can be found here:
http://www.smfads.com/forums/index.php?topic=120.0

Title: Re: Ad Management mod
Post by: Bigguy on September 02, 2006, 05:36:30 PM
Yes you can.

Quote from: shergill on September 01, 2006, 06:32:49 PM
Question about the Display Ads within Posts feature. Can I say something like 'display between 1 and 3rd post' and also display between '7th and 9th post'?
Title: Re: Ad Management mod
Post by: kijkij on September 03, 2006, 05:06:38 AM
I installed this mod on SMF 1.1 RC2. But I have a problem that is that only I can see ads when I login as admin. Guests or other members cannot see any ad on any page. Please explain to me how to fix this problem?
Title: Re: Ad Management mod
Post by: edi67 on September 03, 2006, 06:14:04 AM
Quote from: kijkij on September 03, 2006, 05:06:38 AM
I installed this mod on SMF 1.1 RC2. But I have a problem that is that only I can see ads when I login as admin. Guests or other members cannot see any ad on any page. Please explain to me how to fix this problem?

you gave them permissions ?
Title: Re: Ad Management mod
Post by: edi67 on September 04, 2006, 01:39:19 PM
before all thanx for you beautiful and useful mod AD managements

i wanted ask you one question.

when i insert AD sense in my site under menu i want that it will be in center of page because it remain always at left side of page

there is way for center it?
Title: Re: Ad Management mod
Post by: Bigguy on September 04, 2006, 01:45:47 PM
Try putting this around the code:

<div align="center">ADCODE</div>
Title: Re: Ad Management mod
Post by: edi67 on September 04, 2006, 02:00:14 PM
Quote from: Bigguy on September 04, 2006, 01:45:47 PM
Try putting this around the code:

<div align="center">ADCODE</div>

excellent thanx  ;D

http://www.crazyzone.ws/index.php
Title: Re: Ad Management mod
Post by: Bigguy on September 04, 2006, 02:18:55 PM
Glad you got it to work. Nice lookin site btw.
Title: Re: Ad Management mod
Post by: Dayu on September 08, 2006, 11:04:35 AM
I'd like to place ads on all boards except I don't want it to appear in the index page. Right now I'm entering in the field "Which boards should this ad display", the board numbers, "2,3,4,5,...40" and I can't get what I want when my boards are about 60+ in total. Is there an easy way to get in this?
Title: Re: Ad Management mod
Post by: haktanir2 on September 09, 2006, 08:28:39 AM
1.1 RC3, gives test error for DisplayTemplate.php
Title: Re: Ad Management mod
Post by: Bigguy on September 09, 2006, 12:45:44 PM
It must be another mod then thats interfering with the install of the ad mod.
Title: Re: Ad Management mod
Post by: nermeen_elhelw on September 09, 2006, 01:55:39 PM
how do i make the ads appear on other themes?????
Title: Re: Ad Management mod
Post by: Bigguy on September 09, 2006, 02:03:57 PM
All the edits are stickied to the top of this board:

http://www.smfads.com/forums/index.php?board=7.0
Title: Re: Ad Management mod
Post by: leoedin on September 13, 2006, 03:21:29 PM
Hey guys. Great mod (I mean it :D).

One thing. Is there any way to have more permissions. I want to have ads in the actual posts for guests, but so that once you are registered you see ads only at the top of the board. Is there any way to do this?
Title: Re: Ad Management mod
Post by: DHC on September 13, 2006, 05:47:21 PM
Am using SMF 1.1 RC2 and had successfully installed Ad Mgmt version 1.5 - then subsequently installed numerous modifications.

Now I want to upgrade to version 2.0 of the Mod, but when I try to uninstall, the Package Manager reports errors.

How do I UPGRADE to version 2?

And - how do I uninstall version 1.5 ??

Title: Re: Ad Management mod
Post by: Bigguy on September 13, 2006, 07:31:36 PM
You can manually take everything out the the ad mod put in or you can uninstall the mods you installed after the ad mod. I think this would be the only two ways.
Title: Re: Ad Management mod
Post by: DHC on September 13, 2006, 08:31:19 PM
Quote from: Bigguy on September 13, 2006, 07:31:36 PM
You can manually take everything out the the ad mod put in or you can uninstall the mods you installed after the ad mod. I think this would be the only two ways.

I have no idea of the sequence in which I installed the mods. There are probably 20 of them altogether.

I have seen a nice post about the installation - and de-installation - steps for version 2. Is there something similar for version 1.5?
Title: Re: Ad Management mod
Post by: Bigguy on September 13, 2006, 09:22:37 PM
All the edits can be found here for the ad mods:

http://www.smfads.com/forums/
Title: Re: Ad Management mod
Post by: jbinbi on September 14, 2006, 04:51:21 PM
I have spent the last 2 hours looking at how to install this mod but can't figure this out.

I have my forum hosted by godaddy. I want to install adsense. I have the adsense code.

I have downloaded this mod.

From godaddy, I am assuming I need to upload this mod via the package manager. Do I upload the zip file (can't believe that to be true as assume that my Linux shared host doesn't know what to do)? So do I upload each file from the zip file, and if so, what do I then do?

I figure once I get this going, I just follow the instructions in post 1, but I can't get to first base. I know I read how to do this when searching before, but can't find it again.

Sorry for this request, but any help would be appreciated.

Thanks!
Title: Re: Ad Management mod
Post by: Bigguy on September 14, 2006, 05:10:06 PM
Upload the .zi[p file via package manager and it should install it to the DEFAULT theme only. If you have a custom theme you will have to add the edits to the template files of that theme. All the edits for the ad mods can be found here:

http://www.smfads.com/forums/index.php?board=7.0
Title: Re: Ad Management mod
Post by: jbinbi on September 14, 2006, 06:12:41 PM
Biguy, thanks for the help. I upload the package, and then click on apply mod (assuming this is the right thing to do).

Gives me an error

Package Manager - Install Actions
Install Actions for archive ad_mod_rc3_v2.zip:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. 

I am running v1.07.

Not sure I am doing the right thing. How does it know what to do with a zip file. Doesn't it need to unzip the files first?
Title: Re: Ad Management mod
Post by: Bigguy on September 14, 2006, 06:21:21 PM
O would suggest you upgrade to SMF 1.0.8 and then install the ad mod that corresponds to that version of SMF. For SMF 1.0.7 you would want this version of the ad mod:

ad_mod_1-0-7_v1-0-2b.zip

For SMF 1.0.8 you would want this version:

ad_mod_1-0-8_v1-0-2c.zip

EDIT: YAY my 2000th post. :)
Title: Re: Ad Management mod
Post by: jerm on September 14, 2006, 11:43:58 PM
Quote from: leoedin on September 13, 2006, 03:21:29 PM
Hey guys. Great mod (I mean it :D).

One thing. Is there any way to have more permissions. I want to have ads in the actual posts for guests, but so that once you are registered you see ads only at the top of the board. Is there any way to do this?
Not possible. Not yet anyways.
Title: Re: Ad Management mod
Post by: Mamoun on September 15, 2006, 03:48:16 AM
I really love this mod, Thanks  :D
Title: Re: Ad Management mod
Post by: Leiza on September 16, 2006, 08:18:55 PM
I thought that this was a great mod, until someone hacked in and was able to put some php code in there without my knowledge.  I had to take it down. :(
Title: Re: Ad Management mod
Post by: DHC on September 16, 2006, 09:14:10 PM
Quote from: Leiza on September 16, 2006, 08:18:55 PM
I thought that this was a great mod, until someone hacked in and was able to put some php code in there without my knowledge.  I had to take it down. :(

Can you describe a little more about the hack? How do you know they hacked in through code in this mod?
Title: Re: Ad Management mod
Post by: Leiza on September 16, 2006, 09:27:47 PM
When I checked my forum an hour ago, it had a bunch of code garbage where my Google Adsense was on, and I had to scroll down to see the rest of the forum.  I couldn't even go to my Admin to check what was happening.  I was able to change into a different theme and was able to get into my Admin.  There was only one possible place to put a code like that and I saw it in my Ad Management mod field.  They replaced my Google Adsense html code with some kind of php code (I didn't copy and paste it because I was trying to get my forum up for my users as quickly as possible). I just had to uninstall it because of that.  I'm using 1.0.8, by the way.
Title: Re: Ad Management mod
Post by: wk38 on September 17, 2006, 06:58:22 PM
Installed it. Puts some ads in, can't see a thing. ???
Title: Re: Ad Management mod
Post by: Bigguy on September 17, 2006, 08:00:05 PM
Are they being blocked by "No Script" in FF ??? Have you enabled Permissions. ??? and are you using a custom theme.
Title: Re: Ad Management mod
Post by: KaYs3r on September 18, 2006, 03:17:06 AM
I'm trying to use this mod, it installs ok, i've changed the permissions but nothing shows anywhere. I'm using RC1 with Ig-Oh Theme, do I need to edit any file?

Thanks
Title: Re: Ad Management mod
Post by: Bigguy on September 18, 2006, 07:22:37 AM
Yes you need to edit the template files of the theme you are using. All the edits can be found here under theme support:

www.smfads.com
Title: Re: Ad Management mod
Post by: KaYs3r on September 18, 2006, 07:42:31 AM
Thank you  :D
Title: Re: Ad Management mod
Post by: eduardor2k on September 18, 2006, 10:59:51 AM
Hi, just installed and worked like a charm, too bad i had tu put my prefrences to english, because in spanish "ad management" didn't appear.

Thanks.
Title: Re: Ad Management mod
Post by: KaYs3r on September 18, 2006, 04:41:01 PM
after the instalation of this mod, my forum is too slow  :(

is it possible or it's just a coincidence?  :(
Title: Re: Ad Management mod
Post by: Bigguy on September 18, 2006, 06:25:28 PM
It would only be slow if the ad mod is having problems getting the ads. But that has nothing to do with the ad mod.
Title: Re: Ad Management mod
Post by: Bigguy on September 18, 2006, 06:26:16 PM
If we could get it translated then it would be in Spanish ;)

Quote from: eduardor2k on September 18, 2006, 10:59:51 AM
Hi, just installed and worked like a charm, too bad i had tu put my prefrences to english, because in spanish "ad management" didn't appear.

Thanks.
Title: Re: Ad Management mod
Post by: KaYs3r on September 19, 2006, 07:40:44 AM
Quote from: Bigguy on September 18, 2006, 06:25:28 PM
It woul donly be slow if the ad mod is having problems getting the ads. But that has nothing to do with the ad mod.

don't think so, i only have 1 ad and it's plain text, just to test the mod

maybe it's a coincidence, let's wait and see :)

thank you
Title: Re: Ad Management mod
Post by: Bigguy on September 19, 2006, 07:44:58 AM
Well I have been running the ad mod and have been since it was made basically. It does NOT slow the forum down. I think it is a coincidence. ;) it all depends on where the ad is coming from, if the server it's on is slow then wether it's a text ad or not is not really going to matter.
Title: Re: Ad Management mod
Post by: Nolt on September 22, 2006, 06:18:32 PM
Hello, Ive crated polish translation for you mod. If you could add it to translations :)
TRANSLATION (http://www.wizzi.info/pliki/Ads.polish.php)
Title: Re: Ad Management mod
Post by: Bigguy on September 22, 2006, 06:36:08 PM
Can you post this on www.smfads.com and we will put it in the appropriate board.
Title: Re: Ad Management mod
Post by: Wesis69 on September 27, 2006, 12:45:40 AM
 instaled perfect .Thanks r3
Title: Re: Ad Management mod
Post by: a2h_ on September 27, 2006, 03:42:26 AM
If I make more than one ad display in a page, are they rotated?
Title: Re: Ad Management mod
Post by: Bigguy on September 27, 2006, 09:56:18 AM
Yes they are.
Title: Re: Ad Management mod
Post by: Stretsh on September 27, 2006, 10:49:33 AM
I dont know if this has been discussed earlier (kinda difficult finding it in 53 pages) but if I use the mod and select "Display ads on every page as a tower on the right side" for Google ads, the default template gets messed up when visitors try to view sticky topics.

If it already ha been discussed, please refer me to the right place. Else please help!
Title: Re: Ad Management mod
Post by: Bigguy on September 27, 2006, 11:56:22 AM
I have not heard of this at all. Try posting at www.smfads.com or wait for Jerm to see your post.
Title: Re: Ad Management mod
Post by: WarBirD on September 27, 2006, 12:19:14 PM
I have the latest version of the banner ads and SMF 1.1rc3 ! Now I have one banner on top, thats shown all the time, and i want to put a 2nd one, smaller banner, in just a specific forum to display, like I could theoretically do in the administration. So I set the right number of the board in there, but it doesn´t show up. I use the default template so there is no custom theme involved.

Why doesn´t it show up ?
Title: Re: Ad Management mod
Post by: Bigguy on September 27, 2006, 01:59:19 PM
Do you have any errors in your error log in the Admincp. ???
Title: Re: Ad Management mod
Post by: cwzplas on October 03, 2006, 05:28:59 AM
This was my fault.. :( Sorry I had forgot I did something to the index pages..... All is good now...
Title: Re: Ad Management mod
Post by: Bigguy on October 03, 2006, 07:38:41 AM
Glad to hear it's working for you.
Title: Re: Ad Management mod
Post by: Vinspire on October 04, 2006, 03:18:57 PM
Any tutorial on how to get this mod to work on Helios Theme ?

The code is kinda different  >:(
Title: Re: Ad Management mod
Post by: Bigguy on October 04, 2006, 04:53:41 PM
I have tried to do the but it hasn't been tested yet. You can try it if you like. I haven't tackled the other files yet.

EDIT: I have just edited the files for Helios multi RC3 you can find them on www.smfads.com under the board "Edited theme files"
Title: Re: Ad Management mod
Post by: Bigguy on October 04, 2006, 05:26:23 PM
I have just done the edits for helios multi-TP check your post at smfads.com
Title: Re: Ad Management mod
Post by: Vinspire on October 05, 2006, 12:20:55 AM
Quote from: Bigguy on October 04, 2006, 05:26:23 PM
I have just done the edits for helios multi-TP check your post at smfads.com

Okie. Thanks Bigguy and sorry for the trouble :)
Title: Re: Ad Management mod
Post by: Bigguy on October 05, 2006, 07:11:49 AM
Its no trouble at all. I hope they work for you.
Title: Re: Ad Management mod
Post by: pcigre on October 07, 2006, 10:41:25 AM
I get 6.     Execute Modification     ./Themes/default/Display.template.php     Test failed on RC3 with ad_mod_rc3_v2.zip any solution?
Title: Re: Ad Management mod
Post by: Vinspire on October 07, 2006, 03:17:19 PM
Quote from: pcigre on October 07, 2006, 10:41:25 AM
I get 6.     Execute Modification     ./Themes/default/Display.template.php     Test failed on RC3 with ad_mod_rc3_v2.zip any solution?

Open ./Themes/default/Display.template.php file and make a manual editing on the file ( remember to make a backup file )

In "Display.template.php" FIND:

global $context, $settings, $options, $txt, $scripturl, $modSettings;

BEFORE that add:

//Display ads on the thread page
$ads = show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);


In the same file FIND:

// Get all the messages...

And REPLACE with:

//Ad Counter
$adcounter =0;
// Get all the messages...
while ($message = $context['get_message']())
{
$adcounter++;


In the same file find:

</td></tr>';
}


And REPLACE with:

</td></tr>';
if ($adpost = show_posts($adcounter))
{
echo '

<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><img src="', $message['icon_url'] . '" alt="" border="0" /></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>
<div class="smalltext">? <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' ?</div></td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
', $reply_button, '';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
', $reply_button, '';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
', $modify_button, '';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
', $remove_button, '';

// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
', $split_button, '';
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</div>
</td>
</tr>
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp;', $txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}

}


Original post taken from smfads.com. Written by bigguy.

Link : http://www.smfads.com/forums/index.php?topic=22.0
Title: Re: Ad Management mod
Post by: yellow1912 on October 08, 2006, 01:38:11 PM
Is it possible to have this option: display the ads after the last post (each page) in the next version?
1. if my topic has 3 posts then the ads will be displayed as the 4th post.
2. If it has 19 posts, and I set my forum to display 15 posts/page then the ads will be displayed as the 16th post on the 1st page, the 20th post on the 2nd page.
Title: Re: Ad Management mod
Post by: geezmo on October 08, 2006, 01:47:49 PM
Not sure if this has been asked but I want to know how i can activate the ad after the last post of the thread. All I can see in the option is place the ad within posts but I don't know how to put the ad after the last post. Of course, I can't use "14,15" because the ad won't appear if there's only one post in the thread right?
Title: Re: Ad Management mod
Post by: Mivi on October 08, 2006, 05:18:57 PM
 :( i just realized i have a problem... my ads only shows when I am browsing the forum.

This means that ONLY the Admin can see the inline advertisements...  ::)
At first i thought it was my skin, but even when i am back to standard, it still wont show.

Where should i look for an error?

-Mivi
Title: Re: Ad Management mod
Post by: Bigguy on October 08, 2006, 05:21:31 PM
Have you set permissions for the users to see the ads. ???
Title: Re: Ad Management mod
Post by: ArkServer on October 08, 2006, 07:33:22 PM
is it possible to include the ads on the memberlist +search?
Title: Re: Ad Management mod
Post by: Bigguy on October 08, 2006, 10:09:47 PM
They should show up there, either in the welcome user area or at the top/bottom of the page.
Title: Re: Ad Management mod
Post by: Mivi on October 09, 2006, 02:51:12 AM
I have looked for a setting like that... but cannot find it. ;)

Where is it located  ???

Title: Re: Ad Management mod
Post by: Mivi on October 09, 2006, 03:22:51 AM
Ok... vnm... i just forun the setting  ::)

I must have been blind.  8)
Title: Re: Ad Management mod
Post by: geezmo on October 13, 2006, 01:34:49 AM
Anyone knows the answer to this question?

Quote from: geezmo on October 08, 2006, 01:47:49 PM
Not sure if this has been asked but I want to know how i can activate the ad after the last post of the thread. All I can see in the option is place the ad within posts but not how to put the ad after the last post.

Of course, I can't use "15" because if I did, the ad woulld appear only after post 15 so any post before that, there won't be any ad.
Title: Re: Ad Management mod
Post by: Bigguy on October 13, 2006, 01:54:36 AM
No, currently there is no way to show ads after the last post of a thread. Maybe in the next version.
Title: Re: Ad Management mod
Post by: geezmo on October 13, 2006, 02:10:26 AM
Ok thanks. I'll just manually code it then.
Title: Re: Ad Management mod
Post by: Bigguy on October 13, 2006, 02:42:17 AM
You could ask at www.smfads.com Jerm might know a way to do this. It might make things simplier for you. :)
Title: Re: Ad Management mod
Post by: jerm on October 13, 2006, 11:28:03 PM
Quote from: geezmo on October 13, 2006, 01:34:49 AM
Anyone knows the answer to this question?

Quote from: geezmo on October 08, 2006, 01:47:49 PM
Not sure if this has been asked but I want to know how i can activate the ad after the last post of the thread. All I can see in the option is place the ad within posts but not how to put the ad after the last post.

Of course, I can't use "15" because if I did, the ad woulld appear only after post 15 so any post before that, there won't be any ad.

There isn't an option as of yet to do this.
Title: Re: Ad Management mod
Post by: geezmo on October 14, 2006, 05:38:39 PM
Ok thanks, hopefully that can be added in the new version. For now, I'll just manually add the code.
Title: Re: Ad Management mod
Post by: riverts on October 16, 2006, 06:51:42 AM
i tried to install this mod to my forum version 1.1 RC3 but there is a failed test as shown below (6. Execute Modification ./Themes/default/Display.template.php Test failed )

please help me to solve this, any idea? i really need this mod on my forum.

1. Execute Code install.php 
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/Subs.php Test successful
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
6. Execute Modification ./Themes/default/Display.template.php Test failed
7. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
8. Execute Modification ./Sources/ManagePermissions.php Test successful
9. Extract File ./Sources/Ads.php 
10. Extract File ./Sources/LoadAds.php 
11. Extract File ./Themes/default/Ads.template.php 
12. Extract File ./Themes/default/languages/Ads.english.php

Title: Re: Ad Management mod
Post by: Bigguy on October 16, 2006, 10:34:30 AM
Install the mod and then download your Display.template.php. In that file find:

global $context, $settings, $options, $txt, $scripturl, $modSettings;

BEFORE that add:

//Display ads on the thread page
$ads = show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);


In the SAME file find:

// Get all the messages...

and replace it with:

//Ad Counter
$adcounter =0;
// Get all the messages...
while ($message = $context['get_message']())
{
$adcounter++;


Lastly in the same file find:

</td></tr>';
}


and replace with:

</td></tr>';
if ($adpost = show_posts($adcounter))
{
echo '

<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><img src="', $message['icon_url'] . '" alt="" border="0" /></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>
<div class="smalltext">? <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' ?</div></td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
', $reply_button, '';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
', $reply_button, '';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
', $modify_button, '';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
', $remove_button, '';

// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
', $split_button, '';
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</div>
</td>
</tr>
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp;', $txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}

}


Then re-upload this file to the appropriate spot
Title: Re: Ad Management mod
Post by: riverts on October 16, 2006, 10:42:28 PM
thanks for the reply, i will try this one later. im in the office so i cant test it. hopefully it will solve the problem. again, thanks a lot.
Title: Re: Ad Management mod
Post by: Bigguy on October 16, 2006, 10:50:26 PM
Hope it helps. :)
Title: Re: Ad Management mod
Post by: chinclub on October 18, 2006, 10:35:15 AM
I just tried to install and got test failed for both index.template.php & Display.template.php.

I think I found the manual install for Display.template.php around page 53 of this thread so can someone tell me how to manually install on index.template.php.

Thanks!
Title: Re: Ad Management mod
Post by: jerm on October 18, 2006, 11:18:26 AM
Manually installs can be found here: www.smfads.com in the theme board.
Title: Re: Ad Management mod
Post by: MoreBloodWine on October 18, 2006, 08:56:13 PM
Looks really good and stable on the default theme... now I just need to "try" and get this to work on my cutom theme so I can start postin a few ads... also assuming you have the same permissions set for all the mods you have "like show top show bottom etc" will this circulate through the adds like the news does smf forums assumin you have more than one piece of news.. hope this makes sense...
Title: Re: Ad Management mod
Post by: Bigguy on October 18, 2006, 08:59:09 PM
If you have 2 ads marked to show in the same spot on the forum yes it will cycle through them. Not on every page refresh but you will see them change.
Title: Re: Ad Management mod
Post by: MoreBloodWine on October 18, 2006, 09:08:34 PM
Quote from: Bigguy on October 18, 2006, 08:59:09 PM
If you have 2 ads marked to show in the same spot on the forum yes it will cycle through them. Not on every page refresh but you will see them change.
Cool... bec assumin I can get this to work on my custom theme i was considerin to sell ad space to people who play the game my forum is geared towards for the price of ingame gold / items...

Edit : Whats the curent cycling time between ads and can it be changed..
Title: Re: Ad Management mod
Post by: Bigguy on October 18, 2006, 09:25:34 PM
No it can't be changed and I really don't think there is a cycling time it just happens as you refresh the page or go from page to page if ya know what I mean.
Title: Re: Ad Management mod
Post by: ivanstech on October 19, 2006, 01:38:58 AM
i have install ad management mod in my  /forum/  , but i cannot  found in the Administration panel under the heading "Configuration". There is a new link there called "Ad Management" ??? , some said if i'm using smf 1.0.8 i can find it in the edit feature and option ! but still i cannot find anything about add management as well!. i'm using  default  themes  (is this mod working with custome themes? ) ... i need help on this ! thanks in advances!
Title: Re: Ad Management mod
Post by: Loverboy on October 19, 2006, 05:47:33 AM
^ Your language that you use, must be English you know..
Title: Re: Ad Management mod
Post by: ivanstech on October 19, 2006, 06:56:32 AM
I used english language!
Title: Re: Ad Management mod
Post by: Bigguy on October 19, 2006, 11:45:04 AM
In your admin panel for SMF 1.1RC3 on the left side near the top it should say "Ad management" For SMF 1.0.8 it should be under "feature and options" If you can't find it, check the "modifications.english.php" file and make sure the edits got done there. If you are using a custom theme then the template files have to be edited manually.
Title: Re: Ad Management mod
Post by: chinclub on October 19, 2006, 03:36:30 PM
Quote from: jerm on October 18, 2006, 11:18:26 AM
Manually installs can be found here: www.smfads.com in the theme board.

I'm using the default theme. I checked out that board but I could only find help for other themes.
Title: Re: Ad Management mod
Post by: Bigguy on October 19, 2006, 03:42:24 PM
It's more than likely that you have other mods installed that interfere with installing the ad mod. Go to where Jerm said and you should find the edits for the index.template.php file.
Title: Re: Ad Management mod
Post by: chinclub on October 19, 2006, 04:03:59 PM
I found a few threads on it, but I couldn't find the ad mod for RC3 and the ones that gave theme manual installs for RC2 didn't have the same code my pages have.  Do I just need to open a thread there for help? I am reluctant to do that since the description of that topic is for help with custom themes and I am using default. I got reprimanded early on for placing questions in the wrong topics so I want to be sure I am following the rules.

Thanks!
Title: Re: Ad Management mod
Post by: Bigguy on October 19, 2006, 04:27:46 PM
Those edits are right out of the .xml file so they do work on the default theme.
Title: Re: Ad Management mod
Post by: chinclub on October 19, 2006, 04:33:00 PM
Well, I found the code that I needed here: http://www.smfads.com/forums/index.php?topic=22.0 Even though it was for RC2 and tried it, but I got a template error in Display.template.php.  It no longer likes the  ?>  on the very last line of the code.  I guess I will open a topic over there and see if anyone can help me out.  HTML comes so easy to me but PHP is apparently still way over my head.  ::)
Title: Re: Ad Management mod
Post by: Bigguy on October 19, 2006, 04:35:07 PM
The RC 2 edits work with RC3 as there were only minor changes to the version.
Title: Re: Ad Management mod
Post by: MoreBloodWine on October 19, 2006, 04:38:32 PM
Is there anyway you would be able to implement a new permission for this mod that dis-allows the showing of ads on the login and registration pages... I use googles adsense and they kinda frown upon showing ads on non-content pages... so I was just curious if you could maybe add a new permission that says ( do not show ads on the login or registration pages ) ... if you could do that , that would be really awesome...

Edit : I'd even consider sliding you a few bucks via paypal if you could do that for me...
Title: Re: Ad Management mod
Post by: Bigguy on October 19, 2006, 04:41:04 PM
You should post this at smfads.com I'm sure Jerm will take it into consideration for the next version.
Title: Re: Ad Management mod
Post by: MoreBloodWine on October 19, 2006, 04:44:14 PM
Quote from: Bigguy on October 19, 2006, 04:41:04 PM
You should post this at smfads.com I'm sure Jerm will take it into consideration for the next version.
I actually considered posting it there lol... but you dont do the uodates yourself ? Anyway guess I'll just copy and paste my question there after I take care of a few other things here at SMF hehe... but I do think this would be a nice addition... I mean seriously do ads really need to be showed on the login and registration pages anyway hehe.. anyway keep up the good work ;-)
Title: Re: Ad Management mod
Post by: Bigguy on October 19, 2006, 04:45:50 PM
No I am just support staff at smfads Jerm is the coder. I just edit and try to help people as much as I can.
Title: Re: Ad Management mod
Post by: MoreBloodWine on October 19, 2006, 04:48:26 PM
Quote from: Bigguy on October 19, 2006, 04:45:50 PM
No I am just support staff at smfads Jerm is the coder. I just edit and try to help people as much as I can.
Well , you dont go un-noticed thats for sure... heh... thx for everything... and no rush on my theme just whenever you got the free time... ttyl and tc man
Title: Re: Ad Management mod
Post by: Bigguy on October 19, 2006, 04:51:16 PM
thanks, you to. :)
Title: Re: Ad Management mod
Post by: chinclub on October 19, 2006, 04:52:09 PM
Quote from: Bigguy on October 19, 2006, 04:35:07 PM
The RC 2 edits work with RC3 as there were only minor changes to the version.

Well, thanks for all of your help.  :)  I am at a stand still now since I am getting a template error after doing the manual code.  I guess I'll just have to hold off on this mod.  It looks like a great one though!
Title: Re: Ad Management mod
Post by: Bigguy on October 19, 2006, 04:52:46 PM
I have posted at smfads for you.
Title: Re: Ad Management mod
Post by: ivanstech on October 20, 2006, 01:07:54 AM
Quote from: Bigguy on October 19, 2006, 11:45:04 AM
In your admin panel for SMF 1.1RC3 on the left side near the top it should say "Ad management" For SMF 1.0.8 it should be under "feature and options" If you can't find it, check the "modifications.english.php" file and make sure the edits got done there. If you are using a custom theme then the template files have to be edited manually.

How to edit the "modification.english.php" anyway??? i have download the ad management mod zip file for smf 1.0.8 and i have upload the file manually into my /forum/ ...  is that the correct place to upload the ad management mod file into it or maybe i should upload it in somewhere else ???(because maybe i have upload it to the wrong side thats why my ad management panel didn't show up ) thanks for your answer !!!
Title: Re: Ad Management mod
Post by: Bigguy on October 20, 2006, 10:11:25 AM
Use the package manager to upload to your site. Go to admin panel and on the left click packages and the click download, browse for the package and upload.
Title: Re: Ad Management mod
Post by: ivanstech on October 21, 2006, 02:19:17 AM
Quote from: Bigguy on October 20, 2006, 10:11:25 AM
Use the package manager to upload to your site. Go to admin panel and on the left click packages and the click download, browse for the package and upload.

it works! thanks.... but how to make it work in my custom themes ?
Title: Re: Ad Management mod
Post by: Bigguy on October 21, 2006, 04:03:35 AM
You will have to manually edit the template files of the theme you are using. I have written out all the edits here in the "Theme Support" board:

www.smfads.com
Title: Re: Ad Management mod
Post by: ivanstech on October 21, 2006, 06:07:45 AM
edit should go to my custom theme right???  because i try to edit the default theme like you write in "theme support" is coming with error ! my theme is sullen madness and i only can find index.template.php   , what should i do ?
Title: Re: Ad Management mod
Post by: Bigguy on October 21, 2006, 12:12:34 PM
If the only template file you have in your theme you want to edit is index.template.php then that is the only one in that theme you need to edit.
Title: Re: Ad Management mod
Post by: ivanstech on October 22, 2006, 01:40:49 AM
after i edit the index.template.php i'ts coming with ... Fatal error: Call to undefined function: show_topofpageads() in /home/ivanste/public_html/forum_ivanstech/Sources/Load.php(1040) : eval()'d code on line 170.... can you tell me how to fix it and make it run properly please bigguy ! thanks a lot! (now i'm still using the default theme)
Title: Re: Ad Management mod
Post by: Bigguy on October 22, 2006, 10:50:55 AM
Can you send me your index.template.php file and I will see if I can fix the problem.
Title: Re: Ad Management mod
Post by: geezmo on October 22, 2006, 02:10:28 PM
Can I add PHP codes in Ad Management Mod? I tried to add the jump-to navigational menu at the Welcome User area section using the Ad Management Mod but it didn't work. You can see the discussion about my problem here:

http://www.simplemachines.org/community/index.php?topic=121415.msg777381#msg777381
Title: Re: Ad Management mod
Post by: jerm on October 22, 2006, 09:56:45 PM
If you are using version 2, then yes it does support php
Make sure to change the "type" from HTML to PHP
Title: Re: Ad Management mod
Post by: L.G.S on October 23, 2006, 04:49:54 PM
Would it be possible to somehow choose permissions for each add?

I would like ads that appear for guests only (eg JOIN NOW!) and some others for only certain groups (eg FREE PRIZE!).

??
Title: Re: Ad Management mod
Post by: ivanstech on October 28, 2006, 11:47:44 PM
Quote from: Bigguy on October 22, 2006, 10:50:55 AM
Can you send me your index.template.php file and I will see if I can fix the problem.

i have send the index.tempalte.php to your mail box in hotmail ... thanks for your help bigguy!
Title: Re: Ad Management mod
Post by: Bigguy on October 29, 2006, 12:25:23 PM
Ok, I will get to it as soon as I can.
Title: Re: Ad Management mod
Post by: Assistance on October 29, 2006, 06:22:16 PM
Quote from: L.G.S on October 23, 2006, 04:49:54 PM
Would it be possible to somehow choose permissions for each add?

I would like ads that appear for guests only (eg JOIN NOW!) and some others for only certain groups (eg FREE PRIZE!).

??

ad php
change 13 and 1 to groups you want to view it


if (in_array('13',$GLOBALS['user_info']['groups']) || in_array('1',$GLOBALS['user_info']['groups']))
{
  echo 'what you want them groups to see';
}
else
{
  echo 'what you want other then the above groups to see';
}


play with it, ya know ya wanna
Title: Re: Ad Management mod
Post by: deskjet2 on November 03, 2006, 06:33:24 AM
im newbie here. just install SMF

i've installed these package in order to apply for adsense ads.

Modification Packages
       Mod Name                                        Version     
1.    Ad Managment                                      1.0.2d    
2.    SMF 1.0.9 and 1.1 RC3-1 Security Patch     1.0.8/1.1 RC3

but i could not find the ad management panel..anyone can help me?

can refer to below picture of my admin panel..
(http://www.lagubaru.net/forum/smf.jpg)

Title: Re: Ad Management mod
Post by: Bigguy on November 03, 2006, 10:36:31 AM
Look under "Edit Features & Options" Right at the bottom.
Title: Re: Ad Management mod
Post by: L.G.S on November 03, 2006, 06:10:14 PM
Quote from: Assistance on October 29, 2006, 06:22:16 PM
Quote from: L.G.S on October 23, 2006, 04:49:54 PM
Would it be possible to somehow choose permissions for each add?

I would like ads that appear for guests only (eg JOIN NOW!) and some others for only certain groups (eg FREE PRIZE!).

??

ad php
change 13 and 1 to groups you want to view it


if (in_array('13',$GLOBALS['user_info']['groups']) || in_array('1',$GLOBALS['user_info']['groups']))
{
  echo 'what you want them groups to see';
}
else
{
  echo 'what you want other then the above groups to see';
}


play with it, ya know ya wanna

Thanks Im'a try now
Title: Re: Ad Management mod
Post by: L.G.S on November 04, 2006, 07:35:53 AM
Damn it doesn't work for me :(

Could somebody please show me the code which I would use which would:

Have this message appear to guests:

<div align="center"<a href="http://www.ruthlessintent.com/board/index.php?action=register"><img src="http://www.ruthlessintent.com/board/indexadvert.JPG" /></a></div>

And have this message appear to group ID 7:

code example
Title: Re: Ad Management mod
Post by: Assistance on November 04, 2006, 08:03:16 PM
 if (in_array('7',$GLOBALS['user_info']['groups']))
{
  echo 'Hi YOUR Group 7 code';
}
else
{
  echo '<center><a href="http://www.ruthlessintent.com/board/index.php?action=register"><img src="http://www.ruthlessintent.com/board/indexadvert.JPG" /></a></center>';
}
Title: Re: Ad Management mod
Post by: neddim on November 06, 2006, 10:17:05 AM
Hi,
My Google Ads doesnt shown in IE.
In Mozilla Firefox it is okay, but when I look my site via IE, there is no any Google Ads.
Is this Mod made only for Mozilla Firefox ?
Or, how can I change this !!!

BTW, You made a great mod, thanks a lot guys !
Title: Re: Ad Management mod
Post by: neddim on November 06, 2006, 11:08:17 AM
ACTUALY,
MY ADS ARE VISIBLE ONLY WHILE I AM LOGGED AS ADMIN !!!

Can anyone help me please :)
Title: Re: Ad Management mod
Post by: Assistance on November 06, 2006, 11:24:52 AM
go to permission per group and enable ads
Title: Re: Ad Management mod
Post by: neddim on November 06, 2006, 12:42:44 PM
That solved my problem.
Thanks man :)
Title: Re: Ad Management mod
Post by: anjori on November 07, 2006, 01:15:41 PM
ad_mod_rc3_v2 produces an error while trying to install on SMF 1.1 RC3. The file in question is:

6.     Execute Modification     ./Themes/default/Display.template.php     Test failed

Any ideas?
Title: Re: Ad Management mod
Post by: Bigguy on November 07, 2006, 01:19:47 PM
What other mods do you have installed. It normally doesn't produce any error upon install.
Title: Re: Ad Management mod
Post by: Assistance on November 07, 2006, 10:27:34 PM
Quote from: anjori on November 07, 2006, 01:15:41 PM
ad_mod_rc3_v2 produces an error while trying to install on SMF 1.1 RC3. The file in question is:

6.     Execute Modification     ./Themes/default/Display.template.php     Test failed

Any ideas?

if u have the arcade mod installed u have to install the Ad Mod first

alot of the time this error is easy fix, by uninstalling a mod that looks for the something in the same area.
Title: Re: Ad Management mod
Post by: anjori on November 08, 2006, 08:31:18 AM
Yep, I have the arcade mod installed and a boatload of others. Unfortunately, trying to uninstall that also gives me an error because it can't modify the files required to remove it. And I've already put too much time into setting up things to just wipe everything and start fresh, so I'm kind of stuck now.
Title: Re: Ad Management mod
Post by: White Monkey on November 08, 2006, 03:58:26 PM
I have this mod installed fine on the default theme but how do I install it on the theme of my forum??

Thankyou! :)

Title: Re: Ad Management mod
Post by: Vinspire on November 08, 2006, 05:00:31 PM
Quote from: White Monkey on November 08, 2006, 03:58:26 PM
I have this mod installed fine on the default theme but how do I install it on the theme of my forum??

Thankyou! :)

You could find the guide on how to make mods work in other themes HERE (http://www.simplemachines.org/community/index.php?topic=34526.0).
Title: Re: Ad Management mod
Post by: Bigguy on November 08, 2006, 08:15:40 PM
You can always install the ad mod and whatever it fails on, do those edits manually.

Quote from: anjori on November 08, 2006, 08:31:18 AM
Yep, I have the arcade mod installed and a boatload of others. Unfortunately, trying to uninstall that also gives me an error because it can't modify the files required to remove it. And I've already put too much time into setting up things to just wipe everything and start fresh, so I'm kind of stuck now.
Title: Re: Ad Management mod
Post by: Bigguy on November 08, 2006, 08:16:48 PM
Install the mod and then use this guide to add the edits manually:

http://www.smfads.com/forums/index.php?topic=22.0

Quote from: White Monkey on November 08, 2006, 03:58:26 PM
I have this mod installed fine on the default theme but how do I install it on the theme of my forum??

Thankyou! :)


Title: Re: Ad Management mod
Post by: FinsandFur on November 09, 2006, 09:15:34 AM
Has anyone had an instance where only some of the ad placement options work?

I'm running cerberus on 1.1rc3, and I installed ad_mod_rc3_v2 . It installed automatically and well, what I thought was flawlessly.
But now that I'm implementing it, I'm finding that only some of the options work. It seems to be only the options that place ads inside of threads, or above and between threads that work. Anything on the top, bottom, or side, does nothing. And nothing will show on the index page.

Any idears  :(
Title: Re: Ad Management mod
Post by: White Monkey on November 09, 2006, 02:31:56 PM
Thanks for the links you two. But I am having trouble with them...Is there anything else?
Title: Re: Ad Management mod
Post by: Bigguy on November 09, 2006, 02:51:11 PM
What are you having trouble with. ???

@ FinsandFur: You have to apply the edits to any theme other thant he default in order to get it to work. Go into your cerberus theme folder and see how many template files you have. Then edit them using this page:

http://www.smfads.com/forums/index.php?topic=22.0
Title: Re: Ad Management mod
Post by: White Monkey on November 09, 2006, 03:12:40 PM
I do what it says, but then when I upload the file again it comes up with an error :(

I REALLY want it in my header section, anything else is a bonus!

Can you help?
Title: Re: Ad Management mod
Post by: FinsandFur on November 09, 2006, 05:28:57 PM
Dunka Bigguy  ;D
Title: Re: Ad Management mod
Post by: Bigguy on November 09, 2006, 05:49:28 PM
What are you using to edit your files. ???

Quote from: White Monkey on November 09, 2006, 03:12:40 PM
I do what it says, but then when I upload the file again it comes up with an error :(

I REALLY want it in my header section, anything else is a bonus!

Can you help?
Title: Re: Ad Management mod
Post by: Assistance on November 10, 2006, 05:10:05 PM
copy paste the error
Title: Re: Ad Management mod
Post by: opioq on November 12, 2006, 01:32:51 AM
Thanks for the great plugin but it seems I can ONLY see ads when I am logged in as admin. Can anyone please help me with this? It would be greatly appreciated. The site is here (http://www.morgellonsite.com)
Title: Re: Ad Management mod
Post by: opioq on November 12, 2006, 01:53:03 AM
Quote from: Assistance on November 06, 2006, 11:24:52 AM
go to permission per group and enable ads

nevermind my previous post.

thanks!
Title: Re: Ad Management mod
Post by: justafishermen on November 13, 2006, 09:15:16 PM
Hey there, this is an amazing mod!

When I upgraded from SMF 1.0.8 to 1.1 RC3 it stopped working. It doesnt have the link to manage it in the admin panel anymore either. Any idea how I can re-add it without losing all the banners I have in there already?
Title: Re: Ad Management mod
Post by: Bigguy on November 13, 2006, 10:01:11 PM
@ opioq: set all your user permissions.

@ justafishermen: You should be able to just re-install version 2 of the ad mod and it should pick up where it left off.
Title: Re: Ad Management mod
Post by: justafishermen on November 13, 2006, 10:29:55 PM
Thanks BigGuy, I installed 2.0 but it didnt pickup the ads from 1.0... And it seems a little different. I went to "Add Ads" and it gives me a "content" box. I'm guessing I have to manually add the HTML code rather than in 1.0 I simply insert the url to the banner and URL for where it should point?
Title: Re: Ad Management mod
Post by: Bigguy on November 13, 2006, 10:54:11 PM
Yes, in the content box is were the ad code, or the code you are using is supposed to go.
Title: Re: Ad Management mod
Post by: ivo2296 on November 16, 2006, 04:09:48 PM
Hello,

Does anyone knows how to edit index.template.php  on classic theme on RC3, so i can have this mod working.



Thanks a lot ppl!
Title: Re: Ad Management mod
Post by: Bigguy on November 16, 2006, 08:59:15 PM
All the edits would be right here:

http://www.smfads.com/forums/index.php?topic=22.0
Title: Re: Ad Management mod
Post by: ivo2296 on November 16, 2006, 11:54:09 PM
Quote from: Bigguy on November 16, 2006, 08:59:15 PM
All the edits would be right here:

http://www.smfads.com/forums/index.php?topic=22.0

Thanks a lot - it works :)
Title: Re: Ad Management mod
Post by: Bigguy on November 17, 2006, 12:03:48 AM
Your more than welcome. ;)
Title: Re: Ad Management mod
Post by: trenchteam on November 18, 2006, 02:42:29 AM
There are so many files in the download section. can anyone tell me which one is for 1.1rc3?
Title: Re: Ad Management mod
Post by: Bigguy on November 18, 2006, 06:30:52 AM
That would be this one:

ad_mod_rc3_v2.zip
Title: Re: Ad Management mod
Post by: Banana$kin on November 18, 2006, 09:50:57 AM
Hey,

Currently using rc1.3 (template - BacknBlack) and the obvious ad management mod with it, works a treat apart from 1 thing, guests/un-registered users dont see one single ad apart from the one I have hard coded into a Board on the Board index.  Is there a fix for this anywhere?

VMT 

www.tacticsoverprinciples.org/smf

Edit.. found the answer, 3 pages back :)
Title: Re: Ad Management mod
Post by: Assistance on November 19, 2006, 02:22:01 AM
ad_mod_rc3_v2.zip (15KB)
Title: Re: Ad Management mod
Post by: dupont24 on November 26, 2006, 03:03:40 PM
I love this mod...just wondering if the Display ads on every page as a tower choice can be manipulated to exclude certain areas such as the search, register, error, admin  as per TOS of adsense program?
Title: Re: Ad Management mod
Post by: dupont24 on November 27, 2006, 07:02:11 AM
Got my answer from jerm on his site..... next version... ;)

Thanks
Title: Re: Ad Management mod
Post by: timbowyer on November 29, 2006, 11:29:08 PM
SMF Version 1.0.9 (the most recent version??) doesn't appear to be compatible with the latest ad mod (Version 2.0), despite the ad mod p age saying it is.
Title: Re: Ad Management mod
Post by: Bigguy on November 30, 2006, 01:11:49 AM
No version 2 is not for 1.0.9 You want this one:

ad_mod_1-0-9_v1-0-2d.zip
Title: Re: Ad Management mod
Post by: Mujahid on November 30, 2006, 06:47:19 AM
I`m having few problems with the neutron theme.There r few codes which r not in the theme..

THese r the codes which r not present in the neutron theme in index.template.php

<body>';                 
template_menu();   

What should i do with these codes?     
I`m using 1.1RC3.
Title: Re: Ad Management mod
Post by: Bigguy on November 30, 2006, 09:48:25 AM
You can try renaming the index.template.php file. Doing this will make SMF use the default template from the default theme, seeing as the mod is already installed on that theme it should work no problem. If those sections of the edits are mising you can either try to experiment with it or ask the theme author to see where these codes might go.
Title: Re: Ad Management mod
Post by: L.G.S on November 30, 2006, 02:54:18 PM
Quote from: Assistance on November 04, 2006, 08:03:16 PM
if (in_array('7',$GLOBALS['user_info']['groups']))
{
  echo 'Hi YOUR Group 7 code';
}
else
{
  echo '<center><a href="http://www.ruthlessintent.com/board/index.php?action=register"><img src="http://www.ruthlessintent.com/board/indexadvert.JPG" /></a></center>';
}

Sorry I took my time, but what would I do to have guests instead of group 7?
Title: Re: Ad Management mod
Post by: Assistance on December 02, 2006, 05:46:04 AM
 else
{
  echo  "this is what guest see"
Title: Re: Ad Management mod
Post by: Gobo on December 04, 2006, 06:07:48 AM
1.1 Final is out :D

Looking forward to the 1.1 compatible mod :D
Title: Re: Ad Management mod
Post by: Bigguy on December 04, 2006, 10:21:31 AM
It is already in the downloads section of this site. ;)
Title: Re: Ad Management mod
Post by: Gobo on December 04, 2006, 10:23:17 AM
lol ok that was embarassing...lets pretend that didnt happen!
Title: Re: Ad Management mod
Post by: Bigguy on December 04, 2006, 10:29:57 AM
lol, already forgotten. ;)
Title: Re: Ad Management mod
Post by: realdeal on December 04, 2006, 05:01:33 PM
Problem with 1.1 mod... I get this error:

Fatal error: require() [function.require]: Failed opening required '/www/110mb.com/s/d/v/s/r/a/w/0/sdvsraw07/htdocs/forum/Packages/temp/install.php' (include_path='.:/usr/share/php') in /www/110mb.com/s/d/v/s/r/a/w/0/sdvsraw07/htdocs/forum/Sources/Packages.php on line 549
Title: Re: Ad Management mod
Post by: Bigguy on December 04, 2006, 05:43:12 PM
Have you installed other mods with no problem. ???
Title: Re: Ad Management mod
Post by: realdeal on December 04, 2006, 06:11:06 PM
Yes
Title: Re: Ad Management mod
Post by: Bigguy on December 04, 2006, 06:39:19 PM
I take it you are using SMF 1.1 Final and the latest ad mod which is this one:

ad_mod_1-1_v2.zip

Title: Re: Ad Management mod
Post by: realdeal on December 04, 2006, 06:49:30 PM
Yes. I am using that mod...
Title: Re: Ad Management mod
Post by: ownagestudios on December 04, 2006, 06:54:06 PM
My ads only display to the admin, not to guests or regular users.
Title: Re: Ad Management mod
Post by: Bigguy on December 04, 2006, 07:04:41 PM
@ realdeal: Ok, maybe letting Jerm know about this on www.smfads.com would be a good idea. I can't see it being a problem with the mod as no one has reported this problem yet.

@ ownagestudios: Set your permissions.
Title: Re: Ad Management mod
Post by: realdeal on December 04, 2006, 07:48:26 PM
Jerm already know about this... still no reply from him though...
Title: Re: Ad Management mod
Post by: Bigguy on December 04, 2006, 07:56:20 PM
I'm sure he is working on something then, either that or this is a server problem.
Title: Re: Ad Management mod
Post by: Truth31u on December 05, 2006, 01:05:54 AM
Sorry if this has already been answered.  I could not find anything related in a search or browsing.

I am using SMF 1.1 RC3 and successfully installed this mod and was able to get ads to display.  The only issue is that it seems the ads will only display when the administrator is logged in, and no other account or guest can see the ads.

any ideas on what needs to be done to correct this?
Title: Re: Ad Management mod
Post by: Bigguy on December 05, 2006, 01:09:25 AM
Please set your permissions for all other members and guests to see the ads.
Title: Re: Ad Management mod
Post by: oscar2001 on December 05, 2006, 07:25:18 AM
strange, mine was working fine with 1.1 now no ads at all are comming up at all
Title: Re: Ad Management mod
Post by: realdeal on December 05, 2006, 04:24:38 PM
Well, since I couldn't get the mod to work, I just edited the main index.template.php file and inserted the code where it needed to be...
Title: Re: Ad Management mod
Post by: Bigguy on December 05, 2006, 05:46:55 PM
Well, if you have a custom theme you need to edit the files for it to work.
Title: Re: Ad Management mod
Post by: realdeal on December 05, 2006, 08:25:33 PM
It is a custom theme, but uses the default themes files... UseBB Port theme...
Title: Re: Ad Management mod
Post by: Bigguy on December 05, 2006, 08:38:51 PM
Do you see the ads or nobody sees the ads. ??? Did it install without errors. ???
Title: Re: Ad Management mod
Post by: Truth31u on December 05, 2006, 10:53:17 PM
Quote from: Bigguy on December 05, 2006, 01:09:25 AM
Please set your permissions for all other members and guests to see the ads.

Thanks for the help, works great now.
Title: Re: Ad Management mod
Post by: Bigguy on December 05, 2006, 10:58:44 PM
Your very welcome. :)
Title: Re: Ad Management mod
Post by: ownagestudios on December 06, 2006, 02:09:05 PM
Where do i set the permissions?
Title: Re: Ad Management mod
Post by: Bigguy on December 06, 2006, 02:33:35 PM
Go to Permissions then to settings. Put a check on all the boxes in settings then go back to "Permissions by Membergroup" You should see a whole bunch of permissions there.
Title: Re: Ad Management mod
Post by: Gobo on December 06, 2006, 02:47:32 PM
i really like this mod :D I only wanted the use the "ads in between posts" so i just added the code for that to all my themes after installing the mod and now its workin A-ok
thanks
Title: Re: Ad Management mod
Post by: yellow1912 on December 11, 2006, 06:37:58 PM
Can you add this feature in the new version:
Ads associated with specific theme:

Because many forums (including mine) using more than 1 theme, and the themes' layouts are different!
i.e: I want to display ads between posts in default theme, but on another theme I want to display on the sides.
Title: Re: Ad Management mod
Post by: Chmura on December 12, 2006, 07:22:20 PM
I just uninstalled this mod and got this error

Warning: main() [function.main]: Unable to access /home/facethem/public_html/forum/Sources/LoadAds.php in /home/facethem/public_html/forum/index.php on line 54

Warning: main(/home/facethem/public_html/forum/Sources/LoadAds.php) [function.main]: failed to open stream: No such file or directory in /home/facethem/public_html/forum/index.php on line 54

Fatal error: main() [function.require]: Failed opening required '/home/facethem/public_html/forum/Sources/LoadAds.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/facethem/public_html/forum/index.php on line 54

PLEASE HELP!! my forum doesnt work..!
Title: Re: Ad Management mod
Post by: Chmura on December 12, 2006, 07:24:59 PM
Okay i deleted the Ad codes in the index file and it seems to be working ok now
WOW that scared me!

NEVERMIND. MORE ERRORS
Fatal error: Call to undefined function: show_threadads() in /home/facethem/public_html/forum/Sources/Load.php(1724) : eval()'d code on line 8

I deleted the mod from the admin and tried to reinstall it just to have everything back to normal now I cant install it because I get this error,

Fatal error: packageinstall() [function.require]: Failed opening required '/home/facethem/public_html/forum/Packages/temp/./install.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/facethem/public_html/forum/Sources/Packages.php on line 549

This is such crap.
Title: Re: Ad Management mod
Post by: jerm on December 12, 2006, 10:09:31 PM
Your first issue was that LoadAds.php file didn't exist.

Your second issue is that you still have code left in your files.
Make sure to complete remove the ad mod (remove all the edits in the template files)
Title: Re: Ad Management mod
Post by: Chmura on December 12, 2006, 10:44:13 PM
I just uploaded the backup files and im good now.
Thanks, and uh im getting this error now I tried reinstalling that same mod
Fatal error: packageinstall() [function.require]: Failed opening required '/home/facethem/public_html/forum/Packages/temp/./install.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/facethem/public_html/forum/Sources/Packages.php on line 549
Will I have the same problem with others too??
Title: Re: Ad Management mod
Post by: jerm on December 12, 2006, 10:46:47 PM
What shows in the error log?
It might be the permissions of your files.
If that doesn't work, create a folder inside the package folder called temp and chmod that to 777
Title: Re: Ad Management mod
Post by: FinsandFur on December 12, 2006, 11:01:20 PM
What does that do jerm?

Not doubting you....just curious. I'm having similiar issues. I crashed my test site today trying to uninstall the ad mod.
Title: Re: Ad Management mod
Post by: FinsandFur on December 13, 2006, 09:57:27 AM
I'm having a heck of a time over here.
I cannot get my test site back up for nothing.

Tried putting all the code snippets back, along with the source files etc. And I continue to get this;
Fatal error: Call to undefined function: show_topofpageads() in /home/xxxx/public_html/testarea/forums/Sources/Load.php(1706) : eval()'d code on line 147
Title: Re: Ad Management mod
Post by: Bigguy on December 13, 2006, 10:53:45 AM
Make sure Loadads.php is in the Sources directory to, or have you. ???
Title: Re: Ad Management mod
Post by: FinsandFur on December 13, 2006, 07:27:07 PM
yeah, it's in there.

I have a feeling I'm missing the table in my database,and I have no idea how to find out or fix it. MySQL is   :o  :o to me.

The reason I think that is because I ran the upgrade over top my mods, thinking it would get rid of them anyway.
It didn't not like that at all.
I had to restore the board, but I did it on the already upgraded database since I dont know how to retrieve my back up.

Did that make sense...or doesn't that error sound like a databse issue?


My error log;

Title: Re: Ad Management mod
Post by: Bigguy on December 13, 2006, 11:25:41 PM
Try uploading "Ads.english.php" file to your langauge directory of the theme you are using and make sure it's in the default langauge folder to. See if that helps.
Title: Re: Ad Management mod
Post by: FinsandFur on December 13, 2006, 11:41:40 PM
Yep that helped a lot.      :o
Actually I needed the ads.template also, according to some more errors.

Those I'm sure were removed when I tried upgrading, along with the others I've restored.

Ok...that gave me back the ad management section in my admin panel, AND thank god the templates were still there with my ad codes in them.....BUT nothing shows up on the forum where they were suppose to, and used to.

I checked all code snippets from your "edits for ad_mod" post, put them back in place, and I ran maintenence from my admin panel.

I'm lost now...they show up in admin>ad management, but not out front anymore.

Title: Re: Ad Management mod
Post by: FinsandFur on December 13, 2006, 11:43:15 PM
By the way...smfads.com wont send me an activation code....unless they are gone through manually.
I didn't know if I should be over there with this issue or not.
Title: Re: Ad Management mod
Post by: Bigguy on December 13, 2006, 11:46:37 PM
Are you using a custom theme. ??? I will tell Jerm about that unless he sees it here sooner.
Title: Re: Ad Management mod
Post by: FinsandFur on December 13, 2006, 11:50:43 PM
Using cerberus on 1.1RC3
I had it all working great, but I'm trying to recover from a failed upgrade attempt to 1.1
Title: Re: Ad Management mod
Post by: Bigguy on December 14, 2006, 01:09:03 AM
Are all the edits in the template files of Cerberus.
Title: Re: Ad Management mod
Post by: FinsandFur on December 14, 2006, 08:30:24 AM
To the best of my knowledge yes.

I did make back ups before I tried to do the upgrade. And once I had my forum back up, noticing that the ad mod had been killed, I did side by side comparisons with the current cerberus files and the ones used from back when ad mod was working....with a comparison tool.

I DID have to go back and add the PHP files as you know, to the source and language directories.

Here's something thats weird and may give you more info, as I cannot figure it out....
Once I had the board back up, the banners fed through ad_mod still showed up at the bottom of all my pages. 
I'm using the ad_mod to also show a table of links under the menu in just one of my boards. This table doesn't seem to want to appear anymore since my recovery. Even though the code for it, and the banner code for the bottom of the pages appears in place in the management section just as it was before my crash.

//Below the menu ads....was the first snippet I looked for, but they all appear to be in place.

Now for the kicker..I can add a new ad under the menu to all boards and it will show. I even tried deleting the current one I have that is suppose to show on a single board and regenerating it, but it still wont show.

I sure do appreciate your help so far Bigguy
Title: Re: Ad Management mod
Post by: joseph21 on December 14, 2006, 11:28:25 AM
Hello,

First of all great mod!  ;) Works fine in SMF 1.1 Final. But I have a question. How do you place it inside a child board title? I've attached an image bellow.. Thanks.
Title: Re: Ad Management mod
Post by: Bigguy on December 14, 2006, 11:56:01 AM
I don't think this can be done yet with the ad mod. Maybe on the next version. If you head over to smfads.com maybe Jerm has some ideas as how to impliment that change.
Title: Re: Ad Management mod
Post by: codenut on December 14, 2006, 05:22:13 PM
Kudos on Ad Management as it slid in quite nicely on my forums but I do have one questions regarding permissions.

What I want to do is have it so folks that have a donation suubscription don't see the ads.

What I have done to try and achieve this is -

1. Created a Donator Group (based off of Regular Member)
2. Gone into the available groups and with the exception of the Donator group enabled Ads
3. Add some test users to the Donator class - assuming then they wouldn't see the ads

This however doesn't work as they still see the ads

Any suggestions of what I might have done wrong here - or something else to try.

any help would be appreciated.
Title: Re: Ad Management mod
Post by: Bigguy on December 14, 2006, 06:04:49 PM
I would think they are in two member groups and one still has show ads to that group enabled.
Title: Re: Ad Management mod
Post by: codenut on December 14, 2006, 06:21:59 PM
Quote from: Bigguy on December 14, 2006, 06:04:49 PM
I would think they are in two member groups and one still has show ads to that group enabled.

So it looks like I'll have to rework my groups then - oh well :) I'll see what I can work out
Title: Re: Ad Management mod
Post by: jerm on December 14, 2006, 07:46:23 PM
In the donator group, deny the permission instead of disallow.
Title: Re: Ad Management mod
Post by: richfella on December 23, 2006, 04:16:54 AM
SMF Version: SMF 1.0.9
I've installed the ad mod on the classic theme, please could someone hlp me with the edits? Thanks a mil.
Title: Re: Ad Management mod
Post by: Bigguy on December 23, 2006, 01:48:24 PM
Did you not get the files I sent you or did they not work. ???
Title: Re: Ad Management mod
Post by: ComputerLady on December 24, 2006, 09:46:27 AM
Quote from: FinsandFur on December 13, 2006, 09:57:27 AM
I'm having a heck of a time over here.
I cannot get my test site back up for nothing.

Tried putting all the code snippets back, along with the source files etc. And I continue to get this;
Fatal error: Call to undefined function: show_topofpageads() in /home/xxxx/public_html/testarea/forums/Sources/Load.php(1706) : eval()'d code on line 147

This is the problem I am having too. Forum is completely down:
http://cebug.org/forum/

Was attempting to upgrade from SMF 1.1 RC3 to latest version with Ad Mod: ad_mod_rc3_v2.zip installed. Only thing I can think to do at this point is do a reinstall of SMF 1.1 RC3, restore from my backup, and attempt to remove the Ad Mod. If that is successful, I should be able to upgrade SMF itself.

Really wish there was some kind of better info on how to resolve this here, or a cautionary note when upgrading SMF. Never had a problem of this kind before with any upgrades for SMF or Mods...

and I've tried manually uploading updated mod files to where I think they should go. No improvement yet.
Title: Re: Ad Management mod
Post by: FinsandFur on December 24, 2006, 10:44:43 AM
If it's any help Computorlady I never did get my test site back up....it burned completely to the ground somehow during upgrading with the ad mod installed.

I tried uninstalling the mod from my active site and had big issues with that too.
When you go to put the mod back in manually after either uninstalling or upgrading over top of it, be sure to put the added files back in their destination folders for example...


"Ads.php" destination="$sourcedir"
"LoadAds.php" destination="$sourcedir"
"Ads.template.php" destination="$themedir"
"Ads.english.php" destination="$languagedir"

I hired my upgrade done after that....couldn't take it any longer  ;D
Title: Re: Ad Management mod
Post by: ComputerLady on December 24, 2006, 03:29:58 PM
I gave up on trying to restore after a few hours... Have no idea what was problem, but no matter what I tried errors seem to proliferate. Wrong table names, wrong kind of data inside tables, etc. Can only think that either database I had downloaded was corrupted during download, or errors were there in database all along. (Had been experiencing some odd behaviors which I had been chalking up to SMF still being an RC, and need to upgrade some mods.) 

Best thing to do - obviously - was to start from scratch again with a known good install. Means all my users will have to re-register, and I'll have to recreate structure from scratch. Only content there that I regret loosing was a nice archive of tips and link suggestions provided by members (forum is for local computer user group). Had been planning to create an easier to use system for the main part of the site for storing articles, tips, and links anyway. (Long-term storage vs short-term.) So, I'm simply going to have to dust those plans off and bring them forward sooner.

Not happy about this, in other words, but willing to view it as a learning experience. Need to work out best process for doing major updates... Do mods first, then SMF. Or, remove all mods, update SMF, then see if mods can be reinstalled. 
Title: Re: Ad Management mod
Post by: Beagen on December 24, 2006, 05:36:33 PM
Awesome mod!

I was wondering though, is there any way I can make certain ads appear more then others?

Example, I have 2 types of ads. I want 1 type is appear 3/4 of the time, and one 1/4 of the time.

Right now, I added the one I want 3/4 of the time 3 times, so it thinks I have 4 adds. But, this messes up your cool reports page for me =/

Suggestions?
Thanks,
-B
Title: Re: Ad Management mod
Post by: Bigguy on December 24, 2006, 10:27:38 PM
No currently there is no way to do that. You can suggest it at www.smfads.com though if you want.
Title: Re: Ad Management mod
Post by: madfiddler on December 27, 2006, 10:20:42 PM
I've tried this mod twice now, the 2nd time with a clean 1.1.1 install but with the subscription package on and I still get this error

Fatal error: Unknown function: show_boardads() in blahblah/public_html/fiddleforum/Themes/default/BoardIndex.template.php
Title: Re: Ad Management mod
Post by: Memnon on December 27, 2006, 10:37:33 PM
Why cant i download the Norwegian translation files? I get a message that tells me to login, but my username and password doesn't work there. Don't I have access to that part of the forum?
Title: Re: Ad Management mod
Post by: Bigguy on December 27, 2006, 11:27:08 PM
@ madfiddler: Are all the edits in that file: BoardIndex.template.php

@ Memnon: What site are you talking about this one or www.smfads.com. ???
Title: Re: Ad Management mod
Post by: Memnon on December 28, 2006, 05:14:41 AM
Quote from: Bigguy on December 27, 2006, 11:27:08 PM
@ Memnon: What site are you talking about this one or www.smfads.com. ???

Oh, now I see, the language files are on www.smfads.com. I never get an activation mail from that site. Anyone know of another place to download the language files listed in the first post of this thread?
Title: Re: Ad Management mod
Post by: Bigguy on December 28, 2006, 10:16:13 AM
No that would be the only place. I can tell Jerm later unless he sees this and activates you.
Title: Re: Ad Management mod
Post by: madfiddler on December 28, 2006, 02:45:06 PM
Quote from: Bigguy on December 27, 2006, 11:27:08 PM
@ madfiddler: Are all the edits in that file: BoardIndex.template.php

Hi, I don't know. I took it off straight away - as it took the forum offline. I did a clean 1.1.1 install today with the latest english language pack and the same thing happened.
Title: Re: Ad Management mod
Post by: Bigguy on December 28, 2006, 02:48:00 PM
What version of the ad mod are you using. ???
Title: Re: Ad Management mod
Post by: Memnon on December 28, 2006, 03:12:36 PM
Is it possible to use this mod for all Themes or just the Default? It doesn't show in Classic...
Title: Re: Ad Management mod
Post by: madfiddler on December 28, 2006, 03:16:54 PM
Hiya, 2.0
Title: Re: Ad Management mod
Post by: Bigguy on December 28, 2006, 03:35:31 PM
@ Memnon: Yes it is possible but you will have to do the edits manually

http://www.smfads.com/forums/index.php?topic=22.0

@ madfiddler: Do you get any errors during install. ???
Title: Re: Ad Management mod
Post by: madfiddler on December 28, 2006, 05:54:20 PM
no errors mate, no.
Title: Re: Ad Management mod
Post by: jerm on December 28, 2006, 06:12:15 PM
Make sure that LoadAds.php is in your sources directory and that its not empty
Title: Re: Ad Management mod
Post by: madfiddler on December 28, 2006, 07:42:02 PM
I'm going to try it again now, this time the paid subs mod is also installed.
Title: Re: Ad Management mod
Post by: madfiddler on December 28, 2006, 07:45:28 PM
This time it worked.

The only thing I did differently was to manually copy the new php's in and then run the package.
Title: Re: Ad Management mod
Post by: Memnon on December 28, 2006, 08:45:17 PM
I don't seem to get the right or left side ads to work. If i select towering left/right side ads the ads only shows on top bottom.... , any clues to what I am doing wrong here? I have modified the classic theme but this error occur on the default theme too.
Title: Re: Ad Management mod
Post by: madfiddler on December 29, 2006, 11:46:59 PM
Is there anyway to get the mod to open a new browser window for the clicked link?

m
Title: Re: Ad Management mod
Post by: DaBoROE09 on December 30, 2006, 03:52:00 PM
Edit
nothing in my admin area comes up why? it is installed, i have other mods is that why it is not working ?

how can i do this manually like edit the php code manually?
Title: Re: Ad Management mod
Post by: brianj on January 03, 2007, 10:28:11 AM
Can someone help with this? I did a general search but could'nt turn up anything. Going through 65 pages of posts is scarey, also.

I can upload and read the files fine from the admin panel for the smfad program, but when I go to install it, it gives me this error:

Fatal error: packageinstall(): Failed opening required '/mnt/Target01/330321/www.kitsapcountyforum.com/web/content/Packages/temp/./install.php' (include_path='.:/usr/share/php:/usr/share/pear') in /mnt/Target01/330321/www.kitsapcountyforum.com/web/content/Sources/Packages.php on line 549

Can someone point me in the right direction to resolve this? Thanks!
Title: Re: Ad Management mod
Post by: Bigguy on January 03, 2007, 11:01:46 AM
Make sure there is a temp folder inside the packages folder and that both are chmodded to 777. That should solve your issue.
Title: Re: Ad Management mod
Post by: brianj on January 04, 2007, 05:47:14 AM
That did the trick, thanks Bigguy! 8)

edit: um..ok it says it's installed now, but i cant find the interface for it. ive click on every link in the admin panel and i see no panel like the one in the pics in the first post of this thread - no ad management link is visible under configuration. ???
Title: Re: Ad Management mod
Post by: Bigguy on January 04, 2007, 11:53:05 AM
You will have to see if the "modification.english.php" file has the edits for the ad mod in it.
Title: Re: Ad Management mod
Post by: brianj on January 04, 2007, 03:40:39 PM
it does not.
Title: Re: Ad Management mod
Post by: Bigguy on January 04, 2007, 04:29:33 PM
Then this is your problem. You will have to add them manually.
Title: Re: Ad Management mod
Post by: brianj on January 04, 2007, 06:00:52 PM
by following the instructions located in the link in the first post of this page?
Title: Re: Ad Management mod
Post by: Bigguy on January 04, 2007, 06:04:46 PM
Open the install.xml file that is packaged with the mod and in there you will find what you need.
Title: Re: Ad Management mod
Post by: brianj on January 04, 2007, 06:43:45 PM
ok, followed the directions - now my board is down and I get this message:

Fatal error: Call to undefined function: show_boardads() in /mnt/Target01/xxx/www.kitsapcountyforum.com/web/content/Sources/Load.php(1724) : eval()'d code on line 10
Title: Re: Ad Management mod
Post by: brianj on January 04, 2007, 07:01:58 PM
crap...i forgot to add permissions to index.template.php file...but i try to and it says 550 permission denied?! this is just great...
Title: Re: Ad Management mod
Post by: Bigguy on January 04, 2007, 07:18:40 PM
Make sure the file LoadAds.php is in the Sources directory.
Title: Re: Ad Management mod
Post by: brianj on January 04, 2007, 07:49:04 PM
ok, it wasn't in there, but that did not solve the prob ???

where do the other files go? maybe this is the prob, but my admin panel shows it successfully installed it
Title: Re: Ad Management mod
Post by: Bigguy on January 04, 2007, 08:24:58 PM
I don't have that version in front of me but the package-info.xml file should tell you what files go where.
Title: Re: Ad Management mod
Post by: brianj on January 05, 2007, 10:38:25 AM
still getting error

Fatal error: Call to undefined function: show_boardads() in /mnt/Target01/xxxx/www.kitsapcountyforum.com/web/content/Sources/Load.php(1724) : eval()'d code on line 10
Title: Re: Ad Management mod
Post by: jerm on January 05, 2007, 01:21:53 PM
Upload a fresh copy of LoadAds.php
It appears it might have gotten corrupt when you last uploaded it.
Title: Re: Ad Management mod
Post by: tpruessner on January 05, 2007, 04:03:30 PM
Hi, I am sorry if I am stepping in the middle of a conversation, but I have a question about this mod.  I uploaded it, thought it was working great and tried to place ads.  Well, the ads showed up everywhere when I was under the admin username, BUT when I was under another 'test' username, the ads were completely gone.  I have looked for the answer to what I have done wrong with it, but I honestly can't find the answer.  Does anyone here know?  Thank you very much.

Tam

The website I am using it at is http://mommysgetaway.com/smf/index.php
Title: Re: Ad Management mod
Post by: tpruessner on January 05, 2007, 04:07:33 PM
Nevermind...I am a dope!  LOL!  I just figured it out!  Thank you for your time!!!

Tam
Title: Re: Ad Management mod
Post by: brianj on January 06, 2007, 06:03:52 AM
Quote from: jerm on January 05, 2007, 01:21:53 PM
Upload a fresh copy of LoadAds.php
It appears it might have gotten corrupt when you last uploaded it.

Might have found the issue...I can't change permissions on the index.template.php file. Gives me a 550 permission denied error. I guess I'll have to shout out to my host to see what the deal is. Thanks for the help and I'll keep everyone posted so as to possibly help someone out with a similar prob in the future.
Title: Re: Ad Management mod
Post by: brianj on January 10, 2007, 04:19:39 PM
 >:( ahhhhhh! Every time I try to install it locks my access to ftp for that folder. 550 permission denied. My host has to reissue admin privileges. I'll try it one more time...
Title: Re: Ad Management mod
Post by: jerm on January 12, 2007, 01:42:39 PM
A new version has been uploaded. Please visit http://www.smfads.com/forums/index.php?topic=480 for full details.
Title: Re: Ad Management mod
Post by: norrisboat on January 13, 2007, 10:09:49 PM
Im having a bit of trouble installing the mod and hopefully someone can help me out.  Ive uploaded it from my comp through the smf package software.  Im unable to apply the mod(install).  I keep getting "You cannot download or install new packages because the Packages directory or one of the files in it are not writable! "

Ive added write permission to these files:

Sources/ModSettings.php
Themes/default/index.template.php
Themes/default/BoardIndex.template.php
Themes/default/MessageIndex.template.php
Themes/default/Display.template.php
Themes/default/languages/Modifications.english.php

Do I have to add write permissions to the files that are part of the ad management mod?  I looked for them on my server but I cant locate them.  My package manager lists the files but I cant locate where on the server they are????  Thanks, for the help

Norris  :D
Title: Re: Ad Management mod
Post by: Bigguy on January 14, 2007, 12:07:41 AM
Chmod the packages folder and the temp folder inside it both to 777. If there is no temp folder create one.
Title: Re: Ad Management mod
Post by: webvision on January 14, 2007, 02:27:05 AM
Nice Updation.
Title: Re: Ad Management mod
Post by: norrisboat on January 14, 2007, 06:57:28 PM
Quote from: Bigguy on January 14, 2007, 12:07:41 AM
Chmod the packages folder and the temp folder inside it both to 777. If there is no temp folder create one.

Chmod? 777?  Huh?  Your speaking a language Im unfamiliar with.  Can you please explain what these terms mean?  Thanks bigguy

Norris
Title: Re: Ad Management mod
Post by: Bigguy on January 14, 2007, 07:55:34 PM
Change your permissions on those 2 folders to 777
Title: Re: Ad Management mod
Post by: norrisboat on January 16, 2007, 01:16:10 AM
Quote from: Bigguy on January 14, 2007, 07:55:34 PM
Change your permissions on those 2 folders to 777

Ok, now I keep getting this error when I try to install it.

Fatal error: packageinstall(): Failed opening required '/home/*****/**************-www/forums/Packages/temp/./install.php' (include_path='./:/usr/local/lib/php') in /home/*****/**************-www/forums/Sources/Packages.php on line 549

What is this trying to tell me?  I have *'d out the files that are part of the sites identity. 

Thanks for the help.  :)
Title: Re: Ad Management mod
Post by: Bigguy on January 16, 2007, 02:22:05 AM
If there is no "temp" directory inside the "packages" folder then create it and chmod it to 777
Title: Re: Ad Management mod
Post by: dsanchez on January 16, 2007, 04:53:27 PM
Can't install it, I get the error:

"The package you tried to upload either is not a valid package or has become corrupted."

Using SMF 1.1.1

Any ideas?

Thanks

David.

Title: Re: Ad Management mod
Post by: norrisboat on January 16, 2007, 10:51:05 PM
Quote from: Bigguy on January 16, 2007, 02:22:05 AM
If there is no "temp" directory inside the "packages" folder then create it and chmod it to 777

Fatal error: packageinstall(): Failed opening required '/home/*****/****************-www/forums/Packages/temp/./install.php' (include_path='./:/usr/local/lib/php') in /home/*****/****************-www/forums/Sources/Packages.php on line 549


Im getting the same error but the temp folder has been added and I gave it write priveleges.  I guess thats what you mean by 777.

Ive created the temp folder several times but it keeps deleting it everytime i hit the "install" button and then it deletes the temp folder???????  Why does it keep deleting the temp folder? 

Thanks.

Thanks :)
Title: Re: Ad Management mod
Post by: Bigguy on January 17, 2007, 02:16:16 AM
Hmm, not to sure. You could try 755 instead of 777 but I doubt that will solve this problem.
Title: Re: Ad Management mod
Post by: EliTe_ThuT on January 17, 2007, 09:37:37 PM
I don't know why but when I click add ads, then I select the properties and add my google adsense code, then click add...and well it's like if I just create 4 time that ad... Help plz :-[
Title: Re: Ad Management mod
Post by: Bigguy on January 17, 2007, 10:16:51 PM
Sounds like the code got added to many times to your template files. You will have to go through the 4 template files it modifies and check them.
Title: Re: Ad Management mod
Post by: dsanchez on January 18, 2007, 10:28:36 AM
any ideas about this?...I went also to http://www.smfads.com/forums/ but not answer yet...

Quote from: dsanchez on January 16, 2007, 04:53:27 PM
Can't install it, I get the error:

"The package you tried to upload either is not a valid package or has become corrupted."

Using SMF 1.1.1

Any ideas?

Thanks

David.


Quote from: dsanchez on January 16, 2007, 04:53:27 PM
Can't install it, I get the error:

"The package you tried to upload either is not a valid package or has become corrupted."

Using SMF 1.1.1

Any ideas?

Thanks

David.


Title: Re: Ad Management mod
Post by: Bigguy on January 18, 2007, 12:14:41 PM
Do you get this error with all packages or just this one.
Title: Re: Ad Management mod
Post by: dsanchez on January 18, 2007, 02:57:38 PM
Solved, I forgot to chmod 777 the Package folder  :P

Quote from: dsanchez on January 16, 2007, 04:53:27 PM
Can't install it, I get the error:

"The package you tried to upload either is not a valid package or has become corrupted."

Using SMF 1.1.1

Any ideas?

Thanks

David.


Title: Re: Ad Management mod
Post by: Stüldt Håjt on January 18, 2007, 03:44:34 PM
Thanks. Just those features I needed came with the latest version.
Title: Re: Ad Management mod
Post by: norrisboat on January 18, 2007, 06:31:22 PM
Ok, i finally got it uploaded the package throught the package feature in smf.  I dont see the ad management link in the configuration category in my admin.  Where is it?

Thanks,

Norris
Title: Re: Ad Management mod
Post by: Bigguy on January 18, 2007, 08:47:21 PM
Did it install with no errors. ???
Title: Re: Ad Management mod
Post by: norrisboat on January 18, 2007, 11:12:43 PM
it installed with no errors finally.   :).  I thought i was home sweet home.  After I uploaded/install through smf package screen, do i have to installit again?

Thanks,

Norris
Title: Re: Ad Management mod
Post by: Bigguy on January 19, 2007, 12:19:09 AM
Are you using the default theme or a custom one.
Title: Re: Ad Management mod
Post by: norrisboat on January 19, 2007, 01:47:03 AM
default.  Once its on my server do I have to run packages/temp/instal.xml?  Ive tried but that page just displays the xml code in IE.

Thanks,

Norris
Title: Re: Ad Management mod
Post by: Bigguy on January 19, 2007, 03:18:21 AM
Once it's uploaded through the package manager all you should have to do is go to "Packages" and look for the name of it, beside that their is an install link. Click on it and if there are no errors then install it.

If you have tried that and have also changed permissions on all the files and folders that it modifies then it should install with no problems. Have you checked the error log to see if there are errors there. ???
Title: Re: Ad Management mod
Post by: norrisboat on January 19, 2007, 04:53:04 PM
I tried installing a different mod to see try and dicpher the errors when i installed the ad management mod.  Im getting an insane amount of errors when i install a mod in my forum error log, however there isnt one at all during install.  It says the package has been in installed successfully and you should be able to us whatever functionality it adds.  None of the mods Ive installed work.   :(

Thanks,

Norris
Title: Re: Ad Management mod
Post by: Bigguy on January 19, 2007, 07:16:02 PM
This might have something to do with mod security. Search the forums here about it and a way to bypass that. Other than that all I can think of is maybe the files aren't "owned" by you in which case you would have to talk to your host.
Title: Re: Ad Management mod
Post by: 3mrhythm on January 20, 2007, 11:48:41 AM
supposedly the theme that i am using needs this to be installed in the display.template.php page.. how would i go about doing that?
Title: Re: Ad Management mod
Post by: samozin on January 20, 2007, 01:31:26 PM
HEY GUYS WHERE IS THE ARABIC FILES  I DONT KNOW WHY U IGNORING US?
Title: Re: Ad Management mod
Post by: Bigguy on January 20, 2007, 08:01:21 PM
have you checked out www.smfads.com to see if they are there. If they are not maybe they need to be translated still.
Title: Re: Ad Management mod
Post by: moneydiscuss on January 21, 2007, 02:02:56 AM
Rotate banner code doesn't work under 2.3 ad mod?

Just now i installed 2.3 ad mod successful ,then added below code :

Insert into <BODY>

<SCRIPT LANGUAGE="JavaScript">



<!-- Begin
var how_many_ads = 3;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
txt="The World's Largest Online Bookstore, Amazon.com";
url="http://www.amazon.com";
alt="amazon.com";
banner="http://imageserv.imgis.com/images/Ad12669St1Sz1Sq1_Ban1.gif";
width="468";
height="60";
}
if (ad==2) {
txt="Palm III by 3Com, in stock!";
url="http://cybershop.com/";
alt="cybershop.com";
banner="http://imageserv.imgis.com/images/Ad13189St1Sz1Sq5_Ban10.gif";
width="468";
height="60";
}
if (ad==3) {
txt="Find it at GoTo.com";
url="http://www.goto.com";
alt="goto.com";
banner="http://imageserv.imgis.com/images/Ad13700St1Sz1Sq1_Ban1.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('<small>' + txt + '</small></a>');
document.write('</center>');
// End -->
</SCRIPT>


But it doesn't work ,got error:

QuoteParse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in 
:'(
Title: Re: Ad Management mod
Post by: Bigguy on January 21, 2007, 02:06:29 AM
You should only need this code:

<SCRIPT LANGUAGE="JavaScript">



<!-- Begin
var how_many_ads = 3;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
txt="The World's Largest Online Bookstore, Amazon.com";
url="http://www.amazon.com";
alt="amazon.com";
banner="http://imageserv.imgis.com/images/Ad12669St1Sz1Sq1_Ban1.gif";
width="468";
height="60";
}
if (ad==2) {
txt="Palm III by 3Com, in stock!";
url="http://cybershop.com/";
alt="cybershop.com";
banner="http://imageserv.imgis.com/images/Ad13189St1Sz1Sq5_Ban10.gif";
width="468";
height="60";
}
if (ad==3) {
txt="Find it at GoTo.com";
url="http://www.goto.com";
alt="goto.com";
banner="http://imageserv.imgis.com/images/Ad13700St1Sz1Sq1_Ban1.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('<small>' + txt + '</small></a>');
document.write('</center>');
// End -->
</SCRIPT>


Banner rotation does work but you need to have 2 ads placed in the same spot. So if these are 3 different ads create 3 different slots, one for each and check off that they show inthe same spot and they will rotate.
Title: Re: Ad Management mod
Post by: Roger Rabbit on January 22, 2007, 03:02:04 AM
Hello...i used the latest version of this Ad Mod and it is workig fine using SMF Default Theme...

However, upon using another theme, it is not showing...can you please tell me the problem....

Thanks in advance...
Title: Re: Ad Management mod
Post by: Bigguy on January 22, 2007, 04:01:30 AM
If you are using a custom theme you will have to do the edits manually. I have posted them all here for all versions of the ad mod:

http://www.smfads.com/forums/index.php?board=7.0
Title: Re: Ad Management mod
Post by: Farmacija on January 22, 2007, 08:49:00 AM
(http://img264.imageshack.us/img264/5666/smf1ry.th.jpg) (http://img264.imageshack.us/my.php?image=smf1ry.jpg)

Type     Action     Description
1.    Execute Code    install.php    
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/Subs.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
6.    Execute Modification    ./Themes/default/Display.template.php    Test failed
7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
8.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
9.    Extract File    ./Sources/Ads.php    
10.    Extract File    ./Sources/LoadAds.php    
11.    Extract File    ./Themes/default/Ads.template.php    
12.    Extract File    ./Themes/default/languages/Ads.english.php
Title: Re: Ad Management mod
Post by: Bigguy on January 22, 2007, 12:00:06 PM
Install the mod and then do the edits for this file: "Display.template.php" manually.
Title: Re: Ad Management mod
Post by: skball123 on January 22, 2007, 05:58:00 PM
what happens if i need to use a java ad.. i mean i know wat happens.. it doesnt come up, but waht should i do?
Title: Re: Ad Management mod
Post by: Shonick on January 22, 2007, 06:38:37 PM
why does the ads not show to guest, It only shows to the registered members
Title: Re: Ad Management mod
Post by: Bigguy on January 22, 2007, 06:42:38 PM
Set your permissions.
Title: Re: Ad Management mod
Post by: Shonick on January 22, 2007, 06:49:39 PM
the "enable ads", right?
Title: Re: Ad Management mod
Post by: Bigguy on January 22, 2007, 07:06:39 PM
Yes in all the membergroups. You might try doing a hard refresh (crtl +f5) and see if they show.
Title: Re: Ad Management mod
Post by: jerm on January 22, 2007, 11:50:28 PM
Quote from: skball123 on January 22, 2007, 05:58:00 PM
what happens if i need to use a java ad.. i mean i know wat happens.. it doesnt come up, but waht should i do?
Do you mean javascript?
Paste the code you are wanting to use.
Title: Re: Ad Management mod
Post by: skball123 on January 23, 2007, 07:59:01 AM

ok this is it

<script type="text/javascript"><!--
google_ad_client = "pub-9788119763964936";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "BBBFC5";
google_color_bg = "BBBFC5";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Title: Re: Ad Management mod
Post by: SRaven on January 24, 2007, 12:01:01 AM
Quote from: stormgal on January 23, 2007, 11:37:23 PM
I uploaded this mod, but it seems as if the css and the style sheet files are missing.&nbsp; I tried to reinstall it many times, but I keep getting the same problem


It looks like you are trying to upload it in the wrong place. from the img, it looks like you are uploading this as a theme....this is not a theme ;D

Undo what you have done and install this using the package manager, not in themes and settings....
Title: Re: Ad Management mod
Post by: hakany on January 24, 2007, 08:58:31 AM
I installed ad management (smf 1.1.1) it works fine, but I don't know how to ad the banners, how to links files, (it only says write your code here), how can link to banner file or image, is it possible to put flash file ?
Thank you
Best regards...
Title: Re: Ad Management mod
Post by: Gobo on January 24, 2007, 09:03:03 AM
use normal html and scripts in the boxes
trial will let u know limitations eventually

im sure flash will work as long as the code is correct and file location is properly specified
Title: Re: Ad Management mod
Post by: hakany on January 24, 2007, 11:37:40 AM
Thank you for your answer, then where (which folder) should I store my files for the images etc ?
Best regards
Title: Re: Ad Management mod
Post by: 3mrhythm on January 25, 2007, 03:11:36 AM
i want to thank you for this mod! its great as soon as i get some support from my memebers and adds i'll throw a little your way :) thanks!
Title: Re: Ad Management mod
Post by: Bigguy on January 25, 2007, 01:10:06 PM
@ hakany: It doesn't really matter were they are stored just make sure the code points to were they are.
Title: Re: Ad Management mod
Post by: geezmo on January 25, 2007, 06:13:30 PM
The link to the Ad Management Mod settings in my Admin panel is missing. I think this was due to some conflict with another mod I installed. The ads are still showing ok but I can't control them anymore because I don't have the Ad management mod settings link in Admin Panel.

How can I bring this back or, at the least, how can I access that in Admin panel so I can control the ads?
Title: Re: Ad Management mod
Post by: barcelona on January 25, 2007, 09:14:46 PM
Guys I really would love some help getting my ads up!  I got the Ad management installed but neither my adbrite ads nor my banners show!
Title: Re: Ad Management mod
Post by: Bigguy on January 25, 2007, 09:27:45 PM
If you are not using the default theme then there are 4 templates you have to edit in order to get the ads to show.

Display.template.php
MessageIndex.template.php
BoardIndex.template.php
index.template.php

All the edits can be found here for all the different ad mod versions:

http://www.smfads.com/forums/index.php?board=7.0

Title: Re: Ad Management mod
Post by: choloman05 on January 27, 2007, 04:02:44 PM
when trying to uninstall the old version on RC2, I got this error that crashed my site:

Fatal error: Call to undefined function: show_topofpageads() in /*****/public_html/Sources/Load.php(1724) : eval()'d code on line 202

What do I do to restore the balance??
Title: Re: Ad Management mod
Post by: Bigguy on January 27, 2007, 04:17:23 PM
Put LoadAds.php back in the Sources directory.
Title: Re: Ad Management mod
Post by: dontbe on January 27, 2007, 09:06:13 PM
arrg
Im not getting a authorization email from smfads.com forum... so I cant post there! (user findit)

I am using slickpro graphite.. I would be happy to do the mod manually, but the only mod I see is for RC3..
is there a smfad mod for smf1.1.1 slickpro graphite?? Ormuz wants to know too. amoungst others.
what can I do?
regards, Ed
Title: Re: Ad Management mod
Post by: Bigguy on January 28, 2007, 03:28:57 AM
The ad mod for 1.1.1 is here at simple machines:

http://custom.simplemachines.org/mods/index.php?mod=255

All the edits can be found here:

http://www.smfads.com/forums/index.php?board=7.0
Title: Re: Ad Management mod
Post by: dontbe on January 28, 2007, 11:26:29 PM
hello Bigguy:
I cant find the edits for slickpro graphite at that link you mentioned?
your last comment was "ill take alook at it"
http://www.smfads.com/forums/index.php?PHPSESSID=0010e835bfad1a7cb7f16160e06b3256&topic=438.0

I feel like i am missing something. Ill look at the manual notes.
Title: Re: Ad Management mod
Post by: Bigguy on January 29, 2007, 12:07:27 AM
Sorry the past little while I have been a bit busy. Have you searched the smfads site. I am possitive I have edited the slickpro graphite theme already.
Title: Re: Ad Management mod
Post by: dsanchez on January 29, 2007, 02:04:54 PM
when I create an ad, it shows twice in the admin. Any ideas? (see attach)

Thanks

David.
Title: Re: Ad Management mod
Post by: choloman05 on January 29, 2007, 05:06:00 PM
Thanks for the help Bigguy.
Title: Re: Ad Management mod
Post by: dontbe on January 29, 2007, 08:46:50 PM
Quote from: Bigguy on January 29, 2007, 12:07:27 AM
Sorry the past little while I have been a bit busy. Have you searched the smfads site. I am possitive I have edited the slickpro graphite theme already.
here is the last note from you about the slickpro1.1.1 mod from what I can tell....
Quote
Re: Edited theme files
« Reply #58 on: January 21, 2007, 09:01:04 AM »
   
Quote from: bigguy on January 20, 2007, 07:36:50 PM
@ ormuz, stephancelmare360: Have you searched the forum to see if those files are here somewhere. Huh?

Yes, the theme I've requested is posted already here, but the files are for the RC3 version, and this version isn't working with the 1.1.1 version! If sameone can do the upgrade I and the cummunity will appreciate that, tahnks!

but to be fair, I have not looked at the install notes for the manual instructions... I guess its time for me to learn some php.
:)
Title: Re: Ad Management mod
Post by: Bigguy on January 29, 2007, 11:17:50 PM
All the edits are here:

http://www.smfads.com/forums/index.php?board=7.0
Title: Re: Ad Management mod
Post by: crazyclover on January 30, 2007, 03:50:21 PM
Yes.... The enable feature was driving me nuts..


Thanks again

CrazyClover
DiamondGamer.com
Title: Re: Ad Management mod
Post by: wickedstangs on January 30, 2007, 09:19:37 PM
Trying to remove 2.0 ad management mod but, get this error?
!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.  
Type Action Description
1. Execute Modification ./index.php Test failed
2. Execute Modification ./Sources/Subs.php Test successful
3. Execute Modification ./Themes/default/index.template.php Test failed
4. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
5. Execute Modification ./Themes/default/Display.template.php Test failed
6. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
7. Execute Modification ./Sources/ManagePermissions.php Test successful
8. Delete File ./Sources/Ads.php 
9. Delete File ./Sources/LoadAds.php 
10. Delete File ./Themes/default/Ads.template.php 
11. Delete File ./Themes/default/languages/Ads.english.php

Do I continue or not?
Title: Re: Ad Management mod
Post by: Bigguy on January 31, 2007, 11:05:25 AM
If you do continue the edits in those 3 files will have to come out manually. Check either your install.xml file in the package or www.smfads.com for all the edits to remove.
Title: Re: Ad Management mod
Post by: riverts on February 01, 2007, 02:06:08 AM
i successfully installed this MOD to smf 1.1.1 using dilbert MF theme. here is just my question, i want to put the ads on CENTER because it is set as default on the left side. what files should i edit and what part of it. i will appreciate any you may have.

thanks in advance.
Title: Re: Ad Management mod
Post by: Bigguy on February 01, 2007, 11:52:41 AM
Try putting this tag in front of your ad code:

<div align="center">Ad Code Here</div>
Title: Re: Ad Management mod
Post by: franklinrony on February 01, 2007, 02:34:51 PM
i have problem with sitemap of davil, when type http://localhost/smf/sitemaps
appear
Fatal error: Call to undefined function show_topofpageAds() in W:\www\smf\Sources\Load.php(1642) : eval()'d code on line 170
but in load.php there not  function show_topofpageAds
in index.template there
//Display ads on the top of the page
        $ads = show_topofpageAds();
        if(!empty($ads))
                if($ads['type']==0)
                        echo $ads['content'];
                else
                        eval($ads['content']);
        unset($ads);

how fix this ?
Title: Re: Ad Management mod
Post by: Bigguy on February 01, 2007, 03:19:54 PM
Make sure LoadAds.php is in the Sources folder.
Title: Re: Ad Management mod
Post by: franklinrony on February 01, 2007, 03:22:13 PM
yes loadads in sources folder.
Title: Re: Ad Management mod
Post by: Bigguy on February 01, 2007, 04:21:15 PM
Then the edits for the mod are not in the index.template.php file. Reinstalling the mod or doing those edits manually should fix it.
Title: Re: Ad Management mod
Post by: aznwarrior44 on February 02, 2007, 03:02:53 AM
Hi I am totally lost this is the first time I've ever administered a forum so please be patient with me. I am using the ad management mod and I cant get it to display the ads for my forum members. I can see the ads when I am logged in as admin but when I log out the ads dissappear. I am using SMF 1.1.1 zip (I dont know what RC2 or RC3 mean, I just downloaded the forum a few days ago) Witht he default theme, on Xammp server, ad mod version 1.1.x 2.3. Please help I'm this whole server/forum thing has been really stressing me out.

If any one is interested in joining a social/anime discussion forum please come take a look at mine.

Visit: www.otakudesuka.us.to I think you'll enjoy it (that is after I finish installing ads and adding boards, I would like to be able to server this thing some place other than from my laptop. Currently the forum is down when I'm at the college. =P ... server will be down while i reinstall xamp and server due to some error that keeps on kicking me out and forcing me to relog when ever i want to use admin functions. I had to change the site/theme url since i spelled it wrong the first time. Seems that xampp doesnt like it so ill do it right one time. Site is avaible from 2pm to 6am -8 gmt for now till I can move the server to my friend's house. OO I wrote alot of stuff..... sorri *bow*)

Thank You soo much

Sincerely,
Yakumo

(also if google is witholding some % for taxes from adsense do I have to pay taxes again when tax time comes around?)
 
Title: Re: Ad Management mod
Post by: Bigguy on February 02, 2007, 10:51:27 AM
Go into the admin panel to permissions and set it so all members can see ads. That should get them to show.
Title: Re: Ad Management mod
Post by: aznwarrior44 on February 02, 2007, 11:29:29 AM
YaY! thanks it worked perfectly
Title: Re: Ad Management mod
Post by: franklinrony on February 02, 2007, 01:48:01 PM
solve the problem but ads dont show where put the code of index.template.php
Title: Re: Ad Management mod
Post by: Bigguy on February 02, 2007, 05:46:08 PM
Is the ad mod installed or did you place the code manually.
Title: Re: Ad Management mod
Post by: SpelingMistakes on February 02, 2007, 09:30:59 PM
4. Execute Modification
Quote./Themes/default/index.template.php
Test failed

If i saw good, i dont need to worry - I am using some other theme - helios - But i have problem - If i understud you i neeed to modify 4 template files but....

1. When i try to find
Quote<body>';
i cant find it - Why?
I have this 
Quote<body><div><table cellpadding="0"
bla bla bla .......

2. When i try to search for
Quote</td>
I can find lots of them – what specific i search for?


3. I can find
Quotetemplate_menu();
and thats ok

4. I cant find
Quote// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
In my index.template.php

Etc etc - Why all those mistakes?
Title: Re: Ad Management mod
Post by: franklinrony on February 02, 2007, 11:40:35 PM
i place the code manually but i dont know where put the code of index.templete. thanks for the help
Title: Re: Ad Management mod
Post by: Bigguy on February 03, 2007, 12:02:42 AM
Those aren't spelling mistakes. Each template or "theme" is coded differently. So, some template authors might not have the exact wording as the mod requires in order for the package to find the code to modify. All package modifications only modify the default template unless the mod author has specified differently.

If you are using a custom theme you will have to manually edit the theme you use in order to get the package to work. The mod should install with no problem on the default theme, however  If it doesn't this is due to package incompatablilty with another mod.

Quote from: SpelingMistakes on February 02, 2007, 09:30:59 PM
4. Execute Modification
Quote./Themes/default/index.template.php
Test failed

If i saw good, i dont need to worry - I am using some other theme - helios - But i have problem - If i understud you i neeed to modify 4 template files but....

1. When i try to find
Quote<body>';
i cant find it - Why?
I have this 
Quote<body><div><table cellpadding="0"
bla bla bla .......

2. When i try to search for
Quote</td>
I can find lots of them – what specific i search for?


3. I can find
Quotetemplate_menu();
and thats ok

4. I cant find
Quote// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
In my index.template.php

Etc etc - Why all those mistakes?

Title: Re: Ad Management mod
Post by: raaja on February 03, 2007, 04:35:27 AM
Its really working fine for me (admin)... i can see the ads whn i log in as admin... but my members and guess cant view the ads... only admin can view the ads??

i wan the ads for public... how to make it???  
Title: Re: Ad Management mod
Post by: Bigguy on February 03, 2007, 12:14:55 PM
A few posts up I mention something about permissions....
Title: Re: Ad Management mod
Post by: SpelingMistakes on February 04, 2007, 05:21:58 PM
That didnt help  - I dont have any other mods installed - except this - - I install it and uninstall it - I cant make it to work - simply becouse i cant finde where to put it
Title: Re: Ad Management mod
Post by: perplexed on February 05, 2007, 05:33:03 PM
hi I gotta problem :(

I was uninstalling my mods so I could upgrade to 1.1.1 from 1.1 rc3 and I uninstalled this mod and now I just have this:

Fatal error: Call to undefined function show_topofpageAds() in /home/mysite/public_html/artsforum/Sources/Load.php(1607) : eval()'d code on line 218

and can't access the forum.

Can you help so I can get back into the forum and continue uninstalling so I can upgrade?

~thanks
Title: Re: Ad Management mod
Post by: Bigguy on February 05, 2007, 06:05:56 PM
Make sure LoadAds.php is in the Sources Directory. If that doesn't help then the edits will have to go back in either the index.template.php or the index.php
Title: Re: Ad Management mod
Post by: perplexed on February 05, 2007, 06:10:01 PM
hi big guy and thanks for your reply

isn't it looking for something in this file:

Fatal error: Call to undefined function show_topofpageAds() in /home/mysite/public_html/artsforum/Sources/Load.php(1607) : eval()'d code on line 218

I thought that's what it meant when it lists that file and line number?

I tried adding loadads.php but it made no differenc.  I can try editing the other templates but I just wanted to make sure that it wasnt something in the load.php that it needs?
Title: Re: Ad Management mod
Post by: Bigguy on February 05, 2007, 06:17:32 PM
No the ad mod doesn't touch loads.php If you put the LoadAds.php back and it still did nothing try putting the edits for the index.template.php back. That should clear it up.
Title: Re: Ad Management mod
Post by: perplexed on February 06, 2007, 09:32:51 AM
I got it now thanks.  
Title: Re: Ad Management mod
Post by: dontbe on February 08, 2007, 04:31:40 PM
Quote from: dontbe on January 27, 2007, 09:06:13 PM
arrg
Im not getting a authorization email from smfads.com forum... so I cant post there! (user findit)

Big guy, can you help? who is in charge at smfmods.com??
Title: Re: Ad Management mod
Post by: Poe on February 08, 2007, 05:31:00 PM
Has anyone gotten this mod working with the SMFone Blue theme?
Title: Re: Ad Management mod
Post by: Bigguy on February 09, 2007, 12:04:46 AM
Jerm is in charge at smfads.com

Quote from: dontbe on February 08, 2007, 04:31:40 PM
Quote from: dontbe on January 27, 2007, 09:06:13 PM
arrg
Im not getting a authorization email from smfads.com forum... so I cant post there! (user findit)

Big guy, can you help? who is in charge at smfmods.com??
Title: Re: Ad Management mod
Post by: logikstudios on February 10, 2007, 09:27:26 AM
Quote from: jerm on February 01, 2006, 06:14:10 PM
Quote from: RBH on February 01, 2006, 12:57:13 AM
any chance this could be made to display certain banners in certain boards or does it do that?
i hadn't thought of doing that. i have a few other things i want to add to this mod. if possible, i will look into that.
Quote from: d3v on February 01, 2006, 04:01:32 AM
adsense?
i assuming your asking if this works for adsense, and yes it does.

Quote from: BadCluster on February 01, 2006, 06:45:00 AM
i upload the mod as a zip file and try to install it,
before that i made everything '777' rights in the package folder and when i try to install it i get this error

"An Error Has Occurred!   
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!


please verify that these files are also set to 777

Sources/ModSettings.php
Themes/default/index.template.php
Themes/default/BoardIndex.template.php
Themes/default/MessageIndex.template.php
Themes/default/Display.template.php
Themes/default/languages/Modifications.english.php

Hi i have just changed all permissions and it still doesn't work. I still get the:

An Error Has Occurred!
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

What am i doing wrong. This also comes up when i try to install any other mods.

Thanks
Title: Re: Ad Management mod
Post by: Bigguy on February 10, 2007, 04:26:44 PM
In the Packages area of your admin panel go to options, scroll down and click on:

All files are writable.

Then click change file permissions. Try to install the mod, if you still cant go to cpanel to your "Packages" folder and make sure there is a "temp" directory inside, if not create one and chmodd it to 777.
Title: Re: Ad Management mod
Post by: Antac on February 12, 2007, 04:09:58 AM
I have problem...my SMF version is "SMF 1.1.1"
I have installed trought "Packages" Ad Managment 2.3, and installation was succesful!
In "Configuration" I see "Ad management" but when I put code "google ad sense", my ad isn`t publish! Can u help me?

List files in "ad management"
   1.  install.xml (12375 bytes)
   2. LoadAds.php (8939 bytes)
   3. package-info.xml (1075 bytes)
   4. readme.txt (1759 bytes)
   5. Ads.php (11778 bytes)
   6. Ads.english.php (11679 bytes)
   7. Ads.template.php (25316 bytes)
   8. install.php (2370 bytes)

List files in "Classic YaBB SE Theme (1.1)"
images          
languages       
BoardIndex.template.php
Display.template.php
index.php    
index.template.php    
license.txt    
MessageIndex.template.php    
Post.template.php    
Recent.template.php    
Search.template.php    
style.css    
theme_info.xml
Title: Re: Ad Management mod
Post by: Bigguy on February 12, 2007, 12:49:46 PM
If you are using a theme other than the default then you will have to edit the template files manually. The 4 files from your theme that need to be edited are:

MessageIndex.template.php
index.template.php
BoardIndex.template.php
Display.template.php

I have posted the edits over here at:

http://www.smfads.com/forums/index.php?topic=475.0
Title: Re: Ad Management mod
Post by: Antac on February 12, 2007, 03:14:25 PM
Quote from: Bigguy on February 12, 2007, 12:49:46 PM
If you are using a theme other than the default then you will have to edit the template files manually.

I dont understand what do u mean! I use classic Jabb theme!

BTW...why "we" must do so much modifications, why isn`t posible just simple install and use ads?!?
Title: Re: Ad Management mod
Post by: Bigguy on February 12, 2007, 06:48:44 PM
Modification packages only install to the default theme. Therefore if you are using any theme other than default; the template files must be modified in the theme you are using in order for it to work. My last post shows the edits and what files need to be edited.
Title: Re: Ad Management mod
Post by: Antac on February 13, 2007, 03:40:52 AM
Quote from: Bigguy on February 12, 2007, 06:48:44 PM
Modification packages only install to the default theme. Therefore if you are using any theme other than default; the template files must be modified in the theme you are using in order for it to work. My last post shows the edits and what files need to be edited.

aha...now I understand... but I use only default theme and I installed "ad management" in my default theme (classic yaBB) why it doesn`t work?
Title: Re: Ad Management mod
Post by: perplexed on February 13, 2007, 06:41:18 AM
The theme referred to as 'default theme' is the theme called 'SMF Default Theme - Core' not the theme that you might have set as 'default' on your forum.  Any theme other than 'SMF Default Theme - Core' needs to have the edits done manually as per Bigguy's post.
Title: Re: Ad Management mod
Post by: spiros on February 13, 2007, 06:45:25 AM
Great work!

Small typo in mod: Managment should be Management
Title: Re: Ad Management mod
Post by: Farmacija on February 14, 2007, 05:04:13 AM
does it works with smf 1.1.2?
Title: Re: Ad Management mod
Post by: SticKer on February 14, 2007, 07:00:35 AM
has anyone tried this mod with 1.1.2?
Title: Re: Ad Management mod
Post by: Bigguy on February 14, 2007, 11:45:24 AM
Yes it should work fine. DO NOT install if there are errors.
Title: Re: Ad Management mod
Post by: icman on February 14, 2007, 05:35:36 PM
it is vary good mod  
Title: Re: Ad Management mod
Post by: babjusi on February 14, 2007, 05:59:47 PM
It''s a great mod, thanks for creating it and sharing with the rest of us
Title: Re: Ad Management mod
Post by: karlbenson on February 14, 2007, 06:05:09 PM
yes it works fine with 1.1.2
Title: Re: Ad Management mod
Post by: SticKer on February 15, 2007, 06:46:50 AM
thnks will update it 1.1.2
Title: Re: Ad Management mod
Post by: goitalone on February 15, 2007, 07:34:38 AM
How can I change the background color of this mod for how it is suppose to make it look like a regular post?

The background it gives is black, and that just doesn't look right for the other colors I have on my forum now.

So, how can I change the color?  
Title: Re: Ad Management mod
Post by: Bigguy on February 15, 2007, 01:12:21 PM
Can you send me a url or an example of how it is changing things black please.
Title: Re: Ad Management mod
Post by: symon on February 16, 2007, 04:38:05 PM
Hey...

Promising mod but I can wade through 74 pages and not find real examples :D

Can I ask a few Qs?

1: Does anyone have an example of this being used for banner ads and graphic ads? Not google ads!

2: Also...does this work with babylon (I don't mind manually doing it) ;)

3: Also (importantly) can I organise with the code where the banner and possible side ads go as I don't want them inside a div I have.

Much appreciate your time and the effort it has taken to make this :)

Kind regards

Sy
Title: Re: Ad Management mod
Post by: goitalone on February 16, 2007, 04:44:02 PM
Need help fast:

I looked all around and can't figure out what is causing this error

Template Parse Error!
There was a problem loading the /Themes/Moonraker/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------


Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/Moonraker/index.template.php on line 177

168:       // ]]></script>
169: </head>
170:    
171:    
172:    //Display ads on the top of the page
173:    if (function_exists("show_topofpageAds"))
174:    {
175:       $ads = show_topofpageAds();   
176:       if(!empty($ads))
177:          if($ads['type']==0)178:             echo $ads['content'];
179:          else
180:             eval($ads['content']);   
181:       unset($ads);

Title: Re: Ad Management mod
Post by: goitalone on February 16, 2007, 04:46:02 PM
I noticed that the mod was not working right cause it wasn't placing ads except for on the posts and a couple other areas, so I went in manually, and I think everything is ok cept for this parse error on index.template.php of my moonraker theme.

But I won't know for sure until I get it resolved.

Help? Thanks!

Title: Re: Ad Management mod
Post by: Bigguy on February 16, 2007, 05:03:10 PM
I use the ad mod on my site for almost everything. Google ads and banners and text. It will work with babylon if you manually edit the template files.  I'm not sure what you mean by organize as the ad mod places the code and those are the only choices you have to place the ads or banners uless you insert them manually into the code itself.

Quote from: symon on February 16, 2007, 04:38:05 PM
Hey...

Promising mod but I can wade through 74 pages and not find real examples :D

Can I ask a few Qs?

1: Does anyone have an example of this being used for banner ads and graphic ads? Not google ads!

2: Also...does this work with babylon (I don't mind manually doing it) ;)

3: Also (importantly) can I organise with the code where the banner and possible side ads go as I don't want them inside a div I have.

Much appreciate your time and the effort it has taken to make this :)

Kind regards

Sy
Title: Re: Ad Management mod
Post by: goitalone on February 16, 2007, 05:06:59 PM
Bigguy, take a look at my messed up source code please...I need help..I think I almost have it. But I...well look at my page LOL...help!

http://infotipper.com/forum
Title: Re: Ad Management mod
Post by: symon on February 16, 2007, 05:15:47 PM
Quote from: Bigguy on February 16, 2007, 05:03:10 PM
I use the ad mod on my site for almost everything. Google ads and banners and text. It will work with babylon if you manually edit the template files.  I'm not sure what you mean by organize as the ad mod places the code and those are the only choices you have to place the ads or banners uless you insert them manually into the code itself.

If you see my forum you will see I don't have it stretching the size of the window. It is a fixed width inside a div. I'd like ads to run down the side. Not quite skyscraper...more stacked :)

And I only see google ads on your site...if I have the right one?

Anywho...thanks for your quick reply.

I think goitalone desperately needs your help so I'll not keep you!! hehe

ps. Is it a secret how you've got different icons for each forum on your helper site? :)
Title: Re: Ad Management mod
Post by: goitalone on February 16, 2007, 05:26:19 PM
Sorry, had to change it back to the index.template.php that worked.

Here's it is here though:

<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.
The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="144000, revelation, 3abn, adventist forums, adventist, amazing facts, amazing prophecies, catholic forum, sda forum, christian, chat rooms, christian forums, christian media, sda discussion, great multitude, hope channel, it is written, jesus, last days, prophecies 2007, salvation, sda, seventh day, seventh seal, sixth seal, sunday law, true church, last days, Ellen White, LLBN, worship, network, sda friends, christian friends" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>

//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['
type']==0)
echo $ads['
content'];
else
eval($ads['
content']);
unset($ads);
}
<body>'
;

echo '<table width="100%" cellpadding="0" cellspacing="0" border="0">
 <tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>'
;
echo '<td height="133"><div class="titleleft">';

// Show board name or custom logo
if (empty($settings['header_logo_url']))
echo '<a title="Moonraker" alt="Moonraker" href="'$scripturl'"><h1>'$context['forum_name'], '</h1></a> <br /><span class="smalltext" style="color: #a0a0a0"><br />' ,$context['current_time'],'</span></div>';
else
echo '<img src="'$settings['header_logo_url'], '" style="margin: 4px;" alt="'$context['forum_name'], '" />';
echo '
</div></td>'
;
echo '<td height="133"><div class="titleright">
<table width="100%" cellpadding="0" cellspacing="2" border="0">
<tr>
<td class="titletext" valign="top">'
;
// display avatar
if (!empty($context['user']['avatar']))
echo '
'
$context['user']['avatar']['image'];
echo ' </td>';
 echo'<td class="titletext" valign="top">';
// display user name
if($context['user']['is_logged'])
echo '<span style="font-size: 130%;"> '$txt['hello_member_ndt'], ' <b>'$context['user']['name'] , '</b></span><br />';
// If the user is logged in, display stuff like their name, new messages, etc.
if ((isset($_SESSION['unread_sound']) && $_SESSION['unread_sound'] < $context['user']['unread_messages']) || (!isset($_SESSION['unread_sound']) && $context['user']['unread_messages'] >= 1))
{
echo '
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="   http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="0" height="0" id="gotmail" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="gotmail.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="gotmail.swf" quality="high" bgcolor="#ffffff" width="1" height="1" name="gotmail" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>'
;

// Save a session so it wont loop
$_SESSION['unread_sound'] = $context['user']['unread_messages'];
}
if ($context['user']['is_logged'])
{
echo '<span class="titlelink"><a href="'$scripturl'?action=unread">'$txt['unread_since_visit'], '</a> <br />
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a></span><br />';
}
// Otherwise they're a guest - send them a lovely greeting...
if($context['user']['is_guest'])
echo $txt['welcome_guest'];
// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo ''$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
  echo '';
  // Show Flashy icon if user has new messages and it not a guest
  if (!$context['user']['is_guest'] && $context['user']['unread_messages'])
  echo ' <a href="' $scripturl '?action=pm"><img src="' $settings['images_url'] . '/newim.gif" border="0" /></a> ' $context['menu_separator'] . '';

}
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
if($context['user']['is_guest'])
{
echo '<script language="JavaScript" type="text/javascript" src="'$settings['default_theme_url'], '/sha1.js"></script>
<form action="'
$scripturl'?action=login2" method="post" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input type="submit" value="'
$txt[34], '" /><br />
<span class="middletext">'
$txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}
echo 
'
;
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo '</td>

<center><a href="http://www.lazysheepmedia.co.uk/affiliates/jrox.php?id=2072"><img src="http://infotipper.com/forum/Themes/Moonraker/images/lazy.jpg"/><center/>
'
;
babelfishTranslate();
echo '  
</tr>
</table>
</div></td>
</tr>
</table>'
;
// Show the menu here, according to the menu sub template.
echo '
<div align="center"><p>'
;
//Below the menu ads
if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
$ads show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

//Tower left Ads
$ads show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);
//Tower Right Ads
$ads show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}
template_menu();
echo '
</div></p>'
;
echo '
<div align="left" style="width: 450px; margin-left: 10px;">'
;
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '<span class="smalltext"><b>'$txt[102], '</b>: '$context['random_news_line'], '</span>';
echo '
</div><br />'
;
// The main content should go here.
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" height="11"><tr><td><div id="bodyarea">'
;

}
function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

echo '
</div>'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td></tr></table>'

unset($ads);
//Close table for towerleft ads
$ads show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'right' 'left''">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="'
$settings['images_url'], '/powered-mysql.gif" alt="'$txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="'
$settings['images_url'], '/powered-php.gif" alt="'$txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
'
theme_copyright(), '<p><span class="smalltext"><b>Moonraker</b> design by <a href="http://www.cripcan.com">Crip</a><br /> Some images provided by sloopz.</span></p>
</td>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'left' 'right''">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="'
$settings['images_url'], '/valid-xhtml10.gif" alt="'$txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="'
$settings['images_url'], '/valid-css.gif" alt="'$txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>'
;
// Show the load time?
if ($context['show_load_time'])



//Show the babelfish translate
babelfishTranslate();


echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}
echo '
</div>'
;
// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</td></tr>
</table>
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;»&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''managegames''arcadesettings''arcadecategory''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''arcade''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' 
$first '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'home' 'active_back' 'back' '">
<a href="'
$scripturl'">' $txt[103] , '</a>
</td>' 
$current_action == 'home' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'help' 'active_back' 'back' '">
<a href="'
$scripturl'?action=help">' $txt[119] , '</a>
</td>' 
$current_action == 'help' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

 echo ($current_action == 'arcade' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'arcade' 'active_back' 'back' '">
<a href="'
$scripturl'?action=arcade">' $txt['arcade'] , '</a>
</td>' 
$current_action == 'arcade' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'search' 'active_back' 'back' '">
<a href="'
$scripturl'?action=search">' $txt[182] , '</a>
</td>' 
$current_action == 'search' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'admin' 'active_back' 'back' '">
<a href="'
$scripturl'?action=admin">' $txt[2] , '</a>
</td>' 
$current_action == 'admin' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'profile' 'active_back' 'back' '">
<a href="'
$scripturl'?action=profile">' $txt[79] , '</a>
</td>' 
$current_action == 'profile' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'pm' 'active_back' 'back' '">
<a href="'
$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a>
</td>' 
$current_action == 'pm' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'calendar' 'active_back' 'back' '">
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
</td>' 
$current_action == 'calendar' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'mlist' 'active_back' 'back' '">
<a href="'
$scripturl'?action=mlist">' $txt[331] , '</a>
</td>' 
$current_action == 'mlist' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'login' 'active_back' 'back' '">
<a href="'
$scripturl'?action=login">' $txt[34] , '</a>
</td>' 
$current_action == 'login' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'register' 'active_back' 'back' '">
<a href="'
$scripturl'?action=register">' $txt[97] , '</a>
</td>' 
$current_action == 'register' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'logout' 'active_back' 'back' '">
<a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a>
</td>' 
$current_action == 'logout' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The end of tab section.
echo '
<td class="maintab_' 
$last '">&nbsp;</td>
</tr>
</table>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>
Title: Re: Ad Management mod
Post by: Bigguy on February 16, 2007, 05:31:25 PM
@ symon: No no secret. It is called the cbi mod (Custom Board Icons) and can be found on the mod site.

@ goitalone: You have this solved then. ???
Title: Re: Ad Management mod
Post by: goitalone on February 16, 2007, 05:37:43 PM
Well, no...the ad mod doesnt work right...I just tossed my old file back in until I can find out that parse error on the modded index.template.php file I just posted up there...I had to put my old file back in so people can use the forum...all the other files I manually edited and I hope are ok, but it is just when I put that file in I get a parse error
Title: Re: Ad Management mod
Post by: Bigguy on February 16, 2007, 05:43:07 PM
Try this. Just rename it to index.template.php and see if it works. BACKUP FIRST PLEASE
Title: Re: Ad Management mod
Post by: goitalone on February 16, 2007, 05:47:16 PM
...hmmm the site works now but everything is all jumbled and out of place take a look lol.

http://infotipper.com/forum
Title: Re: Ad Management mod
Post by: Bigguy on February 16, 2007, 05:52:09 PM
Do you mean all the sda and friends banners. ??? Looks like you have all the options checked to show that ad everywhere.
Title: Re: Ad Management mod
Post by: goitalone on February 16, 2007, 05:54:22 PM
Yeah, that was some of the problem, but something still isn't quite right I dont think...something is making the screen gltichy with underlined hyperlink looking gltiches
Title: Re: Ad Management mod
Post by: goitalone on February 16, 2007, 05:56:32 PM
Ok, I turned them all off..no glitches that I can tell anymore, but I need to still test it and find out what was doing it exactly.

What did you change in my file btw?
Title: Re: Ad Management mod
Post by: Bigguy on February 16, 2007, 05:57:21 PM
I'm sorry you will have to explain a bit better. It all looks good to me. I like your background, very nice. :)

Glad its working. ;)
Title: Re: Ad Management mod
Post by: goitalone on February 16, 2007, 06:00:30 PM
Quote from: Bigguy on February 16, 2007, 05:57:21 PM
I'm sorry you will have to explain a bit better. It all looks good to me. I like your background, very nice. :)



Glad its working. ;)

Thanks, I thought it was a great pic.

Um..the glitches ..well, when I had the ads displaying (not sure which combonation yet) it would be interfering with the whole page and ALL of the hyperlinks of the page with flickering underlined words.
Title: Re: Ad Management mod
Post by: Bigguy on February 16, 2007, 06:02:59 PM
I have seen this flicker before but I am not sure what causes it. I don't think it has anything to do with the ad mod.
Title: Re: Ad Management mod
Post by: goitalone on February 16, 2007, 06:04:40 PM
I see...well thanks for the help...I am going to test it some more and see if I can find out whats going on exactly I guess.
Title: Re: Ad Management mod
Post by: goitalone on February 16, 2007, 06:07:15 PM
Hmm...could be because of the way I am placing the code?

I have seen it before too but only when I was using this mod.

This is the code I am placing into it:

<a href="http://infotipper.com/chat.html"><img src="http://infotipper.com/images/sda_chat009.gif"/>
Title: Re: Ad Management mod
Post by: Bigguy on February 16, 2007, 06:14:31 PM
Nothing wrong with that that I know of. I will be back later and maybe we can figure it out. I have to run.
Title: Re: Ad Management mod
Post by: goitalone on February 16, 2007, 07:42:24 PM
OK, well, when ya get back, I just noticed something....there is some invisible text on the screen to the left inbetween the menu and the news fader. And I am not sure why yet. It is the he link to my chat room that is placed in the ad I am trying to put up and it is clickable and takes me to the chat.
Title: Re: Ad Management mod
Post by: goitalone on February 16, 2007, 07:42:42 PM
This is disgusting...I gotta fix it lol
Title: Re: Ad Management mod
Post by: Meancode on February 16, 2007, 07:48:49 PM
Why don't the banner ads show up on the forum when people are not logged in? This makes no sense to me at all. Is there a setting that I am missing?  Thanks.
Title: Re: Ad Management mod
Post by: goitalone on February 16, 2007, 08:41:13 PM
You have to go into your permissions and set it there as well.

Title: Re: Ad Management mod
Post by: Meancode on February 16, 2007, 09:00:41 PM
Quote from: goitalone on February 16, 2007, 08:41:13 PM
You have to go into your permissions and set it there as well.



I never noticed that. Thanks! All fixed.
Title: Re: Ad Management mod
Post by: khurrum on February 17, 2007, 12:12:35 AM
Hello

I have more than 100 boards in my forum and I wish to exclude ads from 3 to 4 boards but for that I have to write 1,2,3,4,5,... till 100 except the boards I dont want to show ads but unfortunately there is not enough space in field and thus it does not accept complete range of boards and in the end few of the board numbers are automatically deleted. Is there any way to increase the field size or some other way to exclude ads from certain boards

regards
khurrum
Title: Re: Ad Management mod
Post by: Bigguy on February 17, 2007, 01:51:51 AM
@ goitalone: Can you explain "invisible text" or maybe provide a screenshot.  :P  ;D

@ khurrum: I will have to leave this for Jerm, maybe he has a quick fix. ;)
Title: Re: Ad Management mod
Post by: goitalone on February 17, 2007, 02:01:20 AM
Well, I don't know if it's text really, but I do know that when I right click on my screen from about the top of the boards news fader and drag over the top left I see a long white block that is about the size of what text would be or maybe a tad bit larger and when I click it, it is a link to my new chat I added today, but it's been there for awhile though I think, so I am not sure what it is. When I have an ad in ad mod (in this case my chat logo)that whole upper area becomes an invisibe link to my chat page, or whatever else is linked to my image in the ads. When I have NO ads, it is not clickable Try it yourself: http://infotipper.com/forum.

I didn't feel like posting a pic lol
Title: Re: Ad Management mod
Post by: goitalone on February 17, 2007, 02:03:19 AM
Oh, and also, like I said earlier, when an ad is enabled, it makes all the llinks to whatever they link to messed up and flickering.
Title: Re: Ad Management mod
Post by: Bigguy on February 17, 2007, 02:06:20 AM
Are you using IE because this does not happen in FF. Maybe it is browser specific.
Title: Re: Ad Management mod
Post by: goitalone on February 17, 2007, 02:20:08 AM
Ahh...poopinzwagen :( yer right, doesn't do it in firefox ..wth?

Heres are two pics: http://playforwins.com
Title: Re: Ad Management mod
Post by: babjusi on February 17, 2007, 03:28:37 AM
Can anyone please tell me where can I view reports on the ads to see how often they are getting displayed? Thank you
Title: Re: Ad Management mod
Post by: TEOC2 on February 17, 2007, 04:17:35 AM
Thanks, this mod works great, i have tested it with my hosts affiliate code, right now im using it to display an "Under Construction" message.
http://www.southlondonautism.co.uk/ (http://www.southlondonautism.co.uk/)
Title: Re: Ad Management mod
Post by: goitalone on February 17, 2007, 02:29:52 PM
I found the problem out after thinking long and hard for awhile.

I forgot to close my tag.

Was using:

<a href="http://infotipper.com/chat.html"><img src="http://infotipper.com/images/sda_chat009.gif"/>

Instead of:

<a href="http://infotipper.com/chat.html"><img src="http://infotipper.com/images/sda_chat009.gif"></a>
Title: Re: Ad Management mod
Post by: goitalone on February 17, 2007, 02:34:05 PM
LOL that was silly of me :P
Title: Re: Ad Management mod
Post by: Farmacija on February 17, 2007, 07:19:47 PM
i finally success to install this mod! i override existing display.template.php file [which probably have some parts of code which easnt be coorect because i try to install it manually] with the file from 1.1.2 update package and now everything is ok. or it seems that is ok :)
Title: Re: Ad Management mod
Post by: gemsdb on February 18, 2007, 01:53:12 AM
I am a new bee

I am running theme bluBlur Skin, hbSkins
I have installed Ad MOD and works fine on default theme How do i get it to run on BluBlur ???

If you can give me the code and the place to put it I can place it on the index.template.php

Please help.

Ahmed 
Title: Re: Ad Management mod
Post by: goitalone on February 18, 2007, 12:27:25 PM
Open the ad mods install.xml file with a good text editor (I use Editpad Pro) ..the install.xml file shows all the files it changes and to what it changes them to. It's basically going to be mainly your index/template.php file in your bluBlur's theme folder that you will need to manually change, but if that doesn't work, go back and make sure to maunually check and change all files that the install.xml file shows in it.
Title: Re: Ad Management mod
Post by: symon on February 18, 2007, 12:30:59 PM
I know I asked this before but the sites I look at only have text ads. Can I make graphics and have them as ads? Can I get stats for those ads? Where exactly are they currently placed? Can I have them stacked on each side of the forum?

Ta in advance :)

And no permissions question either!! ;) hehe
Title: Re: Ad Management mod
Post by: goitalone on February 18, 2007, 01:21:49 PM
 Use this format..this is what the logo I am using for my chat looks like:

<a href="http://infotipper.com/chat.html"><img src="http://infotipper.com/images/sda_chat009.gif"></a>

Just change the URL's in bold to wherever your the site is you want to link to AND the one to your uploaded banner or logo etc.

And I believe ad mod had a stats counter thing if I am not mistaken. Not sure where it is though as I have never used it as of yet.
Title: Re: Ad Management mod
Post by: Farmacija on February 18, 2007, 01:26:06 PM
hm, problems with displaying ads desribe in this topic http://www.smfads.com/forums/index.php?topic=509.msg2799#msg2799
Title: Re: Ad Management mod
Post by: goitalone on February 18, 2007, 01:32:04 PM
I dunno, never had that happen...is WAS working and now is NOT??

That's strange...are you on the same pc or a different one? Are you logged in when this happens as an administrator or a guest?

Title: Re: Ad Management mod
Post by: goitalone on February 18, 2007, 01:34:37 PM
Post a link to your forum?
Title: Re: Ad Management mod
Post by: Farmacija on February 18, 2007, 01:41:37 PM
WWW.farmaceuti.com
yes, same pc, same browser ..  
Title: Re: Ad Management mod
Post by: goitalone on February 18, 2007, 01:43:27 PM
Ok, I see several ads...which one is not working? Which area rather?
Title: Re: Ad Management mod
Post by: goitalone on February 18, 2007, 02:02:23 PM
Eh, well, looks like you are using CMS so that could be a reason why as it may be conflicting somehow maybe. I wouldn't know how to help you there at all as I am not familiar with CMS connected to SMF.
Title: Re: Ad Management mod
Post by: perplexed on February 18, 2007, 03:49:53 PM
Quote from: symon on February 18, 2007, 12:30:59 PM
I know I asked this before but the sites I look at only have text ads. Can I make graphics and have them as ads? Can I get stats for those ads? Where exactly are they currently placed? Can I have them stacked on each side of the forum?

Ta in advance :)

And no permissions question either!! ;) hehe

there is a report section in the admin panel showing hits for each ad  :)

Yes you can make text and banner ads, or use ads from other places like google etc.  You just need to enter the html required.

You can place the ads in many places on the forum with this latest version - look here for more details on that http://custom.simplemachines.org/mods/index.php?mod=255
Title: Re: Ad Management mod
Post by: symon on February 18, 2007, 05:36:44 PM
Cool :)

2 more things:

1:Should I delete the install file as soon as used? (I'm thinking yes as with most installs but it's worth double checking)
2: I will be manually installing the majority of the code as I use a Babylon type theme. Can I presume the areas for ad placement are in the index.template mainly and therefore I can move where they go? I have a fixed width forum and I'd like the ads to be outside of the main DIV I have created. (obviously not the ads that stay within posts etc). Basically the skyscraper ads and the header ads. Is this possible?

It's looking good btw :)

Title: Re: Ad Management mod
Post by: goitalone on February 18, 2007, 05:41:59 PM
1: It's up to you to do whatever you want with yer install files...I keep mine so I will have them there later for reinstall or whtever else and not have to upload them again.

2: Not exactly sure what yer asking here, but the ad mod has a skyscraper ad placement for either side of your forum if that is what yer asking.

Mine however, didn't work, so I had to go in and maually change the files to make sure ALL the ad mods ad placements worked..only a hand full of ads worked correctly and I knew something was wrong. For some reason, the install.xml file for the mod had a lot of places where it was to install before, but the codes were after where it was suppose to be installed and vice versa. So I had to reverse the order of those codes.

Not sure why it was reversed but it was.
Title: Re: Ad Management mod
Post by: Bigguy on February 18, 2007, 11:41:24 PM
1.) You don't have to delete any install files except the one used to install the forum, that's it.

2.) There are 4 template files to edit with the ad mod. If you install teh mod first and then edit the 4 template files in your custom theme the ad mod should work. The 4 template files to look for and edit if you have them in your custom theme folder are:

MessageIndex.template.php
Display.template.php
BoardIndex.template.php
Index.template.php
Title: Re: Ad Management mod
Post by: goitalone on February 18, 2007, 11:45:42 PM
 Kinda Off topic..Hey Bigguy, I got a new problem lol...I went to my admin panel and was going to delete an ad I added and and found out I can't save changes with the save changes button...something is broken.

Any ideas?
Title: Re: Ad Management mod
Post by: Bigguy on February 18, 2007, 11:46:44 PM
Are all the files chmodded to 777. ??? It's sounds like that's the problem.
Title: Re: Ad Management mod
Post by: goitalone on February 18, 2007, 11:48:09 PM
Hmm...I dunno...let me check
Title: Re: Ad Management mod
Post by: goitalone on February 19, 2007, 12:58:50 PM
Hmm...I posted a reply to you telling you that it worked..I guess it didn't register somehow though so I am replying again.

I had to go into change file permissions with SMF options first before it let me change it.

Again, thanks...saved me a needless search and now will know what to do next time.
Title: Re: Ad Management mod
Post by: babjusi on February 19, 2007, 02:10:17 PM
Can anyone please tell me where can I view reports on the ads to see how often they are getting displayed? Or is there a way to see which IP clicks on them? Thank you  
Title: Re: Ad Management mod
Post by: goitalone on February 19, 2007, 03:48:20 PM
This was posted on the previous page
Title: Re: Ad Management mod
Post by: goitalone on February 19, 2007, 03:49:06 PM
Quote from: perplexed on February 18, 2007, 03:49:53 PM
Quote from: symon on February 18, 2007, 12:30:59 PM
I know I asked this before but the sites I look at only have text ads. Can I make graphics and have them as ads? Can I get stats for those ads? Where exactly are they currently placed? Can I have them stacked on each side of the forum?

Ta in advance :)

And no permissions question either!! ;) hehe

there is a report section in the admin panel showing hits for each ad  :)

Yes you can make text and banner ads, or use ads from other places like google etc.  You just need to enter the html required.

You can place the ads in many places on the forum with this latest version - look here for more details on that http://custom.simplemachines.org/mods/index.php?mod=255
Title: Re: Ad Management mod
Post by: crud3w4re on February 20, 2007, 07:54:16 AM
How do my ads look?
Title: Re: Ad Management mod
Post by: goitalone on February 20, 2007, 08:15:25 AM
I clicked on it...;) looks alright
Title: Re: Ad Management mod
Post by: Farmacija on February 20, 2007, 10:54:42 AM
does hits meaning that banner has been shown or how many clikcs does user make?
Title: Re: Ad Management mod
Post by: crud3w4re on February 20, 2007, 11:19:58 AM
hits = hits to your website. views = how many times your ads were viewed, some ads pay by impression ;) but usually not much. Then there's clicks, that's the big money. As soon as my site gets maybe PR3, then I can replace some adsense with paid ads.
Title: Re: Ad Management mod
Post by: Photoshocker on February 20, 2007, 09:36:47 PM
Hi, i have managed to put an add in the bottom of the page but its in the left side , how can i put it in the middle?

Thanks.
Title: Re: Ad Management mod
Post by: goitalone on February 20, 2007, 09:48:17 PM
<center>AD CODE</center>
Title: Re: Ad Management mod
Post by: Photoshocker on February 20, 2007, 09:55:02 PM
[EDIT] I FOUND IT.. THANKS!!  :D
Title: Re: Ad Management mod
Post by: symon on February 21, 2007, 03:17:47 AM
tags if it uses forum code or <center></center> if it's html :)

That's what I'm guessing as I haven't used this mod yet ;)
Title: Re: Ad Management mod
Post by: symon on February 21, 2007, 03:18:19 AM
Oops...didn't see the replys  :-[

:)
Title: Re: Ad Management mod
Post by: djpubba on February 21, 2007, 07:12:05 PM
I'd like to try this mod. Will it support 1.1.2 soon? I tried to install it but it says it's not compatible with my version (which is 1.1.2).
Title: Re: Ad Management mod
Post by: karlbenson on February 22, 2007, 01:31:26 PM
I've had it installed working perfectly on 1.1.2

You need to download it and add 1.1.2 in the package-info.xml to the versions it supports or use the emulate method.
Title: Re: Ad Management mod
Post by: djpubba on February 22, 2007, 02:25:57 PM
Got it to work by manually uploading it to my packages folder (took a couple tries).

Does this mod work with the Classic yabbse or Babylon themes? It doesn't seem to.
Title: Re: Ad Management mod
Post by: babjusi on February 23, 2007, 06:43:07 AM
Quote from: djpubba on February 22, 2007, 02:25:57 PM
Got it to work by manually uploading it to my packages folder (took a couple tries).

Does this mod work with the Classic yabbse or Babylon themes? It doesn't seem to.

This mod works only with the default theme. To be able to use it with a custom theme, you need to change a few things
Title: Re: Ad Management mod
Post by: goitalone on February 23, 2007, 01:03:49 PM
I notcied mine works now after I went in to edit it manually.

Only one place ads don't work though still, and thats is on the index board..it only shows one ad there inbetween the catagories, not two. I don't feel like going in again to try fix it though.
Title: Re: Ad Management mod
Post by: ferrazf on February 24, 2007, 01:58:40 AM
What do I have to modify in order to install this mod to a custom SMF Theme? I have checked the install.xml file and it is full of code which I am not sure how to interpret.

Let me see if I get this right:

Quote- <file name="$boarddir/index.php">
- <operation>
- <search position="before">
- <![CDATA[       'trackip' => array('Profile.php', 'trackIP'),
  ]]>
  </search>
- <add>
- <![CDATA[       'admod' => array('Ads.php', 'Ads'),
  ]]>
  </add>
  </operation>


The above is telling me to go to index.php in my current forum template's folder, search for the existing line "'trackip' => array('Profile.php', 'trackIP'", then add BEFORE it the line, "'admod' => array('Ads.php', 'Ads'"

So in my file I should end up with:
'admod' => array('Ads.php', 'Ads')
'trackip' => array('Profile.php', 'trackIP')


Is that correct?
Thanks!
Title: Re: Ad Management mod
Post by: Bigguy on February 24, 2007, 02:19:08 AM
Go to www.smfads.com and look in the theme support board. I have written all the edits out there.
Title: Re: Ad Management mod
Post by: ferrazf on February 24, 2007, 10:22:57 AM
Bigguy,

Thanks for the help
I have posted on your forums (http://www.smfads.com/forums/index.php?topic=598.msg2879#msg2879) about the install. I am having a few other problems.. I'd appreciate it if you could take a quick look..Thanks
Title: Re: Ad Management mod
Post by: Bigguy on February 24, 2007, 01:56:10 PM
I put a quick answer over at Jerm's site www.smfads.com
Title: Re: Ad Management mod
Post by: ictus on February 25, 2007, 05:15:41 AM
The ads don't always appear, sometimes you have to logon to see them, and some of my members can never see them.

I'm using a slightly moded default theme.

the problem occours at work (firewalled) and for some members not behind a firewall, any ideas?
Title: Re: Ad Management mod
Post by: Bigguy on February 25, 2007, 05:26:58 AM
Have you set all permissions for all the different usergroups. ;)
Title: Re: Ad Management mod
Post by: perplexed on February 25, 2007, 06:26:06 AM
Quote from: ictus on February 25, 2007, 05:15:41 AM
The ads don't always appear, sometimes you have to logon to see them, and some of my members can never see them.

I'm using a slightly moded default theme.

the problem occours at work (firewalled) and for some members not behind a firewall, any ideas?

would it be affected by anti pop-up / ad-blocking software at work etc
Title: Re: Ad Management mod
Post by: TEOC2 on February 25, 2007, 09:32:15 AM
Quote from: perplexed on February 25, 2007, 06:26:06 AM
Quote from: ictus on February 25, 2007, 05:15:41 AM
The ads don't always appear, sometimes you have to logon to see them, and some of my members can never see them.

I'm using a slightly moded default theme.

the problem occours at work (firewalled) and for some members not behind a firewall, any ideas?

would it be affected by anti pop-up / ad-blocking software at work etc

I had this problem, it was AdblockPro in Firefox causing it, i disbled it on my forum and the ads appeared.
Title: Re: Ad Management mod
Post by: ArmaanMagic on February 25, 2007, 09:40:01 AM
I m using Adsense codes.

It does appear for Administrators , but NOT for other members !

Can you please tell me what to do now?

My current theme is , Enterprise by Bloc
Title: Re: Ad Management mod
Post by: ArmaanMagic on February 25, 2007, 10:40:32 AM
And here i did this all...

QuotePermissions

Just like in the previous versions, you can have permissions on who is able to view the ads. By default everyone views the ads. To deny users from viewing ads, you go into Admin > Permissions > Modify (the group you want to change the permission for).

But after that unable to do / find this option "Enable Ads" where it is particularly tell me plz?

QuoteYou then look for the title "Enable ads" and either disallow or allow the ad code to display.

Title: Re: Ad Management mod
Post by: goitalone on February 25, 2007, 01:59:11 PM
Ad Managment near the top? Is this what you are asking about? (See Pic)

http://infotipper.com/banners.html
Title: Re: Ad Management mod
Post by: babjusi on February 25, 2007, 04:45:12 PM
Quote from: ArmaanMagic on February 25, 2007, 10:40:32 AM
And here i did this all...

QuotePermissions

Just like in the previous versions, you can have permissions on who is able to view the ads. By default everyone views the ads. To deny users from viewing ads, you go into Admin > Permissions > Modify (the group you want to change the permission for).

But after that unable to do / find this option "Enable Ads" where it is particularly tell me plz?

QuoteYou then look for the title "Enable ads" and either disallow or allow the ad code to display.



You can find that at Permissions at the admin''s panel in your forum. There you can set the permission for every memebergroup that you want to see the ads or not
Title: Re: Ad Management mod
Post by: ArmaanMagic on February 26, 2007, 11:19:39 AM
Quote from: goitalone on February 25, 2007, 01:59:11 PM
Ad Managment near the top? Is this what you are asking about? (See Pic)

http://infotipper.com/banners.html



Thanks, Itz clear now.

But unfortunately , dont know why , at admin panel > permission> I have not that Ad Management enable option !  Not in default theme also.
Title: Re: Ad Management mod
Post by: babjusi on February 26, 2007, 11:32:05 AM
Quote from: ArmaanMagic on February 26, 2007, 11:19:39 AM
Quote from: goitalone on February 25, 2007, 01:59:11 PM
Ad Managment near the top? Is this what you are asking about? (See Pic)

http://infotipper.com/banners.html



Thanks, Itz clear now.

But unfortunately , dont know why , at admin panel > permission> I have not that Ad Management enable option !  Not in default theme also.

It should be shown there if you have installed the mod properly. When you set the permissions globally for each membergroup you must have it on the right side, somewhere there, near the top. It says: ''enable ads''. There you can check the small box next to it if you want the ads to be shown to a certain memebergroup and if you don''t want the ads to be shown to that particular membergroup, leave the small box unchecked. Hope this helps
Title: Re: Ad Management mod
Post by: goitalone on February 26, 2007, 02:35:06 PM
Yeah, might want to check and see if it is installed correctly if you don't see an option for it.

Remember, you have to click MODIFY for EACH GROUP for the ENABLE ADS checkbox!
Title: Re: Ad Management mod
Post by: ictus on February 26, 2007, 04:29:34 PM
Permisions...!!!!!

such a newbie answer, thanks...
Title: Re: Ad Management mod
Post by: khurrum on February 28, 2007, 05:42:39 AM
Can someone guide me how to add google adsense or adbrite code at same place like in this forum (top right).

thanks for your support
Title: Re: Ad Management mod
Post by: lucia2 on March 01, 2007, 12:40:39 PM
I'm trying to install using the package manager. When I click "install" I get this:
==

Forbidden

You don't have permission to access /forum/index.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
==
Any tips?  Thanks.
Title: Re: Ad Management mod
Post by: Bigguy on March 01, 2007, 01:54:33 PM
This could have something to do with Mod Security (http://www.simplemachines.org/community/index.php?topic=34270.0) Try it and see if it makes a difference. I would also check permissions on that file to see if they are set to 777 or 755
Title: Re: Ad Management mod
Post by: lucia2 on March 01, 2007, 03:59:28 PM
I put an .htacess file with these contents in my /forum directory. (That's the top directory for my SMF software.)
<IfModule mod_security.c>
   # Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
   SecFilterEngine Off

   # The below probably isn't needed, but better safe than sorry.
   SecFilterScanPOST Off
</IfModule>

index.php in my /forum folder was set to 755. I changed it to 777 just in case that helped.

I'm still getting the same message. Is there an official " hard way" to do this? (Could the package manager be the problem?)

I haven't had any trouble installing anything else using the package manager.
Title: Re: Ad Management mod
Post by: Bigguy on March 01, 2007, 04:24:44 PM
Ok, this might help. Read this post and try the attached file:

Safe Mod Problems (http://www.simplemachines.org/community/index.php?topic=28393.0)
Title: Re: Ad Management mod
Post by: lucia2 on March 01, 2007, 05:00:02 PM
 :(

I feel incompetent...
I intalled the fix_ownership.php file in my forum directory. Pointed my browser, supplied the info and submitted.

It told me it successfully used a path.  I wrote the path down. (Anyway, I can see it again by just by reloading fix_ownership.php again.  )

There are no further directions, so I tried installing the module-- same error. So then I deleted, uploaded again and tried to install. Same error.   (This is Ad Managment    2.3 just in case the version is affecting things?)

Am I missing a step?
Title: Re: Ad Management mod
Post by: Sharr76 on March 02, 2007, 09:37:22 AM
Hi,

SMF 1.1.1
Amber Theme
TinyPortal v0.9.7

I am using the Amber theme with TP, this is my site: http://www.ndex.org/

I have the Ad Mod installed but its not running, I know the reason is because I am using a different theme.

I am not good at modifying files etc so I wondered if you could help me get this Ad mod working.

thanks
Title: Re: Ad Management mod
Post by: lucia2 on March 02, 2007, 01:17:47 PM
I noticed other modules I've successfully installed using the package manager have install.xml files that begin like this:
<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">

The ad management one just starts like this:
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">

Would anything horrible happen if I added the first two lines to the xml file?

Does this matter? (I've chmod things to 777, I added the .htacess file changes suggested by Big Guy, I ran the safe_mod, I'm getting all "successful tests", but I just can't get permission to change forum/index.php!
Title: Re: Ad Management mod
Post by: Bigguy on March 02, 2007, 06:53:01 PM
@ lucia2: No you are not missing a step. I was hoping that was the problem but I guess not. Maybe Mod security would help out.

@ Sharr76: I have those files edited somewhere for that theme already. I just have to find them.

@ You might have to do the edits manually for that mod.
Title: Re: Ad Management mod
Post by: lucia2 on March 02, 2007, 06:57:50 PM
Thanks for the help.  I guess I'll have to go read how to install manually now. :)
Title: Re: Ad Management mod
Post by: Bigguy on March 02, 2007, 07:17:44 PM
For that file I mean not the whole mod. You can find the edits in the "Theme Support" board at www.smfads.com They are stickied to the top. :)
Title: Re: Ad Management mod
Post by: harry_enfield on March 03, 2007, 04:33:32 PM
I installed this mod on SMF 1.1.2 with no problem, however it doesn't show anywhere in my Admin panel ... any ideas? I can supply any extra details if that would help :).
Title: Re: Ad Management mod
Post by: Bigguy on March 03, 2007, 04:36:29 PM
Are you using a custom theme. ???
Title: Re: Ad Management mod
Post by: harry_enfield on March 03, 2007, 05:18:28 PM
Nope, standard SMF default theme. I checked back through the error log and saw that there had been a couple of permission errors. So, I uninstalled the mod amended the CHMOD for the files required and reinstalled. Those errors didn't show up again in the log but instead it came up with the following:

8: Undefined index: ad_management
File: /usr/www/users/enlight/ee/boards/Sources/Subs.php
Line: 2738

Unable to load the 'Ads.english' language file.
Title: Re: Ad Management mod
Post by: Bigguy on March 03, 2007, 07:03:07 PM
make sure Ads.english.php is in your language folder.
Title: Re: Ad Management mod
Post by: phy54 on March 04, 2007, 01:40:33 AM
I am using the RocketTheme Versatility2 and have installed the ad management mod on the site.  I have tried several of the option under the Ad Management admin menu but I can't get any ads to show up.

I've also noticed that it doesn't work with Dilber MC theme.

Any help?
Title: Re: Ad Management mod
Post by: Bigguy on March 04, 2007, 01:43:02 AM
Modification Packages always install to the default theme. If you are running a theme other than default you will have to edit the template files of the custom theme in order for the ads to show.

If you go to www.smfads.com and look at the stickie topics in the "Theme Support" board you will find all the edits posted. (Make sure you get the right version of ad mod.
Title: Re: Ad Management mod
Post by: Sharr76 on March 04, 2007, 01:22:42 PM
Bigguy

I uploaded the files from SMF Ads but it just made a mess of my site, so I removed them....
Title: Re: Ad Management mod
Post by: Bigguy on March 04, 2007, 03:27:10 PM
What do you mean you uploaded the files from SMF ads. ??? Can you clarify this. ???
Title: Re: Ad Management mod
Post by: Sharr76 on March 04, 2007, 03:42:53 PM
I was told to try these files, so I renamed my own ones to something else and uploaded these to try, but it made a mess of my site so I removed them again. I persume that these files are changed to reflect the Amber theme.

BoardIndex.template.php
Display.template.php
index.template.php
MessageIndex.template.php

Title: Re: Ad Management mod
Post by: Bigguy on March 04, 2007, 05:13:31 PM
yes but I guess there is more than one Amber theme out there so these are probably for the other one. those are the right files to edit though.
Title: Re: Ad Management mod
Post by: harry_enfield on March 04, 2007, 05:25:52 PM
Hi Bigguy

Thanks for your help, I did what you suggested and I can now see Ad Management in my admin panel but get the error message "Unable to load ads template". It looks from my error log that this is why:

2: copy(/usr/www/users/enlight/ee/boards/Themes/default/languages/Ads.english.php): failed to open stream: Permission denied
File: /usr/www/users/enlight/ee/boards/Sources/Subs-Package.php
Line: 1025

But that file is CHMOD to 777.
Title: Re: Ad Management mod
Post by: Bigguy on March 04, 2007, 05:42:24 PM
copy the Ads.template.php file to the theme folder you are using. ou can get it from the zip file of the ad mod.
Title: Re: Ad Management mod
Post by: khurrum on March 05, 2007, 05:18:45 PM
Can someone guide me how to add google adsense or adbrite code at same place like in this forum (top right).

thanks for your support
Title: Re: Ad Management mod
Post by: djzzero on March 05, 2007, 09:53:08 PM
SMF Version: SMF 1.1.2
Some reason when i try to put AdSense code in the AD Management, it keeps giving me a error. Anyone know's whats up? Thanks hope u can fix this!

the error when i try to add it in, but if i put test in content, it works, just if i put google adsense scripts?

Here's the error i get when i try to save it!
Forbidden
You don't have permission to access /forum/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


hope u can help me, been struggling with it!  
Title: Re: Ad Management mod
Post by: Bigguy on March 05, 2007, 10:28:04 PM
Are all the permissions correctly
Title: Re: Ad Management mod
Post by: harry_enfield on March 06, 2007, 03:54:20 PM
Quote from: Bigguy on March 04, 2007, 05:42:24 PM
copy the Ads.template.php file to the theme folder you are using. ou can get it from the zip file of the ad mod.

Uhuh ... I'd already done that before I got this error :). Any other thoughts please? In the meantime I'll try CHMODing EVERYTHING to 777 ;).
Title: Re: Ad Management mod
Post by: Bigguy on March 06, 2007, 07:51:56 PM
Copy Ads.english.php to the language directory of the theme you are using. See if that works.
Title: Re: Ad Management mod
Post by: tmarek on March 07, 2007, 02:54:42 PM
I need some help with this Mod. I have it installed and it seems to work well, but I am the only one who can see the ads. Neither the guests or other members see them. Only I, the Admin, can see them. Can someone help with this? Thanks
Title: Re: Ad Management mod
Post by: Bigguy on March 07, 2007, 04:08:35 PM
Check your permissions for each user group.
Title: Re: Ad Management mod
Post by: harry_enfield on March 08, 2007, 03:52:20 PM
@Bigguy ... I love you and want to have your children  :D. Lol, only joking (although I am a girlie). Just wanted to say thank you for all your advice, both on this thread and reading some of the replies over on SMFads. All working now. Thank you!
Title: Re: Ad Management mod
Post by: Bigguy on March 08, 2007, 05:36:12 PM
Strange name for a girlie harry_enfield, lol. ;) Your welcome. Anything I can do to help. :)
Title: Re: Ad Management mod
Post by: pariofdreamz on March 10, 2007, 08:16:48 AM
Great Mod .....Thanks
Title: Re: Ad Management mod
Post by: jimbo21 on March 10, 2007, 12:30:36 PM
Hey guys,
I'm having trouble getting the mod to work with pnpn112.
I have already posted a topic at SMF ads asking for help: http://www.smfads.com/forums/index.php?topic=634.0
Title: Re: Ad Management mod
Post by: Bigguy on March 10, 2007, 12:35:11 PM
Answered at SMF Ads. ;)
Title: Re: Ad Management mod
Post by: Da Legend on March 10, 2007, 12:36:54 PM
I have a question. I cannot get the ads to show up for guests and other non-Admins. Also there is NO area to "Enable Ads" under permissions either. Anyone know what I should do?
Title: Re: Ad Management mod
Post by: Bigguy on March 10, 2007, 01:17:57 PM
Have you gone to permissions --->Settings and enabled all the options there and then taken alook at your permissions for each member group. ???
Title: Re: Ad Management mod
Post by: sarbaraj101 on March 10, 2007, 08:03:03 PM
it didn't work. It showed some Modification Parse error in some files. And when I tried to install this came:


Fatal error: require() [function.require]: Failed opening required '/www/110mb.com/s/h/r/i/n/e/h/p/shrinehp/htdocs/forum/Packages/temp/./install.php' (include_path='.:/usr/share/php') in /www/110mb.com/s/h/r/i/n/e/h/p/shrinehp/htdocs/forum/Sources/Packages.php on line 552
Title: Re: Ad Management mod
Post by: Bigguy on March 10, 2007, 08:31:12 PM
make sure you have a temp folder inside your Packages directory and that they are both chmodded to 777 or 755 depending on server configuration. Then try the install again.
Title: Re: Ad Management mod
Post by: sarbaraj101 on March 10, 2007, 08:37:57 PM
IT worked.

Thanks
Title: Re: Ad Management mod
Post by: Bigguy on March 10, 2007, 09:17:06 PM
Your more than welcome. ???
Title: Re: Ad Management mod
Post by: haltoyou on March 11, 2007, 04:45:40 PM
I just installed this mod on a fresh smf 1.1.2 board and ad management won't show up in the configuration menu.

It says is installed ok, but I don't have any access to the mod in order to add ads etc.

Any ideas what might be wrong?
Title: Re: Ad Management mod
Post by: ictus on March 11, 2007, 04:47:53 PM
it installs to the default theme, check back through this thread for how to add to other themes...
Title: Re: Ad Management mod
Post by: haltoyou on March 11, 2007, 04:52:46 PM
I'm using the default theme.
Title: Re: Ad Management mod
Post by: Hendricius on March 11, 2007, 07:05:28 PM
There is one problem. When I add some Ads, they appear not once but twice, means you see the banner for example 2 times. Thanks for help.

Hendricius
Title: Re: Ad Management mod
Post by: Bigguy on March 11, 2007, 07:27:06 PM
This means the code has been added twice. You will have to go through the template files and remove the duplicate copies of the edits for the ad mod.
Title: Re: Ad Management mod
Post by: khurrum on March 13, 2007, 04:38:38 AM
Can someone guide me how to add google adsense or adbrite code at same place like in this forum (top right).

thanks for your support
Title: Re: Ad Management mod
Post by: Bigguy on March 13, 2007, 09:31:10 AM
If you install the ad mod and then make the ad show at the very top of the forum you can have it show there. You will need to put these tags around your ad code and it should work fine:

<div align=left>AD CODE</div>
Title: Re: Ad Management mod
Post by: jonwatson on March 13, 2007, 03:32:51 PM
QuoteIt can be found in the Administration panel under the heading "Configuration". There is a new link there called "Ad Management" .

Sorry,where? I've installed it, but I don't see it anywhere...?
Title: Re: Ad Management mod
Post by: Bigguy on March 13, 2007, 06:19:23 PM
It should be in the Admin panel under Themes and layouts in the configuration panel.
Title: Re: Ad Management mod
Post by: khurrum on March 13, 2007, 07:52:09 PM
i used that code but the ads are showing on top most side of the page and not exactly on place where the ads in this forum is showing.  
Title: Re: Ad Management mod
Post by: jonwatson on March 13, 2007, 09:12:53 PM
Quote from: Bigguy on March 13, 2007, 06:19:23 PM
It should be in the Admin panel under Themes and layouts in the configuration panel.

Hmmm..no. Not there. Weird - I didn't get an errors on install and the Package panel shows it as installed just like everything else.

Kind of lost...
Title: Re: Ad Management mod
Post by: Bigguy on March 13, 2007, 09:14:53 PM
What version of SMF are you running. ??? In older versions it was under the Features and options settings.  
Title: Re: Ad Management mod
Post by: jonwatson on March 13, 2007, 09:20:11 PM
Brand new install: 1.1.2. Using the default theme, too.
Title: Re: Ad Management mod
Post by: Bigguy on March 13, 2007, 09:30:05 PM
Is there an usually big space under Themes and layouts ???
Title: Re: Ad Management mod
Post by: jonwatson on March 13, 2007, 09:35:35 PM
No, it looks about as big as the space at the end of any other section.

Do you want to take a look? It's a new forum with nothing much on it yet so I don't mind...
Title: Re: Ad Management mod
Post by: Bigguy on March 13, 2007, 09:40:54 PM
PM me your details and I will check things out.
Title: Re: Ad Management mod
Post by: jonwatson on March 13, 2007, 09:43:20 PM
Thanks. PM enroute...
Title: Re: Ad Management mod
Post by: Bigguy on March 13, 2007, 10:09:44 PM
Got it and replied. :)
Title: Re: Ad Management mod
Post by: Hendricius on March 15, 2007, 10:59:54 PM
I have one problem: Some ads are displaying twice. Means if I center them, then another ad appears below!

Thanks for helping.

Hendricius
Title: Re: Ad Management mod
Post by: Draco_Wolf on March 15, 2007, 11:10:47 PM
Hi !!

I have same problem like jonwatson does. It was successful installed but I didn't see any menu ads mod appear.... I also check the Themes and layouts but no space .... I use default theme. Please Help Me !
Title: Re: Ad Management mod
Post by: crotalusco on March 16, 2007, 06:48:56 PM
same problem, new forum install and using default theme, install goes ok but no admin change just more space where link should be

is this a 1.1.2 bug?

must be a 1.1.2 bug as i updated one of my other forums to this "a forum i had ad management working on" and it no longer works even with reinstall

I could use a fix for 1.1.2 black rain theme as well

Title: Re: Ad Management mod
Post by: Bigguy on March 16, 2007, 09:22:12 PM
can you check the template files and see if the ad mod is referenced anywhere else.
Title: Re: Ad Management mod
Post by: crotalusco on March 16, 2007, 09:38:36 PM
I dont see it on index english or admin english but I know next to nothing about php 

ok put them up as txt at www.wireptiles.com if you need others let me know
Title: Re: Ad Management mod
Post by: Draco_Wolf on March 16, 2007, 09:53:55 PM
Is ad mod support 1.1.2 ?? If it do support why no ads menu appear ? I have some problem with uninstalling the package also, it say all test failed but when installing the package I have no problem...

I have try install other mod but also can't see any different. One thing is so funny that why temp folder can dissappear ??
Title: Re: Ad Management mod
Post by: Bigguy on March 16, 2007, 11:00:36 PM
The template files that need to be checked are in the default theme folder and they are:

messageindex.template.php
display.template.php
boardindex.template.php
index.template.php

The ad mod must be installed in order for you to see if these files have been modified. Check them to see if the ad mod is referenced at all. You should see at lest a couple comment lines there that say something about the ad mod. If you see nothing then the mod didn't install at all.

Are all the permissions set to 777 or 755 depending on your host. ??? Is there a temp folder in the Packages directory and are they both chmodded to 777 or 755. ??? Are there any errors in the error log of the admin panel. ???
Title: Re: Ad Management mod
Post by: Vinspire on March 16, 2007, 11:53:53 PM
Installed it on my new SMF 1.1.2 board and it is working great.

Awesome !
Title: Re: Ad Management mod
Post by: Draco_Wolf on March 17, 2007, 12:25:50 AM
Hi !!

After I install the ads mod, I got 76 page of error on the error log that saying it's cannot stream....
Please Help Me !!
Title: Re: Ad Management mod
Post by: Bigguy on March 17, 2007, 12:39:02 AM
Can you show me the errors you are getting. ???
Title: Re: Ad Management mod
Post by: Draco_Wolf on March 17, 2007, 12:51:00 AM
You can visit my forum to see the error

www.wangsamajucommunity.com/portal

Thank You
Title: Re: Ad Management mod
Post by: Bigguy on March 17, 2007, 12:56:19 AM
I don't see any error. You stated that the errors were in your error log can you copy and paste one here.
Title: Re: Ad Management mod
Post by: Draco_Wolf on March 17, 2007, 12:59:56 AM
Apply Filter: Only show the error messages of this member  BlazeWolf       Today at 12:51:38 PM
Apply Filter: Only show the error messages of this IP address 219.95.35.80      Apply Filter: Only show the error messages of this session f807594576d41b36d632ca04d3bf6a67
Apply Filter: Only show the error messages of this URL http://www.wangsamajucommunity.com/portal/index.php?action=packages;sa=install2;package=ad_mod_1-1-x_v2-3.zip
Apply Filter: Only show the errors with the same message
512: package_flush_cache(): some files are still not writable
File: /home/wangsamaju/domains/wangsamajucommunity.com/public_html/portal/Sources/Subs-Package.php
Line: 1905

I set you as an admin to see full error on the error log, but first please register ^_^
Title: Re: Ad Management mod
Post by: Bigguy on March 17, 2007, 01:04:12 AM
Can you go into Packages-->Options and make all file writable down at the bottom, first empty the error logs and see if they return after you make files writable.
Title: Re: Ad Management mod
Post by: Draco_Wolf on March 17, 2007, 01:07:13 AM
After I click the all file writable down button and save it the button automatic select "Only the standard files are writable." back.....
Title: Re: Ad Management mod
Post by: Bigguy on March 17, 2007, 01:08:53 AM
Can you try to FTP in and change the permissions. It looks like that's what the problem is.
Title: Re: Ad Management mod
Post by: Draco_Wolf on March 17, 2007, 01:11:23 AM
You mean at File Manager ??? I'm newbie hehe ....
Title: Re: Ad Management mod
Post by: Bigguy on March 17, 2007, 01:14:16 AM
File manager might take you awhile, FTP would be quicker but you can do it both ways. Try changing permissions on this file and see what happens: (777 or 755)

/Sources/Subs-Package.php
Title: Re: Ad Management mod
Post by: Draco_Wolf on March 17, 2007, 01:16:54 AM
I can't see Subs-Package.php file but I type it on the address bar I can access it.
Title: Re: Ad Management mod
Post by: Draco_Wolf on March 17, 2007, 01:23:17 AM
I have same error on the error log ....
Title: Re: Ad Management mod
Post by: Bigguy on March 17, 2007, 01:47:55 AM
Its in the Sources folder.
Title: Re: Ad Management mod
Post by: Draco_Wolf on March 17, 2007, 01:49:48 AM
After I change it to 777 and 755, I got same error again ..
Title: Re: Ad Management mod
Post by: Draco_Wolf on March 17, 2007, 02:00:28 AM
YES !!!! YAHOOOO I solve my problem !!! Thank You Very very very much Bigguys !!!!!!!!  
Title: Re: Ad Management mod
Post by: crotalusco on March 17, 2007, 10:00:45 AM
nope all my permissions set 755 or 777 still probs

5 pages of this even removed entire board and reinstalled

Quotehttp://wireptiles.com/forums/index.php?action=viewErrorLog;desc

8: Undefined index: ad_management
File: /home/dhs303/public_html/wireptiles/forums/Sources/Subs.php
Line: 2744
   
error messages of this session ce3e83461001e557e5e73e224868acbd
Apply Filter: Only show the error messages of this URL http://wireptiles.com/forums/index.php?action=viewErrorLog;desc

8: Undefined index: ad_management
File: /home/dhs303/public_html/wireptiles/forums/Sources/Subs.php
Line: 2743
   
http://wireptiles.com/forums/index.php?action=viewErrorLog;desc
Unable to load the 'Ads.english-utf8' language file.
   
http://wireptiles.com/forums/index.php?action=packages;sa=install2;package=ad_mod_1-1-x_v2-3.zip
8: Undefined index: ad_management
File: /home/dhs303/public_html/wireptiles/forums/Sources/Subs.php
Line: 2742
   
http://wireptiles.com/forums/index.php?action=packages;sa=install2;package=ad_mod_1-1-x_v2-3.zip
8: Undefined index: ad_management
File: /home/dhs303/public_html/wireptiles/forums/Sources/Subs.php
Line: 2741
   

http://wireptiles.com/forums/index.php?action=packages;sa=install2;package=ad_mod_1-1-x_v2-3.zip
8: Undefined index: ad_management
File: /home/dhs303/public_html/wireptiles/forums/Sources/Subs.php
Line: 2740
   

   Subs.php   132 k   0755
   Subs.php~   131 k   0666
        Ads.php             11 k     0666

there is no "Ads.english-utf8" file in my default languages folder
Title: Re: Ad Management mod
Post by: Bigguy on March 17, 2007, 12:51:11 PM
Are you using utf8 for your forum.
Title: Re: Ad Management mod
Post by: crotalusco on March 17, 2007, 02:40:48 PM
I have no idea, shouldnt be its default forum install through fantastico no changes or anything made

sent pm so you can take a look
Title: Re: Ad Management mod
Post by: Hendricius on March 17, 2007, 07:55:15 PM
Hey, sometimes Ads are showing twice!

http://www.D3scene.com - on the Buttom of the page if you refresh a few times.

Great mod. Thanks.
Title: Re: Ad Management mod
Post by: Bigguy on March 17, 2007, 08:24:03 PM
Some of the edits got done twice then. You will have to go through your template files and take out the duplicate code.
Title: Re: Ad Management mod
Post by: Draco_Wolf on March 18, 2007, 12:57:46 AM
Hi bigguy !! I need your help ! My ad's won't appear on my forum. I have try to edit the theme but I always get error... can you help me with the code for "enterprise" theme ?  
Title: Re: Ad Management mod
Post by: Bigguy on March 18, 2007, 02:25:24 AM
have you checked www.smfads.com to see if the files are there and already edited. ??? I think they are. I remember doing them awhile back.
Title: Re: Ad Management mod
Post by: 3mrhythm on March 18, 2007, 07:16:52 AM
can you see how many clicks an ad gets on the new version? it would be nice to see how many clicks an ad gets :)

currently running 2.0 and have had total success with it
Title: Re: Ad Management mod
Post by: Bigguy on March 18, 2007, 12:01:48 PM
You can see how many impressions but not clicks.
Title: Re: Ad Management mod
Post by: haltoyou on March 18, 2007, 12:39:46 PM
I'm still having the problem Bigguy. Ad mod wont show.

What files do I need to chmod? and to what?

I have errors in the log as follows:

8: Undefined index: ad_management
File: /home/halifaxn/public_html/healthtalk/talkhealth/Sources/Subs.php
Line: 2738

Unable to load the 'Ads.english-utf8' language file.

Title: Re: Ad Management mod
Post by: Bigguy on March 18, 2007, 12:57:41 PM
Are you using utf8
Title: Re: Ad Management mod
Post by: haltoyou on March 18, 2007, 01:12:12 PM
That what SMF is set at.
Title: Re: Ad Management mod
Post by: haltoyou on March 18, 2007, 01:57:12 PM
Bigguy, this may be a Fantastico installer issue. I noticed another member mentioned they used Fantastico for their SMF install and were experiencing problems with the Ad Management mod.

I also used Fantastico for ease of use and experienced the same problem.

That set me to thinking the issue just might be with Fantastico, however, just over a month ago I used Fantastico for a SMF install and Ad Management worked fine.

Today I decided just to go old school and do my own install, setting up the database, password, ect.

I installed the Ad Management mod, and it works fine.

Fantastico must be doing something to the install. I also noticed other mods will not work on the Fantastico installed board either.
Title: Re: Ad Management mod
Post by: sniderz on March 23, 2007, 08:01:07 AM
Morning all, GREAT mod btw !!    www.sniderz.com is the site btw

Is there a way to add a posters name - so for example Sniderz Ads as the poster? I want the post to look more like a post in of itself rather than just a addon to the 1st post.

I am looking for something along the lines of the second post found over at http://www.got-heroes.com/hello-from-london-t1484.html  - See how it looks like its a user posting the ad rather than just an addition to the post.
Title: Re: Ad Management mod
Post by: sniderz on March 23, 2007, 02:09:45 PM
Can anyone help me out with the above? I guess even if its a picture I could pull in to make it more like a post that would be great !!!

How could I replace the Heroes,Lost and more words with a picture ?
Title: Re: Ad Management mod
Post by: mgaidia on March 24, 2007, 02:11:54 AM
How can I install it on Saf multi-color skin??
Title: Re: Ad Management mod
Post by: alo on March 24, 2007, 05:01:55 AM
anyway to run this mod on custom theme?
Help me!
Title: Re: Ad Management mod
Post by: Stuart on March 24, 2007, 12:15:40 PM
Quote from: mgaidia on March 24, 2007, 02:11:54 AM
How can I install it on Saf multi-color skin??

It seems quite difficult to do so. I'm using exactly that same theme too and wish I could use this mod without having to change things manually which will probably take me hours and hours  :(
Title: Re: Ad Management mod
Post by: Bigguy on March 24, 2007, 05:52:29 PM
@ mgaidia: Did you look at www.smfads.com I am sure I just finished editing those files for someone and they should be sitting there.

@ alo: Yes there is. All the edits for the ad mod are done and stickied to the "Theme Support" board over at www.smfads.com Check there and see if you can edit the template files for your theme. If not do a search and see if your custom theme files have already been edited.

@ Stuart: Same for you as I have stated for mgaidia
Title: Re: Ad Management mod
Post by: mgaidia on March 24, 2007, 06:06:39 PM
Quote from: Bigguy on March 24, 2007, 05:52:29 PM
@ mgaidia: Did you look at www.smfads.com I am sure I just finished editing those files for someone and they should be sitting there.
I just looked around smfads forum but i cant seem to find it, Please provide me with a direct link.
thanks
Title: Re: Ad Management mod
Post by: Stuart on March 24, 2007, 06:18:19 PM
Quote from: Bigguy on March 24, 2007, 05:52:29 PM
@ mgaidia: Did you look at www.smfads.com I am sure I just finished editing those files for someone and they should be sitting there.

@ Stuart: Same for you as I have stated for mgaidia

Hey Bigguy, I just checked out your site but it seems you were recently working on this theme? I don't think you uploaded it yet though  :D
Title: Re: Ad Management mod
Post by: Bigguy on March 24, 2007, 06:29:53 PM
Oh, then I must not have it done yet. That is Jerm's site I just work there. :) I will try to get to it soon.
Title: Re: Ad Management mod
Post by: mgaidia on March 24, 2007, 06:31:30 PM
Quote from: Bigguy on March 24, 2007, 06:29:53 PM
Oh, then I must not have it done yet. That is Jerm's site I just work there. :) I will try to get to it soon.
impatiently waiting for it.
Title: Re: Ad Management mod
Post by: Stuart on March 24, 2007, 06:32:59 PM
Quote from: Bigguy on March 24, 2007, 06:29:53 PM
Oh, then I must not have it done yet. That is Jerm's site I just work there. :) I will try to get to it soon.

Great, thanks! Is this (http://www.smfads.com/forums/index.php?topic=22.0) also correct for SMF 1.1.2 and your latest mod-version?  
Title: Re: Ad Management mod
Post by: Bigguy on March 24, 2007, 06:44:08 PM
I'm not sure I understand you Stuart. ???
Title: Re: Ad Management mod
Post by: Stuart on March 24, 2007, 07:05:10 PM
Quote from: Bigguy on March 24, 2007, 06:44:08 PM
I'm not sure I understand you Stuart. ???

I just wondered if that was how to do it myself manually, just in case  ;D
Title: Re: Ad Management mod
Post by: Bigguy on March 24, 2007, 07:15:29 PM
I use a program called Php Designer 2007 (google it) It has a search feature in it that is quite handy when looking for code. All the edits for the Ad Mod are stickied to the top of the "Theme Support" board on www.smfads.com if you would like to try it yourself. If you are tryting this with clean template files (no other mods installed) please leave the edited files behind so others can use them.

NOTE: Install the ad mod and then all you have to do is edit the 4 template files if your custom theme has four, if not edit what it has for template files that are listed.
Title: Re: Ad Management mod
Post by: 1337josh on March 25, 2007, 08:19:38 AM
Hi, i have the installed latest version and it works, but, thats with default theme only, is there any way i can get it working with my other 2 themes
(Aa new damage)(or Neon)
Title: Re: Ad Management mod
Post by: Bigguy on March 25, 2007, 11:44:22 AM
;)

Quote from: Bigguy on March 24, 2007, 07:15:29 PM
I use a program called Php Designer 2007 (google it) It has a search feature in it that is quite handy when looking for code. All the edits for the Ad Mod are stickied to the top of the "Theme Support" board on www.smfads.com if you would like to try it yourself. If you are tryting this with clean template files (no other mods installed) please leave the edited files behind so others can use them.

NOTE: Install the ad mod and then all you have to do is edit the 4 template files if your custom theme has four, if not edit what it has for template files that are listed.
Title: Re: Ad Management mod
Post by: sniderz on March 26, 2007, 09:44:15 AM
Quote from: sniderz on March 23, 2007, 08:01:07 AM
Morning all, GREAT mod btw !!    www.sniderz.com is the site btw

Is there a way to add a posters name - so for example Sniderz Ads as the poster? I want the post to look more like a post in of itself rather than just a addon to the 1st post.

I am looking for something along the lines of the second post found over at http://www.got-heroes.com/hello-from-london-t1484.html  - See how it looks like its a user posting the ad rather than just an addition to the post.


Can anyone help with this please ?? Is there a way to add a picture in place of the text ? I am sure its an easy call, I just don't know the context of it.
Title: Re: Ad Management mod
Post by: dirtylaundry on March 31, 2007, 11:56:43 AM
does it work wit adbrite?
Title: Re: Ad Management mod
Post by: moneydiscuss on March 31, 2007, 04:41:20 PM
Quote from: dirtylaundry on March 31, 2007, 11:56:43 AM
does it work wit adbrite?

Yes, it works well with adbrite.

Now i have a question, today i installed "Scribbles " theme(by Bloc), then my Ad Management 2.3 doesn't works---when i put my adbrite ad code to my Ad Management zone, the ads not show up ,i am sure the ads code no problem.It works well before i installed Scribbles theme. Even i uninstalled the Ad Management 2.3 ,installed again, it still doesn't work.

Any one know what's up ?

Doesn't the reason Ad Management can't work with  Scribbles theme?
It doesn't compatible with   Scribbles theme?

Really need your help.

Thanks.
Title: Re: Ad Management mod
Post by: cassie on April 01, 2007, 09:53:02 AM
I think the Ad Management Mod, like all mods, only work on the default theme. If you want them on other themes, you have to manually install them.  
Title: Re: Ad Management mod
Post by: jfertic on April 01, 2007, 11:36:54 AM
A very nice mod but only one problem for me. I am running MKPortal 1.1.1 and SMF 1.1.2. When I apply the mod it changes my subs.php file to not display the forum inside the portal. When I upload a clean copy of subs, it nulls the mod. Anyone figure a work around for this?

jfertic   
Title: Re: Ad Management mod
Post by: dirtylaundry on April 01, 2007, 01:19:46 PM
hi how do you modify it to different themes?

If anyone would be so kind to help me/ maybe change it for me please tell me!!!

http://tspyder.com/index.php?option=com_docman&task=doc_download&gid=17&Itemid=26
Title: Re: Ad Management mod
Post by: dirtylaundry on April 01, 2007, 07:44:28 PM
actually i am using Aa Damage.. any1 kno how to modify themeS?
Title: Re: Ad Management mod
Post by: Bigguy on April 02, 2007, 01:00:02 PM
@ jfertic: I have it running on a test site and there doesn't seem to be a problem.

@dirtylaundry: Have you checked over at www.smfads.com for theme's. I know I have done alot of themes there. (converted them I mean)
Title: Re: Ad Management mod
Post by: davomex on April 02, 2007, 02:14:26 PM
i uploaded this mod successfully but goin to my admin control centre none of the mods componen displayed nor worked. so i though there was a problem with te installation, though there wasnt any, tereafter i tried to ireinstall and it has continually given the error that its either the mode to be reinstalled is invalid or corrupted
what could be wrong.
Title: Re: Ad Management mod
Post by: Bigguy on April 02, 2007, 02:19:13 PM
What language are you using. ??? if you are using utf-8 this could be the problem.
Title: Re: Ad Management mod
Post by: jfertic on April 02, 2007, 10:07:45 PM
Thanks for the quick reply bigguy. I installed the mod with clean copy of subs. php in place. When I edited the file to have SMF appear inside the portal, the mod was no longer availabe in my admin panel. Right now if I want to use it, I have to have the SMF Forum outside the MK Portal. If I try to install the mod with the edited subs.php file, it errors on install. I was wondering if it can be done manually, or is there another type of work around for this? At present I am using the default theme of SMF.

jfertic
Title: Re: Ad Management mod
Post by: Bigguy on April 02, 2007, 10:28:43 PM
Yes the edits can be done manually. All the edits are stickied to the top of the Theme Support board at www.smfads.com
Title: Re: Ad Management mod
Post by: wk38 on April 03, 2007, 01:24:53 PM
I was creating a new ad and some how it's not letting me delete the ad. It only slows the name and content fields when I go back to edit, nothing underneath. All other ads are ok. The ad in question is displaying but I can't delete it now.

Help!
Title: Re: Ad Management mod
Post by: Bigguy on April 03, 2007, 05:34:16 PM
Can you change what type of ad it is (html/php) and then delete it. ??? I don't think I have heard of anyone having this problem.
Title: Re: Ad Management mod
Post by: wk38 on April 03, 2007, 06:06:41 PM
It's a strange one for sure. This is all I get, can't do a thing with it.

(http://www.actioncamnetwork.com/pics/dogad.jpg)
Title: Re: Ad Management mod
Post by: Bigguy on April 03, 2007, 06:20:30 PM
Can you try to uninstall and re-install the mod
Title: Re: Ad Management mod
Post by: wk38 on April 03, 2007, 06:25:47 PM
There's my other problem. When I do an uninstall I get some errors in the files. If I continue and do the uninstall I can't reload the site. Have to copy everything back from a hot backup directory I have. I'm stumped.
Title: Re: Ad Management mod
Post by: jerm on April 03, 2007, 06:34:23 PM
Is there anything in the error log when you view the page?
(delete all your errors, then visit that link only, then view the error log again)
Title: Re: Ad Management mod
Post by: wk38 on April 03, 2007, 06:44:09 PM
No errors in the log. Can I get to it in the database or php files somewhere and delete it?
Title: Re: Ad Management mod
Post by: kenang82 on April 03, 2007, 10:55:27 PM
I installed it on my smf1.1.2 but after adding the code, the code does not show up. Please help. My code: <!-- Begin: AdBrite -->
<script type="text/javascript">
   var AdBrite_Title_Color = 'CC0000';
   var AdBrite_Text_Color = '000000';
   var AdBrite_Background_Color = 'C3D9FF';
   var AdBrite_Border_Color = 'FFFFFF';
</script>
<span style="white-space:nowrap;"><script src="http://ads.adbrite.com/mb/text_group.php?sid=303682&zs=3436385f3630" type="text/javascript"></script><!--
--><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=303682&afsid=1"><img src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-banner.gif" style="background-color:#FFFFFF" alt="Your Ad Here" width="11" height="60" border="0" /></a></span>
<!-- End: AdBrite -->
is this html or php code?
Title: Re: Ad Management mod
Post by: Farmacija on April 04, 2007, 07:48:24 AM
html
Title: Re: Ad Management mod
Post by: ovno on April 04, 2007, 06:55:40 PM
hi, I successfuly uploaded and installed this mod, however there is not a tab for it in the admin section. Anyone know why, or do I have to do something. Oh, I am using the default theme.
Title: Re: Ad Management mod
Post by: kenang82 on April 04, 2007, 08:06:48 PM
Quote from: ovno on April 04, 2007, 06:55:40 PM
hi, I successfuly uploaded and installed this mod, however there is not a tab for it in the admin section. Anyone know why, or do I have to do something. Oh, I am using the default theme.
I also have this problem before but one of the members here ask me to go server setting and change the default langauge to "English"
Title: Re: Ad Management mod
Post by: kenang82 on April 04, 2007, 08:07:20 PM
Whenever I add an ad, it duplicates. why??
Title: Re: Ad Management mod
Post by: Shonick on April 05, 2007, 12:56:29 AM
I have found this in the install.xml file
<file name="$themedir/index.template.php">
<operation>
<search position="before"><![CDATA[ </td>]]></search>
<add><![CDATA[';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo ']]>
</add>
</operation>


I can not find the <td> tag as shown above in the custom theme(dilbermc).Could anyone help me with this. what is the code above the <td> tage.Thanks


and one more question.I did not see the file Display.template.php and ManagePermissions.php in the custom theme(dilbermc).What should I do now?

  Please help me.I really need this mod.Thank you.
Title: Re: Ad Management mod
Post by: Bigguy on April 05, 2007, 08:20:02 AM
It would be a good idea to get a copy of the default index.template.php and search for your <td> there and see where it is and then compare places in the one you want to edit. If the files aren't there then they have already been edited in the default folder.
Title: Re: Ad Management mod
Post by: Shonick on April 05, 2007, 11:59:56 AM
Thank you so much.My ad mod seems to work now.But the place to put ad is not correct.Anyway that is ok.
in the Add Ads  section it ask me for the type of the ad code either html  or php.But I have set my code include javascript and php,so which one should I choose now?
Title: Re: Ad Management mod
Post by: Bigguy on April 05, 2007, 12:34:21 PM
html should do it.
Title: Re: Ad Management mod
Post by: alo on April 05, 2007, 01:51:38 PM
Quote!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Quote1. Execute Code install.php 
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/Subs.php Test successful
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
6. Execute Modification ./Themes/default/Display.template.php Test successful
7. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
8. Execute Modification ./Sources/ManagePermissions.php Test failed
9. Extract File ./Sources/Ads.php 
10. Extract File ./Sources/LoadAds.php 
11. Extract File ./Themes/default/Ads.template.php 
12. Extract File ./Themes/default/languages/Ads.english.php 
it sounds get problem with managing permissions, the ad doesn't show on all browsers.
Title: Re: Ad Management mod
Post by: Bigguy on April 05, 2007, 01:57:21 PM
You will have to do the edits for that file manally after the mod is installed. As for the ads not sowing up in all browsers, unless you have something blocking them in that particular browser than there should be no problem at all.

All the edits are stickied to the Theme Support board over at www.smfads.com If you can't do them then I might be there later today, if not I probably won't be there for a day or so.  
Title: Re: Ad Management mod
Post by: alo on April 05, 2007, 06:10:42 PM
Quote from: Bigguy on April 05, 2007, 01:57:21 PM
You will have to do the edits for that file manally after the mod is installed. As for the ads not sowing up in all browsers, unless you have something blocking them in that particular browser than there should be no problem at all.

All the edits are stickied to the Theme Support board over at www.smfads.com If you can't do them then I might be there later today, if not I probably won't be there for a day or so. 
the last time when i tested your mod with SMF 1.1.1 it currenly worked nice but sounds like get failed with 1.1.2 version, is there any way to fix it?
Title: Re: Ad Management mod
Post by: DrizzetPheonix on April 05, 2007, 10:43:37 PM
I have a problem with this mod. It shows in Firefox and Opera for me but not in IE 6 or 7. Is there any reason you can think of why?

Here is my other  topic (http://"http://www.simplemachines.org/community/index.php?topic=162346.0") asking about it.
Title: Re: Ad Management mod
Post by: wk38 on April 06, 2007, 02:05:31 AM
Any ideas on how to get my rogue ad out of there? Can you delete an ad in the database or php file somewhere?
Title: Re: Ad Management mod
Post by: glennk on April 06, 2007, 09:18:38 AM
Hi sorry to post this as it's probably covered somewhere in the other 88 pages.

When I use this mod it creates 2 ads and displays them 1 underneath the other. When I delete 1 it deletes the other.

Where am I going wrong ??
Title: Re: Ad Management mod
Post by: Bigguy on April 06, 2007, 11:09:18 AM
check the index.php file and make sure the code is only in once for that file.
Title: Re: Ad Management mod
Post by: wk38 on April 06, 2007, 11:41:09 AM
Can't delete. This is all I get, can't do a thing with it. Where are these ads? Can I delete in the database??

(http://www.actioncamnetwork.com/pics/dogad.jpg)

I'm stuck and the mod won't uninstall.
Title: Re: Ad Management mod
Post by: Bigguy on April 06, 2007, 12:01:09 PM
Quote from: jerm on April 03, 2007, 06:34:23 PM
Is there anything in the error log when you view the page?
(delete all your errors, then visit that link only, then view the error log again)
Title: Re: Ad Management mod
Post by: wk38 on April 06, 2007, 12:06:40 PM
Nothing in the error logs. I've uninstalled the mod and reinstalled. Same thing.  
Title: Re: Ad Management mod
Post by: jerm on April 06, 2007, 12:10:14 PM
re-upload Ads.template.php
You can find the file in the zip file for my mod, and you upload it to Themes/default folder
Title: Re: Ad Management mod
Post by: wk38 on April 06, 2007, 12:16:56 PM
ok, done.  Issue still there.
Title: Re: Ad Management mod
Post by: wk38 on April 06, 2007, 12:58:45 PM
Is there no way to delete this in the database??
Title: Re: Ad Management mod
Post by: wk38 on April 06, 2007, 01:04:18 PM
Never mind. I found it in the database and deleted it.
Title: Re: Ad Management mod
Post by: Shonick on April 07, 2007, 02:21:37 AM
Quote from: viet on April 05, 2007, 11:59:56 AM
Thank you so much.My ad mod seems to work now.But the place to put ad is not correct.Anyway that is ok.
in the Add Ads  section it ask me for the type of the ad code either html  or php.But I have set my code include javascript and php,so which one should I choose now?

When I choose html. The php code  does not work.
When I Choose php the whole code  does not work.

Is there a solution for this code?Please help me out. I need the php code to protect my ads.So I don't want to take it out.

Ps.The php code wrap the javascript  code which is the ads code.
Thank you.  
Title: Re: Ad Management mod
Post by: glennk on April 07, 2007, 09:02:30 AM
Ok.

Still getting duplicate of every ad for some reason.

Tried to uninstall the mod and got this error

   Execute Modification     ./Themes/default/index.template.php     Test failed

Would someone be kind enough to offer some assistance please.
Title: Re: Ad Management mod
Post by: scorpi1in on April 07, 2007, 11:58:29 AM
Quote from: jerm on February 01, 2006, 06:14:10 PM
Quote from: RBH on February 01, 2006, 12:57:13 AM
any chance this could be made to display certain banners in certain boards or does it do that?
i hadn't thought of doing that. i have a few other things i want to add to this mod. if possible, i will look into that.
Quote from: d3v on February 01, 2006, 04:01:32 AM
adsense?
i assuming your asking if this works for adsense, and yes it does.

Quote from: BadCluster on February 01, 2006, 06:45:00 AM
i upload the mod as a zip file and try to install it,
before that i made everything '777' rights in the package folder and when i try to install it i get this error

"An Error Has Occurred!   
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!


please verify that these files are also set to 777

Sources/ModSettings.php
Themes/default/index.template.php
Themes/default/BoardIndex.template.php
Themes/default/MessageIndex.template.php
Themes/default/Display.template.php
Themes/default/languages/Modifications.english.php

----------------------------------------------------------------------------------------

I did all above steps but still getting same error:
An Error Has Occurred!
You cannot download or install new packages because the Packages directory or one of the files in it are not writable! 
Title: Re: Ad Management mod
Post by: qd-race on April 08, 2007, 05:32:38 AM
Good mod but I have a problem to display Google Adsense.

I'm using 1.1RC3 with IE7. Add Management installation got no problem.

1. When I add the Add Management and named it Google, it will create 4 adds with same name and setting.

2. I put 2,3 at Display ads within posts but only 1 add shows (after 2nd post). The second ad after 3rd post don't appear. Only can see the gap between 3rd and 4th post. You can refer the attachment image.

3. I select HTML type for the code

Please help.
Title: Re: Ad Management mod
Post by: Bigguy on April 08, 2007, 12:00:19 PM
Look in your index.php file for duplicate code.
Title: Re: Ad Management mod
Post by: glennk on April 08, 2007, 03:47:32 PM
Hi Big Guy.

My ad manager was creating 2 of everything.

I checked the index.php and found duplicate code as follows.

// Load all the ads up
   if (function_exists("loadAds"))
      loadAds();

I removed 1 of them and uploaded the index.php.

Now it only creates 1 ad when you ad an ad.

But I still get 2 show up on the forum

Is there anywhere else there could be duplicate code please ??
Title: Re: Ad Management mod
Post by: Bigguy on April 08, 2007, 05:37:58 PM
Depending on where it is showing two ads it would be in one of the 4 template files that the ad mod modifies.
Title: Re: Ad Management mod
Post by: qd-race on April 09, 2007, 02:05:00 AM
Quote from: Bigguy on April 08, 2007, 12:00:19 PM
Look in your index.php file for duplicate code.

Hi BigGuy,

I already solved the 1st problem. How about the second problem. It don't display after 3rd post. Is it because of Adsense itself or what?

Thanks.
Title: Re: Ad Management mod
Post by: Skull Kid on April 09, 2007, 11:45:35 AM
Um, hi, I recently installed a SMF forum and am currently adding mods. I downloaded the Ad Management mod, uploaded the files, and clicked Apply Mod, but I get this.

Execute Modification     ./Sources/ManagePermissions.php     Test failed

I assumed I needed to CHMOD the ./Sources/ManagePermissions.php file, but when I did, it still said Test Failed.

Can anyone help me? ^^;
Title: Re: Ad Management mod
Post by: qd-race on April 09, 2007, 01:35:06 PM
Maybe need to manually add the code into the file.
Title: Re: Ad Management mod
Post by: Bigguy on April 09, 2007, 02:10:12 PM
@ qd-race:No it has nothing to do with adsense. Do you have the posts numbers entered correctly ??? (1,3,6)

@ Skull Kid: You will have to manually put those edits in.
Title: Re: Ad Management mod
Post by: ovno on April 09, 2007, 07:24:44 PM
Hi, I am trying to install this on my smf forum, which is the default theme, however I can not get it to work. There are no errors when I install it, however the Ad Management tab does not come up. Does anyone know why this is happening? Help would be appreciated, thanks.
Title: Re: Ad Management mod
Post by: qd-race on April 10, 2007, 02:33:14 AM
Quote from: Bigguy on April 09, 2007, 02:10:12 PM
@ qd-race:No it has nothing to do with adsense. Do you have the posts numbers entered correctly ??? (1,3,6)

At the "Display ads within posts". Yes, I did and I also tried your number: 1,3,6. Still no adsense after 3rd post and 6th post. You can refer to this topic: http://www.qd-race.com/forum/index.php?topic=26.0. Login name: megadeth, password: megadeth

Change the Theme to default Theme for clear view as attach image.

Help.
Title: Re: Ad Management mod
Post by: Bigguy on April 10, 2007, 12:50:46 PM
Make sure all the edits got done for the template files. I see some ads but not between posts. Check the messageindex.template.php and the display.template.php.
Title: Re: Ad Management mod
Post by: qd-race on April 10, 2007, 01:15:20 PM
I did mod for the other Theme but same problem happen.

I will manually look the additional code added during installation in Default Theme. I will let you know.
Title: Re: Ad Management mod
Post by: qd-race on April 12, 2007, 08:57:15 AM
I'm referring to MessageIndex.template.php, from the install.xml file, the first mod line is as below:

- <file name="$themedir/MessageIndex.template.php">
- <operation>
- <search position="before">
- <![CDATA[ global $context, $settings, $options, $scripturl, $modSettings, $txt;
&nbsp; ]]>
&nbsp; </search>
- <add>
- <![CDATA[ //Display Ads on the Message index
if (function_exists("show_threadindexAds"))
{
$ads = show_threadindexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

&nbsp; ]]>
&nbsp; </add>
&nbsp; </operation>


The search position is "before" global $context, $settings, $options, $scripturl, $modSettings, $txt;. When I refer to the file, it change to like this:

global $context, $settings, $options, $scripturl, $modSettings, $txt;
//Display Ads on the Message index
if (function_exists("show_threadindexAds"))
{
$ads = show_threadindexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


Do the above code is correct or it should be like below:

//Display Ads on the Message index
if (function_exists("show_threadindexAds"))
{
$ads = show_threadindexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
global $context, $settings, $options, $scripturl, $modSettings, $txt;


Thanks.
Title: Re: Ad Management mod
Post by: jerm on April 12, 2007, 03:50:53 PM
That doesn't matter qd-race.
Is there anything in the error log?

Instead of the ads, put in a random text message. I believe google ads only allows you to display a max of three ads per page. And sometimes less depending on how much info it can grab from the page. So it might be working, its just google is blocking the second ad from displaying.
Title: Re: Ad Management mod
Post by: qd-race on April 12, 2007, 11:20:45 PM
Quote from: jerm on April 12, 2007, 03:50:53 PM
That doesn't matter qd-race.
Is there anything in the error log?

Instead of the ads, put in a random text message. I believe google ads only allows you to display a max of three ads per page. And sometimes less depending on how much info it can grab from the page. So it might be working, its just google is blocking the second ad from displaying.

Yes, you a right. It is because of max google ads as what I think before.

Thanks, case solved. I'm going to manually mods for other themes.
Title: Re: Ad Management mod
Post by: SignOffers.com on April 13, 2007, 02:39:42 PM
I would like to know, can the ADS be visible to Guests?
and only to forum members?
thanks u.
tell me if i need to twike it in the php files and where.
thnaks again.
Title: Re: Ad Management mod
Post by: qd-race on April 14, 2007, 06:17:41 AM
Goto: Admin->Permission->Modify Guests->uncheck at Enable ads
Title: Re: Ad Management mod
Post by: scool on April 14, 2007, 04:44:19 PM
i installed succesfuly smf 1.1.2 and ad management 2.3....but when i put a new ad , the interface creates 5 or more same ads.. i cannot delete one by one , if i delete one , the interface deletes it all...does anyone knows why this happens and how can i fix it?

see what i mean here -> http://www.scoolplace.gr    at the bottom of the page
Title: Re: Ad Management mod
Post by: ArkServer on April 14, 2007, 06:21:23 PM
Any plans for an "interstitial" option?
Title: Re: Ad Management mod
Post by: Bigguy on April 15, 2007, 12:26:12 AM
@ scool: Check the index.php file in the root of your SMF install for duplicate code.

@ ArkServer: No I don't believe there is. It has not been talked about or planned anyway.
Title: Re: Ad Management mod
Post by: qd-race on April 15, 2007, 12:37:19 AM
Quote from: Bigguy on April 15, 2007, 12:26:12 AM
@ scool: Check the index.php file in the root of your SMF install for duplicate code.

From my past experiance, not only duplicate code in index.php but also in other files. Anyway duplicate code in index.php is the main issue. Bigguy, normally, why this happen? Is it due to several times installation?
Title: Re: Ad Management mod
Post by: Bigguy on April 15, 2007, 12:42:16 AM
Most duplicate code is due to multiple installs that have failed and the code is not removed properly. The problem with the index.php is a bug I do believe in the ad mod that is being looked at and should be solved soon.
Title: Re: Ad Management mod
Post by: scool on April 15, 2007, 03:23:16 AM
well , i delete any duplicate entrys i found , and in index.php , and in other files.From my admin interface i can see now only 1 entry. but in my website still 5 entrys displayed. in firefox clicking view page source i see the 5 entrys.....i cannot locate the code that generate the ads. i looked everywhere in my site....i didn't see any code with the 5 ads.
Title: Re: Ad Management mod
Post by: Bigguy on April 15, 2007, 11:47:45 AM
Have you gone through all the files that are listed in the Theme Support board at www.smfads.com ???
Title: Re: Ad Management mod
Post by: Darkorical on April 15, 2007, 09:11:49 PM
My wife is running SMF 1.1.2 + Tiny Portal + Dilbert MC + Ad mod. She never used the top of page ad location so I commented that display code out of her template and then added the code to a Tiny Portal block. Now she can add new adds, and just tell them to goto the top of page location and it will goto the TP block.

Well this morning I decided to try to add an actual location for tiny portal to the mod. I edited the ad files. and it works just fine HOWVEVER  now when I goto ad management I get

Quote
Issue with the Ad Mod
LoadAds.php is missing/corrupt from your sources directory. Please make sure that it uploaded properly. The Ad mod won't be able to function properly. If you are having issues, please visit www.smfads.com!

like I said tho it does work.

here is a fresh install package with my modifications included can someone tell me how to fix the "Issue with the Ad Mod"
Title: Re: Ad Management mod
Post by: torquone on April 16, 2007, 03:38:50 PM
jerm , Thank you very much for this great Mod.;)

I see that there are several language files , can you add Italian Language File for your Mod , please ?  :P

If you need assistance to traslate this mod , i'll be very happy to help you.

Thank you in advance.

Bye
Torquone
Title: Re: Ad Management mod
Post by: Bigguy on April 16, 2007, 03:41:17 PM
Did you ask the author of the mod if you could make changes and repackage his work. ??? It is always a good idea to do this before releasing anything that isn't yours to the public.


Quote from: Darkorical on April 15, 2007, 09:11:49 PM
My wife is running SMF 1.1.2 + Tiny Portal + Dilbert MC + Ad mod. She never used the top of page ad location so I commented that display code out of her template and then added the code to a Tiny Portal block. Now she can add new adds, and just tell them to goto the top of page location and it will goto the TP block.

Well this morning I decided to try to add an actual location for tiny portal to the mod. I edited the ad files. and it works just fine HOWVEVER  now when I goto ad management I get

Quote
Issue with the Ad Mod
LoadAds.php is missing/corrupt from your sources directory. Please make sure that it uploaded properly. The Ad mod won't be able to function properly. If you are having issues, please visit www.smfads.com!

like I said tho it does work.

here is a fresh install package with my modifications included can someone tell me how to fix the "Issue with the Ad Mod"
Title: Re: Ad Management mod
Post by: qtime on April 16, 2007, 04:13:32 PM
Question about Permissions.

I noticed that the primary status will overwrite the additional status.
I have paid subscribtion mod and all donators will set up as an additional donator.
I disabled the Enable ads in Permissions of the donator group, but because the primary status, the ads are still visible.

Is there a solution for this?
Title: Re: Ad Management mod
Post by: Darkorical on April 16, 2007, 05:55:49 PM
Quote from: Bigguy on April 16, 2007, 03:41:17 PM
Did you ask the author of the mod if you could make changes and repackage his work. ??? It is always a good idea to do this before releasing anything that isn't yours to the public.

No I didn't I wasn't looking at it as releasing to the public. All I did was edit the files in his mod to add in two extra locations. Then receved the before mentioned error. I was looking for help solving the issue for myself and felt it was easier to provide those who would help with everything I did so they could see what I had done, and hopefully make it eaiser for them to show how to fix it. It wasn't really intended for public release but to show what I had done. 
Title: Re: Ad Management mod
Post by: Bigguy on April 16, 2007, 06:46:02 PM
Ah, ok. Well, did you make any changes to LoadAds.php  Is it in your Sources directory.
Title: Re: Ad Management mod
Post by: Darkorical on April 17, 2007, 10:05:11 AM
yes i did and yes it is see my zip file and search for tpblock1 to see what i did
Title: Re: Ad Management mod
Post by: Bigguy on April 17, 2007, 04:00:33 PM
I noticed you posted on smfads.com as well. I will take a lok at this and then post over there about it unless Jerm gets to it first.
Title: Re: Ad Management mod
Post by: Darkorical on April 17, 2007, 05:28:07 PM
alright thanks
Title: Re: Ad Management mod
Post by: nitsua on April 17, 2007, 05:47:59 PM
ohhh.... yeah.... cool mod i love it!
Title: Re: Ad Management mod
Post by: rosiem on April 21, 2007, 12:49:57 AM
Does anyone have this working with SoftMC?
Title: Re: Ad Management mod
Post by: Dragooon on April 21, 2007, 12:52:45 AM
This Mod totally rocks.Thanks to BigGuy i was able to use it but still IT ROCKS!!!
Title: Re: Ad Management mod
Post by: dyota on April 22, 2007, 10:16:29 PM
I run the package but fail becuase of this reason below. What should i do? i use smf 1.1.2, default theme and other mod packages.

Quote8.     Execute Modification     ./Sources/ManagePermissions.php     Test failed
Title: Re: Ad Management mod
Post by: Bigguy on April 22, 2007, 10:47:22 PM
Those edits will have to be done manually. Check out the Theme Support board at www.smfads.com for the edits.
Title: Re: Ad Management mod
Post by: HappyMomAnna on April 23, 2007, 12:53:15 AM
I searched this thread to see if anyone has asked this before and found nothing--so hopefully this isn't a silly question?

Can I use the Ad Mod with the Leviathan theme? If not do you know of any Green Colored Themes the Ad Mod can be used with?

Thanks, so kindly for any support or advice!
Title: Re: Ad Management mod
Post by: qd-race on April 23, 2007, 01:09:55 AM
You need to manually mod the files. Refer install.xml file in Ad Management zip file for manual modifications.
Title: Re: Ad Management mod
Post by: HappyMomAnna on April 23, 2007, 01:30:53 AM
Thank you!
Title: Re: Ad Management mod
Post by: dyota on April 23, 2007, 10:14:00 AM
8.     Execute Modification     ./Sources/ManagePermissions.php     Test failed

fail like above
Title: Re: Ad Management mod
Post by: qd-race on April 23, 2007, 11:22:32 AM
Quote from: dyota on April 23, 2007, 10:14:00 AM
8.     Execute Modification     ./Sources/ManagePermissions.php     Test failed

fail like above

I think you proceed to install, then manually mod for ./Sources/ManagePermissions.php.
Title: Re: Ad Management mod
Post by: K_4_kelly on April 23, 2007, 07:33:29 PM
so the ad will only be displayed on the default theme, right?

what if i am using Scribbles design by Bloc? ???
Title: Re: Ad Management mod
Post by: Loverboy on April 23, 2007, 08:57:59 PM
Hi there..

I've installed this mod and everything went well except the modification on the file index.template.php. My theme is a different one so I tried to do the changes manually but I did not succeed.

Could someone please help me modifying the index.template file.. Everyting else is already done except the changes on this file.

You can find my index.template file below as an attachment. I would be glad if someone could make the changes correctly to this file.
Title: Re: Ad Management mod
Post by: Ben_Noob on April 26, 2007, 07:40:27 AM
Hey ive installed your mod and set up a few ad's..

But the ad's dont appear for guests / normal members...

So i went to permissions, and there must of been an error in the installation because the check box, Enable ad's isnt there...

Can you please tell me how i can change the permissions another way, e.g: through the DB

Thanks
Title: Re: Ad Management mod
Post by: Bigguy on April 26, 2007, 10:03:06 AM
@ Loverboy: What theme are you using. ??? The edits may already be done for that theme. Have you checked at www.smfads.com ???

@ Ben_Noob: All the edits are stickied to the top of the Theme Support board at www.smfads.com check there to see if they all go done correctly.
Title: Re: Ad Management mod
Post by: chrisjlocke on April 26, 2007, 11:21:01 AM
Hi,
Just installed this fine on my 1.1.2 forum, but the ads for Google don't appear to be changing - its just displaying the same ones.

I've installed the same code in a Drupal website, and it works fine in that, ie, different ads.

Any thoughts?
Title: Re: Ad Management mod
Post by: Bigguy on April 26, 2007, 11:25:32 AM
There is no reason why they shouldnt change unless you dont have very much content on your site yet. I think they change by the different content on the site.
Title: Re: Ad Management mod
Post by: chrisjlocke on April 26, 2007, 12:17:34 PM
Ok, will give it some more time. I've gone into different topics, posts etc (so it should be different text), and its always the same ones. Seems a shame, as otherwise, its a great mod and works perfectly. Nice admin interface for it, etc.

Thanks for the reply, anyway. Appreciated.
Title: Re: Ad Management mod
Post by: HappyMomAnna on April 26, 2007, 12:47:52 PM
Give it a little time, if you are placing ads on a new site, Google needs time to catch up and recognize the new info. Especially if you are placing ads on a new site--with different content or using a Channel....

My ads' were all about the same things for several days and as time passes the ad content is starting to reflect more accurately. I started a new forum, new url, new host and created a new google channel so...it took just a little while for this to all register with the google bots.... Eventually, it starts to read things better and better and faster.
Title: Re: Ad Management mod
Post by: chrisjlocke on April 26, 2007, 01:01:35 PM
Thanks! I'll be more patient! ;)
Title: Re: Ad Management mod
Post by: Nordino on April 26, 2007, 03:32:45 PM
This mod looks great, but I have a problem. After installing the mod, "Ads" should appear under "Configuration" in the admin panel. Unfortunately I don't see any link to this mod there.

What is wrong?

My version is 1.1.12
Title: Re: Ad Management mod
Post by: HappyMomAnna on April 26, 2007, 04:33:29 PM
Do you have a Theme installed?

Do you have a link to your site?
Title: Re: Ad Management mod
Post by: Nordino on April 26, 2007, 05:19:13 PM
Quote from: HappyMomAnna on April 26, 2007, 04:33:29 PM
Do you have a Theme installed?

Do you have a link to your site?

I have the Dilbert MC theme.

Link: www.newutd.no/diskusjon
Title: Re: Ad Management mod
Post by: TheCyberKid on April 28, 2007, 09:39:22 AM
it is so difficult to understand hw to install this manually???? it is so complicated??? darnm, can someone make it more user-friendly??????????????????????? hw do i install the mod???
Title: Re: Ad Management mod
Post by: Bigguy on April 28, 2007, 11:22:33 AM
Have you checked the Theme Support board at www.smfads.com ??? There are stickies in that board that tell you how to do it. Get yourself a good editor though, thats the secret. ;)
Title: Re: Ad Management mod
Post by: katb on April 29, 2007, 12:13:50 PM
when i try to install through package manager i am getting following error when it try to test

   Execute Modification     ./Themes/default/Display.template.php     Test failed
Title: Re: Ad Management mod
Post by: alyangula on May 02, 2007, 10:30:39 PM
how can we get it to work on a custom theme...
Title: Re: Ad Management mod
Post by: Bigguy on May 02, 2007, 10:33:46 PM
Quote from: Bigguy on April 28, 2007, 11:22:33 AM
Have you checked the Theme Support board at www.smfads.com ??? There are stickies in that board that tell you how to do it. Get yourself a good editor though, thats the secret. ;)
Title: Re: Ad Management mod
Post by: pat_togo on May 03, 2007, 05:36:01 AM
I can't install the mod. I have Aero79 theme installed, using 1.1.2. After downloading the package, when trying to install the mod I am asked for my ftp info. After filling the form the message I get is
550 Failed to change directory.
And the form is back again. Any help on how to get around this?
Pat
Title: Re: Ad Management mod
Post by: alyangula on May 03, 2007, 06:43:37 AM
well it doesnt seem to be working with the RMRK theme...

Maybe send me to right spot as i coundt finds it or just tell me here..
Title: Re: Ad Management mod
Post by: Bigguy on May 04, 2007, 09:53:49 AM
@ pat_togo: This is not an ad mod problem. It sounds like something to do with the server.

@ alyangula: Template files in that theme must be edited in order for it to work properly.
Title: Re: Ad Management mod
Post by: neelapeela on May 05, 2007, 11:54:08 AM
I installed smf latest ed and ad management 2.3
but it doesnt appear under my configuration menu
even i tried so many other themes as well.
I replaced the language file and completed that procedure.
I used ad management edited files as well, but with no avail.
Any help
Let me inform you that I am a newbie and am unaware of scripts etc.
Any help please.
Title: Re: Ad Management mod
Post by: Bigguy on May 05, 2007, 12:27:11 PM
Go into packages, then options and change permissions on your files to 777 or make them writtable, then try to re-install.
Title: Re: Ad Management mod
Post by: neelapeela on May 05, 2007, 12:40:11 PM
I didnt understand 777
do i change the port to 777 there?
thanks for attending me
Title: Re: Ad Management mod
Post by: neelapeela on May 05, 2007, 12:43:01 PM
Im using Orange LT theme
Title: Re: Ad Management mod
Post by: Bigguy on May 05, 2007, 12:44:01 PM
No, go into "Packages" in the admin panel and then to "Options" then scroll down to the bottom and you will see:

"All files are writable."

Put a check next to that and press "Change File Permissions" Then try to install the mod.
Title: Re: Ad Management mod
Post by: Bigguy on May 05, 2007, 12:44:47 PM
Then the template files have to be modified in order for you to use it opn that theme. Modification Packages only install to the default core theme.
Title: Re: Ad Management mod
Post by: neelapeela on May 05, 2007, 12:50:44 PM
I actually pasted edited files from files4.forumhelper.info for orange lt theme.
I pasted there as well. But nothing like that under configuration menu
If i can pm u with the admin id n pass and if u can set that for me, if u please can?
I really need something like ad management for my forum
Title: Re: Ad Management mod
Post by: neelapeela on May 05, 2007, 01:00:21 PM
leme pls know sir
Title: Re: Ad Management mod
Post by: Bigguy on May 05, 2007, 01:51:10 PM
I have to go out for a bit but if you like you can send me info. I might not get to it today though.
Title: Re: Ad Management mod
Post by: alyangula on May 09, 2007, 05:00:32 AM
u say edit template NP with that just gimmy a yell where to edit :)
Title: Re: Ad Management mod
Post by: lightning_strike on May 09, 2007, 08:49:28 AM
how are you all doing today.  I have a  question...

Have you ever heard of this mod doing this?

Only the admin can see the ad's, if I am logged in as admin it seems to work great,  but if I log in as a user, no ad's anywhere, I have asked others and they see no ad's either.  I am useing the Evanescence Theme Design by Turklord  and  Turklord      Powered by SMF 1.1.2

attached are the files from the theme, maybe you could add these to your themes group....

thanks for any help guys
I have posted this at the smfad site but on one around

Title: Re: Ad Management mod
Post by: Bigguy on May 09, 2007, 03:02:07 PM
Sorry I have been busy as of lately. The reason the ads won't show could be two fold. 1 your permissions need to be set in order for other membergroups to see ads. 2 installing any mod only installs to the default theme so any template files that the ad mod edits in the default theme with have to be edited in the custom theme you are using.

@ alyangula: All the edits that need to be done are posted in the Theme Support board, stickied to the top of it. If you have the mod installed then all you have to do is make the edits to the 4 template files that are listed.
Title: Re: Ad Management mod
Post by: lightning_strike on May 09, 2007, 05:41:08 PM
I have made all the custom templete edits to the four file as per the V2.3 post from the smfad site.  so I need to look to the other permissions  can you enlighten me on just what pertails......how do I change the premissions so users can see them??
Title: Re: Ad Management mod
Post by: Skitch on May 10, 2007, 10:17:43 PM
newbie question but i dont understand how you get the ads to appear

in the box where you paste the ad code i have put the image link in there with and without [img] in front and behind it but dont get any ads

im using the musiconia theme with SMF 1.1.2 version

not sure if i need to edit the mod in my theme from the default theme or im just imputting the wrong ad code

any help would be appreciated
Title: Re: Ad Management mod
Post by: babjusi on May 10, 2007, 10:27:46 PM
Quote from: Skitch on May 10, 2007, 10:17:43 PM
newbie question but i dont understand how you get the ads to appear

in the box where you paste the ad code i have put the image link in there with and without [img] in front and behind it but dont get any ads

im using the musiconia theme with SMF 1.1.2 version

not sure if i need to edit the mod in my theme from the default theme or im just imputting the wrong ad code

any help would be appreciated

Both of them, in the ad box you shouldn''t put the image code, but the html code of the ad, and to make the ads appear with a custom theme you have to do some changes.
Title: Re: Ad Management mod
Post by: alyangula on May 10, 2007, 11:03:59 PM
Quote from: Bigguy on May 09, 2007, 03:02:07 PM
Sorry I have been busy as of lately. The reason the ads won't show could be two fold. 1 your permissions need to be set in order for other membergroups to see ads. 2 installing any mod only installs to the default theme so any template files that the ad mod edits in the default theme with have to be edited in the custom theme you are using.

@ alyangula: All the edits that need to be done are posted in the Theme Support board, stickied to the top of it. If you have the mod installed then all you have to do is make the edits to the 4 template files that are listed.

Yea i looked at it but i have NO idea what to do as you say NOTE: only do this if you manually installed it..

i used the admin cpanel...

can you please just type in here what i need to add/edit to my template etc.. im using v.23
Title: Re: Ad Management mod
Post by: Skitch on May 10, 2007, 11:05:10 PM
how do i go about making these changes?

also... how do i retrieve the html code for the ad?
Title: Re: Ad Management mod
Post by: babjusi on May 10, 2007, 11:08:36 PM
Quote from: Skitch on May 10, 2007, 11:05:10 PM
how do i go about making these changes?

also... how do i retrieve the html code for the ad?

The html code for the ad u get at the ad site. whereas for the changes I wish I could help u further, but unfortunately I ain''t so good with that stuff, but wait until one of the guys here could take over and help u further
Title: Re: Ad Management mod
Post by: dafisher1951 on May 11, 2007, 12:48:57 AM
I have loaded smf 1.1.2 and am using the template enterprise. I loaded the ad mod 2.3 and changed the the listed files permissions to 777.  the ad option doesn't show in the features and options heading. I tried to reload using the package download option and it says the 2.3 is not compatible. or corrupt. I tried it with default template as well. Does the ad mod need to installed in a separate folder?  Any other ideas?
Title: Re: Ad Management mod
Post by: Bigguy on May 11, 2007, 11:32:46 AM
Here are some pre-edited files I have been busy putting together. The musicona theme is not there but some ppl might find these handy:

http://files4.smfhelp.com/
Title: Re: Ad Management mod
Post by: babjusi on May 11, 2007, 02:52:42 PM
Quote from: Bigguy on May 11, 2007, 11:32:46 AM
Here are some pre-edited files I have been busy putting together. The musicona theme is not there but some ppl might find these handy:

http://files4.smfhelp.com/

Great work bigguy, they will defenitely come in handy to plenty members, starting from me. Thank you for doing this and sharing with the rest of us
Title: Re: Ad Management mod
Post by: Bigguy on May 13, 2007, 12:38:27 PM
No problem, I hope they can help. :)

Quote from: babjusi on May 11, 2007, 02:52:42 PM
Quote from: Bigguy on May 11, 2007, 11:32:46 AM
Here are some pre-edited files I have been busy putting together. The musicona theme is not there but some ppl might find these handy:

http://files4.smfhelp.com/

Great work bigguy, they will defenitely come in handy to plenty members, starting from me. Thank you for doing this and sharing with the rest of us
Title: Re: Ad Management mod
Post by: Ricky. on May 13, 2007, 02:09:41 PM
OK..

This is serious.


I have few smf  forums.
I installed this MOD ie. Ad-management & I liked it . I am only running Adsense on the website.

Well , when viewing ad impressions from adsense CP it is showing very less as compared to the stats software like awstats.
For yesterday, awstat is showing 1700 page views ie. impressions but Adsense CP is only showing 96 impressions !!!!!!

Well.. then I thought to verify it with other sites ie. non-smf..
On one such site.. stat software is reporting 1201 impression & other stat software for same is showing 1306 which means that its almost right as only difference is of ~100 impressions . And similarly adsense is also showing something acceptable ie. 1121. So It verified that if you are running adsense on every page then should be near to page impression of the website, even difference of ~100 is accpetable.
But now see the data of
3 smf Forum I am running with Ad-management mod and adsesne.






Forum
Code
Stats
Software
Impression
Adsense
CP reported
impression
Difference
Forum L:12291031126
Forum E:456344121
Forum B:35080270

Here you can see that Forum L is the biggest disaster, it is a high CPC forum  due its nature but No. of impression  in adsesnse CP difference stat software by 1000+ impressions..
Also you can same for FORUM E and Forum B

I even checked the code of the forum which is being delivered, it has right Client ID , correct channel no. .. seems every thing fine.

I have also checked permission properly and are enabled for everyone including GUESTs, though I am not using default theme but have modified custom themes as per mod instructions and ads are properly visible.

Just to make things trasparent, I have installed Google analytic on all the above mentioned website and shall do crosscheck between stats of google analytic & awstat etc. tomorrow and day after tomorrow as google analytic gathers enough data.

PS: I hav tried to provide every info here but still you can ask me for any more..
Also .. just in case if you want to see yourself then boards are :
forum L = http://www.linuxsolved.com/linux-forums
Forum B = http://www.bodybuilding.name
Forum E = http://www.etalkindia.com

Thanx for reading..
As you can see.. I have tried to provide every aspect as I can ..


Title: Re: Ad Management mod
Post by: 23570252 on May 13, 2007, 07:10:33 PM
Are the Ad Management 2.3 can work on new SMF 1.1.2 english-utf8 ?

i have install success but nothing in my admin menu , i haven't see any AD management menu in admin panel ?

anyone can help ? Thanks

Title: Re: Ad Management mod
Post by: babjusi on May 13, 2007, 08:27:17 PM
Quote from: 23570252 on May 13, 2007, 07:10:33 PM
Are the Ad Management 2.3 can work on new SMF 1.1.2 english-utf8 ?

i have install success but nothing in my admin menu , i haven't see any AD management menu in admin panel ?

anyone can help ? Thanks



Are you using a default theme or a custom one
Title: Re: Ad Management mod
Post by: babjusi on May 13, 2007, 08:27:47 PM
Quote from: Bigguy on May 13, 2007, 12:38:27 PM
No problem, I hope they can help. :)

Quote from: babjusi on May 11, 2007, 02:52:42 PM
Quote from: Bigguy on May 11, 2007, 11:32:46 AM
Here are some pre-edited files I have been busy putting together. The musicona theme is not there but some ppl might find these handy:

http://files4.smfhelp.com/

Great work bigguy, they will defenitely come in handy to plenty members, starting from me. Thank you for doing this and sharing with the rest of us

The do help a lot bigguy, thanks again
Title: Re: Ad Management mod
Post by: folkandfaith on May 13, 2007, 11:23:37 PM
I have tried using a "gloabl headers and footers" mod but it doesn't work. Would this do basically the same thing with a banner though just use the html for it? I am on 1.1.2. default. Thanks for any help or replies to this.
Title: Re: Ad Management mod
Post by: babjusi on May 14, 2007, 07:40:04 AM
Quote from: folkandfaith on May 13, 2007, 11:23:37 PM
I have tried using a "gloabl headers and footers" mod but it doesn't work. Would this do basically the same thing with a banner though just use the html for it? I am on 1.1.2. default. Thanks for any help or replies to this.

Yes, that does that and plenty more. It gives you the posibility to place the ads in different aerias of your site
Title: Re: Ad Management mod
Post by: 23570252 on May 14, 2007, 07:21:26 PM
Quote from: babjusi on May 13, 2007, 08:27:17 PM
Quote from: 23570252 on May 13, 2007, 07:10:33 PM
Are the Ad Management 2.3 can work on new SMF 1.1.2 english-utf8 ?

i have install success but nothing in my admin menu , i haven't see any AD management menu in admin panel ?

anyone can help ? Thanks



Are you using a default theme or a custom one

I use the default theme , never change any thing , all is new flash .

I have try to install it on other new flash SMF englsih , that is ok . so is it can't work on SMF english utf-8 ? 
Title: Re: Ad Management mod
Post by: paulaskinner on May 15, 2007, 05:42:03 PM
I have this exact problem - what do I do?

Quote from: Bigguy on March 13, 2007, 09:30:05 PM
Is there an usually big space under Themes and layouts ???
Title: Re: Ad Management mod
Post by: paulaskinner on May 15, 2007, 05:45:45 PM
Quote from: paulaskinner on May 15, 2007, 05:42:03 PM
I have this exact problem - what do I do?

Quote from: Bigguy on March 13, 2007, 09:30:05 PM
Is there an usually big space under Themes and layouts ???
Meaning, I installed the mod, I have a new install of SMF, default theme, and it just isn't showing up under Configuration.  And yes, there is an unusually large space under Themes and Layouts.
Title: Re: Ad Management mod
Post by: 23570252 on May 15, 2007, 07:22:39 PM
Hi All ;

I can confirm that , if install in SMF 1.1.2 English that is ok , Ad Admin Menu can show under Configuration , if install in SMF 1.1.2  english-utf8 , the AD Admin Menu will not come out !

Anyone can help ?

Thanks !
Title: Re: Ad Management mod
Post by: Bigguy on May 15, 2007, 11:36:30 PM
Have you tried adding the edits to the index.english-utf8.php file. ??? or to the Modifications.english-utf8.php to see if that would work. ???
Title: Re: Ad Management mod
Post by: paulaskinner on May 16, 2007, 01:28:23 AM
Quote from: paulaskinner on May 15, 2007, 05:45:45 PM
Quote from: paulaskinner on May 15, 2007, 05:42:03 PM
I have this exact problem - what do I do?

Quote from: Bigguy on March 13, 2007, 09:30:05 PM
Is there an usually big space under Themes and layouts ???
Meaning, I installed the mod, I have a new install of SMF, default theme, and it just isn't showing up under Configuration.  And yes, there is an unusually large space under Themes and Layouts.
I also tried to click to make all files writeable, but it wouldn't let me change that.  Did anyone manage to fix things so that the ad mod would work with SMF 1.1.2, and be visible under "Configuration"?
Title: Re: Ad Management mod
Post by: 23570252 on May 16, 2007, 11:12:24 AM
Quote from: Bigguy on May 15, 2007, 11:36:30 PM
Have you tried adding the edits to the index.english-utf8.php file. ??? or to the Modifications.english-utf8.php to see if that would work. ???

Thank you Bigguy for your reply help , i am sorry for my poor english !
I don't understand what is "adding the edits" ? If you mean set the permission 
then i have done it , i set all is 777 . Or you mean manual add the code in that files ?

I found that in "/www/forum/Themes/default/languages/" directory , all files have 2 kinds , ons is "xxx.english.php" and the other is "xxx.english-utf8.php" ,
after install AD mod , one of the AD mod file "Ads.english.php" in this directoty , only have "Ads.english.php" and don't have "Ads.english-utf8.php" in this directory .   

I have try create a "Ads.englsih-utf8.php" in utf8 format from the original "Ads.english.php" , then copy it to that directory and install it again ,
the AD mod menu is show out under Configuration , after that i go create one AD ,  the AD only show in the "SMF Default Theme - Core" not in my own "Default Theme" !

Is it possible let the AD show on my own "Default Theme" not in "SMF Default Theme - Core"?
Title: Re: Ad Management mod
Post by: babjusi on May 16, 2007, 03:55:57 PM
This mod works only with the default theme, in order to make it work you have to do some chaanges. Have a look through the other posts in this topic, cause it has been explained many times before
Title: Re: Ad Management mod
Post by: paulaskinner on May 16, 2007, 06:32:12 PM
I AM using the default theme, SMF 1.1.2, it is not displaying in the Configuration menu, but yes, there are large spaces.  I have read through the site but all the explanations seem to pertain to people using other themes. 
Title: Re: Ad Management mod
Post by: paulaskinner on May 16, 2007, 06:35:45 PM
If it was explained somewhere, if you could tell me what page it's on, because I just can't find it.

I AM using the default theme, SMF 1.1.2, it is not displaying in the Configuration menu, but yes, there are large spaces.  I have read through the site but all the explanations seem to pertain to people using other themes.   
Title: Re: Ad Management mod
Post by: babjusi on May 16, 2007, 07:07:30 PM
Quote from: paulaskinner on May 16, 2007, 06:35:45 PM
If it was explained somewhere, if you could tell me what page it's on, because I just can't find it.

I AM using the default theme, SMF 1.1.2, it is not displaying in the Configuration menu, but yes, there are large spaces.  I have read through the site but all the explanations seem to pertain to people using other themes.   

Have a look here

http://custom.simplemachines.org/mods/index.php?mod=255
Title: Re: Ad Management mod
Post by: dafisher1951 on May 16, 2007, 08:03:22 PM
Quote from: paulaskinner on May 16, 2007, 06:35:45 PM
If it was explained somewhere, if you could tell me what page it's on, because I just can't find it.

I AM using the default theme, SMF 1.1.2, it is not displaying in the Configuration menu, but yes, there are large spaces.  I have read through the site but all the explanations seem to pertain to people using other themes.   
Well that want much help was it. I think my problem is because of the theme I am using, but it is difficult to get any real help on it.  I think we both almost have. Hopefully someone will point us in the right direction for the key.

This is the error message I am getting now

Table 'dafisher_engforum.dafisher_ads' doesn't exist
File: /home/dafisher/public_html/chaospot/Sources/LoadAds.php
Line: 33
If I remove the loadads file I get this message

8: Undefined index: ad_management
File: /home/dafisher/public_html/chaospot/Sources/Subs.php
Line: 2739
Title: Re: Ad Management mod
Post by: cambler on May 16, 2007, 08:53:53 PM
So correct me if I'm wrong - I'm using Dilber MC as my theme. After installing and setting "show ad" permissions on my groups, I can see the ad as the 2nd post in any given topic, but all other ad placements (the various checkboxes for below the menu, at the bottom, etc.) don't show up. All of the admin functionality seems to be there and working nicely.

This is, if I understand correctly, because my theme (Dilber MC) wasn't patched, nor should it have been.

That said, then - how do I figure out what patches need to be applied to the theme's files and get that done, myself? I'd be happy to make those changes available to anyone else using Dilber MC if that would be helpful. I just need to figure out what's changed and how to apply it, myself.
Title: Re: Ad Management mod
Post by: dafisher1951 on May 17, 2007, 09:47:17 AM
Hi cambler,

While I was searching for my answers I noticed a lot of posts about your theme at
http://www.smfads.com/forums/index.php?board=7.40

Hope that helps
Title: Re: Ad Management mod
Post by: CancerDiscussion.com on May 17, 2007, 01:18:44 PM
therei s no ad link on configuration tab, why?
Title: Re: Ad Management mod
Post by: babjusi on May 17, 2007, 03:37:25 PM
Quote from: CancerDiscussion.com on May 17, 2007, 01:18:44 PM
therei s no ad link on configuration tab, why?

What theme are you using? The default or a custom one.  If you are using a custome one, switc back to the default and see if the links are shown under configuration
Title: Re: Ad Management mod
Post by: Ricky. on May 17, 2007, 04:34:59 PM
Any light on my issue ?
Title: Re: Ad Management mod
Post by: paulaskinner on May 18, 2007, 02:18:33 AM
Thanks, I finally figured out what you were probably trying to tell me - to go into Settings, and change the language from "English-UTF8" to plain "English".  It is all displaying correctly now under Configuration.
Title: Re: Ad Management mod
Post by: paulaskinner on May 18, 2007, 02:22:44 AM
But now my Google ads are displaying twice.
Title: Re: Ad Management mod
Post by: dafisher1951 on May 18, 2007, 07:51:44 PM
loaded to default theme 1.1.2 admod 2.3 and get this error message

Table 'dafisher_engforum.dafisher_ads' doesn't exist
File: /home/dafisher/public_html/chaospt/Sources/LoadAds.php
Line: 33

Anyone?
Title: Re: Ad Management mod
Post by: paulaskinner on May 19, 2007, 01:58:52 AM
First my ad mod didn't display under Configuration because the default language for SMF was English UTF-8, so changed it to English and it displayed.
Then, probably because I'd had so much trouble getting the mod to work and had installed, uninstalled, and reinstalled, the ads showed up duplicate.
Before I had a chance to fix that, the ads stopped showing at all.  Permissions are all set, boxes clicked, can't see why the ads stopped, any thoughts?
Title: Re: Ad Management mod
Post by: paulaskinner on May 19, 2007, 02:24:48 AM
When I view ads.template.php, it says the following.  Could this explain why my ads aren't showing?  How to fix?

$adsFunction)
   {
      if (function_exists($adsFunction))
         unset($adsFunctions[$i]);
   }

   if(!empty($adsFunctions))
   echo '   
      
         !!
         ', $txt['error_ads_file_missing_title'] ,'
            
               ', $txt['error_ads_file_missing'] ,'!

            
      
Title: Re: Ad Management mod
Post by: dafisher1951 on May 19, 2007, 09:00:00 PM
Quote from: paulaskinner on May 19, 2007, 01:58:52 AM
First my ad mod didn't display under Configuration because the default language for SMF was English UTF-8, so changed it to English and it displayed.
Then, probably because I'd had so much trouble getting the mod to work and had installed, uninstalled, and reinstalled, the ads showed up duplicate.
Before I had a chance to fix that, the ads stopped showing at all.  Permissions are all set, boxes clicked, can't see why the ads stopped, any thoughts?
I had read somewhere in one of the forums that when your ads show twice its because part, or all of the ad mod has been loaded twice. The other issue, I have no clue. Having a hard time getting this to work. I have posted a request for hlp several times over the last week or ten days and not gotten a response. May have to take it to someone outside to get it to work. Good Luck.
Title: Re: Ad Management mod
Post by: Bigguy on May 21, 2007, 11:23:11 PM
@ paulaskinner: Go throught the template files of your theme and remove the code for the ad mod that is showing twice. There are only 4 template files the ad mod modifies:

MessageIndex.template.php
Display.template.php
BoardIndex.template.php
index.template.php

Check those files to see if some or all of the ad code is in more than once. All the edits can be found on the Theme Support board of www.smfads.com stickied to the top.

@ dafisher1951: Make sure LoadAds.php is in the Sources directory and that all the edits are done to the index.php file in the root of your SMF install.
Title: Re: Ad Management mod
Post by: dafisher1951 on May 21, 2007, 11:32:52 PM
the load ads is in the sources directory. I pulled it out so that the forum would function. Will recheck the index file
Title: Re: Ad Management mod
Post by: dafisher1951 on May 21, 2007, 11:57:37 PM
Still get the same message:

Table 'dafisher_engforum.dafisher_ads' doesn't exist
File: /home/dafisher/public_html/chaospt/Sources/LoadAds.php
Line: 33
Title: Re: Ad Management mod
Post by: Bigguy on May 22, 2007, 02:16:51 AM
Can you try uninstalling and reinstalling it and see if that creates the missing table in the db.
Title: Re: Ad Management mod
Post by: dafisher1951 on May 22, 2007, 09:23:15 PM
tried it three times and used a fresh download for forum and admod. Same message. Now the admod button doesn't show either. Language is set to english.

Thanks
Title: Re: Ad Management mod
Post by: sarbaraj101 on May 23, 2007, 10:01:27 PM
Same prob here!

Quote from: Draco_Wolf on March 15, 2007, 11:10:47 PM
Hi !!

I have same problem like jonwatson does. It was successful installed but I didn't see any menu ads mod appear.... I also check the Themes and layouts but no space .... I use default theme. Please Help Me !

PS: It happens in any mod I install
Title: Re: Ad Management mod
Post by: Bigguy on May 23, 2007, 10:27:44 PM
Are you using the english utf8 language file.
Title: Re: Ad Management mod
Post by: sarbaraj101 on May 24, 2007, 10:18:29 AM
Maybe, I'll check it out.
Title: Re: Ad Management mod
Post by: babjusi on May 24, 2007, 10:26:08 AM
Quote from: sarbaraj101 on May 24, 2007, 10:18:29 AM
Maybe, I'll check it out.

The chances are that it is as bigguy told you. Go to your admin''s panel-server settings and there change the language to plain english. That should fix it
Title: Re: Ad Management mod
Post by: sarbaraj101 on May 24, 2007, 10:56:23 AM
Done thanks to both of U.
Title: Re: Ad Management mod
Post by: babjusi on May 24, 2007, 11:45:55 AM
You are welcome, but in this case all the thanks go to bigguy, I didn''t do anything, only confirmed what he told you
Title: Re: Ad Management mod
Post by: Bigguy on May 24, 2007, 12:37:23 PM
It was a joint effort :)
Title: Re: Ad Management mod
Post by: DeyanMarkovski on May 25, 2007, 05:51:20 AM
I don't know how to install this mod : [
Title: Re: Ad Management mod
Post by: babjusi on May 25, 2007, 06:06:20 AM
Quote from: DeyanMarkovski on May 25, 2007, 05:51:20 AM
I don't know how to install this mod : [

It is very easy. You can install this mod in just a couple of clicks through the Package Manager in the admin''s panel at your forum
Title: Re: Ad Management mod
Post by: DeyanMarkovski on May 25, 2007, 09:22:10 AM
 But I don't can't use this mod. Click View Image
(http://screenshot4e.hit.bg/images/B00000003.gif)
Title: Re: Ad Management mod
Post by: babjusi on May 25, 2007, 09:43:27 AM
I see that you are using a custom theme. The ad mod works only with the default theme. In order to make it work with a custom one, you must do some changes.
Switch back to the default theme and install it. Then you will see the mod''s settings under Configuration
Title: Re: Ad Management mod
Post by: DeyanMarkovski on May 25, 2007, 10:49:03 AM
(http://screenshot4e.hit.bg/images/B00000003.gif)
Title: Re: Ad Management mod
Post by: purplegold on May 25, 2007, 11:36:14 AM
I was told that this was installed however i cannot view the ad management text under Configuration instead its a complete blank.
Title: Re: Ad Management mod
Post by: babjusi on May 25, 2007, 01:12:13 PM
Quote from: purplegold on May 25, 2007, 11:36:14 AM
I was told that this was installed however i cannot view the ad management text under Configuration instead its a complete blank.

What theme are using? What is default language  of your forum? If you are using a custom theme, switch to the default theme and set the default language to english and see if that helps
Title: Re: Ad Management mod
Post by: DeyanMarkovski on May 25, 2007, 02:40:03 PM
I don't know how to switch to the default theme.
Title: Re: Ad Management mod
Post by: babjusi on May 25, 2007, 02:44:50 PM
Quote from: DeyanMarkovski on May 25, 2007, 02:40:03 PM
I don't know how to switch to the default theme.

Admin''s Panel-Themes and Layout-Overall forum default, here you choose the option: ''SMF Default Theme-Core.
Title: Re: Ad Management mod
Post by: babjusi on May 25, 2007, 02:45:25 PM
Quote from: Bigguy on May 24, 2007, 12:37:23 PM
It was a joint effort :)

Yes, it was, bigguy :)
Title: Re: Ad Management mod
Post by: DeyanMarkovski on May 25, 2007, 03:03:41 PM
Quote from: babjusi on May 25, 2007, 01:12:13 PM
Quote from: purplegold on May 25, 2007, 11:36:14 AM
I was told that this was installed however i cannot view the ad management text under Configuration instead its a complete blank.

and set the default language to english and see if that helps

Thank u  :D http://tenks.hit.bg/thank.swf
Title: Re: Ad Management mod
Post by: babjusi on May 25, 2007, 03:05:58 PM
Quote from: DeyanMarkovski on May 25, 2007, 03:03:41 PM
Quote from: babjusi on May 25, 2007, 01:12:13 PM
Quote from: purplegold on May 25, 2007, 11:36:14 AM
I was told that this was installed however i cannot view the ad management text under Configuration instead its a complete blank.

and set the default language to english and see if that helps

Thank u  :D http://tenks.hit.bg/thank.swf

You are welcome mate, glad that I could help out
Title: Re: Ad Management mod
Post by: purplegold on May 25, 2007, 06:04:27 PM
It doesnt seem to work. i am using english, and switching to the defult doesn't seem to work. i think im having langages issues.
Title: Re: Ad Management mod
Post by: babjusi on May 25, 2007, 11:03:39 PM
Quote from: purplegold on May 25, 2007, 06:04:27 PM
It doesnt seem to work. i am using english, and switching to the defult doesn't seem to work. i think im having langages issues.

Are you using english or english utf as a default language?
Title: Re: Ad Management mod
Post by: purplegold on May 26, 2007, 06:33:23 AM
I don't know i guess it must be english utf.  I'm not sure how do you tell which language your using? it seems that utf works for me because i kind of tried fixing up the languages myself and i had a whole page full of blanks until i add utf everything showed up.
Title: Re: Ad Management mod
Post by: babjusi on May 26, 2007, 07:34:32 AM
Quote from: purplegold on May 26, 2007, 06:33:23 AM
I don't know i guess it must be english utf.  I'm not sure how do you tell which language your using? it seems that utf works for me because i kind of tried fixing up the languages myself and i had a whole page full of blanks until i add utf everything showed up.

Try this. Go to the admin'''s panel-Server Settings and there you can see what language you are using. If you are using some other language, change it to plain english and see if that will help. Let me know how it goes
Title: Re: Ad Management mod
Post by: purplegold on May 26, 2007, 07:41:49 AM
Thank you it works. I would never have figured it out if you haven't mention what  language i have. thanks again!!!
Title: Re: Ad Management mod
Post by: babjusi on May 26, 2007, 08:05:13 AM
You are welcome purplegold, glad I could be of help
Title: Re: Ad Management mod
Post by: purplegold on May 26, 2007, 08:34:10 AM
Ok, i'm back lol. I was wondering now why my ads aren't showing up. I use google ads and it seems not to be showing up. I use tinyportal could it be a possibility thats the reason its not showing up?
Title: Re: Ad Management mod
Post by: babjusi on May 26, 2007, 10:04:09 AM
First of all, did you enable the permissions for the ads? Because that could be the reason that the ads aren''t showing up.

And if you are using TinyPortal, you can put the ads on your front page as well/ Just create a scriptbox and paste there the ad codes
Title: Re: Ad Management mod
Post by: purplegold on May 26, 2007, 10:10:38 AM
Where is this place to enable permissions? yeah i'm aware of putting ads in blocks bu suing script box. I just can't seem to get the ads on other areas of the site.
Title: Re: Ad Management mod
Post by: babjusi on May 26, 2007, 11:29:04 AM
You can set the permissions in the admin''s panel-Members-Permissions. There, choose the membergroups you want the ads to be displayed and check the box next to ''enable  ads''. It''s on the top right corner
Title: Re: Ad Management mod
Post by: purplegold on May 26, 2007, 12:06:49 PM
Found it. Now what? nothing seems to work...
Title: Re: Ad Management mod
Post by: babjusi on May 26, 2007, 12:14:57 PM
Check the settings of the ads, maybe you have enabled ''disable ads for the administrator''. That means that the ads won''t show to you as the admin, but they would be displayed for the vizitors and the members of your forum.

p.s. Can you provide a linka as well to your site
Title: Re: Ad Management mod
Post by: purplegold on May 26, 2007, 12:20:23 PM
I've check the settings its not disabled.
Title: Re: Ad Management mod
Post by: babjusi on May 26, 2007, 12:51:35 PM
I see that you are using a custom theme. Did you make the required changes in order for the ad mod to work? Switch back to the default theme and see if the ads will be displayed
Title: Re: Ad Management mod
Post by: purplegold on May 26, 2007, 12:57:46 PM
I've tried that and its not working. all i seem to get is an error that says
Parse error: syntax error, unexpected '<' in /home/trecia/public_html/Sources/Load.php(1726) : eval()'d code(675) : eval()'d code on line 1

I discovered a problem, The mod isn't install properly. The code didn't execute in display.template so i took it off, unfortunity it still seem to be installed. the configuration shows up but the mod doesn't show up in packages. how can i get rid of this instead? taking the code off.
Title: Re: Ad Management mod
Post by: babjusi on May 26, 2007, 03:09:04 PM
You can remove the code from the file load.php which you can find at  sources. You can access it by a ftp client
Title: Re: Ad Management mod
Post by: purplegold on May 30, 2007, 08:12:19 AM
Now I notice it works  on the default ,i got rid of all the errors. How do i get it to show up up in a custom theme? is there some type of codes i must change or it won't work at all?
Title: Re: Ad Management mod
Post by: babjusi on May 30, 2007, 08:48:39 AM
Have a look here, but make first a back up of your forum and the files you are to edit

http://modparser.dev.dansoftaustralia.net/index.php
Title: Re: Ad Management mod
Post by: purplegold on May 30, 2007, 09:06:02 AM
where exactly is $boarddir/index.php? THanks for trying to help. this is just taking forever to find. I guess i just have to forget about ad management and whatever.
Title: Re: Ad Management mod
Post by: Bigguy on May 30, 2007, 02:24:29 PM
Make changes to the index.php file that is in the ROOT of your SMF install.
Title: Re: Ad Management mod
Post by: anakmacan on May 30, 2007, 08:19:03 PM
This mod works only for ads under first post, the rest wont show up. Im using classic yabb SE theme, smf version : 1.1.2. Can anyone help me out?
Title: Re: Ad Management mod
Post by: Bigguy on May 31, 2007, 02:41:40 AM
You will have to modify the template files. This post can be very useful:

http://www.smfads.com/forums/index.php?topic=475.0

Only the template files need edited.
Title: Re: Ad Management mod
Post by: Gackt on May 31, 2007, 11:23:41 PM
I need help, I installed this mod, but it wont show up anywhere I am using a custom theme. So I'm trying to remove the mod but I get errors. I dont have many mods installed.

any idea how to fix this?
Title: Re: Ad Management mod
Post by: anakmacan on June 01, 2007, 07:27:51 AM
Thanks bigguy, *a lot*  ill look on that one. thx again ^^
Title: Re: Ad Management mod
Post by: anakmacan on June 01, 2007, 09:15:44 AM
btw, i have updated all the files, then where shall i upload and run install.php from? With CHMod 755?
Title: Re: Ad Management mod
Post by: rmg_07 on June 02, 2007, 11:23:19 AM
hey there. i have successfully installed the ad management mod. thanks to everyone who contributed on the "change the english-utf8 language to plain english languange" hehe

but, i have another question, i am not sure if this question had been answered but will still try since i dont know how to fix it..

I modified my boardindex.template.php the other day to add the adsense code, and it worked well on my forum (top and at the bottom of my forum's index). and then I decided to make the codes visible on every page and that's the reason why I landed to this forum - trying to figure out how to do that...
I installed successfully the ad management, and added another adsense code on the ad management panel - and yes, it's visible to every page (after a post). but everytime i clicked the "Display ads on every page right below the menu" and/or the other settings, my ads are showing TWICE on each page. I mean, same ads just below each other. I think this is what purplegold trying to say earlier (I kinda read some post back) ..

any idea how can i fixed this?
as far as i can remember, purplegold reinstalled it and then got errors.
i dont wanna get more error since I really am NOT a programmer.. (and being able to do this installation/forum setting is a really big achievement for me considering I only do what I read on the net ;D hehe)

any help will be very much appreciated :D
Title: Re: Ad Management mod
Post by: Bigguy on June 02, 2007, 01:05:14 PM
@ anakmacan: install the mod first through the package manager and then edit the template files manually.

@ rmg_07: Go through the template files and look for duplicate code and remove it.
Title: Re: Ad Management mod
Post by: anakmacan on June 03, 2007, 01:43:57 AM
I forgot what i did, but everything's back to normal now, hehehe ^^
Title: Re: Ad Management mod
Post by: norackdog on June 03, 2007, 02:16:01 AM
@bigguy & whoever can solve this problem

I need your help in modifying this Ad Management Mod.
I can't find Ad Management link under configuration menu of my SMF Administration page.

I have installed the mod successfully since there is no error message appeared. My SMF version is 1.1.2, my theme is SMF Default Theme - Core, but my SMF was configured with indonesian language.

Please don't suggest me to change the languange to english ;D, I won't have problem with english, but most of my visitors will.

Questions:
1. How to activate Ad Management Mod in other languange out of english, especially in the indonesian languange?
2. one more thing, how to add the "select language" drop down menu?
I can see that on top of each page in this forum.

Thanks
Title: Re: Ad Management mod
Post by: babjusi on June 03, 2007, 09:14:36 AM
In order for the mods to work properly, you must have the default theme and english as your forum''s default language. Otherwise you must do some changes. Why don''t you set english as a default and the members of your forum can set the indonesian language individually, simplu by going to their profile-Account Related Settings-Preferred Language:     
It is easy this way. Anyway here you will find that mod that it will allow you to add the "select language" drop down menu in your forum

http://custom.simplemachines.org/mods/index.php?mod=598
Title: Re: Ad Management mod
Post by: norackdog on June 04, 2007, 03:11:26 AM
[EDITED]

I found my self the solution. I renamed:

[SMF Installation Folder]/Themes/default/languages/Ads.english.php

onto:

Ads.indonesian.php



changed back default language to Indonesian and,

Whoala!!

the AD MANAGEMENT menu is still in where it should be.

even all sub menus are still in english, they do not bother me.
Like I said, I am not the one who has problem in comprehending english.

Sorry for my bad english, I should learn more to let it work better.

[/EDITED]




your solution makes sense. Thanks for the advice.

Until I find the way of modifying every mod I have installed (and I will install) so they will be compatible with indonesian languange, I think your solution would be the best for the moment.

Looking forward to hearing, from anyone of you the experts, a direct solution (by modifying the mod package) of my query.
Title: Re: Ad Management mod
Post by: norackdog on June 05, 2007, 11:34:06 AM
is there possibility to count how many time visitor click the ad links, then the mod may automatically add users to or remove from a specific group depends on the counted number of clicks.

later we may give access to some parts of forum only for specific users who have already click ads for at least in a specific number of click.

Gurus, please kindly advise ...
Title: Re: Ad Management mod
Post by: Bigguy on June 06, 2007, 08:28:44 AM
Maybe in the next version of the ad mod. Not in this one I am afraid.
Title: Re: Ad Management mod
Post by: dazlia on June 06, 2007, 11:35:47 AM
Could anyone tell me how to install this please? Im fairly new to SMF and ive added themsse but no idea how to install a mod like this one?

Simple instructions please? cheers
Title: Re: Ad Management mod
Post by: joe90 on June 07, 2007, 03:05:56 AM
Having a bad day, I have installed Ad Management on a forum before so have seen it work and know how it works and looks when its up and running.

Now the problem, tried to install it on a new install forum and it dosen't show up, new forum, no mods, default theme .

Seems to have installed OK using package manager, but I can't find the Ad Management link under configuration menu but it seems to have made the space for it, just not put the link in.

Have I missed somthing?
Title: Re: Ad Management mod
Post by: Bigguy on June 07, 2007, 09:19:30 AM
@ dazlia: Instructions and help can be found at www.smfads.com

@ joe90: What language are you using. ???
Title: Re: Ad Management mod
Post by: askepott on June 07, 2007, 09:39:09 AM
Quote from: Bigguy on June 02, 2007, 01:05:14 PM
@ rmg_07: Go through the template files and look for duplicate code and remove it.

I used to have 2 templates files, boardindex.template.php and index.template.php..
I deleted my boardindex because I like the layout much more using the index.template..
but more prob occured, the ads are not showing onthe main board page ESPECIALLY on those who are using IE..

on my ad management panel, it says :
Edit Ads
Name    Modify
Adsense1    Modify
Adsense1    Modify

2 adsense1 - could that be the problem? I have no idea how to make it appear just 1 =/

will appreciate your help if you can.. thanks :)
Title: Re: Ad Management mod
Post by: joe90 on June 07, 2007, 02:40:37 PM
Quote from: Bigguy on June 02, 2007, 01:05:14 PM
@ anakmacan: install the mod first through the package manager and then edit the template files manually.

@ rmg_07: Go through the template files and look for duplicate code and remove it.
English, tried everything and it looks to be installed OK but it dont show the mod. 
Title: Re: Ad Management mod
Post by: askepott on June 08, 2007, 01:00:39 PM
Help please.......
Title: Re: Ad Management mod
Post by: daWsOn_s on June 09, 2007, 02:53:43 PM
Hi I have some problems. I have just installed Ig -OH theme and I can't use Ad managemente, I mean I can edit and add ads but they won't shpw. I read that it works only with the default theme? What does it means? Only with the theme you have when you do the first installation of SMF? Cause it still works for me with Dilber multicolor that's not the default theme of SMF

Thanks
Title: Re: Ad Management mod
Post by: askepott on June 09, 2007, 10:01:23 PM
I found the duplicate codes on my index.template.php (on my smf ROOT directory)
was able to remove the doubles on the ad management control, but the ads are still either showing twice on the forum index OR nothing at all  :-\
Title: Re: Ad Management mod
Post by: Bigguy on June 10, 2007, 10:51:51 AM
See if there is duplicate code in the index.php file.
Title: Re: Ad Management mod
Post by: askepott on June 10, 2007, 02:50:51 PM
I modified/deleted few stuffs.. (and I think I need to edit/delete more stuff.. but hey, it might actually saved me from paying a programmer to do the job :P hehe)

ok, here's what I did... I'm using a custom theme btw.
I deleted the duplicates on the index.template.php (on my smf root directory).
I only have index.template.php on my current theme folder as I had to delete the boardindex.template.php because  I don't like how the childboards look like lol check index.php on the root and index.template.php on your theme folder for duplicates.

if you're still having a prob after that, i suggest that you replaced your "boardindex.template.php" on your theme folder with boardindex.template.php from the DEFAULT SMF THEME. I did that, and it worked for me. don't forget to make back ups before modifying/replacing files. hehe

for those who don't have a prob with the layout of your custom theme.. i think this link will be helpful :
http://dotmyspot.com/forum/index.php?topic=35.0
I used to use that coding and it worked fine..

smiles.


Title: Re: Ad Management mod
Post by: ictus on June 11, 2007, 11:45:31 AM
Quote from: joe90 on June 07, 2007, 03:05:56 AM
Having a bad day, I have installed Ad Management on a forum before so have seen it work and know how it works and looks when its up and running.

Now the problem, tried to install it on a new install forum and it dosen't show up, new forum, no mods, default theme .

Seems to have installed OK using package manager, but I can't find the Ad Management link under configuration menu but it seems to have made the space for it, just not put the link in.

Have I missed somthing?

I'm having exactly the same problem, it's worked before, but I'm doing a fresh install for a new site, default theme, english as the language, it installs and under configuration in the admin area I get an extra blank line, I've gone through all the permissions, and everything looks fine.

Any ideas?????
Title: Re: Ad Management mod
Post by: babjusi on June 11, 2007, 12:48:08 PM
Quote from: ictus on June 11, 2007, 11:45:31 AM
Quote from: joe90 on June 07, 2007, 03:05:56 AM
Having a bad day, I have installed Ad Management on a forum before so have seen it work and know how it works and looks when its up and running.

Now the problem, tried to install it on a new install forum and it dosen't show up, new forum, no mods, default theme .

Seems to have installed OK using package manager, but I can't find the Ad Management link under configuration menu but it seems to have made the space for it, just not put the link in.

Have I missed somthing?

I'm having exactly the same problem, it's worked before, but I'm doing a fresh install for a new site, default theme, english as the language, it installs and under configuration in the admin area I get an extra blank line, I've gone through all the permissions, and everything looks fine.

Any ideas?????

What is the default language of your forum?
Title: Re: Ad Management mod
Post by: rabidjade on June 17, 2007, 02:00:56 AM
First time user of the mod and good with SMF. I run an English 1.1.2 forum with the original default theme set. When I enable the ads for ANY board the board itself disappears and sometimes the bottom part of the board with the version number and validation buttons appear in the upper right cell of the header. Using adsense ads if that matters. I skimmed the forum and seen several differing issues so I figured I would try mine.
Title: Re: Ad Management mod
Post by: Bigguy on June 17, 2007, 11:19:02 AM
Check that all the edits are in the right place in the BoardIndex.template.php file.
Title: Re: Ad Management mod
Post by: rabidjade on June 17, 2007, 02:15:33 PM
Quote from: Bigguy on June 17, 2007, 11:19:02 AM
Check that all the edits are in the right place in the BoardIndex.template.php file.

What page are these edits on that I can see how it's done?
Title: Re: Ad Management mod
Post by: Bigguy on June 17, 2007, 05:32:37 PM
All the edits are stickied to the top of the Theme Support board at www.smfads.com
Title: Re: Ad Management mod
Post by: ictus on June 18, 2007, 05:07:50 AM
Quote from: babjusi on June 11, 2007, 12:48:08 PM
Quote from: ictus on June 11, 2007, 11:45:31 AM
Quote from: joe90 on June 07, 2007, 03:05:56 AM
Having a bad day, I have installed Ad Management on a forum before so have seen it work and know how it works and looks when its up and running.

Now the problem, tried to install it on a new install forum and it dosen't show up, new forum, no mods, default theme .

Seems to have installed OK using package manager, but I can't find the Ad Management link under configuration menu but it seems to have made the space for it, just not put the link in.

Have I missed somthing?

I'm having exactly the same problem, it's worked before, but I'm doing a fresh install for a new site, default theme, english as the language, it installs and under configuration in the admin area I get an extra blank line, I've gone through all the permissions, and everything looks fine.

Any ideas?????

What is the default language of your forum?

Found the problem, it is set to the default install which is now English-UTF8, I have changed it to English and it now works.

English-UTF8 is the default install using fantastic, so well worth a not in the main read me.
Title: Re: Ad Management mod
Post by: Perochak on June 18, 2007, 11:28:13 PM
Can Any one give a complete manual of changes need to be made in order to place Ads in bablyon template?


Thanks
Title: Re: Ad Management mod
Post by: Bigguy on June 19, 2007, 12:59:19 AM
Yep, right here:

http://www.smfads.com/forums/index.php?topic=475.0

EDIT: Only do the template files if the mod is installed. :)
Title: Re: Ad Management mod
Post by: Perochak on June 19, 2007, 06:22:46 AM
Where to get Mod and How to install it?
Title: Re: Ad Management mod
Post by: ITA003 on June 19, 2007, 06:43:03 AM
Look at

http://custom.simplemachines.org/mods/index.php?mod=255


Title: Re: Ad Management mod
Post by: Perochak on June 19, 2007, 07:09:46 AM
Dear there is error while installing the mod that .xml files need must be changed.
means that

first edit the files then install.

Title: Re: Ad Management mod
Post by: Bigguy on June 19, 2007, 12:18:43 PM
Can you explain. ??? Did you get the right version of the mod. ???

Quote from: perochak on June 19, 2007, 07:09:46 AM
Dear there is error while installing the mod that .xml files need must be changed.
means that

first edit the files then install.


Title: Re: Ad Management mod
Post by: qubbah on June 19, 2007, 11:18:12 PM
how can i make the ad mod only show in board not in board topic...

now the ad not show in board but in board topic...
Title: Re: Ad Management mod
Post by: Bigguy on June 19, 2007, 11:21:00 PM
Have you played with the settings in the admin panel under ad management. ???
Title: Re: Ad Management mod
Post by: qubbah on June 19, 2007, 11:29:34 PM
i think i play all the setting option..

i put like myforum/index.php?board=70.0 and add 70
but it show in myforum/index.php?topic=1090.0
Title: Re: Ad Management mod
Post by: Bigguy on June 19, 2007, 11:32:03 PM
All you need is the board id not the link. You would put:

70

and that's it.
Title: Re: Ad Management mod
Post by: qubbah on June 19, 2007, 11:35:24 PM
i put in 70
but its show in the topic posting not in the board.
Title: Re: Ad Management mod
Post by: Bigguy on June 19, 2007, 11:36:53 PM
Where exactly do you want it to show ??? On the board index or the message index ???
Title: Re: Ad Management mod
Post by: qubbah on June 19, 2007, 11:40:49 PM
board index..

i mean in the page that show whole the topic of that board.. not in topic message...
Title: Re: Ad Management mod
Post by: Bigguy on June 19, 2007, 11:55:28 PM
Display ads on board index:

is really the only option there. Is that close to what you want, or did you have a specific spot in mind. ???
Title: Re: Ad Management mod
Post by: qubbah on June 20, 2007, 01:35:48 AM
i will play more.....
Title: Re: Ad Management mod
Post by: qubbah on June 20, 2007, 02:02:30 AM
For EXAMPLE :

As you can see, we are now in
http://www.simplemachines.org/community/index.php?topic=68632.1520

but i really want to put ad in
http://www.simplemachines.org/community/index.php?board=59.0
Title: Re: Ad Management mod
Post by: Bigguy on June 20, 2007, 02:26:40 AM
You want them in the message index then. ???
Title: Re: Ad Management mod
Post by: choloman05 on June 20, 2007, 12:45:12 PM
Oh yeah, they don't show up there.  Good request.
Title: Re: Ad Management mod
Post by: lonrot on June 21, 2007, 03:46:22 PM
I need to install this mod on SoftMC_Blue, please somebody help me!
Title: Re: Ad Management mod
Post by: Bigguy on June 21, 2007, 09:48:48 PM
They should be posted over at www.smfads.com. Have you tried looking there. ???
Title: Re: Ad Management mod
Post by: Perochak on June 22, 2007, 11:26:57 PM
Please give the names of files to be edit and the location in the file where to edit and what to edit.

thanks
Title: Re: Ad Management mod
Post by: Bigguy on June 22, 2007, 11:43:21 PM
Look in the Theme Support board at the stickies. :)

Quote from: Bigguy on June 21, 2007, 09:48:48 PM
They should be posted over at www.smfads.com. Have you tried looking there. ???

Title: Re: Ad Management mod
Post by: NeverSayNever on June 25, 2007, 11:36:21 AM
I'm using SMF v 1.1.3

downloaded ad mod 1.1.x v2-3

there was a msg saying installed successfully but I just can't find any ad management under the configuration.

please advise. thanks
Title: Re: Ad Management mod
Post by: babjusi on June 25, 2007, 11:37:43 AM
Quote from: NeverSayNever on June 25, 2007, 11:36:21 AM
I'm using SMF v 1.1.3

downloaded ad mod 1.1.x v2-3

there was a msg saying installed successfully but I just can't find any ad management under the configuration.

please advise. thanks

What is the default theme and language of your forum?
Title: Re: Ad Management mod
Post by: NeverSayNever on June 25, 2007, 11:56:11 AM
Quote from: babjusi on June 25, 2007, 11:37:43 AM
Quote from: NeverSayNever on June 25, 2007, 11:36:21 AM
I'm using SMF v 1.1.3

downloaded ad mod 1.1.x v2-3

there was a msg saying installed successfully but I just can't find any ad management under the configuration.

please advise. thanks

What is the default theme and language of your forum?

Quote from: babjusi on June 25, 2007, 11:37:43 AM
Quote from: NeverSayNever on June 25, 2007, 11:36:21 AM
I'm using SMF v 1.1.3

downloaded ad mod 1.1.x v2-3

there was a msg saying installed successfully but I just can't find any ad management under the configuration.

please advise. thanks

What is the default theme and language of your forum?

my default theme is SMF Default Theme-Core

where to check default language?
Title: Re: Ad Management mod
Post by: babjusi on June 25, 2007, 12:58:56 PM
You can check the default language at the Server Settings in the admin panel of your forum.
How did you install smf, manually or through Fantastico?
Title: Re: Ad Management mod
Post by: NeverSayNever on June 25, 2007, 09:33:27 PM
Quote from: babjusi on June 25, 2007, 12:58:56 PM
You can check the default language at the Server Settings in the admin panel of your forum.
How did you install smf, manually or through Fantastico?

my default language is English.

wat is fantastico?

I think i install it manually
Title: Re: Ad Management mod
Post by: NeverSayNever on June 26, 2007, 05:47:00 AM
Quote from: NeverSayNever on June 25, 2007, 09:33:27 PM
Quote from: babjusi on June 25, 2007, 12:58:56 PM
You can check the default language at the Server Settings in the admin panel of your forum.
How did you install smf, manually or through Fantastico?

my default language is English.

wat is fantastico?

I think i install it manually

Help, anyone?
Title: Re: Ad Management mod
Post by: Bigguy on June 26, 2007, 09:45:41 AM
Is the Ads.english.php in the language folder. ???
Title: Re: Ad Management mod
Post by: Stalyn on June 26, 2007, 10:25:16 PM
just for the records. this mod doesn't work with bluehost fantastico.
Title: Re: Ad Management mod
Post by: NeverSayNever on June 26, 2007, 11:00:12 PM
Quote from: Bigguy on June 26, 2007, 09:45:41 AM
Is the Ads.english.php in the language folder. ???

The file is there.

sigh...maybe have to try to install again.

thanks anyway
Title: Re: Ad Management mod
Post by: babjusi on June 27, 2007, 02:05:28 AM
Quote from: Stalyn on June 26, 2007, 10:25:16 PM
just for the records. this mod doesn't work with bluehost fantastico.

Look, what I have seen reading some posts here, there are a lot of people who have installed smf with fantasticko and seem to have problems with mods. Fantastico installs smf with english utf as default language. Try to change it at admin panel-server settings to plain english and see if that would help
Title: Re: Ad Management mod
Post by: Bigguy on June 27, 2007, 08:16:08 AM
You should always install manually not through fantastico as it will through errors like that.
Title: Re: Ad Management mod
Post by: Bigguy on June 27, 2007, 08:19:38 AM
@ NeverSayNever: can you go into admin panel and then to server settings and see what your language is set at.
Title: Re: Ad Management mod
Post by: Sakae on June 28, 2007, 04:08:15 PM
Works like a charm for me and my SMF 1.1.3

Great job, keep doing the good work.
Title: Re: Ad Management mod
Post by: Pranav on June 28, 2007, 10:33:38 PM
when will this mod be available for SMF 1.1.3? I am currently using SMF 1.1.3 and the compatible field says it's only compatible till SMF 1.1.2 . :( So when will this mod be available for SMF 1.1.3?
Title: Re: Ad Management mod
Post by: babjusi on June 28, 2007, 10:43:14 PM
Quote from: ulgaming.net on June 28, 2007, 10:33:38 PM
when will this mod be available for SMF 1.1.3? I am currently using SMF 1.1.3 and the compatible field says it's only compatible till SMF 1.1.2 . :( So when will this mod be available for SMF 1.1.3?

It can be very easy compatible with 1.1.3. Unzip it, change the package-info.xml file. Add 1.1.3 after 1.1.2 where it shows the action for install and uninstall, zip it back again and you are all set
Title: Re: Ad Management mod
Post by: Stalyn on June 28, 2007, 10:45:02 PM
Quote from: babjusi on June 27, 2007, 02:05:28 AM
Quote from: Stalyn on June 26, 2007, 10:25:16 PM
just for the records. this mod doesn't work with bluehost fantastico.

Look, what I have seen reading some posts here, there are a lot of people who have installed smf with fantasticko and seem to have problems with mods. Fantastico installs smf with english utf as default language. Try to change it at admin panel-server settings to plain english and see if that would help

I did a clean install. thanks for the tip!
Title: Re: Ad Management mod
Post by: babjusi on June 28, 2007, 10:46:07 PM
You are welcome Stalyn
Title: Re: Ad Management mod
Post by: Stalyn on June 28, 2007, 10:47:18 PM
Quote from: babjusi on June 28, 2007, 10:43:14 PM
Quote from: ulgaming.net on June 28, 2007, 10:33:38 PM
when will this mod be available for SMF 1.1.3? I am currently using SMF 1.1.3 and the compatible field says it's only compatible till SMF 1.1.2 . :( So when will this mod be available for SMF 1.1.3?

It can be very easy compatible with 1.1.3. Unzip it, change the package-info.xml file. Add 1.1.3 after 1.1.2 where it shows the action for install and uninstall, zip it back again and you are all set

I was using it with 1.1.2 then upgraded to 1.1.3 and still work....
Title: Re: Ad Management mod
Post by: babjusi on June 28, 2007, 10:49:28 PM
Maybe, he installed a fresh 1.1.3 or didn''t have  the ad managment mod installed before he upgraded to 1.1.3
Title: Re: Ad Management mod
Post by: Pranav on June 29, 2007, 09:11:50 AM
Yay! It works! Thanks for the help "babjusi". :D
Title: Re: Ad Management mod
Post by: babjusi on June 29, 2007, 09:50:26 AM
You are welcome ulgaming.net
Title: Re: Ad Management mod
Post by: ShadowStriker on June 30, 2007, 11:50:32 AM
Quote from: babjusi on June 28, 2007, 10:43:14 PM
Quote from: ulgaming.net on June 28, 2007, 10:33:38 PM
when will this mod be available for SMF 1.1.3? I am currently using SMF 1.1.3 and the compatible field says it's only compatible till SMF 1.1.2 . :( So when will this mod be available for SMF 1.1.3?

It can be very easy compatible with 1.1.3. Unzip it, change the package-info.xml file. Add 1.1.3 after 1.1.2 where it shows the action for install and uninstall, zip it back again and you are all set

I don't see 1.1.2, I only see "1.1 RC2, 1.1 RC3, 1.1, 1.1.1-1.1.99"
Title: Re: Ad Management mod
Post by: babjusi on June 30, 2007, 11:51:46 AM
This 1.1.99 it shows that the mod is compatible with all the 1.1 series
Title: Re: Ad Management mod
Post by: ShadowStriker on June 30, 2007, 12:07:31 PM
oh lol... I should have tried it before I edited the file, cause now it works...
Title: Re: Ad Management mod
Post by: babjusi on June 30, 2007, 12:12:00 PM
Glad to hear it that it worked out for you ShadowStriker
Title: Re: Ad Management mod
Post by: smartsheep on July 01, 2007, 09:57:01 AM
Hi i recently signed up for google adsense.
My site: http://www.smartsheep.net
I use the AdManagment mod, and it works perfectly for banner xchange and i worked for adbrite also, but it wont show adsense?
Help please! Any ideas? Do i have to wait for those ads to appear, or what?
Thank you
Title: Re: Ad Management mod
Post by: babjusi on July 01, 2007, 10:35:14 AM
Quote from: smartsheep on July 01, 2007, 09:57:01 AM
Hi i recently signed up for google adsense.
My site: http://www.smartsheep.net
I use the AdManagment mod, and it works perfectly for banner xchange and i worked for adbrite also, but it wont show adsense?
Help please! Any ideas? Do i have to wait for those ads to appear, or what?
Thank you

Have you checked that the permissions are set?
Title: Re: Ad Management mod
Post by: smartsheep on July 01, 2007, 12:11:40 PM
what permissions?

p.s. i am reapeating now: if i put my adbrite or bannerxcange ads there i can see the banners/ads
Title: Re: Ad Management mod
Post by: ITA003 on July 01, 2007, 06:14:34 PM
How do you configure google adsense?

In attach  my config about Google Adsense. The first is the content section and second are the position of Google Adsense in Forum.

The permission are in Admin -> Permission and for every group do you want to see the ads you mu check Enable Ads, but if you already see you ads maybe are already checked.

Bye
Title: Re: Ad Management mod
Post by: KaiserDivus on July 01, 2007, 09:11:47 PM
I need a little help, this addon sounds cool but when i install it the option under config isnt there but the link is in the source and the entire mod can be accessed but there is no writting anywhere.  I assume this is a language problem but i am still a little new to smf so i cant find out how to fix this myself, thanks to anyone
Title: Re: Ad Management mod
Post by: babjusi on July 01, 2007, 09:17:06 PM
Quote from: KaiserDivus on July 01, 2007, 09:11:47 PM
I need a little help, this addon sounds cool but when i install it the option under config isnt there but the link is in the source and the entire mod can be accessed but there is no writting anywhere.  I assume this is a language problem but i am still a little new to smf so i cant find out how to fix this myself, thanks to anyone

What theme and language are using?
Title: Re: Ad Management mod
Post by: KaiserDivus on July 01, 2007, 09:23:05 PM
Quote from: babjusi on July 01, 2007, 09:17:06 PM
Quote from: KaiserDivus on July 01, 2007, 09:11:47 PM
I need a little help, this addon sounds cool but when i install it the option under config isnt there but the link is in the source and the entire mod can be accessed but there is no writting anywhere.&nbsp; I assume this is a language problem but i am still a little new to smf so i cant find out how to fix this myself, thanks to anyone

What theme and language are using?

Im using WoW-DK but it doesnt work on defult either, and I'm using English
Title: Re: Ad Management mod
Post by: babjusi on July 01, 2007, 09:33:11 PM
To make it work with a custom theme, have a look at this link. It will show you step by step as to what changes you need to make and where to apply them

http://modparser.dev.dansoftaustralia.net/index.php

Your default language, is plain english or english utf?
Title: Re: Ad Management mod
Post by: KaiserDivus on July 01, 2007, 09:41:55 PM
english-utf8
Title: Re: Ad Management mod
Post by: babjusi on July 01, 2007, 09:47:19 PM
Quote from: KaiserDivus on July 01, 2007, 09:41:55 PM
english-utf8

Change it to plain english and you will see the mod''s settings under Configuration in your Admin Panel
Title: Re: Ad Management mod
Post by: KaiserDivus on July 01, 2007, 09:51:26 PM
Thanks man that worked :)
Title: Re: Ad Management mod
Post by: babjusi on July 01, 2007, 09:53:56 PM
Quote from: KaiserDivus on July 01, 2007, 09:51:26 PM
Thanks man that worked :)

You are welcome, glad I could be of help
Title: Re: Ad Management mod
Post by: smartsheep on July 02, 2007, 05:29:24 AM
Quote from: ITA003 on July 01, 2007, 06:14:34 PM
How do you configure google adsense?

In attach  my config about Google Adsense. The first is the content section and second are the position of Google Adsense in Forum.

The permission are in Admin -> Permission and for every group do you want to see the ads you mu check Enable Ads, but if you already see you ads maybe are already checked.

Bye


ITA003 Thanks for fast reply, but it still doest show :(
I added the permissions, actually all were on except for guests.

btw here is my google adsense code if anyone could just try it to c if it works...




<script type="text/javascript"><!--
google_ad_client = "pub-9866793967548805";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Title: Re: Ad Management mod
Post by: ITA003 on July 02, 2007, 05:52:12 AM
Check if your Google Adsense account are enable at www.google.com/adsense
Title: Re: Ad Management mod
Post by: smartsheep on July 02, 2007, 06:40:35 AM
This is what i got when i logged in in the "Reports / Overview" page, i didn't have these statistics before

QuotePage impressions      Clicks      Page CTR      Page eCPM [?]      Earnings
AdSense for Content    30    0    0.00%    $0.00    $0.00
view all AdSense for Content channels »

AdSense for Search    - No data available -
Referrals    - No data available -
Total Earnings       $0.00

Plus i saw in the Users Online "Google AdSense spider "...
So it looks like it works but... I CANT SEE ADS!!!  :(
Title: Re: Ad Management mod
Post by: ITA003 on July 02, 2007, 06:52:04 AM
I see the Google Ads in your site www.smartsheep.net see my attach...  :o
Title: Re: Ad Management mod
Post by: smartsheep on July 02, 2007, 07:14:57 AM
 :o :o :o
hm...
Might be Kaspersky's Ad blocker...
Or maybe... Firefox has its own ad protection system...
Ill check it out and let you folk know ;)
CHEERS MATE
Title: Re: Ad Management mod
Post by: smartsheep on July 02, 2007, 07:27:12 AM
Well... Obviously.. It was just a matter of time... needed to wait for the adsense spiders to do their work... It works now...
THANK YOU MAN
RESPECT
Title: Re: Ad Management mod
Post by: ITA003 on July 02, 2007, 07:31:19 AM
My screenshot is with Firefox 2.0.0.4
Title: Re: Ad Management mod
Post by: babjusi on July 02, 2007, 07:36:14 AM
Have a look at ''disable ads for the administrator'', is it checked or unchecked? Or if you have Kaspersky Internet Security, disable ''Anti-banner''
Title: Re: Ad Management mod
Post by: smartsheep on July 02, 2007, 07:47:20 AM
well... now it wont show again, and i think its not because of caspersky, i already switched it on and off + the anti-banner is off...
so... I changed the banner design in the adsense pannel, so it might  be that for every change it needs time to apply....

p.s. how can i disable ads on my forum that concern "sheep" cause when i saw the ads for a short time its all about sheep stuff, and my forum is just called smart sheep doesn't really do much with sheeps...
Thanks, again ;)
Title: Re: Ad Management mod
Post by: smartsheep on July 02, 2007, 08:14:15 AM
one more question, how can i as admin (and only i) put a referal in my signature like this one...

<script type="text/javascript"><!--
google_ad_client = "pub-9866793967548805";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQhaT2_gEaCI52gVKP95-sKLGsuIEBMAA";
google_ad_channel = "";
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

cheers
Title: Re: Ad Management mod
Post by: babjusi on July 02, 2007, 08:36:09 AM
Try to put it between html tags
Title: Re: Ad Management mod
Post by: smartsheep on July 02, 2007, 08:46:52 AM
it wont fit :(
max 300 characters...
How do i change this? And can this be set only for me?
thx for reply ;)
Title: Re: Ad Management mod
Post by: babjusi on July 02, 2007, 09:00:29 AM
Yes, by default only the admin can use html
Title: Re: Ad Management mod
Post by: smartsheep on July 02, 2007, 09:42:50 AM
but how can i increase characters?
Title: Re: Ad Management mod
Post by: thinker on July 02, 2007, 12:22:08 PM
Everytime I post an ad, it shows up twice both in the "Edit Ad section" and on my website http://www.mitraz.com/forum/index.php. I found several posts on this same issue but could not locate an answer. It enters the same ad twice side by side on it's own and when I remove any one of them both of them are removed at the same time. I tried different ways. I am using default theme and not clicking twice. Same Ads are showing up twice. Please help. Thanks.


Title: Re: Ad Management mod
Post by: tosp2 on July 02, 2007, 06:50:06 PM
Can anyone help me with a database problem regarding this mod?  I installed it on 1.1.3 before I guess I realized it was ready.  The mod is actually installed, but I get errors and some problems.

1. When I upload loadads.php into my sources directory, all of my existing posts in my forum vanish!  I created the smf_ads table and ad_settings table manually with the columns as instructed in one of the manual posts post here or on the smfads.com site.
2. Even though I made sure to add the "Category" column, I still get an error that says undefined index when I load the loadads.php file and try to enter an ad in the admin panel.

I believe this to be a DB problem as loadads.php is affecting whatever table or column in my database that houses my forum posts.  Either that, or there is something wrong with loadads.php.

Can anyone help?  Or advise what I can do?  Is this something that can easily be fixed, or do I need to completely uninstall the mod and delete my new database tables?  I just hate to have to do all the work all over again once the new updates are made for 1.1.3.  Thanks.
Title: Re: Ad Management mod
Post by: L.G.S on July 02, 2007, 07:05:52 PM
Hi, I'm using famouspadexx and cannot make the changes to index.template.php properly, can you post the code changes for that theme please?
Title: Re: Ad Management mod
Post by: ITA003 on July 03, 2007, 02:12:57 AM
@thinker: Look for duplicated code in your Theme directory in
index.template.php
boradIndex.template.php
Display.template.php
MessageIndex.template.php

maybe code about this:

    //Display ads on the top of the page
    if (function_exists("show_topofpageAds"))
    {
        $ads = show_topofpageAds();   
        if(!empty($ads))
            if($ads['type']==0)
                echo $ads['content'];
            else
                eval($ads['content']);   
        unset($ads);
    }


are duplicated.
Title: Re: Ad Management mod
Post by: thinker on July 03, 2007, 08:09:23 PM
these codes are duplicated all over the index.template. I tried uninstalling the ad mod and reinstall but no change. It appears to be a bug in the program, rather than myself modifying this mod upside down, is it possible that Jerm please issue a bug fix for it?
Thanks.
Title: Re: Ad Management mod
Post by: Sheree on July 03, 2007, 09:50:44 PM
got this error upon installation ad_mod_1-1-x_v2-3

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code                    install.php    
2.    Execute Modification          install.xml                        Modification parse error
3.    Execute Modification               -                               Modification parse error
4.    Extract File                       ./Sources/Ads.php    
5.    Extract File                      ./Sources/LoadAds.php    
6.    Extract File                     ./Themes/default/Ads.template.php    
7.    Extract File                   ./Themes/default/languages/Ads.english.php

i'm using smf 1.1.3
Title: Re: Ad Management mod
Post by: ITA003 on July 04, 2007, 04:33:29 AM
Quote from: thinker on July 03, 2007, 08:09:23 PM
these codes are duplicated all over the index.template. I tried uninstalling the ad mod and reinstall but no change. It appears to be a bug in the program, rather than myself modifying this mod upside down, is it possible that Jerm please issue a bug fix for it?

Uninstall and remove the code above manually! Than re-install the package.
Title: Re: Ad Management mod
Post by: thinker on July 04, 2007, 06:21:16 AM
I tried that, didn't work
Title: Re: Ad Management mod
Post by: dailytalk on July 04, 2007, 07:52:35 PM
Quote from: ITA003 on July 03, 2007, 02:12:57 AM
@thinker: Look for duplicated code in your Theme directory in
index.template.php
boradIndex.template.php
Display.template.php
MessageIndex.template.php

maybe code about this:

&nbsp; &nbsp; //Display ads on the top of the page
&nbsp; &nbsp; if (function_exists("show_topofpageAds"))
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; $ads = show_topofpageAds();&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; if(!empty($ads))
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($ads['type']==0)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $ads['content'];
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eval($ads['content']);&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; unset($ads);
&nbsp; &nbsp; }


are duplicated.


I have the same problem like thinker.....after I had removed the dublicated codes the banners now appear correct on the website but in the  "Edit Ad section"  I still have dublicated ads. Is there another file with dublicated codes?
Title: Re: Ad Management mod
Post by: Bigguy on July 04, 2007, 11:39:10 PM
Check your index.php file in the ROOT of your SMF install and remove the duplicate code from there.
Title: Re: Ad Management mod
Post by: dailytalk on July 05, 2007, 01:19:46 PM
@Bigguy, thank you very much. Your tip solved my problem. In the Index.php there was the following code twice:

// Load all the ads up
   if (function_exists("loadAds"))
      loadAds();

After I had removed one, the problem was solved.
Title: Re: Ad Management mod
Post by: tpruessner on July 05, 2007, 05:07:27 PM
Hi, I have searched this topic a few times to try to find an answer to my question, but I can't seem to find it.

I can't find the place to enable the permission to view my ads.  I have looked and looked through "permissions by membergroup" and I can't find it anywhere.  I am not sure what the problem is.  It isn't anywhere to be found.

I am running Ad Manage Mod 2.3 on SMF 1.1.2.  If you need a list of my mods, I can supply that as well.

Thanks!
Title: Re: Ad Management mod
Post by: babjusi on July 05, 2007, 06:51:22 PM
It should be on the top right side. Are you using the default theme tpruessner or a custom one?
Title: Re: Ad Management mod
Post by: tpruessner on July 05, 2007, 09:44:12 PM
Default theme that I change the css style sheet for.

I have checked and checked and it wasn't anywhere there.  I found the www.smfads.com website in this thread and did find my problem.  In my managepermissions.php file, I was missing this bit of code:

'ad_manage' => array(
            'ad_manageperm' => false,
         ),


It needs to be right before this bit of code:


'pm' => array(
Title: Re: Ad Management mod
Post by: babjusi on July 06, 2007, 02:44:37 AM
Glad you got it solved
Title: Re: Ad Management mod
Post by: Bigguy on July 06, 2007, 09:45:20 AM
I should be over at www.smfads.com later today if anyone does need additional help. :)
Title: Re: Ad Management mod
Post by: thinker on July 06, 2007, 02:05:10 PM
Quote from: Bigguy on July 06, 2007, 09:45:20 AM
I should be over at www.smfads.com later today if anyone does need additional help. :)
Could you please take a look at the problem that I posted earlier - when you get a chance:

"Everytime I post an ad, it shows up twice both in the "Edit Ad section" and on my website http://www.mitraz.com/forum/index.php. I found several posts on this same issue but could not locate an answer. It enters the same ad twice side by side on it's own and when I remove any one of them both of them are removed at the same time. I tried different ways. I am using default theme and not clicking twice. Same Ads are showing up twice. Please help. Thanks."
Title: Re: Ad Management mod
Post by: djpaddystudio7 on July 07, 2007, 02:08:20 PM
Quote from: tpruessner on July 05, 2007, 09:44:12 PM
Default theme that I change the css style sheet for.

I have checked and checked and it wasn't anywhere there.  I found the www.smfads.com website in this thread and did find my problem.  In my managepermissions.php file, I was missing this bit of code:

'ad_manage' => array(
            'ad_manageperm' => false,
         ),


It needs to be right before this bit of code:


'pm' => array(



oh thank you so much for that !!!
Title: Re: Ad Management mod
Post by: ham1299 on July 08, 2007, 11:26:43 PM
I apologize if this has already been addressed - 81 pages is a LOT to look through! Is there an easy way to modify all of my themes? I actually only use two - the SMF default as well as one based on that, but not all of my ads are showing in the custom theme. Do I just need to add some script to my custom theme, or are there files I need to upload?
Title: Re: Ad Management mod
Post by: AZCyote on July 09, 2007, 01:45:14 AM
I've installed 2.0.3 ok in SMF 1.1.3 but there are no added options under the config section
Title: Re: Ad Management mod
Post by: phpchris on July 09, 2007, 05:52:20 AM
Quote from: AZCyote on July 09, 2007, 01:45:14 AM
I've installed 2.0.3 ok in SMF 1.1.3 but there are no added options under the config section

Same here, is it compatible?
Title: Re: Ad Management mod
Post by: ham1299 on July 09, 2007, 09:41:25 AM
I have another dumb question (in addition to my one above about custom themes). I am trying to get these ads centered on the page, and so far cannot get them to do so! ??? What do I do to get them to center?
Title: Re: Ad Management mod
Post by: Bigguy on July 09, 2007, 12:15:56 PM
Use center tags:

<center>adcode</center>

or

<div align=center>ad code</div>
Title: Re: Ad Management mod
Post by: ham1299 on July 09, 2007, 02:46:21 PM
Quote from: Bigguy on July 09, 2007, 12:15:56 PM
Use center tags:

<center>adcode</center>

or

<div align=center>ad code</div>
DUH! Thank you!  I was trying to do it like php code <align="center"> instead of just the <center> tags!  ::) Thanks for the help.
Title: Re: Ad Management mod
Post by: thinker on July 09, 2007, 09:49:52 PM
Quote from: thinker on July 06, 2007, 02:05:10 PM
Quote from: Bigguy on July 06, 2007, 09:45:20 AM
I should be over at www.smfads.com later today if anyone does need additional help. :)
Could you please take a look at the problem that I posted earlier - when you get a chance:

"Everytime I post an ad, it shows up twice both in the "Edit Ad section" and on my website http://www.mitraz.com/forum/index.php. I found several posts on this same issue but could not locate an answer. It enters the same ad twice side by side on it's own and when I remove any one of them both of them are removed at the same time. I tried different ways. I am using default theme and not clicking twice. Same Ads are showing up twice. Please help. Thanks."
Quote from: Bigguy on July 09, 2007, 12:15:56 PM
Use center tags:

<center>adcode</center>

or

<div align=center>ad code</div>
Bigguy, have you gotten a chance to look into this problem yet? Thanks.
Title: Re: Ad Management mod
Post by: clownpoop on July 10, 2007, 04:46:02 AM
hi,

I have my mod installed successfully but I can't find Ad Management in Configuration
Title: Re: Ad Management mod
Post by: Roger on July 10, 2007, 02:26:41 PM
Hi,

I installed it, but when I add a skyscraper add, it adds it twice (in the database and on the pages).  Any idea of what the problem might be?  This happens for any ad btw.

Thanks,
Roger
Title: Re: Ad Management mod
Post by: babjusi on July 10, 2007, 03:45:26 PM
Quote from: clownpoop on July 10, 2007, 04:46:02 AM
hi,

I have my mod installed successfully but I can't find Ad Management in Configuration

What theme and language are you using?
Title: Re: Ad Management mod
Post by: Filipina on July 10, 2007, 06:11:42 PM
i have tried to search these 82 pages but i am getting confused  ... hopefully this is a simple question :)

If I want to upgrade to the latest version of this MOD do I have to unistall the last version, or just upload the new version and it will replace the old one? :)  I am using SMF default 1.1.3

If it fails then can i just upload the old version again?
Title: Re: Ad Management mod
Post by: Bigguy on July 10, 2007, 08:28:54 PM
Uninstall the version you are using now and install the new version. All the ad code you have placed will be there when you install the new.
Title: Re: Ad Management mod
Post by: Filipina on July 10, 2007, 09:36:07 PM
thanks for the response big guy... i seem to be in this endless cycle with errors trying to install or unistall mods... i have 19 mods but not million.... here is the error i got when trying unistall the 2.0 ad mod... any ideas?  :)

5. Execute Modification ./Themes/default/Display.template.php Test failed
Title: Re: Ad Management mod
Post by: Bigguy on July 10, 2007, 09:51:14 PM
You can iether remove the code manually or you can uninstall it and replace the failed file. I would think the reason it failed would be because of another mod installed after the ad mod was has changed the file somewhat. So you best bet would be to uninstall it and remove the code manually from that file.

All the edits to be removed can be found here:

http://www.smfads.com/forums/index.php?topic=475.0
Title: Re: Ad Management mod
Post by: thinker on July 10, 2007, 09:58:46 PM
Quote from: Roger on July 10, 2007, 02:26:41 PM
Hi,

I installed it, but when I add a skyscraper add, it adds it twice (in the database and on the pages).&nbsp; Any idea of what the problem might be?&nbsp; This happens for any ad btw.

Thanks,
Roger

I have the same problem and been posting this for last few weeks, unfortunately no response. This would have been a very useful mod if this problem could be addressed. Bigguy, do you know why this is happening or what could be done?
Thanks.
Title: Re: Ad Management mod
Post by: Bigguy on July 10, 2007, 10:01:59 PM
This has been addressed and answered. ;) Check for duplicate code in the index.php file in the ROOT of your SMF install and/or check out the 4 template files that the ad mod edits during install and remove the duplicate code there. All edits can be found here:

http://www.smfads.com/forums/index.php?topic=475.0
Title: Re: Ad Management mod
Post by: thinker on July 10, 2007, 10:10:00 PM
Thanks. Sorry, I couldn't find it before. I am going to try this. But only thing I am worried about....how to take precaution, so that I don't mess things up in the forum software....I am new with forum and still in a learning stage. Could you please advise.
Thanks.
Title: Re: Ad Management mod
Post by: Bigguy on July 10, 2007, 10:34:16 PM
BACKUP BACKUP BACKUP, do that first. The database and the rest of the forum if you have cpanel or a similar control panel on your host that will allow that. Download the file you are editing with ftp and use a good editor like "PHP Designer 2007" it is what I use. uninstall the mod and then when you are going to re-upload the file (display.template.php) that you edited, rename the original (that is on the host still) so the one you edited does not overwrite it. This way in case your edits did not work you can still go back to the original. The most important thing to do is backup. :) Hope that helps a bit. :)
Title: Re: Ad Management mod
Post by: thinker on July 10, 2007, 11:09:38 PM
Thanks. Let me try ::)
Title: Re: Ad Management mod
Post by: Filipina on July 10, 2007, 11:38:00 PM
Quote from: Bigguy on July 10, 2007, 09:51:14 PM
You can iether remove the code manually or you can uninstall it and replace the failed file. I would think the reason it failed would be because of another mod installed after the ad mod was has changed the file somewhat. So you best bet would be to uninstall it and remove the code manually from that file.

All the edits to be removed can be found here:

http://www.smfads.com/forums/index.php?topic=475.0

Hi bigguy and thanks for the helpful information.... i went and looked at those edits and let me make sure i understand this...

since when i tried to unistall the only test that failed was the Display.template.php i guess that is the only file i need to worry about?

when looking at my Display.template.php code with the 2.0 Ad mod I have installed now (and seeing the 3 needed changes to that file mentioned in the link) 2 of them already look like the new code mentioned... it is only the 3rd one that still looks like the "before" code. &nbsp;I wonder how that happened :) &nbsp;
Title: Re: Ad Management mod
Post by: Bigguy on July 11, 2007, 12:27:49 AM
Yes Display.template.php is the only file you have to worry about. I am not quite sure I understand that last part but all 3 changes have to be reversed.
Title: Re: Ad Management mod
Post by: fangweile on July 11, 2007, 07:36:44 AM
I installed this mod and add my google adsense skyscraper there but it doesnt appear in my page. I choose Display ads on every page as a tower on the right side but it doest appear. The same thing happens also in my other adds,like  in banner and leaderboard.
Title: Re: Ad Management mod
Post by: babjusi on July 11, 2007, 08:49:15 AM
Quote from: fangweile on July 11, 2007, 07:36:44 AM
I installed this mod and add my google adsense skyscraper there but it doesnt appear in my page. I choose Display ads on every page as a tower on the right side but it doest appear. The same thing happens also in my other adds,like  in banner and leaderboard.

One  quick question. What theme and language are using?
Title: Re: Ad Management mod
Post by: fangweile on July 11, 2007, 08:34:31 PM
I used dilber mc theme and only english language. I have tried the default theme but it doesn't appear either.
Title: Re: Ad Management mod
Post by: babjusi on July 11, 2007, 08:41:09 PM
Quote from: fangweile on July 11, 2007, 08:34:31 PM
I used dilber mc theme and only english language. I have tried the default theme but it doesn't appear either.

If it doesn''t appear with the default theme as well, then maybe you have not enabled the permissons.

P.S Your default language, is it plain english, or maybe english utf8? If that is the last one, then change it to plain english.
Title: Re: Ad Management mod
Post by: fangweile on July 11, 2007, 10:35:07 PM
the ad permission is already enabled but still I cannot view my ads, I don't know if it is english utf8 or plain english. Where I can found the language setting, I have only one installed language in my forum, the language directory display only setting.english.php
Title: Re: Ad Management mod
Post by: babjusi on July 11, 2007, 10:44:20 PM
How about the other members of your forum, can they see the ads?
You not seeing the ads, can be due to several reasons. Like for ex, do you have Kaspersky Internet Security in your pc? If so, make sure to disable the banner option. Or check out the mod''s settings. Maybe you have disabled ads for administrators
Title: Re: Ad Management mod
Post by: fangweile on July 11, 2007, 11:11:12 PM
My adds is now working when I choose/check the option "displays add in board index" but I want to display it at the bottom of my page not in the top. When I check option "Display ads on the bottom of the page" it doesn't display anything.
Title: Re: Ad Management mod
Post by: thinker on July 12, 2007, 12:29:11 AM
Quote from: Bigguy on July 10, 2007, 10:34:16 PM
BACKUP BACKUP BACKUP, do that first. The database and the rest of the forum if you have cpanel or a similar control panel on your host that will allow that. Download the file you are editing with ftp and use a good editor like "PHP Designer 2007" it is what I use. uninstall the mod and then when you are going to re-upload the file (display.template.php) that you edited, rename the original (that is on the host still) so the one you edited does not overwrite it. This way in case your edits did not work you can still go back to the original. The most important thing to do is backup. :) Hope that helps a bit. :)

Thanks for your help, Bigguy....I have performed the actions...all good now. Codes were duplicated.
Title: Re: Ad Management mod
Post by: thinker on July 12, 2007, 12:40:00 AM
Quote from: Bigguy on July 09, 2007, 12:15:56 PM
Use center tags:

<center>adcode</center>

or

<div align=center>ad code</div>

Which template file should I update for this and where do I insert the 'center' code? Thanks.
Title: Re: Ad Management mod
Post by: Bigguy on July 12, 2007, 02:39:39 AM
You put the tags around the ad code that you add to the ad management mod after you install it.
Title: Re: Ad Management mod
Post by: Bigguy on July 12, 2007, 02:40:49 AM
Are you using a custom theme. ???

Quote from: fangweile on July 11, 2007, 11:11:12 PM
My adds is now working when I choose/check the option "displays add in board index" but I want to display it at the bottom of my page not in the top. When I check option "Display ads on the bottom of the page" it doesn't display anything.
Title: Re: Ad Management mod
Post by: fangweile on July 12, 2007, 05:28:37 AM
I using dilber mc as quoted below.
Quote from: fangweile on July 11, 2007, 08:34:31 PM
I used dilber mc theme and only english language. I have tried the default theme but it doesn't appear either.
Title: Re: Ad Management mod
Post by: Bigguy on July 12, 2007, 12:28:47 PM
I have put together some edited theme files that already have the ad mod edits in them. You can go here (http://files4.smfhelp.com/) and then to this directory (http://files4.smfhelp.com/index.php?dir) and get the dilber files I edited. Read the red part at the bottom please. And backup the original files before using these. You want the "dilber.zip" file.
Title: Re: Ad Management mod
Post by: fangweile on July 12, 2007, 10:55:02 PM
Thanks a lot, my ads are working fine now, it is now displayed at the bottom of my page but it  conflicts with my other mods installed.  BTW i can fix the other mod soon. Thanks again
Title: Re: Ad Management mod
Post by: DaCheat on July 14, 2007, 08:25:42 PM
I read through as much as I could to see if I couldn't find the answer myself, but for some reason only myself and my other Admin's account can see the ads.

I'm using Google Adsense, with SMF version 1.1.3, with the Cityscape theme.

I've tried looking in the templates to see if permissions where set wrong or something, but I haven't found anything yet.

Any help would be appreciated.




Edit: Nevermind I found out what was wrong
Title: Re: Ad Management mod
Post by: SlowMo on July 16, 2007, 01:33:31 PM
can ad management be included to configure ads to be added

1)when you choose to reply to a post/topic?
2)display an ad after (any number) of topics per page in the message index?

or is this too complicated?
thanks for any info.
Title: Re: Ad Management mod
Post by: Bigguy on July 16, 2007, 01:48:16 PM
This cannot be done in this version of the ad mod. It might be implemented at a later date.
Title: Re: Ad Management mod
Post by: caganixo7 on July 16, 2007, 03:40:03 PM
hi,
I'm trying to install ad management mod in my smf 1.1.2 forum but I'm not using the default skin.. can't use package manager.
I'm using parser do find out what modifications I have to do, but the first thing that the parser tell's me to do is to run install.php, and then I do that I get this: Fatal error: Call to undefined function db_query() in /home/madleiloex/domains/pmteam.org/public_html/umf/install.php on line 6

help plz!!
thank's in advance!
Title: Re: Ad Management mod
Post by: Bigguy on July 17, 2007, 12:49:18 PM
Why can you not use the package manager. Just because you are not on the default theme does not mean that you can't install it that way. All you do is use the package manager to install it and then manually do the edits to ONLY the template files of the theme you want to use. There should only be 4 or less to edit.  Hope that helps. :)
Title: Re: Ad Management mod
Post by: caganixo7 on July 17, 2007, 02:42:49 PM
packager manager does not work on my host.. I had to install all the other mods using the parser... :( but now.. this error when I run install.php.. rrrr
don't know that to do.. :(
Title: Re: Ad Management mod
Post by: Bigguy on July 17, 2007, 04:48:14 PM
Why will it not work on your host. ???
Title: Re: Ad Management mod
Post by: ~Unkn0wn~ on July 17, 2007, 11:19:53 PM
Very, very nice idea! And nice mod, anyway to make it work on AA Damage? I dont want to use smf default :D
Title: Re: Ad Management mod
Post by: Bigguy on July 18, 2007, 12:03:53 PM
If you go to www.smfads.com you might be able to search for the template files to see if thier there.
Title: Re: Ad Management mod
Post by: ~Unkn0wn~ on July 18, 2007, 01:05:59 PM
I Will try it, thanks
Title: Re: Ad Management mod
Post by: smartmouse on July 19, 2007, 06:20:35 AM
Hello, i want to manually install admod (Ad Management mod) on my theme (Black14k) but i do not know how to since the install.xml file says:

<file name="$themedir/index.template.php">
<operation>
<search position="before"><![CDATA[<body>';]]></search>

<add><![CDATA[
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
]]>
</add>
</operation>


and in the index.template.php file there is not <body>';... how to add that code then?


This is default index.template.php file:

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>';



And this is my index.template.php file:

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>
<a name="top"></a>';
Title: Re: Ad Management mod
Post by: moazam on July 19, 2007, 11:51:29 AM
Hi guys,
       I am new to SMF, i like this mod, just want to know if anyone integrated this mod to Orange T theme.. http://custom.simplemachines.org/themes/index.php?lemma=155 . Please send me files if any one already added this mod to orange theme.

Thanks
Title: Re: Ad Management mod
Post by: Bigguy on July 19, 2007, 11:57:22 AM
The orange-LT theme files I have modified and they can be found here:

CLICK (http://files4.smfhelp.com/index.php?dir=Ad+mod+edited+files%2F)

These are NOT modification packages, unzip and replace the template files in your theme with the ones in the .zip file. DO NOT overwrite the original template files as you may need them.
Title: Re: Ad Management mod
Post by: babjusi on July 19, 2007, 11:58:05 AM
Quote from: moazam on July 19, 2007, 11:51:29 AM
Hi guys,
       I am new to SMF, i like this mod, just want to know if anyone integrated this mod to Orange T theme.. http://custom.simplemachines.org/themes/index.php?lemma=155 . Please send me files if any one already added this mod to orange theme.

Thanks

I think that you will find the answer to that question here

http://files4.smfhelp.com/index.php?dir=Ad+mod+edited+files%2F
Title: Re: Ad Management mod
Post by: babjusi on July 19, 2007, 11:58:46 AM
P..s. Bigguy beat me to it
Title: Re: Ad Management mod
Post by: Bigguy on July 19, 2007, 11:59:29 AM
@ smartmouse: Will it not install through the package manager. ??? Why would you do it manually. All the edits can be found stickied to the "Theme Support" board at www.smfads.com

P.S. Not by much babjusi, lol. :)
Title: Re: Ad Management mod
Post by: moazam on July 19, 2007, 12:01:44 PM
Quote from: Bigguy on July 19, 2007, 11:57:22 AM
The orange-LT theme files I have modified and they can be found here:

CLICK (http://files4.smfhelp.com/index.php?dir=Ad+mod+edited+files%2F)

These are NOT modification packages, unzip and replace the template files in your theme with the ones in the .zip file. DO NOT overwrite the original template files as you may need them.

My Oh My!!!!!!!! you saved couple of hours work! Thanks so much man!
Title: Re: Ad Management mod
Post by: Bigguy on July 19, 2007, 12:02:30 PM
I try to save all the template files I edit, hence the list. There should be more to come eventually. :)
Title: Re: Ad Management mod
Post by: moazam on July 19, 2007, 12:04:18 PM
Quote from: Bigguy on July 19, 2007, 12:02:30 PM
I try to save all the template files I edit, hence the list. There should be more to come eventually. :)

Thanks again!
Title: Re: Ad Management mod
Post by: smartmouse on July 19, 2007, 04:02:53 PM
Quote from: Bigguy on July 19, 2007, 11:59:29 AM
@ smartmouse: Will it not install through the package manager. ??? Why would you do it manually. All the edits can be found stickied to the "Theme Support" board at www.smfads.com

P.S. Not by much babjusi, lol. :)


I have to install it manually because i have already installed it on Default theme and now i have to edit the files of the theme that i'm using.
Anyway thank you for your reply, i opened a new topic on admod forum ;)
Title: Re: Ad Management mod
Post by: pcbonez on July 20, 2007, 04:26:52 AM
Using Ad Management v2.3 with SMF v1.1.3 and TinyPortal v0.9.8. I'm going for top and bottom horizontal ad bars and one Skyscraper on one side. The mod very well (VERY) except for one (little) thing that didn't work for me. The Skyscraper ads show up in a new sidebar outside the existing sidebars which for me gave me 3 side bars and shrinks the content down too much. (Easy Work around was to use  Ad Management only for the top and bottom and just create a script box in the existing sidebar for those ads which keeps the sidebars to two.) - Like I said that was minor. The permissions and control of who sees what on which pages is excellent. Overall so I have to give Ad Management v2.3 mod a rating of "awesome"!   
Title: Re: Ad Management mod
Post by: halfpint on July 22, 2007, 12:13:51 PM
Hi I am trying to do the smf package parser for the adds mod, I have installed the mod and I am trying to edit the code which the parser is telling me to do

In file Themes/[your theme]/BoardIndex.template.php, it tells me to find
echo '
</div>';


I canot find the above in my template scripting so does anybody know where I am supposed to put it if i cant find what its teling me to find

Here is my board template<?php
// Version: 1.1; BoardIndex

function template_main()
{
global $context$settings$options$txt$scripturl$modSettings;

// Show some statistics next to the link tree if SP1 info is off.
echo '
<table width="100%" cellpadding="3" cellspacing="0">
<tr>
<td valign="bottom">'
theme_linktree(), '</td>
<td align="right">'
;
if (!$settings['show_sp1_info'])
echo '
'
$txt[19], ': '$context['common_stats']['total_members'], ' &nbsp;&#38;#8226;&nbsp; '$txt[95], ': '$context['common_stats']['total_posts'], ' &nbsp;&#38;#8226;&nbsp; '$txt[64], ': '$context['common_stats']['total_topics'], '
'
, ($settings['show_latest_member'] ? '<br />' $txt[201] . ' <b>' $context['common_stats']['latest_member']['link'] . '</b>' $txt[581] : '');
echo '
</td>
</tr>
</table>'
;

// Show the news fader?&nbsp; (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
echo '
<div class="tborder" style="border-bottom: 0;">
<div class="titlebg" align="center" style="padding: 5px 5px 5px 5px;">'
$txt[102], '</div>
</div>
<table border="0" width="100%" cellspacing="0" cellpadding="5" class="tborder" style="border-bottom: 0;">
<tr>
<td class="windowbg2" valign="middle" align="center" height="60">'
;

// Prepare all the javascript settings.
echo '
<div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>'
$context['news_lines'][0], '</b></div>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// The fading delay (in ms.)
var smfFadeDelay = '
, empty($settings['newsfader_time']) ? 5000 $settings['newsfader_time'], ';
// Fade from... what text color?&nbsp; To which background color?
var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 248, "g": 248, "b": 248};
// Surround each item with... anything special?
var smfFadeBefore = "<b>", smfFadeAfter = "</b>";

if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
{
var foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

var backEl = document.getElementById(\'smfFadeScroller\');
while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
backEl = backEl.parentNode;

var backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
}
else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
{
var foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

var backEl = document.getElementById(\'smfFadeScroller\');
while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
backEl = backEl.parentNode;

var backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
}

// List all the lines of the news for display.
var smfFadeContent = new Array(
"'
implode('",
"'
$context['fader_news_lines']), '"
);
// ]]></script>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/fader.js"></script>
</td>
</tr>
</table>'
;
}

// Show the "Board name&nbsp; &nbsp; &nbsp; Topics&nbsp; Posts&nbsp; &nbsp; Last Post" header.
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
<tr class="titlebg">
<td colspan="2">'
$txt[20], '</td>
<td width="6%" align="center">'
$txt[330], '</td>
<td width="6%" align="center">'
$txt[21], '</td>
<td width="22%" align="center">'
$txt[22], '</td>
</tr>'
;

/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
and boards. (see below.) */
foreach ($context['categories'] as $category)
{
// Show the category's name, and let them collapse it... if they feel like it.
echo '
<tr>
<td colspan="5" class="catbg" height="18">'
;

// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a href="'
$category['collapse_href'], '">'$category['collapse_image'], '</a>';

echo '
'
$category['link'], '
</td>
</tr>'
;

// Only if it's NOT collapsed..
if (!$category['is_collapsed'])
{
/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr>
<td class="windowbg" width="6%" align="center" valign="top"><img src="'
$settings['images_url'], $board['new'] ? '/on.gif" alt="' $txt[333] . '" title="' $txt[333] : '/off.gif" alt="' $txt[334] . '" title="' $txt[334], '" border="0" /></td>
<td class="windowbg2" align="left" width="60%">
<a name="b'
$board['id'], '"></a>
<b>'
$board['link'], '</b><br />
'
$board['description'];

// Show the "Moderators: ".&nbsp; Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '<i class="smalltext"><br />
'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i>';

// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
$children[] = $child['new'] ? '<b>' $child['link'] . '</b>' $child['link'];

echo '
<i class="smalltext"><br />
'
$txt['parent_boards'], ': 'implode(', '$children), '</i>';
}

echo '
</td>
<td class="windowbg" valign="middle" align="center" width="6%">'
$board['topics'], '</td>
<td class="windowbg" valign="middle" align="center" width="6%">'
$board['posts'], '</td>';

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
echo '
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">
'
$board['last_post']['time'], '<br />
'
$txt['smf88'], ' '$board['last_post']['link'], '<br />
'
$txt[525], ' '$board['last_post']['member']['link'], '
</span>
</td>
</tr>'
;
}
}
}

// Show the "New Posts" and "No New Posts" legend.
if ($context['user']['is_logged'])
{
echo '
<tr class="titlebg">
<td colspan="2" align="left">
<img src="' 
$settings['images_url'] . '/' $context['user']['language'] . '/new_some.gif" alt="' $txt[333] . '" border="0" />&nbsp;&nbsp;<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/new_none.gif" alt="' $txt[334] . '" border="0" />
</td>
<td colspan="3" align="right" class="smalltext">'
;
// Show the mark all as read button?
if ($settings['show_mark_read'])
echo '
<a href="'
$scripturl'?action=markasread;sa=all;sesc=' $context['session_id'] . '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/markread.gif" alt="' $txt[452] . '" border="0" />' $txt[452]), '</a>';
echo '
</td>
</tr>'
;
}

echo '
</table>'
;

// Here's where the "Info Center" starts...
echo '
<br />
<br />
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr class="titlebg">
<td align="center" colspan="2">'
$txt[685], '</td>
</tr>'
;

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="catbg" colspan="2">'
$txt[214], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=recent">
<img src="'
$settings['images_url'], '/post/xx.gif" alt="'$txt[214], '" border="0" /></a>
</td>
<td class="windowbg2">'
;

// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<b><a href="'
$scripturl'?action=recent">'$txt[214], '</a></b><br />
<span class="smalltext">
'
$txt[234], ' "'$context['latest_post']['link'], '" '$txt[235], ' ('$context['latest_post']['time'], ')<br />
</span>'
;
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table width="100%" border="0">'
;
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td align="right" valign="top" nowrap="nowrap">['
$post['board']['link'], ']</td>
<td valign="top">'
$post['link'], ' '$txt[525], ' '$post['poster']['link'], '</td>
<td align="right" valign="top" nowrap="nowrap">'
$post['time'], '</td>
</tr>'
;
echo '
</table>'
;
}
echo '
</td>
</tr>'
;
}

// Show information about events, birthdays, and holidays on the calendar.
if ($context['show_calendar'])
{
echo '
<tr>
<td class="catbg" colspan="2">'
$context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=calendar">
<img src="'
$settings['images_url'], '/icons/calendar.gif" border="0" width="20" alt="'$txt['calendar24'], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="smalltext">'
;

// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
echo '
<span style="color: #'
$modSettings['cal_holidaycolor'], ';">'$txt['calendar5'], ' 'implode(', '$context['calendar_holidays']), '</span><br />';

// People's birthdays.&nbsp; Like mine.&nbsp; And yours, I guess.&nbsp; Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '
<span style="color: #'
$modSettings['cal_bdaycolor'], ';">'$context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
/* Each member in calendar_birthdays has:
id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
foreach ($context['calendar_birthdays'] as $member)
echo '
<a href="'
$scripturl'?action=profile;u='$member['id'], '">'$member['is_today'] ? '<b>' ''$member['name'], $member['is_today'] ? '</b>' '', isset($member['age']) ? ' (' $member['age'] . ')' '''</a>'$member['is_last'] ? '<br />' ', ';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '
<span style="color: #'
$modSettings['cal_eventcolor'], ';">'$context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
/* Each event in calendar_events should have:
title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
foreach ($context['calendar_events'] as $event)
echo '
'
$event['can_edit'] ? '<a href="' $event['modify_href'] . '" style="color: #FF0000;">*</a> ' ''$event['href'] == '' '' '<a href="' $event['href'] . '">'$event['is_today'] ? '<b>' $event['title'] . '</b>' $event['title'], $event['href'] == '' '' '</a>'$event['is_last'] ? '<br />' ', ';

// Show a little help text to help them along ;).
if ($context['calendar_can_edit'])
echo '
(<a href="'
$scripturl'?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">'$txt['calendar_how_edit'], '</a>)';
}
echo '
</span>
</td>
</tr>'
;
}

// Show a member bar.&nbsp; Not heavily ornate, but functional at least.
if ($settings['show_member_bar'])
{
echo '
<tr>
<td class="catbg" colspan="2">'
$txt[331], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
'
$context['show_member_list'] ? '<a href="' $scripturl '?action=mlist">' '''<img src="'$settings['images_url'], '/icons/members.gif" border="0" width="20" alt="'$txt[332], '" />'$context['show_member_list'] ? '</a>' '''
</td>
<td class="windowbg2" width="100%">
<b>'
$context['show_member_list'] ? '<a href="' $scripturl '?action=mlist">' $txt[332] . '</a>' $txt[332], '</b><br />
<span class="smalltext">'
$txt[200], '</span>
</td>
</tr>'
;
}

// Show YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="catbg" colspan="2">'
$txt[645], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=stats">
<img src="'
$settings['images_url'], '/icons/info.gif" alt="'$txt[645], '" border="0" /></a>
</td>
<td class="windowbg2" width="100%">
<table border="0" width="90%"><tr>
<td class="smalltext">
'
$txt[490], ': <b>'$context['common_stats']['total_topics'], '</b> &nbsp;&nbsp;&nbsp;&nbsp; '$txt[489], ': <b>'$context['common_stats']['total_posts'], '</b><br />
'
, !empty($context['latest_post']) ? $txt[659] . ':
"' 
$context['latest_post']['link'] . '"&nbsp; (' $context['latest_post']['time'] . ')<br />' '''
<a href="'
$scripturl'?action=recent">'$txt[234], '</a>'$context['show_stats'] ? '<br />
<a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</td>
<td class="smalltext">
'
$txt[488], ': <b>'$context['show_member_list'] ? '<a href="' $scripturl '?action=mlist">' $context['common_stats']['total_members'] . '</a>' $context['common_stats']['total_members'], '</b><br />
'
$txt[656], ': <b>'$context['common_stats']['latest_member']['link'], '</b><br />';
// If they are logged in, show their unread message count, etc..
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '
'
$txt['smf199'], ': <b><a href="'$scripturl'?action=pm">'$context['user']['messages'], '</a></b> '$txt['newmessages3'], ': <b><a href="'$scripturl'?action=pm">'$context['user']['unread_messages'], '</a></b>';
echo '
</td>
</tr></table>
</td>
</tr>'
;
}

// "Users online" - in order of activity.
echo '
<tr>
<td class="catbg" colspan="2">'
$txt[158], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' '''<img src="'$settings['images_url'], '/icons/online.gif" alt="'$txt[158], '" border="0" />'$context['show_who'] ? '</a>' '''
</td>
<td class="windowbg2" width="100%">'
;

if ($context['show_who'])
echo '
<a href="'
$scripturl'?action=who">';

echo $context['num_guests'], ' '$context['num_guests'] == $txt['guest'] : $txt['guests'], ', ' $context['num_users_online'], ' '$context['num_users_online'] == $txt['user'] : $txt['users'];

// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';

// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' '$context['num_buddies'] == $txt['buddy'] : $txt['buddies'];

// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' ''$context['num_users_hidden'] . ' ' $txt['hidden'];

echo ')';
}

if ($context['show_who'])
echo '</a>';

echo '
<span class="smalltext">'
;

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
'
$txt[140], ':<br />'implode(', '$context['list_users_online']);

echo '
<br />'
$context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</span>
</td>
</tr>'
;

// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
{
echo '
<tr>
<td class="catbg" colspan="2">'
$txt[159], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
'
$context['allow_pm'] ? '<a href="' $scripturl '?action=pm">' '''<img src="'$settings['images_url'], '/message_sm.gif" alt="'$txt[159], '" border="0" />'$context['allow_pm'] ? '</a>' '''
</td>
<td class="windowbg2" valign="top">
<b><a href="'
$scripturl'?action=pm">'$txt[159], '</a></b><br />
<span class="smalltext">
'
$txt[660], ' '$context['user']['messages'], ' '$context['user']['messages'] == $txt[471] : $txt[153], '.... '$txt[661], $context['allow_pm'] ? ' <a href="' $scripturl '?action=pm">' $txt[662] . '</a>' ''' '$txt[663], '
</span>
</td>
</tr>'
;
}

// Show the login bar. (it's only true if they are logged out anyway.)
if ($context['show_login_bar'])
{
echo '
<tr>
<td class="catbg" colspan="2">
'
$txt[34], ' <a href="'$scripturl'?action=reminder" class="smalltext">(' $txt[315] . ')</a>
</td>
</tr>
<tr>
<td class="windowbg" width="20" align="center">
<a href="'
$scripturl'?action=login">
<img src="'
$settings['images_url'], '/icons/login.gif" alt="'$txt[34], '" border="0" /></a>
</td>
<td class="windowbg2" valign="middle">
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<table border="0" cellpadding="2" cellspacing="0" align="center" width="100%"><tr>
<td valign="middle" align="left">
<label for="user"><b>'
$txt[35], ':</b><br /><input type="text" name="user" id="user" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="passwrd"><b>'
$txt[36], ':</b><br /><input type="password" name="passwrd" id="passwrd" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="cookielength"><b>'
$txt[497], ':</b><br /><input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="'$modSettings['cookieTime'], '" /></label>
</td>
<td valign="middle" align="left">
<label for="cookieneverexp"><b>'
$txt[508], ':</b><br /><input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
</td>
<td valign="middle" align="left">
<input type="submit" value="'
$txt[34], '" />
</td>
</tr></table>
</form>
</td>
</tr>'
;
}

echo '
</table>'
;
}

?>


I am supposed to add this
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


If anybody knows where to put the above code, could you please let me know as i can not find the script it is telling me to find

Thanks
Title: Re: Ad Management mod
Post by: simplyliza6 on July 22, 2007, 01:51:37 PM
will this work with SMF 1.1.3?

Ive tried to install it, but seems wont work. I cant see any Ad mod underneath the Configuration. I need help!

Thanks in advance.


Liza^_^
Title: Re: Ad Management mod
Post by: jerm on July 22, 2007, 02:50:34 PM
It only installs on the default theme. If you need help, go here: http://www.smfads.com theres a wealth of information there to help you out.
Title: Re: Ad Management mod
Post by: th2mods on July 22, 2007, 05:13:40 PM
i added it to custom theme, but one problem. Only me the admin can see the ads, no guests or other users.

EDIT, i just notices only i can see the ads, even on the default theme
Title: Re: Ad Management mod
Post by: babjusi on July 22, 2007, 06:22:02 PM
Quote from: th2mods on July 22, 2007, 05:13:40 PM
i added it to custom theme, but one problem. Only me the admin can see the ads, no guests or other users.

EDIT, i just notices only i can see the ads, even on the default theme

Have you enabled the permissions?
Title: Re: Ad Management mod
Post by: halfpint on July 22, 2007, 08:27:42 PM
Hi concerning my question on the parsing once the mod is installed, does anyone know what i do, when it says (find the bit of code and repalce with this code) but the piece of code is not in the template that it is telling you to find I Have looked the mod thread and cant find any answers, could some please help me out on this
This was my original post http://www.simplemachines.org/community/index.php?topic=68632.msg1170588#msg1170588
Thanks

ahh i Just found the zip for my template theme so I should be ok now
Thanks
Title: Re: Ad Management mod
Post by: halfpint on July 23, 2007, 05:19:31 AM
HI I have installed the add package and replaced the 3 templates with the script change for my theme, which i downloaded, I have set the add to show at the top of the forum index, But the add is showing twice right under each other,at the top of the forum, Its repeating itself and i only have one add, It also wont show at the bottom of the page, I can only seem to get it to work at the top of the page, Does anybody know how to fix this please

Regards

Paul
Title: Re: Ad Management mod
Post by: halfpint on July 23, 2007, 06:01:48 AM
Quote from: halfpint on July 23, 2007, 05:19:31 AM
HI I have installed the add package and replaced the 3 templates with the script change for my theme, which i downloaded, I have set the add to show at the top of the forum index, But the add is showing twice right under each other,at the top of the forum, Its repeating itself and i only have one add, It also wont show at the bottom of the page, I can only seem to get it to work at the top of the page, Does anybody know how to fix this please

Regards

Paul

OK thanks I have sorted it now, I must have installed the add mod twice as the script was duplicated on the BoardIndex.template.php
Thanks
Title: Re: Ad Management mod
Post by: manga-lover1988 on July 23, 2007, 06:23:29 AM
I install th Ad management but it didnt show up under the configuration... could anyone tell how to install?
Title: Re: Ad Management mod
Post by: halfpint on July 23, 2007, 03:51:55 PM
Ok I now have another problem. I tried to install the seo mod before I installed the advert mod, I unistalled the seo mod as I could not get it working properly, But after installing and down loading the advert mod and replacing the script by downloading the zip and replacing the 3 templates, I now have a link at the top of every post, one which is (Dig This) and the other is (StumbleUpon this site)

and in the error logs on evry post is this

(8: Undefined variable: diggFirstMSG
File: /home/public_html/forum/Themes/classic/Display.template.php (eval?)
Line: 95)

Is this from the seo mod or is this from the add mod and how can I get ridd of it, It seems kinda weird how they just apeared after installing the add mod, I have also noticed that My adds will only display at the top of the forum on the index page and no where else, even when I change it to show at the bottom of the forum, I have set all permissions for guests and members to add enable

I am just a little confused now
Any help would be apreciated

Thanks
Title: Re: Ad Management mod
Post by: Bigguy on July 23, 2007, 04:59:14 PM
These errors are not from the ad mod.
Title: Re: Ad Management mod
Post by: halfpint on July 23, 2007, 05:02:20 PM
Quote from: Bigguy on July 23, 2007, 04:59:14 PM
These errors are not from the ad mod.

Ok thanks Im just confused as what to do now
Title: Re: Ad Management mod
Post by: Bigguy on July 23, 2007, 06:55:54 PM
What other mods do you have installed. ???
Title: Re: Ad Management mod
Post by: halfpint on July 23, 2007, 09:37:05 PM
Quote from: Bigguy on July 23, 2007, 06:55:54 PM
What other mods do you have installed. ???

Hi I have the smf update 1.1.3 and the add mod and thats it, the seo4 mod would not work proparly so I unistalled it and deleted the files from my cpanel then checked my data base and found no files from seo4 mod, Then i re-uploaded the add mod files, and its still doing it
I have posted in the seo mod Thread and it seems there is a lot of problems with that mod..Im waiting for a reply from the thread , hopefully somebody can help me out

Thanks
Title: Re: Ad Management mod
Post by: clp on July 24, 2007, 03:16:44 PM
hello.

i have installed ad mod but i can't see the link in admin panel.  My theme is arcane magic.  I hope someone could help me with this.

thanks.
Title: Re: Ad Management mod
Post by: Bigguy on July 24, 2007, 03:53:09 PM
Then your theme must be manually edited in order to see or use the ad mod. Look to www.smfads.com in the theme support board stickies for all the edits. The only things that need edited is the template files. Also if you are using the utf-8 english language please switch back to regular english in the server settings of the admin panel.
Title: Re: Ad Management mod
Post by: clp on July 24, 2007, 04:43:53 PM
hey there, thanks! it worked.  Just changing to regular english did the trick.

thanks again!
Title: Re: Ad Management mod
Post by: Bigguy on July 24, 2007, 05:03:36 PM
Now that that shows in the admin panel you will still have to edit the template files in order for the mod to work correctly.
Title: Re: Ad Management mod
Post by: clp on July 25, 2007, 01:15:50 PM
hi. can you pls. tell me what to edit in my file? my theme is arcane magic, smf version is 1.1.3. sorry, if this seems simple.  I'm new to this, hope you could bear with me.

thanks!
Title: Re: Ad Management mod
Post by: clp on July 25, 2007, 03:00:39 PM
oopss! got a parse error. 

got the ads showing but when i clicked on a topic i got a parse error.
hope someone could help pls.


Parse error: syntax error, unexpected $end in .../Themes/arcane_magic/Display.template.php on line 791

782:    if ($context['calendar_post'])
783:       $moderationButtons[] = '<a href="' . $scripturl . '?action=post;calendar;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/linktocal.gif" alt="' . $txt['calendar37'] . '" border="0" />' : $txt['calendar37']) . '</a>';
784:
785:    if ($context['can_remove_post'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
786:       $moderationButtons[] = $settings['use_image_buttons'] ? '<input type="image" name="submit" id="quickmodSubmit" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/delete_selected.gif" alt="' . $txt['quickmod_delete_selected'] . '" />' : '<a href="javascript:document.forms.quickModForm.submit();" id="quickmodSubmit">' . $txt['quickmod_delete_selected'] . '</a>';
787:
788:    return implode($context['menu_separator'], $moderationButtons);
789: }
790:

791: ?>

792:
793:
Title: Re: Ad Management mod
Post by: miromopa on July 26, 2007, 02:46:33 AM
How do you make this mod work with the A highway Template?

thanks.
Title: Re: Ad Management mod
Post by: Bigguy on July 26, 2007, 10:37:52 AM
@ clp: Can you attach your messageindex.template and your display.template.php here please
Title: Re: Ad Management mod
Post by: clp on July 26, 2007, 12:49:25 PM
 Please see attachment.  thanks.
Title: Re: Ad Management mod
Post by: Bigguy on July 26, 2007, 01:22:31 PM
Try this, rename it to Display.template.php ;)

Title: Re: Ad Management mod
Post by: clp on July 26, 2007, 01:55:22 PM
great! it worked!

thanks again :)
Title: Re: Ad Management mod
Post by: Bigguy on July 26, 2007, 02:19:46 PM
Np ;)
Title: Re: Ad Management mod
Post by: diegolyanky on July 27, 2007, 09:40:55 PM
It's possible integrate into search template ? ...

Will be great !
Title: Re: Ad Management mod
Post by: slovenec on July 28, 2007, 12:07:52 PM
when i try to uninstall ad mod i get this error

(http://shrani.si/files/reklama1510a.png)

????
Title: Re: Ad Management mod
Post by: Bigguy on July 28, 2007, 09:57:49 PM
@ diegolyanky: I would think so, yes. :)

@ slovenec: I have never seen that before. What version of ad mod do you have. ??? What version of SMF. ??? What other mods do you have installed. ???
Title: Re: Ad Management mod
Post by: slovenec on July 29, 2007, 10:11:17 AM
I have the latest version (ad&SMF). I was trying to uninstall it because the name of the mod suddenly didn't appear at Configuration menu (i install it and also USE it). Anyway, i installed it again and now it works but i have problem because reg users can't see the ads?!? The only member that can see it  is me, administrator. How can i solve this problem?

(i don't have any other mods installed)
Title: Re: Ad Management mod
Post by: Bigguy on July 29, 2007, 10:22:39 AM
Check permissions for each membergroup.
Title: Re: Ad Management mod
Post by: slovenec on July 29, 2007, 10:28:01 AM
thx  ;) (i'm new at SMF :-[ )
Title: Re: Ad Management mod
Post by: dilipkhanolkar on July 29, 2007, 02:33:16 PM
Can anyone try to help me in creating space for the admod what i mean is an adzone is near about overlapping the usermenus on the site can anyone help me in creating or defining space for the adzone you can have a look at the site over here http://dilipkhanolkar.110mb.com/forum/index.php
Title: Re: Ad Management mod
Post by: RoCKeT-88 on July 29, 2007, 07:03:42 PM
How can I add this to Juno theme? 

Thanks!
Title: Re: Ad Management mod
Post by: Taurusguy on July 30, 2007, 05:46:07 PM
Hi ... i currently love using the helios multi theme for my websites forum .. i upgraded my forum to 1.1.3 SMF recently ... joined google adsense ..and installed that new ad mod. NOw .. my ads show up in the default theme for SMF .. but do not show up in Helios theme. I know little .. to nothing about php so if someone could point me in a direction thats idiot proof, that would be great ... also .. the ad at the top of my forum (in default theme) is not centered .. its all the way to the left.

Any and all help for this matter would be much appreciated ... i have browsed around for a long time .. trying to read on this .. and figure it out .. and i cant seem to grasp it.

Well .. i also found THIS http://files4.smfhelp.com/index.php?dir=Ad+mod+edited+files%2F

but when i used the files that came with it (the helios multi files) ..... it gave me this error across the bottom ..

     
Helios /
Fatal error: Call to undefined function: tportal_version() in /home/vavropup/public_html/forum/Sources/Load.php(1726) : eval()'d code on line 510

BUt the top ad shows fine .. just the rest of the ads are overlapping ... along with that error on the bottom of the page that stretches the forum out of wack. I only have the new admod installed .. and no other mods ..

Very frusterating ... plz hlp.
Title: Re: Ad Management mod
Post by: Lufa on July 31, 2007, 03:54:05 AM
Correction: A-ha! I am using non-default Theme... :)




Hi! I just installed you mod!
Thank you very much for your work!

But it doesn't work for me (SMF 1.1 RC3, smfads v2.3).

There was no errors during the installation. I am using it for Google Adsense (already present in other pages). There was no errors during configuration as well.

I switch on all possible variants of placing the ads. But no page in my Forum has it (neither visible no in HTML code).

What did I miss? Thank you!!!

Title: Re: Ad Management mod
Post by: Lufa on July 31, 2007, 05:54:00 AM
After editing my Template all work accept
"Display ads after the last post". :(

Any advice?
Thank you!
Title: Re: Ad Management mod
Post by: diegolyanky on July 31, 2007, 07:59:06 AM
Quote from: Bigguy on July 28, 2007, 09:57:49 PM
@ diegolyanky: I would think so, yes. :)


So ? ... Must I wait for an upgrade ?  :D
Title: Re: Ad Management mod
Post by: JoshieDaMan on August 01, 2007, 03:11:19 AM
I am so confused with this, however I have all of passed except display.template. So I have been trying to work with this manual.

The code from ad management -
<file name="$themedir/Display.template.php">
<operation>
<search position="before"><![CDATA[global $context, $settings, $options, $txt, $scripturl, $modSettings;]]></search>

<add><![CDATA[
//Display ads on the thread page
if (function_exists("show_threadAds"))
{
$ads = show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
]]></add>
</operation>


I fellowed it, I probably done it wrong. No doubt about me done it wrong, but heres what I did -

<?php
// Version: 1.1; Display

function template_main()
{
global $context$settings$options$txt$scripturl$modSettings;
global $db_prefix;

//Display ads on the thread page
if (function_exists("show_threadAds"))
{
$ads show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

// Show the anchor for the top and for the first message. If the first message is new, say so.


Could you please fix it in my display.template.php? After you finished it, send it back to me then I'll overwrite it. It would be greatly appreciate if you'd do this for me.
Title: Re: Ad Management mod
Post by: dilipkhanolkar on August 01, 2007, 07:18:10 AM
In my theme od dilber mc on this site: -  http://www.technsoft.co.nr/  I am facing a problem of my ads not centering or appearing in the desired or expected position
Title: Re: Ad Management mod
Post by: Taurusguy on August 01, 2007, 07:38:49 PM
Quote from: dilipkhanolkar on August 01, 2007, 07:18:10 AM
In my theme od dilber mc on this site: -  http://www.technsoft.co.nr/  I am facing a problem of my ads not centering or appearing in the desired or expected position

just go to where your adsence code is and put <center> one line above your code .. and </center> one line under your code .. THAT should center it. (worked for me anyhow)

you do this RIGHT in the ad mod in your admin center.
Title: Re: Ad Management mod
Post by: JoshieDaMan on August 02, 2007, 12:34:09 AM
And for the code I have, whoever is the management of this ad management, don't have to rush. I can check daily on this one to see if either one of you help me with it.:)
Title: Re: Ad Management mod
Post by: dilipkhanolkar on August 02, 2007, 09:56:33 AM
Quote
just go to where your adsence code is and put <center> one line above your code .. and </center> one line under your code .. THAT should center it. (worked for me anyhow)

you do this RIGHT in the ad mod in your admin center.

Nopes it didnt help me i would suggest you have a look at my site http://www.technsoft.co.nr/ & know the definite meaning of center which i wanna tell
Title: Re: Ad Management mod
Post by: ITA003 on August 02, 2007, 10:19:20 AM
There is an error in the html generated page...
You can not insert the code after tags </td><script... your code here show the second google ads code.
Title: Re: Ad Management mod
Post by: dilipkhanolkar on August 02, 2007, 12:34:44 PM
Quote from: ITA003 on August 02, 2007, 10:19:20 AM
There is an error in the html generated page...
You can not insert the code after tags </td><script... your code here show the second google ads code.

I am using the same adsense code for the first & second banners just kept a tick to show ads below menu & well it is showing ads above menu & pushing the menu a little off the track
Title: Re: Ad Management mod
Post by: ITA003 on August 02, 2007, 12:58:45 PM
The problem is where do you have insert the php code to show the ads. Can you send the your theme's index.template.php?
Title: Re: Ad Management mod
Post by: dilipkhanolkar on August 02, 2007, 02:43:56 PM
I have attached my index.template.php to this post
Title: Re: Ad Management mod
Post by: ITA003 on August 02, 2007, 06:27:04 PM
Try this file... make a backup of your file and than upload this.

If works, check difference with original file to know that I do.
Now the Ads will be shown under the menu bar correctly. I move the Tower section code just before the end of template_main_above() function.

Title: Re: Ad Management mod
Post by: dilipkhanolkar on August 03, 2007, 12:47:43 PM
Quote from: ITA003 on August 02, 2007, 06:27:04 PM
Try this file... make a backup of your file and than upload this.

If works, check difference with original file to know that I do.
Now the Ads will be shown under the menu bar correctly. I move the Tower section code just before the end of template_main_above() function.
ok thanks it works but now it looks like the adcode has been modified the ad is shown as a full line instead of just the ad in the section you can have a look at http://www.technsoft.co.nr/
But first thanks for your help & support
Title: Re: Ad Management mod
Post by: ITA003 on August 03, 2007, 01:10:44 PM
Maybe you must chose another format for tower section... You configure one Ads in panel control for every different format.

Usually in the tower section the best format are Skyscraper (120 x 600).


Title: Re: Ad Management mod
Post by: diegolyanky on August 03, 2007, 09:30:57 PM
How to integrate into search.template.php ?? ...

Any suggestion ?

( search.template.php attached here ;) )

Title: Re: Ad Management mod
Post by: JoshieDaMan on August 04, 2007, 08:05:41 AM
Anybody help?
Quote from: JoshieTheGreat on August 01, 2007, 03:11:19 AM
I am so confused with this, however I have all of passed except display.template. So I have been trying to work with this manual.

The code from ad management -
<file name="$themedir/Display.template.php">
<operation>
<search position="before"><![CDATA[global $context, $settings, $options, $txt, $scripturl, $modSettings;]]></search>

<add><![CDATA[
//Display ads on the thread page
if (function_exists("show_threadAds"))
{
$ads = show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
]]></add>
</operation>


I fellowed it, I probably done it wrong. No doubt about me done it wrong, but heres what I did -

<?php
// Version: 1.1; Display

function template_main()
{
global $context$settings$options$txt$scripturl$modSettings;
global $db_prefix;

//Display ads on the thread page
if (function_exists("show_threadAds"))
{
$ads show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

// Show the anchor for the top and for the first message. If the first message is new, say so.


Could you please fix it in my display.template.php? After you finished it, send it back to me then I'll overwrite it. It would be greatly appreciate if you'd do this for me.
Anybody help? The file is on number 86 of page to download my template file for you to fix it. I am desperately in need of this to be done now.
Title: Re: Ad Management mod
Post by: SoKoOLz on August 04, 2007, 08:22:25 AM
This mod looks great, thank you
Title: Re: Ad Management mod
Post by: B0N35 on August 06, 2007, 12:33:54 AM
How can I show the ads if a guest views the page? Cheers

http://www.addictivedesign.co.nz/schoolball
Title: Re: Ad Management mod
Post by: dilipkhanolkar on August 06, 2007, 01:57:26 AM
Quote from: B0N35 on August 06, 2007, 12:33:54 AM
How can I show the ads if a guest views the page? Cheers

http://www.addictivedesign.co.nz/schoolball

Give ad mod permission to show ads to the guest from the permission tab in members section then define the permissions as you want
Title: Re: Ad Management mod
Post by: JoshieDaMan on August 06, 2007, 02:10:55 AM
:(
Title: Re: Ad Management mod
Post by: pulkit on August 07, 2007, 04:40:25 AM
doesn't work for MeshTP theme ... I'm using TP 0.9.8 and SMF 1.1.3 and ad_mod_1-1-x_v2-3.zip ...
The ads show up in default theme ...
Please help ...
Title: Re: Ad Management mod
Post by: dilipkhanolkar on August 07, 2007, 09:11:18 AM
Quote from: pulkit on August 07, 2007, 04:40:25 AM
doesn't work for MeshTP theme ... I'm using TP 0.9.8 and SMF 1.1.3 and ad_mod_1-1-x_v2-3.zip ...
The ads show up in default theme ...
Please help ...

Did you install the mod manually in your custom theme
Title: Re: Ad Management mod
Post by: judah on August 08, 2007, 12:03:10 AM
i have an adsense account, so i can generate ads that way

I've also installed the ad management add on

anyway, i went into the administration centre and clicked on ad management, then i

1 - named the add

2 - copied the adsense html code generated from google and placed it in the content box


3 - then i selected the second to last option...[Display ads on every page as a tower on the right side]

I should not have to name a board as I only have one board, and the ad type is set to html


anyway, i clciked save and went to view a thread, and nothing

i can't see an ad anywhere....what am I doing wrong?
Title: Re: Ad Management mod
Post by: Aquire on August 08, 2007, 05:39:41 AM
It's showing nothing.No ads.

I've added Ads.It's showing in my database. I've attached screenshots.

It's installed successfully.I don't know where is error.?Please help.

(http://img168.imageshack.us/img168/9435/82471180fk7.jpg)

(http://img168.imageshack.us/img168/3029/60395377or9.jpg)

Thank you
Title: Re: Ad Management mod
Post by: Bigguy on August 08, 2007, 11:33:11 AM
@ judah: What theme are you using.

@ Aquire: Are there any errors in your logs
Title: Re: Ad Management mod
Post by: Aquire on August 08, 2007, 12:28:11 PM
You are talking errors during installing or should I check now.

There are some errors in log.But i.e related to other mod. [view only board].

Everything looks ok but still nothing I can see in admin. [screenshot 1]

When I add Ads it gt added in database.I have also checked default files for required modification.and its ok.

I don't know whats going on....
Title: Re: Ad Management mod
Post by: Bigguy on August 08, 2007, 12:33:18 PM
Check to see if the edits were done to the index.php file in the ROOT of your SMF install.
Title: Re: Ad Management mod
Post by: judah on August 08, 2007, 02:29:48 PM
Quote from: Bigguy on August 08, 2007, 11:33:11 AM
@ judah: What theme are you using.

it says Babylon Theme in the theme section.

what theme should i be using, and how do i change it

thanks
Title: Re: Ad Management mod
Post by: Bigguy on August 08, 2007, 03:15:58 PM
You can use any theme but you have to manually edit the template files in order for it to work on any other theme but the default one.
Title: Re: Ad Management mod
Post by: Aquire on August 08, 2007, 03:37:02 PM
I've edited that manually.And wrking fine.
Title: Re: Ad Management mod
Post by: judah on August 08, 2007, 05:33:21 PM
Quote from: Bigguy on August 08, 2007, 03:15:58 PM
You can use any theme but you have to manually edit the template files in order for it to work on any other theme but the default one.


ok...by that, do you mean change the dimensions to accommodate the ad


and if so, how do i manually edit the template files?

Title: Re: Ad Management mod
Post by: Bigguy on August 08, 2007, 06:38:46 PM
To manually edit you need a good editor. Something like Php designer 2007. You would install the mod and then edit the 4 template files of the theme you want to use. All the edits have been written out here:

http://www.smfads.com/forums/index.php?topic=475.0

So really all it is is:

1.) install the mod
2.) edit 4 template files in custom theme
3.) re-upload template files (NOT OVERWRITING THE ORIGINALS; RENAME THEM)
Title: Re: Ad Management mod
Post by: Bigguy on August 08, 2007, 06:39:59 PM
I have edited a couple themes already and the template files from them can be found here (http://files4.smfhelp.com/index.php?dir=Ad+mod+edited+files%2F)
Title: Re: Ad Management mod
Post by: Aquire on August 09, 2007, 08:20:35 AM
I've used Dreamweaver CS3.

Everything looks ok still no result?
Title: Re: Ad Management mod
Post by: freakcypher on August 09, 2007, 02:42:06 PM
Somebody please help me to make this mod accesible with alak theme. please reply soon. i am in real need.
Title: Re: Ad Management mod
Post by: babjusi on August 09, 2007, 02:47:58 PM
Quote from: freakcypher on August 09, 2007, 02:42:06 PM
Somebody please help me to make this mod accesible with alak theme. please reply soon. i am in real need.

Here, use the danilel15 parser mod. It will tell you exactly what changes to make to your custom theme and where to apply them

http://modparser.dev.dansoftaustralia.net/
Title: Re: Ad Management mod
Post by: Mediademics on August 10, 2007, 08:57:39 PM
I am having a problem with this mod. It installs fine but in my admin Control Panel where the link is supposed to be for the options it makes a space for it but nothing is there. Any suggestions?

Let me know if you need a screen shot or better explination.

Thanks!
Title: Re: Ad Management mod
Post by: Mediademics on August 10, 2007, 09:28:30 PM
Please disregard, I found the fix.

Title: Re: Ad Management mod
Post by: diegolyanky on August 10, 2007, 09:51:48 PM
I wanna use in the search page ! ...

Any suggestion or idea ? ... Please !

:D
Title: Re: Ad Management mod
Post by: yaoceo on August 11, 2007, 12:12:34 AM
  It installs fine but in my admin Control Panel   ican not see Ad Management esle
Title: Re: Ad Management mod
Post by: yaoceo on August 11, 2007, 12:16:27 AM
Mediademics    the same with u                        my msn  [email protected]                                 web   


http://www.overyou.cn/forums
Title: Re: Ad Management mod
Post by: babjusi on August 11, 2007, 12:18:14 AM
Quote from: yaoceo on August 11, 2007, 12:12:34 AM
  It installs fine but in my admin Control Panel   ican not see Ad Management esle


Check the language at Server Settings in the Admin Panel and make sure that it is set to plain english and not english utf8.

P.s. Some searching first before posting your questions won''t hurt either, as in this case, the answer to this question is answered plenty of times before.

And please, don''t bump your posts within 24 hours
Title: Re: Ad Management mod
Post by: Dragooon on August 11, 2007, 12:20:15 AM
If it is English - UTF8 Go to /Themes/default/languages and change Ads.english.php to Ads.english-utf8.php
Title: Re: Ad Management mod
Post by: yaoceo on August 11, 2007, 12:34:03 AM
Server Settings         ->          Default Forum Language         i can only choose    English 
Title: Re: Ad Management mod
Post by: yaoceo on August 11, 2007, 12:35:08 AM
Quote from: babjusi on August 11, 2007, 12:18:14 AM
Quote from: yaoceo on August 11, 2007, 12:12:34 AM
  It installs fine but in my admin Control Panel   ican not see Ad Management esle


Check the language at Server Settings in the Admin Panel and make sure that it is set to plain english and not english utf8.

P.s. Some searching first before posting your questions won''t hurt either, as in this case, the answer to this question is answered plenty of times before.

And please, don''t bump your posts within 24 hours


Server Settings         ->          Default Forum Language         i can only choose    English 
Title: Re: Ad Management mod
Post by: babjusi on August 11, 2007, 12:39:31 AM
Quote from: Dragooon on August 11, 2007, 12:20:15 AM
If it is English - UTF8 Go to /Themes/default/languages and change Ads.english.php to Ads.english-utf8.php

Actually Dragoon, I think he must first make a copy of the Ads.english.php file in the folder mentioned above and then rename it to Ads.english-utf8.php.
Title: Re: Ad Management mod
Post by: babjusi on August 11, 2007, 12:40:13 AM
Quote from: yaoceo on August 11, 2007, 12:34:03 AM
Server Settings         ->          Default Forum Language         i can only choose    English 

What theme are you using as a default for your forum? If you are using a custom theme, then change it back to the default one and see if that would do the trick
Title: Re: Ad Management mod
Post by: yaoceo on August 11, 2007, 12:43:13 AM
Quote from: babjusi on August 11, 2007, 12:40:13 AM
Quote from: yaoceo on August 11, 2007, 12:34:03 AM
Server Settings         ->          Default Forum Language         i can only choose    English 

What theme are you using as a default for your forum? If you are using a custom theme, then change it back to the default one and see if that would do the trick

where can i change the theme    i am  a new  here

Title: Re: Ad Management mod
Post by: yaoceo on August 11, 2007, 12:45:51 AM
Current Theme  >  Select default smiley set for this theme                  i changed  it to  the  default               but    nothing 

happen
Title: Re: Ad Management mod
Post by: babjusi on August 11, 2007, 12:46:36 AM
Quote from: yaoceo on August 11, 2007, 12:43:13 AM
Quote from: babjusi on August 11, 2007, 12:40:13 AM
Quote from: yaoceo on August 11, 2007, 12:34:03 AM
Server Settings         ->          Default Forum Language         i can only choose    English 

What theme are you using as a default for your forum? If you are using a custom theme, then change it back to the default one and see if that would do the trick

where can i change the theme    i am  a new  here



Admin Panel-Themes and Layout-Overall forum default...............Reset everyone to

And next time use the search button here, it is your best friend.
And don''t forget to read the Online manual as well, as 98% of the answers can be found there

http://docs.simplemachines.org/

Title: Re: Ad Management mod
Post by: babjusi on August 11, 2007, 12:47:18 AM
Quote from: yaoceo on August 11, 2007, 12:45:51 AM
Current Theme  >  Select default smiley set for this theme                  i changed  it to  the  default               but    nothing 

happen

Then nothing comes to mind. Maybe someone else can help you further
Title: Re: Ad Management mod
Post by: yaoceo on August 11, 2007, 01:12:12 AM
help   help  http://www.overyou.cn/forums   this is my forum  and  i install   ad v2.3
Title: Re: Ad Management mod
Post by: Bigguy on August 11, 2007, 01:18:27 AM
Everything seems fine; what specifically is the problem.
Title: Re: Ad Management mod
Post by: yaoceo on August 11, 2007, 01:29:04 AM
Quote from: babjusi on August 11, 2007, 12:46:36 AM
Quote from: yaoceo on August 11, 2007, 12:43:13 AM
Quote from: babjusi on August 11, 2007, 12:40:13 AM
Quote from: yaoceo on August 11, 2007, 12:34:03 AM
Server Settings         ->          Default Forum Language         i can only choose    English 

What theme are you using as a default for your forum? If you are using a custom theme, then change it back to the default one and see if that would do the trick

where can i change the theme    i am  a new  here



Admin Panel-Themes and Layout-Overall forum default...............Reset everyone to

And next time use the search button here, it is your best friend.
And don''t forget to read the Online manual as well, as 98% of the answers can be found there

http://docs.simplemachines.org/



I am having a problem with this mod. It installs fine but in my admin Control Panel where the link is supposed to be for the options it makes a space for it but nothing is there. Any suggestions?


Title: Re: Ad Management mod
Post by: yaoceo on August 11, 2007, 01:29:55 AM
 i can  not see Ad Management mod   under Configuration
Title: Re: Ad Management mod
Post by: babjusi on August 11, 2007, 01:34:24 AM
Quote from: yaoceo on August 11, 2007, 01:29:55 AM
i can  not see Ad Management mod   under Configuration

You are unbelievable. What can I do to get through to you for not bumping your posts? All the guys of the Support Team here are volunteers and they help everyone in their free time, so let us make things as easy as possible for them, ay mate?
Title: Re: Ad Management mod
Post by: yaoceo on August 11, 2007, 01:36:05 AM
It can be found in the Administration panel under the heading "Configuration". There is a new link there called "Ad Management" .
i can not see
Title: Re: Ad Management mod
Post by: yaoceo on August 11, 2007, 01:39:09 AM
Ad Management Mod
Written by: jerm (electrohome88)
Email: [email protected]
Support site: www.smfads.com

----------
This mod will display ads on various parts of your forum on the default theme in SMF Version 1.1
---------
Version 2.3 Jan 11, 2007
- New setting: Disable ads for admins
- New setting: Disable reports(one less query)
- New setting: Disable all ads
- New setting: Ability to make post ads not look like posts.
- Added the ability to display ads between categories
- Added the ability to display ads after the last post
- Added the ability to display ads under child boards
- Fixed issues about not finding functions(caused forums to crash)


Version 2.0 Jun 13, 2006
- Enabled per board ads
- Ability to add multiple ads
- HTML/PHP style ads
- Ad reports
- Disabled ads in certain sections of the admin panel
- Many more minor improvments

Version 1.5 Mar 19, 2006
- Fixed an issue with the xml
- Added the ability to display ads on top of the menu on every page
- Added help files
- Revised some of the code in previous versions.

Version 1.4.1 Feb 8, 2006
- Fixed an issue when installing on a forum that has TinyPortal installed

Version 1.4 Feb 2, 2006
- Added the ability to disable ads according to their membergroup.

Version 1.3 Feb 1, 2006
- Updated database settings so that they wont be removed on re-installation.
- Added the ability to display ads on the bottom of every page.
- Added the ability to display an ad after the first post. (Idea courtesy Joomlaspan)

Version 1.2 Jan 30, 2006
- Offically released on simplemachines.org. No offical changes from previous version.


Version 1.0 Jan 5, 2006
- Not publicly released.
- Displayed ads only under the menu bar.


Install Actions
Installations actions for "Ad Managment":
Installing this package will perform the following actions:  Type Action Description
1. Execute Code install.php 
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/Subs.php Test successful
4. Execute Modification .\Themes\default/index.template.php Test successful
5. Execute Modification .\Themes\default/BoardIndex.template.php Test successful
6. Execute Modification .\Themes\default/Display.template.php Test successful
7. Execute Modification .\Themes\default/MessageIndex.template.php Test successful
8. Execute Modification ./Sources/ManagePermissions.php Test successful
9. Extract File ./Sources/Ads.php 
10. Extract File ./Sources/LoadAds.php 
11. Extract File .\Themes\default/Ads.template.php 
12. Extract File .\Themes\default/languages/Ads.english.php



any problem ????????????????????????
Title: Re: Ad Management mod
Post by: yaoceo on August 11, 2007, 01:42:49 AM
i can use it  tanks  i  Loading  it  again
Title: Re: Ad Management mod
Post by: Bigguy on August 11, 2007, 01:45:19 AM
yaoceo, has your problem been resolved ???
Title: Re: Ad Management mod
Post by: yaoceo on August 11, 2007, 02:12:23 AM
Quote from: DeathfireD on February 09, 2006, 06:26:03 PM
Having a problem. It installed fine, now I added my google adsence code and clicked on a few of the check boxes and hit apply. But I dont see any ads show up. I tryed logging out but still dont see any. Is there something I need to edit in the themes?

I have the same problem...  i put   google 468*60 ads

http://www.overyou.cn/forums
Title: Re: Ad Management mod
Post by: freakcypher on August 11, 2007, 08:17:57 AM
i made it work for my alak theme. after i made it acessible it was looking great. icould only say WOW. if you will look this you will also like this theme. i think this theme should be the default theme. now i will work on making other mods accesible with this theme. you can check my site

http://www.cypherworld.co.nr (http://www.cypherworld.co.nr)
Title: Re: Ad Management mod
Post by: Bigguy on August 11, 2007, 02:26:27 PM
Make sure all the edits are done to the template files. If you use a custom theme they will have to be added manually.
Title: Re: Ad Management mod
Post by: mogsub on August 12, 2007, 11:36:28 AM
I have installed it but I have the following problem: only admins can see my ads and not the rest  of the members or guests
Title: Re: Ad Management mod
Post by: Bigguy on August 12, 2007, 11:52:48 AM
Check your permissions settings for each member group.
Title: Re: Ad Management mod
Post by: th2mods on August 15, 2007, 04:38:03 AM
I need this for Aa new damage, here are my edited theme files. I asked for this to be done at smfads.com over a month ago, and got nothing.

Title: Re: Ad Management mod
Post by: dilipkhanolkar on August 15, 2007, 06:25:39 AM
Can you clarify th2mods
Title: Re: Ad Management mod
Post by: Bigguy on August 15, 2007, 10:21:51 AM
I have been very busy and am sorry for the long wait you have had. I have been there recently though and did not see your post. You say these are edited theme files, have you tried to put the ad code in yourself.

Quote from: th2mods on August 15, 2007, 04:38:03 AM
I need this for Aa new damage, here are my edited theme files. I asked for this to be done at smfads.com over a month ago, and got nothing.


Title: Re: Ad Management mod
Post by: Cool999 on August 15, 2007, 11:22:04 AM
Please Help me Sir,

The Ads Are Not Coming Correctly.

Check the below Screenshot.
(http://img443.imageshack.us/img443/6234/adsat1.jpg)

Please Check the below Link To Download - index.template.php file

http://www.mediafire.com/?23int1vyviv

Please edit it.

Thanks a lot
Title: Re: Ad Management mod
Post by: dilipkhanolkar on August 15, 2007, 11:25:12 AM
This is the same what had happened with me the problem is where the coding of left & right ads come
Title: Re: Ad Management mod
Post by: Bigguy on August 15, 2007, 11:30:11 AM
I don't know what other mods you have installed but have you looked here for the dilbermc zip file and used these files yet:

CLICK (http://files4.smfhelp.com/index.php?dir=Ad+mod+edited+files%2F)
Title: Re: Ad Management mod
Post by: Cool999 on August 15, 2007, 11:51:33 AM
I tried this , still same problem

Please Help

Thanks
Title: Re: Ad Management mod
Post by: Bigguy on August 15, 2007, 11:59:37 AM
I will have to take another look at the dilber template files then.
Title: Re: Ad Management mod
Post by: th2mods on August 15, 2007, 05:56:43 PM
Quote from: Bigguy on August 15, 2007, 10:21:51 AM
I have been very busy and am sorry for the long wait you have had. I have been there recently though and did not see your post. You say these are edited theme files, have you tried to put the ad code in yourself.

Quote from: th2mods on August 15, 2007, 04:38:03 AM
I need this for Aa new damage, here are my edited theme files. I asked for this to be done at smfads.com over a month ago, and got nothing.


i tried myself, and it works, except when you go to post a topic, or even look at a topic the screen goes white.
Title: Re: Ad Management mod
Post by: Bigguy on August 15, 2007, 11:23:42 PM
Any errors at all in the error logs. ???
Title: Re: Ad Management mod
Post by: Cool999 on August 16, 2007, 05:26:22 AM
Have you checked

Quote from: Bigguy on August 15, 2007, 11:59:37 AM
I will have to take another look at the dilber template files then.
Title: Re: Ad Management mod
Post by: Bigguy on August 16, 2007, 11:04:56 AM
No not yet.
Title: Re: Ad Management mod
Post by: hotrod007 on August 19, 2007, 06:05:16 PM
Wow.  90 pages. hard to find a fix in all these pages.  If I may tell you how far i got.

I'm using smf v 1.1.3 with rocket theme versatilely here.   www.njswf.com/forums

I read all the manually install instructions and I'm missing a lot of things.

1) I have no default templet.php ( ??? )
2) can't find the <body> in the theme temp.php..
3) And i'm not sure if im using the proper install instructions.

I did install it and it warned me about the missing default templets.php and installed it anyway.

I just gave up when I got lost of what file to edit and how if I can't find the section areas to add code.

Would anyone like to get me a jump start ;)

I'm wilingl to put a lot of time into getting this great mode up.
Title: Re: Ad Management mod
Post by: aoza on August 23, 2007, 02:14:52 AM
hey guys.

i have just add one add code but it shows 4 adds.

i have installed ad mod mistake ly 3-4 times now i cant unintsall it.

many persons say you have to removed duplicate code.but i dont know wheret o find that duplicate code.


i request you.please help me please

my fourms url is http://0gravity.0lx.net/SMF11
Title: Re: Ad Management mod
Post by: miromopa on August 24, 2007, 01:35:15 AM
why's the ad management mod not working with the Highway theme?

come to think of it, it only readily works with the default theme?
Title: Re: Ad Management mod
Post by: Dragooon on August 24, 2007, 01:36:39 AM
Yes You need to make changes if you are using custom theme.
Use http://modparser.dev.dansoftaustralia.net for more info.
Title: Re: Ad Management mod
Post by: TrueSatan on August 24, 2007, 04:26:43 AM
Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

Almost all mods only install into the SMF default theme..if you choose to use a custom theme you have to edit them into it.
Title: Re: Ad Management mod
Post by: rehan on August 25, 2007, 12:52:36 PM
For Some reason Adds are not appearing when i view my forum in mozilla Fire fox & Mozilla 1.5. But they appear in IE. These adds used to appear fine in Mozilla before but from  somedays  these adds are not appearing in mozilla browser.
I dont know why is this happening. it worked fine for more thn 2 months and now suddenly this problem occured.
Any Idea what to do???
Thanks
Title: Re: Ad Management mod
Post by: Bigguy on August 25, 2007, 01:20:55 PM
Do you have an ad blocker or script blocker installed. ???
Title: Re: Ad Management mod
Post by: simplyliza6 on August 26, 2007, 05:45:07 AM
Quote from: manga-lover1988 on July 23, 2007, 06:23:29 AM
I install th Ad management but it didnt show up under the configuration... could anyone tell how to install?

Try this: Go to SMF admin cpanel then slick on server setting change the langauge English not English-8tf,,...

hope that helps
Liza^_^
Title: Re: Ad Management mod
Post by: simplyliza6 on August 26, 2007, 05:48:33 AM
I need help please people help me.

Ive installed the Ad Management its in version 1.3
It works perfectly fine, done all the permissions.

But why cant i see the ad, anywhere?


Liza^_^
Title: Re: Ad Management mod
Post by: Bigguy on August 26, 2007, 10:23:54 AM
Are you using a custom theme. ???
Title: Re: Ad Management mod
Post by: rehan on August 26, 2007, 01:07:27 PM
Quote from: Bigguy on August 25, 2007, 01:20:55 PM
Do you have an ad blocker or script blocker installed. ???

No i havnt installed any such thing. infact i dint installed any new mod in last two months .
The only thing tht confuses me is why adds show on I.E and not on mozilla.
Title: Re: Ad Management mod
Post by: Bigguy on August 27, 2007, 08:32:43 AM
That is weird; I have never had a problem at all with FF. I am not sure how to help with this. I do believe it is a browser problem as I use FF all the time and can see ads everywhere.
Title: Re: Ad Management mod
Post by: rehan on August 28, 2007, 05:30:10 AM
oops.. sorry its a mistake at my end.. i guess my mozila is having some kind of problem..
coz, adds do appear on other PC's.
i'll update my mozilla or reinstall it..

Thanks.. :)
Title: Re: Ad Management mod
Post by: rememberramu on August 28, 2007, 09:18:55 AM
How to install ad management mod , I have recently downloaded this package ,
Now In which folder should I have to upload it ?
Should I unzip before uploading ?
Please help me by providing steps to install .
Title: Re: Ad Management mod
Post by: rememberramu on August 28, 2007, 12:08:01 PM
I have successfully  installed ad management version 2.3 But I can not see ad management in configuration section . What should I do After installation of it ?
Title: Re: Ad Management mod
Post by: Bigguy on August 28, 2007, 02:00:36 PM
Are you using a custom theme. ??? Is your langauge set to english utf8 ??? Change your languages settings in your Server settings area of the admin panel and see if that helps.
Title: Re: Ad Management mod
Post by: pacman30_99 on August 28, 2007, 02:26:25 PM
I INSTALLED THE AD PROGRAM TO MY BOARD. SHOWS THAT IT IS INSTALLED BUT IT IS NOT RUNNING .COULD SOMEONE GIVE ME ADVISE ON WHAT TO DO TO GET THIS PROGRAM RUNNING .I KNOW NOTHING ABOUT SCRIPT OR WRITING SCRIPT. SO ANY DETAILED HELP WOULD BE APPRICIATED
Title: Re: Ad Management mod
Post by: joanjoyce on August 28, 2007, 02:58:56 PM

do this thing works on SMF w/ TP installed? mine has TP and I didn't see any errors on it but my ads doesn't appear.
Title: Re: Ad Management mod
Post by: rememberramu on August 28, 2007, 03:08:08 PM
Quote from: Bigguy on August 28, 2007, 02:00:36 PM
Are you using a custom theme. ??? Is your langauge set to english utf8 ??? Change your languages settings in your Server settings area of the admin panel and see if that helps.
I have used default theme  , And language is English and its ok But I can not see ad manager in configaration heading , What to do ? Is there any alternative to it ? 
Title: Re: Ad Management mod
Post by: Dragooon on August 29, 2007, 08:14:09 AM
Quote from: pacman30_99 on August 28, 2007, 02:26:25 PM
I INSTALLED THE AD PROGRAM TO MY BOARD. SHOWS THAT IT IS INSTALLED BUT IT IS NOT RUNNING .COULD SOMEONE GIVE ME ADVISE ON WHAT TO DO TO GET THIS PROGRAM RUNNING .I KNOW NOTHING ABOUT SCRIPT OR WRITING SCRIPT. SO ANY DETAILED HELP WOULD BE APPRICIATED
Is it default theme?

Quote from: joanjoyce on August 28, 2007, 02:58:56 PM

do this thing works on SMF w/ TP installed? mine has TP and I didn't see any errors on it but my ads doesn't appear.

Yes it do does. Are you using a custom theme?
Quote from: rememberramu on August 28, 2007, 03:08:08 PM
Quote from: Bigguy on August 28, 2007, 02:00:36 PM
Are you using a custom theme. ??? Is your langauge set to english utf8 ??? Change your languages settings in your Server settings area of the admin panel and see if that helps.
I have used default theme  , And language is English and its ok But I can not see ad manager in configaration heading , What to do ? Is there any alternative to it ? 
You sure you made the changes all fine? See in files if Ad Management code is there.
Title: Re: Ad Management mod
Post by: joanjoyce on August 29, 2007, 02:02:41 PM
Quote from: Dragooon on August 29, 2007, 08:14:09 AM

Quote from: joanjoyce on August 28, 2007, 02:58:56 PM

do this thing works on SMF w/ TP installed? mine has TP and I didn't see any errors on it but my ads doesn't appear.

Yes it do does. Are you using a custom theme?


Yes I am using a custom theme "Alienation" and I dont see my ad management working :( pls. help me
Title: Re: Ad Management mod
Post by: rememberramu on August 29, 2007, 02:47:12 PM
1. I have installed fresh copy of version 1.1.3 SMF forum,
2. Then I installed ad manager version 2.3  of file "ad_mod_1-1-x_v2-3" , installed success fully
I have done nothing then this , And I do not see ad management in configuration section ,
What step should I do more than this to put adsense ads ...
I have only done above 2 steps
Title: Re: Ad Management mod
Post by: sygmal on August 30, 2007, 04:29:07 AM
I'm experiencing the same problem as rememberramu.
I tried switching themes before and after installation but the tab for the mod simply isn't there
Title: Re: Ad Management mod
Post by: Dragooon on August 30, 2007, 05:39:04 AM
Quote from: joanjoyce on August 29, 2007, 02:02:41 PM
Quote from: Dragooon on August 29, 2007, 08:14:09 AM

Quote from: joanjoyce on August 28, 2007, 02:58:56 PM

do this thing works on SMF w/ TP installed? mine has TP and I didn't see any errors on it but my ads doesn't appear.

Yes it do does. Are you using a custom theme?


Yes I am using a custom theme "Alienation" and I dont see my ad management working :( pls. help me

You need to make manual edits. See http://modparser.dev.dansoftaustralia.net for more info
Title: Re: Ad Management mod
Post by: rememberramu on August 30, 2007, 01:39:40 PM
I have done this manual edit  , But still nothing happens , I have done at least 3 times but nothing happens , what do next ,
Please tell me detailed steps to install ad mod .
Here are some steps I have done to install before ( Not in case of manual edit now )
1. I have installed SMF 1.1.3 from Cpanal ( fantastico )  in root directory
2. Then I have uploaded ad manager version 2.3 and installed it successfully ,
I got the massage that this mod has been installed successfully , But I can not see ad manager as here said I have to go to ad manager option to put the ads on forum .
Please tell me this is the exact procedure to apply ad manager mod ?
Or I have done something wrong or some more steps is required to see the effects ?
Please help me ... I am trying it from 4 complete days and upset now .
And asking that It really works or not ?
Title: Re: Ad Management mod
Post by: Bigguy on August 30, 2007, 10:55:33 PM
Try installing SMF 1.1.3 manually by uploading the files through a ftp program or by uploading the zip file in your file manager of cpanel and extracting it there. Install it and then try installing the ad mod. I do not think fantastico works to well. This is just a personal observation though but other people have had problems with fantastico.
Title: Re: Ad Management mod
Post by: rememberramu on August 31, 2007, 09:15:19 AM
I have tried that also , I get many errors on executing webinstall file , So I am unable to install it manually ......
I as see there is space for ad manager option on configuration heading after insatlling this mod just link and text does not display .
There is more space on configuration heading than before insatlling ,
This means the mod is installed successfully only link or option does not display .....
How to fix it ?
Title: Re: Ad Management mod
Post by: rememberramu on August 31, 2007, 02:20:50 PM
I have tried again to install it manually , by downloading webinstall.php I get following error

"Warning: unpack() [function.unpack]: Type H: not enough input, need 1, have 0 in /home/mesothel/public_html/webinstall.php on line 1051
The installer was unable to download the archive (http://www.simplemachines.org/download/index.php/smf_1-1-3_install.tar.gz) from the server. Please try using the regular installer package instead.

Click here to try this step again. "

I have changed script as it says 0 to 1 in line 1051  , But again Get same same problem .
Title: Re: Ad Management mod
Post by: simplyliza6 on August 31, 2007, 04:33:34 PM
Quote from: Bigguy on August 26, 2007, 10:23:54 AM
Are you using a custom theme. ???

yes im using a custom theme. any idea how i can make the ads shows? the langauge is set in English not English utf8...
Title: Re: Ad Management mod
Post by: rememberramu on September 01, 2007, 04:56:19 AM
Thanlyou very very much simplyliza6 ,
                  I am very very greatful to you , I can not express my happyness in words here . This simple change to appear it . I was in tension from 1 week on it . Now its working ......
Title: Re: Ad Management mod
Post by: Bigguy on September 04, 2007, 03:37:18 PM
You will have to edit 4 template files in order to get it all to show. All the edits are posted in a sticky over at www.smfads.com in the theme support board.
Title: Re: Ad Management mod
Post by: fade on September 08, 2007, 11:52:57 AM
I keep gettin an php error on line 6 of the install.php dunno how, thats when i try to install it
Title: Re: Ad Management mod
Post by: shadow82x on September 08, 2007, 11:54:52 AM
If your forums are running - install.php should not exsist. Go in FTP and delete that file. Regards.
Title: Re: Ad Management mod
Post by: vehla_jatt_4_u on September 10, 2007, 11:18:32 AM
i have succesfully install ad management mod,i m using smf 1.1.3,i have put ad code in the mod,i m using a custom theme,but ads are not showing up,wat is the prob,can anyone help me???????
Title: Re: Ad Management mod
Post by: Dragooon on September 10, 2007, 01:05:41 PM
Go to www.smfads.com
Go To themes board and see what all edits are required to make this work with your theme.

Also please search before posting.
Title: Re: Ad Management mod
Post by: hypercube on September 12, 2007, 07:09:31 AM
HELP ME PLZZZZZ :-[
I installed it, but when I use it, the ad repeats itself.
So when I use the option: Display at welcome user area, there are 4 same ads next to eachother! What do I have to do ???
Title: Re: Ad Management mod
Post by: hypercube on September 12, 2007, 07:18:34 AM
I use the Default theme by the way
Title: Re: Ad Management mod
Post by: Bigguy on September 12, 2007, 03:30:54 PM
You will have to go through the template files and take out all the duplicate code. I assume you tried to or had it installed before you installed it this time. ??? All the edits can be found at www.smfads.com in the Theme support board; they are stickied to the top. :)
Title: Re: Ad Management mod
Post by: hypercube on September 12, 2007, 03:36:14 PM
yeah well, I'm not very good with those things. So I have to edit all the files of the skin? Cant I just install the default skin again so everything will be reseted? I dont want to install the forum again, cause I dont want to loose all my posts.... So is there anyway to solve this without loosing my topic/posts/boards?
:-\
Title: Re: Ad Management mod
Post by: Bigguy on September 12, 2007, 03:38:28 PM
No all you have to edit is 4 template files; thats it.

index.template.php
BoardIndex.template.php
MessageIndex.php
Display.template.php

You should be able to see the duplicate code just by opening it and scanning through it.
Title: Re: Ad Management mod
Post by: hypercube on September 12, 2007, 03:41:23 PM
ok, and wich sentences/words do I have to search?
Title: Re: Ad Management mod
Post by: hypercube on September 12, 2007, 04:07:32 PM
nvm, Thanx Bigguy, your my hero. I edited those 4 files and now it's ok!
Title: Re: Ad Management mod
Post by: Bigguy on September 12, 2007, 08:11:37 PM
No problem. :)
Title: Re: Ad Management mod
Post by: hartiberlin on September 20, 2007, 12:10:05 AM
Hi Jeremy,
could you please try to make a permission setting for each ad
into your admod,
so one could control,
which membergroup will see the ads inbetween the postings for instance ?

I wish to have different ads for different membergroups.

Guest should see the most ads and members should see
less ads and it would be good,
if one could say, which membergroup could only see this and that
ad.

Would this be very hard to implement ?
Many thanks.

Best regards, Stefan.
Title: Re: Ad Management mod
Post by: geezmo on September 20, 2007, 03:59:11 PM
This was asked in the Google Adsense in various positions thread but no one replied so I'll ask it here.

What command do I add to the ad codes in order to disable ads from appearing in the Login and Administration (also Moderation) pages?

Thanks.
Title: Re: Ad Management mod
Post by: Bigguy on September 20, 2007, 11:04:27 PM
robots.txt might do it for those pages maybe.
Title: Re: Ad Management mod
Post by: geezmo on September 21, 2007, 12:23:38 AM
BigGuy: Was that for me? I'm asking for permission settings for the ads, I just don't want the ads to appear while members are logging in and while me and my moderators are moderating the forum (because you won't click on the ads anyway while you're moderating).

The robots.txt thing is good only for search engine spiders, afaik, so I don't think that's the thing I need.
Title: Re: Ad Management mod
Post by: Bigguy on September 21, 2007, 12:54:58 PM
I was wrong there; sorry. I don't think there is a setting to disable ads for moderators. There is one for admins.
Title: Re: Ad Management mod
Post by: Flying Drupalist on September 24, 2007, 04:10:47 PM
Hello, I keep on getting these error messages:

Database Error: Table 'ads.smf_membergroups' doesn't exist
File: /home/public_html/Sources/Load.php
Line: 2301Database Error: Table 'ads.smf_sessions' doesn't exist
File: /home/public_html/Sources/Load.php
Line: 2073

I'm not even using your mod. But I had installed it in the past. Do you know what I can do?
Title: Re: Ad Management mod
Post by: Bigguy on September 24, 2007, 05:25:05 PM
You could try to install it and then uninstall it to see if that takes out the error.
Title: Re: Ad Management mod
Post by: asdas2 on September 25, 2007, 12:37:15 AM
okay, i need help here
i installed this mod sucessfully,

but when i ad a new add, and select

Display ads on every page right below the menu 
Display ads on board index 
Display ads on message index 
  Display ads on every page on the top of the page 
Display ads in the welcome user area 
Display ads on the bottom of the page 
Display ads on every page as a tower on the left side 
Display ads on every page as a tower on the right side 
Display ads under child boards


if i select any of the above, if wont show my add to that position(( it dosent show my add at atll)))

but if select these 2 option
Display ads on the post page 
Display ads after the last post

it workz fine,

---------------------------------

any idea???? how to fix that prob
Title: Re: Ad Management mod
Post by: Bigguy on September 25, 2007, 12:46:34 AM
Do you have a custom theme. If so some of your template files need to be edited manually in order for the ads to show.
Title: Re: Ad Management mod
Post by: rediam on September 25, 2007, 08:29:48 PM
ad mod installed without problem , but i didn't found it in  the Administration panel under the heading "Configuration". :( ===> (http://img264.imageshack.us/img264/4730/configcy3.png) Help me please !! :(
Title: Re: Ad Management mod
Post by: Bigguy on September 25, 2007, 09:00:04 PM
Change to english and see if it is there.
Title: Re: Ad Management mod
Post by: asdas2 on September 26, 2007, 04:25:16 PM
Quote from: Bigguy on September 25, 2007, 12:46:34 AM
Do you have a custom theme. If so some of your template files need to be edited manually in order for the ads to show.

yes i m using Dilber mc theme......  wat manuall editing do i have to do ?
Title: Re: Ad Management mod
Post by: rediam on September 26, 2007, 04:27:30 PM
That well !! It's Ok Thank you Bigguy :)
Title: Re: Ad Management mod
Post by: Bigguy on September 27, 2007, 01:28:59 AM
They are stickied to the top of the Theme support board at www.smfads.com

Quote from: asdas2 on September 26, 2007, 04:25:16 PM
Quote from: Bigguy on September 25, 2007, 12:46:34 AM
Do you have a custom theme. If so some of your template files need to be edited manually in order for the ads to show.

yes i m using Dilber mc theme......  wat manuall editing do i have to do ?
Title: Re: Ad Management mod
Post by: HuntsvilleAL on September 27, 2007, 11:37:07 AM
HI EVERYONE


quick question


i have the 2.3 zip downloaded, but what directory do i extract the files to, and how to navigate in the admin section of my site to load/configure/deploy my google ads via this mod?

need help :)


thanks
Title: Re: Ad Management mod
Post by: asdas2 on September 27, 2007, 06:38:29 PM
Quote from: Bigguy on September 27, 2007, 01:28:59 AM
They are stickied to the top of the Theme support board at www.smfads.com

Quote from: asdas2 on September 26, 2007, 04:25:16 PM
Quote from: Bigguy on September 25, 2007, 12:46:34 AM
Do you have a custom theme. If so some of your template files need to be edited manually in order for the ads to show.

yes i m using Dilber mc theme......  wat manuall editing do i have to do ?


i didnt find anything for dilber mc :(
Title: Re: Ad Management mod
Post by: Bigguy on September 27, 2007, 08:17:01 PM
Try here in "Ad mod edited files" I have already edited some files for some themes. These might NOT be up to date so please back up the originals. As it says in red THESE ARE NOT MOD PACKAGES DO NOT install them as such.

http://files4.smfhelp.com/

Dilber MC should be there somewhere; there might also be a TP version.
Title: Re: Ad Management mod
Post by: masss on September 28, 2007, 08:03:38 PM
How can i disable ads for some (sub)forum (because i'm not allowed to show ads if i have sexy pictures in topics)?
Title: Re: Ad Management mod
Post by: Bigguy on September 28, 2007, 08:06:42 PM
Disable for different boards you mean. You can do that in the ad mod settings in the admin panel.
Title: Re: Ad Management mod
Post by: masss on September 28, 2007, 08:26:11 PM
Yes, i mean for boards. Thank you a lot for your fast reply ;)
Title: Re: Ad Management mod
Post by: jmanpa on September 29, 2007, 04:15:31 PM
Is there a step-by-step install guide for this mod?
Title: Re: Ad Management mod
Post by: Bigguy on September 29, 2007, 04:31:39 PM
Download the mod, go into the admin panel to download packages, upload the package and install. Do NOT continue if you have any errors. Are you using a custom theme. ???
Title: Re: Ad Management mod
Post by: ArkServer on October 01, 2007, 06:25:58 AM
Is it possible to edit the PSP theme for me? thanks! I can't seem to do it so thats why im asking here :D

link to theme: http://www.tinyportal.net/index.php?topic=13060.0
Title: Re: Ad Management mod
Post by: wolfey on October 01, 2007, 01:30:26 PM
Bigguy, I am using The Amber theme with 1.1.4
I have done the manual edits and I can now get ad below the menu, I am trying to get an add on the registration page, which will encourage people to register with the forum by registering.
First, I cannot seem to get the add to go on this page, any idea how I can do it?
Second, When the ad is pressed, it needs to say 'For registered members only' Your help please?
I have been doing the edits on my test site on my sub domain so I don't mess the main one up.
I see other sites also with a line of smaller ads below the menu, How would I do this, there is usally about 5 and the aligned text as left right or center would cover 3 but when trying to do this it only shows up one ad. Would you know the reason for this.
I need to start doing a link exchange with other sites to get morew visitors but until I can sort out the problems with the ad mod I cannot do it. I have been trying to solve it for about 3 weeks. Know your busy, but would appreciate any assistance you could give. Thanks 
  :'(
Title: Re: Ad Management mod
Post by: Bigguy on October 01, 2007, 08:39:37 PM
@ ArkServer: yes it is possible. Right now I am in the middle of writing a business plan for a business I am wanting to start up. I will try to get to it tonight for you.

@ wolfey: For the registration page you would have to add an edit to get ads to show. I personally would not be able to make it so that it was just for registered users but Jerm might be able to help on that. A link exchange could be done with the affiliates mod found on my site. It works very well as far as I am concerned.
Title: Re: Ad Management mod
Post by: Flying Drupalist on October 02, 2007, 12:15:26 AM
Quote from: Bigguy on September 24, 2007, 05:25:05 PM
You could try to install it and then uninstall it to see if that takes out the error.

Hi, I tried that, no go... Any other ideas?
Title: Re: Ad Management mod
Post by: Bigguy on October 02, 2007, 12:19:19 AM
Putting the edits back in the Load.php would solve it
Title: Re: Ad Management mod
Post by: weypans on October 02, 2007, 03:36:38 PM
I downloaded mod from here (version 2.3):
http://custom.simplemachines.org/mods/index.php?mod=255

However, after I installed it and added a new google add and named it google the list of my ads includes my add two times:
google
google
Each in it's own row! And when I go look my ads to the forum, the add takes a space which it's exactly the same as two adds would require!

Has this happened to anyone else? How can I make the mod work correctly??

I'm using the default theme it it helps..
Title: Re: Ad Management mod
Post by: Bigguy on October 02, 2007, 04:26:13 PM
This means that the code somewhere in the template files is doubled up. You will have to go through the template files of the theme you use and/or the default theme and remove the double code.
Title: Re: Ad Management mod
Post by: jaminjavajoe on October 03, 2007, 01:08:27 AM
Hi, I'm using SMF 1.1.4

Tried to install  Version 2.3 tonight I get get an error message.

6. Execute Modification ./Themes/default/Display.template.php Test failed

Here's the file, maybe if you have time can someone take a look.

TIA

Joe
<?php
// Version: 1.1; Display

function template_main()
{
   global $context, $settings, $options, $txt, $scripturl, $modSettings;
   //Display ads on the thread page
   if (function_exists("show_threadAds"))
   {
      $ads = show_threadAds();   
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);
   }


   // Show the anchor for the top and for the first message. If the first message is new, say so.
   echo '
<a name="top"></a>
<a name="msg', $context['first_message'], '"></a>', $context['first_new_message'] ? '<a name="new"></a>' : '';

      // Show the linktree
   echo '
<div>', theme_linktree(), '</div>';

   // Is this topic also a poll?
   if ($context['is_poll'])
   {
      echo '
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 2ex;">
   <tr>
      <td class="titlebg" colspan="2" valign="middle" style="padding-left: 6px;">
         <img src="', $settings['images_url'], '/topic/', $context['poll']['is_locked'] ? 'normal_poll_locked' : 'normal_poll', '.gif" alt="" align="bottom" /> ', $txt['smf43'], '
      </td>
   </tr>
   <tr>
      <td width="5%" valign="top" class="windowbg"><b>', $txt['smf21'], ':</b></td>
      <td class="windowbg">
         ', $context['poll']['question'];
      if (!empty($context['poll']['expire_time']))
         echo '
               &nbsp;(', ($context['poll']['is_expired'] ? $txt['poll_expired_on'] : $txt['poll_expires_on']), ': ', $context['poll']['expire_time'], ')';

      // Are they not allowed to vote but allowed to view the options?
      if ($context['poll']['show_results'] || !$context['allow_vote'])
      {
         echo '
         <table>
            <tr>
               <td style="padding-top: 2ex;">
                  <table border="0" cellpadding="0" cellspacing="0">';

            // Show each option with its corresponding percentage bar.
         foreach ($context['poll']['options'] as $option)
            echo '
                     <tr>
                        <td style="padding-right: 2ex;', $option['voted_this'] ? 'font-weight: bold;' : '', '">', $option['option'], '</td>', $context['allow_poll_view'] ? '
                        <td nowrap="nowrap">' . $option['bar'] . ' ' . $option['votes'] . ' (' . $option['percent'] . '%)</td>' : '', '
                     </tr>';

         echo '
                  </table>
               </td>
               <td valign="bottom" style="padding-left: 15px;">';

         // If they are allowed to revote - show them a link!
         if ($context['allow_change_vote'])
            echo '
               <a href="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], ';sesc=', $context['session_id'], '">', $txt['poll_change_vote'], '</a><br />';

         // If we're viewing the results... maybe we want to go back and vote?
         if ($context['poll']['show_results'] && $context['allow_vote'])
            echo '
                  <a href="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], '">', $txt['poll_return_vote'], '</a><br />';

         // If they're allowed to lock the poll, show a link!
         if ($context['poll']['lock'])
            echo '
                  <a href="', $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', !$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b'], '</a><br />';

         // If they're allowed to edit the poll... guess what... show a link!
         if ($context['poll']['edit'])
            echo '
                  <a href="', $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';

         echo '
               </td>
            </tr>', $context['allow_poll_view'] ? '
            <tr>
               <td colspan="2"><b>' . $txt['smf24'] . ': ' . $context['poll']['total_votes'] . '</b></td>
            </tr>' : '', '
         </table><br />';
      }
      // They are allowed to vote! Go to it!
      else
      {
         echo '
         <form action="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], '" method="post" accept-charset="', $context['character_set'], '" style="margin: 0px;">
            <table>
               <tr>
                  <td colspan="2">';

         // Show a warning if they are allowed more than one option.
         if ($context['poll']['allowed_warning'])
            echo '
                     ', $context['poll']['allowed_warning'], '
                  </td>
               </tr><tr>
                  <td>';

         // Show each option with its button - a radio likely.
         foreach ($context['poll']['options'] as $option)
            echo '
                     ', $option['vote_button'], ' ', $option['option'], '<br />';

         echo '
                  </td>
                  <td valign="bottom" style="padding-left: 15px;">';

         // Allowed to view the results? (without voting!)
         if ($context['allow_poll_view'])
            echo '
                     <a href="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], ';viewResults">', $txt['smf29'], '</a><br />';

         // Show a link for locking the poll as well...
         if ($context['poll']['lock'])
            echo '
                     <a href="', $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', (!$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b']), '</a><br />';

         // Want to edit it? Click right here......
         if ($context['poll']['edit'])
            echo '
                     <a href="', $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';

            echo '
                  </td>
               </tr><tr>
                  <td colspan="2"><input type="submit" value="', $txt['smf23'], '" /></td>
               </tr>
            </table>
            <input type="hidden" name="sc" value="', $context['session_id'], '" />
         </form>';
      }

      echo '
      </td>
   </tr>
</table>';
   }

   // Does this topic have some events linked to it?
   if (!empty($context['linked_calendar_events']))
   {
      echo '
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 3ex;">
      <tr>
            <td class="titlebg" valign="middle" align="left" style="padding-left: 6px;">
                  ', $txt['calendar_linked_events'], '
            </td>
      </tr>
      <tr>
            <td width="5%" valign="top" class="windowbg">
                  <ul>';
      foreach ($context['linked_calendar_events'] as $event)
         echo '
                        <li>
                           ', ($event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: red;">*</a> ' : ''), '<b>', $event['title'], '</b>: ', $event['start_date'], ($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : ''), '
                        </li>';
      echo '
                  </ul>
            </td>
      </tr>
</table>';
   }

   // Build the normal button array.
   $normal_buttons = array(
      'reply' => array('test' => 'can_reply', 'text' => 146, 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies']),
      'notify' => array('test' => 'can_mark_notify', 'text' => 125, 'image' => 'notify.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');"', 'url' => $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
      'custom' => array(),
      'send' => array('test' => 'can_send_topic', 'text' => 707, 'image' => 'sendtopic.gif', 'lang' => true, 'url' => $scripturl . '?action=sendtopic;topic=' . $context['current_topic'] . '.0'),
      'print' => array('text' => 465, 'image' => 'print.gif', 'lang' => true, 'custom' => 'target="_blank"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'),
   );

   // Special case for the custom one.
   if ($context['user']['is_logged'] && $settings['show_mark_read'])
      $normal_buttons['custom'] = array('text' => 'mark_unread', 'image' => 'markunread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
   elseif ($context['can_add_poll'])
      $normal_buttons['custom'] = array('text' => 'add_poll', 'image' => 'add_poll.gif', 'lang' => true, 'url' => $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
   else
      unset($normal_buttons['custom']);

   // Show the page index... "Pages: [1]".
   echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
   <tr>
      <td class="middletext" valign="bottom" style="padding-bottom: 4px;">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#lastPost"><b>' . $txt['topbottom5'] . '</b></a>' : '', '</td>
      <td align="right" style="padding-right: 1ex;">
         <div class="nav" style="margin-bottom: 2px;"> ', $context['previous_next'], '</div>
         <table cellpadding="0" cellspacing="0">
            <tr>
               ', template_button_strip($normal_buttons, 'bottom'), '
            </tr>
         </table>
      </td>
   </tr>
</table>';

   // Show the topic information - icon, subject, etc.
   echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="border-bottom: 0;">
      <tr class="catbg3">
            <td valign="middle" width="2%" style="padding-left: 6px;">
                  <img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" align="bottom" alt="" />
            </td>
            <td width="13%"> ', $txt[29], '</td>
            <td valign="middle" width="85%" style="padding-left: 6px;" id="top_subject">
                  ', $txt[118], ': ', $context['subject'], ' &nbsp;(', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')
            </td>
      </tr>';
   if (!empty($settings['display_who_viewing']))
   {
      echo '
      <tr>
            <td colspan="3" class="smalltext">';

      // Show just numbers...?
      if ($settings['display_who_viewing'] == 1)
            echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt[19];
      // Or show the actual people viewing the topic?
      else
         echo empty($context['view_members_list']) ? '0 ' . $txt[19] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) || $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');

      // Now show how many guests are here too.
      echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '
            </td>
      </tr>';
   }

   echo '
</table>';

   echo '
<form action="', $scripturl, '?action=quickmod2;topic=', $context['current_topic'], '.', $context['start'], '" method="post" accept-charset="', $context['character_set'], '" name="quickModForm" id="quickModForm" style="margin: 0;" onsubmit="return in_edit_mode == 1 ? modify_save(\'' . $context['session_id'] . '\') : confirm(\'' . $txt['quickmod_confirm'] . '\');">';

   // These are some cache image buttons we may want.
   $reply_button = create_button('quote.gif', 145, 'smf240', 'align="middle"');
   $modify_button = create_button('modify.gif', 66, 17, 'align="middle"');
   $remove_button = create_button('delete.gif', 121, 31, 'align="middle"');
   $split_button = create_button('split.gif', 'smf251', 'smf251', 'align="middle"');

// Time to display all the posts
   echo '
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="bordercolor">';

   //Ad Counter
   $adcounter =0;
   // Get all the messages...
   while ($message = $context['get_message']())
   {
      $adcounter++;
      echo '
   <tr><td style="padding: 1px 1px 0 1px;">';

      // Show the message anchor and a "new" anchor if this message is new.
      if ($message['id'] != $context['first_message'])
         echo '
      <a name="msg', $message['id'], '"></a>', $message['first_new'] ? '<a name="new"></a>' : '';

      echo '
      <table width="100%" cellpadding="3" cellspacing="0" border="0">
         <tr><td class="', $message['alternate'] == 0 ? 'windowbg' : 'windowbg2', '">';

      // Show information about the poster of this message.
      echo '
            <table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
               <tr>
                  <td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
                     <b>', $message['member']['link'], '</b>
                     <div class="smalltext">';

      // Show the member's custom title, if they have one.
      if (isset($message['member']['title']) && $message['member']['title'] != '')
         echo '
                        ', $message['member']['title'], '<br />';

      // Show the member's primary group (like 'Administrator') if they have one.
      if (isset($message['member']['group']) && $message['member']['group'] != '')
         echo '
                        ', $message['member']['group'], '<br />';

      // Don't show these things for guests.
      if (!$message['member']['is_guest'])
      {
         // Show the post group if and only if they have no other group or the option is on, and they are in a post group.
         if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
            echo '
                        ', $message['member']['post_group'], '<br />';
         echo '
                        ', $message['member']['group_stars'], '<br />';

         // Is karma display enabled?  Total or +/-?
         if ($modSettings['karmaMode'] == '1')
            echo '
                        <br />
                        ', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
         elseif ($modSettings['karmaMode'] == '2')
            echo '
                        <br />
                        ', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '<br />';

         // Is this user allowed to modify this member's karma?
         if ($message['member']['karma']['allow'])
            echo '
                        <a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
                        <a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a><br />';

         // Show online and offline buttons?
         if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
            echo '
                        ', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" style="margin-top: 2px;" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '<br /><br />';

         // Show the member's gender icon?
         if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
            echo '
                        ', $txt[231], ': ', $message['member']['gender']['image'], '<br />';

         // Show how many posts they have made.
         echo '
                        ', $txt[26], ': ', $message['member']['posts'], '<br />
                        <br />';

         // Show avatars, images, etc.?
         if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
            echo '
                        <div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';

         // Show their personal text?
         if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
            echo '
                        ', $message['member']['blurb'], '<br />
                        <br />';

         // This shows the popular messaging icons.
         echo '
                        ', $message['member']['icq']['link'], '
                        ', $message['member']['msn']['link'], '
                        ', $message['member']['aim']['link'], '
                        ', $message['member']['yim']['link'], '<br />';

         // Show the profile, website, email address, and personal message buttons.
         if ($settings['show_profile_buttons'])
         {
            // Don't show the profile button if you're not allowed to view the profile.
            if ($message['member']['can_view_profile'])
               echo '
                        <a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';

            // Don't show an icon if they haven't specified a website.
            if ($message['member']['website']['url'] != '')
               echo '
                        <a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $txt[515] . '" border="0" />' : $txt[515]), '</a>';

            // Don't show the email address if they want it hidden.
            if (empty($message['member']['hide_email']))
               echo '
                        <a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

            // Since we know this person isn't a guest, you *can* message them.
            if ($context['can_send_pm'])
               echo '
                        <a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
         }
      }
      // Otherwise, show the guest's email.
      elseif (empty($message['member']['hide_email']))
         echo '
                        <br />
                        <br />
                        <a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

      // Done with the information about the poster... on to the post itself.
      echo '
                     </div>
                  </td>
                  <td valign="top" width="85%" height="100%">
                     <table width="100%" border="0"><tr>
                        <td valign="middle"><a href="', $message['href'], '"><img src="', $message['icon_url'] . '" alt="" border="0" /></a></td>
                        <td valign="middle">
                           <div style="font-weight: bold;" id="subject_', $message['id'], '">
                              <a href="', $message['href'], '">', $message['subject'], '</a>
                           </div>';

      // If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
      echo '
                           <div class="smalltext">« <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' »</div></td>
                        <td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';

      // Can they reply? Have they turned on quick reply?
      if ($context['can_reply'] && !empty($options['display_quick_reply']))
         echo '
               <a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '" onclick="doQuote(', $message['id'], ', \'', $context['session_id'], '\'); return false;">', $reply_button, '</a>';

      // So... quick reply is off, but they *can* reply?
      elseif ($context['can_reply'])
         echo '
               <a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '">', $reply_button, '</a>';

      // Can the user modify the contents of this post?
      if ($message['can_modify'])
         echo '
               <a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', $modify_button, '</a>';

      // How about... even... remove it entirely?!
      if ($message['can_remove'])
         echo '
               <a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt[154], '?\');">', $remove_button, '</a>';

      // What about splitting it off the rest of the topic?
      if ($context['can_split'])
         echo '
               <a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', $split_button, '</a>';

      // Show a checkbox for quick moderation?
      if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $message['can_remove'])
         echo '
                           <input type="checkbox" name="msgs[]" value="', $message['id'], '" class="check" ', empty($settings['use_tabs']) ? 'onclick="document.getElementById(\'quickmodSubmit\').style.display = \'\';"' : '', ' />';

      // Show the post itself, finally!
      echo '
                        </td>
                     </tr></table>
                     <hr width="100%" size="1" class="hrcolor" />
                     <div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] ? '
                     <img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' . $message['id'] . '" style="cursor: pointer; display: none;" onclick="modify_msg(\'' . $message['id'] . '\', \'' . $context['session_id'] . '\')" />' : '' , '
                  </td>
               </tr>';

      // Now for the attachments, signature, ip logged, etc...
      echo '
               <tr>
                  <td valign="bottom" class="smalltext" width="85%">
                     <table width="100%" border="0" style="table-layout: fixed;"><tr>
                        <td colspan="2" class="smalltext" width="100%">';

      // Assuming there are attachments...
      if (!empty($message['attachment']))
      {
         echo '
                           <hr width="100%" size="1" class="hrcolor" />
                           <div style="overflow: auto; width: 100%;">';
         foreach ($message['attachment'] as $attachment)
         {
            if ($attachment['is_image'])
            {
               if ($attachment['thumbnail']['has_thumb'])
                  echo '
                           <a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />';
               else
                  echo '
                           <img src="' . $attachment['href'] . ';image" alt="" width="' . $attachment['width'] . '" height="' . $attachment['height'] . '" border="0" /><br />';
            }
            echo '
                              <a href="' . $attachment['href'] . '"><img src="' . $settings['images_url'] . '/icons/clip.gif" align="middle" alt="*" border="0" />&nbsp;' . $attachment['name'] . '</a> (', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';
         }

         echo '
                           </div>';
      }

      echo '
                        </td>
                     </tr><tr>
                        <td valign="bottom" class="smalltext" id="modified_', $message['id'], '">';

      // Show "« Last Edit: Time by Person »" if this post was edited.
      if ($settings['show_modify'] && !empty($message['modified']['name']))
         echo '
                           « <i>', $txt[211], ': ', $message['modified']['time'], ' ', $txt[525], ' ', $message['modified']['name'], '</i> »';

      echo '
                        </td>
                        <td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">';

      // Maybe they want to report this post to the moderator(s)?
      if ($context['can_report_moderator'])
         echo '
                           <a href="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '">', $txt['rtm1'], '</a> &nbsp;';
      echo '
                           <img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />';

      // Show the IP to this user for this post - because you can moderate?
      if ($context['can_moderate_forum'] && !empty($message['member']['ip']))
         echo '
                           <a href="', $scripturl, '?action=trackip;searchip=', $message['member']['ip'], '">', $message['member']['ip'], '</a> <a href="', $scripturl, '?action=helpadmin;help=see_admin_ip" onclick="return reqWin(this.href);" class="help">(?)</a>';
      // Or, should we show it because this is you?
      elseif ($message['can_see_ip'])
         echo '
                           <a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $message['member']['ip'], '</a>';
      // Okay, are you at least logged in?  Then we can show something about why IPs are logged...
      elseif (!$context['user']['is_guest'])
         echo '
                           <a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $txt[511], '</a>';
      // Otherwise, you see NOTHING!
      else
         echo '
                           ', $txt[511];

      echo '
                        </td>
                     </tr></table>';

      // Show the member's signature?
      if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
         echo '
                     <hr width="100%" size="1" class="hrcolor" />
                     <div class="signature">', $message['member']['signature'], '</div>';

      echo '
                  </td>
               </tr>
            </table>
         </td></tr>
      </table>
   </td></tr>';
if (function_exists("show_posts"))
{
   if ($adpost = show_posts($adcounter))
   {
      if($modSettings['ads_lookLikePosts'])
      {
         echo '

   <tr><td style="padding: 1px 1px 0 1px;">
      <table width="100%" cellpadding="3" cellspacing="0" border="0">
         <tr><td class="windowbg3">
            <table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
               <tr>
                  <td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
                     <b>', $context['forum_name'], '</b>
                     <div class="smalltext">
                     </div>
                  </td>
                  <td valign="top" width="85%" height="100%">
                     <table width="100%" border="0"><tr>
                        <td valign="middle"><img src="', $message['icon_url'] . '" alt="" border="0" /></td>
                        <td valign="middle">
                           <div style="font-weight: bold;" id="subject_', $message['id'], '">
                              <a href="', $message['href'], '">', $message['subject'], '</a>
                           </div>
                           <div class="smalltext">« <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' »</div></td>
                        <td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
      if ($context['can_reply'] && !empty($options['display_quick_reply']))
         echo '
               ', $reply_button, '';

      // So... quick reply is off, but they *can* reply?
      elseif ($context['can_reply'])
         echo '
               ', $reply_button, '';

      // Can the user modify the contents of this post?
      if ($message['can_modify'])
         echo '
               ', $modify_button, '';

      // How about... even... remove it entirely?!
      if ($message['can_remove'])
         echo '
               ', $remove_button, '';

      // What about splitting it off the rest of the topic?
      if ($context['can_split'])
         echo '
               ', $split_button, '';
echo '
                        </td>
                     </tr></table>
                     <hr width="100%" size="1" class="hrcolor" />
                     <div class="post">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</div>
                  </td>
               </tr>
               <tr>
                  <td valign="bottom" class="smalltext" width="85%">
                     <table width="100%" border="0" style="table-layout: fixed;"><tr>
                        <td colspan="2" class="smalltext" width="100%">
                     </tr><tr>
                        <td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
                        </td>
                        <td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
                           <img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp;', $txt[511], '
                        </td>
                     </tr></table>
               </tr>
            </table>
         </td></tr>
      </table>
   </td></tr>';
      }
      else
         echo '
            <tr><td style="padding: 1px 1px 0 1px;">
               <table width="100%" cellpadding="3" cellspacing="0" border="0">
                  <tr>
                     <td class="windowbg3">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</td>
                  </tr>
               </table>
            </td></tr>';         
   }
   
}

   }
   
   if(function_exists("show_lastpostAds") && function_exists("show_posts"))
   {
      if(($ads = show_lastpostAds()) && !show_posts($adcounter))
      {
         if($modSettings['ads_lookLikePosts'])
         {
               echo '

   <tr><td style="padding: 1px 1px 0 1px;">
      <table width="100%" cellpadding="3" cellspacing="0" border="0">
         <tr><td class="windowbg3">
            <table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
               <tr>
                  <td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
                     <b>', $context['forum_name'], '</b>
                     <div class="smalltext">
                     </div>
                  </td>
                  <td valign="top" width="85%" height="100%">
                     <table width="100%" border="0"><tr>
                        <td valign="middle">&nbsp;</td>
                        <td valign="middle">
                           &nbsp;</td>
                        <td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
      if ($context['can_reply'] && !empty($options['display_quick_reply']))
         echo '
               ', $reply_button, '';

      // So... quick reply is off, but they *can* reply?
      elseif ($context['can_reply'])
         echo '
               ', $reply_button, '';


echo '
                        </td>
                     </tr></table>
                     <hr width="100%" size="1" class="hrcolor" />
                     <div class="post">', $ads['type'] == 0 ? $ads['content'] : eval($ads['content']) , '</div>
                  </td>
               </tr>
               <tr>
                  <td valign="bottom" class="smalltext" width="85%">
                     <table width="100%" border="0" style="table-layout: fixed;"><tr>
                        <td colspan="2" class="smalltext" width="100%">
                     </tr><tr>
                        <td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
                        </td>
                        <td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
                           <img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp;', $txt[511], '
                        </td>
                     </tr></table>
               </tr>
            </table>
         </td></tr>
      </table>
   </td></tr>';
         }
         else
            echo '
               <tr><td style="padding: 1px 1px 0 1px;">
                  <table width="100%" cellpadding="3" cellspacing="0" border="0">
                     <tr>
                        <td class="windowbg3">', $ads['type'] == 0 ? $ads['content'] : eval($ads['content']) , '</td>
                     </tr>
                  </table>
               </td></tr>';            
         
      }
      
   }
   echo '
   <tr><td style="padding: 0 0 1px 0;"></td></tr>
</table>
<a name="lastPost"></a>';

   // As before, build the custom button right.
   if ($context['can_add_poll'])
      $normal_buttons['custom'] = array('text' => 'add_poll', 'image' => 'add_poll.gif', 'lang' => true, 'url' => $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
   elseif ($context['user']['is_logged'] && $settings['show_mark_read'])
      $normal_buttons['custom'] = array('text' => 'mark_unread', 'image' => 'markunread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);

   echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
   <tr>
      <td class="middletext">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#top"><b>' . $txt['topbottom4'] . '</b></a>' : '', '</td>
      <td align="right" style="padding-right: 1ex;">
         <table cellpadding="0" cellspacing="0">
            <tr>
               ', template_button_strip($normal_buttons, 'top', true), '
            </tr>
         </table>
      </td>
   </tr>
</table>';

   if ($context['show_spellchecking'])
      echo '
<script language="JavaScript" type="text/javascript" src="' . $settings['default_theme_url'] . '/spellcheck.js"></script>';

echo '
<script language="JavaScript" type="text/javascript" src="' . $settings['default_theme_url'] . '/xml_topic.js"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
   quickReplyCollapsed = ', !empty($options['display_quick_reply']) && $options['display_quick_reply'] == 2 ? 'false' : 'true', ';

   smf_topic = ', $context['current_topic'], ';
   smf_start = ', $context['start'], ';
   smf_show_modify = ', $settings['show_modify'] ? '1' : '0', ';

   // On quick modify, this is what the body will look like.
   var smf_template_body_edit = \'<div id="error_box" style="padding: 4px; color: red;"></div><textarea class="editor" name="message" rows="12" style="width: 94%; margin-bottom: 10px;">%body%</textarea><br /><input type="hidden" name="sc" value="', $context['session_id'], '" /><input type="hidden" name="topic" value="', $context['current_topic'], '" /><input type="hidden" name="msg" value="%msg_id%" /><div style="text-align: center;"><input type="submit" name="post" value="', $txt[10], '" onclick="return modify_save(\\\'' . $context['session_id'] . '\\\');" accesskey="s" />&nbsp;&nbsp;', $context['show_spellchecking'] ? '<input type="button" value="' . $txt['spell_check'] . '" onclick="spellCheck(\\\'quickModForm\\\', \\\'message\\\');" />&nbsp;&nbsp;' : '', '<input type="submit" name="cancel" value="', $txt['modify_cancel'], '" onclick="return modify_cancel();" /></div>\';

   // And this is the replacement for the subject.
   var smf_template_subject_edit = \'<input type="text" name="subject" value="%subject%" size="60" style="width: 99%;"  maxlength="80" />\';

   // Restore the message to this after editing.
   var smf_template_body_normal = \'%body%\';
   var smf_template_subject_normal = \'<a href="', $scripturl, '?topic=', $context['current_topic'], '.msg%msg_id%#msg%msg_id%">%subject%</a>\';
   var smf_template_top_subject = "', $txt[118], ': %subject% &nbsp;(', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')"

   if (window.XMLHttpRequest)
      showModifyButtons();
// ]]></script>
<table border="0" width="100%" cellpadding="0" cellspacing="0" style="margin-bottom: 1ex;">
      <tr>';
   if ($settings['linktree_inline'])
         echo '
            <td valign="top">', theme_linktree(), '</td> ';
   echo '
            <td valign="top" align="', !$context['right_to_left'] ? 'right' : 'left', '" class="nav"> ', $context['previous_next'], '</td>
      </tr>
</table>';

   $mod_buttons = array(
      'move' => array('test' => 'can_move', 'text' => 132, 'image' => 'admin_move.gif', 'lang' => true, 'url' => $scripturl . '?action=movetopic;topic=' . $context['current_topic'] . '.0'),
      'delete' => array('test' => 'can_delete', 'text' => 63, 'image' => 'admin_rem.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt[162] . '\');"', 'url' => $scripturl . '?action=removetopic2;topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id']),
      'lock' => array('test' => 'can_lock', 'text' => empty($context['is_locked']) ? 'smf279' : 'smf280', 'image' => 'admin_lock.gif', 'lang' => true, 'url' => $scripturl . '?action=lock;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
      'sticky' => array('test' => 'can_sticky', 'text' => empty($context['is_sticky']) ? 'smf277' : 'smf278', 'image' => 'admin_sticky.gif', 'lang' => true, 'url' => $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
      'merge' => array('test' => 'can_merge', 'text' => 'smf252', 'image' => 'merge.gif', 'lang' => true, 'url' => $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic']),
      'remove_poll' => array('test' => 'can_remove_poll', 'text' => 'poll_remove', 'image' => 'admin_remove_poll.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');"', 'url' => $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start']),
      'calendar' => array('test' => 'calendar_post', 'text' => 'calendar37', 'image' => 'linktocal.gif', 'lang' => true, 'url' => $scripturl . '?action=post;calendar;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id']),
   );

   if ($context['can_remove_post'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
      $mod_buttons[] = array('text' => 'quickmod_delete_selected', 'image' => 'delete_selected.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['quickmod_confirm'] . '\');" id="quickmodSubmit"', 'url' => 'javascript:document.quickModForm.submit();');

   echo '
   <table cellpadding="0" cellspacing="0" border="0" style="margin-left: 1ex;">
      <tr>
         ', template_button_strip($mod_buttons, 'bottom') , '
      </tr>
   </table>';

   if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $context['can_remove_post'])
      echo '
   <input type="hidden" name="sc" value="', $context['session_id'], '" />';

   if (empty($settings['use_tabs']))
      echo '
   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      document.getElementById("quickmodSubmit").style.display = "none";
   // ]]></script>';

   echo '
</form>';

   echo '
<div class="tborder"><div class="titlebg2" style="padding: 4px;" align="', !$context['right_to_left'] ? 'right' : 'left', '">
   <form action="', $scripturl, '" method="get" accept-charset="', $context['character_set'], '" style="padding:0; margin: 0;">
      <span class="smalltext">' . $txt[160] . ':</span>
      <select name="jumpto" id="jumpto" onchange="if (this.selectedIndex > 0 &amp;&amp; this.options[this.selectedIndex].value) window.location.href = smf_scripturl + this.options[this.selectedIndex].value.substr(smf
Title: Re: Ad Management mod
Post by: Bigguy on October 03, 2007, 10:53:11 AM
Instead of posting your file like that, can you not upload the whole file instead of copy and paste. ???
Title: Re: Ad Management mod
Post by: EdDoX on October 03, 2007, 12:44:30 PM
hi when  I was installing the MOD this appeared
8.     Execute Modification     ./Sources/ManagePermissions.php     Test failed

somebody can help me. how to fix that?
Title: Re: Ad Management mod
Post by: jaminjavajoe on October 03, 2007, 03:33:43 PM
Sorry Bigguy, I did look for a way to send it as an attachment and I now see I should of went to the top of this tread and clicked on reply and not used this quick reply.  Again, I apologies.

I"ll resend it  using the reply?
Title: Re: Ad Management mod
Post by: jaminjavajoe on October 03, 2007, 03:47:01 PM
Hi, I'm using SMF 1.1.4

Tried to install  Version 2.3 tonight I get get an error message.

6. Execute Modification ./Themes/default/Display.template.php Test failed

I've uplaoded the file(s), maybe if you have time can someone take a look.

TIA

Joe
Title: Re: Ad Management mod
Post by: jaminjavajoe on October 03, 2007, 03:49:10 PM
Not sure if you need the tilde file so I'm uploading it.

Thanks again
Title: Re: Ad Management mod
Post by: Bigguy on October 03, 2007, 05:49:26 PM
All the edits are in that file and I debugged it and there is nothing wrong with it.
Title: Re: Ad Management mod
Post by: jaminjavajoe on October 03, 2007, 07:36:41 PM
Hum, ok, I'll try to run it again...tx
Title: Re: Ad Management mod
Post by: asdas2 on October 03, 2007, 08:20:49 PM
Quote from: Bigguy on September 27, 2007, 08:17:01 PM
Try here in "Ad mod edited files" I have already edited some files for some themes. These might NOT be up to date so please back up the originals. As it says in red THESE ARE NOT MOD PACKAGES DO NOT install them as such.

http://files4.smfhelp.com/

Dilber MC should be there somewhere; there might also be a TP version.


i downloaded 3 files,

boardindex template
messg index temp
displaytemp

.....

but since i got no knowledge about php:(  i cant find the ads managment code.... i do not kno wat code to copy and where to paste it .... bcoz

that file is totally different from my current dilbermc file


please help


Edit :  i uploded my 3 files, if you wanna take a loot at it ...
Title: Re: Ad Management mod
Post by: Bigguy on October 03, 2007, 09:34:38 PM
All the code is already in those files. ???
Title: Re: Ad Management mod
Post by: asdas2 on October 04, 2007, 12:03:04 AM
so when i want to put those ads on index page or botton of the page or in the messg box .. it dosent show .... :( why ??????????????
Title: Re: Ad Management mod
Post by: jaminjavajoe on October 04, 2007, 12:37:33 PM
A few day's ago I tried to manually intragrate Flash Chat into our board and really screwed things up including the Ad Mod.

So, what I decided to do was completely delete all the files from our sever and reinstall SMF 1.1.4 and the Ad Mod.  I left the data base alone (Mysql).

I also, saved a copy of two files from the Themes/Default folder..... style.cc and index.template.php from the deleted folder/files.

Installation went great. Dropped in the 2 saved files and all was well.

Using the package manager, I uploaded the Ad Mod and installed it.  No problems so far.

However, when I place and ad, I get 2 instances of the ad both in the admin/ad management and on the board itself.  I've tried deleting just one of the instances and both get deleted.

I've included an attachment of the two instances for you to view in needed.

Not sure what else to do, pls help.

TIA
Joe
Title: Re: Ad Management mod
Post by: Bigguy on October 04, 2007, 03:08:54 PM
The ad code is in twice. You will have to find and edit the duplicate code out in the template files.
Title: Re: Ad Management mod
Post by: jaminjavajoe on October 04, 2007, 03:15:44 PM
yea, I was thinking the same thing , but I don't understand if after deleting everyting how this could of happened.

Any suggestion on which files to start looking in?

TIA
Joe
Title: Re: Ad Management mod
Post by: Sakae on October 04, 2007, 04:37:38 PM
Quote from: jaminjavajoe on October 04, 2007, 12:37:33 PM
However, when I place and ad, I get 2 instances of the ad both in the admin/ad management and on the board itself.  I've tried deleting just one of the instances and both get deleted.

I'm having the same problem. It was supposed to be a duplicate code in template files, but I can't find neither.

What now? I'm guessing it's problem with last release of ad management mod.
Title: Re: Ad Management mod
Post by: jaminjavajoe on October 04, 2007, 04:42:37 PM
Well, this is getting worse and worse.......I'm going to go ahead and delete the MySql database, all the SMF files and start completely fresh..........grrrrrrr.

Thanks Big Guy........I'll come back with the real questions when I have but I need a working system first.
Title: Re: Ad Management mod
Post by: TikkA on October 04, 2007, 05:05:10 PM
Why cant guests view them grrr annoying!
Title: Re: Ad Management mod
Post by: asdas2 on October 04, 2007, 05:08:05 PM
Quote from: TikkA on October 04, 2007, 05:05:10 PM
Why cant guests view them grrr annoying!

go to permision and allow guest to view ad mood



hey bigguy any solution for me :(
Title: Re: Ad Management mod
Post by: jaminjavajoe on October 04, 2007, 05:13:00 PM
Because along with my forum and database my video cam went with it...............lol
Title: Re: Ad Management mod
Post by: TikkA on October 04, 2007, 05:19:23 PM
Quote from: asdas2 on October 04, 2007, 05:08:05 PM
Quote from: TikkA on October 04, 2007, 05:05:10 PM
Why cant guests view them grrr annoying!

go to permision and allow guest to view ad mood



hey bigguy any solution for me :(
omg thank you!
Title: Re: Ad Management mod
Post by: TikkA on October 04, 2007, 06:07:07 PM
Another question how do you center them?
Title: Re: Ad Management mod
Post by: Bigguy on October 04, 2007, 08:08:39 PM
What template files do you have in your theme folder. ???

Quote from: jaminjavajoe on October 04, 2007, 03:15:44 PM
yea, I was thinking the same thing , but I don't understand if after deleting everyting how this could of happened.

Any suggestion on which files to start looking in?

TIA
Joe
Title: Re: Ad Management mod
Post by: asdas2 on October 05, 2007, 12:34:37 AM
i neeeeeeeeeeeed help :(
Title: Re: Ad Management mod
Post by: bassbass on October 06, 2007, 09:10:41 PM
I just did a fresh install of 1.1.3 with default theme, i upgraded to 1.1.4 then installed the ad mod, but there is no link to manage the mod!  then i uninstalled the mod, uninstalled the upgrade 1.1.4 then installed the ad mod and still nothing!  it installed in other forums i have just fine but not on this one.  here is a photo,
BTW, i installed the SMF through my server automatic installation, in other words i did not download a fresh one from SMF, i used what was in the server auto install.
Title: Re: Ad Management mod
Post by: Bigguy on October 06, 2007, 09:30:38 PM
Check your language in the server settings and see if it is at utf8 if so change it to english and see if it works.
Title: Re: Ad Management mod
Post by: jaminjavajoe on October 07, 2007, 06:40:00 PM
Well, I've got a new board and a whole new set of AD Mod files and all is well, except.....

My Ads only show when when logged in as the administrator.  When members sign in there is nothing.

I've looked and looked and just don't see what is causing this..I'm sure it's just a setting I've not come across but I just don't know where.

Pls Help,

TIA

Joe
Title: Re: Ad Management mod
Post by: jaminjavajoe on October 08, 2007, 12:09:49 PM
Ok, got it with a fresh mind and a new start today....hehe

I do so like this Mod...Tx Jerm and Big Guy
Title: Re: Ad Management mod
Post by: edchapman on October 08, 2007, 01:00:24 PM
Quote from: Bigguy on October 06, 2007, 09:30:38 PM
Check your language in the server settings and see if it is at utf8 if so change it to english and see if it works.

That worked for me... Thanks!
Title: Re: Ad Management mod
Post by: bassbass on October 08, 2007, 02:21:11 PM
Okay, it worked for me too.  i guess my hosting company need to update there SMF installer.  i downloaded a fresh copy of 1.1.4, installed it then installed the ad management mod, and it worked great.
Title: Re: Ad Management mod
Post by: Bigguy on October 09, 2007, 09:33:53 AM
Glad ya all got it going. :)
Title: Re: Ad Management mod
Post by: daWsOn_s on October 09, 2007, 11:40:03 AM
Hello I've tried to install ad management on 1.1.4 but I get these errors

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.



   Type     Action                                                Description
1.    Execute Code    install.php    
2.    Execute Modification    install.xml                     Modification parse error
3.    Execute Modification    -                                 Modification parse error
4.    Extract File    ./Sources/Ads.php    
5.    Extract File    ./Sources/LoadAds.php    
6.    Extract File    ./Themes/default/Ads.template.php    
7.    Extract File    ./Themes/default/languages/Ads.english.php


When I click Install Now the page goes white but I don't get any changes...why?
Title: Re: Ad Management mod
Post by: dely86 on October 09, 2007, 05:02:30 PM
I'm using 1.1.4 version of smf but this mod's last version 1.1.3...How I use it 1.1.4?
Title: Re: Ad Management mod
Post by: RustyBarnacle on October 09, 2007, 05:05:34 PM
You can go into the package-info.xml and change the 3 to a 4 most times and it will work.  Has for me for several mods.
Title: Re: Ad Management mod
Post by: jaminjavajoe on October 10, 2007, 09:18:40 AM
Good Morning,   have a little situation here.

Unable to place Ad between 2 Categories.

At present we have 6 categories and I'm not able to get the Ad Mod to display Ad between category 4 and 5 by placing the specific board numbers in the box for "Display ads after categories".  When I put in "4" for a particular Ad, it jumps to 5 and skips 4.

We have a total of 8 Ads with the first 2 set at "Display ads on every page right below the menu" and "Display ads on board index" respectfully.

And then the next 6 Ads set at 1 through 6 under "display Ad between category" with nothing else checked except "HTML"

I've tried to do it by following the directions of:

QuoteThis will display ads after categories. If you want to display the ads after the second category, you put 2 in the input box. If you want to display ads between category 1 and 2, you have to put 1,2 (the comma is a must). If you don't want to display any ads inbetween categories, you leave the input box empty.
But this only place the Ad in both of those places.  I'm sure it's me but I don't know what me is doing wrong. (lol)

I'm attaching the Ads.template.php in hopes maybe looking at that will give a clue as to what's happening.

One finial piece to the puzzle is that initially the forum only had 5 categories.  The 6th was created and put between 3 and 4 making it the 4 category after the Ad Mod was installed and that's the category with the problem.....Hum?  Not comfortable deleting it and re-creating it as there are already post in it.

Appreciate your help,

Joe
Title: Re: Ad Management mod
Post by: Bigguy on October 10, 2007, 01:25:39 PM
Hmm, maybe posting at www.smfads.com for Jerm to see this problem will help you out a bit. I have never experienced this problem. The ads.template.php file would have nothing to do with it I don't think though.
Title: Re: Ad Management mod
Post by: SinnerSaint on October 11, 2007, 02:04:52 PM
Hi Jerm and Bigguy,

I already had my Ad Management Mod working with my Dilber MC and Black Day Themes on my 2 forums except for the parse error for the following set of codes in my index.template.php:

//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}


Whenever that complete block of instructions for the Welcome Ads is included in my index.template.php file, I always get the parse error. I have 2 forums namely allpinoystuff.net and ocnhs.net using Black Day Theme and Dilber MC Theme respectively. As a result, I have removed the codes above to make my site work. I have attached the index.template.php and screen shot of the error in my allpinoystuff.net website here.

Your help will be greatly appreciated. Thanks in advance.
Title: Re: Ad Management mod
Post by: Dumpling on October 12, 2007, 12:01:36 AM
Quote from: RustyBarnacle on October 09, 2007, 05:05:34 PM
You can go into the package-info.xml and change the 3 to a 4 most times and it will work.  Has for me for several mods.

Did you try it with the 1.1.4 while installing Ad Management?
Title: Re: Ad Management mod
Post by: mariolone on October 12, 2007, 07:07:25 AM
Hi,

I really appreciate this mod...but I see that the system only tracks the ad hits (impressions). I would like the system to track also the clicks on an ad, to see them on a report page and, if possible, to send the report by e-mail: is it possible? Someone could help me?

Thank You

Roberto
Title: Re: Ad Management mod
Post by: masss on October 13, 2007, 10:37:53 AM
How can i change background color ?

(http://img340.imageshack.us/img340/8384/ozadjeig5.th.gif) (http://img340.imageshack.us/my.php?image=ozadjeig5.gif)
Title: Re: Ad Management mod
Post by: jaminjavajoe on October 13, 2007, 12:25:58 PM
Change the background color of what?........if your talking about forum colors those can be changed in the theme/what ever theme your using/style.cs file
Title: Re: Ad Management mod
Post by: LeadCritic on October 13, 2007, 12:45:29 PM
I uploaded the files successfully and placed the html for the add, followed all the instructions and the ad is still not comming up. Could it be a conflict with my theme?
Title: Re: Ad Management mod
Post by: jaminjavajoe on October 13, 2007, 02:14:54 PM
Did you check under Ad Management settings that Disable all ads is not checked?
Title: Re: Ad Management mod
Post by: EdDoX on October 13, 2007, 02:54:42 PM
please can somebody help me when I Try to install this mod

8.     Execute Modification     ./Sources/ManagePermissions.php     Test failed

Im new using SFM 1.1.4
Title: Re: Ad Management mod
Post by: Dumpling on October 14, 2007, 12:30:00 AM
Does this mod work on 1.1.4 (new install)?

I heard it works if you were using it on SMF 1.1.3 and then upgraded to 1.1.4.
Title: Re: Ad Management mod
Post by: Bigguy on October 14, 2007, 03:14:23 PM
The code was not in the template file right. I have re done it and it seems to work now.

Quote from: dence66 on October 11, 2007, 02:04:52 PM
Hi Jerm and Bigguy,

I already had my Ad Management Mod working with my Dilber MC and Black Day Themes on my 2 forums except for the parse error for the following set of codes in my index.template.php:

//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}


Whenever that complete block of instructions for the Welcome Ads is included in my index.template.php file, I always get the parse error. I have 2 forums namely allpinoystuff.net and ocnhs.net using Black Day Theme and Dilber MC Theme respectively. As a result, I have removed the codes above to make my site work. I have attached the index.template.php and screen shot of the error in my allpinoystuff.net website here.

Your help will be greatly appreciated. Thanks in advance.
Title: Re: Ad Management mod
Post by: Bigguy on October 14, 2007, 03:19:17 PM
Yes it should work on 1.1.4

Quote from: Dumpling on October 14, 2007, 12:30:00 AM
Does this mod work on 1.1.4 (new install)?

I heard it works if you were using it on SMF 1.1.3 and then upgraded to 1.1.4.


Those edits for the managePermissions.php file will have to be done manually. Perhaps another mod has altered that file.

Quote from: EdDoX on October 13, 2007, 02:54:42 PM
please can somebody help me when I Try to install this mod

8.     Execute Modification     ./Sources/ManagePermissions.php     Test failed

Im new using SFM 1.1.4



If you are using any other Theme but the default then edits have to be done to your custom themes template files.

Quote from: LeadCritic on October 13, 2007, 12:45:29 PM
I uploaded the files successfully and placed the html for the add, followed all the instructions and the ad is still not comming up. Could it be a conflict with my theme?

If your referring to the background of the ads you will have to check with your ad provider.

Quote from: masss on October 13, 2007, 10:37:53 AM
How can i change background color ?

(http://img340.imageshack.us/img340/8384/ozadjeig5.th.gif) (http://img340.imageshack.us/my.php?image=ozadjeig5.gif)
Title: Re: Ad Management mod
Post by: Dumpling on October 14, 2007, 04:51:42 PM
So weird...I have several mods installed on my SMF 1.1.4. Before I install the PayPal Donation mod, the Ad Management installation would come back with a couple of error messages. However, after I intalled the PaypalDonation mod, the Ad Management mod would install fine...

Can someone tell me why is that, please?
Title: Re: Ad Management mod
Post by: Bigguy on October 14, 2007, 05:35:25 PM
Each time you install a mod it edits the code in the files and moves it around a bit. That's why some mods will install with others and some won't. However the ad mod should have installed fine before or after the donations mod; it shouldn't have mattered.
Title: Re: Ad Management mod
Post by: SinnerSaint on October 14, 2007, 10:05:01 PM
Quote from: Bigguy on October 14, 2007, 03:14:23 PM
The code was not in the template file right. I have re done it and it seems to work now.

Quote from: SinnerSaint on October 11, 2007, 02:04:52 PM
Hi Jerm and Bigguy,

I already had my Ad Management Mod working with my Dilber MC and Black Day Themes on my 2 forums except for the parse error for the following set of codes in my index.template.php:

//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}


Whenever that complete block of instructions for the Welcome Ads is included in my index.template.php file, I always get the parse error. I have 2 forums using Black Day Theme and Dilber MC Theme respectively. As a result, I have removed the codes above to make my site work. I have attached the index.template.php and screen shot of the error in my forum here.

Your help will be greatly appreciated. Thanks in advance.

Thanks Bigguy for taking time to fix my problem. I will try your edited index.template.php file later this night. Thank you so much. I'm just wondering, what code did you change? :)
Title: Re: Ad Management mod
Post by: Bigguy on October 15, 2007, 04:05:44 PM
You were missing part of the code for the edit you mentioned. I just replaced what wasn't there.
Title: Re: Ad Management mod
Post by: khurrum on October 15, 2007, 06:36:12 PM
Please Help Me.

I tried to install ad management mod on my forum at: http://www.petroscrap.com/forum but it says:

An Error Has Occurred!
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

I made temp folder with chmod 777 in packages but it did not worked. I chmod all the files which are mentioned in the first page of ad management mode but still it did not worked.

Please some one help, I will be so thankful to you.

regards
KHURRUM
Title: Re: Ad Management mod
Post by: Bigguy on October 15, 2007, 07:09:18 PM
Try going to the options section of the package manager and making all files writable; that should work. :)
Title: Re: Ad Management mod
Post by: eronkid on October 16, 2007, 01:35:38 AM
where can i find the Menu for ad management? my theme is OverView, my SMF version is 1.1.4, please help me. thank you
Title: Re: Ad Management mod
Post by: khurrum on October 16, 2007, 08:47:21 AM
I tried going to the options section of the package manager and making all files writable but still it is same.
Title: Re: Ad Management mod
Post by: falguni1 on October 16, 2007, 09:22:39 AM
Quote from: eronkid on October 16, 2007, 01:35:38 AM
where can i find the Menu for ad management? my theme is OverView, my SMF version is 1.1.4, please help me. thank you

go to admin and set your language to english
Title: Re: Ad Management mod
Post by: JF3000 on October 22, 2007, 07:33:10 AM
Having the same issue as the user above, the ad menu isnt being displayed in the default theme for the forum. Is there a specific template I should be using for this to work correctly?
Title: Re: Ad Management mod
Post by: Kleidi on October 22, 2007, 07:58:39 AM
Hello!

First of all, thx for this nice MOD ... ;) !

I have a problem and hope that u can help me. I have installed ad mod 2.3 on smf 1.1.3. I have not installed (yet) any other mod on my smf, that mean that all files are clear. I try to modify themes like Fg-zm 114 or Pn-pn 114 or MysticJade but no success. In those themes are missing some codes and i don't know how to modify the source of those themes, to work ad mod on them.
Can someone help me? Someone who can modify those files for me, please?

fg-zm 1.1.4 and pn-pn 1.1.4  needs 4 files to modify
- boardindex.template.php , index.template.php , messageindex.template.php and display.template.php

MysticJade needs only one file to modify , index.template.php !

Please, help me! :-[

P.S. I have tryed to modify them reading support post for Theme Modification on smfads.com but no success! :'(

Title: Re: Ad Management mod
Post by: salinity on October 23, 2007, 10:34:56 AM
Umm yea.  I installed it.  Said it was successful and yet I can't see it anywhere.  I hit the other site for help but nothing.  Nowhere have I seen any detailed information as to how to get this to work or even show up. Sooooooooooo.......what now?
Title: Re: Ad Management mod
Post by: 321Hosted.com on October 23, 2007, 11:12:18 PM
I have installed the mod on my forum http://freecpanelhost.net/forum , as I have done on other forums I have owned, but for some reason the ads won't show this time. I have set the ads to show after the 1st post, and also to show under the menu. As you can see from my forum, it shows the post box liek it should after the first post, but it doesn't show the ad, and it doesn't show at the top of the forum either.

Any idea what might be goin on? Like I said, I have used this mod many tiems before, but it just won't work for me this time  ::)

Thanks in advance!!
Title: Re: Ad Management mod
Post by: olufemo on October 24, 2007, 01:07:44 PM
Quote from: bassbass on October 08, 2007, 02:21:11 PM
Okay, it worked for me too.  i guess my hosting company need to update there SMF installer.  i downloaded a fresh copy of 1.1.4, installed it then installed the ad management mod, and it worked great.

I got it right too,  It is working nice.

Pls is there any other theme Ad Management mod can work it besides SMF default theme? let me know I beg all
Title: Re: Ad Management mod
Post by: iybabe on October 24, 2007, 04:11:57 PM
I must confess i know next to nothiong on technie but still able to run my forum but i do not know how to put Ad,i use 1.1.4 and this is no Ad Management mod anywhere in the package.Please assist me
Title: Re: Ad Management mod
Post by: jackdoesthesound on October 24, 2007, 05:53:07 PM
Hey, is it possible to make this MOD working with Ig-Oh (for 1.1.4) Theme?
This would be great, thanks! :)
Title: Re: Ad Management mod
Post by: RustyBarnacle on October 24, 2007, 05:57:10 PM
Different options of this mod seem to work in different themes.  For example I run the Tolkien theme and most of the ad placments work but a few dont so if the ones you are trying dont work, try others.
Title: Re: Ad Management mod
Post by: examino on October 25, 2007, 07:21:05 AM
It doesn't seem to work with SMF 1.1.4 (Update from 1.1 RC3).


ManagePermissions.php is the only file that is failing to be modified through the Package Manager.

Any suggestions would be appreciated.
Title: Re: Ad Management mod
Post by: olufemo on October 25, 2007, 08:26:00 AM
Quote from: jackdoesthesound on October 24, 2007, 05:53:07 PM
Hey, is it possible to make this MOD working with Ig-Oh (for 1.1.4) Theme?
This would be great, thanks! :)

Pls where can I get the Ig-Oh Theme to download
Title: Re: Ad Management mod
Post by: Bigguy on October 25, 2007, 01:00:19 PM
@ salinity: I have posted all the edits for the last 3 versions of the ad mod over at www.smfads.com Maybe you didnt look hard enough.

@ build-a-host: Are all your file permissions set right ???

@ olufemo: It will work on any theme as long as you are willing to do the edits. I have done some themes but they are older and might not work properly. They can be found here:
CLICK (http://files4.smfhelp.com/index.php?dir=Ad+mod+edited+files%2F)

@ iybabe: Not really sure what you mean. ???

@ examino: yes it does work, the edits to that file will have to be done manually.
Title: Re: Ad Management mod
Post by: examino on October 25, 2007, 04:55:35 PM
Quote from: Bigguy on October 25, 2007, 01:00:19 PM
@ examino: yes it does work, the edits to that file will have to be done manually.

Thanks Bigguy. I see. What edits exactly? Could you please post the code here?
Title: Re: Ad Management mod
Post by: Bigguy on October 25, 2007, 05:33:50 PM
What file was it ....the managepermissions.php ???
Title: Re: Ad Management mod
Post by: examino on October 25, 2007, 05:41:51 PM
Yeah. I figured that one out. A couple of thigs...

1st. I face a problem when trying to show google adsense ads. Is this common?

2nd. What changes should i make to my custom theme (non default) so it can work with the mod?
Title: Re: Ad Management mod
Post by: Bigguy on October 25, 2007, 06:05:11 PM
1.) No there should be no problem showing google ad sense at all. If there is and you are using a custom theme then it is possible all he edits did not get done to all the template files.

2.) Install the mod and then look in your custom theme folder. The only files that have to be changed or modified are the template files; usually 4 of them but if you have less thats ok to. Just do the ones that are there. All the edits for them can be found posted here:

http://www.smfads.com/forums/index.php?topic=475.0

Only edit the template files cause allthe rest are already done during install of the mod.
Title: Re: Ad Management mod
Post by: examino on October 26, 2007, 03:22:50 PM
I get this editting the index.template.php :

Template Parse ERROR:
(In Line 231)

222:       // ]]></script>
223: </head>
224: <body>
225:
226:             //Display ads on the top of the page
227:          if (function_exists("show_topofpageAds"))
228:          {
229:             $ads = show_topofpageAds();   
230:             if(!empty($ads))

231:                if($ads['type']=0)

232:                   echo $ads['content'];
233:                else
234:                   eval($ads['content']);   
235:             unset($ads);
Title: Re: Ad Management mod
Post by: eriktm on October 27, 2007, 11:11:15 AM
222:       // ]]></script>
223: </head>
224: <body>
225:
226:             //Display ads on the top of the page
227:          if (function_exists("show_topofpageAds"))
228:          {
229:             $ads = show_topofpageAds();   
230:             if(!empty($ads)) {

231:                if($ads['type']=0) {

232:                   echo $ads['content'];
233:                else
234:                   eval($ads['content']);   
235:             unset($ads);

if statement is missing {
Title: Re: Ad Management mod
Post by: Tidea on October 27, 2007, 08:43:37 PM
question, is there a way to do is so that, you can customized which ads users can see?

So that instead of seeing all the ads on the forum, they can see certain ads? thanks
Title: Re: Ad Management mod
Post by: anshar on October 31, 2007, 08:39:45 AM
hi, got a couple of questions

1. How can I Disable ads for selected usergroups ?

2. How to show ads in threads in between posts but not after first one or second but but between every each one posts in a topic?
Title: Re: Ad Management mod
Post by: ian1 on October 31, 2007, 03:20:24 PM
I've been doing some searching through this topic and think my question may be partially answered.

I'm using the SlickPro Graphite theme on my forum and want to integrate the ad management mod.  I found a few posts that said it was compatible and that the required files needed to use this mod with that theme are available.  However all the links in those posts are dead.

Can anyone tell me how to integrate the ad management mod into the SlickPro Graphite theme?  Thanks!
Title: Re: Ad Management mod
Post by: sam.friend on November 01, 2007, 02:50:16 AM
I have installed it. but y cant i see the link under the head of "Configuration" in Admin????
Please help me out of this....
Title: Re: Ad Management mod
Post by: korisnickoime on November 02, 2007, 09:56:40 AM
Is it possible to limit number of ads that user can see?

I want users to see ads only 2 times while they are logged in.
Title: Re: Ad Management mod
Post by: L.G.S on November 03, 2007, 10:50:43 AM
Could somebody help me installing this on my custom theme please? I've tried manually but every file except boardindex gives me PHP errors when the changes are made.

I'm using the PSP theme, if somebody could tell me the changes for this theme it would be great... I'd ask the creator but he hasn't been around for months.
Title: Re: Ad Management mod
Post by: static091 on November 04, 2007, 04:18:39 AM
Quote from: sam.friend on November 01, 2007, 02:50:16 AM
I have installed it. but y cant i see the link under the head of "Configuration" in Admin????
Please help me out of this....


Try switching the language to english if you are using something else.

I'm using "croatian", and ad management shows only if I change it to english...
Title: Re: Ad Management mod
Post by: static091 on November 04, 2007, 04:27:26 AM
I have got another problem... I would like to use the ad management to show my own ads, and I am not quite sure how to do it as I am supposed to fill in the "ad code" in the content box. What if I don't want to use "code from the ad company itself"?

How can I display i.e. .gif or .jpg image or just text as an ad banner on the forum?
Am I using the rigt mod?

I'm using the 1.1.4
Title: Re: Ad Management mod
Post by: L.G.S on November 04, 2007, 06:59:11 AM
Just use normal HTML for that.
Title: Re: Ad Management mod
Post by: static091 on November 04, 2007, 09:29:34 AM
OK, thank you, I got it working under the default theme, but not with the one I'm using!

If I switch to any other theme - nothing.

I'm using the graphite theme and I'd like it to work with this one...
Title: Re: Ad Management mod
Post by: supermastereu on November 05, 2007, 02:36:54 PM
This mod dont work in Silver Shine v2 theme.  Why? Do i install manualy the modifications? This theme don't have, for example, BoardIndex.template.php
Title: Re: Ad Management mod
Post by: Bigguy on November 06, 2007, 01:40:47 PM
Read this message that is just up a bit on this page and next time a search might help:

http://www.simplemachines.org/community/index.php?topic=68632.msg1286760#msg1286760

Also going here might help:

www.smfads.com
Title: Re: Ad Management mod
Post by: bnard on November 06, 2007, 10:50:26 PM
can anyone tell me where can i adjust the width of the ad management report?
Title: Re: Ad Management mod
Post by: L.G.S on November 07, 2007, 03:44:52 PM
Quote from: Bigguy on November 06, 2007, 01:40:47 PM
Read this message that is just up a bit on this page and next time a search might help:

http://www.simplemachines.org/community/index.php?topic=68632.msg1286760#msg1286760

Also going here might help:

www.smfads.com

I've already tried this, the changes do not work.
Title: Re: Ad Management mod
Post by: Bigguy on November 08, 2007, 12:29:56 PM
What theme are you tryingto edit. ??? Would it be in this list anywhere:

CLICK (http://files4.smfhelp.com/index.php?dir=Ad+mod+edited+files%2F)

Read the red at the botom of that page please.
Title: Re: Ad Management mod
Post by: L.G.S on November 08, 2007, 03:15:04 PM
The PSP theme, so none of them. Plus I can't just overwrite my files because I have modified them with my own things.
Title: Re: Ad Management mod
Post by: Klabautermann on November 09, 2007, 02:40:23 AM
Hello my friends,

I have installed the mod, and the installation seems to be done fine. Then I have added a ads. Checked everything (only wanted to see if it works), Report says:

AMAZON     5
Below menu    Board index    Message index    Post    Last Post    Bottom    Welcome area    Top of page    Tower right    Tower left    Under Children    Boards    Posts    After Cateogries
√    √    √    √    √    √    √    √    √    √    √    All    1    1

When I look into my board I don't see anything. Here is a link to my board: TINY-SOLDIERS (http://www.tiny-soldiers.com)

Ah forgot to say I use also the TinyPortal
Title: Re: Ad Management mod
Post by: L.G.S on November 09, 2007, 03:08:35 AM
You probably didn't install it on your custom theme.
Title: Re: Ad Management mod
Post by: Klabautermann on November 09, 2007, 03:12:34 AM
Hmmm, how do I install it an my custom theme?
Title: Re: Ad Management mod
Post by: asdas2 on November 09, 2007, 12:31:11 PM
as i mention before thaat i hav installed this mod sucessfullly, but when i put my ads,  it dosent show on

"
Display ads within posts 
Display ads after categories 
Type  HTML PHP
Display ads on every page right below the menu 
Display ads on board index 
Display ads on message index 
  Display ads on every page on the top of the page 
Display ads in the welcome user area 
Display ads on the bottom of the page 
Display ads on every page as a tower on the left side 
Display ads on every page as a tower on the right side 
Display ads under child boards
"

except these 2

Display ads on the post page 
Display ads after the last post 






i downloded the 3 files from here http://files4.smfhelp.com/index.php?dir=Ad+mod+edited+files%2F


now wat would i do .... i can not replace this new file with the one i hav riht now .... coz i m using too many mods .....

is there any manualll editing for custom theme .... DILBERMC


EDIT: i done check my files already and there is some code for ad manag mod ... but i dun kno wat to change more ....
thats why i upload my 3 files .. if someone please check it  and fix it ... i would really appreciate his work

Thankzzzzzz
Title: Re: Ad Management mod
Post by: tophe on November 10, 2007, 04:02:13 AM
Superb mod!
I have a weird problem though...

No matter where I put the ads, it will only show for logged in users. If you are a guest the ads won't show.
You have to log in first.

How do I set that?

Title: Re: Ad Management mod
Post by: haiwasnm on November 10, 2007, 05:04:27 AM
Hi,jerm
I want to consult a question !
How can I add ads in the first past of topic , and above the content place
thank you!
Title: Re: Ad Management mod
Post by: SeAlVa on November 10, 2007, 09:27:37 AM
I have problems with this mod.

It is only shown to admins.

if I log-out they are not shown.


and if I enable the option 'hide ads to admins' the ads are never shown, neither to admins nor rest of users.

what can I do?

site: www.dudaswebmasters.es.vg

(at this moment I have a ad on every foot and below the menu)

Thanks
Title: Re: Ad Management mod
Post by: asdas2 on November 10, 2007, 11:11:25 AM
all you guyz have to set the permisssion

i guesss
Title: Re: Ad Management mod
Post by: SeAlVa on November 10, 2007, 11:21:32 AM
how stupid am I.


Thanks ;)
Title: Re: Ad Management mod
Post by: asdas2 on November 10, 2007, 07:57:42 PM
any help for me :(
Title: Re: Ad Management mod
Post by: L.G.S on November 11, 2007, 07:17:03 AM
Or me......
Title: Re: Ad Management mod
Post by: Tidea on November 11, 2007, 03:43:01 PM
hey guys, my ad management link is not showing up on the left side in the admin panel.  Any help?
Title: Re: Ad Management mod
Post by: asdas2 on November 11, 2007, 06:33:22 PM
change ur language to ENGLISH
Title: Re: Ad Management mod
Post by: Tidea on November 11, 2007, 06:38:33 PM
I did.  I'm using the scribbles2 theme, and it has an option for the ad management, but for some reason it's not showing up in the admin menu :(

What files can I download out of the ad management theme that I can save all of the ad codes and setting I've saved up?

Thinking about reinstalling this
Title: Re: Ad Management mod
Post by: Bigguy on November 12, 2007, 11:57:21 AM
Most of you that have posted after my last post do have to set permissions. If your link is not showing up in the admin panel make sure all the edits to your files are done; in particular the ones to the index.php. All the edits can be found in the "Theme Support" board at www.smfads.com If the ads do not show and you are using a custom theme then editing your custom themes template files is the only way to make this mod work.

Title: Re: Ad Management mod
Post by: asdas2 on November 13, 2007, 01:13:41 AM
bigguy

can u please give the exact code to this innocent, poor guy :(

i tried soo hard to find the code but ..................... :(:(:(:(:(:(:(:(:(

u can read my last post toooo:( prob help u
Title: Re: Ad Management mod
Post by: Bigguy on November 13, 2007, 01:34:04 AM
Your files will have to be modified manually then if you have a lot of mods installed. I will get this tomorrow as it is 1:30 in the morning here.

Quote from: asdas2 on November 13, 2007, 01:13:41 AM
bigguy

can u please give the exact code to this innocent, poor guy :(

i tried soo hard to find the code but ..................... :(:(:(:(:(:(:(:(:(

u can read my last post toooo:( prob help u
Title: Re: Ad Management mod
Post by: freakcypher on November 13, 2007, 05:34:42 AM
i want to make your mod compatible with a theme i am making. Its a phpbb3 style theme.

I don't want to make a edited theme file but i want to edit the packaging file of your mod so that user can install or uninstall it anytime they want.

Will you allow me to make some changes in your packaging file. I wont alter any copyright stuffs and any part of your mod. I will just modify the packaging file.
Title: Re: Ad Management mod
Post by: Klabautermann on November 13, 2007, 10:03:08 AM
Quote from: Klabautermann on November 09, 2007, 02:40:23 AM
Hello my friends,

I have installed the mod, and the installation seems to be done fine. Then I have added a ads. Checked everything (only wanted to see if it works), Report says:

AMAZON     5
Below menu    Board index    Message index    Post    Last Post    Bottom    Welcome area    Top of page    Tower right    Tower left    Under Children    Boards    Posts    After Cateogries
√    √    √    √    √    √    √    √    √    √    √    All    1    1

When I look into my board I don't see anything. Here is a link to my board: TINY-SOLDIERS (http://www.tiny-soldiers.com)

Ah forgot to say I use also the TinyPortal

The counter still counts up, now it is up to 3700 hits, but the ads wont't be shown, not on my standard theme nor on the default theme. Also looked up at the permissions, on every member group the permission is set to adsmanagemt

Argh, what am I doing wrong?!?
Title: Re: Ad Management mod
Post by: Bigguy on November 13, 2007, 10:04:28 AM
@ freakcypher: You will have to ask Jerm about the changes you would like to make to the mod. :)

@ Klabautermann: If you use a custom theme then the mod will have to be installed manually.
Title: Re: Ad Management mod
Post by: Klabautermann on November 13, 2007, 10:09:44 AM
@Bigguy: I guess you here that every day (or often ;) ), but how do I install the mod manually?
Title: Re: Ad Management mod
Post by: Bigguy on November 13, 2007, 10:11:44 AM
If you go to www.smfads.com and look in the "Theme support" board you will see stickie posts that contain all the edits. The easiest way to do all this is to install the mod and then all you have to edit is the 4 template files. Some themes do not have 4 so what ever is in your themes folder edit those template files.
Title: Re: Ad Management mod
Post by: Klabautermann on November 13, 2007, 10:23:12 AM
I have to say at this point that this is far behind my experience in editing Themes, and I have to quit at this point. The only hope I have is that someone fix the theme for me ;(
Title: Re: Ad Management mod
Post by: Bigguy on November 13, 2007, 10:27:27 AM
We all ave to learn sometime right. I would say get a good editor like php designer 2007 and try it out. Or you could look here at the themes I have done already and see if there is one to your liking. Please read what is in red at the bottom of the page:

CLICK (http://files4.smfhelp.com/index.php?dir=Ad+mod+edited+files%2F)
Title: Re: Ad Management mod
Post by: Klabautermann on November 13, 2007, 11:01:45 AM
Quote from: Bigguy on November 13, 2007, 10:27:27 AM
We all ave to learn sometime right. I would say get a good editor like php designer 2007 and try it out. Or you could look here at the themes I have done already and see if there is one to your liking. Please read what is in red at the bottom of the page:

CLICK (http://files4.smfhelp.com/index.php?dir=Ad+mod+edited+files%2F)

Normally I would say that you are absolutely right Bigguy, but this time I don't know really where I have to start. I don't have only problems with the theme I have chosen, I have either problems with the default theme. There also the ads want be shown.
But if you say I have to edit my theme and everything works fine I will do so ;)

Okay I have to edit 3 files (BoardIndex.template.php, index.template.php, MessageIndex.template.php), but what code do I have to add to the theme? That's absolutely unclear to me. I am an newbe to this! Have looked at the themes under the link you have posted, and looked at 2 or 3 but can't find the point. Hope you can help me out of the "template edit" darkness ;)
Title: Re: Ad Management mod
Post by: Bigguy on November 13, 2007, 11:37:44 AM
Quote from: Bigguy on November 13, 2007, 10:11:44 AM
If you go to www.smfads.com and look in the "Theme support" board you will see stickie posts that contain all the edits. The easiest way to do all this is to install the mod and then all you have to edit is the 4 template files. Some themes do not have 4 so what ever is in your themes folder edit those template files.
;)

Only edit the template files. Look in the code in the stickies and find the 3 template file edits and use them. You will need a good editor though.
Title: Re: Ad Management mod
Post by: Klabautermann on November 14, 2007, 09:33:20 AM
Okay I got it running (more or less) So far so good, but the ads will be shown 2 times in the header area when I chose "Display ads on the post page". What do i have to do to get it only ones? And how do i get the ads to the frontpage of my side? I use tinyportal. Is there a way?


Forgot to ask: How do i get the ads centered?
Title: Re: Ad Management mod
Post by: Bigguy on November 14, 2007, 11:28:58 AM
If the ads are showing up twice then there is code in the template files that is in twice. you will have to look in the template files you edited for duplicate code. To center the ads you can use the center tags like this:

<center>ad code</center>

For TP you could make a frontpage block and put the ad code there. :)
Title: Re: Ad Management mod
Post by: Klabautermann on November 14, 2007, 02:54:06 PM
Ah got it. But what I dont understand is this:

QuoteFor TP you could make a frontpage block and put the ad code there. :)

What code?
Title: Re: Ad Management mod
Post by: Bigguy on November 14, 2007, 05:44:23 PM
Adsense code or what ever ad you want to run.
Title: Re: Ad Management mod
Post by: asdas2 on November 14, 2007, 07:31:48 PM
u forgot me BIGGUY ?  :(
Title: Re: Ad Management mod
Post by: Bigguy on November 14, 2007, 10:08:25 PM
What exact code are you looking for that is not posted where I have stated. ??? :)
Title: Re: Ad Management mod
Post by: asdas2 on November 15, 2007, 01:00:37 AM
Quote from: asdas2 on November 09, 2007, 12:31:11 PM
as i mention before thaat i hav installed this mod sucessfullly, but when i put my ads,  it dosent show on

"
Display ads within posts 
Display ads after categories 
Type  HTML PHP
Display ads on every page right below the menu 
Display ads on board index 
Display ads on message index 
  Display ads on every page on the top of the page 
Display ads in the welcome user area 
Display ads on the bottom of the page 
Display ads on every page as a tower on the left side 
Display ads on every page as a tower on the right side 
Display ads under child boards
"

except these 2

Display ads on the post page 
Display ads after the last post 






i downloded the 3 files from here http://files4.smfhelp.com/index.php?dir=Ad+mod+edited+files%2F


now wat would i do .... i can not replace this new file with the one i hav riht now .... coz i m using too many mods .....

is there any manualll editing for custom theme .... DILBERMC


EDIT: i done check my files already and there is some code for ad manag mod ... but i dun kno wat to change more ....
thats why i upload my 3 files .. if someone please check it  and fix it ... i would really appreciate his work

Thankzzzzzz
Title: Re: Ad Management mod
Post by: Klabautermann on November 15, 2007, 01:20:23 AM
Quote from: Bigguy on November 14, 2007, 05:44:23 PM
Adsense code or what ever ad you want to run.

Oh holy ******, that's far to simple ;)
Title: Re: Ad Management mod
Post by: Bigguy on November 15, 2007, 03:52:26 AM
@ asdas2: Ah yes now I remember. If you would like to upload your template files from the theme you use I will see what I can do for you. :)
Title: Re: Ad Management mod
Post by: rehan on November 15, 2007, 11:27:08 AM
my ad managment mod was working fine.. but today when i checked my Admin Panel.. i was unable to find the Settings Link of ad managment mod..
Title: Re: Ad Management mod
Post by: Bigguy on November 15, 2007, 11:39:21 AM
What is your language set at. ???
Title: Re: Ad Management mod
Post by: rehan on November 15, 2007, 12:42:50 PM
its english...
Title: Re: Ad Management mod
Post by: Bigguy on November 15, 2007, 12:57:51 PM
See if the index.php has all the edits.
Title: Re: Ad Management mod
Post by: asdas2 on November 15, 2007, 05:48:06 PM
Quote from: Bigguy on November 15, 2007, 03:52:26 AM
@ asdas2: Ah yes now I remember. If you would like to upload your template files from the theme you use I will see what I can do for you. :)

here u go bro ...
Title: Re: Ad Management mod
Post by: Bigguy on November 15, 2007, 05:53:06 PM
I will check these out very soon. I will probably not be able to get all the edits in for this theme but it will work. :)
Title: Re: Ad Management mod
Post by: asdas2 on November 15, 2007, 05:57:50 PM
thnkxxxxxxxxxx
Title: Re: Ad Management mod
Post by: raaja on November 17, 2007, 04:11:58 PM
Im using this theme... and ad management mod.. the mod is working well in some places but itz not showing the ads in places like between board, on righ top of board..

anyone noe how to fix this
Title: Re: Ad Management mod
Post by: hclloveh on November 24, 2007, 01:32:34 AM
This mod can good work with SMF 1.1.4 ?
Title: Re: Ad Management mod
Post by: FireFleitz on November 24, 2007, 02:50:17 PM
I just created a forum and I am trying to install the ad mod. I have had no luck installing the mod though. I got the files uploaded and this is the message that appears when I go to the install.php url:

Fatal error: Call to undefined function: db_query() in /homepages/4/d172544524/htdocs/messageboard/install.php on line 6

I don't have a clue what is going wrong. I am about to pull my hair out.

Never mind...

I finally figured it out. I knew it would be easy.

Title: Re: Ad Management mod
Post by: asdas2 on November 25, 2007, 02:01:33 AM
Quote from: Bigguy on November 15, 2007, 05:53:06 PM
I will check these out very soon. I will probably not be able to get all the edits in for this theme but it will work. :)


??? ??? ??? :-\ :-\
Title: Re: Ad Management mod
Post by: shaiss on December 04, 2007, 11:49:34 AM
Just installed this on 1.14 and there is no option to under configuration.  will this be updated?
Title: Re: Ad Management mod
Post by: Pivi on December 04, 2007, 02:30:33 PM
Quote from: shaiss on December 04, 2007, 11:49:34 AM
Just installed this on 1.14 and there is no option to under configuration.  will this be updated?

same question from me.
Title: Re: Ad Management mod
Post by: leremy on December 11, 2007, 10:27:44 PM
So this mod is not for 1.1.4 yet? When will there be an update?
Title: Re: Ad Management mod
Post by: bassbass on December 13, 2007, 11:40:36 AM
it worked for me and i have a fresh 1.1.4 with default theme.  its maybe conflicting with other mods!
Title: Re: Ad Management mod
Post by: TrueSatan on December 13, 2007, 11:58:10 AM
Please first check the following:

You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.

You need to go to ACP>Packages>Options>Installation Options and set the fields according to your hosting details then on the same page go to Cleanup Permissions and select All files Writeable and run the cleanup...check via ftp that CHMOD of all your files is now 777 or 775 according to the peculiarities of your hosting and if not recheck the settings you made in Installation Options and run the cleanup again...continue as needed until you get the right settings.
Title: Re: Ad Management mod
Post by: maxklr on December 13, 2007, 02:41:24 PM
Funny thing.... I'm the only one who can see the ads and I'm the admin.... Whats up with that? Thanks for any help!
Title: Re: Ad Management mod
Post by: TrueSatan on December 13, 2007, 03:39:36 PM
ACP>Permissions> select a membergroup >Enable Ads

Whenever you get a mod that is working for you as admin but not for your members you can take a strong bet that it's a permissions issue.
Title: Re: Ad Management mod
Post by: MYBESTHOMESnet on December 13, 2007, 07:10:27 PM
How to configure my ads to appear inside of the message area of the post:



(http://img413.imageshack.us/img413/8859/adspw3.jpg)


Thanks

gRac3
:)
Title: Re: Ad Management mod
Post by: maxklr on December 14, 2007, 04:26:31 AM
Thanks! That worked perfect!
Title: Re: Ad Management mod
Post by: jraabe on December 14, 2007, 06:00:25 PM
I too was having problems with guests and members not seeing the ads. Setting permissions correctly solved the issue. Thanks! :D

I will post to a similar thread on the SMF-Ads forum where others are having the same issue.

John Raabe
www.countryplans.com

Title: Re: Ad Management mod
Post by: TEOC2 on December 14, 2007, 06:10:39 PM
Is there anyway you could include replacing smflogo.gif with an ad too, i know the theme template code is easy to manually edit, but it would make this mod more complete.
Title: Re: Ad Management mod
Post by: falguni1 on December 15, 2007, 05:48:46 AM
Is there any way to show more left towers after each other.
Title: Re: Ad Management mod
Post by: lcools on December 17, 2007, 09:02:26 AM
I've been all over this forum, for days, looking for a post with the same issue...but have run out of keywords.

Two issues:
The ads are not displaying properly in between posts or under posts. And the google ads that did show up are not showing content after 7 days - still showing public service announcements.

I have a horizontal ad at the bottom of main pages - just above the 'powered by smf' and on individual post pages under the welcome section/my logo.

I wasn't able to get some of the other locations to work-they were showing up as blank spaces..but I'm happy with these locations, however, after 7 days they are still showing public service ads. My site already has Google ads (not on forum)...I don't think it should be taking this long. Google says 48 hours.

Thinking that these ads are not in the same frame as the content, I attempted to place ads in between posts (in a few different locations), but all I get are blank posts. I've added keywords to index.template.php. No change so far.

I really have no idea what else to try. The ads, or non ads are still on the site, visible for guests, if anyone will take a look.

Thanks for any help!
elle
Title: Re: Ad Management mod
Post by: Bigguy on December 17, 2007, 01:22:28 PM
@ TEOC2: that would require resizing of images and such. SO I don't think that is possible.

@ falguni1: MAYBE if you doubled that particular code up in the template files; then yes.

@ lcools: If you are using a custom theme than this is why you are having problems.
Title: Re: Ad Management mod
Post by: lcools on December 18, 2007, 12:35:21 AM
Bigguy: I'm pretty sure I'm using the default theme. I don't remember choosing any special set-up /colors etc.
Title: Re: Ad Management mod
Post by: falguni1 on December 18, 2007, 01:10:21 AM
Quote from: Bigguy on December 17, 2007, 01:22:28 PM
@ TEOC2: that would require resizing of images and such. SO I don't think that is possible.

@ falguni1: MAYBE if you doubled that particular code up in the template files; then yes.

@ lcools: If you are using a custom theme than this is why you are having problems.

I want it to be a feature of this mode to show more towers after each other.
Title: Re: Ad Management mod
Post by: Bigguy on December 18, 2007, 11:54:25 AM
Then you will have to talk to Jerm. :)
Title: Re: Ad Management mod
Post by: Bigguy on December 18, 2007, 09:36:57 PM
And that has what to do with the ad mod ???

Quote from: NoDrAmaUk on December 18, 2007, 12:39:11 PM
I need to download some games to my SMF 1.1.4 doe's any one have any Links  please

Pete
Title: Re: Ad Management mod
Post by: lcools on December 19, 2007, 06:18:30 PM
Is that for me? If so, who's jerm?


QuoteThen you will have to talk to Jerm. :)

QuoteBigguy: I'm pretty sure I'm using the default theme. I don't remember choosing any special set-up /colors etc.

QuoteI've been all over this forum, for days, looking for a post with the same issue...but have run out of keywords.

Two issues:
The ads are not displaying properly in between posts or under posts. And the google ads that did show up are not showing content after 7 days - still showing public service announcements.

I have a horizontal ad at the bottom of main pages - just above the 'powered by smf' and on individual post pages under the welcome section/my logo.

I wasn't able to get some of the other locations to work-they were showing up as blank spaces..but I'm happy with these locations, however, after 7 days they are still showing public service ads. My site already has Google ads (not on forum)...I don't think it should be taking this long. Google says 48 hours.

Thinking that these ads are not in the same frame as the content, I attempted to place ads in between posts (in a few different locations), but all I get are blank posts. I've added keywords to index.template.php. No change so far.

I really have no idea what else to try. The ads, or non ads are still on the site, visible for guests, if anyone will take a look.

Thanks for any help!
elle
Title: Re: Ad Management mod
Post by: TEOC2 on December 19, 2007, 06:28:41 PM
Quote from: lcools on December 19, 2007, 06:18:30 PM
Is that for me? If so, who's jerm?

http://www.simplemachines.org/community/index.php?topic=68632 (http://www.simplemachines.org/community/index.php?topic=68632.msg470039#msg470039)
Title: Re: Ad Management mod
Post by: Bigguy on December 20, 2007, 10:58:09 AM
Jerm is the mod author and I provide support for the mod. :)
Title: Re: Ad Management mod
Post by: lcools on December 20, 2007, 08:46:12 PM
I finally figured out the problem. Google Adsense has not been able to save any of the new ad information added since I cleared my firefox cache. Either I accidentally clicked a no-cookie button or I have to reinstall firefox. I resubmitted the ads with Safari and they work great.
Title: Re: Ad Management mod
Post by: Bigguy on December 21, 2007, 09:12:23 PM
That's good to hear; glad you figured it out. :)
Title: Re: Ad Management mod
Post by: Onni on December 26, 2007, 10:44:28 AM
When 1.1.4 compatible version will be released?!
Title: Re: Ad Management mod
Post by: Bigguy on December 27, 2007, 11:22:33 AM
It is released, has been for awhile.
Title: Re: Ad Management mod
Post by: jmayne on December 29, 2007, 06:20:13 PM
nstalled Ad Management into my test forum.  I am running into this problem at the (Ad Adds) Content box. I don't have any advertisers yet.  I just want to test it.  Is there any code I can put in there for a test?
Title: Re: Ad Management mod
Post by: Bigguy on December 30, 2007, 01:56:30 AM
Write in:

Hello World.

Anything you put in it should show up.
Title: Re: Ad Management mod
Post by: sunnyslp on January 04, 2008, 12:53:24 AM
hi i have installed this mod on a test site (default theme) but couldn't find any link under admin->configuration that says ad management

could some one please help me out

smf version:1.14
Title: Re: Ad Management mod
Post by: TrueSatan on January 04, 2008, 04:26:28 AM
You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.
Title: Re: Ad Management mod
Post by: sunnyslp on January 04, 2008, 05:32:31 AM
@TrueSatan  thnq very much

just one doubt does this change in language from English utf8 to English  has any unwanted effect on my forum
Title: Re: Ad Management mod
Post by: TrueSatan on January 04, 2008, 05:37:58 AM
If you wish to use non-english languages you will need to modify this and a lot of other mods to support them (mainly working on modifications.{language}.php files but a number of other files can come into play in certsin mods)...then you might have use for utf8 support but if you run an English language forum then there are no downsides to making the above change.
Title: Re: Ad Management mod
Post by: sunnyslp on January 04, 2008, 10:56:00 AM
@TrueSatan : thnx a lot for the help  :)

kudos to the mod author
Title: Re: Ad Management mod
Post by: ivo2296 on January 08, 2008, 01:57:36 PM
Quote from: FireFleitz on November 24, 2007, 02:50:17 PM
I just created a forum and I am trying to install the ad mod. I have had no luck installing the mod though. I got the files uploaded and this is the message that appears when I go to the install.php url:

Fatal error: Call to undefined function: db_query() in /homepages/4/d172544524/htdocs/messageboard/install.php on line 6

I don't have a clue what is going wrong. I am about to pull my hair out.

Never mind...

I finally figured it out. I knew it would be easy.



Hi man,

How did you fix that problem?


Thanks!
Title: Re: Ad Management mod
Post by: dxyy on January 11, 2008, 12:30:37 PM
Is there a way to display ads only when members visit specific pages?

For example, I know that it's possible to display ads on specific boards, but I don't know how to only display ads for specific actions.
Take this for example: http://www.daxueyingyu.com/forum/index.php?action=stats

So maybe I'd only like to display ads on the stats page, or some other action. What I'd like to do is display ads when the action=chat, but I don't know how to achieve this, or if it is even possible using this mod.

Any help would be appreciated.

Thanks! :)
Title: Re: Ad Management mod
Post by: Bigguy on January 11, 2008, 12:33:31 PM
If you wanted to show ads on the stats page only they would have to be hard-coded into the stats.template.php file as the ad mod can not display ads for JUST certain actions.
Title: Re: Ad Management mod
Post by: dxyy on January 11, 2008, 12:38:39 PM
Thanks Bigguy.

Hehe, well that's what I thought, but just thought I'd ask.
Title: Re: Ad Management mod
Post by: spiros on January 11, 2008, 06:40:49 PM
I am trying to add the Ad Management mod on Themis but although I made the manual changes it still does not work.

Anybody who managed to add it on themis?

http://www.translatum.gr/forum/index.php
Title: Re: Ad Management mod
Post by: myaicons on January 12, 2008, 04:41:41 PM
does this work for version 1.1.4   ??
Title: Re: Ad Management mod
Post by: dxyy on January 12, 2008, 04:56:21 PM
Quote from: myaicons on January 12, 2008, 04:41:41 PM
does this work for version 1.1.4   ??
Yes.

I have 1.1.4 and this mod is working without any problems.
Title: Re: Ad Management mod
Post by: gravy on January 12, 2008, 06:38:04 PM
Quote from: hugodiaz on January 12, 2008, 04:56:21 PM
Quote from: myaicons on January 12, 2008, 04:41:41 PM
does this work for version 1.1.4   ??
Yes.

I have 1.1.4 and this mod is working without any problems.

How did you get it to work? I have tryed everything to get it to work with no luck.
Title: Re: Ad Management mod
Post by: dxyy on January 12, 2008, 06:45:38 PM
Hmm, I just installed it through the package manager.

If I remember correctly there were some problems due to conflicts with other mods which meant that I had to manually edit some files though. You can use a parser (http://www.smfhacks.com/packageparser/package.php) to let you know what you have to edit.

Hope that helps. ;)
Title: Re: Ad Management mod
Post by: Bigguy on January 13, 2008, 01:32:23 AM
Are you using a custom theme. ???

Quote from: gravy on January 12, 2008, 06:38:04 PM
Quote from: hugodiaz on January 12, 2008, 04:56:21 PM
Quote from: myaicons on January 12, 2008, 04:41:41 PM
does this work for version 1.1.4   ??
Yes.

I have 1.1.4 and this mod is working without any problems.

How did you get it to work? I have tryed everything to get it to work with no luck.
Title: Re: Ad Management mod
Post by: Chris369 on January 13, 2008, 09:02:21 AM
This mod would be perfect if it had rotation included. Is it likely to happen in future versions?
Title: Re: Ad Management mod
Post by: myaicons on January 13, 2008, 10:07:09 AM
um.. i thought i did rotate ads ?
Title: Re: Ad Management mod
Post by: Bigguy on January 13, 2008, 12:43:11 PM
It rotates them when you refresh the page. Some people like the banners to rotate without the refresh...which this mod won't do.
Title: Re: Ad Management mod
Post by: Chris369 on January 13, 2008, 01:41:15 PM
Quote from: myaicons on January 13, 2008, 10:07:09 AM
um.. i thought i did rotate ads ?

Yeah my bad, it does.

I have two ads setup and I thought if I activated both of them they'd both show up at the same time but it does actually alternate which is great :D
Title: Re: Ad Management mod
Post by: Farmacija on January 14, 2008, 08:31:35 AM
i just see that ads doesn't show on page for log in or registering new account?
Title: Re: Ad Management mod
Post by: spiros on January 14, 2008, 08:42:30 AM
I think this is in order to conform with Google rules.
Title: Re: Ad Management mod
Post by: myaicons on January 18, 2008, 09:17:55 PM
i just installed the smf ads yesterday... and honestly its a great mod... :)

but im not sure if there is an image or what value needs to show up for the reports section... nothing is showing for me... ive attached a screen shot... please help !

also...
i am using a minimally modified default theme but... i cant seem to get ads to show in certain parts of my forum  (the ones listed below):

Display ads on every page right below the menu
Display ads on every page on the top of the page
Display ads in the welcome user area (where is the welcome user area exactly?)
Display ads on the bottom of the page
Display ads on every page as a tower on the left side  (does it need to be in a skyscraper format? because i was using a banner to test this)
Display ads on every page as a tower on the right side (does it need to be in a skyscraper format? because i was using a banner to test this)

any ideas?
Title: Re: Ad Management mod
Post by: babjusi on January 18, 2008, 09:25:32 PM
Have you made the necessary edits needed for the mod to work on a custom theme?
Title: Re: Ad Management mod
Post by: myaicons on January 18, 2008, 09:38:00 PM
Quote from: babjusi on January 18, 2008, 09:25:32 PM
Have you made the necessary edits needed for the mod to work on a custom theme?

umm... no... what kind of necessary edits?
Title: Re: Ad Management mod
Post by: babjusi on January 18, 2008, 10:07:17 PM
Quote from: myaicons on January 18, 2008, 09:38:00 PM
Quote from: babjusi on January 18, 2008, 09:25:32 PM
Have you made the necessary edits needed for the mod to work on a custom theme?

umm... no... what kind of necessary edits?

All the mods work only with the default themes. I order to make them work with custom themes some changes are required. Fore more info have a look at the below links

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531

http://sleepycode.com/PackageParser/index.php
Title: Re: Ad Management mod
Post by: Bigguy on January 18, 2008, 10:16:50 PM
If you are running a custom theme you can still install the mod as long as there are no errors. After that all that is left to do is template edits. Which means only do edits to the necessary template files that are in your custom theme folder.
Title: Re: Ad Management mod
Post by: babjusi on January 18, 2008, 10:21:48 PM
Quote from: Bigguy on January 18, 2008, 10:16:50 PM
If you are running a custom theme you can still install the mod as long as there are no errors. After that all that is left to do is template edits. Which means only do edits to the necessary template files that are in your custom theme folder.

Judging from his/her screenshot, he/she has already installed the mod. So the only thing left now, would be only the 4 template edits of the custom theme, hence my links above
Title: Re: Ad Management mod
Post by: myaicons on January 18, 2008, 10:36:15 PM
ok... sorry.. i was just in the smfads site and saw the post for the edits... (please kindly delete my inquiry there)

all of my files were installed correctly except for the index.template.php ...

so i added the appropriate codes for the file and my ads started showing up... all except for the </td>

// Welcome Ads


because im not sure which instance of the </td> i need to add the code to... (theres quite a few...)

so... if someone would clarify.... id be peachy keen!



(also the reports thing i just saw on firefox... and i guess those are check marks idicating placement... doh... thought there would be some cool number or image or something)
Title: Re: Ad Management mod
Post by: Bigguy on January 18, 2008, 10:37:57 PM
I was just making sure that they new all they had to do was the template edits and not all of them. That was not explained. :)

That edit might not be in all themes...at least I have a hard time finding it in some themes and I have edited a lot of them. :)
Title: Re: Ad Management mod
Post by: myaicons on January 18, 2008, 11:02:13 PM
Quote from: Bigguy on January 18, 2008, 10:37:57 PM
That edit might not be in all themes...at least I have a hard time finding it in some themes and I have edited a lot of them. :)

im actually using the default theme...

maybe you can let me know which line to find the </td>??
Title: Re: Ad Management mod
Post by: babjusi on January 18, 2008, 11:07:31 PM
Quote from: myaicons on January 18, 2008, 11:02:13 PM
Quote from: Bigguy on January 18, 2008, 10:37:57 PM
That edit might not be in all themes...at least I have a hard time finding it in some themes and I have edited a lot of them. :)

im actually using the default theme...

maybe you can let me know which line to find the </td>??

From the screenshot that you provided above it was a custom theme. Did you switch back to the default?

Anyhow, no changes are needed for the default theme, provided that the mod installed clean without errors. But if you got an error/errors, during the install, then make a note of the files that gave the error messages and then apply manually the codes that the ad mod ads to those files. Hope this helps
Title: Re: Ad Management mod
Post by: myaicons on January 18, 2008, 11:29:16 PM
Quote from: babjusi on January 18, 2008, 11:07:31 PM
From the screenshot that you provided above it was a custom theme. Did you switch back to the default?

nope...it is in fact a copy of the default theme (core)...

i just changed the background resized the table and fancied up the header and footer...

Title: Re: Ad Management mod
Post by: Bigguy on January 18, 2008, 11:39:23 PM
If it is the default theme you are using then the mod should have found and done that edit. If there were no errors on install then that edit is done.

Quote from: myaicons on January 18, 2008, 11:02:13 PM
Quote from: Bigguy on January 18, 2008, 10:37:57 PM
That edit might not be in all themes...at least I have a hard time finding it in some themes and I have edited a lot of them. :)

im actually using the default theme...

maybe you can let me know which line to find the </td>??
Title: Re: Ad Management mod
Post by: myaicons on January 18, 2008, 11:44:31 PM
Quote from: Bigguy on January 18, 2008, 11:39:23 PM
If it is the default theme you are using then the mod should have found and done that edit. If there were no errors on install then that edit is done.


aha... ive figured it out... it edited the index template on my default folder and not my copy of the default theme folder

(yet it the forum actually pulls the rest of the necessary files from the default folder even when using my modified default theme)

so i added that last bit of code...

above this little ditty right?

</tr>
</table>
</td>
</tr>
</table>';

echo '
<table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', ' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>';



and now i know... where the alleged "welcome user area" is :)


Title: Re: Ad Management mod
Post by: Bigguy on January 19, 2008, 12:12:30 AM
Glad to hear you figured it out. ;) With a little work anything is possible. :)
Title: Re: Ad Management mod
Post by: The Tornado on January 19, 2008, 01:25:39 PM
hello
i just have this question
when i wanted to edit index.template.php  in my theme to use Ad management mod
i got this
<search position="before"><![CDATA[                     </td>]]></search>

the problem that u can find lots of </td> in the file
where should i put the next code ?
plz help me
i m waiting to go on editing the files

i am using dilbermc

any one could tell me about the line number (if we considered that the index.template.php is not modified)
Title: Re: Ad Management mod
Post by: myaicons on January 19, 2008, 01:58:04 PM
aha... i knew i wasnt crazy!  someone else couldnt find the right </td>!

@ the Tornado

read my post above... is the answer.

Title: Re: Ad Management mod
Post by: The Tornado on January 19, 2008, 02:05:51 PM
Quote from: myaicons on January 19, 2008, 01:58:04 PM
aha... i knew i wasnt crazy!  someone else couldnt find the right </td>!

@ the Tornado

read my post above... is the answer.



hello my friend
you know what
I searched and searched alot
and i found 6 TDs with the corresponding pre-spaces

i thought that i am not professional enough to make it :)

any way
i read ur post
but u were talking about the default theme ... i v dilbermc
Title: Re: Ad Management mod
Post by: The Tornado on January 19, 2008, 02:23:15 PM
so no one here to answer me ?
Title: Re: Ad Management mod
Post by: Bigguy on January 20, 2008, 12:24:49 PM
Dilber might not have that edit in it. You can leave it out and the mod will still work.
Title: Re: Ad Management mod
Post by: The Tornado on January 20, 2008, 02:40:45 PM
Quote from: Bigguy on January 20, 2008, 12:24:49 PM
Dilber might not have that edit in it. You can leave it out and the mod will still work.

r u sure about it ??
Title: Re: Ad Management mod
Post by: Bigguy on January 21, 2008, 11:00:07 AM
Yes I am positive. :)
Title: Re: Ad Management mod
Post by: L.G.S on January 23, 2008, 09:51:13 AM
Been using the ad mod for a while, but only just noticed this.

I have a moderator of one forum, which has global permissions. This moderator can see ads under posts even though in the global permissions I have set it so that every membergroup EXCEPT guests do not see any ads at all.

This is not happening for super mods, normal members etc. How can I sort this? I tried making the permissions local then turning off ads for mods, but that option isn't there.
Title: Re: Ad Management mod
Post by: Bigguy on January 23, 2008, 12:17:38 PM
Are there any errors in the logs ???
Title: Re: Ad Management mod
Post by: L.G.S on January 23, 2008, 01:40:32 PM
Nope.
Title: Re: Ad Management mod
Post by: debbiem626 on January 28, 2008, 04:27:35 PM
I have read thru this entire 104 pages and could not find an answer to the problem I'm having.

I have installed everything and everything shows correctly.

The problem is with the html I am supposing.

When I click to make a new ad ( I want to display a banner when you click on it, it takes you to their website) it takes away part of the html.  I can place an ad with just WORDS.. like TEST BANNER and I can see that fine, but I can't get the html part to work..

I'm using this type of code..   (links are not working for this demo) all you need is the code I'm using.

<a href="http://http://www.XXXXXXXX.com/XXXXXX.htm/"><img src="http://www.XXXXXXXX.com/XXXXXBanner1.gif" align="right" border="0"></a>

If anyone could help with this, thanks in advance!

Debi
Title: Re: Ad Management mod
Post by: Bigguy on January 29, 2008, 02:14:42 AM
Are there any errors in the error logs. That code you have should work but try using a div to align it:

<div align=right><a href="http://www.xxxxxx.net">
<img src="http://www.xxxxx.net/xxxxxx.png">
</a></div>
Title: Re: Ad Management mod
Post by: spiros on January 29, 2008, 04:27:55 AM
When clicking on admin help icons for the mod, I get strings like this:

permissionhelp_ad_manageperm

although Ads.english.php is in the language directory and I use English. Am i missing something here?
Title: Re: Ad Management mod
Post by: debbiem626 on January 29, 2008, 04:07:17 PM
Bigguy,  that bit of code didn't work either..   it truncates to below after I hit save.

<div align=right><a href="http://www.xxxxxxx.net">
<!--                                                  -->
</a></div>


In your bit of code you had below

<div align=right><a href="http://www.xxxxxx.net">
<img src="http://www.xxxxx.net/xxxxxx.png">
</a></div>


you had .png for the attachment was that a mistake?  It's .gif  banner I'm trying to do.


No errors show up in the log.
Title: Re: Ad Management mod
Post by: Bigguy on January 29, 2008, 07:24:25 PM
Is Ads.english.php in the language folder of the theme you use ??? If not or there is not language folder in the theme you use create one and move it to there.

Quote from: spiros on January 29, 2008, 04:27:55 AM
When clicking on admin help icons for the mod, I get strings like this:

permissionhelp_ad_manageperm

although Ads.english.php is in the language directory and I use English. Am i missing something here?

@ debbiem626: No no mistake there. Do you have it set to an html ad or php when you do this. ???
Title: Re: Ad Management mod
Post by: debbiem626 on January 30, 2008, 02:46:36 AM
I have it set to html, but I have tried it with both the php and the html settings, still no luck.
Title: Re: Ad Management mod
Post by: Bigguy on January 30, 2008, 03:03:19 AM
Did the ad mod install with no errors at all. ???
Title: Re: Ad Management mod
Post by: debbiem626 on January 30, 2008, 04:15:05 AM
yes it did, and I also tried saving my attachments as .png's  and tried the mod about changing .png's to .jpg's..   still no luck at all..  I uninstalled  the png to jpg mod..  I suppose I can try uninstalling the ad mod and try redoing it...??  But yes when I installed I got no errors and I can see the mod and I can post text and it shows..  I just cannot get it to show a banner or picture at all.
Title: Re: Ad Management mod
Post by: Bigguy on January 30, 2008, 11:50:03 AM
Try re-installing it. If at that point you can't get it to work PM me and I will check it out for you.
Title: Re: Ad Management mod
Post by: debbiem626 on January 30, 2008, 02:03:58 PM
I did that..  now it doesn't work at all, it doesn't even show the TEXT now.

Let me know what I should pm to you..  thanks for you help.

Debi
Title: Re: Ad Management mod
Post by: Bigguy on February 01, 2008, 01:28:09 AM
Can you PM me an admin account to start off with and we will go from there. :)
Title: Re: Ad Management mod
Post by: Nutronic on February 03, 2008, 06:29:28 AM
I have the following themes installed and would like to have SMFads working in the welcome area:

Camo - http://custom.simplemachines.org/themes/index.php?lemma=249
Aa_New_Damage - http://custom.simplemachines.org/themes/index.php?lemma=107

I have been to the following link and got the new files for Aa_New_Damage http://files4.smfhelp.com/Ad%20mod%20edited%20files/aanewdamage.zip and installed them but they still dont show on that themes welcome area just on board index.

I feel comfortable editing files manually if I have to, I just need to be told what needs to change etc.

Thanks.
Title: Re: Ad Management mod
Post by: babjusi on February 03, 2008, 06:38:39 AM
Quote from: Nutronic on February 03, 2008, 06:29:28 AM

I feel comfortable editing files manually if I have to, I just need to be told what needs to change etc.

Thanks.

Try this mod parser. It will show you exactly what changes to make and where to apply them

http://modparser.dev.dansoftaustralia.net/

Title: Re: Ad Management mod
Post by: Nutronic on February 03, 2008, 06:40:02 AM
Thanks, i just edited that post, it appears that the ads show on AA new damage when you click the tick box next to board index but still dont show in welcome area.

The mod parser only goes to 1.3 so thats not an option to use it.
Title: Re: Ad Management mod
Post by: babjusi on February 03, 2008, 06:43:31 AM
For future references, try this other mod parser then

http://sleepycode.com/PackageParser/index.php
Title: Re: Ad Management mod
Post by: Harvester on February 04, 2008, 03:53:47 PM
I have installed this mod the other day but I see no signs of it whatsoever... nothing on board... nothing in admin area.. I am using the default theme so I would assumeits not a matter of theme. I have always switched to babylon and and YaBB theme but I still dont see it anywhere. Am I blind or did teh install go wrong?

I would really like to get to this to work on my test forum. If it is what I am looking for and I can get it to work in my test forum I then want to use it on my live site.

Please help.
Title: Re: Ad Management mod
Post by: shaiss on February 04, 2008, 04:16:50 PM
I had a similar issue on a fresh 114 smf install.  I had to use the parser and manaully make all the changes.  LAME!
Title: Re: Ad Management mod
Post by: babjusi on February 04, 2008, 04:17:31 PM
Quote from: Harvester on February 04, 2008, 03:53:47 PM
I have installed this mod the other day but I see no signs of it whatsoever... nothing on board... nothing in admin area.. I am using the default theme so I would assumeits not a matter of theme. I have always switched to babylon and and YaBB theme but I still dont see it anywhere. Am I blind or did teh install go wrong?

I would really like to get to this to work on my test forum. If it is what I am looking for and I can get it to work in my test forum I then want to use it on my live site.

Please help.

Check the default language at the Server Settings at your acp and make sure that it is set to plain english and not english utf-8 which would be the case if you have installed smf via Fantastico
Title: Re: Ad Management mod
Post by: shaiss on February 04, 2008, 04:23:05 PM
whats fantasitco?  I uploaded it via FTP to my server which is hosted by rackspace and installed via the built in php installer.  I also had the same error on a friends site.

It looks like it installs, but the install is incomplete on 1.4
Title: Re: Ad Management mod
Post by: Bigguy on February 04, 2008, 05:40:11 PM
Fantastico is built into cpanel and is usually at the bottom of the page. It will install a lot of scripts automatically. Some people have reported problems with it just for the simple fact that when it installs SMF it installs it with the utf-8 language instead of regular english. This causes problems for mod installation.
Title: Re: Ad Management mod
Post by: glennk on February 05, 2008, 01:10:44 PM
Hi Guys,

Can you help me with a problem regarding the ad management mod. I have placed adverts on some of my forum boards - namely :

http://www.whitbyseaanglers.co.uk/forum/

and

http://www.whitbyseaanglers.co.uk/forum/north-east-fresh-water-fishing/0/


When I log out I can see the ads fine, however the person who payed me to put them there cant see them when he is logged out. Has anyone any ideas why - does the problem lie with me ?
Title: Re: Ad Management mod
Post by: Bigguy on February 05, 2008, 03:35:44 PM
Have you set all permissions for membergroups so they can all see the ads.
Title: Re: Ad Management mod
Post by: glennk on February 05, 2008, 05:12:47 PM
Ads are enabled for guests which is what you are when you log out.
Title: Re: Ad Management mod
Post by: Bigguy on February 05, 2008, 05:39:52 PM
What errors are in your error log.
Title: Re: Ad Management mod
Post by: diegolyanky on February 09, 2008, 05:04:30 PM
Very nice mod ... And very usefull ...

But, please, can you help me to modify the files for DIlberMC theme ? ...

index.template.php is ver different to the default theme and I don't know how to midify it ...

Here is attached my 3 files.

Many thanks in advance ;)
Title: Re: Ad Management mod
Post by: Drea on February 09, 2008, 07:13:19 PM
I posted this at the ad forum but still no reply and I have spent my entire day with this issue and i am honestly overly stressed about it so here is my problem.

I added a new bottom ad this morning and it screwed up a lot of things so I went to Delete it and it will not delete at all so I tried to edit and save and that wouldn't work either. I have tried just about everything and I have no clue what I can do.

What I want to do now is delete the ad mod and start over I tried that but it still shows the old ads when reinstalling , any idea on how I can remove the old ads and just start over. Thanks in advance I just want this nightmare to be over...lol  :'(
Title: Re: Ad Management mod
Post by: Bigguy on February 09, 2008, 11:56:50 PM
Your ownership of files might be off...or your permissions. If you ftp in and find that a file or folder has a 99 beside it this indicates that apache (the server) owns the file and therefore you can't edit it or anything. Ask your host to re-own your files for you to your account or check permissions on files to see if they are set proper.
Title: Re: Ad Management mod
Post by: diegolyanky on February 10, 2008, 01:43:52 AM
(http://espacioforos.miarroba.com/147096/caretos/cricri.gif)
Title: Re: Ad Management mod
Post by: dumblonde on February 10, 2008, 03:55:34 PM
I am getting a massive amount (over 800 pages) of error logs that have to do with the ad mod.


The error message says:
8: Undefined variable: category
File: /home/dumbscre/public_html/Themes/SMF1/BoardIndex.template.php
Line: 180



From my board index template, line 180 is in red:
</div>';
//Display ads Between cats
        if (function_exists("show_category"))
        {
                $ads = show_category($category['id']);
                if(!empty($ads))
                        if($ads['type']==0)
                                echo $ads['content'];
                        else
                                eval($ads['content']);
                unset($ads);
        }

        }



It looks fine according to the package parser.  Has anyone else incurred this problem or do you have any suggestions how I can stop this error from happening.

Thanks  :D
Title: Re: Ad Management mod
Post by: Emperium on February 10, 2008, 05:33:58 PM
I am the admin of my forums, and I can view ads on my forums well, but regular members cannot view the ads. I tried checking the Ad Management settings but couldn't find anything there. The tried looking at the Membergroup Permissions settings and again couldn't find anything to enable the Ads so regular members can see them. What do I do?
Title: Re: Ad Management mod
Post by: dumblonde on February 10, 2008, 05:58:57 PM
I enabled the ads for each membergroup via MEMBERS>>Permissions.  It was the top permission in the right column for each membergroup  :D
Title: Re: Ad Management mod
Post by: myaicons on February 10, 2008, 06:06:54 PM
just wanted to say that this is an all around great mod... very simple and easy to use...

i would love to see an "ad ownership" function added to it...

such as, each ad created can have an optional owner field and owner email field...

so that when you are selling ad space the ad buyer can be emailed the report of their ad (placement, views, hits)



what do ya think??
Title: Re: Ad Management mod
Post by: Emperium on February 10, 2008, 06:13:51 PM
If this is the permission list your talking about, where is my "Ad Permission" category?
Title: Re: Ad Management mod
Post by: dumblonde on February 10, 2008, 06:22:51 PM
Yes that is the permissions I was talking about.  I don't have "SMF shop" but my Ad Management permission is located right above the personal messaging permissions right where your SMF shop permissions are showing.  Sorry I am a noob & can't be much more help than that  :-[
Title: Re: Ad Management mod
Post by: perplexed on February 10, 2008, 07:28:11 PM
Here's what it should look like if that helps.

It looks like it didnt install properly for you if you don't have that, maybe uninstall and try again?


Title: Re: Ad Management mod
Post by: Emperium on February 10, 2008, 08:07:42 PM
Issue resolved!

Thanks to Support Specialist greyknight17 for the fix. Basically all was fine on my Scribbles2 theme except for the fact that it was missing the permission properties. He told me in "managepermissions.php" to replace:

'pm' => array(


with:

'ad_manage' => array(
                    'ad_manageperm' => false,
               ),
               'pm' => array(


Basically adding the Ad Management permission properties manually. Of course it now works fine, posted the resolve in case anyone else had a very similar or exact issue as me.
Title: Re: Ad Management mod
Post by: diegolyanky on February 10, 2008, 08:34:13 PM
Quote from: diegolyanky on February 09, 2008, 05:04:30 PM
Very nice mod ... And very usefull ...

But, please, can you help me to modify the files for DIlberMC theme ? ...

index.template.php is ver different to the default theme and I don't know how to midify it ...

Here is attached my 3 files.

Many thanks in advance ;)

So ? ... Can anybody help me ?
Title: Re: Ad Management mod
Post by: flickernever on February 11, 2008, 10:59:54 AM
Mod states that:

Version 2.0 Jun 13, 2006
- Enabled per board ads
- Ability to add multiple ads
- HTML/PHP style ads
- Ad reports
- Disabled ads in certain sections of the admin panel
- Many more minor improvments

What do I have to do on the Add/Edit Adverts Content window to make it display different ads when the page is reloaded?

I have several different banners and I want to display a different one each time the page reloads. The banner code is a simple liked image:

<a href="http://www.website.com"><img src="http://www.website.com/banner.gif"></a>


All the banners use this code. Can anybody help?

There should be a manual for this.
Title: Re: Ad Management mod
Post by: Bigguy on February 11, 2008, 12:14:39 PM
Put two ads in the same location; when page refreshes so will the ad.
Title: Re: Ad Management mod
Post by: flickernever on February 11, 2008, 01:35:05 PM
Quote from: Bigguy on February 11, 2008, 12:14:39 PM<br />Put two ads in the same location; when page refreshes so will the ad. <br />

Oh I got it. We have to create different new ads for each banner and then choose them to display in the same area. I thought it was like creating one ad and then in the content separate the banners with commas or something.

Thanks.
Title: Re: Ad Management mod
Post by: Bigguy on February 11, 2008, 02:14:51 PM
No problem. :)
Title: Re: Ad Management mod
Post by: usa4all on February 11, 2008, 02:24:56 PM
It's ( The ad mod) not working correctly at my forum.

At some options i see a ad, but at the most , there's nothing to see.

I did change the "view" settings at permissions.

Any help?
Title: Re: Ad Management mod
Post by: Bigguy on February 11, 2008, 02:33:32 PM
If you are using a custom theme then it will have to be manually edited to show the ad mod.
Title: Re: Ad Management mod
Post by: MYBESTHOMESnet on February 12, 2008, 08:12:44 AM
Quote from: MYBESTHOMESnet on December 13, 2007, 07:10:27 PM
How to configure my ads to appear inside of the message area of the post:



(http://img413.imageshack.us/img413/8859/adspw3.jpg)


Thanks

gRac3
:)

please help me on this.
Title: Re: Ad Management mod
Post by: Kenny01 on February 12, 2008, 08:25:15 AM
I use it and it working great for me.
Title: Re: Ad Management mod
Post by: lonrot on February 12, 2008, 08:52:18 AM
Guys, google ads no longer work! alll the other ads are doing just fine.
And I just can't find the reason why they won't show up anymore!
Title: Re: Ad Management mod
Post by: Kenny01 on February 12, 2008, 09:01:36 AM
Why not try placing it directly on your index.php.template
Title: Re: Ad Management mod
Post by: lonrot on February 12, 2008, 09:11:41 AM
Because I want to display it in different places like before.
Title: Re: Ad Management mod
Post by: Kenny01 on February 12, 2008, 12:16:09 PM
I'm having my ads on the following places, Index, post, and PM i do these by placing it directly on each file php click to have a look
http://www.nigerianbestforum.com/index.php?topic=2.msg12#msg12
it's much easier this way.
Title: Re: Ad Management mod
Post by: Bigguy on February 12, 2008, 03:46:20 PM
Why would you think that coding the ads directly into the templates is easier than installing the mod and placing the ad code in a text box. ??? (just thought I would ask :))
Title: Re: Ad Management mod
Post by: Kenny01 on February 12, 2008, 03:58:33 PM
Because the Ad Management mod can't place it in those places.
Title: Re: Ad Management mod
Post by: Bigguy on February 12, 2008, 03:59:20 PM
Oh...ok, lol. :)
Title: Re: Ad Management mod
Post by: Kenny01 on February 12, 2008, 04:03:25 PM
Ok;
Title: Re: Ad Management mod
Post by: ivanzj on February 13, 2008, 08:58:52 AM
hi there.
My ads are showing only for registered people. How can i change this?
Thank you
regards
Title: Re: Ad Management mod
Post by: babjusi on February 13, 2008, 09:11:34 AM
Quote from: ivanzj on February 13, 2008, 08:58:52 AM
hi there.
My ads are showing only for registered people. How can i change this?
Thank you
regards

Check out the permissions at the acp of your forum
Title: Re: Ad Management mod
Post by: ivanzj on February 13, 2008, 09:29:47 AM
Quote from: babjusi on February 13, 2008, 09:11:34 AM
Quote from: ivanzj on February 13, 2008, 08:58:52 AM
hi there.
My ads are showing only for registered people. How can i change this?
Thank you
regards

Check out the permissions at the acp of your forum
thanks, i just searched smfads.com and found the same answer
thanks again
Title: Re: Ad Management mod
Post by: babjusi on February 13, 2008, 10:05:46 AM
Quote from: ivanzj on February 13, 2008, 09:29:47 AM
Quote from: babjusi on February 13, 2008, 09:11:34 AM
Quote from: ivanzj on February 13, 2008, 08:58:52 AM
hi there.
My ads are showing only for registered people. How can i change this?
Thank you
regards

Check out the permissions at the acp of your forum
thanks, i just searched smfads.com and found the same answer
thanks again


You are welcome
Title: Re: Ad Management mod
Post by: dumblonde on February 13, 2008, 01:47:40 PM
Quote from: dumblonde on February 10, 2008, 03:55:34 PM
I am getting a massive amount (over 800 pages) of error logs that have to do with the ad mod.


The error message says:
8: Undefined variable: category
File: /home/dumbscre/public_html/Themes/SMF1/BoardIndex.template.php
Line: 180



From my board index template, line 180 is in red:
</div>';
//Display ads Between cats
        if (function_exists("show_category"))
        {
                $ads = show_category($category['id']);
                if(!empty($ads))
                        if($ads['type']==0)
                                echo $ads['content'];
                        else
                                eval($ads['content']);
                unset($ads);
        }

        }



It looks fine according to the package parser.  Has anyone else incurred this problem or do you have any suggestions how I can stop this error from happening.

Thanks  :D

anybody know what could be causing this?

Thanks
Title: Re: Ad Management mod
Post by: Kenny01 on February 13, 2008, 02:09:16 PM
Try to uninstall it and re install it.
Title: Re: Ad Management mod
Post by: snowforum on February 13, 2008, 04:02:08 PM
Hello

When I try upload the mod file I get this;

An Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted.

I am using 1.1.4 theme by m3talc0re
Title: Re: Ad Management mod
Post by: Caming on February 13, 2008, 10:15:33 PM
@ Bigguy, I have the same problem with Shais, there is no "Ad Management" under the Configuration heading. The installation was ok, but there is no link to this mod in my Admin Panel.

Yes, I have installed SMF thru Fantastico, would this be the cause? What would you suggest? I am a newbie and don't know about php coding.  If I will upload SMF via FTP, would the mod work fine?

I would appreciate your help here. Thanks!
Title: Re: Ad Management mod
Post by: Bigguy on February 14, 2008, 01:00:16 AM
Try going into server settings and changing your language from english utf9 to just plain english, that might help.
Title: Re: Ad Management mod
Post by: Caming on February 14, 2008, 03:24:51 AM
Bigguy,

Here's the text just below the Core Configuration - "These settings cannot be changed because Settings.php is read only."

Does this mean I have to manually change the code of settings.php to writable? I am afraid to tinker with the code, i don't have any php background.

Is there any other way? Please help.. :-[
Title: Re: Ad Management mod
Post by: babjusi on February 14, 2008, 07:38:48 AM
Quote from: Caming on February 14, 2008, 03:24:51 AM
Bigguy,

Here's the text just below the Core Configuration - "These settings cannot be changed because Settings.php is read only."

Does this mean I have to manually change the code of settings.php to writable? I am afraid to tinker with the code, i don't have any php background.

Is there any other way? Please help.. :-[

You must chmodd the settings.php file. You can do so with a ftp client or through the File Manager at the CP of your host
Title: Re: Ad Management mod
Post by: Caming on February 14, 2008, 10:10:03 AM
@ Bab - truly a Simple Machines Hero! Got it already. I hope the adds will work fine. Thanks so much!

@ Bigguy, also a Simple Machines Hero! Thanks man!
Title: Re: Ad Management mod
Post by: stevengaa on February 14, 2008, 11:13:58 AM
Please Helps Download Error with version of SMF 1.1.4
Title: Re: Ad Management mod
Post by: Kenny01 on February 14, 2008, 11:34:15 AM
Copy and post the error message.
Title: Re: Ad Management mod
Post by: godsdead on February 14, 2008, 12:27:48 PM
This Mod seems to work fine on the SMF default theme, how do i make it work with the theme "Aa_New_Damage"
Title: Re: Ad Management mod
Post by: Bigguy on February 14, 2008, 12:29:06 PM
All the edits are layed out in a stickie topic in the Theme support board at www.smfads.com
Title: Re: Ad Management mod
Post by: lonrot on February 14, 2008, 01:02:08 PM
Guys, not only adsense ads stopped to appear but cpxinteractive ads too.

Bigguy would you be so kind to check this issue for me?
I'm not good with codes, I payed someone to install this mod on my custom theme.
It worked fine until now, this issue was not happening a few months ago.
Title: Re: Ad Management mod
Post by: Bigguy on February 14, 2008, 01:12:53 PM
I might be able to look at in later today. I am sort of bogged down with work right now.
Title: Re: Ad Management mod
Post by: lonrot on February 14, 2008, 01:16:38 PM
Excellent, I've sent you the details through PM.
Title: Re: Ad Management mod
Post by: Bigguy on February 14, 2008, 01:33:02 PM
PM sent back.
Title: Re: Ad Management mod
Post by: shaiss on February 15, 2008, 01:09:38 PM
Any help would be appriciated.  I'm trying to set this up on hackthatifone.com running SMF 1.4 and Faux_Apple for the theme.

After using the SMF package parser I get everything done, except I'm having problems with the index.template.php and the BoardIndex.template.php which both show this error where I enter the ad managment mod code.
Parse error: syntax error, unexpected '<' in /home/jayc7176/public_html/forum/Sources/Load.php(1737) : eval()'d code(119) : eval()'d code on line 1

You can see the
index.template.php @ http://pastebin.com/d13a1e10e before the mods
BoardIndex.template.php @ http://pastebin.com/f4cfcaa6e before the mods

I think the problem is that I'm not putting the code in the right place.  If anyone can point me in the right direction I would appriciate it.  I've manually installed this before on http://11246unlock.com without problems, but on this site with this theme its giving me problems.
Title: Re: Ad Management mod
Post by: Emperium on February 15, 2008, 07:40:30 PM
Got a new theme and in Internet Explorer it has made most of the forum content centered. I posted a thread about it in Graphics and Templates but so far all I have been told is that it might have something to do with this Ad Management mod. I'm posting the link to the thread here since I'm sure I'll get some Ad Management mod specialists to help me out. Please view the thread, I really hope to get the issue resolved as soon as possible:

Why is my forum cenetered in Internet Explorer Thread (potentially due to Ad Management mod (http://www.simplemachines.org/community/index.php?topic=222917.0)
Title: Re: Ad Management mod
Post by: Chrisso90 on February 19, 2008, 09:55:44 AM
Hi, thanks for a good modification, but is it possible to make guest see the ads too?

Look @ www.bad-habits.net you should (like me, logged off) not be able to see the ads, but how do I make it visible to guests?
Title: Re: Ad Management mod
Post by: Bigguy on February 19, 2008, 11:01:03 AM
Look in your permissions and enable ads for guests.
Title: Re: Ad Management mod
Post by: sword_of_thunder_god on February 20, 2008, 07:15:42 AM
hello  :), I'm having a very hard time installing this ad mod i dunno why but whenever i installed it using file manager it encounter this error:

Execute Modification     ./Sources/ManagePermissions.php     Test failed
Title: Re: Ad Management mod
Post by: Bigguy on February 20, 2008, 07:33:29 AM
That edit will have to be entered manually. Another mod has probably altered the code and thats why it fails. All the edits for the ad mod are posted here at my site:

CLICK (http://www.smfhelper.info/forum/index.php?topic=2286.0)
Title: Re: Ad Management mod
Post by: sword_of_thunder_god on February 20, 2008, 07:51:34 AM
oh, ok..gonna try now that edit  :)
Title: Re: Ad Management mod
Post by: Bigguy on February 20, 2008, 07:54:59 AM
Install the mod first then download that file and apply the edits. I have to step out for a minute or 3 but I will be back. :)
Title: Re: Ad Management mod
Post by: sword_of_thunder_god on February 20, 2008, 09:16:08 AM
one question, do i have to edit all those codes or just the managepermission.php only?
Title: Re: Ad Management mod
Post by: Bigguy on February 20, 2008, 10:36:28 AM
Install the mod and then download the managepermissions.php file and do the edits to it then re-upload it. Makes you you make a backup of the file just in case.
Title: Re: Ad Management mod
Post by: rabbi45 on February 21, 2008, 01:51:41 AM
Help I got this error when I edited it using the edits for ad_mod found on smfads:

Template Parse Error!
There was a problem loading the /Themes/default/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected T_CLASS, expecting ',' or ';' in .../Themes/default/index.template.php on line 342

333:                         unset($ads);
334:                      }
335:                   echo '
336:                      //Welcome Ads
337:                      if (function_exists("show_welcomeAds"))
338:                      {
339:                         $ads = show_welcomeAds();
340:                         if(!empty($ads))
341:                         {

342:                            echo '<td class="windowbg2">';

343:                            if($ads['type']==0)
344:                               echo $ads['content'];
345:                            else
346:                               eval($ads['content']);
Title: Re: Ad Management mod
Post by: rabbi45 on February 21, 2008, 05:42:30 AM
I already found out on my answer. I uninstalled it and reinstalled it again. Thank you great forum support.
Title: Re: Ad Management mod
Post by: bassbass on February 22, 2008, 03:05:06 PM
Bigguy, i like the floating [Top] link on your site, would it be possible to post the code for that, or maybe email it? 

thanks
Title: Re: Ad Management mod
Post by: Bigguy on February 22, 2008, 03:42:07 PM
Thanks....your obviously using IE if you can see it ??? I am testing this code to see what browsers it works in. It says it works in IE; FF and Opera but so far it only shows in IE. I got it at dynamic drive:

http://www.dynamicdrive.com/dynamicindex5/jumptop.htm

It works for me there in FF but not on my site with FF just IE.
Title: Re: Ad Management mod
Post by: bassbass on February 22, 2008, 05:06:08 PM
Thanks for that BigGuy
Title: Re: Ad Management mod
Post by: Bigguy on February 22, 2008, 06:08:40 PM
If you get it to work with FF please let me know how. :)
Title: Re: Ad Management mod
Post by: bassbass on February 22, 2008, 09:36:40 PM
Hey Bigguy, i had to take it off, and didn't have the chance to try it on FF.  the reason i removed it because it was refreshing the page every time you maximize the window, basically when i minimize the window to do others things and when i get back to it by maximizing the window, it refreshes.  some times i type something and minimize the window and when i gate back of course it all goes away because it refreshes.  have you noticed this in you form?  in fact i am going to try it out now.  too bad because my members liked it allot.
Title: Re: Ad Management mod
Post by: bassbass on February 22, 2008, 09:37:42 PM
Yup, it does it on your too.  its conflicting some how!
Title: Re: Ad Management mod
Post by: Bigguy on February 23, 2008, 03:15:35 PM
I have never noticed a refresh at all; it just doesn't show with FF. I wonder what it is conflicting with. ???
Title: Re: Ad Management mod
Post by: Dr Web on February 26, 2008, 11:54:39 AM
I have Ad Management installed but I want to insert adsense code inside the posts, like in this example http://www.awdforums.com/free-two-year-t1248.html, how can I do this? Is it possible to ad the code to the Mod itself to be possible make something like this?

Like an updated version of the Mod, or just tell me the code needed to be inserted and where.

Many thanks, great Mod.
Title: Re: Ad Management mod
Post by: Bigguy on February 26, 2008, 12:28:59 PM
As of right now that is not possible with the ad mod. I have had one other person talk about this and Jerm will be updating his mod soon. I'm not sure if this will be included but I might see if I can move the code around later.
Title: Re: Ad Management mod
Post by: Kenny01 on February 26, 2008, 01:10:20 PM
Quote from: Dr Web on February 26, 2008, 11:54:39 AM
I have Ad Management installed but I want to insert adsense code inside the posts, like in this example http://www.awdforums.com/free-two-year-t1248.html, (http://www.awdforums.com/free-two-year-t1248.html,) how can I do this? Is it possible to ad the code to the Mod itself to be possible make something like this?

Like an updated version of the Mod, or just tell me the code needed to be inserted and where.

Many thanks, great Mod.
I'm having the same, my ads under the posts check it you need to insect it directly to your display php template.

If you need help just reply to this post.
Title: Re: Ad Management mod
Post by: Dr Web on February 26, 2008, 01:25:55 PM
If Jerm updates the Mod to turn possible to choose how many ads we want to display and the ads change the place on every load of the page, it will be perfect, I use a great wordpress plugin on this blog http://www.dr-web-blog.com/seo/qassia-the-next-internet-top-site/ if you load the page several times, the ads also change the place and I can use 1, 2 or 3 ads per post, I have no idea if this can be made, but, it's great.

This is the page of the plugin, just in the case Jerm wants to take a look.

http://www.linewbie.com/wordpress-plugins/all-in-one-adsense-and-ypn

Thanks for the support
Title: Re: Ad Management mod
Post by: Shean on February 26, 2008, 01:27:42 PM
Thankings mod beautiful the error did not go to her
Title: Re: Ad Management mod
Post by: Dr Web on February 26, 2008, 01:34:25 PM
Quote from: Oga123 on February 26, 2008, 01:10:20 PM
Quote from: Dr Web on February 26, 2008, 11:54:39 AM
I have Ad Management installed but I want to insert adsense code inside the posts, like in this example http://www.awdforums.com/free-two-year-t1248.html, how can I do this? Is it possible to ad the code to the Mod itself to be possible make something like this?

Like an updated version of the Mod, or just tell me the code needed to be inserted and where.

Many thanks, great Mod.
I'm having the same, my ads under the posts check it http://www.nigerianbestforum.com/index.php?topic=670.msg7823#msg7823 you need to insect it directly to your display php template.

If you need help just reply to this post.
Ok, I will edit the display php template, if I need help, I will ask.

Many thanks 
Title: Re: Ad Management mod
Post by: Bigguy on February 26, 2008, 01:46:17 PM
@ Dr Web: If you place two ads in the same place they will rotate on page refreshes.
Title: Re: Ad Management mod
Post by: Kenny01 on February 27, 2008, 08:59:25 AM
Quote from: Bigguy on February 26, 2008, 01:46:17 PM
@ Dr Web: If you place two ads in the same place they will rotate on page refreshes.
You're right Bigguy.
Title: Re: Ad Management mod
Post by: pibe86 on February 27, 2008, 11:38:39 AM
hello, i hace installed thsi mod successfull, but my ads only are showen when people has loged in, how can show ads for visits??

thanks

i use smf 1.1.4
tinyportal
default theme
my forum is http://www.encuentrofutbol.com
Title: Re: Ad Management mod
Post by: pibe86 on February 27, 2008, 12:37:14 PM
i have solved it for my forum http://www.encuentrofutbol.com/

here is the answer http://www.smfads.com/forums/index.php?topic=415.0
Title: Re: Ad Management mod
Post by: Kenny01 on February 28, 2008, 01:18:29 AM
It's a matter of permission, just activate it for everyone to see.
Title: Re: Ad Management mod
Post by: lonrot on February 28, 2008, 03:02:17 PM
Is it possible to disable ads for a "based off posts" membergroup?
Title: Re: Ad Management mod
Post by: bassbass on February 28, 2008, 04:39:18 PM
Quote from: lonrot on February 28, 2008, 03:02:17 PM
Is it possible to disable ads for a "based off posts" membergroup?

Absolutely, its in the permissions.  this is how i have it set up
Title: Re: Ad Management mod
Post by: Kenny01 on February 29, 2008, 02:32:28 AM
From the permission panel you can choose who you want to see your ads.
Title: Re: Ad Management mod
Post by: Pond_Hockey on March 01, 2008, 08:13:44 PM
How do I install this mod on a new theme?
Title: Re: Ad Management mod
Post by: ~Unkn0wn~ on March 02, 2008, 01:02:07 AM
Go here
http://modparser.dev.dansoftaustralia.net/
Press Browse, select the mod
Show: Only theme edits

Then they will explain you there. That works for all the mods.
Title: Re: Ad Management mod
Post by: Kenny01 on March 02, 2008, 01:32:31 AM
Quote from: Pond_Hockey on March 01, 2008, 08:13:44 PM
How do I install this mod on a new theme?

Click here (http://docs.simplemachines.org/index.php?board=49.0;sort=subject) for a tutorial.
Title: Re: Ad Management mod
Post by: Bigguy on March 02, 2008, 03:52:30 PM
All the edits if you need them are here:

http://www.smfhelper.info/forum/index.php?topic=2286.0

Also I have some theme files lying around that have already been edited.
Title: Re: Ad Management mod
Post by: lonrot on March 02, 2008, 09:19:26 PM
Quote from: bassbass on February 28, 2008, 04:39:18 PM
Quote from: lonrot on February 28, 2008, 03:02:17 PM
Is it possible to disable ads for a "based off posts" membergroup?

Absolutely, its in the permissions.  this is how i have it set up

Not working for me. I've created a membergroup which requires 60 posts.
In the permissions I uncheck "enable Ads" but the ads keep appearing!
Title: Re: Ad Management mod
Post by: Bigguy on March 02, 2008, 09:27:50 PM
Are there any errors in the error logs that pertain to the ad mod.
Title: Re: Ad Management mod
Post by: lonrot on March 02, 2008, 09:50:34 PM
Quote from: Bigguy on March 02, 2008, 09:27:50 PM
Are there any errors in the error logs that pertain to the ad mod.

Nope, I don't see any recent errors regarding the Ad mod.
Title: Re: Ad Management mod
Post by: Bigguy on March 02, 2008, 10:29:25 PM
When you uncheck "enable Ads" does it actually stay unchecked. ???
Title: Re: Ad Management mod
Post by: lonrot on March 02, 2008, 10:40:30 PM
Yes it does.
Title: Re: Ad Management mod
Post by: Bigguy on March 02, 2008, 10:49:18 PM
Is it a custom theme you are using. ???
Title: Re: Ad Management mod
Post by: lonrot on March 02, 2008, 10:51:01 PM
Quote from: Bigguy on March 02, 2008, 10:49:18 PM
Is it a custom theme you are using. ???

Yup, SoftMCBlue.
Title: Re: Ad Management mod
Post by: Bigguy on March 02, 2008, 10:57:26 PM
Go back over your edits and make sure they are all done the way they are supposed to be. It's a bit weird there are no errors.
Title: Re: Ad Management mod
Post by: lonrot on March 02, 2008, 11:03:19 PM
Keep in mind that these are "post bassed" membergroups.
Edit: I have checked the default theme, and I'm getting the same issue.
Title: Re: Ad Management mod
Post by: sword_of_thunder_god on March 03, 2008, 12:01:31 AM
sorry for asking this same question, but i really couldn't find the right reply topics for this...my questions are:

1.) how do i center the ads like the one shown here in the forum?

2.) how do i remove the smf logo name in the header?

p.s. I know there is already a topic about this but as i've said i'm having a hard time finding it so please kindly help me.
Title: Re: Ad Management mod
Post by: lonrot on March 03, 2008, 12:06:46 AM
1) Use the following code:
<center>the ad code goes here</center>
or
<div align="center">the ad code goes here</div>

2) Search the boards for the answer.
Title: Re: Ad Management mod
Post by: sword_of_thunder_god on March 03, 2008, 12:11:02 AM
wow tat was fast! =D...thanks for answering my first question =D...i'll just continue to search for my 2nd questions answer...thanks again!
Title: Re: Ad Management mod
Post by: lonrot on March 03, 2008, 12:39:47 AM
Quote from: sword_of_thunder_god on March 03, 2008, 12:11:02 AM
wow tat was fast! =D...thanks for answering my first question =D...i'll just continue to search for my 2nd questions answer...thanks again!

No problem.

@Bigguy, I checked my edits they seemed to be fine, thought I uninstalled and reinstalled the package again, used the default theme, and the ads are still there for the "post based" members.
Are you sure that the mod supports this?
Title: Re: Ad Management mod
Post by: Kenny01 on March 03, 2008, 01:32:26 AM
Quote from: lonrot on March 02, 2008, 09:19:26 PM
Quote from: bassbass on February 28, 2008, 04:39:18 PM
Quote from: lonrot on February 28, 2008, 03:02:17 PM
Is it possible to disable ads for a "based off posts" membergroup?

Absolutely, its in the permissions.  this is how i have it set up

Not working for me. I've created a membergroup which requires 60 posts.
In the permissions I uncheck "enable Ads" but the ads keep appearing!
Try to uninstall other mods you install before the ad mod, then install the ad mod first.
Title: Re: Ad Management mod
Post by: sword_of_thunder_god on March 03, 2008, 01:49:51 AM
guys got a question again,...why is it that the ads didn't show up after i've install the aurora TP theme? do i need to configure something? please help me..
Title: Re: Ad Management mod
Post by: lonrot on March 03, 2008, 01:52:50 AM
Yes, you have to do manual install.

Use the Package Parser and select theme edits, then you have to modify the aurora theme files exactly as it tells you.
http://modparser.dev.dansoftaustralia.net/
Title: Re: Ad Management mod
Post by: sword_of_thunder_god on March 03, 2008, 02:06:05 AM
oh, ok...thanks for telling =D, but there's a problem the version that the parser shows only smf 1.1.3 does it support the latest 1.1.4?
Title: Re: Ad Management mod
Post by: Bigguy on March 03, 2008, 07:51:34 AM
There are other parsers that are more up to date. Try the one in Sleepy's signature.
Title: Re: Ad Management mod
Post by: Kenny01 on March 03, 2008, 08:18:10 AM
Quote from: Bigguy on March 03, 2008, 07:51:34 AM
There are other parsers that are more up to date. Try the one in Sleepy's signature.
Who's sleepy? can we have the link, Thanks.
Title: Re: Ad Management mod
Post by: babjusi on March 03, 2008, 08:19:21 AM
Quote from: Oga123 on March 03, 2008, 08:18:10 AM
Quote from: Bigguy on March 03, 2008, 07:51:34 AM
There are other parsers that are more up to date. Try the one in Sleepy's signature.
Who's sleepy? can we have the link, Thanks.

Here you go

http://sleepycode.com/PackageParser/index.php
Title: Re: Ad Management mod
Post by: Kenny01 on March 03, 2008, 08:22:57 AM
Thanks babjusi what a great guy.
Title: Re: Ad Management mod
Post by: lonrot on March 03, 2008, 07:34:28 PM
Quote from: Oga123 on March 03, 2008, 01:32:26 AM
Quote from: lonrot on March 02, 2008, 09:19:26 PM
Quote from: bassbass on February 28, 2008, 04:39:18 PM
Quote from: lonrot on February 28, 2008, 03:02:17 PM
Is it possible to disable ads for a "based off posts" membergroup?

Absolutely, its in the permissions.  this is how i have it set up

Not working for me. I've created a membergroup which requires 60 posts.
In the permissions I uncheck "enable Ads" but the ads keep appearing!
Try to uninstall other mods you install before the ad mod, then install the ad mod first.

One thing, for "non post" membergroups such as administrators, moderators, the ad permissions do work.
But not for "post based" members. This is getting very odd.
Title: Re: Ad Management mod
Post by: sfreak on March 03, 2008, 07:58:56 PM
hi folks...

when i want to install admod i am getting this error

Table 'studentsspot.smf_ads' doesn't exist
File: /mounted-storage/home34a/sub001/sc27813-WZXZ/studentsspot.com/Sources/LoadAds.php
Line: 33

please tell me in detail what i have to do to remove this error....
Title: Re: Ad Management mod
Post by: Bigguy on March 03, 2008, 10:28:04 PM
Did you do the edits for this mod manually before installing the mod through the package manager. ???
Title: Re: Ad Management mod
Post by: Kenny01 on March 04, 2008, 12:47:51 AM
Quote from: kcscm on March 03, 2008, 07:58:56 PM
hi folks...

when i want to install admod i am getting this error

Table 'studentsspot.smf_ads' doesn't exist
File: /mounted-storage/home34a/sub001/sc27813-WZXZ/studentsspot.com/Sources/LoadAds.php
Line: 33

please tell me in detail what i have to do to remove this error....
What Theme are you using?
Title: Re: Ad Management mod
Post by: Bigguy on March 04, 2008, 01:06:28 AM
Check the index.php file in the root of your SMF install and make sure all the edis are done there.
Title: Re: Ad Management mod
Post by: Kender on March 04, 2008, 03:15:40 AM
Quote from: lonrot on March 03, 2008, 07:34:28 PM
Quote from: Oga123 on March 03, 2008, 01:32:26 AM
Quote from: lonrot on March 02, 2008, 09:19:26 PM
Quote from: bassbass on February 28, 2008, 04:39:18 PM
Quote from: lonrot on February 28, 2008, 03:02:17 PM
Is it possible to disable ads for a "based off posts" membergroup?

Absolutely, its in the permissions.  this is how i have it set up

Not working for me. I've created a membergroup which requires 60 posts.
In the permissions I uncheck "enable Ads" but the ads keep appearing!
Try to uninstall other mods you install before the ad mod, then install the ad mod first.

One thing, for "non post" membergroups such as administrators, moderators, the ad permissions do work.
But not for "post based" members. This is getting very odd.

is the person seing the ad in a membergroup thats not post related that is supposed to see them?

ie "post count 200" - no ads
"group xenophobes" - ads

most likely, if the group they are in will see ads, they will see ads as part of that group
Title: Re: Ad Management mod
Post by: Kenny01 on March 04, 2008, 06:54:08 AM
Quote from: sword_of_thunder_god on March 03, 2008, 12:01:31 AM
sorry for asking this same question, but i really couldn't find the right reply topics for this...my questions are:


2.) how do i remove the smf logo name in the header?
You can remove the SMF logo my editing your Index.php template header.
Title: Re: Ad Management mod
Post by: Dr Web on March 04, 2008, 06:59:36 AM
Quote from: Bigguy on February 26, 2008, 01:46:17 PM
@ Dr Web: If you place two ads in the same place they will rotate on page refreshes.

I placed two ads in the same place using ad management mod, and, the ads appear at the same time, I separated the ads with a <p>.

Is that possible create an ad with Ad Management  and rotate several ads like adsense and affiliate banners in the same ad place? I don't see this function in the this mod.

Thanks.
Title: Re: Ad Management mod
Post by: Kenny01 on March 04, 2008, 07:05:08 AM
Quote from: Dr Web on March 04, 2008, 06:59:36 AM
Quote from: Bigguy on February 26, 2008, 01:46:17 PM
@ Dr Web: If you place two ads in the same place they will rotate on page refreshes.

I placed two ads in the same place using ad management mod, and, the ads appear at the same time, I separated the ads with a <p>.

Is that possible create an ad with Ad Management  and rotate several ads like adsense and affiliate banners in the same ad place? I don't see this function in the this mod.

Thanks.
There's no function for that in the Ad mod.
Title: Re: Ad Management mod
Post by: sfreak on March 04, 2008, 07:30:29 AM
@Oga123

i am using diber mc theme

@Bigguy

yep dude... i have edited index.php
Title: Re: Ad Management mod
Post by: Dr Web on March 04, 2008, 08:26:59 AM
Quote from: Oga123 on March 04, 2008, 07:05:08 AM
Quote from: Dr Web on March 04, 2008, 06:59:36 AM
Quote from: Bigguy on February 26, 2008, 01:46:17 PM
@ Dr Web: If you place two ads in the same place they will rotate on page refreshes.

I placed two ads in the same place using ad management mod, and, the ads appear at the same time, I separated the ads with a <p>.

Is that possible create an ad with Ad Management  and rotate several ads like adsense and affiliate banners in the same ad place? I don't see this function in the this mod.

Thanks.
There's no function for that in the Ad mod.

Thanks Oga123

There is any other ad mod I can install to work together with ad management?
Title: Re: Ad Management mod
Post by: Kenny01 on March 04, 2008, 08:47:31 AM
Quote from: Dr Web on March 04, 2008, 08:26:59 AM
Quote from: Oga123 on March 04, 2008, 07:05:08 AM
Quote from: Dr Web on March 04, 2008, 06:59:36 AM
Quote from: Bigguy on February 26, 2008, 01:46:17 PM
@ Dr Web: If you place two ads in the same place they will rotate on page refreshes.

I placed two ads in the same place using ad management mod, and, the ads appear at the same time, I separated the ads with a <p>.

Is that possible create an ad with Ad Management  and rotate several ads like adsense and affiliate banners in the same ad place? I don't see this function in the this mod.

Thanks.
There's no function for that in the Ad mod.

Thanks Oga123

There is any other ad mod I can install to work together with ad management?
I don't use the ad mod because it can't place my ads where i want it, i insert all my ads directly to the Index, Display and PM .php templates, have a look http://www.nigerianbestforum.com/index.php?topic=13.msg10018;topicseen#top
Title: Re: Ad Management mod
Post by: Kenny01 on March 04, 2008, 08:50:52 AM
Quote from: kcscm on March 04, 2008, 07:30:29 AM
@Oga123

i am using diber mc theme

@Bigguy

yep dude... i have edited index.php
@ kcscm most of the Mods is made for the default template, it's better you contact diber mc theme autor, they can give you a proper help because you need to do some theme editing.
Title: Re: Ad Management mod
Post by: LOLwut on March 04, 2008, 08:53:07 AM
Sickest mod ever. Works with everytheme i use and I love it.TY!
Title: Re: Ad Management mod
Post by: Dr Web on March 04, 2008, 08:54:54 AM
QuoteI don't use the ad mod because it can't place my ads where i want it, i insert all my ads directly to the Index, Display and PM .php templates, have a look http://www.nigerianbestforum.com/index.php?topic=13.msg10018;topicseen#top

Thanks, I need a banner rotator also, I will search for that.
Title: Re: Ad Management mod
Post by: Bigguy on March 04, 2008, 12:11:39 PM
If you add two different ads ok...in two seperate text boxes and make them appear in the same spot on the forum they will rotate everytime the page refreshes.


Quote from: Oga123 on March 04, 2008, 07:05:08 AM
Quote from: Dr Web on March 04, 2008, 06:59:36 AM
Quote from: Bigguy on February 26, 2008, 01:46:17 PM
@ Dr Web: If you place two ads in the same place they will rotate on page refreshes.

I placed two ads in the same place using ad management mod, and, the ads appear at the same time, I separated the ads with a <p>.

Is that possible create an ad with Ad Management  and rotate several ads like adsense and affiliate banners in the same ad place? I don't see this function in the this mod.

Thanks.
There's no function for that in the Ad mod.
Title: Re: Ad Management mod
Post by: Kenny01 on March 04, 2008, 12:39:12 PM
The ad mod have only one text box, so how can he place 2 ads in 2 different text box?
Title: Re: Ad Management mod
Post by: Bigguy on March 04, 2008, 12:41:16 PM
Add 1 add and make it show where you want it......then add a second ad and make it show in the same spots as the first one you made.....they will rotate on page refresh.
Title: Re: Ad Management mod
Post by: Dr Web on March 04, 2008, 01:31:32 PM
Quote from: Bigguy on March 04, 2008, 12:41:16 PM
Add 1 add and make it show where you want it......then add a second ad and make it show in the same spots as the first one you made.....they will rotate on page refresh.

Very good, I will try it right now.

Thanks.
Title: Re: Ad Management mod
Post by: Dr Web on March 04, 2008, 02:04:48 PM
It works, many thanks Bigguy.

;D
Title: Re: Ad Management mod
Post by: Bigguy on March 04, 2008, 02:42:06 PM
No problem at all. :)
Title: Re: Ad Management mod
Post by: Pragmatist on March 05, 2008, 12:21:05 AM
Using v1.1.4 of SMF and everyone likes the yabb theme--no one likes the default SMF theme.  What edit changes need to be made (and where) to get this mod to work with yabb SE?
Title: Re: Ad Management mod
Post by: Bigguy on March 05, 2008, 01:03:19 AM
All the edits can be found here (http://www.smfhelper.info/forum/index.php?topic=2286.0) for the latest version of the ad mod. AFTER installation all that needs to be edited is the template files.
Title: Re: Ad Management mod
Post by: sfreak on March 05, 2008, 10:09:09 AM
@Bigguy

i have edited all the changes and uploaded all files as  u said..

but i am getting error..


Table 'studentsspot.smf_ads' doesn't exist
File: /mounted-storage/home34a/sub001/sc27813-WZXZ/studentsspot.com/Sources/LoadAds.php
Line: 33


i am using  diber mc theme.....

please tell me..what i have to do to  fix that problem.......


Title: Re: Ad Management mod
Post by: Bigguy on March 05, 2008, 10:40:53 AM
Did you just do the manual edits without installing through the package manager. ???
Title: Re: Ad Management mod
Post by: marylina on March 05, 2008, 12:23:54 PM
Hey guys,

I was just wondering why my ad management looks like this with the borders around my links. I just added the password protected board module and the ad management doesn't work properly.

I want it to show up in the board and message index but it doesn't when I check them off. Right now I have every page right below the menu checked off and that is why the borders are showing up.

Here is a link to my forum so you can see what is showing up right now.

http://www.marylinalumi.net/

Any help is much appreciated.
Title: Re: Ad Management mod
Post by: Bigguy on March 05, 2008, 12:57:06 PM
You are using a custom theme. Have all the template files been modified. ???
Title: Re: Ad Management mod
Post by: Pragmatist on March 05, 2008, 02:12:54 PM
Thanks bigguy--there is a slight issue though.  The edits you referred to are the same as the ones I got back when running the package through the sleepy parser.  Again, the theme is Classic yabb SE.  In the index.template.php file, the instructions refer to finding </td>.  As this appears nearly a dozen times in the code, just where are we talking about inserting the new lines?

Next, in boardindex.template.php, the following lines of code do not exist:

        echo '
</div> ';


which makes it difficult to place the next code snippet... :(

In display.template.php, the instructions say to replace // Get all the messages... with a code snippet--here is the original code for that instruction:

// Get all the messages...
   while ($message = $context['get_message']())
   {
      echo '
   <tr><td style="padding: 1px 1px 0 1px;">';


Do the last two lines need to remain after pasting the new snippet?

Then, in messageindex.template.php, the following combination of lines does not exist:

echo '
        </table>
    </div>';


Another instance of where to put the snippet referred to... ::)

I appreciate all of your work, and hope that you can help.  the Classic yabb SE theme is used in many installations--as it is bundled with SMF, clean, and makes boards resemble vBulletin!  8)

TNX, Patrick

Title: Re: Ad Management mod
Post by: marylina on March 05, 2008, 02:55:41 PM
Quote from: Bigguy on March 05, 2008, 12:57:06 PM
You are using a custom theme. Have all the template files been modified. ???

Not that I am aware of. Which templates do I need for my custom theme to work. I wanted to add the header and footer module too but that didn't work either. I wanted to add others too but I am not sure if it will work with the custom theme I have. I want to add the neat board one but not sure if I should or not.

Thanks for replying.
Title: Re: Ad Management mod
Post by: Bigguy on March 05, 2008, 03:04:24 PM
@ Pragmatist: Can you upload those three files and when I have time today I will take a look...sometimes it takes a bit of digging to get it. I am not sure I have played with this theme though.

@ marylina: Switch back to the default theme and see if all the mods are working. If they do then you need to go into your custom theme folder and tell me which template files are there.
Title: Re: Ad Management mod
Post by: Pragmatist on March 05, 2008, 03:34:47 PM
Here they are.  These are "clean" PHP's that were bundled with SMF 1.1.4 in the |classic| theme folder.

TNX, Patrick
Title: Re: Ad Management mod
Post by: marylina on March 05, 2008, 06:18:28 PM
Quote@ marylina: Switch back to the default theme and see if all the mods are working. If they do then you need to go into your custom theme folder and tell me which template files are there.

Here are the themes that are in my custom theme.

Ads.template.php
BoardIndex.template.php
Display.template.php
ManageBoards.template.php
MessageIndex.template.php
Recent.template.php
Settings.template.php
Themes.template.php
index.template.php

I switched my forum to the default theme and everything looks fine. Even the Headers and Footers option came up. Let me know what themes I need to move over in order for my forum to look the way I want it to look.

Thanks.
Title: Re: Ad Management mod
Post by: sfreak on March 05, 2008, 07:52:57 PM
Quote from: Bigguy on March 05, 2008, 10:40:53 AM
Did you just do the manual edits without installing through the package manager. ???

yes biggy i edited manually with out installing through  package manager......



Title: Re: Ad Management mod
Post by: MeRcChRiS on March 05, 2008, 10:39:08 PM
Is there anyway to make it so the banner rotates every x seconds or so like the newsflash?
Title: Re: Ad Management mod
Post by: Bigguy on March 06, 2008, 12:41:12 AM
@ marylina: You need to edit these files then:

BoardIndex.template.php
Display.template.php
MessageIndex.template.php
index.template.php

@ Pragmatist: I will get to those now.

@ MeRcChRiS: Not that I am aware of right now. Try searching through this topic maybe you will find someone else has done it.
Title: Re: Ad Management mod
Post by: Bigguy on March 06, 2008, 01:24:03 AM
@ Pragmatist: Ok Try these files; PLEASE BACKUP THE ORIGINALS BEFORE trying. They produce no errors at all so they should be fine. :)
Title: Re: Ad Management mod
Post by: sfreak on March 06, 2008, 06:57:49 AM
Quote from: kcscm on March 05, 2008, 07:52:57 PM
Quote from: Bigguy on March 05, 2008, 10:40:53 AM
Did you just do the manual edits without installing through the package manager. ???

yes biggy i edited manually with out installing through  package manager......





whats the solution dude....

please help me......

Title: Re: Ad Management mod
Post by: Bigguy on March 06, 2008, 08:40:40 AM
Did you get this error while trying to install it or use it ???

Quote from: kcscm on March 03, 2008, 07:58:56 PM
hi folks...

when i want to install admod i am getting this error

Table 'studentsspot.smf_ads' doesn't exist
File: /mounted-storage/home34a/sub001/sc27813-WZXZ/studentsspot.com/Sources/LoadAds.php
Line: 33

please tell me in detail what i have to do to remove this error....
Title: Re: Ad Management mod
Post by: sfreak on March 06, 2008, 09:32:45 AM
yes bigguy i am getting that error.....when i am trying to install that mod....
Title: Re: Ad Management mod
Post by: Bigguy on March 06, 2008, 09:45:18 AM
Your not trying to install it after you did the manual edits are you. ???
Title: Re: Ad Management mod
Post by: sfreak on March 06, 2008, 09:55:01 AM
bigguy i edited all files and when i am uploading files to paths according to packageparaser

i am not getting any problem while uploading except loadads.php file....

when i uploaded loadads.php file.....

i am getting that problem..........

please help me friend how to solve this problem....
Title: Re: Ad Management mod
Post by: Bigguy on March 06, 2008, 10:01:51 AM
I think what the problem here is is that the install.php file was not run so there are no database tables to go with the edits you have done. This is why you should install the mod first and then do the manual edits after.

BEFORE DOING THIS BACKUP THE DATABASE

What you can try doing is unzip the ad mod and take out the install.php file and upload it to the root of your SMF install. Then point your browser at that file and run it. It SHOULD put the database tables in the database for you.

BEFORE DOING THIS BACKUP THE DATABASE.
Title: Re: Ad Management mod
Post by: sfreak on March 06, 2008, 10:43:34 AM
thanks for u r help bigguy

please tell me how to BACKUP THE DATABASE.  sorry for asking this ...i am a noob dude.....
Title: Re: Ad Management mod
Post by: Bigguy on March 06, 2008, 10:47:29 AM
Go into the admin panel then to Forum Maintenance after that you'll see:

Forum Maintenance - Backup Database

Check mark all of the checkmarks and then download. This will store a database backup on your computer incase you need it. It is usually a good idea to take one from phpmyadmin in cpanel as well but this should do for now.

Another idea would be (if you don't have any mods installed) to replace all the files that you edited manually with fresh ones; then install the ad mod and re-upload all your edits files again to overwrite the clean ones on the server. This should give you all the edits and the database changes.
Title: Re: Ad Management mod
Post by: lonrot on March 06, 2008, 10:59:36 AM
Quote from: Kender on March 04, 2008, 03:15:40 AM
Quote from: lonrot on March 03, 2008, 07:34:28 PM
Quote from: Oga123 on March 03, 2008, 01:32:26 AM
Quote from: lonrot on March 02, 2008, 09:19:26 PM
Quote from: bassbass on February 28, 2008, 04:39:18 PM
Quote from: lonrot on February 28, 2008, 03:02:17 PM
Is it possible to disable ads for a "based off posts" membergroup?

Absolutely, its in the permissions.  this is how i have it set up

Not working for me. I've created a membergroup which requires 60 posts.
In the permissions I uncheck "enable Ads" but the ads keep appearing!
Try to uninstall other mods you install before the ad mod, then install the ad mod first.

One thing, for "non post" membergroups such as administrators, moderators, the ad permissions do work.
But not for "post based" members. This is getting very odd.

is the person seing the ad in a membergroup thats not post related that is supposed to see them?

ie "post count 200" - no ads
"group xenophobes" - ads

most likely, if the group they are in will see ads, they will see ads as part of that group
Yes, all the post-based membergroups are part of the "regular members" group which has ads enabled, by default the post-bassed groups are part of it. Any ideas?
Title: Re: Ad Management mod
Post by: marylina on March 06, 2008, 03:26:36 PM
Quote from: Bigguy on March 06, 2008, 12:41:12 AM
@ marylina: You need to edit these files then:

BoardIndex.template.php
Display.template.php
MessageIndex.template.php
index.template.php


What am I editing and with what? I'm so confused.
Title: Re: Ad Management mod
Post by: Bigguy on March 06, 2008, 03:42:18 PM
In order for the ad mod to run on your custom theme you will have to download those 4 files I mentioned and edit them with the code manually. Save the originals somewhere and then upload the edited ones you did. It should all work fine then.
Title: Re: Ad Management mod
Post by: marylina on March 06, 2008, 03:49:52 PM
Quote from: Bigguy on March 06, 2008, 03:42:18 PM
In order for the ad mod to run on your custom theme you will have to download those 4 files I mentioned and edit them with the code manually. Save the originals somewhere and then upload the edited ones you did. It should all work fine then.

Ok. I will try that.
Title: Re: Ad Management mod
Post by: sfreak on March 06, 2008, 06:39:59 PM
@bigguy

friend when i want to run install.php ......i am getting error.


Fatal error: Call to undefined function db_query() in /mounted-storage/home34a/sub001/sc27813-WZXZ/studentsspot.com/install.php on line 6


how  to fix this problem friend...
Title: Re: Ad Management mod
Post by: AHMER on March 06, 2008, 07:23:01 PM
mine is only working in default theme its not working in the theme i am using pirates how can i make it work in pirates theme
Title: Re: Ad Management mod
Post by: MeRcChRiS on March 06, 2008, 07:33:18 PM
You need to manually edit the theme.
Title: Re: Ad Management mod
Post by: AHMER on March 06, 2008, 08:27:59 PM
like how what codes to put where
Title: Re: Ad Management mod
Post by: Bigguy on March 07, 2008, 01:21:44 AM
Where did you run it from. ???

Title: Re: Ad Management mod
Post by: sfreak on March 07, 2008, 04:46:32 AM
Quote from: Bigguy on March 07, 2008, 01:21:44 AM
Where did you run it from. ???



i uploade install.php to my root of smf ..

then by using www.studentsspot.com/install.php

path i ran that file....

www.studentsspot.com is my root of smf

Title: Re: Ad Management mod
Post by: Bigguy on March 07, 2008, 12:15:19 PM
You might have to add the tables to the database through phpmyadmin. Just checking things now.
Title: Re: Ad Management mod
Post by: sfreak on March 07, 2008, 06:45:37 PM
thanks for u helping nature.. friend...

if the problem is with outdated language files.. then where can i find up to date language files...

and what is the solution to fix this problem.......
Title: Re: Ad Management mod
Post by: perplexed on March 07, 2008, 07:37:20 PM
Quote from: kcscm on March 07, 2008, 06:45:37 PM
thanks for u helping nature.. friend...

if the problem is with outdated language files.. then where can i find up to date language files...

and what is the solution to fix this problem.......

download language packs here
http://www.simplemachines.org/download/?languages (http://www.simplemachines.org/download/?languages)
Title: Re: Ad Management mod
Post by: sfreak on March 07, 2008, 07:46:17 PM
where i have to upload these file?

i mean  in custom theme directory or default theme directory?
Title: Re: Ad Management mod
Post by: sfreak on March 07, 2008, 10:15:33 PM
@bigguy 

help me friend...

what is the problem..

whats the solution.....

plzzzz
Title: Re: Ad Management mod
Post by: jerm on March 07, 2008, 11:47:22 PM
Run this in phpmyadmin and make sure to put it in the smf database:


CREATE TABLE IF NOT EXISTS {$db_prefix}ads (
ADS_ID mediumint(8) unsigned NOT NULL auto_increment,
NAME tinytext NOT NULL,
CONTENT text NOT NULL,
BOARDS tinytext,
POSTS tinytext,
HITS mediumint(8) NOT NULL default '0',
TYPE smallint(4) NOT NULL default '0',
show_index smallint(4) NOT NULL default '0',
show_board smallint(4) NOT NULL default '0',
show_threadindex smallint(4) NOT NULL default '0',
show_lastpost smallint(4) NOT NULL default '0',
show_thread smallint(4) NOT NULL default '0',
show_bottom smallint(4) NOT NULL default '0',
show_welcome smallint(4) NOT NULL default '0',
show_topofpage smallint(4) NOT NULL default '0',
show_towerright smallint(4) NOT NULL default '0',
show_towerleft smallint(4) NOT NULL default '0',
show_betweencategories smallint(4) NOT NULL default '0',
show_underchildren smallint(4) NOT NULL default '0',
PRIMARY KEY (ADS_ID)
);



CREATE TABLE IF NOT EXISTS {$db_prefix}ads_settings (
  variable tinytext NOT NULL,
  value text NOT NULL,
  PRIMARY KEY (variable(30))
);


Change the {$db_prefix} part to whatever your perfix is. By default its smf_
Title: Re: Ad Management mod
Post by: sfreak on March 07, 2008, 11:58:44 PM
thanks for u reply dude.....

please tell where i have  to find phpmyadmin


sorry for asking such  a newbie question.....

Title: Re: Ad Management mod
Post by: babjusi on March 08, 2008, 04:26:28 AM
Quote from: kcscm on March 07, 2008, 11:58:44 PM
thanks for u reply dude.....

please tell where i have  to find phpmyadmin


sorry for asking such  a newbie question.....



At the CP of your host
Title: Re: Ad Management mod
Post by: sfreak on March 08, 2008, 06:38:50 PM
my host doesnt given a contorl panel to me......

then whats the solution friends please tell me.....
Title: Re: Ad Management mod
Post by: Kender on March 09, 2008, 12:52:30 AM
http://phpmyadmin.net

its free, download from them, upload to your server
Title: Re: Ad Management mod
Post by: Bigguy on March 09, 2008, 01:26:06 AM
Who is your host. ???
Title: Re: Ad Management mod
Post by: kelvinlnx on March 09, 2008, 06:36:05 AM
Hi All,
Can someone please help me?

I've installed the Ad Management mod V 2.3 and configured a "skyscraper" ad. My problem is that the add will show up when I click in all the main menu (help, search, profile...). I just want the add to appear in the main index window and not the others. Please help. Thanks.
Title: Re: Ad Management mod
Post by: robbieruckus on March 09, 2008, 10:58:02 AM
alright i went through the installation smoothly, set up the ads.  But for some reason they arent displaying.  Not on my default them nor the custom one.  I had inserted an ad manually prior to trying out the mod.  Im not getting any errors, the ads just arent displaying.   any ideas?
Title: Re: Ad Management mod
Post by: Kender on March 09, 2008, 04:17:55 PM
are ads enabled for your user level (admin) i think they may be off for admin by default..
Title: Re: Ad Management mod
Post by: robbieruckus on March 09, 2008, 06:53:14 PM
i tried browsing as a guest... no ads.  cant find the setting to enable the ads though.
Title: Re: Ad Management mod
Post by: sfreak on March 09, 2008, 06:54:07 PM
Quote from: Bigguy on March 09, 2008, 01:26:06 AM
Who is your host. ???

my host is servage.net....

please help me friends what i have to do......

Title: Re: Ad Management mod
Post by: Kender on March 10, 2008, 01:02:10 AM
Quote from: robbieruckus on March 09, 2008, 06:53:14 PM
i tried browsing as a guest... no ads.  cant find the setting to enable the ads though.
go to the admin menu, then ad management, under setting is where you can disable for admin, or enable for admin

then  the permissions menu under members section, click on modify for your group and check the "enable Ads" button
Title: Re: Ad Management mod
Post by: Assistance on March 10, 2008, 03:29:21 AM
enabled them per group permissions
Title: Re: Ad Management mod
Post by: Kenny01 on March 10, 2008, 03:37:00 AM
Go to your admin panel and go down left and click on permission, then you activate the ad mod per member group. The way you want it.
Title: Re: Ad Management mod
Post by: sfreak on March 10, 2008, 08:29:52 AM
hi folks...

my host doesnt given a cpanel to me....

to install admod  i have to run query...

is there any chance to get phpmyadmin to run query....

and please tell me in detail how to install phpmyadmin...

Title: Re: Ad Management mod
Post by: Kenny01 on March 10, 2008, 08:36:24 AM
You don't need to install phpmyadmin it should come with your MYSQL hosting account.
Title: Re: Ad Management mod
Post by: sfreak on March 10, 2008, 09:05:09 AM
dude...

my host doesnt given a cpanel...

then where i have find..that....
Title: Re: Ad Management mod
Post by: Kenny01 on March 10, 2008, 10:19:07 AM
You need to change your hosting company, if not you're in for a hard time.
Title: Re: Ad Management mod
Post by: Kender on March 10, 2008, 02:32:17 PM
my host offers a cpanel but  i dont use it.. its not necessay and if you know your way around manual commands you dont need it...

i use phpmyadmin (uploaded, not the cpanel version because i like to keep the current versions) -- and no other cpanel options except to create databases (as the only master account access is via their cpanel)

he doenst need to change hosts if the service is what he needs at a price he likes, but he just may need to perform an extra step or too at times (like installing phpmyadmin instead of having an out of date version to use provided by the company)

if you need assistance setting up phpmyadmin i will gladly assist, send me a PM
Title: Re: Ad Management mod
Post by: lonrot on March 10, 2008, 08:27:12 PM
Bigguy, can you guess if my issue has solution?
http://www.simplemachines.org/community/index.php?topic=68632.msg1455257#msg1455257
Title: Re: Ad Management mod
Post by: sfreak on March 10, 2008, 09:30:17 PM
@Kender

check u r pm...
Title: Re: Ad Management mod
Post by: Bigguy on March 10, 2008, 09:56:42 PM
@ lonrot: What are all your file permissions set at. ??? Are they 777 or 755. Can you change any options in the admin panel. ???
Title: Re: Ad Management mod
Post by: lonrot on March 10, 2008, 10:01:08 PM
Almost every file is 777.
And ofcourse I can change all the options in the admin panel.
The only problem I have is the ads not dissappearing for "post based membergroups".
Title: Re: Ad Management mod
Post by: Bigguy on March 10, 2008, 10:48:55 PM
And there are no errors in the error logs. ???
Title: Re: Ad Management mod
Post by: lonrot on March 11, 2008, 12:01:46 AM
Quote from: Bigguy on March 10, 2008, 10:48:55 PM
And there are no errors in the error logs. ???

Not for Ad Management, or related.
Title: Re: Ad Management mod
Post by: Bigguy on March 11, 2008, 12:03:04 AM
This is the first time I have heard of this problem. Did you install it through the package manager or did oyu have to do some of the edits manually. ???
Title: Re: Ad Management mod
Post by: lonrot on March 11, 2008, 12:06:41 AM
We have spoken of this earlier. The install was manual and I checked all the edits.
I can give you access anytime to check my site.
Title: Re: Ad Management mod
Post by: Bigguy on March 11, 2008, 03:28:14 AM
Ok, PM me admin access and i will check this tomorrow for you.
Title: Re: Ad Management mod
Post by: Kenny01 on March 11, 2008, 03:35:03 AM
Quote from: Kender on March 10, 2008, 02:32:17 PM
my host offers a cpanel but  i dont use it.. its not necessay and if you know your way around manual commands you dont need it...

i use phpmyadmin (uploaded, not the cpanel version because i like to keep the current versions) -- and no other cpanel options except to create databases (as the only master account access is via their cpanel)

he doenst need to change hosts if the service is what he needs at a price he likes, but he just may need to perform an extra step or too at times (like installing phpmyadmin instead of having an out of date version to use provided by the company)

if you need assistance setting up phpmyadmin i will gladly assist, send me a PM
Why break your head editing for what you can get at the same price. Mind you i never use my host cpanel or phpmyadmin, i did everything from my frontpage program. It's more cleaner and faster.
Title: Re: Ad Management mod
Post by: Kender on March 11, 2008, 06:07:21 AM
When I first started with computers DOS was the primary Operating System...

Working without a CPanel is easy compared to some of the things I remember doing, and I like the control that manually doing things gives me

the good 'ole days.. when Windows was a luxury
Title: Re: Ad Management mod
Post by: weightman on March 11, 2008, 03:53:39 PM
Any chance someone could tell me why the image in my ad shows in FF but not IE?

Thanks very much in advance:

<center><a href="http://weightliftingexchange.com/catalog/product_info.php?products_id=28"  target="_blank" <img src="http://weightliftingexchange.com/catalog/images/StrapsBlueBlackThumb.jpg"></a><p><Font size="4" > <a href="http://weightliftingexchange.com/catalog/product_info.php?products_id=28" >Get straps with a lifetime guarantee!</a></font></center>

Link: http://weightliftingexchange.com/index.php?option=com_smf&Itemid=39
Title: Re: Ad Management mod
Post by: perplexed on March 11, 2008, 09:00:15 PM
Quote from: weightman on March 11, 2008, 03:53:39 PM
Any chance someone could tell me why the image in my ad shows in FF but not IE?

Thanks very much in advance:

<center><a href="http://weightliftingexchange.com/catalog/product_info.php?products_id=28"  target="_blank" <img src="http://weightliftingexchange.com/catalog/images/StrapsBlueBlackThumb.jpg"></a><p><Font size="4" > <a href="http://weightliftingexchange.com/catalog/product_info.php?products_id=28" >Get straps with a lifetime guarantee!</a></font></center>

Link: http://weightliftingexchange.com/index.php?option=com_smf&Itemid=39


change your image text to this, I checked it in IE and FF and it works



<a href="http://weightliftingexchange.com/catalog/product_info.php?products_id=28"><img
src="http://weightliftingexchange.com/catalog/images/StrapsBlueBlackThumb.jpg"
alt="add your alt text" width="80" height="87" border="0"></a>


Title: Re: Ad Management mod
Post by: weightman on March 11, 2008, 10:01:10 PM
Perplexed, thanks very much for the help. I see my mistake now.  :D
Title: Re: Ad Management mod
Post by: perplexed on March 11, 2008, 10:02:53 PM
no probs :)
Title: Re: Ad Management mod
Post by: symon on March 12, 2008, 11:50:11 AM
Finally got around to installing this. I had to do it manually (for some reason my forum always says it's done the install but never does - apart from DB entries).

Anyway...it works great and I can't wait for mods for this.

I installed on a fixed width babylon so I just need to suss out how to get the skyscrapers on the outside of my fixed width but it's a great mod. Very well done to the creator.  :)

Does anyone know if there is a plan for more than one person to have an add in a position and it be on a refresh rotating system? Maybe one of the many php rotators out there?
Title: Re: Ad Management mod
Post by: perplexed on March 12, 2008, 12:17:30 PM
Quote from: symon on March 12, 2008, 11:50:11 AM
Finally got around to installing this. I had to do it manually (for some reason my forum always says it's done the install but never does - apart from DB entries).

Anyway...it works great and I can't wait for mods for this.

I installed on a fixed width babylon so I just need to suss out how to get the skyscrapers on the outside of my fixed width but it's a great mod. Very well done to the creator.  :)

Does anyone know if there is a plan for more than one person to have an add in a position and it be on a refresh rotating system? Maybe one of the many php rotators out there?

you can do the rotator thing already see this page in this topic http://www.simplemachines.org/community/index.php?topic=68632.msg1452352#msg1452352 

:)
Title: Re: Ad Management mod
Post by: symon on March 12, 2008, 12:29:23 PM
So it does it! WOW!

Seriously fantastic. Awesome awesome awesome.

That means these towers that have me puzzled aren't the be-all-and-end-all now. Although I would like to solve it with out the parse errors.

I will have to manage clients adverts my self but I can email them stats regularly. I know other forums have ad software that a member can manage their own campaigns but this if free and fantastic. I love it when things just work. :)
Title: Re: Ad Management mod
Post by: KEA on March 12, 2008, 05:55:14 PM
I may have missed the answer to my question so forgive me in advance. 

I have SMF1.1.4 with the add mod isntalled.  I have entered the appropriate code from Google Adsense and I am able to see my ad on every page as I want but it shows up on the far left under the menu. 
How can I get the adds to center on the page instead of showing up on the far left.

Also when you click on the add it takes you out of the forum.  How do you make the add a link so it doesnt take the members out of the forum when clicked?

Also, how can I show more than three adds?

I am using the core theme. 

www.sawmillandtimberforum.com
Title: Re: Ad Management mod
Post by: Kenny01 on March 12, 2008, 05:59:40 PM
It's normal to take you out of the forum when they click on your ads because the ads contents is not part of your forum.
Title: Re: Ad Management mod
Post by: zapiy on March 12, 2008, 07:27:27 PM
getting this error... any ideas?


Installing this package will perform the following actions:  Type Action Description
1. Execute Code install.php 
2. Execute Modification install.xml Modification parse error
3. Execute Modification - Modification parse error
4. Extract File ./Sources/Ads.php 
5. Extract File ./Sources/LoadAds.php 
6. Extract File ./Themes/default/Ads.template.php 
7. Extract File ./Themes/default/languages/Ads.english.php 

Title: Re: Ad Management mod
Post by: KEA on March 12, 2008, 08:19:25 PM
Is there a way to make the add open in a new window and can the adds be centered instead of the far left under the menu.  Also how do you post more than three adds.
Title: Re: Ad Management mod
Post by: sfreak on March 12, 2008, 08:27:35 PM
FIRST

@ALL WHO HELPED ME...

THANKS FRIENDs

i successfully installed this mod.....

but when i want to put ads

i am getting error..

Unknown column 'CATEGORY' in 'field list'

XXXXX/Sources/Ads.php
Line: 289

please tell me what is the  solution......
Title: Re: Ad Management mod
Post by: Bigguy on March 12, 2008, 10:42:09 PM
@ zapiy: Make sure your using the right version.

@ KEA: If its ad code from a specific vendor than you should consult them about that.

@ kcscm: Did you install it manually. ???
Title: Re: Ad Management mod
Post by: Bigguy on March 12, 2008, 10:45:06 PM
@ KEA: Also to center the ads try this around your ad code:

<center>ad_code</center>

If that doesn't work try a div:

<div align=center>ad_code</div>

I dont get your last question...more than three ads. ???
Title: Re: Ad Management mod
Post by: sfreak on March 12, 2008, 11:31:56 PM
@bigguy

yes dude......

i instlled manually....
Title: Re: Ad Management mod
Post by: KEA on March 12, 2008, 11:44:53 PM
Bigguy,
The code you suggested did in fact center our adds.  Thanks.

In regards to more than three adds, I have placed the google add code in the content box in the add mod three times and i have three google adds pop up but cant get any more than that.  If I enter the code four times nothing changes.  Only three adds pop up. 

The other issue is figuring out how to make the add open in a seperate window instead of taking traffic away from our forum. 

www.sawmillandtimberforum.com (http://www.sawmillandtimberforum.com)
Title: Re: Ad Management mod
Post by: Bigguy on March 13, 2008, 01:08:43 AM
Google only allows 3 of their ads to show at a time.
Title: Re: Ad Management mod
Post by: Bigguy on March 13, 2008, 01:09:24 AM
Have you done the database edits yet as suggested above by Jerm. ???

Quote from: kcscm on March 12, 2008, 11:31:56 PM
@bigguy

yes dude......

i instlled manually....
Title: Re: Ad Management mod
Post by: MYBESTHOMESnet on March 13, 2008, 01:10:48 AM
Hi all,

I already have the code (from my good friend JohnyB) of inserting the ads upper-right portion inside the post:

// Show the post itself, finally!
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<table width="100%" border="0">
<tr>
<td width="80%"  align="left" valign="top" style="overflow: auto;>
<div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] ? '
<img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' . $message['id'] . '" style="cursor: pointer; display: none;" onclick="modify_msg(\'' . $message['id'] . '\', \'' . $context['session_id'] . '\')" />' : '' , '
</td>';
if ($message['id'] == $context['first_message'])
{
echo '
<td width="20%"  align="right" valign="top">
<script type="text/javascript"><!--
google_ad_client = "pub-7627496990366315";
/* 250x250, created 2/24/08 */
google_ad_slot = "4979714420";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>';
}
echo '
</tr>
</table>
</td>
</tr>';


but the problem is i can't post the area below the ads. Instead, it will stretch  downward the message area. As shown below:

(http://img510.imageshack.us/img510/8926/adswg2.jpg)

Please help me on this problem.

thanks
Title: Re: Ad Management mod
Post by: mobiplanet on March 13, 2008, 10:31:17 AM
i wanna show admob php adsense code, but with this ad management mod , i am unable to do it. Can any one help?
Title: Re: Ad Management mod
Post by: sfreak on March 13, 2008, 08:21:52 PM
Quote from: Bigguy on March 13, 2008, 01:09:24 AM
Have you done the database edits yet as suggested above by Jerm. ???



no dude......

only i ran that in phpmyadmin ....

please tell me how to put those codes in smf database....

Title: Re: Ad Management mod
Post by: robbieruckus on March 13, 2008, 09:40:07 PM
Quote from: Assistance on March 10, 2008, 03:29:21 AM
enabled them per group permissions

ive tried that.. i have them enable in member groups and in the ad management..

still nothing?

www.nintendope.com is the site  if anyone can help it would be appreciated.

take note the ad on the top i put in myself.
Title: Re: Ad Management mod
Post by: Bigguy on March 13, 2008, 09:46:27 PM
Did you do all the manual edits to the template files of your custom theme. ???
Title: Re: Ad Management mod
Post by: robbieruckus on March 13, 2008, 09:53:07 PM
Quote from: Bigguy on March 13, 2008, 09:46:27 PM
Did you do all the manual edits to the template files of your custom theme. ???

they dont show up when i put i change it to the default theme either.  point me towards what changes i have to make..
Title: Re: Ad Management mod
Post by: robbieruckus on March 13, 2008, 09:55:29 PM
is it in the install.xml?
Title: Re: Ad Management mod
Post by: Bigguy on March 13, 2008, 09:59:41 PM
All the edits are written out here. (http://www.smfhelper.info/forum/index.php?topic=2286.0) Or you can run it through a package parser. I don't have a link handy to one right now. All that has to be done is the template files. All other edits are already done when you install it. if you can't find a certain template file in your custom theme you don't need to worry about doing it either as it was done during install as well. Only do the template files that are listed in your custom theme.
Title: Re: Ad Management mod
Post by: sfreak on March 13, 2008, 10:10:18 PM
@bigguy...

whats the problem with me mate....

why r u not replying to my question,,,,,,

please tell me friend.

Title: Re: Ad Management mod
Post by: Bigguy on March 13, 2008, 10:11:24 PM
I sent you a PM.
Title: Re: Ad Management mod
Post by: sfreak on March 13, 2008, 10:16:55 PM
i am extremely sorry friend......


i didnt see my message..

ok if  it puts code in my datbase... then i think answer to u r last question is yes..




then why i am getting that error...

and whats the solution...
Title: Re: Ad Management mod
Post by: Bigguy on March 13, 2008, 10:18:34 PM
You will have to go back through all your edits and see if you missed anything. Check the index.php file.
Title: Re: Ad Management mod
Post by: mobiplanet on March 13, 2008, 10:25:17 PM
Can anyone solve my problem ? I desperately wanna add admob php adsense code on the top of my forum..Pls help..Thanks
Title: Re: Ad Management mod
Post by: sfreak on March 13, 2008, 10:37:37 PM
Quote from: Bigguy on March 13, 2008, 10:18:34 PM
You will have to go back through all your edits and see if you missed anything. Check the index.php file.

i checked all edits friend.

they are well......

then whats the solution..
Title: Re: Ad Management mod
Post by: symon on March 13, 2008, 10:38:10 PM
Posted this on their forum but it seems dead :(

Hi all,

Great mod. I've manually installed this on Babylon and it works great. However, as I have a fixed width forum I'm trying to get the towers outside my containing div but inside my main containing div.

I have an extra container around my forum so I can get the side towers in it but keep the fixed width I have. I still need to tweak the css but in index.template I'm doing this:

I've put this code under the beginning of that div:

//Side ads mod
if (function_exists"show_towerleftAds") && function_exists("show_towerrightAds"))
{
//Tower left Ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';
unset($ads);

//Tower Right Ads
$ads = show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}


And put this at the end:

//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds"))
{
$ads = show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td></tr></table>';
unset($ads);

//Close table for towerleft ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);
}


And the code that's left over I've left in it's original place:

if (function_exists("show_bottomAds"))

//Show ads on the bottom of the page
$ads = show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);


But I get a parse error which is syntax related. What have I missed in my ignorance? :)

Many thanks for your time :)
Title: Re: Ad Management mod
Post by: Bigguy on March 13, 2008, 10:53:34 PM
@ symon: Can you post the file. I will try to take a look at it.

@ kcscm: What are you file permissions set at.
Title: Re: Ad Management mod
Post by: sfreak on March 13, 2008, 11:54:15 PM
Quote from: Bigguy on March 13, 2008, 10:53:34 PM

@ kcscm: What are you file permissions set at.

777
Title: Re: Ad Management mod
Post by: Bigguy on March 13, 2008, 11:58:49 PM
And there's no errors AT ALL in the forums error logs.
Title: Re: Ad Management mod
Post by: sfreak on March 14, 2008, 12:05:20 AM
in forum eror logs i have two errors..

8: Undefined index: phpInfo_title
File: /mounted-storage/home34a/sub001/sc27813-WZXZ/studentsspot.com/Sources/Subs.php
Line: 2812

Undefined index: CATEGORY
File: /mounted-storage/home34a/sub001/sc27813-WZXZ/studentsspot.com/Sources/LoadAds.php
Line: 42
Title: Re: Ad Management mod
Post by: Bigguy on March 14, 2008, 12:37:28 AM
Is LoadAds.php in your Sources Directory. ???
Title: Re: Ad Management mod
Post by: sfreak on March 14, 2008, 12:41:53 AM
Quote from: Bigguy on March 14, 2008, 12:37:28 AM
Is LoadAds.php in your Sources Directory. ???

yes dude.

it is in source directory..
Title: Re: Ad Management mod
Post by: Bigguy on March 14, 2008, 01:15:05 AM
Re-upload it and make sure permissions are right. Other than what we have already gone through I'm not sure what more to tell you.
Title: Re: Ad Management mod
Post by: sfreak on March 14, 2008, 03:30:14 AM
Quote from: Bigguy on March 14, 2008, 01:15:05 AM
Re-upload it and make sure permissions are right. Other than what we have already gone through I'm not sure what more to tell you.

tried friend but no luck.

anyway thanks for u r help.
Title: Re: Ad Management mod
Post by: sfreak on March 14, 2008, 03:31:33 AM
hi folks can any one solve my problem..

when i am adding add

i am getting error

Unknown column 'CATEGORY' in 'field list'
File: /mounted-storage/home34a/sub001/sc27813-WZXZ/studentsspot.com/Sources/Ads.php
Line: 289

whats the solution friends help me..
Title: Re: Ad Management mod
Post by: Kenny01 on March 14, 2008, 04:27:15 AM
Quote from: mobiplanet on March 13, 2008, 10:25:17 PM
Can anyone solve my problem ? I desperately wanna add admob php adsense code on the top of my forum..Pls help..Thanks
You can do that from you forum admin panel, click ad management, then activate the option for ad to display on top.
Title: Re: Ad Management mod
Post by: mobiplanet on March 14, 2008, 05:01:46 AM
I have tried that..But with ad management mod only (html/java script) ads like google web,adbrite working...But php adsense code not working with that mod..It showing errors...anyone have any idea ? Tnx in advance
Title: Re: Ad Management mod
Post by: robbieruckus on March 14, 2008, 07:22:43 AM
Quote from: Bigguy on March 13, 2008, 09:59:41 PM
All the edits are written out here. (http://www.smfhelper.info/forum/index.php?topic=2286.0) Or you can run it through a package parser. I don't have a link handy to one right now. All that has to be done is the template files. All other edits are already done when you install it. if you can't find a certain template file in your custom theme you don't need to worry about doing it either as it was done during install as well. Only do the template files that are listed in your custom theme.

alright thank you..
Title: Re: Ad Management mod
Post by: robbieruckus on March 14, 2008, 07:44:40 AM
ok i cant seem to find                'manage_themes' => '<a href="' . $scripturl . '?action=theme;sa=admin;sesc=' . $sc . '">' . $txt['theme_admin'] . '[/url]',

in my Subs.php
Title: Re: Ad Management mod
Post by: robbieruckus on March 14, 2008, 08:37:45 AM
Quote from: robbieruckus on March 14, 2008, 07:44:40 AM
ok i cant seem to find                'manage_themes' => '<a href="' . $scripturl . '?action=theme;sa=admin;sesc=' . $sc . '">' . $txt['theme_admin'] . '[/url]',

in my Subs.php

ok forget that i found it

i have added all the codes where they were said to be added.  but im getting errors:

Template Parse Error!
There was a problem loading the /Themes/nintendope/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in .../Themes/nintendope/index.template.php on line 221



212: <tr>
213: <td class="menum" width="20%"></td><td class="menum" align="center" height="10">
214:
215: ', template_menu(), '
216:    //Below the menu ads
217:     if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
218:     {
219:         $ads = show_indexAds();   
220:         if(!empty($ads))

221:             if($ads['type']==0)

222:                 echo $ads['content'];
223:             else
224:                 eval($ads['content']);
225:         unset($ads);


ive tried editing a few others that showed up before it and it seemed to work..  cant seem to make this one work.
Title: Re: Ad Management mod
Post by: symon on March 14, 2008, 08:58:03 AM
Quote from: Bigguy on March 13, 2008, 10:53:34 PM
@ symon: Can you post the file. I will try to take a look at it.

Thanks fella,

Once I get it to just display I can then edit the css and put two divs on each side for the towers but for now I just need to get rind of the errors.

Any help is always, as ever, appreciated.

:)
Title: Re: Ad Management mod
Post by: Bigguy on March 14, 2008, 12:25:02 PM
See if this works for ya:
Title: Re: Ad Management mod
Post by: symon on March 14, 2008, 12:41:23 PM
You're a star! :D

It was the ( wasn't it? lol!
Title: Re: Ad Management mod
Post by: Bigguy on March 14, 2008, 12:46:35 PM
Yup, lol. :)
Title: Re: Ad Management mod
Post by: symon on March 14, 2008, 01:04:36 PM
Can I ask one more favor?  :o

I've split the tower code up and put one in a left div (top of code before #contain)and one in a right div (bottom of code after #contain).

But again...it's messing up.  :-[

I can see it's an issue with the tables closings but I'm not too sure which is which and if just having one instance of the tables closing will effect the choice of not having both towers switched on.

I'd appreciate it but I realise it's Friday so I wouldn't want to take up your time.
Title: Re: Ad Management mod
Post by: Bigguy on March 14, 2008, 01:07:18 PM
Yeah it's friday but i haven't started partyin yet so you caught me at a good time, lol. Here try this.
Title: Re: Ad Management mod
Post by: symon on March 14, 2008, 01:16:10 PM
Error gone!

But you got me this time. I can see there was one extra character but no idea what?  ;)

Anyway..no error but it messed up the layout...but I'll investigate that one as it's my fault...I'm just glad it's not messing up in the code...thanks to you :D

You're a star and I hope you enjoy your evening.
Title: Re: Ad Management mod
Post by: symon on March 14, 2008, 01:17:50 PM
ps. You were mega quick on that!

Thanks  :D
Title: Re: Ad Management mod
Post by: Bigguy on March 14, 2008, 01:25:35 PM
Thanks. There was an extra } that I took out. Now maybe it needed to be }'; or something but thats what was messing it up.....or was it a { One of the two anyway.
Title: Re: Ad Management mod
Post by: zapiy on March 14, 2008, 05:57:21 PM
anyway of making this show_bottomAds be centered at the bottom of my page.... cheers

//Close table for towerright ads
   if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
   {
      $ads = show_towerrightAds();   
      if(!empty($ads))
         echo '</td><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td></tr></table>';

      unset($ads);
      //Close table for towerleft ads
      $ads = show_towerleftAds();   
      if(!empty($ads))
         echo '</td></tr></table>';
      unset($ads);

      //Show ads on the bottom of the page
      $ads = show_bottomAds();
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);
   }

Title: Re: Ad Management mod
Post by: Bigguy on March 14, 2008, 07:04:42 PM
You can center the ads through the admin panel; no need to do anything with the code.

<center>ad_code</center>

OR

<div align=center>ad_code</div>
Title: Re: Ad Management mod
Post by: robbieruckus on March 14, 2008, 10:41:20 PM
im still stuck?

can anyone help me out?
Title: Re: Ad Management mod
Post by: robbieruckus on March 14, 2008, 10:56:02 PM
here's all my files if anyone can help me out, i would love you forever!    :-*
Title: Re: Ad Management mod
Post by: Bigguy on March 14, 2008, 11:44:23 PM
if the mod is installed without errors than all that is needed is any of the template files that the mod edits that are present in your custom theme folder.
Title: Re: Ad Management mod
Post by: sfreak on March 14, 2008, 11:46:37 PM
@bigguy

thanks a lot bro for u r valuble help..

i never forgot u r help friend...

thanks.

i have one more question how to put ads centre.. give me detail information please
Title: Re: Ad Management mod
Post by: Bigguy on March 15, 2008, 12:00:00 AM
Look here:

http://www.simplemachines.org/community/index.php?topic=68632.msg1466477#msg1466477
Title: Re: Ad Management mod
Post by: sfreak on March 15, 2008, 12:28:16 AM
worked dude....
Title: Re: Ad Management mod
Post by: robbieruckus on March 15, 2008, 01:23:12 AM
Quote from: Bigguy on March 14, 2008, 11:44:23 PM
if the mod is installed without errors than all that is needed is any of the template files that the mod edits that are present in your custom theme folder.

im getting errors...
i dont fully understand what you are saying.
Title: Re: Ad Management mod
Post by: perplexed on March 15, 2008, 07:31:37 AM
Did the mod install without errors or 'test failed' on any of the files when you installed it?  If so, that's what is meant by 'installed without errors'

The Mod only installs on the SMF Core default theme.  If you use any other theme then you will have to edit the files in the other theme to make the mod show up there.  If you are getting 'parse' errors that is because you are not editing the files correctly. 

Use the link to the package parser in my signature, unzip the mod package into it and follow the instructions therein, to edit your files.  It is very straight forward, just take your time and follow it exactly.  You will only need to edit the files that it tells you to edit and you may not have all the files in your custom theme.

Try that and see how you go
Title: Re: Ad Management mod
Post by: robbieruckus on March 15, 2008, 08:39:42 AM
Quote from: perplexed on March 15, 2008, 07:31:37 AM
Did the mod install without errors or 'test failed' on any of the files when you installed it?  If so, that's what is meant by 'installed without errors'

The Mod only installs on the SMF Core default theme.  If you use any other theme then you will have to edit the files in the other theme to make the mod show up there.  If you are getting 'parse' errors that is because you are not editing the files correctly. 

Use the link to the package parser in my signature, unzip the mod package into it and follow the instructions therein, to edit your files.  It is very straight forward, just take your time and follow it exactly.  You will only need to edit the files that it tells you to edit and you may not have all the files in your custom theme.

Try that and see how you go

i had no installation errors just template parse errors when i tried adding the code to the template files..  i'm going to remove all the code and try the package parser..  thanks
Title: Re: Ad Management mod
Post by: robbieruckus on March 15, 2008, 09:09:06 AM
still getting an error..
Title: Re: Ad Management mod
Post by: Bigguy on March 15, 2008, 11:45:50 AM
Get yourself a good editor with a good search feature in it. One like "php designer" That will help you out a lot.
Title: Re: Ad Management mod
Post by: robbieruckus on March 15, 2008, 06:06:04 PM
Quote from: Bigguy on March 15, 2008, 11:45:50 AM
Get yourself a good editor with a good search feature in it. One like "php designer" That will help you out a lot.

alright i was using dreamweaver
Title: Re: Ad Management mod
Post by: zapiy on March 16, 2008, 07:15:54 PM
There is no option in my cp m8?

Quote from: Bigguy on March 14, 2008, 07:04:42 PM
You can center the ads through the admin panel; no need to do anything with the code.

<center>ad_code</center>

OR

<div align=center>ad_code</div>
Title: Re: Ad Management mod
Post by: Bigguy on March 16, 2008, 08:10:10 PM
There is no ad management link in your admin cp ???
Title: Re: Ad Management mod
Post by: lakelady on March 17, 2008, 02:46:00 AM
I installed this mod today and was looking forward to using it for some rotating banners on my site. Everything seems to have installed just fine but I can't seem to get any ads to show up anywhere. I'm using simple html code for the banners ( <img src="location"/> ). SMF 1.1.4 and TP 0.98

I've enabled Ads in permissions and double and triple checked  the html code, checked boxes for ads to show up at the bottom of the page and after the last post. I've even tried a few other check boxes but NOTHING is working and I'm stumped!

please help

link to my site in my signature

thanks
Title: Re: Ad Management mod
Post by: Bigguy on March 17, 2008, 11:37:06 AM
Are you using a custom theme. ???
Title: Re: Ad Management mod
Post by: lakelady on March 17, 2008, 01:27:43 PM
nope, not a custom theme. All I've done is change the CSS and a few small graphics of the default theme.
Title: Re: Ad Management mod
Post by: Bigguy on March 17, 2008, 01:37:40 PM
What errors are in your error logs. ??? What mods do you have installed. ???
Title: Re: Ad Management mod
Post by: lakelady on March 17, 2008, 04:54:22 PM
only errors were from an ichat mod (looks like I need to look into that as well)

here 's the list of mods (not all in active use - e.g. thankyou & karma)
Title: Re: Ad Management mod
Post by: jerm on March 17, 2008, 08:02:33 PM
FYI everyone. There is a version of the mod out for SMF 2.0 beta 3 Public.
Title: Re: Ad Management mod
Post by: Bigguy on March 17, 2008, 09:30:34 PM
@ lakelady: Does anything show up ??? put the word testing in the ad mod box and see if it shows on your forum in any place.
Title: Re: Ad Management mod
Post by: lakelady on March 17, 2008, 10:53:00 PM
Quote from: Bigguy on March 17, 2008, 09:30:34 PM
@ lakelady: Does anything show up ??? put the word testing in the ad mod box and see if it shows on your forum in any place.

Nope. Nothing. Nada. Zilch
Title: Re: Ad Management mod
Post by: Bigguy on March 17, 2008, 11:28:24 PM
I see this at the bottom of your forum and one banner:

TESTING ONE TWO THREE

Do you have permissions set for each membergroup ???
Title: Re: Ad Management mod
Post by: lakelady on March 18, 2008, 12:19:51 AM
sheesh I'm an idiot! Adblock in Firefox was preventing me from seeing them! Now that I know they're there time to tweak the settings a bit (with my site whitelisted :P   )

Thank you!
Title: Re: Ad Management mod
Post by: Tokzu on March 18, 2008, 05:15:30 AM
Quote from: jerm on March 17, 2008, 08:02:33 PM
FYI everyone. There is a version of the mod out for SMF 2.0 beta 3 Public.

What changes or improvements does this version have?  :-\
Title: Re: Ad Management mod
Post by: Bigguy on March 18, 2008, 07:37:11 PM
None; it's just updated to work. I did hear a rumour that there was more improvements on the way but don't quote me on that.
Title: Re: Ad Management mod
Post by: Bigguy on March 20, 2008, 05:52:22 PM
Do you have a language folder in your custom theme folder. ??? If not create one and copy the modifications.english.php file from the default language folder into it. See if that helps. :)
Title: Re: Ad Management mod
Post by: Bigguy on March 20, 2008, 06:48:14 PM
Is your language set to utf8 is it. ??? Your going to need to get this file out of the mod package:

Ads.english.php

and rename it to:

Ads.english-utf8.php

and put it in your language folder of your custom theme.
Title: Re: Ad Management mod
Post by: robbieruckus on March 20, 2008, 09:24:10 PM
does anyone have a moment to look over my files and see whats wrong?


i've been trying to get this to work for weeks now.  you can download the files from my previous post on page 117.

any help would be greatly appreciated.
Title: Re: Ad Management mod
Post by: Bigguy on March 20, 2008, 09:40:51 PM
On that page there are no files from you but you say you are having a parse error with the index.template.php.Can you upload that file.
Title: Re: Ad Management mod
Post by: robbieruckus on March 20, 2008, 10:13:07 PM
ok here you go..
Title: Re: Ad Management mod
Post by: robbieruckus on March 20, 2008, 10:45:18 PM
and sorry it was page 118 not 117
Title: Re: Ad Management mod
Post by: Bigguy on March 21, 2008, 12:21:17 AM
Try this robbieruckus:

BACK UP THE ORIGINAL FIRST
Title: Re: Ad Management mod
Post by: Bigguy on March 21, 2008, 01:06:54 AM
I would thin so yes. :)
Title: Re: Ad Management mod
Post by: Bigguy on March 21, 2008, 01:11:31 AM
Did you figure it out ???
Title: Re: Ad Management mod
Post by: Bigguy on March 21, 2008, 02:00:29 AM
Go into the admin control panel and then to ad management. Then click on add ads. Put a name in for that ad unit and then the code in the next box and pick where you want the code to display. Chances are you won't have to touch the "Type"
Title: Re: Ad Management mod
Post by: Bigguy on March 21, 2008, 02:09:27 AM
Switch back and see if they show. What theme are you using. ???
Title: Re: Ad Management mod
Post by: Bigguy on March 21, 2008, 02:27:40 AM
Please post in the each of the mod authors threads to get help with all those other mods. As for the ad mod, what template files are in that theme folder. ??? Did the ad mod install without errors. ??? make sure the Ads.english.php file is in the language folder of the default theme. If you are using english-utf8 language either go into the server setting in the admin panel and change the language to plain english or rename the file Ads.english.php to Ads.english-utf8.php.
Title: Re: Ad Management mod
Post by: Bigguy on March 21, 2008, 03:03:13 AM
Not:

Ads.english-utf.php

Its

Ads.english-utf8.php

I meant the template files in your custom theme folder.  :P
Title: Re: Ad Management mod
Post by: Bigguy on March 21, 2008, 03:15:50 AM
index.template.php
messageindex.template.php
Display.template.php
boardindex.template.php

Are any of these files in the folder of the theme you are using now.
Title: Re: Ad Management mod
Post by: Bigguy on March 21, 2008, 03:47:51 AM
Ok; if the mod is installed already then to get it to work on your custom theme you will have to edit the 4 template files that I listed.
Title: Re: Ad Management mod
Post by: relisys on March 21, 2008, 08:21:53 PM

ok could you please tell me were to edit The YaBB SE  to show google ads,

and yes im using the mod it just doesnt want to show on any other theme apart form default
Title: Re: Ad Management mod
Post by: robbieruckus on March 21, 2008, 08:56:29 PM
still no luck
Title: Re: Ad Management mod
Post by: Bigguy on March 22, 2008, 12:11:15 AM
@ gordon7: Are you using the utf8 language. ???

@ robbieruckus: still no luck with ???
Title: Re: Ad Management mod
Post by: yuva on March 22, 2008, 01:22:01 AM
can u make this for SMF 2.0 Beta 3
Title: Re: Ad Management mod
Post by: robbieruckus on March 22, 2008, 06:20:22 AM
Quote from: Bigguy on March 22, 2008, 12:11:15 AM
@ robbieruckus: still no luck with ???

with that file you edited.  still getting a template parse error
Title: Re: Ad Management mod
Post by: Bigguy on March 22, 2008, 11:42:39 PM
@ gordon7: Rename the Ads.english.php to Ads.english-utf8.php and that should take care of that. If you have uninstalled it make sure the edits are out of the index.php in the forum root.

@ yuva: It is compatible. :)

@ robbieruckus: There should not have been a problem with that file at all. Are no ads showing. ???
Title: Re: Ad Management mod
Post by: hammerfall on March 23, 2008, 01:47:47 AM
I speak little English


   
It is possible that advertising display, only users with 0 messages as is done? Ad Management mod V 2.3 is not that  ?????
Title: Re: Ad Management mod
Post by: Kender on March 23, 2008, 03:12:47 AM
you want ad to show for only users with 0 posts?

i would try making the ad in PHP (its one of the options)
use a query to check postcount

<?
if($postcount == 0) {
  echo ' INSERT AD CODE HERE ';  // be sure to escape single quotes if there are any like  -- don\'t --
}
?>


thats a guess, not sure if thats the actual usage for $postcount
Title: Re: Ad Management mod
Post by: hammerfall on March 23, 2008, 05:19:44 AM
Quote from: Kender on March 23, 2008, 03:12:47 AM
you want ad to show for only users with 0 posts?

i would try making the ad in PHP (its one of the options)
use a query to check postcount

<?
if($postcount == 0) {
  echo ' INSERT AD CODE HERE ';  // be sure to escape single quotes if there are any like  -- don\'t --
}
?>


thats a guess, not sure if thats the actual usage for $postcount




thanks ....
Title: Re: Ad Management mod
Post by: Kender on March 23, 2008, 05:21:33 AM
please tell me if that code worked  :)
Title: Re: Ad Management mod
Post by: hammerfall on March 23, 2008, 06:10:46 AM
Quote from: Kender on March 23, 2008, 05:21:33 AM
please tell me if that code worked  :)


Does not work but I want to make better ads past 24 hours on record






   
For example X user registers on March 23, 2008 and I do not want to see advertising, but the last 24 hours after the registration becomes whether the March 24, 2008 since it appears there are ads

As I do that?

thanks :)
Title: Re: Ad Management mod
Post by: robbieruckus on March 23, 2008, 11:09:42 AM
at the moment i cant login to check where the error is coming from.  and im an idiot and deleted my backups.  im still getting an error it could be from any of the files though
ill try deleting and reuploading one more time.
Title: Re: Ad Management mod
Post by: tennis4you on March 23, 2008, 11:32:34 AM
Is there a way to allow guests to see the ads as well?  Right now only those logged in can see them.

Thanks!
Title: Re: Ad Management mod
Post by: Bigguy on March 23, 2008, 12:44:29 PM
Set your permissions for each membergroup.
Title: Re: Ad Management mod
Post by: tennis4you on March 23, 2008, 01:54:37 PM
Thanks, that was the trick!

One last question.  I have the banner center justified and it has made the text on the forum index (just the forum names) center justified as well.  Kind of weird.  Anyway to not allow that to affect the forum name justification too?  Here is a link i fit is helpful to see what I am talking about.

http://www.tennis4you.com/forum/

Thanks!!!
Title: Re: Ad Management mod
Post by: Bigguy on March 23, 2008, 01:58:57 PM
How do you have it centered. Try this:

<div align=center>ad_code</div>

Or

<center>ad_code</center>

These should not effect the forum at all.
Title: Re: Ad Management mod
Post by: tennis4you on March 23, 2008, 02:27:59 PM
Hmmm, those do not seem to help.  Right now I have it set up like this:

<div align="center">
  <p><a href="http://www.globaltennisnetwork.com" target="_blank"><img src="http://www.tennis4you.com/advertisers/gtn.jpg" width="254" height="56" border="0"></a>
  </p>
Title: Re: Ad Management mod
Post by: Ricardo-san on March 23, 2008, 02:28:32 PM
I can't seem to get it to work. No ads show up anywhere. ???

Can the ad code be in an iframe?
Title: Re: Ad Management mod
Post by: Bigguy on March 23, 2008, 02:53:12 PM
@ tennis4you: where's the closing </div> ???

@ Ricardo-san: No I don't think so.
Title: Re: Ad Management mod
Post by: tennis4you on March 23, 2008, 02:58:57 PM
Quote from: Bigguy on March 23, 2008, 02:53:12 PM
@ tennis4you: where's the closing </div> ???

@ Ricardo-san: No I don't think so.

The closing "</div>" is with those who actually know what they are doing.  That did the trick, thank you!!!
Title: Re: Ad Management mod
Post by: robbieruckus on March 23, 2008, 06:54:19 PM
im willing to pay someone to fix this..
Title: Re: Ad Management mod
Post by: babjusi on March 23, 2008, 06:56:37 PM
Quote from: robbieruckus on March 23, 2008, 06:54:19 PM
im willing to pay someone to fix this..

In that case start a new topic at this board.

http://www.simplemachines.org/community/index.php?board=50.0
Title: Re: Ad Management mod
Post by: albertvn on March 26, 2008, 08:12:20 AM
Hi,

My website is in Vietnamese and I have just installed the mod successfully. However I do not see any link call "Ad manager" under Configuration in admin area. I think it is because my site is in Vietnamese.
Could you please kindly let me know how to fix this?
I really need your urgent help!

Thanks!
Albert
Title: Re: Ad Management mod
Post by: perplexed on March 26, 2008, 10:27:02 AM
Quote from: albertvn on March 26, 2008, 08:12:20 AM
Hi,

My website is in Vietnamese and I have just installed the mod successfully. However I do not see any link call "Ad manager" under Configuration in admin area. I think it is because my site is in Vietnamese.
Could you please kindly let me know how to fix this?
I really need your urgent help!

Thanks!
Albert

If you are using a language other than regular english you would need to add the strings the mod adds to Themes/default/languages/Modifications.<your_language>.php

Use the package parser in my signature to help you locate the modifications.english.php file and what changes this Mod makes there, and then add those to your own language modifications file.

SMF Package Parser (http://sleepycode.com/PackageParser/index.php)
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
How do I modify files? (http://www.simplemachines.org/community/index.php?topic=24110.0)


try that :)
Title: Re: Ad Management mod
Post by: albertvn on March 26, 2008, 01:59:59 PM
Quote from: perplexed on March 26, 2008, 10:27:02 AM
Quote from: albertvn on March 26, 2008, 08:12:20 AM
Hi,

My website is in Vietnamese and I have just installed the mod successfully. However I do not see any link call "Ad manager" under Configuration in admin area. I think it is because my site is in Vietnamese.
Could you please kindly let me know how to fix this?
I really need your urgent help!

Thanks!
Albert

If you are using a language other than regular english you would need to add the strings the mod adds to Themes/default/languages/Modifications.<your_language>.php

Use the package parser in my signature to help you locate the modifications.english.php file and what changes this Mod makes there, and then add those to your own language modifications file.

SMF Package Parser (http://sleepycode.com/PackageParser/index.php)
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
How do I modify files? (http://www.simplemachines.org/community/index.php?topic=24110.0)


try that :)

Thank you so much for the direction. However, when I use the parser, there is no language file to modify.
My SMF version: 1.1.4 and the Ad Manager mod version: ad_mod_1-1-x_v2-3
Could you please check for me then let me know if it is true?
I am very sorry for bothering you and really need your help!

Thanks!
Albert
Title: Re: Ad Management mod
Post by: perplexed on March 26, 2008, 03:00:47 PM
ok sorry  :), if you go here  (http://www.smfads.com/forums/index.php?topic=15.0) you will find out what to do for your language.  There is no vietnamese listed but there is info on what to do, this is the author's own site  :)
Title: Re: Ad Management mod
Post by: Bigguy on March 26, 2008, 06:48:58 PM
No problem; glad you got it solved. ;)
Title: Re: Ad Management mod
Post by: symon on March 27, 2008, 06:59:08 PM
The support forum for this is dead (no replies in 2 weeks) so please excuse these questions here.

1: I have this working in my private area but on testing I've noticed that the banner I have is fine when displayed above the boards etc but when I show it in the posts it gets a border! The HTML has 0 border set which explains why it works but weirdly a border appears on banners set as "Display ads after the last post".

Any ideas from you clever lot? :)

2: Are there any plans, or do any of you clever lot know how, to make it register clicks? Is this a naughty question? It's unusable to me (unfortunately) if I cannot record clicks. Hits are useless to advertisers. I'm not using Google ads...I'm selling the space to companies...or at least that's the plan.
Title: Re: Ad Management mod
Post by: mermaid27 on March 28, 2008, 03:52:02 AM
We have the ad mod visible in configuration. However we dont see ads? Also dont see tickers. We have enabled ads on all membergroups.

Not sure why? Have got google ads on index.html page so no prob with code.

Would love help :)
Title: Re: Ad Management mod
Post by: albertvn on March 28, 2008, 03:58:42 AM
Quote from: perplexed on March 26, 2008, 03:00:47 PM
ok sorry  :), if you go here  (http://www.smfads.com/forums/index.php?topic=15.0) you will find out what to do for your language.  There is no vietnamese listed but there is info on what to do, this is the author's own site  :)

I asked at the forum but there was no reply. I do not know why.
Title: Re: Ad Management mod
Post by: Austin Prime on March 28, 2008, 11:03:35 AM
When I go to the Configuration menu, there is no Ad Management part, and I have installed everything properly. :-/. Hope you can help.
Title: Re: Ad Management mod
Post by: perplexed on March 28, 2008, 11:05:12 AM
check the theme and the language you are using, it will install on the default theme and english language, not english-utf8.  See if that helps
Title: Re: Ad Management mod
Post by: Austin Prime on March 28, 2008, 11:07:21 AM
This is my default theme, and how do I check the english-utf8 thing?
Title: Re: Ad Management mod
Post by: perplexed on March 28, 2008, 11:12:07 AM
have a look in admin > server settings
Title: Re: Ad Management mod
Post by: Austin Prime on March 28, 2008, 11:14:37 AM
I just switched it to English but that messed up other mods. Suggestions? ha. I'm a noob sorry.
Title: Re: Ad Management mod
Post by: perplexed on March 28, 2008, 11:26:02 AM
what do you mean it messed up other mods?
Title: Re: Ad Management mod
Post by: Austin Prime on March 28, 2008, 11:27:05 AM
When I switched the language, my SMF arcade stopped working.
Title: Re: Ad Management mod
Post by: stageducky on March 28, 2008, 03:35:13 PM
I try to install this mod... on SMF 1.1.4 but it didn't work out. There are many mod written for SMF 1.1.4 that bump the standard set of menu out of line from its default. I would like to try to get this mod to work. It is one of the two AD mo around. Can anyone let me know why the this mod cannot successfully be installed in SMF 1.1.4 althought it says its okay to be install in this version. Anyone. Jerm? Do you know which mod would it conflict with?
Title: Re: Ad Management mod
Post by: Austin Prime on March 28, 2008, 04:23:22 PM
Perplexed said to make sure your language is set to just English not English - utf8
Title: Re: Ad Management mod
Post by: Bigguy on March 29, 2008, 12:43:15 AM
@ stageducky: What errors are you getting when you install.
Title: Re: Ad Management mod
Post by: 4b11l on March 29, 2008, 01:24:12 AM
Hello guys, I'm trying to manually install this mod since I have a custom theme but the install.xml file is ridiculous..

The index.template.php has tons of </td> and it's telling me to look for one and add a code after..
Other codes are <body>'; which it seems my file doesn't even have either.

Any tips on this?
Title: Re: Ad Management mod
Post by: ccbtimewiz on March 29, 2008, 01:25:48 AM
The minute I post this message, click "Package Parser" in my sig. =P
Title: Re: Ad Management mod
Post by: Bigguy on March 29, 2008, 01:26:52 AM
Look at where the edits go in the default theme and then compare code around the spot you need to add it to your custom theme with the default theme. This should help you out more. That <td> that you are talking about...the space in front of it is the important part. ;)
Title: Re: Ad Management mod
Post by: 4b11l on March 29, 2008, 01:58:30 AM
I dont know what is wrong but I can not get this package to work. I literally added every mod manually via the install.xml and the coding isn't showing up; the only exception is I can not find the template_menu(); in my file.

Can I upload my file and get some help? I am stumped on this.
Title: Re: Ad Management mod
Post by: Bigguy on March 29, 2008, 02:12:18 AM
Try searching for variations of it. Most likely it is there you just have to get creative a bit. Try one of these:

template_menu
template
menu

Search for all of these. I would imagine you are using a editor that has a built in search function. ;) The edits are usually always there they just differ from template to template. 
Title: Re: Ad Management mod
Post by: 4b11l on March 29, 2008, 02:21:21 AM
All I have is template_init, template_main_above, template_main_below
Title: Re: Ad Management mod
Post by: 4b11l on March 29, 2008, 02:25:54 AM
I tired all three and still the mod is not showing up.. All permissions are set and everything.. Ads are working.
Title: Re: Ad Management mod
Post by: Bigguy on March 29, 2008, 02:28:35 AM
What theme are you using.
Title: Re: Ad Management mod
Post by: 4b11l on March 29, 2008, 02:29:22 AM
HolyIT
Title: Re: Ad Management mod
Post by: Bigguy on March 29, 2008, 02:35:14 AM
What is your language set at in the server settings of the admin panel. ???
Title: Re: Ad Management mod
Post by: 4b11l on March 29, 2008, 02:35:33 AM
English
Title: Re: Ad Management mod
Post by: Bigguy on March 29, 2008, 02:38:33 AM
Did you install the mod and then do manual edits or did you install it entirely manually. ??? The mod should be installed first through the package manager and then any edits that fail should be done manually.
Title: Re: Ad Management mod
Post by: 4b11l on March 29, 2008, 02:39:27 AM
Installed first. Everything intalled fine. Nothing worked, so went and did manual edits.
Title: Re: Ad Management mod
Post by: Bigguy on March 29, 2008, 02:44:57 AM
When you installed it via package manager did the edits get done. ???
Title: Re: Ad Management mod
Post by: 4b11l on March 29, 2008, 02:47:04 AM
Everything installed fine. Unless SMF miraculously changes the way packages are installed, then no the edits didnt get done...
Title: Re: Ad Management mod
Post by: Bigguy on March 29, 2008, 02:50:17 AM
Ok what... it installed fine but no edits got done. ???
Title: Re: Ad Management mod
Post by: 4b11l on March 29, 2008, 02:55:23 AM
There was some sarcasm there.. everything installed fine and I went in and did all the edits since they didn't work.. i dont know how asking me these questions would narrow down the problem.. i looked through about 60-70 pages and this is very frustrating at this point..

Are you not able to just glimpse at my files to see if something is wrong or misplaced?
Title: Re: Ad Management mod
Post by: Bigguy on March 29, 2008, 03:01:46 AM
Not really no. It might not be a problem with the edits. You tell me in one breath that you installed with no errors but in another you say nothing got done. This really does not help and neither does the bit of sarcasm.

I am sorry you had to look through that many pages. Most of those pages I probably posted on. You could have problems with permissions or ownership of files or maybe the database edits didn't get done.... are all the files in the right place; by that I mean did the ones that need to be added to your install of SMF get added in the right place. ???
Title: Re: Ad Management mod
Post by: 4b11l on March 29, 2008, 03:11:50 AM
Well, I don't know how many times I would have to say that everything installed fine.

Everything installed fine, pages and everything uploaded to the right places. All permissions and edits were done..

The sarcasm was that "Unless SMF miraculously changes the way packages are installed, then no the edits didnt get done" so yes, all edits were done. It's frustration that just made me say that out of the blue.
Title: Re: Ad Management mod
Post by: Nooby on March 30, 2008, 07:32:35 AM
Just tried that package parser thing, it does not appear to actually do anything?

Sorry, my bad, it does work. Stupidly I was pointing it at the SMF installer instead of the mod zip.

OK, it works, and it will clearly take more time and hassle than I can afford. I think I'll just shut the site down.

Thanks anyway



Title: Re: Ad Management mod
Post by: Bigguy on March 30, 2008, 06:31:07 PM
If the mod is already installed then there is only 4 template files to edit; even less if not all the template files are listed in your custom theme folder. :)
Title: Re: Ad Management mod
Post by: Bigguy on March 30, 2008, 06:33:13 PM
@ 4b11l: Go into phpmyadmin and see if there are any tables related to the ads in your database.
Title: Re: Ad Management mod
Post by: yogogs on March 30, 2008, 08:28:31 PM
i have installed this package. Added google adsense but the ads wont show. please help.
Title: Re: Ad Management mod
Post by: YCW_jkt on March 30, 2008, 09:02:17 PM
I apologize in advance if this has already been answered somewhere in the 123 pages on this thread... I wasn't able to read the entire thread.

Many thanks for a great mod!

Is there a way to make this mod so that (certain) ads ONLY display for non-members?

I'd really like to display my banner ad at the bottom for ALL users, and then display other types of ads for non-members.

Any help would be greatly appreciated!
Title: Re: Ad Management mod
Post by: 4b11l on March 31, 2008, 12:16:22 AM
Quote from: Bigguy on March 30, 2008, 06:33:13 PM
@ 4b11l: Go into phpmyadmin and see if there are any tables related to the ads in your database.

Hey bigguy,

Well I'm not exactly sure how to do that but looking around and I saw:

Quotesmf_ads      Browse       Structure     Search       Insert     Empty       Drop     1     MyISAM     latin1_swedish_ci     2.4 KiB     -
   smf_ads_settings    Browse    Structure    Search    Insert    Empty    Drop    0    MyISAM    latin1_swedish_ci    1.0 KiB    -

Not sure if that helps.

On closer inspection; I see that I can get some ads to work; such as the "show at the bottom of the last post" and the "show in welcome area" but it's in the wrong place.

So I'm skeptical that I might have some of the coding wrong, would you be able to check out my index.template file or have any input on this?
Title: Re: Ad Management mod
Post by: Bigguy on March 31, 2008, 12:18:44 AM
No currently there is no way to just show one certain ad to one membergroup. It's a nice idea and something maybe the mod author will see. :) Sorry though.

@ yogogs: Are you using a custom theme. ???

@ 4b11l: Ok then the tables have been added to the database. If you want to post it i will take a look at it iether later tonight or tomorrow.
Title: Re: Ad Management mod
Post by: yogogs on March 31, 2008, 12:26:28 AM
hi bigguy,

yes i am using a custom theme.
Title: Re: Ad Management mod
Post by: Bigguy on March 31, 2008, 12:32:13 AM
Then this is why. The template files in the custom theme you are using have to be edited in order for it to work properly on that theme. The edits for the ad mod I have written out here (http://www.smfhelper.info/forum/index.php?topic=2286.0) if you are using 1.1.4. The only files that need to be edited are the 4 template files mentioned. If one of the 4 is not in your custom theme folder then it doesn't have to be done.
Title: Re: Ad Management mod
Post by: 4b11l on March 31, 2008, 12:55:06 AM
Quote from: Bigguy on March 31, 2008, 12:18:44 AM
@ 4b11l: Ok then the tables have been added to the database. If you want to post it i will take a look at it iether later tonight or tomorrow.

Thanks, I appreciate it. The one that I am trying to get to work is the footer ad.
Title: Re: Ad Management mod
Post by: Bigguy on March 31, 2008, 12:57:42 AM
OK, I will get to these tomorrow as it is late and I am on the wrong computer right now.
Title: Re: Ad Management mod
Post by: albertvn on March 31, 2008, 01:16:06 AM
I think there is no hope for me to install the mod with Vietnamese. I am quite sad and disappointed!
Can anyone tell me how to insert some google adsense ads after the replies and some possible places in the forum manually?

Thanks!
Albert
Title: Re: Ad Management mod
Post by: 4b11l on March 31, 2008, 02:47:15 AM
Quote from: Bigguy on March 31, 2008, 12:57:42 AM
OK, I will get to these tomorrow as it is late and I am on the wrong computer right now.

Sure, no problem.
Title: Re: Ad Management mod
Post by: yogogs on March 31, 2008, 04:16:59 AM
hi bigguy,

im in the process of working on it but stuck in index.template.php file. my file has no <body>'; on it.

here's the code:

<body>
<div align="center"><img src="', $settings['images_url'], '/logo.gif" alt="logo" /></div>
<div id="darkbg"><div class="links" align="right">'; template_menu();
echo '</div></div><div id="panel" align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="468" height="60">
  <param name="movie" value="ads/ads.swf" />
  <param name="quality" value="high" />
  <embed src="ads/ads.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="468" height="60"></embed>
</object></div><div id="panel" class="linkspanel">';
   // If the user is logged in, display stuff like their name, new messages, etc.
   if ($context['user']['is_logged'])
Title: Re: Ad Management mod
Post by: Bigguy on March 31, 2008, 03:31:47 PM
@ albertvn: Have you tried to translate the ads.english.php file. ???

@ 4b11l: got your files and am looking at them now

@ yogogs: Try searching for just body with out the <>';
Title: Re: Ad Management mod
Post by: Bigguy on March 31, 2008, 03:52:42 PM
@ 4b11l: There was a bit of code left out of the index.template.php file so I put that in. But I could not find the place to put the welcome user ads so I left them out. All other files looked fine and produced no errors. I have zipped them up for you but the only one that I changed was the index.template.php Are you sure all the edits are done to the rest of the files like the index.php in the root of your SMF install. ???
Title: Re: Ad Management mod
Post by: YCW_jkt on March 31, 2008, 05:26:06 PM
Quote from: Bigguy on March 31, 2008, 12:18:44 AM
No currently there is no way to just show one certain ad to one membergroup. It's a nice idea and something maybe the mod author will see. :) Sorry though.

Thanks for taking the time to answer... it saved me the time to continue investigating.

I figured out how to do what I wanted... the one ad that I wanted everyone to see was just a banner ad at the bottom of the page... I moved it into the "footer" area, and then was able to set up permissions so that only guests would see ads served up by the mod.

Thanks!
Title: Re: Ad Management mod
Post by: 4b11l on March 31, 2008, 06:14:17 PM
Quote from: Bigguy on March 31, 2008, 03:52:42 PM
@ 4b11l: There was a bit of code left out of the index.template.php file so I put that in. But I could not find the place to put the welcome user ads so I left them out. All other files looked fine and produced no errors. I have zipped them up for you but the only one that I changed was the index.template.php Are you sure all the edits are done to the rest of the files like the index.php in the root of your SMF install. ???

Bigguy, thanks it finally shows up now.

However, it's in the middle of the copyright info. Is that how it is suppose to show up?
Title: Re: Ad Management mod
Post by: Bigguy on March 31, 2008, 07:17:07 PM
For each theme it's a bit different but as long as the copyright info is there then it should be ok.
Title: Re: Ad Management mod
Post by: yogogs on March 31, 2008, 08:00:06 PM
bigguy,

i tried placing the codes after the <body> without the '; but is showed error. And also, there there is no </td>. I compared the files, the theme i used and the default, theres  a big difference. Im no coder of codes and familiar with the php syntax. Can you  help me on this please?
Title: Re: Ad Management mod
Post by: Bigguy on March 31, 2008, 08:06:54 PM
If you can upload it here I will take a look at it and see what I can do.
Title: Re: Ad Management mod
Post by: yogogs on March 31, 2008, 09:21:04 PM
hi bigguy,

i am uploading the 4 major files to be edited.
Title: Re: Ad Management mod
Post by: Bigguy on March 31, 2008, 09:44:52 PM
Ok there were a few spots I couldn't find so I left them out. But most of the functionality is there. You are more than welcome to try the other edits if you like.
Title: Re: Ad Management mod
Post by: yogogs on March 31, 2008, 10:02:38 PM
hi bugguy,

thanks! it worked but with a little glitch. the font color of my board was affected and a green border on the left appreared.

please have a look at my forum: http://forum.usc.edu.ph (http://forum.usc.edu.ph)



How do i put a page break with the code below? (please see comment)
//Display ads on the top of the page
    if (function_exists("show_topofpageAds"))
    {
        $ads = show_topofpageAds();   
        if(!empty($ads))
            if($ads['type']==0)
                echo $ads['content'];
            else
                eval($ads['content']);   
        unset($ads);
A PAGE BREAK SHOULD BREAK THIS TWO LINES
    }
   // If the user is logged in, display stuff like their name, new messages, etc.
   if ($context['user']['is_logged'])
   {
Title: Re: Ad Management mod
Post by: Bigguy on March 31, 2008, 11:39:01 PM
Try one here:

//Display ads on the top of the page
    if (function_exists("show_topofpageAds"))
    {
        $ads = show_topofpageAds();   
        if(!empty($ads))
            if($ads['type']==0)
                echo $ads['content'];
            else
                eval($ads['content']);   
        unset($ads);
    }
<br />
   // If the user is logged in, display stuff like their name, new messages, etc.
   if ($context['user']['is_logged'])
   {
Title: Re: Ad Management mod
Post by: yogogs on April 01, 2008, 12:08:05 AM
hi bigguy,

the <br /> produced error

Template Parse Error!
There was a problem loading the \Themes\usctheme/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
Title: Re: Ad Management mod
Post by: Bigguy on April 01, 2008, 12:12:16 AM
Ok; try

<br /> ';
Title: Re: Ad Management mod
Post by: yogogs on April 01, 2008, 12:18:25 AM
same error bugguy...sorry about this. have patience...

have a look at http://forum.usc.edu.ph

the "google ads" and the "Welcom, guest.." is inline. I wanted the "welcome guest.." on the next line.
Title: Re: Ad Management mod
Post by: yogogs on April 01, 2008, 01:04:32 AM
figured it out already bigguy. placed this code: echo '<div>&nbsp;</div>';

now, i still have to figure out the other errors.
Title: Re: Ad Management mod
Post by: ccbtimewiz on April 01, 2008, 03:29:59 PM
Try this.

//Display ads on the top of the page
    if (function_exists("show_topofpageAds"))
    {
        $ads = show_topofpageAds();   
        if(!empty($ads))
            if($ads['type']==0)
                echo $ads['content'];
            else
                eval($ads['content']);   
        unset($ads);
      }
if (function_exists("show_topofpageAds")) {
echo '<br />'; }
Title: Re: Ad Management mod
Post by: cumcatano on April 03, 2008, 03:28:40 PM
In my board AdS only show to Admin...

What's the problem?
Title: Re: Ad Management mod
Post by: Harvest on April 04, 2008, 05:56:01 AM
Have You set the permissions? AFAIR by default the ads are disabled to all groups except the Admins.

Is there any mod that would enable a 'per-ad' permission system. To enable or disable specific ads for specific groups, and not just all on all off.
Regards
Title: Re: Ad Management mod
Post by: cumcatano on April 05, 2008, 09:07:25 AM
I did not know, thanks.
Title: Re: Ad Management mod
Post by: gaurav1137 on April 05, 2008, 03:53:04 PM
Hey!!! Can anyone please tell me - How to install ad management mod v 2.3 I have to copy an adcode. Please reply soon
Title: Re: Ad Management mod
Post by: gaurav1137 on April 05, 2008, 03:56:23 PM
ccbtimewiz  Can You Please reply.
Title: Re: Ad Management mod
Post by: gaurav1137 on April 06, 2008, 03:27:57 AM
hey Big Guy!!! Can you plz help me?

I installed ad management mode via package. But in the configuration heading of admin, I am not getting an ad management link.

Plz tell me what to do???
Title: Re: Ad Management mod
Post by: gaurav1137 on April 06, 2008, 03:34:11 AM
Quote from: Bigguy on April 01, 2008, 12:12:16 AM
Ok; try

<br /> ';
hEY bIG GUY!!! HELP ME
Title: Re: Ad Management mod
Post by: !Hachi! on April 06, 2008, 03:36:09 AM
which theme you are using?and please don't post same question......
Title: Re: Ad Management mod
Post by: gaurav1137 on April 06, 2008, 03:53:12 AM
Halloween Night. But I changed to default theme also and then also ad management link doesnt appeared.
Title: Re: Ad Management mod
Post by: jorgewolf on April 06, 2008, 08:31:41 PM
Hi all:

I ask por help after two days of trying... but i can´t

I have installed this mod in a Helios theme. Everything  its Ok except one function.
the fail comes when i try to make the second php change in my index.template theme

after this
</td>
i paste this
';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo '


When i do that, my welcome zone make weird things...grafical errors...

you can see that error here  (http://www.madpool.com/images/fallodemod.gif)
i want the top banner inside the box... exactly where the vertical error lines.LOL

This is my index.template (http://www.madpool.com/images/index.template.rar) with corrections 1, 3 and 4... all except the one of the welcome zone.


Please please please, can anyone take a look and try it?

i have tried to change my theme, but i dont find anyone that likes me so much.

THANKS A LOT

Pdta: Sorry for my english, im spanish.
Title: Re: Ad Management mod
Post by: ccbtimewiz on April 06, 2008, 09:13:28 PM
Try these:

Modify the index.template.php file according to the XML of the mod.

Make sure your forum is set to ENGLISH as its main language. Make sure it ISN'T ENGLISH-UTF8.
Title: Re: Ad Management mod
Post by: jorgewolf on April 06, 2008, 09:26:13 PM
i have modify exactly as it saids...

i have tried too in english but doesnt work...


But if i am makeing the changes by myself what is the problem of having it in spanish...

sorry but in dont know much php

Title: Re: Ad Management mod
Post by: ccbtimewiz on April 06, 2008, 09:28:26 PM
Attach your index.template.php file. If you can't attach, upload to Sendspace (http://sendspace.com/) and link back.
Title: Re: Ad Management mod
Post by: jorgewolf on April 06, 2008, 09:30:33 PM
you have it on my post....

linked in the text....

This is my index.template with corrections 1, 3 and 4... all except the one of the welcome zone. (http://www.madpool.com/images/index.template.rar)

Thanks a lot ccbtimewiz
Title: Re: Ad Management mod
Post by: ccbtimewiz on April 06, 2008, 09:31:34 PM
Ah, ok. Hold on a minute...

Holy jeez. This is sooo hacked up I can't make out where is what and what is where. x.x

I've sent you a PM requesting some other things.
Title: Re: Ad Management mod
Post by: jorgewolf on April 06, 2008, 09:34:10 PM
LOL

a minute.... LOL

just for try to understand somethig in php i spend hourssss....


jajjajajja LOL a minute ... lucky you
Title: Re: Ad Management mod
Post by: hellboy78 on April 07, 2008, 06:12:15 AM
I'm trying to add this mod  Ad Management mod V 2.3


it ask me FTP details,  I insert everything correctly, but nothing goes on,

no error messages, nothing
Title: Re: Ad Management mod
Post by: aussie86 on April 07, 2008, 06:57:40 AM
i've installed the mod, i've add my adsense codes and changed the meta tags on the index.template, but my adsense ads are not displaying the correct ads, in line with my forum's content.

For example, its showing php, hosting etc ads, and my site is talkin about movies

Any suggestions, thanx for helping people :D

Cheers
Title: Re: Ad Management mod
Post by: sfreak on April 07, 2008, 10:25:13 PM
hi friends


i am using dibermc theme..


when i want to put ad at "Display ads on every page right below the menu"

i am getting like this

(http://i32.tinypic.com/2i05ezl.jpg)

whats the problem please help friends...


thanks in advance..
Title: Re: Ad Management mod
Post by: !Hachi! on April 07, 2008, 11:06:19 PM
mostly mods will work fine on default theme.where you get precise positioning.all themes are different with different look and templates means you might get little bit difference i am afraid you have to edit your template manually.
Title: Re: Ad Management mod
Post by: sfreak on April 07, 2008, 11:40:06 PM
ok dude..

then wts the solution..
Title: Re: Ad Management mod
Post by: Bigguy on April 08, 2008, 12:19:54 PM
Quote from: Hassan on April 07, 2008, 11:06:19 PM
i am afraid you have to edit your template manually.

Title: Re: Ad Management mod
Post by: sfreak on April 08, 2008, 09:08:28 PM
Quote from: Bigguy on April 08, 2008, 12:19:54 PM
Quote from: Hassan on April 07, 2008, 11:06:19 PM
i am afraid you have to edit your template manually.


what i have to edit in my template  dude...

please tell me..
Title: Re: Ad Management mod
Post by: babjusi on April 08, 2008, 10:32:46 PM
Quote from: kcscm on April 08, 2008, 09:08:28 PM
Quote from: Bigguy on April 08, 2008, 12:19:54 PM
Quote from: Hassan on April 07, 2008, 11:06:19 PM
i am afraid you have to edit your template manually.


what i have to edit in my template  dude...

please tell me..

Use the mod parser at your own signature and it will tell you exactly what templates you must edit and where
Title: Re: Ad Management mod
Post by: sfreak on April 09, 2008, 05:37:58 AM
dude i edited all the things according to parser..

after that only i am getting this and all other options working fine...except that below the menu..option..
Title: Re: Ad Management mod
Post by: miamizx on April 10, 2008, 03:49:42 PM
has anyone used this mod with kelo-lt114_v2 theme?
Title: Re: Ad Management mod
Post by: weightman on April 10, 2008, 06:37:47 PM
Is there a problem if you use links with & signs in the html code for ads in terms of W3c validation? I am getting entity errors from them. If I try to change them to &amp; the mod is changing them right back.

Thanks
Title: Re: Ad Management mod
Post by: Bigguy on April 10, 2008, 10:27:17 PM
There shouldn't be no; not that I have noticed. What errors are you getting. ???
Title: Re: Ad Management mod
Post by: weightman on April 10, 2008, 11:52:24 PM
This if the first time I have tried to validate it and the site is bridged with mambo and has many mods. So, I have 47 errors, though it was at 76 about 4 hours ago. :) If you have time to take a look, its appreciated. This is an example of one of the errors I thought might be caused by an ad, from the forum: http://weightliftingexchange.com/index.php?option=com_smf&Itemid=39:

Quote#  Warning  Line 262, Column 133: cannot generate system identifier for general entity "Itemid".

...nge.com/index.php?option=com_wrapper&Itemid=113" ><img



An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.

If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.

Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
# Error Line 262, Column 133: general entity "Itemid" not defined and no default entity.

...nge.com/index.php?option=com_wrapper&Itemid=113" ><img



This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
Title: Re: Ad Management mod
Post by: Bigguy on April 11, 2008, 12:08:59 AM
I think this is the part that is causing the error not the ad mod:

&Itemid
Title: Re: Ad Management mod
Post by: weightman on April 11, 2008, 12:15:39 AM
QuoteI think this is the part that is causing the error not the ad mod:

&Itemid

Yea, thats what I thought. Thats part of the link in the ad code, the link that clicking on the ad takes you to. All the adds have &'s in them....

Know how I can correct it?

Thanks
Title: Re: Ad Management mod
Post by: Bigguy on April 11, 2008, 12:17:27 AM
That is part of mambo not the ad mod or the ad code you are using. Mambo is putting that there because of the bridge.
Title: Re: Ad Management mod
Post by: weightman on April 11, 2008, 12:20:10 AM
QuoteThat is part of mambo not the ad mod or the ad code you are using. Mambo is putting that there because of the bridge.

Thats what I thought. So, that means its not something that can be corrected? I thought changing the &'s to &amp; would do it, but the ad mod just removed the amp; if I add it.....
Title: Re: Ad Management mod
Post by: Bigguy on April 11, 2008, 06:13:48 PM
It is something that is best taken up with bridge support I think. They might have the answers you need:

http://www.simplemachines.org/community/index.php?board=77.0
Title: Re: Ad Management mod
Post by: Harvester on April 12, 2008, 09:43:49 AM
I have an interesting problem.

MOst of my members, including me, can see the ads no problem. However i have a couple members, Staff actually, who have not been able to see the ads until one of them logged out the other night. When he logged out he could see the ads as a guest. When he logged back in, the ads were gone again.
The other staff member has the same problem.

When logged in they cant see the ads, when logged out, as a guest, they can see the ads. Help please!
Title: Re: Ad Management mod
Post by: babjusi on April 12, 2008, 09:46:42 AM
Quote from: Harvester on April 12, 2008, 09:43:49 AM
I have an interesting problem.

MOst of my members, including me, can see the ads no problem. However i have a couple members, Staff actually, who have not been able to see the ads until one of them logged out the other night. When he logged out he could see the ads as a guest. When he logged back in, the ads were gone again.
The other staff member has the same problem.

When logged in they cant see the ads, when logged out, as a guest, they can see the ads. Help please!

Check the permissions for the membergroup that those staff members belong to
Title: Re: Ad Management mod
Post by: Harvester on April 12, 2008, 10:10:59 AM
OMG I cant believe thats all it was LOL!!

I wish they would make it ON by default and not off. ;) I mean, if we install teh mod obviously we want them to see the ads ;)  I have had this thing running for a month now and I had NO user groups but guests seeing it lol

Thank you for setting me straight :D

Quote from: babjusi on April 12, 2008, 09:46:42 AM
Quote from: Harvester on April 12, 2008, 09:43:49 AM
I have an interesting problem.

MOst of my members, including me, can see the ads no problem. However i have a couple members, Staff actually, who have not been able to see the ads until one of them logged out the other night. When he logged out he could see the ads as a guest. When he logged back in, the ads were gone again.
The other staff member has the same problem.

When logged in they cant see the ads, when logged out, as a guest, they can see the ads. Help please!

Check the permissions for the membergroup that those staff members belong to
Title: Re: Ad Management mod
Post by: babjusi on April 12, 2008, 11:01:56 AM
Quote from: Harvester on April 12, 2008, 10:10:59 AM
OMG I cant believe thats all it was LOL!!

I wish they would make it ON by default and not off. ;) I mean, if we install teh mod obviously we want them to see the ads ;)  I have had this thing running for a month now and I had NO user groups but guests seeing it lol

Thank you for setting me straight :D

Quote from: babjusi on April 12, 2008, 09:46:42 AM
Quote from: Harvester on April 12, 2008, 09:43:49 AM
I have an interesting problem.

MOst of my members, including me, can see the ads no problem. However i have a couple members, Staff actually, who have not been able to see the ads until one of them logged out the other night. When he logged out he could see the ads as a guest. When he logged back in, the ads were gone again.
The other staff member has the same problem.

When logged in they cant see the ads, when logged out, as a guest, they can see the ads. Help please!

Check the permissions for the membergroup that those staff members belong to

You are welcome. Glad to have been of help :)
Title: Re: Ad Management mod
Post by: stanaca on April 12, 2008, 11:32:39 AM
ad management mod ads are not showing.

website http://www.stanaca.com

let me explain by steps.

after installing

In the admin ---> configuration---> Ad Management --> add ads

I entered the name
and adsense code in content.
checked the Display ads on every page on the top of the page
and saved.

Is there anything alse.

admin > server settings > language    The language is English. I checked.
help plz
Title: Re: Ad Management mod
Post by: stanaca on April 12, 2008, 11:54:47 AM
here are my website files. i am using dilber mc theme.

Display.template.php not found in my theme files.

setting.english.php in my themes language folder also attached.

some body help me now

Title: Re: Ad Management mod
Post by: mahadzira on April 12, 2008, 10:38:33 PM
Please can someone help me install ad mod ....
I couldnt do it. ...My board is 1.1.4
Title: Re: Ad Management mod
Post by: !Hachi! on April 12, 2008, 11:16:54 PM
Mahadzira what you mean you can't?
Package Manager (http://docs.simplemachines.org/index.php?board=49.0;sort=subject)
Title: Re: Ad Management mod
Post by: !Hachi! on April 12, 2008, 11:22:07 PM
stanaca
     you need to install mod manually for custm themes in your case dilber.
try this page and edit your theme files only.and it will work fine.
before that change your theme to default theme and see if ads shows.if ads are there go and edit your theme files in dilber theme.
Title: Re: Ad Management mod
Post by: stanaca on April 13, 2008, 05:47:22 AM
i used the manual mod install link in Hassan's signature.
Just wasted 8 hours in theme modification but getting a error so i restored my original files.

there is no display.template.php file in my theme files.


please can someone midify my theme files given in above post.
Title: Re: Ad Management mod
Post by: mahadzira on April 13, 2008, 07:22:58 AM
Quote from: Hassan on April 12, 2008, 11:16:54 PM
Mahadzira what you mean you can't?
Package Manager (http://docs.simplemachines.org/index.php?board=49.0;sort=subject)

Dear Hassan,
Can u make the forum look like this where the ads were in the post.Notice that skyscrapper.....?

When i download and install the mod ad manager nothing happen...???
Where is the ad button as said would appear...?
Tq sincerely
Title: Re: Ad Management mod
Post by: stanaca on April 13, 2008, 07:49:20 AM
Thank you very much to
http://www.simplemachines.org/community/index.php?topic=225063.msg1446241#msg1446241

Downloaded modified files
Title: Re: Ad Management mod
Post by: babjusi on April 13, 2008, 09:05:39 AM
@mahadzira, please. please don''t pm again and again unless you fully understand my signature. It is not there for nothing, you know.
Title: Re: Ad Management mod
Post by: sorosh1 on April 14, 2008, 04:11:31 PM
hai,

Awesome mod! I have installed it and anything goes well but i have one quastion:

How can i get the mod in the center (middle) of the page with this option: Display ads within posts.
I is now like this:

(http://img168.imageshack.us/img168/7127/addvp2.th.jpg) (http://img168.imageshack.us/my.php?image=addvp2.jpg)

And i use SMF 1.1.4 and dilbermc theme. Can anybody say how to get this is the middle?! What must i change and in to what must i change that?

Thanks for help
Title: Re: Ad Management mod
Post by: smartmoney on April 14, 2008, 05:58:02 PM
Is this mod compatible with the SMF 2.0 beta public?
Title: Re: Ad Management mod
Post by: babjusi on April 14, 2008, 06:06:11 PM
Quote from: smartmoney on April 14, 2008, 05:58:02 PM
Is this mod compatible with the SMF 2.0 beta public?

Yes it is. AT least, that is what it says at the download page
Title: Re: Ad Management mod
Post by: smartmoney on April 14, 2008, 11:40:20 PM
Thank you for the quick reply
Title: Re: Ad Management mod
Post by: babjusi on April 15, 2008, 08:59:18 AM
Quote from: smartmoney on April 14, 2008, 11:40:20 PM
Thank you for the quick reply

You are welcome
Title: Re: Ad Management mod
Post by: Jordy3738 on April 15, 2008, 12:05:04 PM
I just signed up for SMF through Go Daddy. I am using the 1.1.4 version. I tried to install the ad mod through the administration download for this modification, it would not work. The reply said that either the version of SMF that I was using did not support the mod or the file was corrupt.

Can someone please help me get through this process of getting set up with the ad modification
Title: Re: Ad Management mod
Post by: sorosh1 on April 15, 2008, 12:30:58 PM
Quote from: sorosh1 on April 14, 2008, 04:11:31 PM
hai,

Awesome mod! I have installed it and anything goes well but i have one quastion:

How can i get the mod in the center (middle) of the page with this option: Display ads within posts.
I is now like this:

(http://img168.imageshack.us/img168/7127/addvp2.th.jpg) (http://img168.imageshack.us/my.php?image=addvp2.jpg)

And i use SMF 1.1.4 and dilbermc theme. Can anybody say how to get this is the middle?! What must i change and in to what must i change that?

Thanks for help


???Please help me babjusi!???
Title: Re: Ad Management mod
Post by: babjusi on April 15, 2008, 01:56:39 PM
Quote from: sorosh1 on April 15, 2008, 12:30:58 PM
Quote from: sorosh1 on April 14, 2008, 04:11:31 PM
hai,

Awesome mod! I have installed it and anything goes well but i have one quastion:

How can i get the mod in the center (middle) of the page with this option: Display ads within posts.
I is now like this:

(http://img168.imageshack.us/img168/7127/addvp2.th.jpg) (http://img168.imageshack.us/my.php?image=addvp2.jpg)

And i use SMF 1.1.4 and dilbermc theme. Can anybody say how to get this is the middle?! What must i change and in to what must i change that?

Thanks for help


???Please help me babjusi!???

To center the ads you can use the  center tags.

<center>The ad code here</center>

P.s. A friendly suggestion. Try to read through the posts in this topic before you ask as the chances are that your questions have been asked/answered before. That goes for any kind of questions. The search system is your best friend ;)
Title: Re: Ad Management mod
Post by: ccbtimewiz on April 15, 2008, 03:09:46 PM
mmm, I would use:

<div align="center">stuff</div>

The <center> tag is not permitted XHTML.
Title: Re: Ad Management mod
Post by: babjusi on April 15, 2008, 03:41:59 PM
Placing the ad codes between the center tags in the ad mod box works just fine
Title: Re: Ad Management mod
Post by: sorosh1 on April 15, 2008, 04:13:18 PM
haha thanks ;D
Title: Re: Ad Management mod
Post by: ccbtimewiz on April 15, 2008, 05:32:39 PM
Quote from: babjusi on April 15, 2008, 03:41:59 PM
Placing the ad codes between the center tags in the ad mod box works just fine

Of course it works fine. I said it's not valid XHTML by the W3C. (http://validator.w3.org/)

You of all people should know its a deprecated tag.
Title: Re: Ad Management mod
Post by: babjusi on April 15, 2008, 06:02:44 PM
Quote from: ccbtimewiz on April 15, 2008, 05:32:39 PM
Quote from: babjusi on April 15, 2008, 03:41:59 PM
Placing the ad codes between the center tags in the ad mod box works just fine

Of course it works fine. I said it's not valid XHTML by the W3C. (http://validator.w3.org/)

You of all people should know its a deprecated tag.

@ccbtimewiz, let us not turn this thread into one of those discussions, you of all people should know this or that.  The Poster asked how he/she could center the ads and I showed him/her that. He didn''t ask for a lecture on coding and such  ;). Me too by the way.
Title: Re: Ad Management mod
Post by: ccbtimewiz on April 15, 2008, 06:11:55 PM
I had and have no intention what-so-ever to have this discussion settle out in such a manner that you have described. I am by no means lecturing his code, yet giving a positive alternate to using said code.

Since SMF follows the W3C standards of web site building, I'm quite convinced that users wish to remain keeping their site "clean" and "tidy", I provided an alternate method that produces the same effect in which is appropriate to those standards.

And on this word, I would agree that further discussion on this specific topic of code standards is no longer required.
Title: Re: Ad Management mod
Post by: Scubasjl18 on April 15, 2008, 10:58:42 PM
Pretty easy question wasnt sure where else to put this, but I just installed this mod and it works fine on the core and classic themes which are based on the default, which my custom theme is also based on the default, but the themes do not come up. Just confused why it they wouldn't show, up now in the admin the link to the settins and add and ad are their, The theme using is Silent Wave, pm or respond. Thanks to anyone that helps
Title: Re: Ad Management mod
Post by: vmajor on April 17, 2008, 05:21:59 AM
I searched this topic, I truly did, but I could not find an answer. If anyone can help me PLEASE quote this message in your reply so I know that you are replying to my question, not someone else's 5 pages prior.

Thus.

I use SMF 1.1.4. I installed the v2.3 Ad Management mod. "Ad Management" does not show up in the Admin tab under Configuration. There is an extra space there, but no clickable text and definitively nothing that reads "Ad Management"

I already tried to fix this by setting All permissions to writable, but there was no change. I uninstalled and reinstalled already.

Please help.

Cheers,

Victor
Title: Re: Ad Management mod
Post by: perplexed on April 17, 2008, 05:25:40 AM
vmajor - what theme are you using and what language are you using?  (English and English-utf8 are different) and the mod only installs on default CORE theme.

Likewise:
Quote from: Scubasjl18 on April 15, 2008, 10:58:42 PM
Pretty easy question wasnt sure where else to put this, but I just installed this mod and it works fine on the core and classic themes which are based on the default, which my custom theme is also based on the default, but the themes do not come up. Just confused why it they wouldn't show, up now in the admin the link to the settins and add and ad are their, The theme using is Silent Wave, pm or respond. Thanks to anyone that helps

The mod only installs on the default CORE theme, so if you are using a different theme, you will have to edit your theme for the mod to show up.  Use the package parser in my signature and follow the instructions for 'theme edits'.
Title: Re: Ad Management mod
Post by: vmajor on April 17, 2008, 05:38:06 AM
Quote from: quiteperplexed on April 17, 2008, 05:25:40 AM
vmajor - what theme are you using and what language are you using?  (English and English-utf8 are different) and the mod only installs on default CORE theme.

Wow, speedy response! The theme is the default one. In fact I fixed the problem, the issue was lack of support for English UTF-8. I changed the language to English and now I can see the Ad Management. I created  two AdSense units... both a re blank, but I will give it some time before I start scratching my head again.

Cheers,

Victor
Title: Re: Ad Management mod
Post by: perplexed on April 17, 2008, 05:55:23 AM
depending on where you want the ads to appear, make sure you have checked all the boxes you need to in the admin section.   For example if you want them to appear between two categories, enter the correct category id numbers eg 1,2.  If you want them to appear at the top of the board, you do something different, and so on.

Also try just putting in some regular text as a test, in case you have something wrong with your adsense code.
Title: Re: Ad Management mod
Post by: paz1664 on April 18, 2008, 10:56:05 AM
Hi,

I've been trying to work out how to embed my Google map on my forum for a while now, I know theres the Google member map mod but thats not quite what I want.

I thought I'd try and treat it like an ad so I installed the Ad Management mod and Yes, it works exactly how I wanted, apart from one thing. It shows the map twice.

When I add the code in the content box and click the box for 'Display ads on every page right below the menu' and then save, then it puts the 'ad' in twice.

Is this to do with me entering the Google Map code insted of an Advert code?

I'm on SMF 1.1.4 and using default theme
Title: Re: Ad Management mod
Post by: vinod41 on April 18, 2008, 01:50:36 PM
Hi,

nice mod.. i'm trying to use it with back-n-black theme with some mods already there.
mod installs successfully via package install but not getting displayed anywhere....!!!

regards
Title: Re: Ad Management mod
Post by: Bilinda on April 18, 2008, 05:34:17 PM
Hi all, new girl here. Ummm, I have one question on this package. I know how to change the php lines, how to set permissions, how to do everything needed to install this,,, except one. Way at the bottom of the install docs it shows a bunch of Query stuff. I know nothing about that, not what it does or where it goes.

Can anyone explain that, or am I too over my head?  :-[
Title: Re: Ad Management mod
Post by: Bigguy on April 18, 2008, 08:08:30 PM
Can you post this query stuff. ??? Are you using a package parser to show you the edits. ???
Title: Re: Ad Management mod
Post by: Bilinda on April 18, 2008, 09:15:36 PM
Hi. All I did was click on the docs file so I could see first if it looked like something I can do. It shows all the things you need to change in the php and all, I can do that. But the last stuff is this:

Code
install.php
This file should not be able to execute standalone. You may have to run the following queries manually.

Query: [Select]
CREATE TABLE IF NOT EXISTS {$db_prefix}ads ( ADS_ID mediumint(8) unsigned NOT NULL auto_increment, NAME tinytext NOT NULL, CONTENT text NOT NULL, BOARDS tinytext, POSTS tinytext, HITS mediumint(8) NOT NULL default '0', TYPE smallint(4) NOT NULL default '0', show_index smallint(4) NOT NULL default '0', show_board smallint(4) NOT NULL default '0', show_threadindex smallint(4) NOT NULL default '0', show_lastpost smallint(4) NOT NULL default '0', show_thread smallint(4) NOT NULL default '0', show_bottom smallint(4) NOT NULL default '0', show_welcome smallint(4) NOT NULL default '0', show_topofpage smallint(4) NOT NULL default '0', show_towerright smallint(4) NOT NULL default '0', show_towerleft smallint(4) NOT NULL default '0', show_betweencategories smallint(4) NOT NULL default '0', show_underchildren smallint(4) NOT NULL default '0', PRIMARY KEY (ADS_ID) )
Query: [Select]
CREATE TABLE IF NOT EXISTS {$db_prefix}ads_settings ( variable tinytext NOT NULL, value text NOT NULL, PRIMARY KEY (variable(30)) )
Query: [Select]
ALTER IGNORE TABLE {$db_prefix}ads ADD show_lastpost smallint(4) NOT NULL default '0' AFTER show_threadindex
Query: [Select]
ALTER IGNORE TABLE {$db_prefix}ads ADD CATEGORY tinytext AFTER POSTS
Query: [Select]
ALTER IGNORE TABLE {$db_prefix}ads ADD show_underchildren smallint(4) NOT NULL default '0'
Query: [Select]
INSERT IGNORE INTO {$db_prefix}settings (variable, value) VALUES ('ads_displayAdsAdmin', '0'), ('ads_updateReports', '0'), ('ads_quickDisable', '0'), ('ads_lookLikePosts', '1')

I have NO idea what that all means?? Usually you just change the php code and maybe permissions, but what is that??
Title: Re: Ad Management mod
Post by: ccbtimewiz on April 18, 2008, 09:36:59 PM
MySQL. It is the code that runs the database. You'd literally run it via phpmyadmin on a command prompt.
Title: Re: Ad Management mod
Post by: Bilinda on April 18, 2008, 09:50:36 PM
Sigh,,, ok, well then it's more than I want to get into. Maybe there are other packages that let you put banners in the forum. Thank you for all your help, I do appreciate it!  :)
Title: Re: Ad Management mod
Post by: cr34t1v3 on April 18, 2008, 10:57:11 PM
Hi,
I have smf 1.1.4 + tiny portal 0.983 instaled, standar template, english language.
I got this message:
./Themes/default/index.template.php Test failed

And I tried to find the manual install instruction for admod on 1.1.4 on this link
http://custom.simplemachines.org/mods/index.php?mod=255
but it says 'Sorry, but this modification does not appear to be compatible with the selected version'
But it says that, its Compatible With: 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.0.10, 1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4 .
Which one is true?
Should I continue with the installation or not?
What modification do I need for the index.template.php?

Installed package:
1. TinyPortal 0.983
2. Bookmarks 1.1
3. SMF Sitemap 1.2.1
4. Pretty URLs - Base 0.8.2
5. Social Bookmarks 1.1
6. Googlebot & Spiders Mod 2.0.3

I also attached my index.template.php file to review.
Hope to hear from you soon
Thank you for your kind support
Title: Re: Ad Management mod
Post by: Bilinda on April 19, 2008, 12:02:04 PM
Well I talked to my host and they explained to me how to manually query the database through phpadmin. Soooo, I'm going to download it and see if I can install it. Thanks!
Title: Re: Ad Management mod
Post by: runitzme on April 19, 2008, 08:36:52 PM
Hey how come my ads only shows for admins and not guests or regular users?
Title: Re: Ad Management mod
Post by: Bigguy on April 19, 2008, 09:38:44 PM
Set your permissions.
Title: Re: Ad Management mod
Post by: LogWin on April 20, 2008, 02:07:33 PM
Hi,
smf 1.1.4  default template.
I´ve set permissions for all groups.

Banners on my forum come blank... .

link (http://canadiantrucker.info/smf1/index.php)

Still on some pages you can see the ads.

Need some help to fix it.
Or to determine the problem.

Thank you.
Title: Re: Ad Management mod
Post by: Bilinda on April 20, 2008, 02:11:45 PM
Hi everyone! I got this thing almost installed, I just have one code that seems to screw up. When I put this:

'; //Welcome Ads if (function_exists("show_welcomeAds")) { $ads = show_welcomeAds(); if(!empty($ads)) { echo '<td class="windowbg2">'; if($ads['type']==0) echo $ads['content']; else eval($ads['content']); echo '</td>'; } unset($ads); } echo '

Into my index.template I get that parser error on the page instead of my forum. I have everything else done, this is the only thing holding me up. Can anyone see something wrong in it??

THanks!!! :D
Title: Re: Ad Management mod
Post by: Bilinda on April 20, 2008, 05:05:11 PM
Well I spoke too soon. Every single query I did came back with an error, and I get errors when trying to see post. I took everything back out and will try some other time on a test forum. The one I have now is live.
Title: Re: Ad Management mod
Post by: LogWin on April 21, 2008, 12:22:11 AM
Hi, again.

I was not just waiting for help, but checked all files that were changed after I installed ad mode.
I used SMF Package Parser and found some mismatch in there.

Here is what parser says about the last file to be change:

QuoteIn file $sourcedir/ManagePermissions.php
Find:
         'pm' => array(



Replace with:
         'ad_manage' => array(
            'ad_manageperm' => false,
         ),
         'pm' => array(

But there's no file - ManagePermissions.php in SMF1.1.4 default theme.

There is a file - ManagePermissions.template.php
and it doesn't have that part of code in it... .

Can somebody explane me pls. is this an issue or just my misunderstanding?

Thank you.
Title: Re: Ad Management mod
Post by: Bigguy on April 21, 2008, 02:12:41 AM
Its in the Sources Directory:

QuoteIn file $sourcedir/ManagePermissions.php
Title: Re: Ad Management mod
Post by: LogWin on April 21, 2008, 10:43:36 AM
Quote from: Bigguy on April 21, 2008, 02:12:41 AM
Its in the Sources Directory:

QuoteIn file $sourcedir/ManagePermissions.php

Ooops.
Thank you for pointing.
Title: Re: Ad Management mod
Post by: miamizx on April 21, 2008, 11:20:44 AM
I've tried a few times to install this on my template but I just can't figure it out. Everything works fine on the Default theme.

SMF 1.1.4 / TinyPortal 0.9.8 / Theme kelo-lt by panic

Does anyone want to help me making this work on my template? I would love to have this working on my forums. http://www.aquariumclassifieds.com

Thanks!
Title: Re: Ad Management mod
Post by: JDuc on April 21, 2008, 12:44:54 PM
Without reading the past 129 pages....I'm going to post this and hope it hasn't been beaten to death already.

I'm trying to download this mod from the package server from within the back end for admins on my SMF forum.

Now, I'm a newbie to SMF (vBulletin veteran) so I'm not sure if I'm doing something wrong?

Any help would be appreciated!
Title: Re: Ad Management mod
Post by: sotall on April 21, 2008, 08:15:04 PM
Quote from: vmajor on April 17, 2008, 05:38:06 AM
In fact I fixed the problem, the issue was lack of support for English UTF-8. I changed the language to English and now I can see the Ad Management.

I could kiss you for saying that!  I just spent 3 hours with the exact same problem and this fixed it!!!!!


Thank you, thank you, thank you!
Title: Re: Ad Management mod
Post by: babylon on April 22, 2008, 06:47:12 PM
Hi, i just finished installing the mod manually for a friend.
Its installed in default template.
I have no errors.
Everything shows and works.
the permissions are set to everybody so everybody should be able to see the ads as i selected the option...

everybody can see it but guest dont... !
How can that be?
Title: Re: Ad Management mod
Post by: anakmacan on April 22, 2008, 11:30:15 PM
Smart mod :D
then how do i place ad exactly inside post like this?
(http://i30.tinypic.com/16701g3.gif)
what file do i have to change?
thx in advance.
Title: Re: Ad Management mod
Post by: kolt on April 23, 2008, 02:30:49 PM
I have a question!
Where can I add an avatar in the ads post! because is empty, and there are no avatars?

If is it possible to display an avatar?

Thanks in advance

Title: Re: Ad Management mod
Post by: gadgetrader on April 24, 2008, 09:51:40 AM
ok i was able to add this mod to my forum 1.1.4 theme rusted and ancient .. but the adds will not show .. do i have to change the theme code? and if soe what do i need to change .. please help really need this mod

thanks

gadgetrader.com/forum
Title: Re: Ad Management mod
Post by: miamizx on April 24, 2008, 10:22:36 AM
anyone want to help me edit my template files??
Title: Re: Ad Management mod
Post by: babylon on April 24, 2008, 10:43:26 AM
well support sucks....
ive send a pm to jerm yesterday when he was online asking him to help a bit here,the idiot never replied and isnt realy helping either...
Title: Re: Ad Management mod
Post by: miamizx on April 24, 2008, 11:24:52 AM
no need to get nasty, remember that these people are here to help and doing it for free and most of use use these mods to MAKE money...

anyway, I'm not in a huge hurry right now since my forum is just starting up but if someone wants to help I would really appreciate it, plus I can throw in some paypal cash =)
Title: Re: Ad Management mod
Post by: perplexed on April 24, 2008, 11:46:15 AM
Quote from: babylon on April 24, 2008, 10:43:26 AM
well support sucks....
ive send a pm to jerm yesterday when he was online asking him to help a bit here,the idiot never replied and isnt realy helping either...

well it does say in his forum signature:

QuoteSupport for the Ad Management mod
www.smfads.com (http://www.smfads.com)
Please post there instead of PM'ing me

Like most support staff, they ask you not to PM and you get a faster response and help the community by posting in the forums instead of by PM.  Of course insulting the staff doesnt win you any brownie points either.


Can you provide a link to your forum?

Do guests have permission to browse your forum and to view ads?


Quote from: gadgetrader on April 24, 2008, 09:51:40 AM
ok i was able to add this mod to my forum 1.1.4 theme rusted and ancient .. but the adds will not show .. do i have to change the theme code? and if soe what do i need to change .. please help really need this mod

thanks

gadgetrader.com/forum

yes the mods only install on the default theme, so if you are using another theme or another language then it will not display.

Go to the mod page for this mod, and you will find manual install instructions.

http://custom.simplemachines.org/mods/index.php?mod=255 (http://custom.simplemachines.org/mods/index.php?mod=255)  at the top right of the page.

Quote from: miamizx on April 24, 2008, 10:22:36 AM
anyone want to help me edit my template files??

miamizx - give the manual instructions a try, it's really quite easy. :)
Title: Re: Ad Management mod
Post by: Jay T on April 24, 2008, 11:52:13 AM
Quote from: rabbi45 on February 21, 2008, 01:51:41 AM
Help I got this error when I edited it using the edits for ad_mod found on smfads:

Template Parse Error!
There was a problem loading the /Themes/default/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected T_CLASS, expecting ',' or ';' in .../Themes/default/index.template.php on line 342

333: unset($ads);
334: }
335: echo '
336: //Welcome Ads
337: if (function_exists("show_welcomeAds"))
338: {
339: $ads = show_welcomeAds();
340: if(!empty($ads))
341: {

342: echo '<td class="windowbg2">';

343: if($ads['type']==0)
344: echo $ads['content'];
345: else
346: eval($ads['content']);




I am getting this same error with the Musiconica theme
Title: Re: Ad Management mod
Post by: gadgetrader on April 24, 2008, 11:57:58 AM
i cant find

template_menu();

at all
Title: Re: Ad Management mod
Post by: miamizx on April 24, 2008, 12:11:49 PM
Quote from: quiteperplexed on April 24, 2008, 11:46:15 AM



Quote from: miamizx on April 24, 2008, 10:22:36 AM
anyone want to help me edit my template files??

miamizx - give the manual instructions a try, it's really quite easy. :)

I tried but the template I'm using is so different than the default I become lost and confused... I'm a SMF noob and not too good with PHP.

I'll give it another shot today though, last time I tried it was late and I was tired.
Title: Re: Ad Management mod
Post by: kolt on April 24, 2008, 01:47:46 PM
Quote from: kolt on April 23, 2008, 02:30:49 PM
I have a question!
Where can I add an avatar in the ads post! because is empty, and there are no avatars?

If is it possible to display an avatar?

Thanks in advance




Can anyone reply to my question please???
Title: Re: Ad Management mod
Post by: babylon on April 24, 2008, 02:02:41 PM
@quiteperplexed

QuoteSupport for the Ad Management mod
www.smfads.com
Please post there instead of PM'ing me

That might be in jerm's sig,but that doesnt mean anything.
jerm's support on www.smfads.com is just as crappy there as its here.
i think he's a lazy bum, thats my conclussion anyway.
as he doesnt help out ,and the unanswered topics that are days old(including his site) proves that.
Title: Re: Ad Management mod
Post by: perplexed on April 24, 2008, 02:19:54 PM
Quote from: babylon on April 24, 2008, 02:02:41 PM
@quiteperplexed

QuoteSupport for the Ad Management mod
www.smfads.com (http://www.smfads.com)
Please post there instead of PM'ing me

That might be in jerm's sig,but that doesnt mean anything.
jerm's support on www.smfads.com (http://www.smfads.com) is just as crappy there as its here.
i think he's a lazy bum, thats my conclussion anyway.
as he doesnt help out ,and the unanswered topics that are days old(including his site) proves that.

well again I would say...

Quote from: quiteperplexed on April 24, 2008, 11:46:15 AM
Of course insulting the staff doesnt win you any brownie points either.

Can you provide a link to your forum?

Do guests have permission to browse your forum and to view ads?


Everyone here is a volunteer, including the staff members, who all have lives outside of this forum, as is the case with everyone who posts here.  The software is free, the assistance is free, sometimes it might take a little while to get your answer but insulting the Mod Author isn't the way to do it. 

You also didn't answer my questions above :)
Title: Re: Ad Management mod
Post by: babylon on April 24, 2008, 03:52:19 PM
Well it wasnt my intention to insult him.
But this is what i wrote to him yesterday by PM..


Quotei see your online...
do you have any time to reply on my support request in the ad mod topic ?

Isnt that nice or not ?
I like to think so...


As for your question quiteperplexed

Yes forums are set to public...
Guests can read etc...but not post...
Board has standard configuration...
Mod is set to show everything on every board.
Title: Re: Ad Management mod
Post by: perplexed on April 24, 2008, 03:56:24 PM
and guest permission "Enable ads"  box is checked?
Title: Re: Ad Management mod
Post by: babylon on April 24, 2008, 04:03:10 PM
mmm,thats a good one...
translated this one is called....unregistered guests..
huh...whats the difference between unregistered guests and guests..?

When i selected that the ads showed..
But the normal guests is selected for ads..

That cant be right huh...
Title: Re: Ad Management mod
Post by: kolt on April 25, 2008, 07:22:16 AM
Bump, help please
Title: Re: Ad Management mod
Post by: miamizx on April 25, 2008, 01:11:44 PM
Well I finally got this working, just had to massage the code into my template files, overall I'm very happy with the options, this is a very good mod!
Title: Re: Ad Management mod
Post by: ccbtimewiz on April 25, 2008, 01:25:03 PM
Quote from: kolt on April 25, 2008, 07:22:16 AM
Bump, help please

Find the avatar display, add an statement that checks if its an ad, then put your own image.
Title: Re: Ad Management mod
Post by: kolt on April 25, 2008, 03:44:15 PM
Quote from: ccbtimewiz on April 25, 2008, 01:25:03 PM
Quote from: kolt on April 25, 2008, 07:22:16 AM
Bump, help please

Find the avatar display, add an statement that checks if its an ad, then put your own image.

where can I find the avatar display please? please can you tell me all the instructions what to do?

thanks in andvance?
Title: Re: Ad Management mod
Post by: kolt on April 28, 2008, 01:42:16 PM
No reply?
Title: Re: Ad Management mod
Post by: Bigguy on April 29, 2008, 11:53:23 AM
Did you ever think he might be busy with real life....huh. Where do you get off calling anyone a lazy bum. Do you know what Jerm does around here. ??? DO you know what his schedule is like for SMF OR real life. ??? I guess not. That was a bit rude and I don't blame him if he doesn't help you. I have been providing support for the ad mod for a year or so now not only in this thread but on his site and mine. Just because people get busy with other things is absolutely NO reason to call them lazy or a bum. I think you can wait for any help to do with the ad mod unless someone else feels you deserve it but I certainly won't be giving it to you. As for myself I have been very busy lately and have not been able to provide support for this mod or any other ones for that matter. I will try to get on later today or tomorrow to answer some of these questions.

Quote from: babylon on April 24, 2008, 02:02:41 PM
@quiteperplexed

QuoteSupport for the Ad Management mod
www.smfads.com
Please post there instead of PM'ing me

That might be in jerm's sig,but that doesnt mean anything.
jerm's support on www.smfads.com is just as crappy there as its here.
i think he's a lazy bum, thats my conclussion anyway.
as he doesnt help out ,and the unanswered topics that are days old(including his site) proves that.
Title: Re: Ad Management mod
Post by: perplexed on April 29, 2008, 11:54:51 AM
thanks :)

welcome back BigGuy
Title: Re: Ad Management mod
Post by: Bigguy on April 29, 2008, 11:59:30 AM
Thanks quiteperplexed. :)
Title: Re: Ad Management mod
Post by: ccbtimewiz on April 29, 2008, 12:31:55 PM
Quote from: kolt on April 25, 2008, 03:44:15 PM
Quote from: ccbtimewiz on April 25, 2008, 01:25:03 PM
Quote from: kolt on April 25, 2008, 07:22:16 AM
Bump, help please

Find the avatar display, add an statement that checks if its an ad, then put your own image.

where can I find the avatar display please? please can you tell me all the instructions what to do?

thanks in andvance?

I've edited mine quite a bit actually, but I guess that doesn't really matter. Do this:

Find:
Code (display.template.php) Select
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
            {
            if ($context['user']['is_logged'])
               echo '<a href="'.$scripturl.'?action=profile;u='.$message['member']['id'].'">', $message['member']['avatar']['image'], '</a><br />';
            elseif ($context['user']['is_guest'])
               echo '<a href="'.$scripturl.'?action=register">', $message['member']['avatar']['image'], '</a><br />';
               echo '<br />';
            }


Replace with:
Code (display.template.php) Select
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
            {
            if ($context['user']['is_logged'])
               echo '<a href="'.$scripturl.'?action=profile;u='.$message['member']['id'].'">', $message['member']['avatar']['image'], '</a><br />';
            elseif ($context['user']['is_guest'])
               echo '<a href="'.$scripturl.'?action=register">', $message['member']['avatar']['image'], '</a><br />';
               echo '<br />';
            }
                if ($context['user']['is_logged']) {
            echo 'whatever code for the ad'; }


Input the check ad-function in the "whatever html code for the ad".
Title: Re: Ad Management mod
Post by: kolt on April 29, 2008, 08:52:32 PM
Thank you ccbtimewiz for the reply,

I edited the code now but I don't understand what to do after!

I'm really sorry but I will ask you to help me what can I do specifically?

Title: Re: Ad Management mod
Post by: Bigguy on April 29, 2008, 09:23:00 PM
Put your ad code here:

echo 'whatever code for the ad'; }

found at the bottom of the edit.

EDIT:

Change this:

whatever code for the ad

with your ad code.
Title: Re: Ad Management mod
Post by: kolt on April 29, 2008, 09:52:57 PM
The code is not the same
This is the code that I  have in Display.template.php

Quoteif (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
            echo '
                        <div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';

         // Show their personal text?
         if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
            echo '
                        ', $message['member']['blurb'], '<br />
                        <br />';

         // This shows the popular messaging icons.
         echo '


And "ad code" you mean image like below?

Quoteecho '<img src="http://image.gif"border="">'; }
Title: Re: Ad Management mod
Post by: Bigguy on April 29, 2008, 10:37:42 PM
Did you do the code changes that ccbtimewiz said to do. ???
Title: Re: Ad Management mod
Post by: kolt on April 29, 2008, 11:32:20 PM
No the Code that ccbtimewiz said to me to change, does not exist in the display.template.php

Is only the code that I quote! I think is right, I have smf 1.1.4

Any idea
Title: Re: Ad Management mod
Post by: Bigguy on April 30, 2008, 09:59:28 AM
Your using a custom theme then am I right. That edit must have been for the default theme. Can you find any of the code he posted. ???
Title: Re: Ad Management mod
Post by: ccbtimewiz on April 30, 2008, 12:46:50 PM
That edit was indeed for the default theme.

If you have a custom theme that uses its own display.template.php, then attach it to your next post.
Title: Re: Ad Management mod
Post by: FastMoneyMonitor on April 30, 2008, 04:59:49 PM
Hello everyone.  I just tried to install the ad mod for version 1.1.4 and i get the following error when trying to run install.php.  can anyone offer advice?  Im brand new at this.  Thank you in advance.

Fatal error: Call to undefined function: db_query() in /home/content/m/s/h/mshirley007/html/forum/install.php on line 6
Title: Re: Ad Management mod
Post by: kolt on April 30, 2008, 05:08:34 PM
I'm using the default theme!
Title: Re: Ad Management mod
Post by: Bigguy on April 30, 2008, 09:50:04 PM
@ FastMoneyMonitor: A few pages back I think it is Jerm posted the code that is needed to do the database queries manually. If you back up your database first you should be able to use that to do the database install.
Title: Re: Ad Management mod
Post by: ccbtimewiz on May 01, 2008, 12:29:00 PM
Quote from: kolt on April 30, 2008, 05:08:34 PM
I'm using the default theme!

... are you using SMF 1.1.x or 2.x BETA? If you're using SMF 1.1.4, then the code I posted SHOULD relate to your templates quite a bit. I admit I hacked it a bit (mostly getting avatars to link back to the profiles) so you wouldn't find every piece of the code in there. Search for:

if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
Title: Re: Ad Management mod
Post by: Ikhsan4488 on May 01, 2008, 03:06:33 PM
can i use this mod for smf 1.1.5?
Title: Re: Ad Management mod
Post by: babjusi on May 01, 2008, 03:08:01 PM
Quote from: Ikhsan4488 on May 01, 2008, 03:06:33 PM
can i use this mod for smf 1.1.5?

Yes. This mod can be use with all the versions of the 1.1. series
Title: Re: Ad Management mod
Post by: kolt on May 02, 2008, 08:54:51 AM
Hello ccbtimewiz, I'm attaching the file of "Display.template.php"

Can you please modify for me?

I'm using the "Dafault Theme, version 1.1.5" and the version of Ad Managment is 2.3

I will really thank you!
Title: Re: Ad Management mod
Post by: maxx+ on May 04, 2008, 02:44:01 AM
Hello!
I try to install this mod ;and others but i cant install them because it's appear a message with"must file must be writable".
I try to do update and i recive error message with "the file it,s corupted ".
Can someone help me?
Title: Re: Ad Management mod
Post by: Bigguy on May 04, 2008, 11:26:48 AM
Check permissions on all your SMF files. THey should be set to at least 755; some may have to be 777. If you have ftp then ftp into your account and right click on the folder or file and go to properties, there is where you can change the permissions.
Title: Re: Ad Management mod
Post by: ge master on May 04, 2008, 11:06:04 PM
Just to verify...I will need to modify manually this mod to use on a different theme. However, when SMF version 2 becomes non beta, do I have to redo all the manual changes? Even moving from 1.1.4 to 1.1.5 means redoing the changes? Sorry to sound like a newb, but I am what I am. Thanks.
Title: Re: Ad Management mod
Post by: maxx+ on May 05, 2008, 01:10:23 AM
Quote from: Bigguy on May 04, 2008, 11:26:48 AM
Check permissions on all your SMF files. THey should be set to at least 755; some may have to be 777. If you have ftp then ftp into your account and right click on the folder or file and go to properties, there is where you can change the permissions.

I do with success the update ,but manually.
Can  you tell me witch wiles neds to be writable ?
Title: Re: Ad Management mod
Post by: Bigguy on May 05, 2008, 05:34:11 PM
@ ge master: More than likely yes.

@ maxx_oo7: Make all your template files writable.
Title: Re: Ad Management mod
Post by: symon on May 05, 2008, 07:07:55 PM
Dose anyone know how to uninstall this mod and what parts of the DB to remove?

Thanks :)
Title: Re: Ad Management mod
Post by: stageducky on May 06, 2008, 01:44:49 AM
Due to database corruption I have to upload a backdated count of the ads hits.

Is there a way where I can rectify this through phpmyadmin? by manually keying in the correct figure? Anyone please advice.
Title: Re: Ad Management mod
Post by: tink on May 06, 2008, 01:42:21 PM
I am running SMF1.1.4 default theme. I have downloaded the 2.3 ad management mod.  I have already put my ads on and they are in my welcome user section of the board at the top on every page.

Only my admins can see them, none of the others members can.  When I went to set the permissions for the members to see the ads there is no permission for it.

I am new to this, but I am not finding where I can enable the ads to be seen by everyone.
Title: Re: Ad Management mod
Post by: Bigguy on May 08, 2008, 07:48:16 PM
@ symon: Leaving the database fields in won't harm your SMF install.

@ stageducky; Not sure what the table is called but there is a table in the database for the ad mod. I would search it to start.

@ tink: Check to make sure all the edits were done. Are there any errors in the error log.
Title: Re: Ad Management mod
Post by: kolt on May 08, 2008, 10:15:57 PM
Please Can Anyone help me?
Title: Re: Ad Management mod
Post by: stageducky on May 09, 2008, 02:49:12 AM
Hi biguy,

I know the table but I can't seem to find the part where I can manual key in the figure.

can you tell me what to do when I'm at the table?
Title: Re: Ad Management mod
Post by: no_quarter on May 09, 2008, 06:23:51 AM
I'm trying to use www.smfads.com's fine functions
1. you must uploade files to ftp (Done)
2. you must edit some of the files already there (Done)
3. you must run som queries (see them at the bottom). How do I do that, it may be simple, but not to me, I run into problems. I've entered phpmyadmin, go to myhomepage_smf, click SQL and run it. I get error messages

Start of Error message.
CREATE TABLE IF NOT EXISTS {$db_prefix}ads(

ADS_ID mediumint( 8 ) unsigned NOT NULL AUTO_INCREMENT ,
NAME tinytext NOT NULL ,
CONTENT text NOT NULL ,
BOARDS tinytext,
POSTS tinytext,
HITS mediumint( 8 ) NOT NULL default '0',
TYPE smallint( 4 ) NOT NULL default '0',
show_index smallint( 4 ) NOT NULL default '0',
show_board smallint( 4 ) NOT NULL default '0',
show_threadindex smallint( 4 ) NOT NULL default '0',
show_lastpost smallint( 4 ) NOT NULL default '0',
show_thread smallint( 4 ) NOT NULL default '0',
show_bottom smallint( 4 ) NOT NULL default '0',
show_welcome smallint( 4 ) NOT NULL default '0',
show_topofpage smallint( 4 ) NOT NULL default '0',
show_towerright smallint( 4 ) NOT NULL default '0',
show_towerleft smallint( 4 ) NOT NULL default '0',
show_betweencategories smallint( 4 ) NOT NULL default '0',
show_underchildren smallint( 4 ) NOT NULL default '0',
PRIMARY KEY ( ADS_ID )
)

MySQL returnerede: 

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{$db_prefix}ads (
ADS_ID mediumint(8) unsigned NOT NULL auto_increment,
NAME t' at line 1
End of error message
----------------------------------
Queries to be entered, I've only tried the first so far, results above
Query: [Select]
CREATE TABLE IF NOT EXISTS {$db_prefix}ads (
ADS_ID mediumint(8) unsigned NOT NULL auto_increment,
NAME tinytext NOT NULL,
CONTENT text NOT NULL,
BOARDS tinytext,
POSTS tinytext,
HITS mediumint(8) NOT NULL default '0',
TYPE smallint(4) NOT NULL default '0',
show_index smallint(4) NOT NULL default '0',
show_board smallint(4) NOT NULL default '0',
show_threadindex smallint(4) NOT NULL default '0',
show_lastpost smallint(4) NOT NULL default '0',
show_thread smallint(4) NOT NULL default '0',
show_bottom smallint(4) NOT NULL default '0',
show_welcome smallint(4) NOT NULL default '0',
show_topofpage smallint(4) NOT NULL default '0',
show_towerright smallint(4) NOT NULL default '0',
show_towerleft smallint(4) NOT NULL default '0',
show_betweencategories smallint(4) NOT NULL default '0',
show_underchildren smallint(4) NOT NULL default '0',
PRIMARY KEY (ADS_ID)
)
Query: [Select]
CREATE TABLE IF NOT EXISTS {$db_prefix}ads_settings (
variable tinytext NOT NULL,
value text NOT NULL,
PRIMARY KEY (variable(30))
)
Query: [Select]
ALTER IGNORE TABLE {$db_prefix}ads
ADD  show_lastpost smallint(4) NOT NULL default '0' AFTER show_threadindex
Query: [Select]
ALTER IGNORE TABLE {$db_prefix}ads
ADD  CATEGORY tinytext AFTER POSTS
Query: [Select]
ALTER IGNORE TABLE {$db_prefix}ads
ADD  show_underchildren smallint(4) NOT NULL default '0'
Query: [Select]
INSERT IGNORE INTO {$db_prefix}settings
(variable, value)
VALUES ('ads_displayAdsAdmin', '0'),
('ads_updateReports', '0'),
('ads_quickDisable', '0'),
('ads_lookLikePosts', '1')
Title: Re: Ad Management mod
Post by: Bigguy on May 09, 2008, 07:31:18 AM
@ stageducky: Im sorry Im not really good with databases. There should be someone here that would be able to help with that though.

@ no_quarter: Why are you trying to install manually. ???
Title: Re: Ad Management mod
Post by: grevan on May 10, 2008, 12:52:55 AM
Hello everyone.
I installed this MOD, but i can´t find the "link" to open the configuration screen for the Ad Management Mod. I´m using the Pn-Pn Template.
Thank you for any help.
Title: Re: Ad Management mod
Post by: prottoy on May 10, 2008, 05:24:47 AM
can any one plz help me how to do this for 'kelo-it' theme....plz plz plz help...
Title: Re: Ad Management mod
Post by: MissyNL on May 10, 2008, 06:17:28 AM
hello,

I have installed the mod and the install went good. I have smf 1.1.5 version.

When i wanted to place and ad on the index page, it did not show under the tab.

When i decided to place it then on every page, because the indexpage did not work i only got a link.

Pleace see the attached file:) 

does anybody know what it is?
Title: Re: Ad Management mod
Post by: Bigguy on May 10, 2008, 05:39:08 PM
Use img tags before and after the url to the image:

[img]http://www.yoursite.com/image.gif[/img]
Title: Re: Ad Management mod
Post by: MissyNL on May 11, 2008, 07:41:59 AM
Quote from: Bigguy on May 10, 2008, 05:39:08 PM
Use img tags before and after the url to the image:

[img]http://www.yoursite.com/image.gif[/img]

Nope.. doesn't work...

But i've heard that ad mod isn't capible with 1.1.5 ... is that correct?
Title: Re: Ad Management mod
Post by: kolt on May 11, 2008, 07:53:25 PM
please anyone can replay to me pleaseeee!

I need to put an avatar in add post!

help
Title: Re: Ad Management mod
Post by: tink on May 11, 2008, 08:25:29 PM
Quote from: Bigguy on May 08, 2008, 07:48:16 PM
@ tink: Check to make sure all the edits were done. Are there any errors in the error log.

edits, as in edits on my admin section or edits to the programming.

I have no error messages about this
Title: Re: Ad Management mod
Post by: Bigguy on May 11, 2008, 11:28:00 PM
Edits that the mod made to your SMF install while it installed.
Title: Re: Ad Management mod
Post by: tink on May 12, 2008, 01:23:59 AM
Quote from: Bigguy on May 11, 2008, 11:28:00 PM
Edits that the mod made to your SMF install while it installed.

I got no error messages when Installed it.
Title: Re: Ad Management mod
Post by: DareDevil1990 on May 13, 2008, 06:25:52 AM
hey i think this mod is not wrking in smf 1.1.5 please can anyone edit this mod to work with smf1.1.5 pleasee i need this mod badly and that too fast  :'(
Title: Re: Ad Management mod
Post by: ccbtimewiz on May 13, 2008, 12:28:55 PM
It should work fine on SMF 1.1.5

Open the install.xml

Find something like:
<install for>1.1.4</install>

And change to:
<install for>1.1.5</install>

It's not exactly those tags, but I think you'll find it. ^^
Title: Re: Ad Management mod
Post by: rfresh on May 13, 2008, 12:32:35 PM
I'm using 1.1.5 too and I would like to install Ad Management as well. Where is install.xml file located?

I don't see this mod in the package manager so I guess that means I have to manually install it? If so, could someone explain how I do that? I'm very new to SMF - thanks...
Title: Re: Ad Management mod
Post by: MissyNL on May 13, 2008, 06:03:39 PM
Quote from: rfresh on May 13, 2008, 12:32:35 PM
I'm using 1.1.5 too and I would like to install Ad Management as well. Where is install.xml file located?

I don't see this mod in the package manager so I guess that means I have to manually install it? If so, could someone explain how I do that? I'm very new to SMF - thanks...

have you received any faults with uploading the file and/ or installing it?

Quote from: kolt on May 11, 2008, 07:53:25 PM
please anyone can replay to me pleaseeee!

I need to put an avatar in add post!

help

What do you mean? you want to upload an avatar to a post or want to place it in a post...
Title: Re: Ad Management mod
Post by: bjraines on May 13, 2008, 07:33:37 PM
Hello,

whenever a guest views my boards , the right tower breaks and falls to the bottom of the message.

I have looked through the code several times and cannot find anything wrong

You can see it here:

www.mychemistrytutor.com/forums

do not login just click on one of the topics in the most recent list, the right tower will fall?

Title: Re: Ad Management mod
Post by: DareDevil1990 on May 13, 2008, 08:19:09 PM
Quote from: ccbtimewiz on May 13, 2008, 12:28:55 PM
It should work fine on SMF 1.1.5

Open the install.xml

Find something like:
<install for>1.1.4</install>

And change to:
<install for>1.1.5</install>

It's not exactly those tags, but I think you'll find it. ^^
here is the xml file can u please edit it for me as i am very new to smf and was unable to find what u said :(
http://rapidshare.com/files/114728668/install.xml.html
Title: Re: Ad Management mod
Post by: MissyNL on May 14, 2008, 06:58:11 AM
Quote from: keshav on May 13, 2008, 08:19:09 PM
Quote from: ccbtimewiz on May 13, 2008, 12:28:55 PM
It should work fine on SMF 1.1.5

Open the install.xml

Find something like:
<install for>1.1.4</install>

And change to:
<install for>1.1.5</install>

It's not exactly those tags, but I think you'll find it. ^^
here is the xml file can u please edit it for me as i am very new to smf and was unable to find what u said :(
http://rapidshare.com/files/114728668/install.xml.html


if you open the file in a editor like notepad and you push in CRTL and F together you can search... you will probaly find several options.. so look closely...it's better if you try yourself first.. because that's the only way to learn how to add and/ or replace codes.. in my experience it probably will not be the first time that you have to change a code, if you want to install mods and stuff..
Title: Re: Ad Management mod
Post by: kmslogic on May 14, 2008, 03:07:15 PM
The ad management mod is not successfully installing for me either.  The installation proceeds silently and apparently normally, but the Ad Management option in Admin does not appear and the mods to not appear to have taken to the default theme.

FWIW, the <install for> tag is in package-info.xml and is set to

   <install for="1.1 RC2, 1.1 RC3, 1.1, 1.1.1-1.1.99">

so that isn't the problem...

Title: Re: Ad Management mod
Post by: madfiddler on May 14, 2008, 08:16:17 PM
Same for me.
Title: Re: Ad Management mod
Post by: babjusi on May 14, 2008, 08:25:15 PM
Try the one attached at my post. It installs and un-installs clean in a 1.1.5 version.
Title: Re: Ad Management mod
Post by: kmslogic on May 14, 2008, 09:34:22 PM
For me the culprit was index.php in the httpdocs/ root folder not being set to writable.  I had checked all the other files in sources/themes etc and had somehow missed this one.  It sure would be great if the package manager detected permission problems and reported them.
Title: Re: Ad Management mod
Post by: madfiddler on May 15, 2008, 01:19:22 PM
Quote from: babjusi on May 14, 2008, 08:25:15 PM
Try the one attached at my post. It installs and un-installs clean in a 1.1.5 version.

Thanks for that.

For me, that installs... but there is no setup page in the admin screen unfortunately :(

Looks like, whilst my index.php is writable, it certainly hasn't written this  to it. <file name="$boarddir/index.php">
<operation>
<search position="before"><![CDATA[ 'trackip' => array('Profile.php', 'trackIP'),]]></search>
<add><![CDATA[
'admod' => array('Ads.php', 'Ads'),]]></add>
</operation>

<operation>
<search position="before"><![CDATA[require_once($sourcedir . '/Security.php');]]></search>
<add><![CDATA[
if (file_exists($sourcedir . '/LoadAds.php'))
require_once($sourcedir . '/LoadAds.php');]]></add>
</operation>
Title: Re: Ad Management mod
Post by: babjusi on May 15, 2008, 01:23:17 PM
Quote from: madfiddler on May 15, 2008, 01:19:22 PM
Quote from: babjusi on May 14, 2008, 08:25:15 PM
Try the one attached at my post. It installs and un-installs clean in a 1.1.5 version.

Thanks for that.

For me, that installs... but there is no setup page in the admin screen unfortunately :(

Looks like, whilst my index.php is writable, it certainly hasn't written anything to it.

What is the default language set at your forum?
Title: Re: Ad Management mod
Post by: madfiddler on May 15, 2008, 01:25:26 PM
english
Title: Re: Ad Management mod
Post by: Gunstra on May 15, 2008, 09:58:22 PM
I have the same problem with ad_mod_1-1-x_v2-3.zip, it does not show any settings links and it as well as couple other mods don't even show in the side box, it shows blank spaces, I have included screenshots to you.
Title: Re: Ad Management mod
Post by: babjusi on May 15, 2008, 10:36:07 PM
Is it english or english utf8 cause there is a difference between the 2
Title: Re: Ad Management mod
Post by: adelshehadeh on May 16, 2008, 04:14:50 AM
I am using SMF 1.1.4 and using the default theme

Whenever i create an ad, i cannot delete it. suppose i created 1 ad and deleted it then created a new ad. The new ad will be duplicated. This will cause the ads to duplicate

Please see the snapshot attached

Title: Re: Ad Management mod
Post by: madfiddler on May 16, 2008, 06:01:14 AM
Quote from: babjusi on May 15, 2008, 10:36:07 PM
Is it english or english utf8 cause there is a difference between the 2

Hiya,

Don't think I've converted to utf8 yet. Pretty sure of that. Any quick way I can find out?

Thanks,

m
Title: Re: Ad Management mod
Post by: aussie86 on May 16, 2008, 06:12:43 AM
i've got the same issue "Dublicate Ads Appear !" how do we fix this?

Thanx for your help :D cheers
Title: Re: Ad Management mod
Post by: babjusi on May 16, 2008, 11:25:43 AM
Quote from: madfiddler on May 16, 2008, 06:01:14 AM
Quote from: babjusi on May 15, 2008, 10:36:07 PM
Is it english or english utf8 cause there is a difference between the 2

Hiya,

Don't think I've converted to utf8 yet. Pretty sure of that. Any quick way I can find out?

Thanks,

m

You can check the default language at Server Settings in the acp of your forum
Title: Re: Ad Management mod
Post by: bjraines on May 16, 2008, 11:44:48 AM
I jsut did an install of ad_mod_1-1-x_v2-3.zip   on a clean 1.1.5 install and my everything passed on install yet I don't have a menu link in my admin section.

Title: Re: Ad Management mod
Post by: bjraines on May 16, 2008, 11:48:09 AM
Quote from: babjusi on May 14, 2008, 08:25:15 PM
Try the one attached at my post. It installs and un-installs clean in a 1.1.5 version.

This version did not work for me either
Title: Re: Ad Management mod
Post by: kolt on May 16, 2008, 05:03:58 PM
Anyone can help me please! Can you just tell me how can I put the avatar in post banner! I have asked it more than 2 weeks, please don't ignore my post!

Thanks in advance
Title: Re: Ad Management mod
Post by: Gunstra on May 16, 2008, 05:10:42 PM
trust me it's like pulling teeth to get any answers on this board hehe
Title: Re: Ad Management mod
Post by: ccbtimewiz on May 16, 2008, 05:29:04 PM
Quote from: Gunstra on May 16, 2008, 05:10:42 PM
trust me it's like pulling teeth to get any answers on this board hehe

... the quality of the support question and politeness reflects the answers and support given.
Title: Re: Ad Management mod
Post by: MissyNL on May 16, 2008, 05:30:19 PM
Quote from: kolt on May 16, 2008, 05:03:58 PM
Anyone can help me please! Can you just tell me how can I put the avatar in post banner! I have asked it more than 2 weeks, please don't ignore my post!

Thanks in advance

this seems very stupid.. but can you make a screenshot of where you want it? I do not know precice where you want it.
Title: Re: Ad Management mod
Post by: Gunstra on May 16, 2008, 06:12:01 PM
mod uninstalled, but thanks anyway for nothing
Title: Re: Ad Management mod
Post by: ccbtimewiz on May 16, 2008, 06:25:44 PM
Quote from: Gunstra on May 16, 2008, 06:12:01 PM
mod uninstalled, but thanks anyway for nothing

... attach your modsettings.php file and I'll fix that for you. I believe that fixing this problem was mentioned on the other 132 pages of posts on this topic.
Title: Re: Ad Management mod
Post by: PharCyDeD on May 16, 2008, 06:31:42 PM
How can I make the ads show to my visitors too? When I log out and view my forum the ads are just gone...  :(
Title: Re: Ad Management mod
Post by: ccbtimewiz on May 16, 2008, 06:33:35 PM
Quote from: PharCyDeD on May 16, 2008, 06:31:42 PM
How can I make the ads show to my visitors too? When I log out and view my forum the ads are just gone...  :(

This has been explained thousands of times. Go to permissions of the membergroup in question and literally click the toggle.
Title: Re: Ad Management mod
Post by: Gunstra on May 16, 2008, 06:56:38 PM
Quote from: ccbtimewiz on May 16, 2008, 06:25:44 PM
Quote from: Gunstra on May 16, 2008, 06:12:01 PM
mod uninstalled, but thanks anyway for nothing

... attach your modsettings.php file and I'll fix that for you. I believe that fixing this problem was mentioned on the other 132 pages of posts on this topic.

Here you are....attached and thank you
Title: Re: Ad Management mod
Post by: kolt on May 16, 2008, 07:12:13 PM
Quote from: Lafemme on May 16, 2008, 05:30:19 PM
Quote from: kolt on May 16, 2008, 05:03:58 PM
Anyone can help me please! Can you just tell me how can I put the avatar in post banner! I have asked it more than 2 weeks, please don't ignore my post!

Thanks in advance

this seems very stupid.. but can you make a screenshot of where you want it? I do not know precice where you want it.


Here screen shot, I know that is stupid but I like it, I have see it in other forums.
Title: Re: Ad Management mod
Post by: ccbtimewiz on May 16, 2008, 07:27:24 PM
Quote from: Gunstra on May 16, 2008, 06:56:38 PM
Quote from: ccbtimewiz on May 16, 2008, 06:25:44 PM
Quote from: Gunstra on May 16, 2008, 06:12:01 PM
mod uninstalled, but thanks anyway for nothing

... attach your modsettings.php file and I'll fix that for you. I believe that fixing this problem was mentioned on the other 132 pages of posts on this topic.

Here you are....attached and thank you

Very strange. The Ad-Managment mod hacks aren't in this file. Did you get rid of them?
Title: Re: Ad Management mod
Post by: madfiddler on May 16, 2008, 07:37:03 PM
Quote from: babjusi on May 16, 2008, 11:25:43 AM
Quote from: madfiddler on May 16, 2008, 06:01:14 AM
Quote from: babjusi on May 15, 2008, 10:36:07 PM
Is it english or english utf8 cause there is a difference between the 2

Hiya,

Don't think I've converted to utf8 yet. Pretty sure of that. Any quick way I can find out?

Thanks,

m

You can check the default language at Server Settings in the acp of your forum

Just says English for me.. Thanks..
Title: Re: Ad Management mod
Post by: Gunstra on May 16, 2008, 08:45:48 PM
Quote from: ccbtimewiz on May 16, 2008, 07:27:24 PM
Quote from: Gunstra on May 16, 2008, 06:56:38 PM
Quote from: ccbtimewiz on May 16, 2008, 06:25:44 PM
Quote from: Gunstra on May 16, 2008, 06:12:01 PM
mod uninstalled, but thanks anyway for nothing

... attach your modsettings.php file and I'll fix that for you. I believe that fixing this problem was mentioned on the other 132 pages of posts on this topic.

Here you are....attached and thank you

Very strange. The Ad-Managment mod hacks aren't in this file. Did you get rid of them?

No it is reinstalled the same way
Title: Re: Ad Management mod
Post by: popomovies on May 17, 2008, 01:26:58 AM
I'm using 1.1.5 and the Mod installs but cannot access it. Do I need to modify it? I don't see any category of it anywhere in my CPANEL.
Title: Re: Ad Management mod
Post by: aussie86 on May 17, 2008, 03:48:19 AM
i've got a issue with "Dublicate Ads"
i've got 1.1.4 and the new version of Ad Management mod, 2.3 and when i add a new Ad, its makes two instead of 1

If i uninstall the mod and reinstall the ads will still be there

Plus, the ads are not showing on my forum, would this dublicated ads have something to do with it?

How do i fix this issue?

I've got another 1.1.4 forum and the mod works fine

Cheers, thanx for any help regarding this

Thanx for your help  cheers
Title: Re: Ad Management mod
Post by: PharCyDeD on May 17, 2008, 10:02:54 AM
Quote from: ccbtimewiz on May 16, 2008, 06:33:35 PM
Quote from: PharCyDeD on May 16, 2008, 06:31:42 PM
How can I make the ads show to my visitors too? When I log out and view my forum the ads are just gone...  :(

This has been explained thousands of times. Go to permissions of the membergroup in question and literally click the toggle.

Thank you. I didn't know it had already been discussed and thought it would be easier to ask rather than go through 134 pages of text.
Title: Re: Ad Management mod
Post by: MissyNL on May 17, 2008, 10:09:03 AM
Quote from: PharCyDeD on May 17, 2008, 10:02:54 AM
Quote from: ccbtimewiz on May 16, 2008, 06:33:35 PM
Quote from: PharCyDeD on May 16, 2008, 06:31:42 PM
How can I make the ads show to my visitors too? When I log out and view my forum the ads are just gone...  :(

This has been explained thousands of times. Go to permissions of the membergroup in question and literally click the toggle.

Thank you. I didn't know it had already been discussed and thought it would be easier to ask rather than go through 134 pages of text.

Luckly we have the search function :D

Although.. sometimes when i search i do not find the answhere, because it's formulated at a different way when for what i'm searching for.. but it's worth a try :D
Title: Re: Ad Management mod
Post by: riply.co.za on May 17, 2008, 05:37:48 PM
Hi there,

I have installed the new version of SMF - 1.1.5 and then uploaded your ADsMOD 'successfully'.

However, when I go to my Admin | Configuration, there is nothing mentioned of your package. Do you know if there are incompatibility issues with the new version and your package??! I hope not, as I'd love to make use of it!!  :'(

Regards,

CJC
Title: Re: Ad Management mod
Post by: ccbtimewiz on May 17, 2008, 08:14:52 PM
Quote from: riply.co.za on May 17, 2008, 05:37:48 PM
Hi there,

I have installed the new version of SMF - 1.1.5 and then uploaded your ADsMOD 'successfully'.

However, when I go to my Admin | Configuration, there is nothing mentioned of your package. Do you know if there are incompatibility issues with the new version and your package??! I hope not, as I'd love to make use of it!!  :'(

Regards,

CJC

Did you "apply" the modification? Just uploading it doesn't put it into use. You need to "apply" it to use the features that it gives. =)
Title: Re: Ad Management mod
Post by: thomase on May 18, 2008, 04:51:31 AM
I'd like to use this MOD on my new theme:

http://custom.simplemachines.org/themes/index.php?lemma=672

I know before it had instructions on how to add it to the theme, but I cannot find anything now...how can I do it?

I've managed to get adverts at the top of the page and then in the light blue at the bottom, just above the copyright details...I'd like to get it just above the info centre...
Cheers :)
Title: Re: Ad Management mod
Post by: adelshehadeh on May 18, 2008, 11:30:38 AM
Please guys any update on the duplicate ads issue? :)

Title: Re: Ad Management mod
Post by: MissyNL on May 18, 2008, 12:08:22 PM
Quote from: kolt on May 16, 2008, 07:12:13 PM
Quote from: Lafemme on May 16, 2008, 05:30:19 PM
Quote from: kolt on May 16, 2008, 05:03:58 PM
Anyone can help me please! Can you just tell me how can I put the avatar in post banner! I have asked it more than 2 weeks, please don't ignore my post!

Thanks in advance

this seems very stupid.. but can you make a screenshot of where you want it? I do not know precice where you want it.


Here screen shot, I know that is stupid but I like it, I have see it in other forums.

Ehm.. that is a standard feature in SMF.. what i think you should do is set the permissions in the admin off every membergroup that they can upload and vieuw avatars. Also check the adminscreen - Admin ->forum  -> attachments and avatars if you have filled in the correct requirements there..
Title: Re: Ad Management mod
Post by: kolt on May 18, 2008, 09:52:37 PM
I checked, all the permissions are okay!  :-[

What can I do, help please?
Title: Re: Ad Management mod
Post by: ruaduck on May 21, 2008, 01:27:58 PM
Quote from: riply.co.za on May 17, 2008, 05:37:48 PM
Hi there,

I have installed the new version of SMF - 1.1.5 and then uploaded your ADsMOD 'successfully'.

However, when I go to my Admin | Configuration, there is nothing mentioned of your package. Do you know if there are incompatibility issues with the new version and your package??! I hope not, as I'd love to make use of it!!  :'(

Regards,

CJC

What i had to do is change the language file of ads.english.php to  ads.english-utf8.php   then it showed up just fine in my admin section.
Title: Re: Ad Management mod
Post by: ruaduck on May 21, 2008, 01:32:33 PM
I have all the permissions checked and i have a banner ad up on my admin section. but it doesn't appear anywhere on my forums.   So does anyone have the manual edits that i can put into my index.template.php  because i figure it is that that is holding me up :)
Title: Re: Ad Management mod
Post by: Nibogo on May 21, 2008, 09:51:43 PM
where is the version of smf 1.1.5 of this mod??
Title: Re: Ad Management mod
Post by: max61 on May 22, 2008, 03:25:17 PM
Quote from: NIBOGO on May 21, 2008, 09:51:43 PM
where is the version of smf 1.1.5 of this mod??

I too have the same question. This is what I get When I uploaded it:

Package uploaded successfully
Package has been downloaded successfully


Ad Managment [ Apply Mod ] [ List Files ] 

[ Back ] 



This is what I get when I tried to apply it:

Installations actions for "Ad Managment":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. 



I'm using 1.1.5 version. Can someone please help me?

Thanks.

Fredg61
Title: Re: Ad Management mod
Post by: ccbtimewiz on May 22, 2008, 03:38:00 PM
The modification apparently doesn't work on SMF 1.1.5.

Looks like you'd have to wait for the mod author.
Title: Re: Ad Management mod
Post by: max61 on May 22, 2008, 03:39:23 PM
Quote from: ccbtimewiz on May 22, 2008, 03:38:00 PM
The modification apparently doesn't work on SMF 1.1.5.

Looks like you'd have to wait for the mod author.

Thank you for the quick Response.  If I went back to version 1.1.4 and then installed it, would it work for me?
Title: Re: Ad Management mod
Post by: ruaduck on May 22, 2008, 05:50:21 PM
i use 1.1.5 but it works for me just fine.  I had to edit some of my files to get it to work.  all my language files had to made into a utf8 file.  other than that it worked great.
Title: Re: Ad Management mod
Post by: jandanwala on May 24, 2008, 11:44:35 AM
i want to use this on this them how can i do this
http://custom.simplemachines.org/themes/index.php?lemma=586
Title: Re: Ad Management mod
Post by: ccbtimewiz on May 24, 2008, 02:11:07 PM
Quote from: jandanwala on May 24, 2008, 11:44:35 AM
i want to use this on this them how can i do this
http://custom.simplemachines.org/themes/index.php?lemma=586

Manually edit the templates. Use the instructions on the mod package.
Title: Re: Ad Management mod
Post by: stevo999 on May 24, 2008, 08:29:57 PM
Don't want to go off subject too much (forgive me!) But is there any good 'banner ad' software that is SMF forum friendly? I have the ad management mod installed on !.!.4 version and it is just waiting to be used to help with server costs.

The 'ad management' mod always seems to ask for a 'ad code' The ads I would put on the forum would be made by myself. Would a 'ad banner' software prog have this 'ad code'? Sorry if I have posted in a wrong section.

Steve.
Title: Re: Ad Management mod
Post by: zeromage on May 25, 2008, 12:07:17 PM
Hi everyone.  When I install this mod it doesn't show up under configuration.  But it does produce a blank space.  I tried uninstalling and re-installing.  Any suggestions?  MY forums are:

http://old-wizard.com/forums/index.php
Title: Re: Ad Management mod
Post by: ropulos on May 26, 2008, 11:15:39 AM
Hi!,

I Have SMF 1.1.5 ... and Ad managment 2.3 .... ads enabled but no banners SHOWED ? nothing

Can You help me? I Can Pay by Paypal If needed
Title: Re: Ad Management mod
Post by: ropulos on May 26, 2008, 02:30:51 PM
WHAT IS THE RIGHT VERSION OF AD MANAGMENT FOR THE SMF 1.1.5 ???????????
Title: Re: Ad Management mod
Post by: ccbtimewiz on May 26, 2008, 03:50:04 PM
... I'll repeat. This modification does not work on SMF 1.1.5

You can hack it to work, but it is currently not built to work with 1.1.5. If you encounter errors trying to get it to work with 1.1.5, you'll receive little help in this thread.
Title: Re: Ad Management mod
Post by: aussie86 on May 27, 2008, 01:50:03 AM
i've just updated smf 2.0 beta 3, i've installed ad management beta

Can't see the ads on the forum? do i need to edit any current pages i have on my forum?

Thank you for your time, cheers
Title: Re: Ad Management mod
Post by: ropulos on May 27, 2008, 03:26:04 AM
thanks.

But as Above.

If I Update from 1.1.5 to 2.0 and install the ad mod

is that working ?

Title: Re: Ad Management mod
Post by: Bigguy on May 27, 2008, 08:48:46 AM
Give Jerm time to upgrade the mod please.
Title: Re: Ad Management mod
Post by: ropulos on May 27, 2008, 11:31:27 AM
Who's Jerm? the programmer?

No problem. I'll wait

ty
Title: Re: Ad Management mod
Post by: buddy218 on May 27, 2008, 10:24:00 PM
does this work for beta 3.1 public because i cant get it to work i got the management page but no ads show

or do the ads work in html code?
Title: Re: Ad Management mod
Post by: Twysted on May 28, 2008, 07:58:43 AM
ok i installed on 1.1.5 and everything works except for the show ad as thread i get this error:

Parse error: syntax error, unexpected '<' in /home/acidclic/public_html/scambux.com/Sources/Load.php(1726) : eval()'d code(550) : eval()'d code on line 1

does anyone know how to fix it?
Title: Re: Ad Management mod
Post by: ocsam on May 28, 2008, 10:56:28 AM
Hello Everyone,

I just installed the smf ads application and the installation was successful but it is not showing on the configuration sub category in the control panel of my forum.

Please what do i do ?.

Title: Re: Ad Management mod
Post by: Twysted on May 28, 2008, 05:51:19 PM
Quote from: ocsam on May 28, 2008, 10:56:28 AM
Hello Everyone,

I just installed the smf ads application and the installation was successful but it is not showing on the configuration sub category in the control panel of my forum.

Please what do i do ?.


make sure to check the admin.template.php to make sure it added like it was supposed to, also make sure you have the language files uploaded in the themes you are using it on
Title: Re: Ad Management mod
Post by: WhatsTheRent on May 28, 2008, 06:39:33 PM
I had ad management installed already, just upgraded to 1.1.5 and everything is working fine.  I am using the default theme
Title: Re: Ad Management mod
Post by: buddy218 on May 28, 2008, 09:05:59 PM
does this work for smf 2.0 beta 3.1 public?
Title: Re: Ad Management mod
Post by: buddy218 on June 01, 2008, 03:40:43 PM
hello? i waited for a response for 5 days
Title: Re: Ad Management mod
Post by: izaviejero on June 01, 2008, 06:26:21 PM
Quote from: ocsam on May 28, 2008, 10:56:28 AM
Hello Everyone,

I just installed the smf ads application and the installation was successful but it is not showing on the configuration sub category in the control panel of my forum.

Please what do i do ?.

smsads works fine under 1.1.5 but, before install the mod,  you must set your language to old regular english language file and quite the default english utf8 language file

I dont know if this change results in any other problem...
Title: Re: Ad Management mod
Post by: ArkServer on June 03, 2008, 11:10:12 AM
Hi,

im using the latest ad management software but the ads doesn't show up in IE but strangely it does in firefox: http://tinyurl.com/6qrtdv can anyone help me out? Thanks!
Title: Re: Ad Management mod
Post by: Tuplad on June 04, 2008, 10:19:03 AM
Only works with defult theme... :(
Title: Re: Ad Management mod
Post by: emekau2002 on June 04, 2008, 02:47:44 PM
i have just installed ad management mod on my smf forum but is seems not to be displating i have tried every thing , please who can help me
Title: Re: Ad Management mod
Post by: crustybum on June 05, 2008, 09:37:32 AM
I have the same problem as earlier stated, i get my adds duplicated ??? any one help/ its installed on 1.15

Chris
Title: Re: Ad Management mod
Post by: Context on June 05, 2008, 04:13:11 PM
I get the  "...not compatible with this version of SMF" error and I am using 1.1.5 fresh install with no other packages installed. I unpacked the zip file and it appears to be whole and complete. English is the default language.

Thoughts anyone?
Title: Re: Ad Management mod
Post by: LilMermaidGirl on June 07, 2008, 09:13:14 PM
Quote from: fredg61 on May 22, 2008, 03:25:17 PM
Quote from: NIBOGO on May 21, 2008, 09:51:43 PM
where is the version of smf 1.1.5 of this mod??

I too have the same question. This is what I get When I uploaded it:

Package uploaded successfully
Package has been downloaded successfully


Ad Managment [ Apply Mod ] [ List Files ] 

[ Back ] 



This is what I get when I tried to apply it:

Installations actions for "Ad Managment":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. 



I'm using 1.1.5 version. Can someone please help me?

Thanks.

Fredg61

I'm getting that too... It stinks, I just want to have one add at the top of my forum (currently I can only get it to display at the bottom of forum, yeah that's getting a high click through rate lolz...
Title: Re: Ad Management mod
Post by: c a g a t a y on June 09, 2008, 03:45:25 AM
Hi all

I installed evertyhing without any error

I am using SMF 1.1.5

But there is a WHITE FIELD in my add area

It is swf actually (my add is swf)

And swf works correctly outside add

Any idea?

(http://img231.imageshack.us/img231/6900/addmanagementix4.jpg)
Title: Re: Ad Management mod
Post by: picture on June 11, 2008, 04:18:36 PM
Quote from: ArkServer on June 03, 2008, 11:10:12 AM
Hi,

im using the latest ad management software but the ads doesn't show up in IE but strangely it does in firefox: http://tinyurl.com/6qrtdv can anyone help me out? Thanks!

same for me mate. checked the source code, and it doesn't even show up in IE, meaning that IE is not recognizing the modded code or that the mod is not altering the code properly for IE to see it, etc.
Title: Re: Ad Management mod
Post by: christicehurst on June 12, 2008, 08:44:14 AM
Can this mod be used for normal banner with a link to a external site?
Title: Re: Ad Management mod
Post by: Bigguy on June 12, 2008, 03:21:09 PM
Yes it can.
Title: Re: Ad Management mod
Post by: hmpargi on June 12, 2008, 03:43:36 PM
how should i use this mod with different themes
Title: Re: Ad Management mod
Post by: Bigguy on June 12, 2008, 06:38:31 PM
What do you mean exactly. ???

Quote from: hmpargi on June 12, 2008, 03:43:36 PM
how should i use this mod with different themes
Title: Re: Ad Management mod
Post by: hmpargi on June 13, 2008, 01:54:41 AM
Quote from: Bigguy on June 12, 2008, 06:38:31 PM
What do you mean exactly. ???

Quote from: hmpargi on June 12, 2008, 03:43:36 PM
how should i use this mod with different themes

well i mean i am using other theme not default by smf 1.1.5 and there i cant see any ads but when i switch back to default it shows ads now tell me how should i make working with other theme which i am using
Title: Re: Ad Management mod
Post by: hmpargi on June 13, 2008, 02:30:56 AM
if there is instruction to install this mod on other themes. then default one. please place LINK here for instruction as i am not able to find any instruction
Title: Re: Ad Management mod
Post by: crustybum on June 13, 2008, 05:26:00 AM
Anyone have a suggestion for the "duplicate ad" problem yet?
Title: Re: Ad Management mod
Post by: christicehurst on June 13, 2008, 10:20:07 AM
Quote from: Bigguy on June 12, 2008, 03:21:09 PM
Yes it can.

How would one go around doing that with the code box?
Title: Re: Ad Management mod
Post by: Bigguy on June 13, 2008, 04:02:55 PM
Try this:

<div align=center><a href="http://www.link_to_site.com" target="_blank">
<img src="http://www.link_to_image.info/some.gif">
</a></div>


That will also center it.
;)
Title: Re: Ad Management mod
Post by: dillon on June 14, 2008, 04:07:39 PM
This might be a very dumb question but how can I change the background color of the mod? 

Thanks :)
Title: Re: Ad Management mod
Post by: KarKess on June 15, 2008, 01:00:30 PM
Does anyone know how to get the ad management to work properly on themes other than the default theme.  I want to use the Big Blue theme, but can't get the ads working on the bottom or sides.
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on June 15, 2008, 01:49:19 PM
The inline ads, like ones from AdBrite, do not go into the posts, like they do on other forums. Is there a way to do this?
Title: Re: Ad Management mod
Post by: cgoodwin73 on June 15, 2008, 07:43:58 PM
Quote from: kanter on June 11, 2008, 04:18:36 PM
Quote from: ArkServer on June 03, 2008, 11:10:12 AM
Hi,

im using the latest ad management software but the ads doesn't show up in IE but strangely it does in firefox: http://tinyurl.com/6qrtdv can anyone help me out? Thanks!

same for me mate. checked the source code, and it doesn't even show up in IE, meaning that IE is not recognizing the modded code or that the mod is not altering the code properly for IE to see it, etc.

Same here - any help guys? Same symptoms - the rendered code literally doesn't appear between tags for the table, div, etc. you set up for the ad to appear in.

I'm going to try to have my PHP-guru buddy look at this if no one else has any ideas.
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on June 16, 2008, 10:02:40 AM
I have the default theme, and Enterprise theme. SMF 1.1.5
I'm trying to install this mod on the Enterprise theme, yet I really do not have any idea of where to add the code for the ads under the menu, as that theme is more complex in it's coding than the default. I want to have something on that theme only, and plan to remove the under menu code from the default.

Does anyone know the correct place in the index.template.php of Enterprise theme to insert the under menu code?
Title: Re: Ad Management mod
Post by: dillon on June 16, 2008, 10:03:58 AM
Seems no one is here answering anything.  ::)
Title: Re: Ad Management mod
Post by: Bigguy on June 16, 2008, 08:25:30 PM
@ djso: There is no background color for the mod. The background color of what you add is what you want to change. This has nothing to do with this mod. :)

@ KarKess: You have to manually edit 4 template files in your custom theme. There are instructions on this on the smfads website and on my site as well in the admod support board.

@ BurkeKnight: Not sure what you mean by this. Any code should work in any position that the ad mod offers.

@ cgoodwin73: This is a new problem I have not heard of as of yet. Maybe the mod author has and is working on it. You will have to wait for him to respond I guess.

@ BurkeKnight: Download a free program called Winmerge. (after googling it;)) it is a file comparison program. Compare the two index.template.php files  in this program after you have the mod installed to the default theme. THis will show you were in the default index.template.php file the ad mod code goes and then should give you a hint as to where to put it in the enterprise theme. So it goes like this:

1.) Download and install Winmerge

2.) Install the ad mod to the default theme

3.) Download both the default themes index.template.php and the one from the Enterprise theme.

4.) Run them through the program and compare where the ad mod code is to the code in the enterprise theme...it should give you a good clue as to where it goes.

Hope that helps a bit. :)

I have been very busy lately but am trying to get back into the swing of things. Answers might be a bit in coming though as I do have other projects on my plate.
Title: Re: Ad Management mod
Post by: KarKess on June 17, 2008, 12:07:53 PM
Could you please provide a direct link, so I'm not blindly searching these sites. 

Thanks,
Title: Re: Ad Management mod
Post by: Bigguy on June 17, 2008, 12:20:48 PM
These edits should be up to date. Keep in mind you only have to do the edits to the template files if the mod is already installed.

click (http://www.smfhelper.info/forum/index.php?topic=2286.0)
Title: Re: Ad Management mod
Post by: lextalionis on June 18, 2008, 08:41:35 AM
I've been meaning to get around to changing Ads Mgmt on my forum and I've just spent the better part of yesterday afternoon failing miserably.  There's a setting in the Ads Mgmt for "Display ads on every  page right below the menu." and I simply want to make that call to reference a different placement on my index template.  Here's the picture of what I'm trying to do (move this ad placement to above the nav in the forum banner area justified right):

(http://www.motleypixel.com/public/posts/ads_place.jpg)

I'm using smf 1.1.5 and Theme BackRain:  http://www.motleypixel.com/forum/

I looked through this thread and the first 6 pages of the Ads Mgmt forum and couldn't find an answer.

Thanks,
Roy
Title: Re: Ad Management mod
Post by: dillon on June 18, 2008, 08:54:10 AM
Quote from: Bigguy on June 16, 2008, 08:25:30 PM
@ djso: There is no background color for the mod. The background color of what you add is what you want to change. This has nothing to do with this mod. :)

So change the background color around the ads?  Could you explain a little further, I'm new :)
Title: Re: Ad Management mod
Post by: Bigguy on June 18, 2008, 09:04:10 AM
This is something you will have to ask the site you get your ads from. I know Google allows you to change bg color.
Title: Re: Ad Management mod
Post by: Bigguy on June 18, 2008, 09:05:45 AM
@ lextalionis: Use the setting "Show ads on top of page" and then use a align=right for the position you want.
Title: Re: Ad Management mod
Post by: tyty1234 on June 18, 2008, 05:10:00 PM
I have downloaded and installed this mod for SMF version 1.1.5
The problem is that my users can't see the ads! But only admins can.
What's the problem?
Title: Re: Ad Management mod
Post by: jossanaijr on June 18, 2008, 06:13:28 PM
Quote from: tyty1993 on June 18, 2008, 05:10:00 PM
I have downloaded and installed this mod for SMF version 1.1.5
The problem is that my users can't see the ads! But only admins can.
What's the problem?
Did you enable ADS in guest/regular members/... permissions?
Title: Re: Ad Management mod
Post by: jossanaijr on June 18, 2008, 06:17:26 PM
BTW,
is it possible to fix google banner size to fit the default theme?
Image attached.
Title: Re: Ad Management mod
Post by: Bigguy on June 18, 2008, 06:45:42 PM
You can fix the google banner size in your google control panel. :)
Title: Re: Ad Management mod
Post by: jossanaijr on June 18, 2008, 06:54:25 PM
Quote from: Bigguy on June 18, 2008, 06:45:42 PM
You can fix the google banner size in your google control panel. :)
?
I will check it but what I mean is the automatically size configuration with the board size that changes depending of user's monitor setup.
Title: Re: Ad Management mod
Post by: Bigguy on June 18, 2008, 06:58:59 PM
No I don't think you can do that.
Title: Re: Ad Management mod
Post by: lextalionis on June 18, 2008, 07:49:11 PM
Quote from: Bigguy on June 18, 2008, 09:05:45 AM
@ lextalionis: Use the setting "Show ads on top of page" and then use a align=right for the position you want.

Thanks, I acually had it marked, but I found that I missed several lines of code in my theme index.template

I'm good now!

-Roy
Title: Re: Ad Management mod
Post by: tyty1234 on June 18, 2008, 08:28:37 PM
Quote from: jossanaijr on June 18, 2008, 06:13:28 PM
Quote from: tyty1993 on June 18, 2008, 05:10:00 PM
I have downloaded and installed this mod for SMF version 1.1.5
The problem is that my users can't see the ads! But only admins can.
What's the problem?
Did you enable ADS in guest/regular members/... permissions?
I couldn't find it at first, but then I remembered that it didn't install ManagePermissions.php correctly, so I manually edited it and found it.

Thanks!
Title: Re: Ad Management mod
Post by: stevo999 on June 19, 2008, 07:23:21 PM
Is there an easier way of adding 'ad code'????? On other bits of SMF like the mods section you can 'browse' your files and upload the mod. On the 'Ad Mod' its just an empty box!!! Without having to add all this '<1embed. echo> # wrap' type stuff! I have done my own banners but have no idea as to adding this dam 'ad code' Please help!!!  :'(
Title: Re: Ad Management mod
Post by: Bigguy on June 19, 2008, 09:34:50 PM
I'm not sure I understand your question Stevo. What is just an empty box. ???
Title: Re: Ad Management mod
Post by: stevo999 on June 20, 2008, 07:07:54 PM
Hi Bigguy! Wish I knew how to do this screen shot thing! The empty box thing is on the "add ads' It asks for the name of the ad then 'ad code' is below it. Its just a blank white box, like you get on here while posting. There is a little help question mark at the side which when pressed opens a seperate window which states 'Add your add code here' Hope that helps! Stevo.
Title: Re: Ad Management mod
Post by: SilverKnight on June 20, 2008, 08:34:23 PM
update to 1.1.5 ? please !
Title: Re: Ad Management mod
Post by: Nyx on June 20, 2008, 08:51:43 PM
Quote from: crustybum on June 13, 2008, 05:26:00 AM
Anyone have a suggestion for the "duplicate ad" problem yet?

In my case I deleted all duplicated code in MessageIndex.template.php
Title: Re: Ad Management mod
Post by: Bigguy on June 20, 2008, 09:40:03 PM
Exactly; delete any duplicate code in any file that the ad mod edited. This requires you to go through all the files the ad mod touched. It is because you have it installed twice or tried to install it before.

Quote from: Nyx on June 20, 2008, 08:51:43 PM
Quote from: crustybum on June 13, 2008, 05:26:00 AM
Anyone have a suggestion for the "duplicate ad" problem yet?

In my case I deleted all duplicated code in MessageIndex.template.php
Title: Re: Ad Management mod
Post by: slackerpunk on June 20, 2008, 09:59:56 PM
Quote from: SilverKnight on June 20, 2008, 08:34:23 PM
update to 1.1.5 ? please !

ad management works for 1.1.5 I installed and uninstalled it without any issues if you use a non-default theme then you may have to do the edits manually
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on June 21, 2008, 07:32:10 AM
Quote from: stevo999 on June 20, 2008, 07:07:54 PM
Hi Bigguy! Wish I knew how to do this screen shot thing! The empty box thing is on the "add ads' It asks for the name of the ad then 'ad code' is below it. Its just a blank white box, like you get on here while posting. There is a little help question mark at the side which when pressed opens a seperate window which states 'Add your add code here' Hope that helps! Stevo.

The empty box is where you paste the code for your ads. I don't really understand how adding ads can be much easier than that.
Title: Re: Ad Management mod
Post by: christicehurst on June 22, 2008, 07:11:04 AM
Quote from: Bigguy on June 13, 2008, 04:02:55 PM
Try this:

<div align=center><a href="http://www.link_to_site.com" target="_blank">
<img src="http://www.link_to_image.info/some.gif">
</a></div>


That will also center it.
;)

A big thanks for that. Some of the areas to place banners don't show up. Not sure why that happens.

Another question: Is there a way to rotate different banners.
Title: Re: Ad Management mod
Post by: Afro on June 22, 2008, 01:23:51 PM
Hello, I have the admod installed on my forum.
I want an add placed as a tower on the right side of my forum.
I have tried it but its not there, rather it appeared at the bottom of the page as a tower also.
I place the same ad on my test forum  www.forum2.afrowall.com. and it appeared perfectly there but i am using the default theme on the test site.
I use dilber mc theme on the main forum. www.afrowall.com.
What am i supposed to do to make the add appear at the right side like it appeared on the test forum.
thanks in advance.
Title: Re: Ad Management mod
Post by: Bigguy on June 23, 2008, 07:15:19 AM
@ christicehurst: Any templatefiles have to be edited in your custom theme. Banners will rotatae on their own with every page refresh if you have it set to show more than one in the same place.

@ sam_milla: Make sure all edits are done right to your custom template files.
Title: Re: Ad Management mod
Post by: Afro on June 23, 2008, 12:50:23 PM
Hello Bigguy,

Is there a place in my custom theme index.template.php where i can just add the tower adsense code to make it appear on the right side as tower..
I tried to edit three filex..(index, boardindex and messageindex)templates files.
The instruction said four files but the display template file is not there.
or can i sen you any file for you to edit for me.
I am using dilber mc theme.
Title: Re: Ad Management mod
Post by: Sharkonis on June 23, 2008, 07:28:20 PM
I'm new to all of this, I have 1.1.5 and have no clue on how to put advertising on it. I see that ad man is not compatible, so what do I do ? Thanks for any input.
Title: Re: Ad Management mod
Post by: Bigguy on June 23, 2008, 09:54:52 PM
@ sam_milla: if the one file is not there then it was edited when you installed the mod. If you do still have the mod installed then just add the tower code to the template files. The mod will still work even if all the code is not in the template files.

@ Sharkonis:  Why is it not compatible. ???
Title: Re: Ad Management mod
Post by: samy.3660 on June 24, 2008, 04:12:48 AM
Is it compatible with SMF 2.0 Beta 3.1 Public???
Title: Re: Ad Management mod
Post by: Nugget on June 24, 2008, 04:27:56 AM
I have the Ad software installed and can see the ads when logged in as an Administrator.
But the ads are just not there as a user.
I've checked the settings - I do not have the option under board permissions or any other settings to enable ads in specific boards or user permissions.
The only options I have are under the Ad Management setting.

Can anyone suggest what might be the problem?

Thanks

Title: Re: Ad Management mod
Post by: Afro on June 24, 2008, 08:07:44 AM
Quote from: Bigguy on June 23, 2008, 09:54:52 PM
@ sam_milla: if the one file is not there then it was edited when you installed the mod. If you do still have the mod installed then just add the tower code to the template files. The mod will still work even if all the code is not in the template files.

@ Sharkonis:  Why is it not compatible. ???

Which template file do i have to ad  the google ads code to make it appear at the right side of the forum homepage. ? and where exactly am i suppose to put the code. i mean after which code like </body> or </head>
Title: Re: Ad Management mod
Post by: Bigguy on June 24, 2008, 08:37:42 AM
You need to check your permission settings again.

@ sam_milla: Try using the mod parser that is built into the mod site to get the code. All the code is commented to make it easier to find. 
Title: Re: Ad Management mod
Post by: userfriendly on June 24, 2008, 12:39:30 PM
I'm not sure what to do, I installed ad management version 2.3 for my SMF version 1.1.5 board, followed the info on this page: http://custom.simplemachines.org/mods/index.php?action=parse

And think i'm now stuck and hoping i at least didn't replace anything i shouldnt have replaced.

What to do?
Title: Re: Ad Management mod
Post by: Bigguy on June 24, 2008, 06:14:24 PM
Did you install it and then do the manual edits ONLY to the 4 template files it mentions when you parse it. ???
Title: Re: Ad Management mod
Post by: userfriendly on June 24, 2008, 08:32:58 PM
Yes. I think it's because I don't know exactly where to add the codes in the template im using (classic yaab) why it's not working. The guide only seems to show for the default template.
Title: Re: Ad Management mod
Post by: Bigguy on June 24, 2008, 10:16:09 PM
The parser shows the edits. All you have to do is find the code it says to "find" in the files. Now take note that some of the code you have to find might not all be there in your custom theme templates. So if you can't find the exact code search for parts of the code you are supposed to find. Then try your best to match up the code you are supposed to add with where it is supposed to go. If you can't get it after a few tries I will see what I can do for you. :)
Title: Re: Ad Management mod
Post by: userfriendly on June 25, 2008, 08:33:45 AM
Yes, ads show in the default. Did try matching as you suggested.

Ok will give this another shot later and report back, but last time I tried, let's just say the forum took a sudden break :O
Title: Re: Ad Management mod
Post by: Afro on June 25, 2008, 08:55:22 AM
Thats exactly what i am experiencing too.
The ads perfectly showed up on the defaul theme.
But after editing the three template files...

Indexteplate.
boardindex.template. and
Messageindex.template files,
The ads didnt show up on the dilber mc theme.
....i am sure i am mising something.
I thought of copying ADS.english.php to the dilber mc language files but there is nothing like it there.
The Sources i guess are the same.
Any help will be appreciated greatly.
Title: Re: Ad Management mod
Post by: crustybum on June 25, 2008, 10:13:37 AM
Is there a fix for the duplicate ads thing yet?.. just scrolled through and couldnt see one..
Title: Re: Ad Management mod
Post by: Afro on June 25, 2008, 10:16:36 AM
Quote from: crustybum on June 25, 2008, 10:13:37 AM
Is there a fix for the duplicate ads thing yet?.. just scrolled through and couldnt see one..

I am not sure i understand the question, if it was actually for me...

what fix do u mean pls?
Title: Re: Ad Management mod
Post by: userfriendly on June 25, 2008, 11:08:55 AM
So I had success, at least some. ads show at the bottom and at top, and no where else which means the other codes were not placed correctly. Anyway, i'm just going to work with those ads for now, can't deal with messing it up completely again.

any one else having problem just make sure to leave the template for last, it just takes patience.

Now, how do i Make ads not show for Administrator? Seems I cant edit permissions.
Title: Re: Ad Management mod
Post by: Afro on June 25, 2008, 11:47:34 AM
I can tell you that....go o admin cpanel >> ad management  >> settings >> Disable ads for admins...
check the box and save.  thats if you are using ad management ofcourse.

meanwhile, which template files did u edit on the yabb theme for the ads to show up..maybe it could he;p me on my dilbermc theme.
mine is showing up only on the defaul theme.
i used the global header and footers to place ads on the forum but i need the tower right ad so i can disable other ads.
if i knwo where to ad the google adsense codes on the template file for the tower right ad to show up, i could just go with it and forget the ad mod thing.
Title: Re: Ad Management mod
Post by: Nyx on June 25, 2008, 12:32:55 PM
Quote from: crustybum on June 25, 2008, 10:13:37 AM
Is there a fix for the duplicate ads thing yet?.. just scrolled through and couldnt see one..

Quote from: Nyx on June 20, 2008, 08:51:43 PM
Quote from: crustybum on June 13, 2008, 05:26:00 AM
Anyone have a suggestion for the "duplicate ad" problem yet?

In my case I deleted all duplicated code in MessageIndex.template.php

delete all duplicated code
Title: Re: Ad Management mod
Post by: Kat9119 on June 25, 2008, 06:15:14 PM
I want to install this for 1.1.5 using Backnblack theme. However, I find that I'm missing the following files

Display.template.php
MessageIndex.template.php

Any advice?
Title: Re: Ad Management mod
Post by: Bigguy on June 25, 2008, 07:24:15 PM
If those files are not in your custom theme folder than they were already edited when you installed the mod. All you have to do is edit the other two templates the mod lists if they are in your custom theme folder.
Title: Re: Ad Management mod
Post by: Kat9119 on June 25, 2008, 09:52:54 PM
Quote from: Bigguy on June 25, 2008, 07:24:15 PM
If those files are not in your custom theme folder than they were already edited when you installed the mod. All you have to do is edit the other two templates the mod lists if they are in your custom theme folder.

I haven't installed the mod yet. I was just backing up the files that were going to be edited, and noticed that I don't have those files.

Currently I only use this theme, even though others are in there. Within the next month or so I'll be adding a 2nd theme.

So, what will happen when I go to install this since those files aren't in my theme?
Title: Re: Ad Management mod
Post by: Bigguy on June 25, 2008, 10:28:16 PM
All mods that you get always and only install to the default theme. So when you install it; even if you have a couple themes installed it will still be installed on the default theme. All you have to do is do the edits to the template files that exist in your custom theme folder. :)
Title: Re: Ad Management mod
Post by: Kat9119 on June 25, 2008, 10:44:46 PM
Quote from: Bigguy on June 25, 2008, 10:28:16 PM
All mods that you get always and only install to the default theme. So when you install it; even if you have a couple themes installed it will still be installed on the default theme. All you have to do is do the edits to the template files that exist in your custom theme folder. :)

So I shouldn't worry about those files that I'm supposed to edit but don't exist?
Title: Re: Ad Management mod
Post by: Bigguy on June 25, 2008, 10:48:27 PM
yup ;)
Title: Re: Ad Management mod
Post by: Realinfo on June 26, 2008, 07:56:35 AM
Sir............ I'm in a problem. My ads only comes in Admin Account............ and when i logout.no ads appear. it means no ads appear to Guests and other members of my Forum. and also when i add one ad it becomes two itself.......... there is something wrong.......... i did Installation many times............ when i load Themes again in my FTP folder........... but nothing sloves it........... Please help......

Thanks

Jack
Title: Re: Ad Management mod
Post by: Realinfo on June 26, 2008, 08:02:52 AM
Quote from: Nugget on June 24, 2008, 04:27:56 AM
I have the Ad software installed and can see the ads when logged in as an Administrator.
But the ads are just not there as a user.
I've checked the settings - I do not have the option under board permissions or any other settings to enable ads in specific boards or user permissions.
The only options I have are under the Ad Management setting.

Can anyone suggest what might be the problem?

Thanks


I have also same to same problem....... Please help
Title: Re: Ad Management mod
Post by: jfhsas on June 26, 2008, 12:10:27 PM
On my forum it is still not working.
Using 1.1.5 (new install, no upgrade from 1.1.4)
Theme is YaBB (Fixed)
Language is Dutch.

Ads.php will be copied to $sourcedir
LoadAds.php will be copied to $sourcedir
Ads.template.php will be copied to $themedir
Ads.english.php will be copied to $languagedir

So I did that and made changes to:
In file $sourcedir/ManagePermissions.php
In file $themedir/MessageIndex.template.php
In file $themedir/Display.template.php
Etc....

But where? Classic/default/Babylon

Please help me out.

Tia

Jan
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on June 26, 2008, 08:43:41 PM
Realinfo,

I just visited your forum, and saw the ads.

Be sure that you have the permissions set:

Admin -> Permissions -> Member Group you want the ads to show for -> Enable ads - Check the check box. :)
Title: Re: Ad Management mod
Post by: userfriendly on June 27, 2008, 01:50:55 AM
Quote from: sam_milla on June 25, 2008, 11:47:34 AM
I can tell you that....go o admin cpanel >> ad management  >> settings >> Disable ads for admins...
check the box and save.  thats if you are using ad management ofcourse.

meanwhile, which template files did u edit on the yabb theme for the ads to show up..maybe it could he;p me on my dilbermc theme.
mine is showing up only on the defaul theme.
i used the global header and footers to place ads on the forum but i need the tower right ad so i can disable other ads.
if i knwo where to ad the google adsense codes on the template file for the tower right ad to show up, i could just go with it and forget the ad mod thing.

I Shall try that.

Don't know what to tell you. Did you do this in your custom template and get it to show:

Find: [Select]
</td>

//Below the menu ads
   if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
   {
      $ads = show_indexAds();   
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);

      //Tower left Ads
      $ads = show_towerleftAds();
      if(!empty($ads))
         echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

      unset($ads);
      //Tower Right Ads
      $ads = show_towerrightAds();   
      if(!empty($ads))
         echo '<table><tr><td width="100%" valign="top">';
      unset($ads);
   }



Also, the tower didnt work how i wanted it to, it just shifted my template.
Title: Re: Ad Management mod
Post by: Afro on June 27, 2008, 06:02:29 AM
Quote from: userfriendly on June 27, 2008, 01:50:55 AM

I Shall try that.

Don't know what to tell you. Did you do this in your custom template and get it to show:

Find: [Select]
</td>

//Below the menu ads
   if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
   {
      $ads = show_indexAds();   
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);

      //Tower left Ads
      $ads = show_towerleftAds();
      if(!empty($ads))
         echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

      unset($ads);
      //Tower Right Ads
      $ads = show_towerrightAds();   
      if(!empty($ads))
         echo '<table><tr><td width="100%" valign="top">';
      unset($ads);
   }



Also, the tower didnt work how i wanted it to, it just shifted my template.

i skipped that one code because there was a lot of </td> inside my index template.
I also got parse error each time i add that. so i skipped it, i think thats why the tower ads does not show up on my forum.
Title: Re: Ad Management mod
Post by: Nica on June 27, 2008, 03:05:40 PM
Is this mod compatible with 1.1.5?
Title: Re: Ad Management mod
Post by: ccbtimewiz on June 27, 2008, 04:17:21 PM
Quote from: ccbtimewiz on May 26, 2008, 03:50:04 PM
... I'll repeat. This modification does not work on SMF 1.1.5

You can hack it to work, but it is currently not built to work with 1.1.5. If you encounter errors trying to get it to work with 1.1.5, you'll receive little help in this thread.
Title: Re: Ad Management mod
Post by: bassbass on June 29, 2008, 02:40:11 AM
its working on mine just fine...1.1.5 with default theme
Title: Re: Ad Management mod
Post by: Afro on June 29, 2008, 08:03:49 AM
dilbermec 1.1.5 : the mod is a nightmare for me there.
Title: Re: Ad Management mod
Post by: Sakae on June 29, 2008, 09:58:19 AM
Quote from: bassbass on June 29, 2008, 02:40:11 AM
its working on mine just fine...1.1.5 with default theme

Working great on mine either. 1.1.5 with ApolloBB-TP theme.
Title: Re: Ad Management mod
Post by: bassbass on June 30, 2008, 02:19:19 AM
of course it depends on what other mods you have installed.  for example i used to have the "Karma Description Mod" installed and it gave me errors when i tried to install the Ad Mod, but when i install it by itself or with other mods it worked fine.
Title: Re: Ad Management mod
Post by: Kat9119 on June 30, 2008, 11:48:17 AM
Humm...

Any plans to update it so it does work with 1.1.5?

If I backup all my files and backup the database, I assume it is an easy uninstall if it doesn't work with my 1.1.5.

I only have upgraded from 1.1.4 to 1.1.5, Spoiler Mod, and Custom Profile Field installed. So I'll keep my fingers crossed lol.
Title: Re: Ad Management mod
Post by: Farmacija on July 01, 2008, 12:54:45 PM
ad management mod doesn't support something like this as i know?

see picture :

(http://img143.imageshack.us/img143/3461/es1tu6.th.jpg) (http://img143.imageshack.us/my.php?image=es1tu6.jpg)

Title: Re: Ad Management mod
Post by: Burke ♞ Knight on July 01, 2008, 03:25:04 PM
Farmacija,

1. You can set the ads to show between posts, but not in the posts.
Do that by going to Admin -> Ad Management then add a new ad, and put 1 in the box for Display ads within posts. :)

2. The share button has nothing to do with this mod, so you might want to ask that in the general coding or design boards.
Title: Re: Ad Management mod
Post by: Farmacija on July 02, 2008, 07:16:44 AM
i know for that but i need it IN the post.  ;)

Title: Re: Ad Management mod
Post by: bassbass on July 02, 2008, 07:25:28 PM
Quote from: sam_milla on June 29, 2008, 08:03:49 AM
dilbermec 1.1.5 : the mod is a nightmare for me there.

i just installed it on a fresh 1.1.5 install and its not working.  i had the 1.1.4 then upgraded and it worked okay, but apparently it doesn't work on a new install.  its a great mod and i hope they can update it for 1.1.5, because we have no idea when the 2.0 will be available for live use.
Title: Re: Ad Management mod
Post by: emn7 on July 03, 2008, 01:11:40 AM
I was just going to post about 1.1.5 as well.  I downloaded it and it installed fine, but I don't see it under "Configuration" - is that because it doesn't work on 1.1.5?

Thanks.
Title: Re: Ad Management mod
Post by: bassbass on July 03, 2008, 01:41:43 PM
Okay, i ran another test.  i installed a fresh 1.1.5, then installed this MOD and it seems to work fine.  however i am going to install the rest of the mods i use to see if there is any conflicts.  I'll keep you posted.
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on July 04, 2008, 09:16:25 AM
Why put ads in the post instead of between them????
/me shakes his head at that....
Title: Re: Ad Management mod
Post by: Farmacija on July 04, 2008, 10:51:43 AM
Quote from: BurkeKnight on July 04, 2008, 09:16:25 AM
Why put ads in the post instead of between them????
/me shakes his head at that....

omg!
why?
because there is more chance that someone will click on ad ...
(http://www.farmaceuti.com/forum/Smileys/smilies/wall.gif)
Title: Re: Ad Management mod
Post by: jordanid on July 04, 2008, 11:47:03 PM
1st, thanks for the great mod .. its really fantastic
but
i have a problem
i have 1.1.5 upgraded from 1.1.4
the mod is working but only with one place wish is in the post
it Appears above the post
when i put it on elsewhere , it doesnt work
i have a custom theme which is D-S Natural
and when i put it into the posts
like Display ads within posts : 1,2
it appears with the bottoms for the thanks and split topic ... etc
how can i only put it in the box without the bottoms ..
like this :
(http://img234.imageshack.us/img234/4885/adsmq2.jpg)

thank you in advance .
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on July 05, 2008, 01:40:20 PM
Quote from: Farmacija on July 04, 2008, 10:51:43 AM
Quote from: BurkeKnight on July 04, 2008, 09:16:25 AM
Why put ads in the post instead of between them????
/me shakes his head at that....

omg!
why?
because there is more chance that someone will click on ad ...
(http://www.farmaceuti.com/forum/Smileys/smilies/wall.gif)

Actually, if I went to a site, and my posts were messed with by ads, I'd delete my account and never go back.

That is why the ads are between posts, so they do not mess up the poster's post.
Title: Re: Ad Management mod
Post by: tflnetwork on July 05, 2008, 11:11:28 PM
Does anyone know how to make the ads show for guests?
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on July 06, 2008, 08:00:54 AM
Go into Admin -> Permissions -> Guests -> Click box for Enable Ads
Title: Re: Ad Management mod
Post by: assam_siddibapa on July 06, 2008, 10:20:11 AM
I wanted to uninstall and and re install ad mod ........ so wat all i need to delete ....... and wat about the database
Title: Re: Ad Management mod
Post by: ArkServer on July 06, 2008, 02:40:21 PM
I have a small request, can anyone edit the theme: http://www.simplemachines.org/community/index.php?topic=244679.0 do that it shows the ads? I like both the same and this mod a lot and i tried it myself but without any success :( if anyone can do this for me ill be grateful :)
Title: Re: Ad Management mod
Post by: SilverKnight on July 08, 2008, 07:53:55 AM
Help ! i dont see the ad management.. running smf 1.5.0
Title: Re: Ad Management mod
Post by: stfox100 on July 09, 2008, 01:57:17 PM
I'll check back when this is stable for SMF 1.1.5
Good mod, hope you have a working 1.1.5 version soon.
Title: Re: Ad Management mod
Post by: jordanid on July 09, 2008, 02:17:22 PM
i still didnt have any reply on my request above .. can any one help ?!!
Title: Re: Ad Management mod
Post by: assam_siddibapa on July 10, 2008, 08:16:17 AM
I dont know why ... this mod as famous mod on smf but dont get help on this soon
Title: Re: Ad Management mod
Post by: EdwinK on July 13, 2008, 01:55:38 PM
Quote from: assam_siddibapa on July 10, 2008, 08:16:17 AM
I dont know why ... this mod as famous mod on smf but dont get help on this soon

It's working perfectly on 1.1.5 Maybe there are other mods interfering with your installation?
Title: Re: Ad Management mod
Post by: ArkServer on July 13, 2008, 08:40:49 PM
Quote from: ArkServer on July 06, 2008, 02:40:21 PM
I have a small request, can anyone edit the theme: http://www.simplemachines.org/community/index.php?topic=244679.0 do that it shows the ads? I like both the same and this mod a lot and i tried it myself but without any success :( if anyone can do this for me ill be grateful :)

Well, i've fixed it myself. Link: http://www.engineeringserver.com/forum/index.php , cheers
Title: Re: Ad Management mod
Post by: ddos on July 14, 2008, 03:06:05 PM
Does anyone know how to get this to work with the "All Green SEO" theme?

Any help would be greatly appreciated.


Thanks
Title: Re: Ad Management mod
Post by: Bigguy on July 14, 2008, 04:08:13 PM
Run the mod through the package parser and only do the edits to the template files that are in your custom theme folder if the mod is already installed.
Title: Re: Ad Management mod
Post by: ddos on July 14, 2008, 04:54:30 PM
Quote from: Bigguy on July 14, 2008, 04:08:13 PM
Run the mod through the package parser and only do the edits to the template files that are in your custom theme folder if the mod is already installed.
Quote from: Bigguy on July 14, 2008, 04:08:13 PM
Run the mod through the package parser and only do the edits to the template files that are in your custom theme folder if the mod is already installed.

This is what I did and the ads don't work.  If i switch to the SMF default theme everything works great.
Title: Re: Ad Management mod
Post by: Bigguy on July 14, 2008, 05:03:01 PM
Are you running SMF 2.0
Title: Re: Ad Management mod
Post by: ddos on July 14, 2008, 05:13:45 PM
Quote from: Bigguy on July 14, 2008, 05:03:01 PM
Are you running SMF 2.0

I am running SMF 1.1.5
Title: Re: Ad Management mod
Post by: Bigguy on July 14, 2008, 05:51:37 PM
Then I would go back over the manual edits you did to your custom template files.
Title: Re: Ad Management mod
Post by: ddos on July 14, 2008, 07:07:20 PM
Quote from: Bigguy on July 14, 2008, 05:51:37 PM
Then I would go back over the manual edits you did to your custom template files.

All I did was download the theme from SMF themes and install it, no customization at all.
Title: Re: Ad Management mod
Post by: jfhsas on July 14, 2008, 07:20:19 PM
Over 2800 post about one mod! Must be something wrong. Install under 1.1.4 worked  for me. Now under 1.1.5  :'(

Jan
Title: Re: Ad Management mod
Post by: ddos on July 14, 2008, 07:42:58 PM
Quote from: jfhsas on July 14, 2008, 07:20:19 PM
Over 2800 post about one mod! Must be something wrong. Install under 1.1.4 worked  for me. Now under 1.1.5  :'(

Jan

What I am finding is it works fine with the default theme, when I change to any other theme it does not.
Title: Re: Ad Management mod
Post by: jfhsas on July 14, 2008, 07:46:48 PM
PLEASE don't quote to a message directly above!!
Title: Re: Ad Management mod
Post by: Urbanite on July 14, 2008, 09:06:10 PM
Been using this superb mod for just a little while, and was wondering if there's a way that I can have the "welcome area" banner showing at all times even when I have ads turned off for members, the reason quite simply is that a banner in this area is much less obtrusive and could be deemed a high value position. The selection of who sees what ad in what area is governed by the board its in and not the permissions of the member, where as a member you either see all or no ads. I wish for all ads to be only seen by guests, not a problem, but I also want this welcome area ad box to be seen by everyone. I'm assuming that I will have to leave things as they are, but instead of using the AdMod I would have to insert the code directly into the index.template.php file, and if I knew where I wouldn't be asking here now.

Any clues please?

1.5 CORE
Title: Re: Ad Management mod
Post by: Bigguy on July 15, 2008, 12:00:55 AM
Then edits have to be done to the custom template files that are in the theme folder of the theme you are using.

Quote from: ddos on July 14, 2008, 07:07:20 PM
Quote from: Bigguy on July 14, 2008, 05:51:37 PM
Then I would go back over the manual edits you did to your custom template files.

All I did was download the theme from SMF themes and install it, no customization at all.
Title: Re: Ad Management mod
Post by: Urbanite on July 15, 2008, 04:08:10 AM
Yes exactly my point, what I'm asking is..... what do I have to edit and what do I have to insert to get the desired result of a banner in this area that can't be turned off?
Title: Re: Ad Management mod
Post by: Bigguy on July 15, 2008, 03:16:57 PM
And I have already said this.

Quote from: Bigguy on July 14, 2008, 04:08:13 PM
Run the mod through the package parser and only do the edits to the template files that are in your custom theme folder if the mod is already installed.
Title: Re: Ad Management mod
Post by: Nica on July 15, 2008, 04:22:25 PM
I installed this mod on a new install of 1.1.5. via the package manager. All yests were successful.
But I don't see the controls under configuration. I don't see any sign of it. What am I missing?

Other mods installed.
Default Theme

1. SMF Gallery Lite      1.8.3
2. clickableImagebbcode    1.0

www.mom-me-dearest.com/Mom-Me
test account:
User trial
PW   trial
Title: Re: Ad Management mod
Post by: naeruj on July 15, 2008, 04:27:48 PM
my ads are only showing to admins...not to members. how do i fix this? thank you!!
Title: Re: Ad Management mod
Post by: babjusi on July 15, 2008, 04:46:36 PM
Quote from: Nica on July 15, 2008, 04:22:25 PM
I installed this mod on a new install of 1.1.5. via the package manager. All yests were successful.
But I don't see the controls under configuration. I don't see any sign of it. What am I missing?

Other mods installed.
Default Theme

1. SMF Gallery Lite      1.8.3
2. clickableImagebbcode    1.0

www.mom-me-dearest.com/Mom-Me (http://www.mom-me-dearest.com/Mom-Me)
test account:
User trial
PW   trial

Your default language was set to English-utf8. I changed it to plain english and now you can see the mod''s configuration settings at the acp.
Title: Re: Ad Management mod
Post by: babjusi on July 15, 2008, 04:46:54 PM
Quote from: naeruj on July 15, 2008, 04:27:48 PM
my ads are only showing to admins...not to members. how do i fix this? thank you!!

Check the permissions
Title: Re: Ad Management mod
Post by: naeruj on July 15, 2008, 04:50:12 PM
where do i find the permissions?
thanks!
Title: Re: Ad Management mod
Post by: Kirsty on July 15, 2008, 05:25:19 PM
I am having major issues with the edits to display_template.

When I copy/paste into my own display template, it pastes it into one whole long sentence, it's not broken up into sections like it should be.

I am using notepad++ to edit and it's still not working.

eta: I am having to edit display template as I have other mods on, so I need to edit it manually :)
Title: Re: Ad Management mod
Post by: Nica on July 15, 2008, 05:44:30 PM
Quote from: babjusi on July 15, 2008, 04:46:36 PM
Quote from: Nica on July 15, 2008, 04:22:25 PM
I installed this mod on a new install of 1.1.5. via the package manager. All yests were successful.
But I don't see the controls under configuration. I don't see any sign of it. What am I missing?

Other mods installed.
Default Theme

1. SMF Gallery Lite      1.8.3
2. clickableImagebbcode    1.0

www.mom-me-dearest.com/Mom-Me (http://www.mom-me-dearest.com/Mom-Me)
test account:
User trial
PW   trial

Your default language was set to English-utf8. I changed it to plain english and now you can see the mod''s configuration settings at the acp.


Thank you so much. It works great now.
Title: Re: Ad Management mod
Post by: babjusi on July 15, 2008, 05:48:26 PM
Quote from: Nica on July 15, 2008, 05:44:30 PM
Quote from: babjusi on July 15, 2008, 04:46:36 PM
Quote from: Nica on July 15, 2008, 04:22:25 PM
I installed this mod on a new install of 1.1.5. via the package manager. All yests were successful.
But I don't see the controls under configuration. I don't see any sign of it. What am I missing?

Other mods installed.
Default Theme

1. SMF Gallery Lite      1.8.3
2. clickableImagebbcode    1.0

www.mom-me-dearest.com/Mom-Me (http://www.mom-me-dearest.com/Mom-Me)
test account:
User trial
PW   trial

Your default language was set to English-utf8. I changed it to plain english and now you can see the mod''s configuration settings at the acp.


Thank you so much. It works great now.


Glad I could be of help :)
Title: Re: Ad Management mod
Post by: Urbanite on July 15, 2008, 06:56:16 PM
Could anyone advise me of the code to insert in place of this Ad Manager "Welcome Area" code...

';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo '
[/font][/size]


I want my own banner "always on" in place of the Ad Manager welcome area placed ad. TIA
Title: Re: Ad Management mod
Post by: leway on July 15, 2008, 08:19:58 PM
I'm having problems on my site www.teamr3.net/forum/  for some reason the ads are only showing when people are logged in, any idea on how to fix this?
Title: Re: Ad Management mod
Post by: Kirsty on July 15, 2008, 08:51:29 PM
Leway: there is an Ad option in permissions in which you can set to enable :)
Title: Re: Ad Management mod
Post by: Bigguy on July 15, 2008, 08:53:54 PM
Quote from: ImNoDozer on July 15, 2008, 06:56:16 PM
Ad Manager welcome area placed ad. TIA[/font][/size]

I think this is what is screwing me up. The ad mod does not place ads by default. You have to place the code for your banner within the ad mod in the admin panel so it shows up in the welcome user area. If you want it always on then just have that one banner configured for that particualr spot in the ad mod. Is that what you were asking. ???
Title: Re: Ad Management mod
Post by: leway on July 15, 2008, 09:17:07 PM
I don't see it can you give me some more info?
Title: Re: Ad Management mod
Post by: Urbanite on July 15, 2008, 11:46:41 PM
Ooook Bigguy thanks for your interest ....this is the issue, I cannot have just the welcome area showing by itself, I have the permissions  configured so that guests see all ads meaning two vertical googe ad boxes and the welcome area banner, members don't see any ads. I want members to see the welcome area banner ad as it's a prime spot, but the welcome area is always blank for members. as it cant be individually selected in ad manager, you either see all the ads... or you see none! So I'm guessing the only way around this is to ignore what ad manager can do and insert my own code to do what ad manager puts into the welcome box..... this is the code I'm looking for.. and where to put it in the index.template.php file... making sense?  ...or can it be configured in the mySql database to allow the welcome area ad to show for everybody... member or not?
Title: Re: Ad Management mod
Post by: jsandfort on July 16, 2008, 01:56:35 AM
Is anyone working on a URL redirector?  I'd like to have log data for any clicks, when clicked, who clicked, which page/ad location where it was clicked, how many times the ad has been displayed, etc?  The way it works now doesn't really keep any info than how many times the ad has been displayed.  And it's not really useful info because it needs to be available in a calendar time (ie, x many times it was displayed in y time).  All this info would need to be displayable for use in selling banner advertising.

If no one else is working on this I might do it.

Comments/suggestions?
Title: Re: Ad Management mod
Post by: Urbanite on July 16, 2008, 04:41:59 AM
Do a search on here for OpenX, it already does what you are asking in a complete advertising management package and runs inside the Ad Management Mod.


Features include but are far from limited to... ad rotation, setting the timing of ads displaying, selectable preferences with the page viewers location or language of their browser etc. It also covers the insertion of AdSense intermixed with your own banners, flash, text only, you name it. All with full administrator or advertiser reporting and advertisers get sent reports on how their ads are doing apart from having their own login to manage or alter their ads (if you want them to) a LOT of features with this package. Oh and this forum uses it, maybe it will get its own section on here someday, with over 68,000 downloads of the Ad Management Mod there is maybe justification for an OpenX section, this forum could sure teach them a thing or two about communication!

That's about it in a nutshell, plenty to read up on!

If you are a coder I have raised a few questions on here, with links to the OpenX forum that I would like you to have a look at if you have the time.  :)
Title: Re: Ad Management mod
Post by: stmartin on July 16, 2008, 10:07:21 AM
Hello!  :)

I want to know if there is some option for showing only the ads to some member groups or users (not to all member groups)?

Is there some option like this?

Thank you.
Title: Re: Ad Management mod
Post by: Bigguy on July 16, 2008, 12:37:52 PM
Yes check out your permuissions for membergroups.

@ ImNoDozer: Yes makes sense. You would need to get the code for the banner. Maybe something like this:

<div><a href="http://www.link_to_site.org" target="_blank">
<img src="http://www.smfhelper.info/image.gif">
</a></div>


And place it around the same area as were the ad mod places the welcome user area code.
Title: Re: Ad Management mod
Post by: Kirsty on July 16, 2008, 06:27:22 PM
Can someone please help with my issue please :)

I'd really like to finish this mod off so that I can start using it :)
Title: Re: Ad Management mod
Post by: Bigguy on July 16, 2008, 10:24:07 PM
I can't help you tonight but what is your issue. ???
Title: Re: Ad Management mod
Post by: jsandfort on July 17, 2008, 03:22:26 AM
Quote from: ImNoDozer on July 16, 2008, 04:41:59 AM
Do a search on here for OpenX, it already does what you are asking in a complete advertising management package and runs inside the Ad Management Mod.
...
If you are a coder I have raised a few questions on here, with links to the OpenX forum that I would like you to have a look at if you have the time.  :)

Thanks for the heads up.  :)  As it turns out last night I checked the ads here and saw OpenX, downloaded it, installed it, and started learning it.  But I got busy with other stuff and haven't finished.  It looks like way more than I need but better than wasting time developing something special for me.  :)

When/if I get the chance I'll see about the coding.  Maybe I can help.
Title: Re: Ad Management mod
Post by: Urbanite on July 17, 2008, 09:09:55 AM
... Thanks Bigguy, its as much a question of exactly where to put it.

Replacing the Ad Managment text with something like what you posted ends up ABOVE the welcome box.

Can this code be altered in anyway to insert the banner in the correct place (this is the ad management welcome area code)



'; //Welcome Ads if (function_exists("show_welcomeAds")) { $ads = show_welcomeAds(); if(!empty($ads)) { echo '<td class="windowbg2">'; if($ads['type']==0) echo $ads['content']; else eval($ads['content']); echo '</td>'; } unset($ads); } echo '


Using 1.5 CORE
Title: Re: Ad Management mod
Post by: gunsite on July 17, 2008, 05:34:53 PM
Hi All

Hope some can help, been editing the code to get this mod to work in Babylon theme and only want to display ads in the centre of the area between the search field and the Home, Help etc icons.  I keep getting the ads showing up next to the Home, Help etc icon and attached, xxx used as sample.  I've also attached where the code is being inserted, I'm using 1.1.5.

Thanks in advance.

(http://i273.photobucket.com/albums/jj230/craigklee/Bannersample.jpg)

   <a href="javascript:void(0);" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 2ex 2px 0;" border="0" /></a>';

   // Show the menu here, according to the menu sub template.

   //Below the menu ads
         template_menu();
   if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
   {
      $ads = show_indexAds();   
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);

      //Tower left Ads
      $ads = show_towerleftAds();
      if(!empty($ads))
         echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

      unset($ads);
      //Tower Right Ads
      $ads = show_towerrightAds();   
      if(!empty($ads))
         echo '<table><tr><td width="100%" valign="top">';
      unset($ads);
   }   








   // The main content should go here.  A table is used because IE 6 just can't handle a div.
   echo '
   <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
      <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
}

function template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt;

Title: Re: Ad Management mod
Post by: MaXiForum.cz on July 18, 2008, 06:49:36 AM
It´s very good mod :)
btw. It's changing ads in the templete. How could I avoid it?
THX
Title: Re: Ad Management mod
Post by: PhantomUser on July 22, 2008, 03:34:51 AM
I get the mod and I try to use it, but have a problem :(
Installation process is complete without errors, but after "Setting" have white place and I can't see "Configuration" for the mod :(
I use Bluur theme. Please help me.

PS : My SMF Version is 1.1.5 ;)
Title: Re: Ad Management mod
Post by: jordanid on July 22, 2008, 12:05:14 PM
Phantomuser
go to the Admin Cpanel >> Server Settings >> and put the langauge to English .
it should apper then
Title: Re: Ad Management mod
Post by: MaXiForum.cz on July 22, 2008, 02:17:59 PM
Pls. is changing ads normal or not??
THX
Title: Re: Ad Management mod
Post by: MoreBloodWine on July 22, 2008, 10:04:19 PM
I'm using the WoW-DK theme and alot of the edits are giving me trouble... either because I cant find it or there's duplicate lines, and I really wana use this mod.

Edit: If Jerm or Bigguy could be so kind as to maybe do the edits for me I'd really appreciate it... Thx.
Title: Re: Ad Management mod
Post by: shadowravenhawk on July 23, 2008, 10:56:30 PM
I changed a few lines of code in the index.template.php in the Themes only to ad meta tags and my ads are not appearing on the home page but are appearing in the posts.
Title: Re: Ad Management mod
Post by: arsgeek on July 24, 2008, 01:50:45 PM
I'm seeing the same thing - only logged in users are seeing ads.  Plus, I have duplicate ads.

anyone?
Title: Re: Ad Management mod
Post by: ccbtimewiz on July 24, 2008, 01:55:49 PM
Both of you, ATTACH your index.template.php files. I'll see what I can do.
Title: Re: Ad Management mod
Post by: shadowravenhawk on July 24, 2008, 06:38:19 PM
My index.template.php for my Alien Nation theme is attached.
Title: Re: Ad Management mod
Post by: arsgeek on July 25, 2008, 10:30:30 AM
Quote from: ccbtimewiz on July 24, 2008, 01:55:49 PM
Both of you, ATTACH your index.template.php files. I'll see what I can do.

Here you go. And thanks - it's the default template for SMF 1.1.5
Title: Re: Ad Management mod
Post by: wlchase on July 25, 2008, 01:29:22 PM
I installed this mod on the default theme, as noted, and it's sooo cool! Great work!

BUT, of course, I'd much rather use the Big Blue 11 theme.

I started the manual edit, but BB11 does not have a BoardIndex.template.php,  MessageIndex.template.php, nor Display.template.php. And when I edit the index.template.php, at the part where I find <body>';, I find only <body> and when I add the

    //Display ads on the top of the page
    if (function_exists("show_topofpageAds"))
    {
        $ads = show_topofpageAds();   
        if(!empty($ads))
            if($ads['type']==0)
                echo $ads['content'];
            else
                eval($ads['content']);   
        unset($ads);
    }


I get a syntax error that it's missing a "," or ";".

Thanks for a great mod, and any help you can send my way!
Bill
Title: Re: Ad Management mod
Post by: ccbtimewiz on July 25, 2008, 01:32:51 PM
Here you are, good sir.

I simply did this:

echo '
</head>
<body>';
  //Display ads on the top of the page
    if (function_exists("show_topofpageAds"))
    {
        $ads = show_topofpageAds();   
        if(!empty($ads))
            if($ads['type']==0)
                echo $ads['content'];
            else
                eval($ads['content']);   
        unset($ads);
    }
    echo '
  <div id="wrapper">
  <div id="header">
<div id="header-l">
<div id="header-r">
  <div id="userarea">';
Title: Re: Ad Management mod
Post by: ccbtimewiz on July 25, 2008, 01:36:58 PM
@arsgeek > Here is your new index.template.php file. I removed the duplicate code and inserted a statement that shows the ads to both logged-in and guest users.

Also please alter your permissions via Admin > Permissions on the guest membergroup.
Title: Re: Ad Management mod
Post by: wlchase on July 25, 2008, 01:46:28 PM
Quote from: ccbtimewiz on July 25, 2008, 01:32:51 PM
Here you are, good sir.

I simply did this:

Wow! Speedy!
The lack of the other files, BoardIndex.template.php, etc., won't mess things up?

Thanks!
Bill

Title: Re: Ad Management mod
Post by: arsgeek on July 25, 2008, 01:50:48 PM
Quote from: ccbtimewiz on July 25, 2008, 01:36:58 PM
@arsgeek > Here is your new index.template.php file. I removed the duplicate code and inserted a statement that shows the ads to both logged-in and guest users.

Also please alter your permissions via Admin > Permissions on the guest membergroup.

Ahh very nice, thank you!
Title: Re: Ad Management mod
Post by: ccbtimewiz on July 25, 2008, 02:20:47 PM
Quote from: wlchase on July 25, 2008, 01:46:28 PM
Quote from: ccbtimewiz on July 25, 2008, 01:32:51 PM
Here you are, good sir.

I simply did this:

Wow! Speedy!
The lack of the other files, BoardIndex.template.php, etc., won't mess things up?

Thanks!
Bill



That depends. Are those said files in your theme?
Title: Re: Ad Management mod
Post by: wlchase on July 25, 2008, 02:44:41 PM
Quote from: ccbtimewiz on July 25, 2008, 02:20:47 PM
Quote from: wlchase on July 25, 2008, 01:46:28 PM
Wow! Speedy!
The lack of the other files, BoardIndex.template.php, etc., won't mess things up?

Thanks!
Bill



That depends. Are those said files in your theme?

No, Big Blue doesn't have the BoardIndex., MessageIndex. or Display.template.php.

Hmm... I see now it also says it's compatible with 1.1.4..... maybe I'm trying to use something I shouldn't.

Bill
Title: Re: Ad Management mod
Post by: shadowravenhawk on July 25, 2008, 03:52:44 PM
ccbtimewiz it still isn't working. Your index.template puts the ad at the top of the forum but it cuts the whole top part of the forum off.
Title: Re: Ad Management mod
Post by: Urbanite on July 25, 2008, 04:23:02 PM
Quote from: ccbtimewiz on July 25, 2008, 01:36:58 PM
..... I removed the duplicate code and inserted a statement that shows the ads to both logged-in and guest users.

Also please alter your permissions via Admin > Permissions on the guest membergroup.

Hey ccbtimewiz, what is this statement you are talking about, is it possible to show the "welcome area" ad even if permissions in the membergroup is turned off with a similar "statement"?

Title: Re: Ad Management mod
Post by: ccbtimewiz on July 25, 2008, 05:10:59 PM
Quote from: ImNoDozer on July 25, 2008, 04:23:02 PM
Quote from: ccbtimewiz on July 25, 2008, 01:36:58 PM
..... I removed the duplicate code and inserted a statement that shows the ads to both logged-in and guest users.

Also please alter your permissions via Admin > Permissions on the guest membergroup.

Hey ccbtimewiz, what is this statement you are talking about, is it possible to show the "welcome area" ad even if permissions in the membergroup is turned off with a similar "statement"?


I haven't tested that yet, but I think local permissions override global permissions. So it works if the permissions are set in the SMF console.

@shadowravenhawk > I didn't alter your template? Where is your template?
Title: Re: Ad Management mod
Post by: John Rambo on July 25, 2008, 05:29:14 PM
You put out beautifull work jerm.

Thanks.  :)
Title: Re: Ad Management mod
Post by: shadowravenhawk on July 25, 2008, 07:16:34 PM
Here my index.template.php for my Alien Nation theme. I am also having problems getting two banners to appear that the top of the forum.
Title: Re: Ad Management mod
Post by: xsghost on July 25, 2008, 07:17:39 PM
How do i get this mod working for the theme kelo-lt?
, here:
http://demo.padexx.de/smf/index.php?theme=28

Thanks
Title: Re: Ad Management mod
Post by: ccbtimewiz on July 25, 2008, 07:46:15 PM
Quote from: xsghost on July 25, 2008, 07:17:39 PM
How do i get this mod working for the theme kelo-lt?
, here:
http://demo.padexx.de/smf/index.php?theme=28

Thanks

You'll be needing to edit the theme you're using by editing the core templates via FTP. How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480)

The location of said files would be found in:

The location of the file is %root%/%smf_root%/Themes/*name of theme*/

You can find manual modification instructions on that modification's thread and/or use the parser built in on the mod display.
Title: Re: Ad Management mod
Post by: ccbtimewiz on July 25, 2008, 07:50:31 PM
@shadowravenhawk > I've repaired the URLs of your image links. You need to use absolute links such as "http://" instead of relative links like "www". I also found no problems with your ad-mod.
Title: Re: Ad Management mod
Post by: shadowravenhawk on July 25, 2008, 09:54:02 PM
It didn't work and the ads are only appearing on every page but the home home.
Title: Re: Ad Management mod
Post by: ccbtimewiz on July 25, 2008, 09:57:42 PM
Quote from: shadowravenhawk on July 25, 2008, 09:54:02 PM
It didn't work and the ads are only appearing on every page but the home home.

Strange. Link to site? Also, what is your "home" home? index.php? Or index.php?action=home?
Title: Re: Ad Management mod
Post by: xsghost on July 25, 2008, 10:26:33 PM
ccbtimewiz, would you be able to
Quote from: ccbtimewiz on July 25, 2008, 07:46:15 PM
Quote from: xsghost on July 25, 2008, 07:17:39 PM
How do i get this mod working for the theme kelo-lt?
, here:
http://demo.padexx.de/smf/index.php?theme=28

Thanks

You'll be needing to edit the theme you're using by editing the core templates via FTP. How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480)

The location of said files would be found in:

The location of the file is %root%/%smf_root%/Themes/*name of theme*/

You can find manual modification instructions on that modification's thread and/or use the parser built in on the mod display.


ccbtimewiz, would you be able to help me with this mod as well? I am still new to SMF and learning how to mod these files manually. :)

Thanks
Title: Re: Ad Management mod
Post by: ccbtimewiz on July 25, 2008, 10:36:04 PM
@xsghost > Sure thing. Please attach your index.template.php file.
Title: Re: Ad Management mod
Post by: shadowravenhawk on July 25, 2008, 11:10:16 PM
ccbtimewiz the home page is index.html with a redirect because of the server. They said that they supported php but that turned out to be bull.

the home page is www.ufo-secret-files.net/index.html with a meta tag refresh and page it goes to is:
http://www.ufo-secret-files.net/forum/index.php
Title: Re: Ad Management mod
Post by: xsghost on July 26, 2008, 08:30:02 AM
Quote from: ccbtimewiz on July 25, 2008, 10:36:04 PM
@xsghost > Sure thing. Please attach your index.template.php file.

Thank you so much ccbtimewiz. I really appreciate it. :)
Title: Re: Ad Management mod
Post by: ccbtimewiz on July 26, 2008, 11:20:25 AM
@xsghost > Here you are.
Title: Re: Ad Management mod
Post by: MaXiForum.cz on July 26, 2008, 11:23:29 AM
2 ccbtimewiz pls. help.
Everything works.
But ads are changing in the templete. How could I avoid it?
Pls. is changing ads normal or not??
THX
Title: Re: Ad Management mod
Post by: ccbtimewiz on July 26, 2008, 11:25:40 AM
Quote from: MaxiPes on July 26, 2008, 11:23:29 AM
2 ccbtimewiz pls. help.
Everything works.
But ads are changing in the templete. How could I avoid it?
Pls. is changing ads normal or not??
THX

I believe there is an option in the admin panel for the ads. Take a look there.
Title: Re: Ad Management mod
Post by: MaXiForum.cz on July 26, 2008, 11:28:50 AM
Quote from: ccbtimewiz on July 26, 2008, 11:25:40 AM
I believe there is an option in the admin panel for the ads. Take a look there.

This option is not on the control panel :(
Try www.maxiforum.cz (http://www.maxiforum.cz) 2x F5
So is something wrong?
THX a lot.  ;)
Title: Re: Ad Management mod
Post by: shadowravenhawk on July 26, 2008, 03:40:29 PM
ccbtimewiz have you had a chance to look at mine?
Title: Re: Ad Management mod
Post by: Kirsty on July 29, 2008, 12:15:56 AM
Quote from: Kirsty on July 15, 2008, 05:25:19 PM
I am having major issues with the edits to display_template.

When I copy/paste into my own display template, it pastes it into one whole long sentence, it's not broken up into sections like it should be.

I am using notepad++ to edit and it's still not working.

eta: I am having to edit display template as I have other mods on, so I need to edit it manually :)

Hi,
I still haven't had any help regarding my issue.  Is there anyone that would be able to help me at all?

Thanking you all in advance.

Kirsty
Title: Re: Ad Management mod
Post by: ccbtimewiz on July 29, 2008, 12:17:38 AM
Quote from: Kirsty on July 29, 2008, 12:15:56 AM
Quote from: Kirsty on July 15, 2008, 05:25:19 PM
I am having major issues with the edits to display_template.

When I copy/paste into my own display template, it pastes it into one whole long sentence, it's not broken up into sections like it should be.

I am using notepad++ to edit and it's still not working.

eta: I am having to edit display template as I have other mods on, so I need to edit it manually :)

Hi,
I still haven't had any help regarding my issue.  Is there anyone that would be able to help me at all?

Thanking you all in advance.

Kirsty

I apologize for not answering you.

The problem is question is a problem with the website as per this thread (http://www.simplemachines.org/community/index.php?topic=232243.0).
Title: Re: Ad Management mod
Post by: Kirsty on July 29, 2008, 05:03:13 AM
I have absolutely no idea where the answer is within that topic.
Title: Re: Ad Management mod
Post by: ccbtimewiz on July 29, 2008, 10:49:04 AM
Basically, it's a problem with the website. That is why you can't copy code with break lines.
Title: Re: Ad Management mod
Post by: Kirsty on July 30, 2008, 05:05:05 AM
Thanks ccbtimewiz, any idea on how I could fix it? I cannot use this mod fully as this is causing heaps of dramas.
Title: Re: Ad Management mod
Post by: Urbanite on July 30, 2008, 06:30:01 AM
Kirsty,

I know the problem you speak of, you could use a Package Parser with your Notepad++, there's a few available try http://www.adrevenueshare.com/parser.php (http://www.adrevenueshare.com/parser.php) or http://sleepycode.com/PackageParser/index.php (http://sleepycode.com/PackageParser/index.php) Using them will let you copy/paste the code properly and allow you you to edit it.   

Title: Re: Ad Management mod
Post by: ccbtimewiz on July 30, 2008, 10:47:38 AM
Also Kristy, for further assistance, check out the ad-mod's website.

http://www.smfads.com/forums/index.php
Title: Re: Ad Management mod
Post by: netco on July 30, 2008, 11:54:47 AM
How can i display the AD  for guests ?
now just the members can see the AD
Title: Re: Ad Management mod
Post by: Bigguy on July 30, 2008, 11:55:33 AM
You will have to specify that in member permissions for guests.
Title: Re: Ad Management mod
Post by: netco on July 31, 2008, 08:02:27 AM
Thanks Bigguy .
Title: Re: Ad Management mod
Post by: PAPABEAR on August 01, 2008, 11:54:02 PM
I think I will check this baby out on my v1.1.5
Title: Re: Ad Management mod
Post by: shanksta13 on August 02, 2008, 08:08:29 PM
Nevermind... ;)
Title: Re: Ad Management mod
Post by: shanksta13 on August 02, 2008, 08:40:15 PM
Okay, I uploaded and installed the mod successfully, but the ad link isn't showing up under the configuration tab in the admin panel.  Any suggestions?

I'm running SMF v 1.1.5.
Title: Re: Ad Management mod
Post by: ccbtimewiz on August 02, 2008, 09:21:55 PM
Quote from: shanksta13 on August 02, 2008, 08:40:15 PM
Okay, I uploaded and installed the mod successfully, but the ad link isn't showing up under the configuration tab in the admin panel.  Any suggestions?

I'm running SMF v 1.1.5.

Is your forum set to English and not utf8-english?

Admin > Server Settings (http://docs.simplemachines.org/index.php?board=52.0;sort=subject)
Title: Re: Ad Management mod
Post by: chinkara on August 03, 2008, 02:58:42 PM
i wanna to know that wher i upload that files.

i m new and i dunno that.
Title: Re: Ad Management mod
Post by: shanksta13 on August 03, 2008, 03:57:17 PM
Quote from: ccbtimewiz on August 02, 2008, 09:21:55 PM
Quote from: shanksta13 on August 02, 2008, 08:40:15 PM
Okay, I uploaded and installed the mod successfully, but the ad link isn't showing up under the configuration tab in the admin panel.  Any suggestions?

I'm running SMF v 1.1.5.

Is your forum set to English and not utf8-english?

Admin > Server Settings (http://docs.simplemachines.org/index.php?board=52.0;sort=subject)

Yeah I ran across that in another thread right after I posted that.  Thanks.  I've got my whole forum set up and configured now, made the switch last night.
Title: Re: Ad Management mod
Post by: dannytg on August 04, 2008, 07:41:27 AM
I have installed Ad Management mod on Babylon theme and it works OK, but...

When I paste Google Adsense code into Content box of Ad Management (v2.3) and click add button,
nothing happens...

After few minutes the browser displays error: Connection closed by remote server... (and new Ad is not saved).

If I put a code to show any image from somewhere - there is no problem.

Any ideas?
Title: Re: Ad Management mod
Post by: Kylezz on August 04, 2008, 04:39:47 PM
see it works:

(http://i33.tinypic.com/rssbgi.jpg)


   Sorry about the pic. But still no more adds.
Title: Re: Ad Management mod
Post by: hairul on August 05, 2008, 12:53:53 PM
hi, super newbie
im also already install this mod on default theme
but seem the're no admin panel for this mod like nothing install.

actually, what i need b4 install this mod? Im using 1.1.5 smf
Title: Re: Ad Management mod
Post by: babjusi on August 05, 2008, 01:08:52 PM
Quote from: hairul on August 05, 2008, 12:53:53 PM
hi, super newbie
im also already install this mod on default theme
but seem the're no admin panel for this mod like nothing install.

actually, what i need b4 install this mod? Im using 1.1.5 smf

See that the default language of your forum is set to English and not english-utf8 or some other language.
Title: Re: Ad Management mod
Post by: littlewitchy on August 05, 2008, 05:51:18 PM
Hello! :)
I also have a problem with the ad management mod, installed on Smf 1.5. I've managed to installed it, all CHMOD properly set, also modified the php files for the core version, my English is English, not utf-8 and I've read the forum thread.  :)
I just want to know how can run the quieries in the phpmyadmin because I get quieries errors when I run them and I'm coping them from the instruction manual.   ??? No link in the configuration menu also :(((
Thank you very much in advance!!!
Title: Re: Ad Management mod
Post by: babjusi on August 05, 2008, 05:55:41 PM
Quote from: littlewitchy on August 05, 2008, 05:51:18 PM
Hello! :)
I also have a problem with the ad management mod, installed on Smf 1.5. I've managed to installed it, all CHMOD properly set, also modified the php files for the core version, my English is English, not utf-8 and I've read the forum thread.  :)
I just want to know how can run the quieries in the phpmyadmin because I get quieries errors when I run them and I'm coping them from the instruction manual.   ??? No link in the configuration menu also :(((
Thank you very much in advance!!!

You can run the queries at the "SQL" box
Title: Re: Ad Management mod
Post by: Adish - (F.L.A.M.E.R) on August 05, 2008, 08:46:29 PM
Hello,

Only the code which didnt find was    template_menu();

but found lots of    template_menu()

Hence added the code after one of them which I felt was right.

After doing so, i got this error. And hence i restored the older file. Anything that I had to do to solve this error ?

Template Parse Error!
There was a problem loading the /Themes/dn/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected ';', expecting '{'
Title: Re: Ad Management mod
Post by: littlewitchy on August 06, 2008, 03:37:23 AM
Quote from: babjusi on August 05, 2008, 05:55:41 PM
You can run the queries at the "SQL" box
Hi:)
I'm running the queries in there but it returns only with error messages. The first to quieries are for creating two tables. I have those two tables, but I can't execute the other quieries because of the returning errors. What should I do?
Thanks!:)
Title: Re: Ad Management mod
Post by: Farmacija on August 06, 2008, 09:18:32 AM
i have problem with using this mod ...

http://www.simplemachines.org/community/index.php?topic=246185.0

when i disable ads, forum works fine, but when i activate ads on top of page, user info box disapear ...

i don't know where is a problem and i didn't change anything ... (except some smaller changes ...)
Title: Re: Ad Management mod
Post by: ccbtimewiz on August 06, 2008, 03:37:12 PM
Quote from: Farmacija on August 06, 2008, 09:18:32 AM
i have problem with using this mod ...

http://www.simplemachines.org/community/index.php?topic=246185.0

when i disable ads, forum works fine, but when i activate ads on top of page, user info box disapear ...

i don't know where is a problem and i didn't change anything ... (except some smaller changes ...)

What theme are you using? What mods do you have installed? What PHP version is your server running? What SMF version are you running? Are you using Apache?
Title: Re: Ad Management mod
Post by: Farmacija on August 06, 2008, 04:04:11 PM
default theme.
mods list are in attach
Apache version   2.0.63
PHP version   5.2.5
MySQL version   4.1.22-standard
smf 1.1.5

i didn't install any mods recently ...

it just start to happens and i realise that when i disable all ads which i put on site by ad management mod, everything is fine ...  :o
Title: Re: Ad Management mod
Post by: TheDisturbedOne on August 06, 2008, 04:14:22 PM
Quote from: chinkara on August 03, 2008, 02:58:42 PM
i wanna to know that wher i upload that files.

i m new and i dunno that.
Upload the .zip file to the packages manager.
Title: Re: Ad Management mod
Post by: Adish - (F.L.A.M.E.R) on August 06, 2008, 09:47:01 PM
I have done all the theme edits but as the parser didnt show the correct place where i had to put the codes, i have added them acording to a bit of understanding. I am sure about that, that some of the codes arn't placed right.

the code which i had to add after:-
template_menu();

which was:-

//Below the menu ads
if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
$ads = show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

//Tower left Ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);
//Tower Right Ads
$ads = show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}



Isnt added, as the code which i had to find wasnt present in my theme(Dark Night).

Kindly check them and please do the needful. I have been trying out hard to make this mod work properly.

Attached files of theme (Dark Night):-
Index.template.php
BoardIndex.template.php

Please Help me out.

Thank you.
Title: Re: Ad Management mod
Post by: ronychris on August 07, 2008, 10:33:34 PM
I need your help,please  :(
I tried anything...
So,i have installed correctly the ad management,i have set the permissions,the language is English (only this language i have in my theme),i use Extreme 2 theme,i made an ad with correct html and i check the option to be displayed at any page below the menu and i am sure for 1 thing: Ad is displayed correctly only if i set up the forum to Default Core Theme. Please,someone could tell me what goes wrong or i'm going to burn my P/C?
Title: Re: Ad Management mod
Post by: ccbtimewiz on August 07, 2008, 10:58:33 PM
Quote from: ronychris on August 07, 2008, 10:33:34 PM
I need your help,please  :(
I tried anything...
So,i have installed correctly the ad management,i have set the permissions,the language is English (only this language i have in my theme),i use Extreme 2 theme,i made an ad with correct html and i check the option to be displayed at any page below the menu and i am sure for 1 thing: Ad is displayed correctly only if i set up the forum to Default Core Theme. Please,someone could tell me what goes wrong or i'm going to burn my P/C?

Did you make the appropriate edits in your theme's template files?
Title: Re: Ad Management mod
Post by: ronychris on August 07, 2008, 11:57:13 PM
Quote from: ccbtimewiz on August 07, 2008, 10:58:33 PM
Quote from: ronychris on August 07, 2008, 10:33:34 PM
I need your help,please  :(
I tried anything...
So,i have installed correctly the ad management,i have set the permissions,the language is English (only this language i have in my theme),i use Extreme 2 theme,i made an ad with correct html and i check the option to be displayed at any page below the menu and i am sure for 1 thing: Ad is displayed correctly only if i set up the forum to Default Core Theme. Please,someone could tell me what goes wrong or i'm going to burn my P/C?

Did you make the appropriate edits in your theme's template files?

I suppose here is my fault... No,i didn't make any change to template files so i guess that it won't work. If it's possible guide me what exactly to do because i'm not an expert but i know lot of things. Maybe i have to go to a specific place in theme's template using css editor and change something? Am i right?
Title: Re: Ad Management mod
Post by: ccbtimewiz on August 08, 2008, 12:48:37 AM
Quote from: ronychris on August 07, 2008, 11:57:13 PM
I suppose here is my fault... No,i didn't make any change to template files so i guess that it won't work. If it's possible guide me what exactly to do because i'm not an expert but i know lot of things. Maybe i have to go to a specific place in theme's template using css editor and change something? Am i right?

Look here for support on theme porting > http://www.smfads.com/forums/index.php
Title: Re: Ad Management mod
Post by: istup on August 08, 2008, 09:27:22 AM
Hi

I had installed ad management mod as per instruction. But the ad management under configuration is not showing to me..

Currently I am using 1.1.5 verson & theme - Classic Yabb se theme.

Anybody help to solve this issue..
Title: Re: Ad Management mod
Post by: MaXiForum.cz on August 08, 2008, 10:33:14 AM
What is your langage and how is the language files named?
Title: Re: Ad Management mod
Post by: Lunny on August 10, 2008, 02:31:18 PM
Lets just say i want to add only a simple picture (banner form/size) how do i do that?
I tried  but it's not working. It only displays the written code ([img]).

Please advice
Title: Re: Ad Management mod
Post by: Hot Rides on August 10, 2008, 02:36:30 PM
Quote from: Lunny on August 10, 2008, 02:31:18 PM
Lets just say i want to add only a simple picture (banner form/size) how do i do that?
I tried  but it's not working. It only displays the written code ([img]).

Please advice
because thats bbc, not html which it should be

use something like this

<img title="title" height="100" hspace="0" src="http://www.yoursite.com/folder_where_image_is/image.gif" width="490" border="0" >
Title: Re: Ad Management mod
Post by: Adish - (F.L.A.M.E.R) on August 10, 2008, 02:37:39 PM
 O:)hellow.. kind of need help here:- http://www.simplemachines.org/community/index.php?topic=68632.msg1649215#msg1649215

No one replying me.. :(  :'( :'( :'(
Title: Re: Ad Management mod
Post by: Lunny on August 10, 2008, 03:26:31 PM
Quote from: Hot Rides on August 10, 2008, 02:36:30 PM
Quote from: Lunny on August 10, 2008, 02:31:18 PM
Lets just say i want to add only a simple picture (banner form/size) how do i do that?
I tried  but it's not working. It only displays the written code ([img]).

Please advice
because thats bbc, not html which it should be

use something like this

<img title="title" height="100" hspace="0" src="http://www.yoursite.com/folder_where_image_is/image.gif" width="490" border="0" >


Thank you.

I will try it now.
Title: Re: Ad Management mod
Post by: tuguex on August 11, 2008, 07:28:49 PM
Hello,
finally, i aplly this mod, but only i (admin ) can see the ads..
What i need do to members also see ?
Title: Re: Ad Management mod
Post by: ccbtimewiz on August 11, 2008, 07:29:55 PM
Quote from: tuggaming on August 11, 2008, 07:28:49 PM
Hello,
finally, i aplly this mod, but only i (admin ) can see the ads..
What i need do to members also see ?

Admin > Member (http://docs.simplemachines.org/index.php) > Permissions (http://docs.simplemachines.org/index.php?board=60.0;sort=subject)

Enable "view ads" for the groups you want.
Title: Re: Ad Management mod
Post by: Th3On3 on August 12, 2008, 02:32:17 AM
Hi, Im using a custom theme (Basic by Crip) http://custom.simplemachines.org/themes/index.php?lemma=752

And i want to Install this mod

My website link is here:
http://www.l2-element.com/forum/index.php

But when i try to install this mod it doesn't work on my custom theme, Any Help?

Thanks for the Help,
Staunton

PS I uploaded the files below if anyone wants to do it for me ^^
Title: Re: Ad Management mod
Post by: tuguex on August 12, 2008, 07:54:16 AM
Quote from: ccbtimewiz on August 11, 2008, 07:29:55 PM
Quote from: tuggaming on August 11, 2008, 07:28:49 PM
Hello,
finally, i aplly this mod, but only i (admin ) can see the ads..
What i need do to members also see ?

Admin > Member (http://docs.simplemachines.org/index.php) > Permissions (http://docs.simplemachines.org/index.php?board=60.0;sort=subject)

Enable "view ads" for the groups you want.

Sorry, but i don't find that :S
Title: Re: Ad Management mod
Post by: Adish - (F.L.A.M.E.R) on August 13, 2008, 10:35:15 AM
reports section is messed up on my site.

Kindly check the image, how shall i put them all within the page size ? or tell me how do i make my site page larger  from both the sides so i dont face these problems.

Also the problem I am facing is, the problem that, the guests and the other users cant see the ads but the admin can only view them. I dont know what maybe the problem. Please help me out.

Thank you.
Title: Re: Ad Management mod
Post by: tuguex on August 13, 2008, 10:53:02 AM
Quote from: F.L.A.M.E.R on August 13, 2008, 10:35:15 AM
reports section is messed up on my site.


Also the problem I am facing is, the problem that, the guests and the other users cant see the ads but the admin can only view them. I dont know what maybe the problem. Please help me out.

Thank you.

I'm having that problem too :S
Title: Re: Ad Management mod
Post by: Adish - (F.L.A.M.E.R) on August 13, 2008, 11:11:05 AM
actually it is proper when you go in the drop down type admin panel... but dunno why it happens like this when its in normal mode...
Title: Re: Ad Management mod
Post by: tuguex on August 13, 2008, 06:26:53 PM
Quote from: F.L.A.M.E.R on August 13, 2008, 11:11:05 AM
actually it is proper when you go in the drop down type admin panel... but dunno why it happens like this when its in normal mode...


Finally i do it!

I trie to edit some codes, and i "discovered" ( XD ) a file that we need edit, to activate ads for all members  :P

Simply go to :

Quote/Sources/ManagePermissions.php

find:
'pm' => array(


And Replace With:
'ad_manage' => array( 'ad_manageperm' => false, ), 'pm' => array(

;D
Title: Re: Ad Management mod
Post by: Adish - (F.L.A.M.E.R) on August 13, 2008, 06:57:13 PM
i dont get it.. how is this related to the permissions ? Are you sure this doesnt change anything as such ? or make any differense in any other section ?
Title: Re: Ad Management mod
Post by: tuguex on August 13, 2008, 07:11:02 PM
Quote from: F.L.A.M.E.R on August 13, 2008, 06:57:13 PM
i dont get it.. how is this related to the permissions ? Are you sure this doesnt change anything as such ? or make any differense in any other section ?

For mr it works, but if you are not sure, wait for a most experience member ;)
Title: Re: Ad Management mod
Post by: riker on August 14, 2008, 07:56:35 AM
Apologies if this is the wrong section to ask this. I've got a fresh upgrade of SMF 2.0 Beta 3.1 but I'm having problems installing the Ad Management Mod.  I've got screenshots here so you can see first hand whats happeing
Title: Re: Ad Management mod
Post by: riker on August 14, 2008, 09:09:00 AM
Quote from: [SiNaN] on August 14, 2008, 08:31:12 AM
Yeah, wrong place unfortunately. You should ask it in its own support topic:

http://www.simplemachines.org/community/index.php?topic=68632.0

Thanks I've reported so a mod can move it for me :)
Title: Re: Ad Management mod
Post by: riker on August 14, 2008, 09:25:29 AM
Quote from: [SiNaN] on August 14, 2008, 09:12:38 AM
What you mean by reported? I didn't see your post in that topic.

I "Report to moderator " and asked if they could merge it
Title: Re: Ad Management mod
Post by: riker on August 14, 2008, 09:41:39 AM
K fine but I thought it was an easy thing to do
Title: Re: Ad Management mod
Post by: riker on August 14, 2008, 09:47:30 AM
I've got a fresh upgrade of SMF 2.0 Beta 3.1 but I'm having problems installing the Ad Management Mod.  I've got screenshots here so you can see first hand whats happening

(http://img208.imageshack.us/img208/8012/errorswt9.th.jpg) (http://img208.imageshack.us/my.php?image=errorswt9.jpg)

(http://img366.imageshack.us/img366/8834/parseza0.th.jpg) (http://img366.imageshack.us/my.php?image=parseza0.jpg)
Title: Re: Ad Management mod
Post by: ccbtimewiz on August 14, 2008, 11:51:40 AM
Quote from: riker on August 14, 2008, 09:47:30 AM
I've got a fresh upgrade of SMF 2.0 Beta 3.1 but I'm having problems installing the Ad Management Mod.  I've got screenshots here so you can see first hand whats happening

(http://img208.imageshack.us/img208/8012/errorswt9.th.jpg) (http://img208.imageshack.us/my.php?image=errorswt9.jpg)

(http://img366.imageshack.us/img366/8834/parseza0.th.jpg) (http://img366.imageshack.us/my.php?image=parseza0.jpg)

Did you install the 2.0 BETA version of the mod?

Quote from: tuguex on August 13, 2008, 06:26:53 PM
Quote from: F.L.A.M.E.R on August 13, 2008, 11:11:05 AM
actually it is proper when you go in the drop down type admin panel... but dunno why it happens like this when its in normal mode...


Finally i do it!

I trie to edit some codes, and i "discovered" ( XD ) a file that we need edit, to activate ads for all members  :P

Simply go to :

Quote/Sources/ManagePermissions.php

find:
'pm' => array(


And Replace With:
'ad_manage' => array( 'ad_manageperm' => false, ), 'pm' => array(

;D

Bad idea. Doing this will make the entire permission system for the mod faulty and useless. You can edit the permissions screen to enable for other groups.
Title: Re: Ad Management mod
Post by: riker on August 14, 2008, 12:10:07 PM
Quote from: ccbtimewiz on August 14, 2008, 11:51:40 AM
Quote from: riker on August 14, 2008, 09:47:30 AM
I've got a fresh upgrade of SMF 2.0 Beta 3.1 but I'm having problems installing the Ad Management Mod.  I've got screenshots here so you can see first hand whats happening

(http://img208.imageshack.us/img208/8012/errorswt9.th.jpg) (http://img208.imageshack.us/my.php?image=errorswt9.jpg)

(http://img366.imageshack.us/img366/8834/parseza0.th.jpg) (http://img366.imageshack.us/my.php?image=parseza0.jpg)

Did you install the 2.0 BETA version of the mod?

Yep as the screenshots show and I've tried to FRESH upgrades to SMF 2.0 and keep getting the same problem
Title: Re: Ad Management mod
Post by: symon on August 14, 2008, 01:46:53 PM
Has anyone worked out how to register clicks per ad yet? :)
Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on August 14, 2008, 02:51:56 PM
Hi i want to hide ads for global moderators and moderators also.

could anyone give me a help on this code.
Title: Re: Ad Management mod
Post by: riker on August 14, 2008, 04:52:36 PM
Quote from: asudhakar on August 14, 2008, 02:51:56 PM
Hi i want to hide ads for global moderators and moderators also.

could anyone give me a help on this code.

Permissions
Title: Re: Ad Management mod
Post by: hawking on August 14, 2008, 10:02:41 PM
Hi,
I am trying to post but donot know how to do it. What i am looking for  is:
I have installed "Ad Maagment Mod" , it does show it has been installed but  I CAN NOT SEE THE "AD MANAGEMENT" Button under configuration Tab.
Please help me
thanks
Title: Re: Ad Management mod
Post by: ccbtimewiz on August 14, 2008, 10:07:34 PM
Quote from: hawking on August 14, 2008, 10:02:41 PM
Hi,
I am trying to post but donot know how to do it. What i am looking for  is:
I have installed "Ad Maagment Mod" , it does show it has been installed but  I CAN NOT SEE THE "AD MANAGEMENT" Button under configuration Tab.
Please help me
thanks

Make sure your forum is set to english under Admin > Server Settings (http://docs.simplemachines.org/index.php?board=52.0;sort=subject)
Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on August 15, 2008, 12:01:40 AM
Quote from: asudhakar on August 14, 2008, 02:51:56 PM
Hi i want to hide ads for global moderators and moderators also.

could anyone give me a help on this code.

Hey ccbtimewiz,

      Why could not you give a try.
Hope we are already helping me to complete this.
Title: Re: Ad Management mod
Post by: ccbtimewiz on August 15, 2008, 12:02:49 AM
Quote from: asudhakar on August 15, 2008, 12:01:40 AM
Quote from: asudhakar on August 14, 2008, 02:51:56 PM
Hi i want to hide ads for global moderators and moderators also.

could anyone give me a help on this code.

Hey ccbtimewiz,

      Why could not you give a try.
Hope we are already helping me to complete this.

Permissions. You need to edit the permissions of the membergroups. In this case, groups 2 and 3.
Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on August 15, 2008, 01:40:50 AM
Yes you are right. But i could not do it for my group 2 and group 3. Even if i add permisson and update it , it is not saving that particular box.

You remember what we have tried.

Quote from: ccbtimewiz on July 29, 2008, 02:38:58 PM
Alright, I made the changes for you.

I modified the code into your template_main_above() function to this:

Code (Line 253) Select
<body>';

Code (Line 256 (What I added)) Select

$x = array(2, 3);
$y = false;

foreach ($x as $group) {
if( in_array( $group, $user_info['groups'] ) )
        $y = true; }

if( $y == false ) {
if( function_exists("show_topofpageAds") ) {
$ads = show_topofpageAds();   
if( !empty($ads))
if( $ads['type'] == 0 )
echo $ads['content'];
else
eval( $ads['content'] );   
unset($ads); }
}


Code (Line 255) Select
echo '

Quote from: asudhakar
And this is the error generate with in 2 minutes i hope

Guest    Today at 11:12:27
Apply Filter: Only show the error messages of this IP address 122.164.123.32    Apply Filter: Only show the error messages of this session b5a1717d24586f803af2e22e6b2868e6
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?/topic,11353.0.html
Apply Filter: Only show the errors with the same message
2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
File: /home/itacumen/public_html/forum/Themes/default/Display.template.php (main_above sub template - eval?)
Line: 241

Apply Filter: Only show the error messages of this member Guest Today at 11:12:27
Apply Filter: Only show the error messages of this IP address 122.164.123.32    Apply Filter: Only show the error messages of this session b5a1717d24586f803af2e22e6b2868e6
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?/topic,11353.0.html
Apply Filter: Only show the errors with the same message
8: Undefined variable: user_info
File: /home/itacumen/public_html/forum/Themes/default/Display.template.php (main_above sub template - eval?)
Line: 241

Apply Filter: Only show the error messages of this member Guest Today at 11:12:27
Apply Filter: Only show the error messages of this IP address 122.164.123.32    Apply Filter: Only show the error messages of this session b5a1717d24586f803af2e22e6b2868e6
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?/topic,11353.0.html
Apply Filter: Only show the errors with the same message
2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
File: /home/itacumen/public_html/forum/Themes/default/Display.template.php (main_above sub template - eval?)
Line: 241

Apply Filter: Only show the error messages of this member Guest Today at 11:12:27
Apply Filter: Only show the error messages of this IP address 122.164.123.32    Apply Filter: Only show the error messages of this session b5a1717d24586f803af2e22e6b2868e6
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?/topic,11353.0.html
Apply Filter: Only show the errors with the same message
8: Undefined variable: user_info
File: /home/itacumen/public_html/forum/Themes/default/Display.template.php (main_above sub template - eval?)
Line: 241

Apply Filter: Only show the error messages of this member Guest Today at 11:12:27
Apply Filter: Only show the error messages of this IP address 122.164.58.134    Apply Filter: Only show the error messages of this session 37e8e69d17ced825deccb931bea5587d
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php
Apply Filter: Only show the errors with the same message
2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
File: /home/itacumen/public_html/forum/Themes/default/SPortal.template.php (main_above sub template - eval?)
Line: 241



Kindly check out, atpresent i have changed my old index backup file Safely.

Quote from: ccbtimewiz on July 30, 2008, 01:59:47 PM
Look in the template_main_above() function. You'll see the word global, followed by words with $ in front of them and comma's.

Simply add $user_info to this list.

Like so:

global $context, $settings, $options, $scripturl, $txt, $modSettings;

To

global $context, $settings, $options, $scripturl, $txt, $modSettings, $user_info;

Quote from: ccbtimewiz on July 30, 2008, 03:07:52 PM
The $x variable that I defined is the array that contains the member group IDs that you want to exclude from seeing top ads.

In basic SMF, the moderator ID is 3, global moderator is 2, and admin is 1. If you have different ID's as your membergroups, please alter the variable like so:

$x = array(2, 3);
$x = array(#, #, #, #, #);

With "#" as a numerical value that corresponds to the group ID and separating using a ",".

So you are already right.

I saw my member group . It shows 2 as global moderator and 3 as moderator.

But still i could see adds on the moderated board.

I would like to complete this and make this work today. Hope you will help me.
Title: Re: Ad Management mod
Post by: riker on August 15, 2008, 03:54:23 AM
Sod it I think I'll try the new Mybb 1.4
Title: Re: Ad Management mod
Post by: bonkerspr on August 15, 2008, 08:44:02 PM
i have installed ad managment v2.3 now how to use it for place my google ads ?
Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on August 15, 2008, 11:36:48 PM
Quote from: bonkerspr on August 15, 2008, 08:44:02 PM
i have installed ad managment v2.3 now how to use it for place my google ads ?

Hi Bonkerspr,

go to admin panel, select Ad Management from left side menu.
Create Ads and past the code from google. And make sure if you want the add to be center use this sample.

<center>
Google Ads
</center>

configure or select boards , and locations to place ad tc.

Click submit and enjoy using the Ad Mod.
Title: Re: Ad Management mod
Post by: learjet45 on August 18, 2008, 02:05:01 AM
I would like to say that this seems like a wonderful mod, thank you for making it!
Now, I am having an issue. I have uploaded the correct package (I am on SMF 1.1.5), and it says that I passed all tests. Now, I install it and apply the mod, but I dont see anything I should be seeing. I dont see the Ad Management in the ACP, and none of the text shows up where it should be modifying permissions for groups to see the ads. I really would like to get this up and running, but it doesnt seem to want to work. I dont want to try manually installing it, because I am new to all of this and I dont want to risk messing up any files. Anyone know how to fix this?
Title: Re: Ad Management mod
Post by: Urbanite on August 18, 2008, 04:15:38 AM
Quote from: symon on August 14, 2008, 01:46:53 PM
Has anyone worked out how to register clicks per ad yet? :)

Yep, use OpenX

Full ad placement management, many variables such as, ad rotation, show on particular day, time of day, geographic location etc etc. full click reporting to you and your advertisers.

Free software, http://www.openx.org/products (http://www.openx.org/products)
Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on August 18, 2008, 01:51:22 PM
Hi,

Any updates to my previous post.

Its a simple one, i have to stop ads for Global Moderators and Moderators.

http://www.simplemachines.org/community/index.php?topic=68632.msg1661473#msg1661473
Title: Re: Ad Management mod
Post by: alex30 on August 20, 2008, 01:53:30 PM
Hi everyone!

Having a problem.

I will use a few ads on forum and when I log in as user not as admin, ads don't show up. I checked already ad management section, checked - Display ads in the welcome user area- but sill just admin can see them.

Can't figure how to make them visible for users?
Title: Re: Ad Management mod
Post by: ccbtimewiz on August 20, 2008, 02:09:35 PM
Quote from: ccbtimewiz on August 11, 2008, 07:29:55 PM
Quote from: tuggaming on August 11, 2008, 07:28:49 PM
Hello,
finally, i aplly this mod, but only i (admin ) can see the ads..
What i need do to members also see ?

Admin > Member (http://docs.simplemachines.org/index.php) > Permissions (http://docs.simplemachines.org/index.php?board=60.0;sort=subject)

Enable "view ads" for the groups you want.
Title: Re: Ad Management mod
Post by: alex30 on August 20, 2008, 02:19:11 PM
Thanks a lot Ccbtimewiz
Title: Re: Ad Management mod
Post by: BRC MODELS on August 21, 2008, 08:14:43 AM
I have a problem,

I haveinstall the package but the administration section doent show up on the confirguration section.

What do i do now.


Please help??

Title: Re: Ad Management mod
Post by: learjet45 on August 21, 2008, 07:58:19 PM
Huh. It seems as though changing the language from english to english-utf8 and then back seemed to make it work.
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on August 21, 2008, 10:11:22 PM
You're kidding?

Rick
Title: Re: Ad Management mod
Post by: learjet45 on August 22, 2008, 12:51:58 AM
not at all. Worked with both the ad management mod and the treasury mod.

Edit: and for those out there who are having the same issue I did, you do need to be sure the language is set to english not English-utf8.
Title: Re: Ad Management mod
Post by: ccbtimewiz on August 22, 2008, 12:59:43 AM
Quote from: ccbtimewiz on August 14, 2008, 10:07:34 PM
Quote from: hawking on August 14, 2008, 10:02:41 PM
Hi,
I am trying to post but donot know how to do it. What i am looking for  is:
I have installed "Ad Maagment Mod" , it does show it has been installed but  I CAN NOT SEE THE "AD MANAGEMENT" Button under configuration Tab.
Please help me
thanks

Make sure your forum is set to english under Admin > Server Settings (http://docs.simplemachines.org/index.php?board=52.0;sort=subject)

:/
Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on August 22, 2008, 02:36:52 AM
Hi,

Any updates to my previous post.

Its a simple one, i have to stop ads for Global Moderators and Moderators.

http://www.simplemachines.org/community/index.php?topic=68632.msg1661473#msg1661473
Title: Re: Ad Management mod
Post by: HellBent on August 23, 2008, 06:59:42 AM
I am having the same problem also. Any advice please anyone? Or perhaps a link to the solution? I have checked through many back-posts but not found anything helpful yet.


Quote from: BRC MODELS on August 21, 2008, 08:14:43 AM
I have a problem,

I haveinstall the package but the administration section doent show up on the confirguration section.

What do i do now.


Please help??


Title: Re: Ad Management mod
Post by: babjusi on August 23, 2008, 07:02:47 AM
Quote from: HellBent on August 23, 2008, 06:59:42 AM
I am having the same problem also. Any advice please anyone? Or perhaps a link to the solution? I have checked through many back-posts but not found anything helpful yet.


Quote from: BRC MODELS on August 21, 2008, 08:14:43 AM
I have a problem,

I haveinstall the package but the administration section doent show up on the confirguration section.

What do i do now.


Please help??



What is the default language of your forum?
Title: Re: Ad Management mod
Post by: Jetfirehack on August 24, 2008, 03:05:30 PM
I need help. This error shows UP:
Table 'hiddente_1337.smf_ads' doesn't exist

How do I uninstall this mod? :(
I can't even execute the query, it gives an error.


The error happened when I up'd install.php to /forums and ran it... Blank page but it gives the entire forum error.
Title: Re: Ad Management mod
Post by: Jetfirehack on August 24, 2008, 03:18:28 PM
w/e I upgraded to 3.1 of SMF and now it prob overwrote some source file and works =]
Title: Re: Ad Management mod
Post by: Mystiquo on August 25, 2008, 08:38:27 AM
thanks for the mod, but i have a question my ads it's not a center of my end home page why??? can you help me?
Title: Re: Ad Management mod
Post by: grevan on August 25, 2008, 11:30:58 AM
Hello,

When i set my site´s language to Portuguese the AD Mangement doesn´t show up on the configuration section. Is there a way to fix this?
Thanks.
Title: Re: Ad Management mod
Post by: ccbtimewiz on August 25, 2008, 11:33:34 AM
Quote from: Mystiquo on August 25, 2008, 08:38:27 AM
thanks for the mod, but i have a question my ads it's not a center of my end home page why??? can you help me?

Use <div align="center">{ad code}</div> in your admin panel for the ad code.

Quote from: grevan on August 25, 2008, 11:30:58 AM
Hello,

When i set my site´s language to Portuguese the AD Mangement doesn´t show up on the configuration section. Is there a way to fix this?
Thanks.


Did you download the Portuguese language pack?
Title: Re: Ad Management mod
Post by: grevan on August 25, 2008, 11:44:00 AM
Yes ccbtimewiz,
the language pack is installed and working fine.
In english the Ad Management shows up, i change to portuguese it disappears....
Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on August 25, 2008, 12:32:44 PM
Hi,

Any updates to my previous post.

Its a simple one, i have to stop ads for Global Moderators and Moderators.

http://www.simplemachines.org/community/index.php?topic=68632.msg1661473#msg1661473
Title: Re: Ad Management mod
Post by: ccbtimewiz on August 25, 2008, 08:15:30 PM
Quote from: grevan on August 25, 2008, 11:44:00 AM
Yes ccbtimewiz,
the language pack is installed and working fine.
In english the Ad Management shows up, i change to portuguese it disappears....


You need to download the ad-management portuguese language part and upload it to your server. Check out http://smfads.com/ for the language packs.
Title: Re: Ad Management mod
Post by: Adish - (F.L.A.M.E.R) on August 25, 2008, 08:32:53 PM
any updates over this ?
http://www.simplemachines.org/community/index.php?topic=68632.msg1649215#msg1649215

Please let me know.

Thank you.
Title: Re: Ad Management mod
Post by: grevan on August 26, 2008, 08:54:00 AM
Thanks a lot ccbtimewiz!
There isn´t any portuguese translation, but i will ask jerm if i can make one.
Thanks again.
Title: Re: Ad Management mod
Post by: holly.celeb.fan on August 27, 2008, 03:11:01 AM
I have one question.

Why Advertise not display to guest ?
Is there any way to show advertise to guest ?
Title: Re: Ad Management mod
Post by: callteg4 on August 27, 2008, 06:41:56 AM
Hi I have a problem I am getting install failed on display.template and managepermissions any ideas please
Title: Re: Ad Management mod
Post by: holly.celeb.fan on August 27, 2008, 09:55:20 AM
Any one please help me.
How I show advertise to guest ??
Title: Re: Ad Management mod
Post by: ccbtimewiz on August 27, 2008, 11:16:22 AM
Quote from: holly.celeb.fan on August 27, 2008, 03:11:01 AM
I have one question.

Why Advertise not display to guest ?
Is there any way to show advertise to guest ?

Admin > Permissions > modify guest

Quote from: callteg4 on August 27, 2008, 06:41:56 AM
Hi I have a problem I am getting install failed on display.template and managepermissions any ideas please

What mods do you have installed?
Title: Re: Ad Management mod
Post by: grevan on August 27, 2008, 11:23:01 AM
Hello to all, i´m having trouble editing the Pn-Pn Theme. I´ve tried to edit the php files using the SMF Package Parser, but i´m getting some errors. I don´t know php so it´s being hard.
I get this message:
Template Parse Error!
syntax error, unexpected T_STRING, expecting ',' or ';'
The code is here:
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


I think the error is in this line: if($ads['type']==0)

Any help?
Thanks a lot.
Title: Re: Ad Management mod
Post by: ccbtimewiz on August 27, 2008, 11:35:47 AM
Find:
if(!empty($ads))

Replace with:
if( !empty ( $ads ) ) {

Find:
eval($ads['content']);

Replace with:
eval( $ads['content'] ); }
Title: Re: Ad Management mod
Post by: grevan on August 27, 2008, 11:45:57 AM
Thanks ccbtimewiz, but i still get the same error.
I replaced everything you said.
Title: Re: Ad Management mod
Post by: ccbtimewiz on August 27, 2008, 11:46:58 AM
Quote from: grevan on August 27, 2008, 11:45:57 AM
Thanks ccbtimewiz, but i still get the same error.
I replaced everything you said.

Strange. Can you attach your index.template.php file?
Title: Re: Ad Management mod
Post by: grevan on August 27, 2008, 11:53:54 AM
OK, thanks.
Title: Re: Ad Management mod
Post by: ccbtimewiz on August 27, 2008, 12:04:22 PM
Various echo() problems. Fixed them all; here you are.
Title: Re: Ad Management mod
Post by: grevan on August 27, 2008, 01:02:29 PM
Thanks for your time! But i get a different error now:
syntax error, unexpected $end
Title: Re: Ad Management mod
Post by: ccbtimewiz on August 27, 2008, 01:10:34 PM
Try this out then.
Title: Re: Ad Management mod
Post by: callteg4 on August 27, 2008, 02:16:51 PM
Quote from: ccbtimewiz on August 27, 2008, 11:16:22 AM
Quote from: holly.celeb.fan on August 27, 2008, 03:11:01 AM
I have one question.

Why Advertise not display to guest ?
Is there any way to show advertise to guest ?

Admin > Permissions > modify guest

Quote from: callteg4 on August 27, 2008, 06:41:56 AM
Hi I have a problem I am getting install failed on display.template and managepermissions any ideas please

What mods do you have installed?

These below

   Mod Name     Version     
1.    E-Arcade    2.5.0    
2.    TinyPortal    0.983    
3.    Contact Page    1.1
4.    Referrals Mod    2.0.1    
5.    Social Bookmarks    1.1    
6.    SMF Gallery Lite    
7.    simplemp    3.1    
8.    Users Online Today Mod    1.4.0    
9.    Age and Gender Board Filter    1.2.0    
10.    Prevent Adding Signature Images And Links    1.3    
11.    Member Awards    1.0.1    
12.    SMF Staff Page    1.6
13.    SMFShop    3.0    
14.    Auto Email Inactive Users    1.7    
15.    Welcome Topic Mod    1.1
16.    SMF Shop Lottery    1.0.1
17.    SMFChess    1.0    
18.    Member List Position Filter    1.1.0    
19.    Custom Action Mod    2.04    
20.    Forum Epoch    1.0    
21.    Ultimate Profile    0.8.5    
22.    Profile_Visitors    4.0
23.    AvatarSelect    1.1.2    
24.    arcwd    1.0e    
25.    Karma Description Mod    2.3.1
26.    Top Karma On Stats    1.0    
27.    Avatar on Member List    1.0
28.    Banlist    1.0    
29.    hof    1.0    
30.    leaders    1.0    
Avatar Package
   Mod Name    Version    
1.    Country Flags    1.1.1    
2.    Dogs Avatars    1.1.2
Unknown Packages
   Mod Name    Version    
1.    SMFShop Stats Mod    0.1
Title: Re: Ad Management mod
Post by: grevan on August 27, 2008, 02:24:32 PM
I get the same error.
I put the code in a "php syntax check" and there´s the message:
Parse error:  parse error, unexpected $ in index.template.php on line 884
But the code goes only to line 883. Maybe this could be a hint for you.
Title: Re: Ad Management mod
Post by: callteg4 on August 27, 2008, 02:51:56 PM
Update it all works on my deafitl theme but not on my custom theme
Title: Re: Ad Management mod
Post by: grevan on August 27, 2008, 06:54:13 PM
Any idea, ccbtimewiz? :-[
Title: Re: Ad Management mod
Post by: holly.celeb.fan on August 28, 2008, 01:02:29 AM
Quote from: ccbtimewiz on August 27, 2008, 11:16:22 AM
Admin > Permissions > modify guest

Thanks this is work ...
Thanks again.
Title: Re: Ad Management mod
Post by: callteg4 on August 28, 2008, 05:17:46 AM
Forgive me for being a newbie but I deleted my themes index.template and the ad managment works lol changes my theme a little but it works however i have but it back on now
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on August 28, 2008, 01:12:48 PM
I never put up a theme and it still doesn't work for me

newbie
Rick
Title: Re: Ad Management mod
Post by: kromonos on August 28, 2008, 07:30:07 PM
How do I use it with babylon theme? Please help ..
Title: Re: Ad Management mod
Post by: ccbtimewiz on August 29, 2008, 12:06:12 AM
Quote from: callteg4 on August 28, 2008, 05:17:46 AM
Forgive me for being a newbie but I deleted my themes index.template and the ad managment works lol changes my theme a little but it works however i have but it back on now

You need to manually edit your theme's index.template.php file. Shouden't be too difficult. Attach your index.template.php and I'll walk it through you.

Quote from: KirkhamsEbooks on August 28, 2008, 01:12:48 PM
I never put up a theme and it still doesn't work for me

newbie
Rick

Can you be a bit more descriptive? What problem are you having? Is the mod working on the default theme? As I said before-- you need to edit custom themes in order for this work correctly.

Quote from: kromonos on August 28, 2008, 07:30:07 PM
How do I use it with babylon theme? Please help ..

You need to, once again, edit your custom theme for this mod to work. :)
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on August 29, 2008, 05:11:19 AM
Nothing at all is happening

It's as though it never loaded. Found a bunch of errors in the log as it tried to install. Using 1.1.5. Forum installed Fantastico

Rick
Title: Re: Ad Management mod
Post by: callteg4 on August 29, 2008, 09:43:01 AM
Quote from: ccbtimewiz on August 29, 2008, 12:06:12 AM
Quote from: callteg4 on August 28, 2008, 05:17:46 AM
Forgive me for being a newbie but I deleted my themes index.template and the ad managment works lol changes my theme a little but it works however i have but it back on now

You need to manually edit your theme's index.template.php file. Shouden't be too difficult. Attach your index.template.php and I'll walk it through you.

Quote from: KirkhamsEbooks on August 28, 2008, 01:12:48 PM
I never put up a theme and it still doesn't work for me

newbie
Rick

Can you be a bit more descriptive? What problem are you having? Is the mod working on the default theme? As I said before-- you need to edit custom themes in order for this work correctly.

Quote from: kromonos on August 28, 2008, 07:30:07 PM
How do I use it with babylon theme? Please help ..

You need to, once again, edit your custom theme for this mod to work. :)

Thank you
Title: Re: Ad Management mod
Post by: callteg4 on August 29, 2008, 09:47:58 AM
Quote from: ccbtimewiz on August 29, 2008, 12:06:12 AM
Quote from: callteg4 on August 28, 2008, 05:17:46 AM
Forgive me for being a newbie but I deleted my themes index.template and the ad managment works lol changes my theme a little but it works however i have but it back on now

You need to manually edit your theme's index.template.php file. Shouden't be too difficult. Attach your index.template.php and I'll walk it through you.

Quote from: KirkhamsEbooks on August 28, 2008, 01:12:48 PM
I never put up a theme and it still doesn't work for me

newbie
Rick

Can you be a bit more descriptive? What problem are you having? Is the mod working on the default theme? As I said before-- you need to edit custom themes in order for this work correctly.

Quote from: kromonos on August 28, 2008, 07:30:07 PM
How do I use it with babylon theme? Please help ..

You need to, once again, edit your custom theme for this mod to work. :)

Thank you
Title: Re: Ad Management mod
Post by: learjet45 on August 29, 2008, 11:02:03 PM
Strange issues with ad management mod now.
Google ads was being stupid and didnt want to work. I finally get an email saying I have ads now. I went to reinstall the mod, and the test for the ./Themes/default/Display.template.php failed. I didnt have any issues before. Changing permissions didnt help like it did last time. Any ideas?
Attached is a copy of the current display.template.php
Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on August 30, 2008, 12:08:36 AM
Hi,

Any updates to my previous post.

Its a simple one, i have to stop ads for Global Moderators and Moderators.

http://www.simplemachines.org/community/index.php?topic=68632.msg1661473#msg1661473
Title: Re: Ad Management mod
Post by: ronboy on August 30, 2008, 11:23:24 PM
where do you go to install different mod's?  like    ad_mod_rc2_v1-4.zip
Title: Re: Ad Management mod
Post by: ronboy on August 30, 2008, 11:27:13 PM
or i guess i need a updated verison of ad management.  i got the first one downloaded, but it doesn't work. 
Title: Re: Ad Management mod
Post by: Bigguy on August 31, 2008, 04:40:59 AM
@ asudhakar: Look at permissions.

@ ronboy: Download the most recent version from the mod site here and upload it through the package manager in the admin panel. :)
Title: Re: Ad Management mod
Post by: ronboy on August 31, 2008, 10:27:35 AM
Ok, I'm there but where on that page is the updates.  i can't get this thing to work for nothing in the world.  I'm at the point of total big down.  Someone walk me threw this.
Title: Re: Ad Management mod
Post by: ronboy on August 31, 2008, 10:36:31 AM
where is the mod site?
Title: Re: Ad Management mod
Post by: haiwasnm on August 31, 2008, 07:40:05 PM
I want to make ads there like this

(http://img181.imageshack.us/img181/7449/picvt3.jpg)

How can I to do ?

thanks anybody!
Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on September 01, 2008, 09:17:35 AM
Quote from: asudhakar on August 30, 2008, 12:08:36 AM
Hi,

Any updates to my previous post.

Its a simple one, i have to stop ads for Global Moderators and Moderators.

http://www.simplemachines.org/community/index.php?topic=68632.msg1661473#msg1661473

Quote from: Bigguy on August 31, 2008, 04:40:59 AM
@ asudhakar: Look at permissions.


I have checked my forum , and i could not assign the disable ad to the moderators.
Title: Re: Ad Management mod
Post by: midas on September 01, 2008, 03:26:39 PM
I had problems getting the Ad Mod's admin config button to show (not unique to this mod) in SMF 1.1.5.  To resolve the problem I changed my forums' language settings (Server Settings/Core Config) to English (i.e not UTF8).

Before realising the fault's cause, I read many forum requests from people with the same problem.  Perhaps others can use the same fix (worked for all my forums and caused other mods' buttons to show).
Title: Re: Ad Management mod
Post by: ccbtimewiz on September 01, 2008, 04:14:05 PM
Quote from: midas on September 01, 2008, 03:26:39 PM
I had problems getting the Ad Mod's admin config button to show (not unique to this mod) in SMF 1.1.5.  To resolve the problem I changed my forums' language settings (Server Settings/Core Config) to English (i.e not UTF8).

Before realising the fault's cause, I read many forum requests from people with the same problem.  Perhaps others can use the same fix (worked for all my forums and caused other mods' buttons to show).

http://www.smfads.com/forums/index.php?topic=1802.0
Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on September 02, 2008, 02:44:49 AM
I am really sorry.

I dont have any replies to my post.

Hi CCBtimewiz could you help me.

I want to remove ads for my moderators and global moderators.

Have tried adding permission to moderators - i mean the enable ads permission. It shows the value in phpmyadmin and no such link in the forum permissions page.

How to stop ads for global moderators and moderators.
Title: Re: Ad Management mod
Post by: Ozman69 on September 03, 2008, 07:32:03 PM
Tried doing a manual edit to my theme (Blues Mega Color) according to SMF Package Parser and all was going well until I got to editing Display.template.php.  I found all of the places to enter the new data but I was getting a parse error after saving the changes.  The error had to do with the last line which makes no real sense to me as it is just ?>

Wondering if someone could look at my file to see if anything obvious sticks out.

Oz
Title: Re: Ad Management mod
Post by: ccbtimewiz on September 03, 2008, 07:36:32 PM
Quote from: Ozman69 on September 03, 2008, 07:32:03 PM
Tried doing a manual edit to my theme (Blues Mega Color) according to SMF Package Parser and all was going well until I got to editing Display.template.php.  I found all of the places to enter the new data but I was getting a parse error after saving the changes.  The error had to do with the last line which makes no real sense to me as it is just ?>

Wondering if someone could look at my file to see if anything obvious sticks out.

Oz

You forgot the "}" marks. 3 of them. Recheck your code and make sure you manually edited correctly. :)
Title: Re: Ad Management mod
Post by: Adish - (F.L.A.M.E.R) on September 03, 2008, 07:53:19 PM
Can anyone do the edits for my index.template.php ? I am not able to find codes and also am causing some errors. I have some codes already added in but yet please can anyone do it for me ? I would attach it in my next post if anyone would help me out.

Thank you.
Title: Re: Ad Management mod
Post by: Ozman69 on September 03, 2008, 07:53:56 PM
Quote from: ccbtimewiz on September 03, 2008, 07:36:32 PM
Quote from: Ozman69 on September 03, 2008, 07:32:03 PM
Tried doing a manual edit to my theme (Blues Mega Color) according to SMF Package Parser and all was going well until I got to editing Display.template.php.  I found all of the places to enter the new data but I was getting a parse error after saving the changes.  The error had to do with the last line which makes no real sense to me as it is just ?>

Wondering if someone could look at my file to see if anything obvious sticks out.

Oz

You forgot the "}" marks. 3 of them. Recheck your code and make sure you manually edited correctly. :)

I must be either tired or blind.  Still can't see where I missed any }'s.

Oz
Title: Re: Ad Management mod
Post by: MrMusic on September 04, 2008, 02:17:57 AM
Hi, great Mod. Here is my question:

I am currently using the Movies07 Mod. I would like to use this Ad Management Mod on this site. I have read here that you need to do some manual changes to Modded themes.

What changes am I going to need to do to get this to work right?
And which version should I use to get the most versatility?

Thank you for your time. Please give answer in detail as I need to be sure what I am doing.

Thanks again!
Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on September 04, 2008, 08:24:08 AM
I dont have any replies to my post.

Hi CCBtimewiz could you help me.

I want to remove ads for my moderators and global moderators.

Have tried adding permission to moderators - i mean the enable ads permission. It shows the value in phpmyadmin and no such link in the forum permissions page.

How to stop ads for global moderators and moderators.
Title: Re: Ad Management mod
Post by: Ozman69 on September 04, 2008, 06:57:49 PM
Quote from: Ozman69 on September 03, 2008, 07:53:56 PM
Quote from: ccbtimewiz on September 03, 2008, 07:36:32 PM
Quote from: Ozman69 on September 03, 2008, 07:32:03 PM
Tried doing a manual edit to my theme (Blues Mega Color) according to SMF Package Parser and all was going well until I got to editing Display.template.php.  I found all of the places to enter the new data but I was getting a parse error after saving the changes.  The error had to do with the last line which makes no real sense to me as it is just ?>

Never did really figure out where I was missing those, so I managed to kind of cheat my way through it.   I uninstalled the mod and I took the two files that I couldn't get the modifications to work on and copied those to my default theme folder and then reinstalled the mod.  It modified the non-default themes files and so I just copied those back over to the other themes folder and all is well.  Mod works great again now.

Oz
Wondering if someone could look at my file to see if anything obvious sticks out.

Oz

You forgot the "}" marks. 3 of them. Recheck your code and make sure you manually edited correctly. :)

I must be either tired or blind.  Still can't see where I missed any }'s.

Oz
Title: Re: Ad Management mod
Post by: Faevilangel on September 06, 2008, 08:10:04 PM
trying to install this mod on a new install of the beta package

i get error
QuoteAt least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

i have one error ...... Add After  ./Themes/default/Display.template.php    Test failed

do i need to do a manual install on this ?
Title: Re: Ad Management mod
Post by: mrbolsonator on September 07, 2008, 03:39:41 AM
I am a newbie at loading mods

I put all the codes in and files except the queries because I have no idea where they go. i have smf 1.1.5 if that makes a difference

Table 'fuelcraz_smf1.smf_ads' doesn't exist
File: /home2/fuelcraz/public_html/Sources/LoadAds.php
Line: 33

i get that error and my site is not accessible. what should i do?


http://fuelcrazyamerica.com/
Title: Re: Ad Management mod
Post by: learjet45 on September 07, 2008, 10:49:58 AM
Were you trying a manual install?
Title: Re: Ad Management mod
Post by: zZzMichel on September 07, 2008, 11:40:48 AM
Hey, I have no clue how to setup this, I extracted all the files, uploaded to the server trying to go in to install.php and I always get this message:

Fatal error: Call to undefined function: db_query() in /home/*****/domains/******/public_html/forum/install.php on line 6

Can I have a quick tut how to install it?

thank you
Title: Re: Ad Management mod
Post by: Adish - (F.L.A.M.E.R) on September 07, 2008, 04:21:56 PM
Quote from: F.L.A.M.E.R on September 03, 2008, 07:53:19 PM
Can anyone do the edits for my index.template.php ? I am not able to find codes and also am causing some errors. I have some codes already added in but yet please can anyone do it for me ? I would attach it in my next post if anyone would help me out.

Thank you.
Title: Re: Ad Management mod
Post by: mrbolsonator on September 07, 2008, 06:46:02 PM
Quote from: learjet45 on September 07, 2008, 10:49:58 AM
Were you trying a manual install?

That is all i know how to do, is there an easier way to install mods?
Title: Re: Ad Management mod
Post by: learjet45 on September 07, 2008, 08:47:14 PM
Under the admin control panel under 'Main', click on packages. Then under packages, go to 'Download Packages', and then upload the package and apply the mod.
Title: Re: Ad Management mod
Post by: unformatted_ on September 07, 2008, 09:00:52 PM
Hi!

It's possible to place the google ad underneath the "Jump to:" box. It's after the messages and tools fro reply, navigate, etc...but not in all bottom of page.
Bacause I have the related post mod, and I wan't to put the ad just before this mod place.
Title: Re: Ad Management mod
Post by: crustybum on September 08, 2008, 07:51:11 AM
I wonder if anyone can remove the duplicate code that is causing this , for me:
see attached: the first one is a snapshot of my admin that shows it duplicated and in the forum the google ads are duplicated as well.

Have attached the index.template.php file as well....i am presuming its that one.. :-\

Many thanks

Chris
Title: Re: Ad Management mod
Post by: kosty555 on September 08, 2008, 09:37:11 AM
Hi!!! Thanks 4 mod! When there will be a version for 2 beta 4?
Title: Re: Ad Management mod
Post by: MultiformeIngegno on September 08, 2008, 04:40:34 PM
Mmh.. this MOD doensn't work with Beta 4...
Title: Re: Ad Management mod
Post by: learjet45 on September 08, 2008, 07:02:15 PM
@vasco-
This might help.
http://www.simplemachines.org/community/index.php?topic=260024.msg1697310#msg1697310
Title: Re: Ad Management mod
Post by: unformatted_ on September 08, 2008, 08:27:31 PM
manythanks, works perfect!
Title: Re: Ad Management mod
Post by: mrbolsonator on September 09, 2008, 01:48:36 AM
so i have google adsense and i want to install this code at the bottom of my site, how do i do this with this mod?

www.fuelcrazyamerica.com (http://www.fuelcrazyamerica.com)


Quote<script type="text/javascript"><!--
google_ad_client = "pub-8554768181020902";
/* Bottom Adds */
google_ad_slot = "2928158641";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Title: Re: Ad Management mod
Post by: netco on September 09, 2008, 07:00:05 AM
we are waiting new version for beta 4 ?
Title: Re: Ad Management mod
Post by: MultiformeIngegno on September 09, 2008, 05:38:21 PM
Quote from: mrbolsonator on September 09, 2008, 01:48:36 AM
so i have google adsense and i want to install this code at the bottom of my site, how do i do this with this mod?
And I'd like to add it to the header (right)...
Title: Re: Ad Management mod
Post by: mrbolsonator on September 09, 2008, 07:30:07 PM
Quote from: mrbolsonator on September 09, 2008, 01:48:36 AM
so i have google adsense and i want to install this code at the bottom of my site, how do i do this with this mod?

www.fuelcrazyamerica.com (http://www.fuelcrazyamerica.com)


Quote<script type="text/javascript"><!--
google_ad_client = "pub-8554768181020902";
/* Bottom Adds */
google_ad_slot = "2928158641";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Sorry I guess I wasn't clear. So I have been reading more and I beleive my problem is that I cannot see the link to this mod on my Configuration screen in the admin center. There is no way for me to install adds or edit anything without it. I am using 1.1.6 now. All I see is an extra space under Thems and Layout.
Title: Re: Ad Management mod
Post by: mrbolsonator on September 09, 2008, 11:16:34 PM
problem somehow miraculously fixed? awesome!!

new problem is people cannot see the ads on my site
www.fuelcrazyamerica.com

yet i can as the admin, what is wrong?
Title: Re: Ad Management mod
Post by: learjet45 on September 09, 2008, 11:36:30 PM
Might be your permissions.
i dont know, just a guess.
Title: Re: Ad Management mod
Post by: crustybum on September 10, 2008, 04:27:12 AM
Anyone help with my earlier problem of duplicate code? :(

Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on September 10, 2008, 08:18:35 AM
I want to remove ads for my moderators and global moderators.

Have tried adding permission to moderators - i mean, enable ads permission. It shows the value in phpmyadmin and no such link in the forum permissions page.

How to stop ads for global moderators and moderators.
Title: Re: Ad Management mod
Post by: cqinzx on September 10, 2008, 12:01:14 PM
okay, i have a question. is there an ad mod for 1.1.6? because i installed the mod to my site and the link won't show up on my admin panel. its not under 'configuration', like it said it would be? then i looked over the specs and i saw that the mod wasn't for 1.1.6. Is there one? If not will there be one?

And if i downloaded the right version, then how do i get to the ad mod page?
Title: Re: Ad Management mod
Post by: learjet45 on September 10, 2008, 05:34:29 PM
I think it should work. If you language set to english cqinzx? It needs to be english, not english-utf-8
Title: Re: Ad Management mod
Post by: cqinzx on September 10, 2008, 06:10:01 PM
im new to all this stuff. how do i do that?
Title: Re: Ad Management mod
Post by: cqinzx on September 10, 2008, 06:12:17 PM
Oops nevermind, i got it. Thank you so much! you really helped.
Title: Re: Ad Management mod
Post by: Bugpac ™ on September 10, 2008, 09:34:56 PM
Will this work with 1.1.6 and dilber MC? I installed it the other day but seen no change to the forum, so i removed it...
Title: Re: Ad Management mod
Post by: evanora on September 12, 2008, 02:12:30 AM
Hi all,

I installed the mod and every other thing is working perfectly except that the ads only show in IE. I've tested on Opera, Firefox and Netscape but they don't appear.

Is there a browser compatibility issue with the mod or is there something I didn't set right? Anyone experiencing a similar issue?

PS: I suspect that the problem would be with my index.template.php file so I attached it just in case. I'm  using SMF 1.1.5 (upgraded to 1.1.6 after installing ad mod) . Using the default theme and TinyPortal.

Thanks.
Title: Re: Ad Management mod
Post by: aryanmughal on September 12, 2008, 08:14:50 AM
Plzzzzzzzz Help me I m Installing Ad Management Mod On Dilber MC But Its Not Showing Ads On My Forum :)
Title: Re: Ad Management mod
Post by: learjet45 on September 12, 2008, 08:30:40 AM
Is the language set to english, not english-utf-8?
Title: Re: Ad Management mod
Post by: netco on September 12, 2008, 04:17:38 PM
i 've installed it manually but i got this error:

Issue with the Ad Mod
LoadAds.php is missing/corrupt from your sources directory. Please make sure that it uploaded properly. The Ad mod won't be able to function properly.

i uploaded laodads.php and all wanted files ??
Title: Re: Ad Management mod
Post by: ThePro on September 12, 2008, 06:10:52 PM
put LoadAds.php as the name of the file instead of loadads.php remember, linux is caps sensitive
Title: Re: Ad Management mod
Post by: netco on September 13, 2008, 08:03:35 AM
sorry i was meant :
i uploaded LoadAds.php and all wanted files ??
but the error still exists  ?
Title: Re: Ad Management mod
Post by: simbergusa on September 13, 2008, 08:19:55 AM
So is this mod configured for images? If so how do I set that up? Or if not, is there a way to do it? I don't know much about php.
Title: Re: Ad Management mod
Post by: MultiformeIngegno on September 13, 2008, 08:28:21 AM
Quote from: jerm 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
How much is "distant" the new version compatible with Beta 4? :P
Title: Re: Ad Management mod
Post by: Bigguy on September 15, 2008, 02:38:08 PM
@ simbergusa: Upload an image somewhere and put the link in the ad mod using img tags:

[img]http://www.linktopic.com/pic.gif[/img]

Or

<img>http://www.linktopic.com/pic.gif</img>

@ lorenzone92: I don't think it would be compatible yet
Title: Re: Ad Management mod
Post by: Bigguy on September 15, 2008, 02:39:33 PM
@ netco: Have you checked permissions on the LoadAds.php file. ???
Title: Re: Ad Management mod
Post by: MultiformeIngegno on September 15, 2008, 03:14:10 PM
@Bigguy: Please at least can you tell me how to add manually adsense here (:():
(http://img245.imageshack.us/img245/3376/bannervj4.png)
Title: Re: Ad Management mod
Post by: Bigguy on September 15, 2008, 04:08:33 PM
There is a post here on the forum that explains how to manually add the adsense code. It might be an old thread but it keeps getting posted in so you might find a solution there to adding it manualy. :)
Title: Re: Ad Management mod
Post by: Bigguy on September 16, 2008, 02:08:21 AM
The ad mod has been updated to work with SMF 2.0 beta 4 now.
Title: Re: Ad Management mod
Post by: MultiformeIngegno on September 16, 2008, 09:22:00 AM
Quote from: Bigguy on September 16, 2008, 02:08:21 AM
The ad mod has been updated to work with SMF 2.0 beta 4 now.
Doesn't work properly here.
When I install it the header looks:
(http://img528.imageshack.us/img528/3971/headerwc7.th.png) (http://img528.imageshack.us/my.php?image=headerwc7.png)

...and if I choose the "Header" option it doesn't work, it doesn't display the ad... :(
Title: Re: Ad Management mod
Post by: Bigguy on September 16, 2008, 09:39:15 AM
We'll have to wait on Jerm to see this then.
Title: Re: Ad Management mod
Post by: gamgam on September 16, 2008, 11:29:34 AM
please create support for clanwars theme!
Title: Re: Ad Management mod
Post by: MultiformeIngegno on September 16, 2008, 11:36:55 AM
@gamgam: I think it's more important my bug... :P
Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on September 16, 2008, 01:35:15 PM
I want to remove ads for my moderators and global moderators.

Have tried adding permission to moderators - i mean, enable ads permission. It shows the value in phpmyadmin and no such link in the forum permissions page.

How to stop ads for global moderators and moderators.
Title: Re: Ad Management mod
Post by: Bigguy on September 16, 2008, 08:20:27 PM
If you manually installed this go over all the edits you did. Are there errors in the error log. ???
Title: Re: Ad Management mod
Post by: gamgam on September 17, 2008, 06:29:27 AM
Quote from: lorenzone92 on September 16, 2008, 11:36:55 AM
@gamgam: I think it's more important my bug... :P

but i wanna it for my theme! :)
Title: Re: Ad Management mod
Post by: BikerMK on September 17, 2008, 09:14:22 AM
Is this mod also compatible with the smf bridge of pragmamx?

I just tried it,...installation okay, but when I clicked on Ad Management I got an error messages!
Title: Re: Ad Management mod
Post by: Adish - (F.L.A.M.E.R) on September 17, 2008, 09:19:58 AM
Quote from: F.L.A.M.E.R on September 03, 2008, 07:53:19 PM
Can anyone do the edits for my index.template.php ? I am not able to find codes and also am causing some errors. I have some codes already added in but yet please can anyone do it for me ? I would attach it in my next post if anyone would help me out.

Thank you.
Title: Re: Ad Management mod
Post by: megastar on September 17, 2008, 11:41:32 AM
please i have downloaded and installed ad management mod v.2.3 to my forum but i cant find ad management in my admin area and it is supposed to be under configuration.what could be the problem?
Title: Re: Ad Management mod
Post by: Goodman854 on September 17, 2008, 06:15:50 PM
(http://www.letsvidz.com/doesnotwork2.png)
1.1.6 permissions are not working maybe a conflict with another mod?
Title: Re: Ad Management mod
Post by: Adish - (F.L.A.M.E.R) on September 17, 2008, 06:18:05 PM
its just the place its looking is taken by some other code.. do it manually.. it is easy to be done...
Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on September 18, 2008, 01:08:53 AM
Quote from: Bigguy on September 16, 2008, 08:20:27 PM
If you manually installed this go over all the edits you did. Are there errors in the error log. ???

Is this Reply , is to me Bigguy.
Title: Re: Ad Management mod
Post by: CrimsonSun99 on September 18, 2008, 03:14:50 AM
Is it possible to have certain ads show for members, and certain ads not?
Title: Re: Ad Management mod
Post by: megastar on September 18, 2008, 07:14:20 AM
can anyone please help me out.i cant find ad management which is supposed to be under configuration even after installing ad mod v2.3
what could be the problem/what is the solution.
Title: Re: Ad Management mod
Post by: learjet45 on September 19, 2008, 12:42:16 AM
@megastar:
Your language needs to be set to english, not english-utf8. check that.

@CrimsonSun99:
I believe that you can manage which users see ads by their member group and the permissions for that member group.
Title: Re: Ad Management mod
Post by: CrimsonSun99 on September 19, 2008, 05:32:02 PM
Quote from: learjet45 on September 19, 2008, 12:42:16 AM
I believe that you can manage which users see ads by their member group and the permissions for that member group.

Well I want multiple groups to see ads, but want some groups to see less ads.
Title: Re: Ad Management mod
Post by: MultiformeIngegno on September 20, 2008, 09:44:42 AM
Quote from: lorenzone92 on September 15, 2008, 03:14:10 PM
@Bigguy: Please at least can you tell me how to add manually adsense here (:():
(http://img245.imageshack.us/img245/3376/bannervj4.png)
Quote from: lorenzone92 on September 16, 2008, 09:22:00 AM
Quote from: Bigguy on September 16, 2008, 02:08:21 AM
The ad mod has been updated to work with SMF 2.0 beta 4 now.
Doesn't work properly here.
When I install it the header looks:
(http://img528.imageshack.us/img528/3971/headerwc7.th.png) (http://img528.imageshack.us/my.php?image=headerwc7.png)

...and if I choose the "Header" option it doesn't work, it doesn't display the ad... :(
Someone who replies here? :(
Title: Re: Ad Management mod
Post by: Mystiquo on September 20, 2008, 11:51:51 AM
i have a problem in board i see a white table in forum it's ok why????
Can You help me?
Title: Re: Ad Management mod
Post by: Bugpac ™ on September 20, 2008, 12:45:32 PM
can i use bbc code to place an ad? I have it up and running but my sponsor ads i was using bbc to add them to the page.
Title: Re: Ad Management mod
Post by: blondeamon on September 21, 2008, 04:41:35 PM
Is this not available on 1.1.6 ? Will be there an update soon ?

Or maybe i can use the 1.1.5 instructions  for 1.1.6 as well ?



P.S The fact that i use DilberMc changes somehting ? must i do more stuff?
Title: Re: Ad Management mod
Post by: shanksta13 on September 21, 2008, 05:08:32 PM
I had this mod working fine, but something changed and now my ads won't show up.  Not sure how long it hasn't been working, but I just noticed unfortunately.  As far as I know, I haven't added any other mods or anything that would have messed it up.  Any ideas?  When I click on the ad management link in my admin panel, it just takes me to the home page of my SMF forum.
Title: Re: Ad Management mod
Post by: blondeamon on September 22, 2008, 01:30:43 PM
Cant someone answer if this mod can be put on a 1.1.6 forum ? If not what must i do?
Title: Re: Ad Management mod
Post by: Bugpac ™ on September 22, 2008, 09:30:19 PM
I am pretty certain you can...Did you read the manual install instructions? or parser i think its called..
Title: Re: Ad Management mod
Post by: Kokkekniven on September 22, 2008, 10:50:23 PM
Quote from: blondeamon on September 22, 2008, 01:30:43 PM
Cant someone answer if this mod can be put on a 1.1.6 forum ? If not what must i do?

I tried it on a 1.1.6 installation and it worked like a charm. Just remember that the files you cant modify in in your theme can be modified in the default theme :)
Title: Re: Ad Management mod
Post by: blondeamon on September 23, 2008, 06:20:04 AM
Can you please point me to a site (parser or not) with details about step by tsep installation of this mod?

Edit. zomg what the hell is that Find </td> and replace it ? Which one of all ????

I talk about the edits on index.template.php
Title: Re: Ad Management mod
Post by: megastar on September 23, 2008, 10:26:03 AM
my adsense ads and google search box are appearing twice on my forum.What could be the cause.
Could it be because i upgraded from 1.1.5 to 1.1.6 also if i delete one of them,both gets deleted and if i add one,two shows up.What could be wrong.please help
Title: Re: Ad Management mod
Post by: Kokkekniven on September 23, 2008, 01:12:22 PM
Quote from: blondeamon on September 23, 2008, 06:20:04 AM
Can you please point me to a site (parser or not) with details about step by tsep installation of this mod?
Go to this page:
http://custom.simplemachines.org/mods/index.php?mod=255 and choose the first file to download - http://custom.simplemachines.org/mods/index.php?action=download;mod=255;id=26580 <----that one for 1.1.6 and below chose the manual instruction for 1.1.6, and on that page it will show you the install directions and files to edit :)
Title: Re: Ad Management mod
Post by: F4r4Zm0In on September 23, 2008, 01:43:06 PM
I am using smf 1.1.6, using "classic" theme which comes with the default smf installation

while installing Ad Managment       2..3

i have got this >>

QuoteType      Action      Description
1.     Execute Code     install.php   
2.     Execute Modification     ./index.php     Test successful
3.     Execute Modification     ./Sources/Subs.php     Test successful
4.     Execute Modification     ./Themes/classic/index.template.php     Test failed
5.     Execute Modification     ./Themes/classic/BoardIndex.template.php     Test failed
6.     Execute Modification     ./Themes/classic/Display.template.php     Test successful
7.     Execute Modification     ./Themes/classic/MessageIndex.template.php     Test failed
8.     Execute Modification     ./Sources/ManagePermissions.php     Test successful
9.     Extract File     ./Sources/Ads.php   
10.     Extract File     ./Sources/LoadAds.php   
11.     Extract File     ./Themes/classic/Ads.template.php   
12.     Extract File     ./Themes/classic/languages/Ads.english.php

any ideas ???
Title: Re: Ad Management mod
Post by: pulkit on September 24, 2008, 12:48:00 AM
Quote from: blondeamon on September 23, 2008, 06:20:04 AM
Can you please point me to a site (parser or not) with details about step by tsep installation of this mod?

Edit. zomg what the hell is that Find </td> and replace it ? Which one of all ????

I talk about the edits on index.template.php

try this at your own risk ... open the zip file for this mod that supports 1.1.5 and open package-info.xml
in the fields for <install for> and <uninstall for> add 1.1.6 right next to 1.1.5 ... save the file in the same zip package and upload ...
this approach usually works because instances like 1.1.4>1.1.5>1.1.6 are usually very small changes and mods usually work the same in both the editions (only in cases of minor changes). Update the install program and voila !!
If you sometimes can't seem to see an uninstall button for a certain mod, then try accessing the Packages folder in the forum folder by FTP and then downloading the mod file. Do this change (save a backup first) in both the install and uninstall sections and re upload the file through the package manager ... you don't need to re-install the entire mod. Let it go upto checking compatibility. Then come back and uninstall from Browse Packages option. Make sure all tests pass. If not, ask for support.

Hope this helps.
Title: Re: Ad Management mod
Post by: megastar on September 24, 2008, 03:02:24 AM
cant somebody help me
Title: Re: Ad Management mod
Post by: mudbrook on September 24, 2008, 12:48:24 PM
This is a new install of  SMF 1.0.14 / 1.1.6 Update
I installed the Ad Managment  2.3
It installed fine with no errors
The new mod install does not show up in the config area
I am a beginner, can someone help me out?
I am sure I am doing something wrong
Title: Re: Ad Management mod
Post by: Faevilangel on September 24, 2008, 04:34:47 PM
just installed smf beta 4 & tried to install this mod but get error

SQL logic error or missing database
near "NOT": syntax error
File: /www/110mb.com/p/h/j/a/d/m/i/n/phjadmin/htdocs/Forum/Packages/temp/install.php
Line: 30

line 30 is the end of the sql creating tables :|
Title: Re: Ad Management mod
Post by: ccbtimewiz on September 24, 2008, 06:03:14 PM
Quote from: megastar on September 24, 2008, 03:02:24 AM
cant somebody help me

Overview all the templates and source files this modification edits and make sure they only installed once.

Quote from: mudbrook on September 24, 2008, 12:48:24 PM
This is a new install of  SMF 1.0.14 / 1.1.6 Update
I installed the Ad Managment  2.3
It installed fine with no errors
The new mod install does not show up in the config area
I am a beginner, can someone help me out?
I am sure I am doing something wrong

Refer to this post: Installed the mod and see no options in admin? (http://www.smfads.com/forums/index.php?topic=1802.0)

Quote from: Faevilangel on September 24, 2008, 04:34:47 PM
just installed smf beta 4 & tried to install this mod but get error

SQL logic error or missing database
near "NOT": syntax error
File: /www/110mb.com/p/h/j/a/d/m/i/n/phjadmin/htdocs/Forum/Packages/temp/install.php
Line: 30

line 30 is the end of the sql creating tables :|

Strange error. Do you get anything in your Forum Error Log (http://docs.simplemachines.org/index.php?topic=150)?

Quote from: F4r4Zm0In on September 23, 2008, 01:43:06 PM
I am using smf 1.1.6, using "classic" theme which comes with the default smf installation

while installing Ad Managment       2..3

i have got this >>

QuoteType      Action      Description
1.     Execute Code     install.php   
2.     Execute Modification     ./index.php     Test successful
3.     Execute Modification     ./Sources/Subs.php     Test successful
4.     Execute Modification     ./Themes/classic/index.template.php     Test failed
5.     Execute Modification     ./Themes/classic/BoardIndex.template.php     Test failed
6.     Execute Modification     ./Themes/classic/Display.template.php     Test successful
7.     Execute Modification     ./Themes/classic/MessageIndex.template.php     Test failed
8.     Execute Modification     ./Sources/ManagePermissions.php     Test successful
9.     Extract File     ./Sources/Ads.php   
10.     Extract File     ./Sources/LoadAds.php   
11.     Extract File     ./Themes/classic/Ads.template.php   
12.     Extract File     ./Themes/classic/languages/Ads.english.php

any ideas ???

What other modifications do you have installed? Have you tried to manually install this mod?
Title: Re: Ad Management mod
Post by: knows_nothing on September 25, 2008, 12:52:25 PM
I installed this on SMF 1.1.6 using the Core theme and it works great!  Is there a setting to allow guests to see the ads?  I only see them once I have logged in.  If this has been asked before please excuse me.  There are 153 pages to troll and I just can't do it.
Title: Re: Ad Management mod
Post by: MultiformeIngegno on September 25, 2008, 02:08:13 PM
BUG!!

In the new version of the MOD for SMF 2.0 beta 4 the index.template.php is wrong!!
It lacks of the "Welcome area" code!!

You have to add this in the index.template.php instead of the code contained in the MOD:

      // Show the total time logged in?
      if (!empty($context['user']['total_time_logged_in']))
      {
         echo '
               <li>', $txt['totalTimeLogged1'];

         // If days is just zero, don't bother to show it.
         if ($context['user']['total_time_logged_in']['days'] > 0)
            echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

         // Same with hours - only show it if it's above zero.
         if ($context['user']['total_time_logged_in']['hours'] > 0)
            echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

         // But, let's always show minutes - Time wasted here: 0 minutes ;).
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '
               </li>';
      }

      if (!empty($context['open_mod_reports']) && $context['show_open_reports'])
         echo '
               <li><a href="', $scripturl, '?action=moderate;area=reports">', sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']), '</a></li>';
      echo '
            </ul>';
   }
   // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
   else
   {
      echo '
            <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
            <form class="windowbg2" id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
               ' , $txt['login_or_register'], '<br />
               <input type="text" name="user" size="10" />
               <input type="password" name="passwrd" size="10" />
               <select name="cookielength">
                  <option value="60">', $txt['one_hour'], '</option>
                  <option value="1440">', $txt['one_day'], '</option>
                  <option value="10080">', $txt['one_week'], '</option>
                  <option value="43200">', $txt['one_month'], '</option>
                  <option value="-1" selected="selected">', $txt['forever'], '</option>
               </select>
               <input type="submit" value="', $txt['login'], '" /><br />
               ', $txt['quick_login_dec'];

      if (!empty($modSettings['enableOpenID']))
         echo'
               <br />
               <input type="text" name="openid_url" id="openid_url" size="25" class="openid_login" />';

      echo '
               <input type="hidden" name="hash_passwrd" value="" />
            </form>';
   }
echo '</div>';
                     //Welcome Ads
                     if (function_exists("show_welcomeAds"))
                     {
                        $ads = show_welcomeAds();
                        if(!empty($ads))
                        {
                           echo '<div id="windowbg2" style="width:470px; float:right; margin-top:9px; margin-right:3px" align="right">';
                           if($ads['type']==0)
                              echo $ads['content'];
                           else
                              eval($ads['content']);
                           echo '</div>';
                        }
                        unset($ads);
                     }
                  echo '</div></div>


I hope you'll fix this asap! :)
Title: Re: Ad Management mod
Post by: shadowshost on September 25, 2008, 04:43:00 PM
I have a major problem that I just can't figure and hoping someone can help me with.

I installed the Ad Mod on Version 1.1.6. All seemed fine until I went in to look at a post and received the following:

Template Parse Error!
There was a problem loading the /Themes/default/Display.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------

syntax error, unexpected '.'


I have went trough the files and everything seems in place. I have dug around other places trying to figure this out and had no luck.

So technically my forum is down until this is resolved. It seems you can do everything as normal such as post, play in the arcade, etc. You just can't view any post therefor you can't reply to any.

Can anyone help me with this? My Display.template.php is attached which I am assuming is where the error is coming from.
Title: Re: Ad Management mod
Post by: ccbtimewiz on September 25, 2008, 06:21:02 PM
Quote from: shadowshost on September 25, 2008, 04:43:00 PM
I have a major problem that I just can't figure and hoping someone can help me with.

I installed the Ad Mod on Version 1.1.6. All seemed fine until I went in to look at a post and received the following:

Template Parse Error!
There was a problem loading the /Themes/default/Display.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------

syntax error, unexpected '.'


I have went trough the files and everything seems in place. I have dug around other places trying to figure this out and had no luck.

So technically my forum is down until this is resolved. It seems you can do everything as normal such as post, play in the arcade, etc. You just can't view any post therefor you can't reply to any.

Can anyone help me with this? My Display.template.php is attached which I am assuming is where the error is coming from.

Lines 809 - 878 have a bunch of junk. Get rid of those lines.
Title: Re: Ad Management mod
Post by: shadowshost on September 25, 2008, 06:39:00 PM
Quote from: ccbtimewiz on September 25, 2008, 06:21:02 PMLines 809 - 878 have a bunch of junk. Get rid of those lines.

Did and still receiving the same error.

Here are the mods I also have installed. Ad Mod was the last one installed.

1. Contact Page 1.1 
2. SMFShop 3.0
3. SMF Arcade 2.0.13
4. Lots_o_Smileys 1.0
5. SMF 1.0.14 / 1.1.6
6. Anti-Bot Registration Puzzles 1.2   
7. Your Button 1.1
8. SMF Articles 1.0.1.3
9. Treasury 2.11
10. Referrals Mod 2.0.1
11. Ad Managment 2.3
12. SMF 1.0.14 / 1.1.6 Update 1.0
13. Simple Award System 2.0.0b
14. Skype Integration 1.0
15. Perfect Smiley Set 1.0

Here is my forum url: www.shadowsinthedarkradio.com/community
Title: Re: Ad Management mod
Post by: shadowshost on September 25, 2008, 08:33:33 PM
Ok all is good now. I had somehow pasted some code just like the one pointed out in other places. It was just crap still in my clipboard. I really need to not do this all day long :P

Thanks for pointing me in the right direction.
Title: Re: Ad Management mod
Post by: Faevilangel on September 25, 2008, 08:39:00 PM
Quote from: Faevilangel on September 24, 2008, 04:34:47 PM
just installed smf beta 4 & tried to install this mod but get error

SQL logic error or missing database
near "NOT": syntax error
File: /www/110mb.com/p/h/j/a/d/m/i/n/phjadmin/htdocs/Forum/Packages/temp/install.php
Line: 30

line 30 is the end of the sql creating tables :|


Strange error. Do you get anything in your Forum Error Log (http://docs.simplemachines.org/index.php?topic=150)?


yeah it shows in my error logs...... any idea what could be wrong? no mods or templates were attempted before this mod so nothing that could interfere

session ID: d9f6f29f977fe36bc9db25bfb3411ff2  (i think)???
 
Type of error: Database 

http://phjadmin.110mb.com/Forum/index.php?action=admin;area=packages;sa=install2;package=ad_mod_v2-3-4_SMF_vbeta4.zip;pid=0 

Database Error: SQL logic error or missing database
near "NOT": syntax error

File: /www/110mb.com/p/h/j/a/d/m/i/n/phjadmin/htdocs/Forum/Packages/temp/install.php
Line: 30 

Title: Re: Ad Management mod
Post by: ronboy on September 25, 2008, 11:34:56 PM
I'm using SMF 1.1.6 and using SMF Default theme- core, I've installed ad managment but it don't work.  what am I doing wrong?  Can someone help me to get Ad Managment to work ?
Title: Re: Ad Management mod
Post by: MultiformeIngegno on September 26, 2008, 03:40:48 AM
Has someone seen this? :P

Quote from: lorenzone92 on September 25, 2008, 02:08:13 PM
BUG!!

In the new version of the MOD for SMF 2.0 beta 4 the index.template.php is wrong!!
It lacks of the "Welcome area" code!!

You have to add this in the index.template.php instead of the code contained in the MOD:

      // Show the total time logged in?
      if (!empty($context['user']['total_time_logged_in']))
      {
         echo '
               <li>', $txt['totalTimeLogged1'];

         // If days is just zero, don't bother to show it.
         if ($context['user']['total_time_logged_in']['days'] > 0)
            echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

         // Same with hours - only show it if it's above zero.
         if ($context['user']['total_time_logged_in']['hours'] > 0)
            echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

         // But, let's always show minutes - Time wasted here: 0 minutes ;).
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '
               </li>';
      }

      if (!empty($context['open_mod_reports']) && $context['show_open_reports'])
         echo '
               <li><a href="', $scripturl, '?action=moderate;area=reports">', sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']), '</a></li>';
      echo '
            </ul>';
   }
   // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
   else
   {
      echo '
            <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
            <form class="windowbg2" id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
               ' , $txt['login_or_register'], '<br />
               <input type="text" name="user" size="10" />
               <input type="password" name="passwrd" size="10" />
               <select name="cookielength">
                  <option value="60">', $txt['one_hour'], '</option>
                  <option value="1440">', $txt['one_day'], '</option>
                  <option value="10080">', $txt['one_week'], '</option>
                  <option value="43200">', $txt['one_month'], '</option>
                  <option value="-1" selected="selected">', $txt['forever'], '</option>
               </select>
               <input type="submit" value="', $txt['login'], '" /><br />
               ', $txt['quick_login_dec'];

      if (!empty($modSettings['enableOpenID']))
         echo'
               <br />
               <input type="text" name="openid_url" id="openid_url" size="25" class="openid_login" />';

      echo '
               <input type="hidden" name="hash_passwrd" value="" />
            </form>';
   }
echo '</div>';
                     //Welcome Ads
                     if (function_exists("show_welcomeAds"))
                     {
                        $ads = show_welcomeAds();
                        if(!empty($ads))
                        {
                           echo '<div id="windowbg2" style="width:470px; float:right; margin-top:9px; margin-right:3px" align="right">';
                           if($ads['type']==0)
                              echo $ads['content'];
                           else
                              eval($ads['content']);
                           echo '</div>';
                        }
                        unset($ads);
                     }
                  echo '</div></div>


I hope you'll fix this asap! :)
Title: Re: Ad Management mod
Post by: ronboy on September 26, 2008, 08:46:05 AM
where do u go to put this?
Title: Re: Ad Management mod
Post by: MultiformeIngegno on September 26, 2008, 10:18:32 AM
Quote from: ronboy on September 26, 2008, 08:46:05 AM
where do u go to put this?
In index.template.php, replacing the old (wrong) code.. :)
Title: Re: Ad Management mod
Post by: W. Riker on September 26, 2008, 10:21:31 AM
Can somebody please put here in attachment the last change that must be made in ./Themes/default/Display.template.php

When i try copy it from here (http://custom.simplemachines.org/mods/index.php?action=parse) i get just a crap.  :'(


my smf: 1.1.6
Title: Re: Ad Management mod
Post by: W. Riker on September 26, 2008, 11:47:39 AM
Please somebody help me.

I just need that change in normal form.


Title: Re: Ad Management mod
Post by: Goodman854 on September 26, 2008, 11:38:37 PM
Quote from: F.L.A.M.E.R on September 17, 2008, 06:18:05 PM
its just the place its looking is taken by some other code.. do it manually.. it is easy to be done...
sounds simple but what do I do? Add what code to premmisissions?
Title: Re: Ad Management mod
Post by: docmood on September 27, 2008, 09:23:14 AM
i added the ad mod to the smf 2.04 beta.
It all installed properly, no errors, the ad Manageemnt bit appears in my admin section.

I added a couple of adds from adsdaq and set them to appear as towers and below posts but nothing is appearing. I tried logging out and as another user but still nothing

Any ideas what i'm doing wrong?
Title: Re: Ad Management mod
Post by: W. Riker on September 27, 2008, 04:00:20 PM
Quote from: W. Riker on September 26, 2008, 10:21:31 AM
Can somebody please put here in attachment the last change that must be made in ./Themes/default/Display.template.php

When i try copy it from here (http://custom.simplemachines.org/mods/index.php?action=parse) i get just a crap.  :'(


my smf: 1.1.6

I still waiting somebody help me and put that attachment here. PLEASE!
Title: Re: Ad Management mod
Post by: Bigguy on September 27, 2008, 06:03:49 PM
Open the .xml file in that package and get the code from there. :)
Title: Re: Ad Management mod
Post by: W. Riker on September 27, 2008, 07:00:45 PM
Thanks Bigguy...

Now i have other problem...

I don't have this ads button
(http://www.simplemachines.org/community/index.php?action=dlattach;topic=68632.0;attach=13195;image)


What should i do?
Title: Re: Ad Management mod
Post by: ccbtimewiz on September 27, 2008, 11:24:08 PM
Make sure that you're using english and not utf8-english under Server Settings (http://docs.simplemachines.org/index.php?board=52.0;sort=subject).
Title: Re: Ad Management mod
Post by: W. Riker on September 27, 2008, 11:58:36 PM
I'm using croatian-utf8
Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on September 28, 2008, 12:58:08 AM
Hi any updates for not showing the ads to the moderators.

Any one could help me.
Title: Re: Ad Management mod
Post by: ccbtimewiz on September 28, 2008, 01:01:23 AM
Well that could be why the $txt[] aren't showing-- because the mod isn't supported in that language yet.

Try setting your language to english and see if the options appear.
Title: Re: Ad Management mod
Post by: W. Riker on September 28, 2008, 01:07:35 AM
Quote from: ccbtimewiz on September 28, 2008, 01:01:23 AM
Well that could be why the $txt[] aren't showing-- because the mod isn't supported in that language yet.

Try setting your language to english and see if the options appear.

No... it appears nothing because everything on my smf is set for croatian language.

Is there anything I can change that I get this mod works normally? This is my only way to put google ads on my forum.
Title: Re: Ad Management mod
Post by: roc07 on September 28, 2008, 10:04:44 AM
hey can any1 do file edits to my files nd give me!!!!bcoz most the file edits are not found in my file!!!so pls can anybody help me!!!!!!!!!!!!!pls!!!!!!!!!!
Title: Re: Ad Management mod
Post by: thegiftedhands on September 29, 2008, 09:35:08 AM
Am using the SMF 1.1.6 and i was able to install the Ad Mod. below are its files
install.xml (12375 bytes)
LoadAds.php (8939 bytes)
package-info.xml (1075 bytes)
readme.txt (1759 bytes)
Ads.php (11778 bytes)
Ads.english.php (11679 bytes)
Ads.template.php (25316 bytes)
install.php (2370 bytes)
still it is not appearing on the configuration page. Is there anything am missing? please help
Title: Re: Ad Management mod
Post by: learjet45 on September 29, 2008, 05:40:12 PM
Youre forum language needs to be set to english not english-UTF8.
Title: Re: Ad Management mod
Post by: Bigguy on September 30, 2008, 09:39:59 AM
If the theme you are trying to edit does not have all the template files in it that you have to edit then you don't need to edit those ones. Just the ones that are there and that the ad mod uses.

Quote from: roc07 on September 28, 2008, 10:04:44 AM
hey can any1 do file edits to my files nd give me!!!!bcoz most the file edits are not found in my file!!!so pls can anybody help me!!!!!!!!!!!!!pls!!!!!!!!!!
Title: Re: Ad Management mod
Post by: naijapreneur on September 30, 2008, 11:15:58 AM
 ??? i have downloaded the ad management mod, where do i install it with ftp, i'm stuck, please help
Title: Re: Ad Management mod
Post by: W. Riker on September 30, 2008, 12:34:09 PM
Install it through package installer in your admin panel.
Title: Re: Ad Management mod
Post by: W. Riker on September 30, 2008, 02:46:22 PM
I checked manually and everything was install correctly... but there is no ads button in my admin panel...

Please help me!
Title: Re: Ad Management mod
Post by: N3RVE on September 30, 2008, 05:05:21 PM
Quote from: naijapreneur on September 30, 2008, 11:15:58 AM
??? i have downloaded the ad management mod, where do i install it with ftp, i'm stuck, please help

Read:
That should walk you through Installation of Packages.

-[n3rve]
Title: Re: Ad Management mod
Post by: Ravac on September 30, 2008, 08:48:13 PM
Serbian-utf8.php (Latinic)

Serbian translate is Attached with post  :D
Title: Re: Ad Management mod
Post by: aZa on October 01, 2008, 04:44:01 PM
i got this working for the default theme. works like a charm. but i have to get it working for SAFblue theme. i tried to edit the files using the parser but still "template parsing error" shows up

has anyone implemented this on SAF MULTI COLOR theme ? please help
Title: Re: Ad Management mod
Post by: zhaba on October 02, 2008, 11:52:01 PM
I'm having trouble using this mod.  I dont get an error of any sort, it installed fine, but my ads dont show up.  Any suggestions?
Title: Re: Ad Management mod
Post by: dangerboy on October 03, 2008, 05:35:33 AM
How to can i make this management mod work for other theme?
Title: Re: Ad Management mod
Post by: Bigguy on October 03, 2008, 12:36:06 PM
This has been posted at least a thousand times now. All most all mods install to the default theme ONLY. This means that if you have any templates in your custom theme folder that the ad mod edits in the default theme folder they have to be edited manually because ....any mod ONLY installs to the default theme. So if you have any of these templates in your custom theme folder they have to be edited manually:

BoardIndex.template
MessageIndex.template
Display.template
index.template

To do this download an editor from the net and then download your template files to your desktop. Use a package parser to show you the edits that are needed and edit away. Then upload the newly edited files back to your server, overwriting the originals that are there. Make sure you backup the original files first before editing them incase you have problems.
Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on October 03, 2008, 04:11:20 PM
A bigguy a very small fix.

I need to remove ads to moderators .

Could you help me .
Title: Re: Ad Management mod
Post by: BigKev on October 03, 2008, 06:10:04 PM
I have just installed Ad Managment 2.3   onto my forum.

It shows as installed in the Browse Packages list.

But there is no Manage Ads option appearing in the Configuration  section.

I am running 1.1.6.

What might have gone wrong with my install?
Title: Re: Ad Management mod
Post by: Bigguy on October 03, 2008, 10:01:34 PM
@ asudhakar: check out the permissions for moderators.

@ BigKev: Do you have a custom theme installed. ??? Where there errors when installing the mod ???
Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on October 03, 2008, 10:45:30 PM
Hi Bigguy, i have tried it many times. I could not create a permission called ad mod . It does not works only for moderators position.

Could i do something on the mysql to clear the ads for moderators.

Kindly help me.
Title: Re: Ad Management mod
Post by: Bigguy on October 03, 2008, 10:50:16 PM
Try removing ads for the other membergroup they are in. That might remove the ads for moderators.
Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on October 03, 2008, 11:20:42 PM
i have a set a new member group say bigguy members . Where i block ads for those members.
If anyone in that particular group is a moderator. Then the ads will be displayed on the particular board.
There the problem is. So i want to remove the ads for moderators.

could we had permisson on mysql. Because whenever i try to add permisson manually to moderators. its not accepting.
Title: Re: Ad Management mod
Post by: Bigguy on October 03, 2008, 11:27:52 PM
This is something you will have to ask the mod author then. You can try to get a hold of him here:

www.smfads.com
Title: Re: Ad Management mod
Post by: BigKev on October 04, 2008, 12:03:21 AM
BigGuy,
I am running the default theme, I just installed it today and have made no modifications.    Its a bare  bones forum ...    www.financialmeltdown2008.com
I have now unistalled the ad management mod and also backed out the 1.1.6 mod, taking the site back to 1.1.5.

Then uploaded the ad mod and installed it.   Got no errors.  I got the following message:
QuoteThe package was installed successfully. You should now be able to use whatever functionality it adds or changes; or not be able to use functionality it removes.

But still no sign of an Ad management button.    Its a mystery.   Is there a log file somewhere that might add some more light to the subject?
Kevin
Title: Re: Ad Management mod
Post by: Bigguy on October 04, 2008, 01:14:39 AM
Check out your error logs in the admin panel and see if there is anything pertaining to the ad mod.
Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on October 04, 2008, 02:39:09 AM
Quote from: Bigguy on October 03, 2008, 11:27:52 PM
This is something you will have to ask the mod author then. You can try to get a hold of him here:

www.smfads.com

yes Bigguy,

I have tried that too already.

http://www.smfads.com/forums/index.php?topic=1736.0

This i was requesting for last 6 months.
Title: Re: Ad Management mod
Post by: Bigguy on October 04, 2008, 02:08:55 PM
There's really not to much I can say if the mod author is not answering his own requests. If I see him online I will redirect him to this post for you. :)
Title: Re: Ad Management mod
Post by: Goodman854 on October 05, 2008, 12:19:39 AM
Quote from: goodman854 on September 26, 2008, 11:38:37 PM
Quote from: F.L.A.M.E.R on September 17, 2008, 06:18:05 PM
its just the place its looking is taken by some other code.. do it manually.. it is easy to be done...
sounds simple but what do I do? Add what code to premmisissions?
Please help!
Title: Re: Ad Management mod
Post by: prakasharavind5 on October 08, 2008, 11:53:29 PM
Hi i have installed smf.v.1.1.6. I have installed ad management mod and google ads are showing in default template. But ads are not showing in my theme cristal vista.

1) I have installed in the mod thru admin panel.

2) I followed all the instructions given in the admanagement mod 1.1.6 manual.


Still not showing. Pls help.
Title: Re: Ad Management mod
Post by: ronboy on October 09, 2008, 01:15:45 AM
I've installed ad management on my messageboard it works, but not every member can see the ads.  Some can, and some can't view it.  how can i fix this?  how can i fix this?  what i am doing wrong, i want every member to see the ads.
Title: Re: Ad Management mod
Post by: ccbtimewiz on October 09, 2008, 03:03:25 PM
Quote from: ronboy on October 09, 2008, 01:15:45 AM
I've installed ad management on my messageboard it works, but not every member can see the ads.  Some can, and some can't view it.  how can i fix this?  how can i fix this?  what i am doing wrong, i want every member to see the ads.

Have a look at this: http://www.smfads.com/forums/index.php?topic=1860.0
Title: Re: Ad Management mod
Post by: Goodman854 on October 11, 2008, 11:39:40 PM
Any easy fix to permission problems?
Title: Re: Ad Management mod
Post by: cafenubia on October 13, 2008, 04:58:34 PM
Ive ran into a problem integrating this mod ,im using smf 1.1.6 im manually installing this mod ,ive installed all but the ./Themes/default/index.template.php changes.

Im using a custom theme that ive edited several time with no problem.

The problem im having now starts with


Find:
<body>';


Add After:
//Display ads on the top of the page if (function_exists("show_topofpageAds")) { $ads = show_topofpageAds(); if(!empty($ads)) if($ads['type']==0) echo $ads['content']; else eval($ads['content']); unset($ads); }


In my template the body tag is just <body> with no '; after it


Next  the mod instructions have
Find:
</td>

Im not understanding which </td> in the template to place the next code after,being there are many </td> in the template

I tried adding the

//Display ads on the top of the page if (function_exists("show_topofpageAds")) { $ads = show_topofpageAds(); if(!empty($ads)) if($ads['type']==0) echo $ads['content']; else eval($ads['content']); unset($ads); }

After the <body> in my site and i get this error

Template Parse Error!
There was a problem loading the /Themes/FlowMOTION-Yellow/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected T_STRING, expecting ',' or ';'

Anyone have a clue or some guidance for me in this matter,the mod is a prt of my site already i have the settings in my admin already.This should be the last step.

Title: Re: Ad Management mod
Post by: Bigguy on October 13, 2008, 08:35:01 PM
Try adding this after the edits for the body tag:

';

Also if this is a custom theme, compare were the edits are in the default index.template for the edit:

</td>

and place them acordingly.

@ goodman854: You'll have to look in the modifications.xml file in the mod or use the package parser to find the edits for permissions.
Title: Re: Ad Management mod
Post by: bfeo on October 13, 2008, 09:49:29 PM
How can I record clicks for ads, and not just views?

Also, is there a way that I can post these clicks inside a post, similar to this? http://planetrenders.net/affiliates.php
Title: Re: Ad Management mod
Post by: Bigguy on October 13, 2008, 10:33:34 PM
You would have to ask the mod author if this is possible.
Title: Re: Ad Management mod
Post by: cafenubia on October 14, 2008, 01:51:11 PM
Quote from: Bigguy on October 13, 2008, 08:35:01 PM
Try adding this after the edits for the body tag:

';

Also if this is a custom theme, compare were the edits are in the default index.template for the edit:

</td>




and place them acordingly.

@ goodman854: You'll have to look in the modifications.xml file in the mod or use the package parser to find the edits for permissions.


I tried adding  '; after the edit and before the edit i still get the template parse error

I couldnt compare the default template the code isnt there,i think but im not sure,that when i ran the install it showed test failed for the default template so i modified it myself.

Ive uploaded a attachment of my index template ,if anyone can assist me i would greatly appreciate it  :D
Title: Re: Ad Management mod
Post by: Bigguy on October 14, 2008, 04:31:45 PM
Can you add all your ad mod edits to that file and post it again please. Also you can upload php files here, or you should be able to.
Title: Re: Ad Management mod
Post by: cafenubia on October 14, 2008, 06:49:23 PM
Quote from: Bigguy on October 14, 2008, 04:31:45 PM
Can you add all your ad mod edits to that file and post it again please. Also you can upload php files here, or you should be able to.

Yes Sure.


Here They Are..........


Title: Re: Ad Management mod
Post by: Bigguy on October 14, 2008, 09:31:21 PM
Ok well; not sure why you posted all those files. All I wanted was the index.template.php file that you have done the ad mod edits to. :)
Title: Re: Ad Management mod
Post by: cafenubia on October 15, 2008, 09:00:15 AM
Quote from: Bigguy on October 14, 2008, 09:31:21 PM
Ok well; not sure why you posted all those files. All I wanted was the index.template.php file that you have done the ad mod edits to. :)


Ooops i misread your post........ :D
Here is the edited file ,i know the </td> is off but i had no idea where it was...
Title: Re: Ad Management mod
Post by: tank1 on October 15, 2008, 01:51:31 PM
Hi gays!

I have just upgraded SMF 1.1.4 to 1.1.6
And now I am trying to install Ads-mod.

I read that I have to change source code of some files and start doing it but ...
in second file ./Sources/Admin.php THERE WAS NOT searched strings !!!

What to do??


* ad_mod_v2-3-4_SMF_vbeta4.zip
(I read instructions after Submitting the form at http://custom.simplemachines.org/mods/index.php?mod=255)

* I attached the file ./Sources/Admin.php

* the forum runs on http://clubzeland.com/for1
Title: Re: Ad Management mod
Post by: bfeo on October 15, 2008, 06:04:51 PM
Quote from: Bigguy on October 13, 2008, 10:33:34 PM
You would have to ask the mod author if this is possible.


Is that implying that the mod author doesn't read this thread?
Title: Re: Ad Management mod
Post by: Bigguy on October 15, 2008, 07:07:16 PM
No that is implying that he has his own site to run and he might not check this thread as regularly as he should. :)
Title: Re: Ad Management mod
Post by: Worfor on October 16, 2008, 08:54:56 PM
HI

Please help I am new to all of this but it is great fun
My problem is that when I add an add it appears three times in the edit ads section and twice on my forum.
I am now officially bald, please help

Thank you in advance

Worfor
Title: Re: Ad Management mod
Post by: Bigguy on October 16, 2008, 11:00:22 PM
The edits are in your files more than once. You will have to run the package through a package parser to get the edits it does and to what files. Then download those files and take out the duplicate code.
Title: Re: Ad Management mod
Post by: Worfor on October 17, 2008, 03:50:47 AM
Ok I will do that thank you bigguy
Title: Re: Ad Management mod
Post by: Sudhakar Arjunan on October 17, 2008, 05:24:58 PM
HI All,

am using 2.0.4 with Energy Theme - http://custom.simplemachines.org/themes/index.php?lemma=974

I have installed Ads mods and works perfectly in default theme.

Even i have coded all the theme edit, but i could not complete the edit only in display.template.php

Which i was sitting for hour and could not clear the php error.

I have attached the display.template.php. Kindly help me for custom theme edit only on the display.template.php page.

Thanks in Advanced.
Title: Re: Ad Management mod
Post by: glennk on October 18, 2008, 04:56:25 AM
HI Guys,

Ive just done a fresh install of my whole forum due to lots of errors creaping in. I am slowly reinstalling all my required mods.

The first problem I have encountered is with this ad managment mod. The error reads as follows

Quotehttp://www.whitbyseaanglers.co.uk/forum/index.php?pretty;action=viewErrorLog&amp;desc
Apply Filter: Only show the errors with the same message
8: Undefined index: ad_management
File: /home/glennk/public_html/forum/Sources/Subs.php
Line: 3277

and

Quote
Apply Filter: Only show the errors with the same message
Unable to load the 'Ads.english-utf8' language file.

This is perhaps the most important mod to get right for me as it displays mt adsense and paid ads on the site.
Title: Re: Ad Management mod
Post by: Worfor on October 18, 2008, 05:32:49 AM
Quote from: Bigguy on October 16, 2008, 11:00:22 PM
The edits are in your files more than once. You will have to run the package through a package parser to get the edits it does and to what files. Then download those files and take out the duplicate code.
Thank you Bigguy all is now well
Title: Re: Ad Management mod
Post by: Worfor on October 18, 2008, 10:02:14 AM
Please help
I am using ad management with v1.1.6 on the default
I have found a way to display my own ads using the ad managment edit ads screen and have selected that the ads should be placed in a tower on the left hand side of every page however they do not display within posts or on thread pages could someone please advise
I do not want to post my site adress here unless I am told it is ok to do so If I could you would see immediately my problem
Many thanks in advance
worfor
Title: Re: Ad Management mod
Post by: Bigguy on October 18, 2008, 01:57:10 PM
Your more than welcome to post a link to your site. It would better help us help you. :)
Title: Re: Ad Management mod
Post by: Worfor on October 18, 2008, 01:59:51 PM
Thank you
http://www.theworcesterforum.com
Title: Re: Ad Management mod
Post by: glennk on October 18, 2008, 04:01:31 PM
Anyone new on my post ?
Title: Re: Ad Management mod
Post by: anrapa2 on October 20, 2008, 01:26:42 AM
Hello!
I tried to install it in two ways:
1) downloading the zip directly
2) uploading the exploded files to the Packages dir

When I try to install it says something about "parse"...
I will now try using the SMF Package Parser, "call you later"...
Title: Re: Ad Management mod
Post by: Bigguy on October 20, 2008, 10:52:08 AM
@ Worfor: I did not see any ads on your site at all using FF.

@ anrapa2: Use the package manager in the admin panel to install it.
Title: Re: Ad Management mod
Post by: cafenubia on October 20, 2008, 11:05:45 AM
Quote from: cafenubia on October 15, 2008, 09:00:15 AM
Quote from: Bigguy on October 14, 2008, 09:31:21 PM
Ok well; not sure why you posted all those files. All I wanted was the index.template.php file that you have done the ad mod edits to. :)


Ooops i misread your post........ :D
Here is the edited file ,i know the </td> is off but i had no idea where it was...


Not to be a pest,but after i posted this i hadnt heard anything back so ,im reposting it.
Title: Re: Ad Management mod
Post by: Bigguy on October 20, 2008, 01:36:14 PM
Have you done edits to the index.template.php file at all. If you have can you upload that file with the edits in it you did. ???
Title: Re: Ad Management mod
Post by: cafenubia on October 20, 2008, 02:29:54 PM
Quote from: Bigguy on October 20, 2008, 01:36:14 PM
Have you done edits to the index.template.php file at all. If you have can you upload that file with the edits in it you did. ???

Here it is...................actually the only edits im having trouble with is the one that goes after the <body> and the one that goes before </td> the other ones i have on my sites template now and they work,i have ads in my right left tower and after posts.But the two i missed would be helpful.

here is the edited file attached
Title: Re: Ad Management mod
Post by: Bigguy on October 20, 2008, 02:41:40 PM
You have multiple errors in this file and not all of them are from the ad mod. I have attempted to fix all of them but when I get one done another pops up.
Title: Re: Ad Management mod
Post by: cafenubia on October 20, 2008, 02:46:58 PM
Quote from: Bigguy on October 20, 2008, 02:41:40 PM
You have multiple errors in this file and not all of them are from the ad mod. I have attempted to fix all of them but when I get one done another pops up.


:-[ ......... Errors ? Is is because of my alignment of the code edits,im about 2weeks experienced into this mod thing.Ive added several mods that have worked perfect so i thought the template was correct,but i didnt know it was screwed up.

Is there a option in my smf forum admin for me to view the errors?
Title: Re: Ad Management mod
Post by: Bigguy on October 20, 2008, 02:49:46 PM
What editor are you using to do these edits. ??? Please don't tell me notepad. ??? If this is what you are using please get an editor that specifically edits php files. The one I use can be found by googling Php Designer. Having the right editor is half the battle. ;)
Title: Re: Ad Management mod
Post by: cafenubia on October 20, 2008, 03:03:57 PM
Quote from: Bigguy on October 20, 2008, 02:49:46 PM
What editor are you using to do these edits. ??? Please don't tell me notepad. ??? If this is what you are using please get an editor that specifically edits php files. The one I use can be found by googling Php Designer. Having the right editor is half the battle. ;)

lol..............yes notepad is all i know............

i just downloaded this version PHP Designer 2007 - Personal 5.0.2 is it good?
i saw a 2008 on another site but it wasnt free.

Thanks for the heads up!
Title: Re: Ad Management mod
Post by: Bigguy on October 20, 2008, 03:32:58 PM
I love it. This program can integrate itself with php and mysql if you have it installed on your computer....then you can debug all your edits and see if they have errors before you use them. To get php and mysql installed I download the progam xampp. its server software that you can install on your computer. After that you go into the options of php designer and put the correct paths in for the php.ini file and the php.exe file and you have successfully integrated all the php files into php designer. Now you can debug and do your edits. :) Hope you understood all that.
Title: Re: Ad Management mod
Post by: cafenubia on October 20, 2008, 04:01:34 PM
Quote from: Bigguy on October 20, 2008, 03:32:58 PM
I love it. This program can integrate itself with php and mysql if you have it installed on your computer....then you can debug all your edits and see if they have errors before you use them. To get php and mysql installed I download the progam xampp. its server software that you can install on your computer. After that you go into the options of php designer and put the correct paths in for the php.ini file and the php.exe file and you have successfully integrated all the php files into php designer. Now you can debug and do your edits. :) Hope you understood all that.

Hmmmmmmmm not quite understanding all that  ???  :D but ive downloaded xampp and  im going to read as much as i can to learn how to find the errors.
Title: Re: Ad Management mod
Post by: Worfor on October 20, 2008, 05:04:53 PM
Quote from: Bigguy on October 20, 2008, 10:52:08 AM
@ Worfor: I did not see any ads on your site at all using FF.

Really I use FF at work and they show there but as usual only on the main pages what do you think could be the problem

worfor
Title: Re: Ad Management mod
Post by: Bigguy on October 20, 2008, 05:33:43 PM
Have you set permissions for each membergroup. ???
Title: Re: Ad Management mod
Post by: Bigguy on October 20, 2008, 05:36:48 PM
The php.ini file and the php.exe file are in the php folder of xampp. If you go into Php Designer to the options of that program you can add the ability to Php Designer to be able to use the php files that were downloaded with xampp to debug your edits that you do. That might be a bit clearer.....maybe, lol. :)
Title: Re: Ad Management mod
Post by: Worfor on October 20, 2008, 05:54:47 PM
I am pretty sure that I have
Title: Re: Ad Management mod
Post by: Bigguy on October 20, 2008, 06:50:46 PM
Do you have any errors in your logs. ???
Title: Re: Ad Management mod
Post by: Worfor on October 20, 2008, 07:10:53 PM
not at the moment
Title: Re: Ad Management mod
Post by: Bigguy on October 20, 2008, 09:03:58 PM
Is that a modified copy of the default theme you are using. ???
Title: Re: Ad Management mod
Post by: okae on October 21, 2008, 09:45:16 AM
hi all, i have a little problem with this mod and 159 pages is too much to read...

with Firefox in smf 2.0b4 i have this:
(http://www.universal-chat.org/smf/Themes/default/images/firefox.jpg)


and with IE a have it:

(http://www.universal-chat.org/smf/Themes/default/images/ie.jpg)

as you can see with the same configuration in smf forum i have two differents "welcome users area" for IE and Firefox, how can i solve it? how can i configure it to show as IE but without the blank space down ads?

pd: sorry for my bad english, i hope you understand me.
Title: Re: Ad Management mod
Post by: cafenubia on October 22, 2008, 04:18:10 PM
Quote from: Bigguy on October 20, 2008, 05:36:48 PM
The php.ini file and the php.exe file are in the php folder of xampp. If you go into Php Designer to the options of that program you can add the ability to Php Designer to be able to use the php files that were downloaded with xampp to debug your edits that you do. That might be a bit clearer.....maybe, lol. :)

Ive gave it a try but i cant get it going...........
If its alright i want to ask a few questions

When i open php designer where are the options to use php files from xampp is it in tools where you click preferences and then debug and preview and you get two upload boxes that say

debug                                                settings
C:\xampp\php\php.exe                      C:\xampp\php\php.ini
php interpreter                                  use php.ini


I clicked apply there and went to my php file that was open and clicked debug but it only showed one error,i think i missed something because you said i had several errors.

Am i doin something wrong
Title: Re: Ad Management mod
Post by: Worfor on October 22, 2008, 04:32:50 PM
Quote from: Bigguy on October 20, 2008, 09:03:58 PM
Is that a modified copy of the default theme you are using. ???
Well I have changed the color scheme, replaced the logo.gif and replaced a few of the images that form the menu bar, but apart from that nothing has changed I dont think
Title: Re: Ad Management mod
Post by: Bigguy on October 23, 2008, 07:53:59 AM
When you open up Php Designer you want to go to "Tools" then to "Preferences" then go to Debugger. There you should find two lines. This is were you want to put in the paths to xampp.....unless it is already filed in with paths pointing somewhere then you don't have to.
Title: Re: Ad Management mod
Post by: Dominic2066 on October 23, 2008, 10:59:17 AM
Hi,

How do I get multiple ads (more than one at the same time) to appear down either side?

Thanks.

Dom
Title: Re: Ad Management mod
Post by: Bigguy on October 23, 2008, 11:57:24 AM
Just place two ads in the same place in the admin cp and they will rotate on every page refresh. :)
Title: Re: Ad Management mod
Post by: Dominic2066 on October 23, 2008, 12:12:38 PM
I don't see how that can work.

AS you can see from the following URL - http://tfmd.org/forum/index.php (though you'll need to register!) - it will display all three ads I have added at the same time, but they are now effectively one ad meaning I cannot control them independently.

However, I do have an idea I'll try out which is to create zones using OpenX, then add those to the Ad Management mod.

OpenX will then control which ads are displayed in each zone and that'll allow the ads to act independently... I think. :)

Dom
Title: Re: Ad Management mod
Post by: okae on October 23, 2008, 04:33:54 PM
what about my problem?
Title: Re: Ad Management mod
Post by: Bigguy on October 23, 2008, 10:55:10 PM
@ Dominic2066: Post back and tell us how it worked out for you. :)

@ okae: I don't see you being able to do anything about this as it's most likely a bug in either IE or FF.
Title: Re: Ad Management mod
Post by: baijianpeng on October 25, 2008, 12:28:46 PM
Edit : I solved this problem. I forgot to set the permissions. lol    ;D


Sorry if someone had asked the same question, it is too long to read all this thread.

I installed the v2.3 of this Mod on my SMF 1.1.6 forum with a custom template. I had done some manual work to make it work.

Then I added a new ad, set it to display under the first post of each topic page.  Since I want it show on each topic page, so I leave the field of Boards empty.

Next, I went to the frontend and see that ad on each topic page. Seems great!

But, other people told me they can't see any ad there while I still can see it.

Then I checked, I can see the ads when I was logged in. If I log out, I can't see the ads either.

I am the Admin user.

I don't know what happened?  Does that mean I did not install this Mod properly?

Could you please give me some help ?

This is a great Mod to placing ads on forum pages. Thanks to the author!
Title: Re: Ad Management mod
Post by: gregd on October 26, 2008, 03:13:47 PM
I installed this mod and all I can get to show up is an ad after the first post in a thread.  If I set them to show up anywhere else I don't get any ads.  Also if try to add another ad in the same place only one of them will show up.
Title: Re: Ad Management mod
Post by: Bigguy on October 27, 2008, 07:43:08 AM
If your using a custom theme then manual edits are required. Please read a couple pages back and you should get the idea of what needs to happen.
Title: Re: Ad Management mod
Post by: ccbtimewiz on October 27, 2008, 08:50:20 AM
For custom themes, try following my guide here:

http://www.smfhelper.info/forum/index.php/topic,3567.0.html
Title: Re: Ad Management mod
Post by: Lord-Flame13 on October 29, 2008, 07:10:07 AM
Hey. I've made sure all the permissions are set, and i have installed the mod, no errors, but the link in the config. menu does not appear, there is just a blank space where it should be as if the link is missing, but the line was created.

Any help?
Title: Re: Ad Management mod
Post by: Baross on October 30, 2008, 03:23:36 AM
Your forum default language is not English. Set it to english and the link will show. After you make the desired modifications, set it back to your native language...i hope I am not wrong.
Title: Re: Ad Management mod
Post by: taysan on October 31, 2008, 11:29:10 AM
Took me a couple of days, and I don't know if this has been covered, but I feel very very dumb to have missed on critical step when installing this.

I'm using a custom theme, and did the required mods to the PHP files.  No problem, except I as the Admin was the ONLY person able to see any ads.

What I missed was the checkbox in the User Permissions settings to Enable Ads.  I didn't know about this function, and the default setting is apparantly OFF...

Maybe I didn't read the install notes carefully enough ;)  Too easy to install these mods!

Great mod - now maybe more people will see / click my ads :)
Title: Re: Ad Management mod
Post by: convoyninjas on October 31, 2008, 01:29:37 PM
I have downloaded it and uploaded the mod to my server, but when I try to run the install.php I get this error message:
Fatal error: Function name must be a string in /home/kingcon/public_html/install.php on line 8

Can anyone help me?
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on October 31, 2008, 01:37:47 PM
You install mods through the Package Manager.
Title: Re: Ad Management mod
Post by: convoyninjas on October 31, 2008, 01:53:26 PM
Damn i'm an idiot. Thank you.
Title: Re: Ad Management mod
Post by: rnorth6920 on October 31, 2008, 03:30:31 PM
When I install the latest version of this mod onto the beta4 release, I get a funky look in the user welcome area.  I do not have any ads in that area and it goes away when the mod is uninstalled.  I believe its just a coding error such as table error.   Has anyone else had this issue.  I'll post a screen shot soon.
Title: Re: Ad Management mod
Post by: Pspuser007 on November 01, 2008, 08:17:03 AM
Hello!

I have smf 1.1.6 and using the Yeni Bir Theme...
I have to do the edits at the index.template.php file myself.
There is one problem though.
I cannot find this : template_menu();
What can i do??
I have attached my index.template.php file with some edits done already for this mod.

Thank you for your time!
Title: Re: Ad Management mod
Post by: okae on November 01, 2008, 08:26:11 AM
Quote from: rnorth6920 on October 31, 2008, 03:30:31 PM
When I install the latest version of this mod onto the beta4 release, I get a funky look in the user welcome area.  I do not have any ads in that area and it goes away when the mod is uninstalled.  I believe its just a coding error such as table error.   Has anyone else had this issue.  I'll post a screen shot soon.

i have the same issue, and dont know how to solve it :(
Title: Re: Ad Management mod
Post by: Bigguy on November 02, 2008, 12:02:37 PM
@ rnorth6920, okae: This does look like a coding error and should be brought to the attention of the mod author.

@ Pspuser007: Look for variations of that. Like "template_menu" instead of "template_menu();"
Title: Re: Ad Management mod
Post by: krom_stormbrow on November 05, 2008, 10:03:13 AM
Hi guys

Couple of questions regarding the advert management mod for v2b4.

1) Can it handle a javascript code within a html code? see code I'm trying to use:
<a href="javascript:void(0)" mce_href="javascript:void(0)" onclick="window.open('http://www.pupuplatters.com/pupuplayer/pro/pupuplayer_pro.php?id=384′, 'linkname', 'height=235, width=450, scrollbars=no')"> <img src="http://www.40kradio.com/wp-content/uploads/2008/10/listennowbutton.gif" mce_src="http://www.40kradio.com/wp-content/uploads/2008/10/listennowbutton.gif" alt="40K Radio Player" border="0"></a>

2) Is there a way I can display 2 different adverts at the bottom of the page side by side.

On this second 1 I have tried aligning the divs left and right. but all they do is alternate between the adverts. Ideally I would like them both permanently positioned.

web link: www.minus1mod.com/smf/index.php

Thanks

Piers
Title: Re: Ad Management mod
Post by: MultiformeIngegno on November 05, 2008, 11:58:33 AM
Quote from: Bigguy on November 02, 2008, 12:02:37 PM
@ Pspuser007: Look for variations of that. Like "template_menu" instead of "template_menu();"
What do you mean?
Title: Re: Ad Management mod
Post by: ccbtimewiz on November 05, 2008, 12:37:09 PM
Quote from: lorenzone92 on November 05, 2008, 11:58:33 AM
Quote from: Bigguy on November 02, 2008, 12:02:37 PM
@ Pspuser007: Look for variations of that. Like "template_menu" instead of "template_menu();"
What do you mean?

He means to look for the defined function that parses out the menu. Usually it is defined as template_menu(), however some custom themes use a different variant in terms of words.
Title: Re: Ad Management mod
Post by: limsteven25 on November 05, 2008, 01:07:48 PM
i had installed the mod, what is the next step to do?
Title: Re: Ad Management mod
Post by: ccbtimewiz on November 05, 2008, 04:22:16 PM
Quote from: limsteven25 on November 05, 2008, 01:07:48 PM
i had installed the mod, what is the next step to do?

Admin > Ad Management
Title: Re: Ad Management mod
Post by: limsteven25 on November 06, 2008, 07:51:29 AM
hi sorry i can't find the ads management at the admin sector, pls enlight
Title: Re: Ad Management mod
Post by: sombra on November 06, 2008, 08:22:13 AM
well im having a problem im getting a blank space on every post dont know why i was sent here

in triying to uninstall this mod but i cant im geting error mesage

Uninstall Actions "Ad Managment":
Installing this package will perform the following actions:
      Type    Action    Description
*    1.    Execute Modification    ./index.php    Test failed
      1.    Replace    ./index.php    Test successful
      2.    Replace    ./index.php    Test failed
      3.    Replace    ./index.php    Test successful
*    2.    Execute Modification    ./Sources/Admin.php    Test failed
      1.    Replace    ./Sources/Admin.php    Test failed
      2.    Replace    ./Sources/Admin.php    Test successful
*    3.    Execute Modification    ./Themes/default/index.template.php    Test successful
      1.    Replace    ./Themes/default/index.template.php    Test successful
      2.    Replace    ./Themes/default/index.template.php    Test successful
      3.    Replace    ./Themes/default/index.template.php    Test successful
      4.    Replace    ./Themes/default/index.template.php    Test successful
      5.    Replace    ./Themes/default/index.template.php    Test successful
*    4.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
      1.    Replace    ./Themes/default/BoardIndex.template.php    Test successful
      2.    Replace    ./Themes/default/BoardIndex.template.php    Test successful
*    5.    Execute Modification    ./Themes/default/Display.template.php    Test failed
      1.    Replace    ./Themes/default/Display.template.php    Test failed
      2.    Replace    ./Themes/default/Display.template.php    Test successful
      3.    Replace    ./Themes/default/Display.template.php    Test successful
*    6.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
      1.    Replace    ./Themes/default/MessageIndex.template.php    Test successful
      2.    Replace    ./Themes/default/MessageIndex.template.php    Test successful
*    7.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
      1.    Replace    ./Sources/ManagePermissions.php    Test successful
   8.    Delete File    ./Sources/Ads.php   
   9.    Delete File    ./Sources/LoadAds.php   
   10.    Delete File    ./Themes/default/Ads.template.php   
   11.    Delete File    ./Themes/default/languages/Ads.english.php   
   12.    Delete File    ./Themes/default/languages/Ads.english-utf8.php   


what can i do to fix this



Title: Re: Ad Management mod
Post by: sombra on November 06, 2008, 01:22:19 PM
can somone help me here  :D
Title: Re: Ad Management mod
Post by: WL101 on November 06, 2008, 01:54:50 PM
I have the ad management mod installed and it works great. I am trying to use Google Adsense ads but they are not irrelevant to any topic in the forum. Can someone please help me with setting up Adsense in a SMF forum.

Thanks!

-Chad
Title: Re: Ad Management mod
Post by: adedayovad on November 06, 2008, 05:06:34 PM
Need help. i install the Ad Management mod and it successfully installed it but I cannot find a link on to top bar of the features and option to modify it.

Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 06, 2008, 05:09:32 PM
Go into your Admin panel.

Should be a link on the left saying: Ad Management.
Title: Re: Ad Management mod
Post by: adedayovad on November 06, 2008, 05:17:30 PM
no there is no link with Ad Management i can show you a screen shoot of it
Title: Re: Ad Management mod
Post by: adedayovad on November 06, 2008, 05:20:52 PM
i uninstall it and reinstall three times and it does not same to help
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 06, 2008, 06:38:49 PM
Are you using a custom theme?
If so, Ad Management installs to the Default Theme.
Title: Re: Ad Management mod
Post by: adedayovad on November 06, 2008, 11:45:39 PM
am using the the Default theme
here is a link to my forum
http://www.forum.aderadio.com/
Title: Re: Ad Management mod
Post by: kirbyiwaki on November 07, 2008, 02:52:38 AM
Installed it, and put an adsesnse ad... but for some reason it *only* shows to admins... (obviously not what I wanted...)

Visitors and normal registered users won't see it... why is tha~t?

thanks in advance ^^"
Title: Re: Ad Management mod
Post by: nozombies on November 07, 2008, 05:43:54 AM
Can anyone help me to get this to display ads properly (it installed just fine) with the "Propaganda" Theme?

I installed the mod, and have added an ad, but it doesn't appear anywhere.
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 07, 2008, 07:29:15 AM
Quote from: kirbyiwaki on November 07, 2008, 02:52:38 AM
Installed it, and put an adsesnse ad... but for some reason it *only* shows to admins... (obviously not what I wanted...)

Visitors and normal registered users won't see it... why is tha~t?

thanks in advance ^^"

Go into Admin > Permissions - then set the permissions for each user group to see the ads.




Quote from: nozombies on November 07, 2008, 05:43:54 AM
Can anyone help me to get this to display ads properly (it installed just fine) with the "Propaganda" Theme?

I installed the mod, and have added an ad, but it doesn't appear anywhere.

This mod installs onto the default theme. You have to manually install it onto the Propaganda theme.
Title: Re: Ad Management mod
Post by: adedayovad on November 07, 2008, 02:49:57 PM
i uninstall the Ad Management and reinstall it this is the error message i find in the forum error log

                Unable to load the 'Ads.english-utf8' language file.
and

8: Undefined index: ad_management
File: /home/hello28/public_html/forum/Sources/Subs.php
Line: 2948

help please
Title: Re: Ad Management mod
Post by: adedayovad on November 07, 2008, 02:56:41 PM
i have get it to work and once again thank for your help
here is what i do
First and foremost, go into your admin panel. Go under "Server Settings", and check your main forum language. Make sure it's set to english. Not utf8-english.
and that fix it
Title: Re: Ad Management mod
Post by: MultiformeIngegno on November 07, 2008, 05:57:39 PM
Quote from: ccbtimewiz on November 05, 2008, 12:37:09 PM
Quote from: lorenzone92 on November 05, 2008, 11:58:33 AM
Quote from: Bigguy on November 02, 2008, 12:02:37 PM
@ Pspuser007: Look for variations of that. Like "template_menu" instead of "template_menu();"
What do you mean?

He means to look for the defined function that parses out the menu. Usually it is defined as template_menu(), however some custom themes use a different variant in terms of words.
It happens with the default theme in 2.0b4!!
Title: Re: Ad Management mod
Post by: kirbyiwaki on November 07, 2008, 07:31:32 PM
Thank you, problem solved n.n!
Title: Re: Ad Management mod
Post by: nozombies on November 07, 2008, 09:38:03 PM
Quote from: BurkeKnight on November 07, 2008, 07:29:15 AM


This mod installs onto the default theme. You have to manually install it onto the Propaganda theme.

Thanks! I think I'll have to take some time to figure this out. Any idea if in the future there might be an option to install it to a theme of your choosing?
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 07, 2008, 09:44:15 PM
Quote from: nozombies on November 07, 2008, 09:38:03 PM
Thanks! I think I'll have to take some time to figure this out. Any idea if in the future there might be an option to install it to a theme of your choosing?

That would actually not be possible, or the package would be so big, it would be hard to install.

Most themes have so many differences, it would take about a year to code a mod to every theme. Then when done, the mod would be so big, it may not work right.

Think of how a mod installs in the package manager. The list of files and whether the mod can or can't modify the files would be so long, the scrollbar would be a very small bar, indeed. Also, for people that would have to manually install, because of other mods, the install file would be way too long for them to be able to find what they need easily.
Title: Re: Ad Management mod
Post by: gameradvance on November 08, 2008, 12:05:19 AM
The ads are working fine for me, but I'm the only one who can view them!

How do I make it so that all guests AND all my members can see the ads?
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 08, 2008, 12:08:29 AM
Quote from: gameradvance on November 08, 2008, 12:05:19 AM
The ads are working fine for me, but I'm the only one who can view them!

How do I make it so that all guests AND all my members can see the ads?

Go into Admin > Permissions - then set the permissions for each user group to see the ads.
Title: Re: Ad Management mod
Post by: gameradvance on November 08, 2008, 12:15:06 AM
Thanks it worked!
Title: Re: Ad Management mod
Post by: mrbolsonator on November 08, 2008, 02:23:07 AM
I have a custum theme, Blues Mega Color, and I have tried using the ad management mod but it doesnt display. I have tried altering the script to work with my site but with my limiting scripting knowledge I cannot successfully do so.

www.fuelcrazyamerica.com

any advise or help would be greatly appreciated, thank you.
Title: Re: Ad Management mod
Post by: krom_stormbrow on November 08, 2008, 07:48:48 AM
Hi guys

Couple of questions regarding the advert management mod for v2b4.

1) Can it handle a javascript code within a html code? see code I'm trying to use:
<a href="javascript:void(0)" mce_href="javascript:void(0)" onclick="window.open('http://www.pupuplatters.com/pupuplayer/pro/pupuplayer_pro.php?id=384′, 'linkname', 'height=235, width=450, scrollbars=no')"> <img src="http://www.40kradio.com/wp-content/uploads/2008/10/listennowbutton.gif" mce_src="http://www.40kradio.com/wp-content/uploads/2008/10/listennowbutton.gif" alt="40K Radio Player" border="0"></a>

2) Is there a way I can display 2 different adverts at the bottom of the page side by side.

On this second 1 I have tried aligning the divs left and right. but all they do is alternate between the adverts. Ideally I would like them both permanently positioned.

web link: www.minus1mod.com/smf/index.php

Thanks

Piers
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 08, 2008, 08:30:20 AM
What I do, is make up my ad somewhere, using a table.
In the table, put one ad in left side, one in right side.
Then place it into the ad management for the location you want.
Title: Re: Ad Management mod
Post by: jankariwo on November 08, 2008, 04:57:19 PM
Has this happened to anyone else . I see that my google adsense ads placed in this module ONLY appear .in Firefox . They are ignored by any other browser . Please look at examples at www.yorubaland.org  and www.kampuskommunity.com
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 08, 2008, 05:28:03 PM
Quote from: jankariwo on November 08, 2008, 04:57:19 PM
Has this happened to anyone else . I see that my google adsense ads placed in this module ONLY appear .in Firefox . They are ignored by any other browser . Please look at examples at www.yorubaland.org  and www.kampuskommunity.com

I tested with FireFox 3 and Internet Explorer 8.

The Google ads show for me at the bottom on both.
Title: Re: Ad Management mod
Post by: NNR on November 12, 2008, 11:22:48 AM
Quote from: krom_stormbrow on November 08, 2008, 07:48:48 AM
Hi guys

Couple of questions regarding the advert management mod for v2b4.

1) Can it handle a javascript code within a html code? see code I'm trying to use:
<a href="javascript:void(0)" mce_href="javascript:void(0)" onclick="window.open('http://www.pupuplatters.com/pupuplayer/pro/pupuplayer_pro.php?id=384′, 'linkname', 'height=235, width=450, scrollbars=no')"> <img src="http://www.40kradio.com/wp-content/uploads/2008/10/listennowbutton.gif" mce_src="http://www.40kradio.com/wp-content/uploads/2008/10/listennowbutton.gif" alt="40K Radio Player" border="0"></a>

2) Is there a way I can display 2 different adverts at the bottom of the page side by side.

On this second 1 I have tried aligning the divs left and right. but all they do is alternate between the adverts. Ideally I would like them both permanently positioned.

web link: www.minus1mod.com/smf/index.php

Thanks

Piers

I wonder whether you have been able to sort out the above issue.  I have managed to post two adverts one after other.  All that I did was to paste the html codes in the same content box by separating them by a bit of space(say two or three line space) .

web link: www.indiaconsumerforum.org
Title: Re: Ad Management mod
Post by: jfhsas on November 12, 2008, 12:06:15 PM
Following this board for some time and trying all tips its still not working for me.
Solved it in a different way. Made a link page with ads in html. Users can choose to see links (and ads) or not. Forum is clean without ads!

http://www.opelcorsa-forum.nl

Jan
Title: Re: Ad Management mod
Post by: searchgr on November 12, 2008, 11:52:29 PM
I have installed the mod but the ads are not showing to all places/pages. I use the default them, so i wonder what is going wrong...Can anyone check my files or give advice?
Title: Re: Ad Management mod
Post by: NNR on November 13, 2008, 12:01:16 AM
Quote from: searchgr on November 12, 2008, 11:52:29 PM
I have installed the mod but the ads are not showing to all places/pages. I use the default them, so i wonder what is going wrong...Can anyone check my files or give advice?

Go to members menu and modify the permissions by enabling ads.
Title: Re: Ad Management mod
Post by: Simone's Expressions on November 13, 2008, 02:50:42 AM
Would really appreciate if we could have this updated for a 1.1.7 install  :) Thanks
Title: Re: Ad Management mod
Post by: Bigguy on November 13, 2008, 10:43:19 PM
Open up the package-info.xml in the zip of the ad mod and look for 1.1.6, change it to or add 1.1.7 and repack the mod. See if it installs. It should with no problems.
Title: Re: Ad Management mod
Post by: RoH on November 14, 2008, 08:04:34 AM
Quote from: Bigguy on November 13, 2008, 10:43:19 PM
Open up the package-info.xml in the zip of the ad mod and look for 1.1.6, change it to or add 1.1.7 and repack the mod. See if it installs. It should with no problems.

has anyone tested this to success?
Title: Re: Ad Management mod
Post by: Bigguy on November 14, 2008, 12:07:16 PM
Try it on a test site if you like but it should work fine. If you see any errors when trying to install just don't install. :)
Title: Re: Ad Management mod
Post by: farrukh004 on November 14, 2008, 02:45:33 PM
I have installed this mod. Now I have added a simple banner to it but it is not showing at all. I have tried to add ads from bidvertiser, not showing.

I have SMF v1.1.7. My theme is DilberMC.

Thanks in advance.
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 14, 2008, 05:09:49 PM
You have to manually install the mod into custom themes.
Title: Re: Ad Management mod
Post by: farrukh004 on November 14, 2008, 05:21:48 PM
Quote from: BurkeKnight on November 14, 2008, 05:09:49 PM
You have to manually install the mod into custom themes.

And how exactly do u do this?
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 14, 2008, 05:26:42 PM
This link should help. :)

Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: Ad Management mod
Post by: Simone's Expressions on November 14, 2008, 06:19:48 PM
 :) Got mine up & running.
Now for the fun part
Title: Re: Ad Management mod
Post by: hopeitworks on November 14, 2008, 09:02:22 PM
I am very new to this, but am pretty sure that I installed the mod correctly (ad_mod_1-1-x_v2-3.zip ) however it did not show up under the heading "Configuration". Any idea what went wrong? I downloaded then uploaded the mod, then ran the install. However it does not show up.
Title: Re: Ad Management mod
Post by: piju2111 on November 16, 2008, 04:12:21 AM
i got the solution to work ad in v1.7
http://www.acquirepc.com/forum/index.php/topic,25.0.html
Title: Re: Ad Management mod
Post by: funcouldron on November 17, 2008, 01:23:13 PM
i have successfuly installed it and admangement tab is coming,,also i added tab correctly .i didnt got any error but my adds are not coming...y???
Title: Re: Ad Management mod
Post by: Don Pepito on November 18, 2008, 09:36:40 AM
Is it possible to put banner in Login page....?? And how....??
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 18, 2008, 09:41:36 AM
Quote from: Don Pepito on November 18, 2008, 09:36:40 AM
Is it possible to put banner in Login page....?? And how....??


If you have ads set for all pages it should also show on login page.
Title: Re: Ad Management mod
Post by: Don Pepito on November 18, 2008, 09:47:56 AM
But is it possigle to put it only in login page...??
Title: Re: Ad Management mod
Post by: chackett on November 18, 2008, 03:54:15 PM
Hia All,

I have been searching the threads here and at smfads.com looking for some detailed instructions or guidance on how to get this working with 1.1.7.  Is that possible?

It looks like 1.1.7 is the current version of SMF, but I can't find any version of AdManagement that is compatible?

Should I install a different version of SMF?  Are there instructions on how to manually modify the default template or manually install this mod?  I looked at some of the file edits but quickly got kinda lost when it told me to look for code I wasn't able to locate.

Would sure be grateful for some guidance!

Thanks,
Chris
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 18, 2008, 04:02:52 PM
As far as I know, it is compatible. Not too many changes from 1.1.6 to 1.1.7.

I am running two 1.1.7 forums, that had this mod installed after they were upgraded to 1.1.7, and it works fine. :)
Title: Re: Ad Management mod
Post by: chackett on November 18, 2008, 04:21:36 PM
Huh.  That's interesting.  I can't seem to get it to work.

There was a thread somewhere that suggested just modifying the .xml file in the package and installing it that way.  I tried that and it said it installed successfully, but I can't get it to work.

If I am using the default theme from my 1.1.7 install, do I need to manually edit anything?
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 18, 2008, 04:26:44 PM
What language is set in your settings? It needs to be English, not English-UTF8.
Title: Re: Ad Management mod
Post by: chackett on November 18, 2008, 04:44:57 PM
Hmm .. I'm not sure.  I haven't been able to locate that option.  I guess I'm using whatever language is installed by default with the 1.1.7 installer.  I'll see if I can figure it out ..
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 18, 2008, 04:50:33 PM
Admin > Server Settings
Default Forum Language
Title: Re: Ad Management mod
Post by: chackett on November 18, 2008, 04:54:18 PM
Thanks BurkeKnight .. I really appreciate you taking some time to help me.

I checked, and the language (and only option) is "English"

I would be willing to let you log in and take a look around if you wanted to.  Maybe it would be faster?

I'm usually pretty good with this kind of stuff, but for some reason this has me confused! :)

Thanks,
Chris
Title: Re: Ad Management mod
Post by: XRacer101 on November 18, 2008, 07:07:13 PM
I'm using SMF 2.0 Beta 4, and the Ad Management mod installed successfully, but then, the ads aren't showing up, not even the default theme! I'm using Google Adsense and I also have PortaMX installed. And the language I use is English. I set the ad to show on left side and right side on every page. So can any of you please help me?
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 18, 2008, 07:19:05 PM
Have you set the permissions for people to see the ads yet?

Admin > Permissions
Set for each group.

Also, please people, note that Google does take time to display ads on new sites. This is not related to SMF or the Ad mod. It is because Google has to crawl the sites in order to determine what ads to display. This can take up to 48 hours to fully show in all places the ads are set for.
Title: Re: Ad Management mod
Post by: XRacer101 on November 18, 2008, 07:50:40 PM
Quote from: BurkeKnight on November 18, 2008, 07:19:05 PM
Have you set the permissions for people to see the ads yet?

Admin > Permissions
Set for each group.

Also, please people, note that Google does take time to display ads on new sites. This is not related to SMF or the Ad mod. It is because Google has to crawl the sites in order to determine what ads to display. This can take up to 48 hours to fully show in all places the ads are set for.

Ok, thanks for letting me know that.
Title: Re: Ad Management mod
Post by: Baross on November 19, 2008, 06:59:14 AM
Hi
I have a problem with my ad management mode. I uninstalled it and reinstalled it because was not working...now it works but for every ad that I create it makes three similar ads  :D. So the mod displaies the same banner three times in the same place...The version of the forum is 1.1.7 and the mod version is ad_mod_1-1-x_v2-3. Please help me.

Would you please answer?
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 19, 2008, 08:07:52 AM
When you uninstalled, it seems to have not fully uninstalled.
You have the same code 3 times on the page.
You will have to manually remove the extra 2 that are there on whichever pages.

Most likely:

index.template.php
Message.template.php
BoardIndex.template.php

That's the problem with installing and uninstalling so many times.
Did it give any errors on installs or uninstalls?
Title: Re: Ad Management mod
Post by: Baross on November 19, 2008, 08:11:08 AM
No errors..
So I have to manualy remove 2 of the codes...but I will have to do that for every ad I create? Is no way to fully uninstall the mod so I can use it proprely then?
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 19, 2008, 08:16:21 AM
Whichever ones are duplicate in the files.

Say that the ads are duplicated in the Welcome area.
You would have to edit index.template.php and remove the code for the welcome area's ad insertion. It would be there 2-3 times, and should only be there one time.
Title: Re: Ad Management mod
Post by: The Saviour on November 19, 2008, 08:24:06 AM
I currently have this mod installed on my 1.1.7 board...

Installation went with only one hitch...Test Failed for ManagePermissions.php, but I manually edited and everything seems fine.

I have this mod configured to show ads at the top and bottom of all pages, but it only shows on certain pages...not ALL pages of the forum as the mod claims.

Anyone know what the issue could be, off the top of their head?


Thanks, in advance...
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 19, 2008, 08:28:02 AM
What pages do the ads not show on?
Title: Re: Ad Management mod
Post by: Baross on November 19, 2008, 08:35:48 AM
Thanks but this is not a reliable solution...I looked for the code by the way in index.template.php and the code is not there...the other two (Message.template.php and BoardIndex.template.php) doesn`t exist for this theme. I had two banners between categories one that displaied after the first post in every topic and one that displaied after the last post...I can not seem to find any of them in index.template.php...thanks anyway. It looks like I`ll have to reinstall the forum in order to make this ad mode work.. ;)
After I make it work I think I`ll never update the forum again..every time I update something masses.
Thank you.
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 19, 2008, 08:41:09 AM
1. If your theme does not have the files, then they use the default theme's files.
2. If your theme's index.template.php does not have the codes the mod installed, that is also because the mod installs to the default theme.
3. Which ads are duplicating? You never answered that.

Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: Ad Management mod
Post by: The Saviour on November 19, 2008, 09:03:27 AM
Let's say someone visits the board homepage...fine...ads at top and bottom...no problem.

If they visit a particular forum...no ads.

Ads show on the arcade, though...

Link to forum:  Free Computer Help Forum (http://www.saviourpc.com/forums/index.php)

Thanks for replying BurkeKnight...
Title: Re: Ad Management mod
Post by: Baross on November 19, 2008, 09:10:21 AM
I managed somehow to make it work..if somebody has the same problem do the following:
1.Uninstall the Ad management once again
2.Replace the folowing files with default ones:
./index.php
./Sources/Subs.php
./Themes/default/index.template.php
./Themes/default/BoardIndex.template.php
./Themes/default/Display.template.php
./Themes/default/MessageIndex.template.php
./Sources/ManagePermissions.php
3.Reinstall the mode

It worked for me...
Thanks for the help...you gave me this ideea somehow..
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 19, 2008, 09:35:40 AM
The Savior:

Are you sure it is selected for the following?

Display ads on every page on the top of the page
Display ads on the bottom of the page

If so, then the install may not have edited some of the files.
Were there any errors during install?
Title: Re: Ad Management mod
Post by: The Saviour on November 19, 2008, 09:42:32 AM
Quote from: BurkeKnight on November 19, 2008, 09:35:40 AM
The Savior:

Are you sure it is selected for the following?

Display ads on every page on the top of the page
Display ads on the bottom of the page

If so, then the install may not have edited some of the files.
Were there any errors during install?

Those two boxes are selected...

Only issue was described in first post...and I manually edited that file.  I optimized the tables and repaired the database...just in case.

Some of the forums are starting to show the ads, but not every forum page shows ads like the mod claims....have you visited the site yet?


Thanks, again...
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 19, 2008, 09:45:09 AM
If they are Google ads only, then please do understand, Google takes time to crawl and set up ads for display on pages. This can take up to 48 hours in cases.

How long ago did you insert the ads?
Title: Re: Ad Management mod
Post by: The Saviour on November 19, 2008, 09:55:13 AM
Quote from: BurkeKnight on November 19, 2008, 09:45:09 AM
If they are Google ads only, then please do understand, Google takes time to crawl and set up ads for display on pages. This can take up to 48 hours in cases.

How long ago did you insert the ads?

Just yesterday...and like I said...they're starting to appear.  Maybe my worries aren't warranted, huh?

Thanks for taking the time to respond...

Now, if I can only get someone to help me with my robots.txt file I posted about today, as well.

BurkeKnight...in case nobody has told you...

"You da man!"

Thanks for replying and setting my mind at ease.  I thought it may have been something I did, but I try to be extremely careful when installing and editing these mods...I'm only human, though.
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 19, 2008, 09:57:49 AM
The Savior:

No problem.
By the way, I love your member rank images. :)
Title: Re: Ad Management mod
Post by: RoH on November 20, 2008, 03:51:58 PM
hi just installed this MOD on default CORE theme and i dont see it..

i read the instructions and it says

"It can be found in the Administration panel under the heading "Configuration". "

but i dont see this Ad Management ??

i have manually checked all the settings for 1.1.7 and they exist..

can you plz help

Thanks

~RoH
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 20, 2008, 04:08:21 PM
What language is your site using?

Needs to be English, not English-UTF8
Title: Re: Ad Management mod
Post by: The Saviour on November 20, 2008, 05:48:27 PM
Quote from: BurkeKnight on November 19, 2008, 09:57:49 AM
The Savior:

No problem.
By the way, I love your member rank images. :)

Thanks...would love to have ya stop by more frequently, my friend... ;D
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 20, 2008, 05:54:28 PM
What are you talking about?

I'm a member there... :P LOL
Title: Re: Ad Management mod
Post by: tk2012 on November 20, 2008, 11:08:30 PM
Quote from: rnorth6920 on October 31, 2008, 03:30:31 PM
When I install the latest version of this mod onto the beta4 release, I get a funky look in the user welcome area.  I do not have any ads in that area and it goes away when the mod is uninstalled.  I believe its just a coding error such as table error.   Has anyone else had this issue.  I'll post a screen shot soon.

I don't see where this was fixed, but I have the same problem.  If I overlooked the fix, could someone point me to it?  I attached a pic of it as well.  BTW- I only see this in Internet Explorer.  I'm using v2.0 b4.0 with default theme (with color changes)

Title: Re: Ad Management mod
Post by: RoH on November 21, 2008, 07:13:12 AM
Quote from: BurkeKnight on November 20, 2008, 04:08:21 PM
What language is your site using?

Needs to be English, not English-UTF8

Thanks a lot mate.. it worked.. :) i am so happy.. silly me.

but thanks to you..
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 21, 2008, 08:22:58 AM
Do not forget people, that the mod author also gives mod support at his own site:

Support for the Ad Management mod (http://www.smfads.com)
Title: Re: Ad Management mod
Post by: Boby_ on November 22, 2008, 06:18:43 AM
I tried to install the mod but it fails to make the changes to Display.template.php.
I tried to make them myself and I though I did. The Add Management is shown, but when I add an ad, activate it for all the possible places to be shown I can see nothing.
I suppose that I was not able to find correctly that
</td></tr>';
}[

in Display.tepmplate.php and that's why the mod is not working. Could someone help please?
You can take a look at a copy of my file:
Title: Re: Ad Management mod
Post by: Baloch on November 22, 2008, 06:48:27 AM
This mod is not working with smf 1.1.7 :(
Title: Re: Ad Management mod
Post by: Danny96 on November 22, 2008, 07:36:57 AM
Quote from: Baloch on November 22, 2008, 06:48:27 AM
This mod is not working with smf 1.1.7 :(

It works for me (1.1.7)

And it's excellent!!!
Title: Re: Ad Management mod
Post by: Baloch on November 22, 2008, 08:09:13 AM
Quote from: Danny96 on November 22, 2008, 07:36:57 AM
Quote from: Baloch on November 22, 2008, 06:48:27 AM
This mod is not working with smf 1.1.7 :(

It works for me (1.1.7)

And it's excellent!!!
Its showing AD banners but AD MANAGEMENT is not listed in ADMIN PANEL'S Configuration.
Title: Re: Ad Management mod
Post by: Boby_ on November 22, 2008, 10:18:48 AM
Quote from: Baloch link=topic=68632.msg1809853#msg1809853
Its showing AD banners but AD MANAGEMENT is not listed in ADMIN PANEL'S Configuration.
/quote]
For me it's vice versa in 1.1.7 AD Management is there but not the banners.
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 22, 2008, 10:28:19 AM
Boby,

What theme are you using?

Have you set the permissions for people to see the ads?
Title: Re: Ad Management mod
Post by: Boby_ on November 22, 2008, 11:01:22 AM
Quote from: BurkeKnight on November 22, 2008, 10:28:19 AM
Boby,

What theme are you using?

Have you set the permissions for people to see the ads?

Ohhhh, I changed the permissions and now it is OK for Global Mods. But why the Admin can't see the Ads at all?
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 22, 2008, 11:29:38 AM
Is the Hide ads for Admins selected in the Main Ad Management settings?
Title: Re: Ad Management mod
Post by: Boby_ on November 22, 2008, 12:14:13 PM
Quote from: BurkeKnight on November 22, 2008, 11:29:38 AM
Is the Hide ads for Admins selected in the Main Ad Management settings?

Ooops, Sorry! Its working!
Title: Re: Ad Management mod
Post by: Baloch on November 22, 2008, 12:27:16 PM
Quote from: Baloch on November 22, 2008, 08:09:13 AM
Quote from: Danny96 on November 22, 2008, 07:36:57 AM
Quote from: Baloch on November 22, 2008, 06:48:27 AM
This mod is not working with smf 1.1.7 :(

It works for me (1.1.7)

And it's excellent!!!
Its showing AD banners but AD MANAGEMENT is not listed in ADMIN PANEL'S Configuration.

I am waiting for the support :(
Title: Re: Ad Management mod
Post by: Boby_ on November 22, 2008, 12:57:44 PM
Quote from: Baloch link=topic=68632.msg1810180#msg1810180
I am waiting for the support :(
/quote]

I'm a newbie but let me try to help. Had the mod installed for all the files?
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 22, 2008, 01:05:57 PM
Baloch,

Admin > Server Settings

Set Language to English
Not English-UTF8
Title: Re: Ad Management mod
Post by: Baloch on November 22, 2008, 10:34:15 PM
Quote from: BurkeKnight on November 22, 2008, 01:05:57 PM
Baloch,

Admin > Server Settings

Set Language to English
Not English-UTF8

Thank you so much now problem is resolved :)
Title: Re: Ad Management mod
Post by: Bigguy on November 23, 2008, 12:23:50 AM
BurkeKnight, your doing a great job at helping out. It's much appreciated. ;)
Title: Re: Ad Management mod
Post by: Baloch on November 23, 2008, 02:44:08 AM
Now I have another query. I have added more then 5 ADs but only last ad is visible on board. Even positions are different.
I am using DILBER MC theme.
How  can I add Google Adsence at the bottom of menu bar?

Thanks in advance for your response.

Regards,

Raji Baloch
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 23, 2008, 07:35:49 AM
@ Bigguy,

Thanks, I try my best to help with things I know. But I always admit when I too am unsure of something. :P




@ Baloch,

You have to manually edit the DilberMC theme files.
I no longer run any 1.1.x forums with that theme, since I upgraded most sites to 2.0....LOL

Sorry, I can't help much on that one.

Title: Re: Ad Management mod
Post by: Dustieann on November 25, 2008, 03:07:55 PM
Hi,

Hope someone can help me.  I have tried to install the this mod, but for some reason it's not working for me.

I have the version    ad_mod_1-1-x_v2-3  installed, and as soon as I install this, my profile option goes bonkers.  Now not even my language pulldown option  works :(   If I uninstall all mods, my profile works again.

This is the error I am getting.....can anyone help me??

Database Error
Table 'usr_web277_4.cpg_pictures' doesn't exist
File: /home/www/web277/html/forum/Sources/Profile.php
Line: 1353 

thank you in advance

uppssssss ...... we have just found out that it clashes with the Coppermine Gallery software.  We have taken that off, and now the ad man. works :(  hmmmmmmm
Title: Re: Ad Management mod
Post by: Bigguy on November 26, 2008, 01:48:47 PM
That database error is not from the ad mod. I'm not sure why it shows up when you install the ad mod but it is from another mod other than this one.
Title: Re: Ad Management mod
Post by: alex30 on November 27, 2008, 12:29:23 PM
Hi all, quick question!

I'm using ad mod for desplaying some stuff on the right hand side of my forum.

How do I hide that stuff when I'm viewing gallery because it takes a lot of space there?

Take a look http://aquatropicalfish.com/forum/index.php?action=mgallery

Thanks.
Title: Re: Ad Management mod
Post by: dferrey on November 27, 2008, 12:55:24 PM
I'm creating a 2nd SMF forum.  The first one has the Ad package installed.  After install SMF and since I wanted the 2nd forum to look much like the first, I backed up the structure and data from the first and imported into the 2nd (using phpMyAdmin)

Looking at the Packages under the Admin menu, none were installed, okay.

I tried to install the ad package and got an error that it was already installed.  Turns out it wanted to install everything into my previous installation.

Thoughts?
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 27, 2008, 01:20:16 PM
When doing a "copy" of an SMF site, the normal routine would to also copy all the files from the first to the second site, not just the database. :P
Title: Re: Ad Management mod
Post by: alex30 on November 27, 2008, 01:21:56 PM
Quote from: alex30 on November 27, 2008, 12:29:23 PM
Hi all, quick question!

I'm using ad mod for desplaying some stuff on the right hand side of my forum.

How do I hide that stuff when I'm viewing gallery because it takes a lot of space there?

Take a look http://aquatropicalfish.com/forum/index.php?action=mgallery

Thanks.
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on November 27, 2008, 02:18:21 PM
alex30,

You did the post at Today at 12:29:23 PM.

Give people some time, before you quote yourself. :P

That issue is more for the mod author, I do believe.
Title: Re: Ad Management mod
Post by: robbyg13 on November 28, 2008, 06:04:06 PM
SO this doesn't work with SFM 1.1.7??
Title: Re: Ad Management mod
Post by: tk2012 on November 28, 2008, 06:08:20 PM
Quote from: tk2012 on November 20, 2008, 11:08:30 PM
Quote from: rnorth6920 on October 31, 2008, 03:30:31 PM
When I install the latest version of this mod onto the beta4 release, I get a funky look in the user welcome area.  I do not have any ads in that area and it goes away when the mod is uninstalled.  I believe its just a coding error such as table error.   Has anyone else had this issue.  I'll post a screen shot soon.

I don't see where this was fixed, but I have the same problem.  If I overlooked the fix, could someone point me to it?  I attached a pic of it as well.  BTW- I only see this in Internet Explorer.  I'm using v2.0 b4.0 with default theme (with color changes)

I just posted this on the support site along with a different problem.  I'll post the fix here if I don't see something posted here.
Title: Re: Ad Management mod
Post by: MultiformeIngegno on November 29, 2008, 02:01:33 AM
Quote from: tk2012 on November 28, 2008, 06:08:20 PM
Quote from: tk2012 on November 20, 2008, 11:08:30 PM
Quote from: rnorth6920 on October 31, 2008, 03:30:31 PM
When I install the latest version of this mod onto the beta4 release, I get a funky look in the user welcome area.  I do not have any ads in that area and it goes away when the mod is uninstalled.  I believe its just a coding error such as table error.   Has anyone else had this issue.  I'll post a screen shot soon.

I don't see where this was fixed, but I have the same problem.  If I overlooked the fix, could someone point me to it?  I attached a pic of it as well.  BTW- I only see this in Internet Explorer.  I'm using v2.0 b4.0 with default theme (with color changes)

I just posted this on the support site along with a different problem.  I'll post the fix here if I don't see something posted here.
I've posted this fix some pages ago!!
Please go and check! :D
Title: Re: Ad Management mod
Post by: dferrey on November 29, 2008, 10:46:40 AM
I apologize if this has been covered, but has anyone developed custom ads?  I am developing a forum were I will have some boards dedicated to specific companies and I would like to sell the companies ad space when users are viewing their board. 
Title: Re: Ad Management mod
Post by: smittt on December 02, 2008, 02:29:17 PM
Ad manager is not working with this theme http://custom.simplemachines.org/themes/index.php?lemma=793

The ads are now shown in footer, board index ??? How can i solve this problem?
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on December 02, 2008, 02:32:23 PM
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: Ad Management mod
Post by: tk2012 on December 02, 2008, 11:12:59 PM
ummm, I just tried to get on the Ad Mod site and can't... Is anyone else getting an error message?

I got this:

Not Found
The requested URL /forums/index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on December 02, 2008, 11:17:33 PM
It would seem that they are in middle of working on the site there.
Title: Re: Ad Management mod
Post by: tk2012 on December 02, 2008, 11:19:52 PM
cool.. good luck to them
Title: Re: Ad Management mod
Post by: editor1 on December 03, 2008, 04:24:54 AM
once the zip file is downloaded how do I incorporate
the manager into version 1.1.7?

I would really appreciate any answer
Title: Re: Ad Management mod
Post by: krom_stormbrow on December 03, 2008, 08:20:29 AM
Hi I asked this one earlier, but it seems to have been missed... it seems a very busy topic this one :)

I'm using smf2v4. Can ad management handle a html javascript code as this one? If so is there anything else I need to do?

<a href="javascript:void(0)" mce_href="javascript:void(0)" onclick="window.open('http://www.pupuplatters.com/pupuplayer/pro/pupuplayer_pro.php?id=384′, 'linkname', 'height=235, width=450, scrollbars=no')"> <img src="http://www.40kradio.com/wp-content/uploads/2008/10/listennowbutton.gif" mce_src="http://www.40kradio.com/wp-content/uploads/2008/10/listennowbutton.gif" alt="40K Radio Player" border="0"></a>

Thanks for the help.

Piers

Title: Re: Ad Management mod
Post by: Burke ♞ Knight on December 03, 2008, 08:30:48 AM
Quote from: editor1 on December 03, 2008, 04:24:54 AM
once the zip file is downloaded how do I incorporate
the manager into version 1.1.7?

I would really appreciate any answer

Package Manager (http://docs.simplemachines.org/index.php?board=49.0;sort=subject)

Title: Re: Ad Management mod
Post by: editor1 on December 03, 2008, 01:51:43 PM
Thank you... I appreciate the response

It looks really complicated... ::)
I'm really hopng to figure it out!
Michael
Title: Re: Ad Management mod
Post by: editor1 on December 03, 2008, 02:25:36 PM
Wow... way easier than i thought and i installed the package successfully into my site..
I'm really enjoying smf..

I have one question.. and would appreciate any answer..

once downloaded successfully...
where and how do I access the ad manager on my forum?

Thanks!
Title: Re: Ad Management mod
Post by: editor1 on December 03, 2008, 02:51:45 PM

I know I'm answering my own q above
but the problem is that there is no "proceed"
only uninstall, list files and delete....

any suggestions.. I would appreciate any feedback
thank you all.




"In the Browse Packages section of the package manager, you will see all of the packages that are currently downloaded on to your forum. You can install/uninstall them, view details of a package, and delete packages. Applying the package to your Forum is as easy as clicking Proceed next to the package you want to install, most of the time, however you may be asked to fill in FTP information whenever the files needed are not writable
Title: Re: Ad Management mod
Post by: RustyBarnacle on December 03, 2008, 02:56:58 PM
Each mod is a little different in how it controls access to its functionality.

Ad manager puts a link to its placement functions under Admin.  On the left you'll now see an Ad Management link.
Title: Re: Ad Management mod
Post by: editor1 on December 03, 2008, 03:14:45 PM
Thanks alot my friend,
I appreciate your keen knowledge..
Unfortunately..lol
there is nothing like that under admin
or any type of "ad management" link
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on December 03, 2008, 04:15:47 PM
What language is your site using?
Needs to be set to English, not English-UTF8.

Server Settings (http://docs.simplemachines.org/index.php?board=52.0;sort=subject)
Title: Re: Ad Management mod
Post by: editor1 on December 03, 2008, 04:28:31 PM
Wow.. got to luv it!!! :D
that did the trick..

Thank you all, I sincerely appreciate the help
and the valuable time given to help me...!!!

Much peace, Michael
Title: Re: Ad Management mod
Post by: XRacer101 on December 04, 2008, 04:05:04 PM
Ok, I tried putting up my ads, waiting over 48 hours with the Ad Management Mod, and they don't work at all.  They don't even show on the source code. I also tried doing it with TinyPortal but that didn't work either. Here is my site link:

http://tez.novahost.org

Title: Re: Ad Management mod
Post by: The_Wii_Nes_Boy on December 06, 2008, 10:42:35 AM
Why can't guest see the ads that I have placed on my forums? Everyone else can see them just fine but not guests, any help would be great.

Here is a link to my site --> http://twnb-worldofstuff.com

Thanks
Title: Re: Ad Management mod
Post by: Bigguy on December 06, 2008, 10:58:44 AM
Set permissions for them. ;)
Title: Re: Ad Management mod
Post by: The_Wii_Nes_Boy on December 06, 2008, 11:01:38 AM
Thanks, that solved the problem.


"The simplest solution is always the hardest to find"
Title: Re: Ad Management mod
Post by: XRacer101 on December 07, 2008, 11:36:49 AM
Did anyone see my post?
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on December 07, 2008, 11:57:22 AM
Quote from: XRacer101 on December 04, 2008, 04:05:04 PM
Ok, I tried putting up my ads, waiting over 48 hours with the Ad Management Mod, and they don't work at all.  They don't even show on the source code. I also tried doing it with TinyPortal but that didn't work either. Here is my site link:

http://tez.novahost.org



Have you set permissions for everyone to see them?

Also, you are running a custom theme. You need to manually install the theme edits into your theme:

Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: Ad Management mod
Post by: editor1 on December 07, 2008, 12:08:44 PM
this is a grade A+ modifaction and has made a world of difference on my smf-thank you very much.
Michael
Title: Re: Ad Management mod
Post by: Bigguy on December 07, 2008, 12:15:44 PM
Glad you like it. :)
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on December 07, 2008, 12:17:40 PM
Bigguy, as you can see, I also love it. Unfortunately, the theme I'm using cannot be modded for it, so I'm stuck without it at this time. :(

However, I still plan on helping out here as much as I can. :)
Title: Re: Ad Management mod
Post by: Bigguy on December 07, 2008, 12:22:09 PM
Why can't it be modified.
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on December 07, 2008, 12:29:25 PM
Theme: Anecdota design by Crip

The areas where the codes fail are at:

index.template.php

Edit #2:
<div class="windowbg2 clearfix">';
Have no idea where that would be, as it is different. The theme's file does not even have windowbg2 in it anywhere....lol

Edit #4:
template_menu();
The menu here, is in a special div, due to the new style menu it is.

It says the welcome ads area would pass, but as to where it would actually show up, is something I'd love to know....LOL

http://www.bksmf.com

(Have 2 more, just like it. :P )
Title: Re: Ad Management mod
Post by: Bigguy on December 07, 2008, 12:32:25 PM
You should be able to get most of the edits in. With this mod not all the edits have to be in for it to be used. It will not throw any errors doing it this way either. You just won't have all the spots to put ads thats all. I had to do that with a couple themes and let me tell ya I think I have edited almost every theme thats out there, lol....almost.
Title: Re: Ad Management mod
Post by: dcottuli on December 07, 2008, 08:23:57 PM
This mod looks great, just can't get it to install. I've downloaded the file then uploaded it through package manager no problems. When I click install mod I get this error message

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Anyone know what I should do? I'm running the latest version of smf 1.1.7

Really appreciate any help I can get with this as it looks just like the feature I need for my forum
Title: Re: Ad Management mod
Post by: dcottuli on December 07, 2008, 08:25:22 PM
btw - the package that I'm installing is called ad_mod_v2-3-4_SMF_vbeta4.zip
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on December 07, 2008, 09:51:42 PM
Quote from: dcottuli on December 07, 2008, 08:25:22 PM
btw - the package that I'm installing is called ad_mod_v2-3-4_SMF_vbeta4.zip

That is the problem.

You are trying to install the SMF 2.0 Beta 4 version of the mod.

You need to install The SMF 1.1.x Version (http://custom.simplemachines.org/mods/index.php?action=download;mod=255;id=26580)
Title: Re: Ad Management mod
Post by: dcottuli on December 07, 2008, 09:57:36 PM
Cool - did what you said and now I get this error :)

Session verification failed. Please try logging out and back in again, and then try again.

Have done so and still get error message???
Title: Re: Ad Management mod
Post by: dcottuli on December 07, 2008, 10:01:05 PM
Maybe I should manually change permissions as this is the screen that seems to be causing me the trouble? I now have the option to install the mod but then it asks for my login details to change permissions which I enter and then get the above error message.

Does anyone know which files I should change for the installation to go through?
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on December 07, 2008, 10:03:07 PM
Quote from: dcottuli on December 07, 2008, 09:57:36 PM
Cool - did what you said and now I get this error :)

Session verification failed. Please try logging out and back in again, and then try again.

Have done so and still get error message???


SMF 1.1.7: Session verification failed error when installing mods (http://www.simplemachines.org/community/index.php?topic=278824.0)

Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: Ad Management mod
Post by: dcottuli on December 07, 2008, 10:30:24 PM
hmmm . . . made the changes to the packages.php file and it went through but ended up at blank screen. Tried to reinstall but got this error message

You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

All of the files are writeable and it still doesn't work???


Title: Re: Ad Management mod
Post by: dcottuli on December 07, 2008, 11:27:15 PM
This is starting to really annoy me :) I've checked and rechecked all my permissions and they are all writable and yet I still get the same error message. Now I can't install anything??

Anyone come across this before?
Title: Re: Ad Management mod
Post by: dcottuli on December 07, 2008, 11:58:34 PM
Figured it out - created a temp folder in the packages directory and set it to 777 and it worked perfectly.
Title: Re: Ad Management mod
Post by: dcottuli on December 08, 2008, 12:01:00 AM
I would like to put in my own adds but not sure how to do this. IE I have a banner from a company and I want to have it appear on my site with a link to their site. I tried putting in the html link to the banner and all i got was the text of the html link showing up. I used the [img] tag to see if that would work but got the text showing up again and no image. Is there a simple way around this?

Thanks!
Title: Re: Ad Management mod
Post by: simmer on December 08, 2008, 02:27:20 AM
hi bro jerm please check my problem here http://www.simplemachines.org/community/index.php?topic=278988.0

regards
sim :)
Title: Re: Ad Management mod
Post by: simmer on December 08, 2008, 01:26:14 PM
bump

please reply bro :(
Title: Re: Ad Management mod
Post by: XRacer101 on December 08, 2008, 03:25:28 PM
Quote from: BurkeKnight on December 07, 2008, 11:57:22 AM
Quote from: XRacer101 on December 04, 2008, 04:05:04 PM
Ok, I tried putting up my ads, waiting over 48 hours with the Ad Management Mod, and they don't work at all.  They don't even show on the source code. I also tried doing it with TinyPortal but that didn't work either. Here is my site link:

http://tez.novahost.org



Have you set permissions for everyone to see them?

Also, you are running a custom theme. You need to manually install the theme edits into your theme:

Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)

It doesn't work on the SMF Default Theme either.
Title: Re: Ad Management mod
Post by: bjraines on December 08, 2008, 08:30:22 PM
I am unable to put an add after a category.

I had it configured once but it doesn't work for me now

i am trying to place it between category containers, chemistry homework help and chemistry lab help

is there something i am missing

i tried using the category number as well as position 1 or 2
Title: Re: Ad Management mod
Post by: simmer on December 09, 2008, 12:58:13 PM
bump :'(
Title: Re: Ad Management mod
Post by: bbr2 on December 09, 2008, 01:27:17 PM
Hey all, thanks for a great forum aand mods!

I got this problem, i've  installed ads management and gone thru the files and all seem updated and good but ad admin wont show?  i have checked language wich is english, only one i got.
I've installed some other mods  with succes. I have also checked the db and it seems fine. Should i have 1table for ads   and 1 for ads_settings or do the settings query goes into smf_settings? tryed with both. I'm using beta fresh install

thanks in advance frode
Title: Re: Ad Management mod
Post by: RustyBarnacle on December 09, 2008, 01:33:02 PM
Its likely theme based.  You can go through these settings to see which files in your theme need to be edited manually:

http://custom.simplemachines.org/mods/index.php?action=parse;mod=255;attach=26580;smf_version=1.1.7
Title: Re: Ad Management mod
Post by: bbr2 on December 09, 2008, 03:14:37 PM
Quote from: RustyBarnacle on December 09, 2008, 01:33:02 PM
Its likely theme based.  You can go through these settings to see which files in your theme need to be edited manually:

http://custom.simplemachines.org/mods/index.php?action=parse;mod=255;attach=26580;smf_version=1.1.7

I'm running a fresh install with smf default  theme core?not edited or changed theme.?
and i have checked the files and the new(updated code)are in place.
Gone truw that page several times now:-)

Thnks for fast replying

frode
Title: Re: Ad Management mod
Post by: RustyBarnacle on December 09, 2008, 03:22:12 PM
I think there are also permissions for who can view ads.  Did you check membergroup permissions?
Title: Re: Ad Management mod
Post by: bbr2 on December 09, 2008, 04:03:10 PM
The Ads admin wont show, i cant add banners or anything since i cant get to it in admin! Thats the problem... :-)


I can also give permissions to moderator and so on to enable  ads, but since it says admin=all i think i got permissions to see ad admin?
Title: Re: Ad Management mod
Post by: simmer on December 10, 2008, 03:00:06 AM
aaaaaaaaaaaaaaaaaaaaaaaa help me plz plz plzzzzzzzzzzzz
Title: Re: Ad Management mod
Post by: Bigguy on December 10, 2008, 11:16:07 PM
simmer Have you tried asking on his site if you want to get a hold of jerm. ???

www.smfads.com
Title: Re: Ad Management mod
Post by: simmer on December 11, 2008, 02:57:16 AM
no big guy ok i'm going dre :D thanx bro
Title: Re: Ad Management mod
Post by: Baloch on December 11, 2008, 10:12:38 PM
Quote from: Baloch on November 22, 2008, 10:34:15 PM
Quote from: BurkeKnight on November 22, 2008, 01:05:57 PM
Baloch,

Admin > Server Settings

Set Language to English
Not English-UTF8

Thank you so much now problem is resolved :)


Even the problem was resolved but after installing CUSTOMIZED LANGUAGE MOD issue is again on same stage. means text box of Ultimate Shout box is invisible.

I have uninstalled that LANGUAGE mod but now cookies are not refereshing.

everytime I login to my forum I have to change LANGUAGE of SERVER Setting from ENGLISH to ENGLISH.
Dont know why its not being saved.

http://www.simplemachines.org/community/index.php?topic=279590

Please advice what to do.

Thanks in advance for your respone.


P.S. sorry for my bad english
Title: Re: Ad Management mod
Post by: deyesborn on December 13, 2008, 01:42:09 PM
Please I just installed this mod V 2.3, and it was installed successfully. But the problem am having is that, when I logon to my 'admin' panel and check 'configuration', i can not find ad manament as you explain. Instead am still seeing:
Features and Options
server settings
current theme
themes and layout
Please help me I want to add adsense code to my forum.
Thanks
I have upgraded from SMF 1.1.5 to 1.1.7 because of this problem
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on December 13, 2008, 02:10:51 PM
1. Server Settings - Make sure language is English not English-UTF8

2. Are you using the default theme?
Title: Re: Ad Management mod
Post by: XRacer101 on December 13, 2008, 02:58:02 PM
Can anyone please help me ???  :'(
Title: Re: Ad Management mod
Post by: Baloch on December 14, 2008, 03:01:12 AM
Quote from: BurkeKnight on December 13, 2008, 02:10:51 PM
1. Server Settings - Make sure language is English not English-UTF8

2. Are you using the default theme?
my server setting is English languge
Theme is dibarMC.
Title: Re: Ad Management mod
Post by: tyhgdgh on December 14, 2008, 04:30:25 AM
this wasnt activated on my site, but ws installed, it some how gave my site a klone/bloodhound/malware on my site
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on December 14, 2008, 07:54:54 AM
Quote from: Baloch on December 14, 2008, 03:01:12 AM
my server setting is English languge
Theme is dibarMC.


You have to manually install the theme edits to DilberMC. The Mod only installs to the default theme.

Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: Ad Management mod
Post by: XRacer101 on December 14, 2008, 09:50:31 AM
Nobody is replying to my problem! I have waited over 48 hours for my Google Adsense ads to show up and they don't even show up on the default theme! My site is http://tez.novahost.org
PLZ REPLY!!!!@@!11! grr
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on December 14, 2008, 09:55:22 AM
1. That does not look like the default theme. ;)

2. Is your language set to English or English-UTF8?

3. Have you made sure that in the permissions for all groups, it is set to enable ads?

4. Is the Hide ads for Admin checkmarked in the ads settings?
Title: Re: Ad Management mod
Post by: XRacer101 on December 14, 2008, 11:07:41 AM
Quote from: BurkeKnight on December 14, 2008, 09:55:22 AM
1. That does not look like the default theme. ;)

2. Is your language set to English or English-UTF8?

3. Have you made sure that in the permissions for all groups, it is set to enable ads?

4. Is the Hide ads for Admin checkmarked in the ads settings?

1: There's a theme selector on the right side of the forum

2: It's English

3. All the permissions for all groups are set to enable ads

4. No it is not.
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on December 14, 2008, 11:23:00 AM
Were there any errors when installing the mod?

Also, you really need to work on the sizes of the portal blocks. Default template shows all in less space than a PM message box shows.
Title: Re: Ad Management mod
Post by: XRacer101 on December 14, 2008, 12:10:07 PM
Quote from: BurkeKnight on December 14, 2008, 11:23:00 AM
Were there any errors when installing the mod?

Also, you really need to work on the sizes of the portal blocks. Default template shows all in less space than a PM message box shows.

No, there were not any errors.
Title: Re: Ad Management mod
Post by: fiveflat on December 14, 2008, 09:36:42 PM
I removed my question because I figured out  the right way to use it...

Title: Re: Ad Management mod
Post by: simmer on December 14, 2008, 10:54:08 PM
my problem solved
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on December 15, 2008, 11:48:04 AM
Many more uses, than just Ads. :)

Add an extra Menu under the main menu.
Add site tracking, setting it to Bottom of Page.
Add a information box, using a table, under the menu.
Add a list of Top Sites, Top Members, etc.
Add a little info after the first post in threads.
Add an image somewhere on your forum.
Add almost anything that is HTML. The possibilities are endless. :)
Title: Re: Ad Management mod
Post by: fiveflat on December 15, 2008, 01:21:38 PM
The ADs are disabled for guests?  or can I enable it?  I don't see how if I can.
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on December 15, 2008, 01:58:48 PM
Quote from: fiveflat on December 15, 2008, 01:21:38 PM
The ADs are disabled for guests?  or can I enable it?  I don't see how if I can.


Have you made sure that in the permissions for all groups, it is set to enable ads?
Title: Re: Ad Management mod
Post by: fiveflat on December 15, 2008, 02:39:56 PM
Ah, I'm still new to simple portal all together and I forget that alot of mods show up down there.

That was it,  Thanks!!
Title: Re: Ad Management mod
Post by: XRacer101 on December 15, 2008, 03:22:19 PM
What do I do for my question?  :'(
Title: Re: Ad Management mod
Post by: GMCbris on December 16, 2008, 04:52:22 AM
Quote from: dcottuli on December 08, 2008, 12:01:00 AM
I would like to put in my own adds but not sure how to do this. IE I have a banner from a company and I want to have it appear on my site with a link to their site. I tried putting in the html link to the banner and all i got was the text of the html link showing up. I used the [img]http://tag to see if that would work but got the text showing up again and no image. Is there a simple way around this?

Thanks!

Not sure if this was answered anywhere

Try this

[u rl=hxxp://www.whereyouwanttolink.com][IM G]www.imagehost.jpg[/im g][/u rl]

minus the spaces of course
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on December 16, 2008, 07:37:56 AM
If you are using HTML for the banner/link, do it like this:

<a href="http://www.simplemachines.org/" target="_blank"><img src="http://www.simplemachines.org/site_images/illustrateSMF.png" alt="Simple Machines LLC" title="Simple Machines LLC" border="0" /></a>

Of course, you may wish to add it so it is centered, and best way to do that is like this:

<div align="center"><a href="http://www.simplemachines.org/" target="_blank"><img src="http://www.simplemachines.org/site_images/illustrateSMF.png" alt="Simple Machines LLC" title="Simple Machines LLC" border="0" /></a></div>
Title: Re: Ad Management mod
Post by: XRacer101 on December 16, 2008, 06:01:49 PM
What about my problem?
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on December 16, 2008, 06:47:20 PM
I have no idea.

Frankly, everything sounds like it should be working 100%, the way you say.
I can't tell what's wrong, since I'm not there. :(

Every thing that may have been the issue, you answered very well on, and they were not the trouble. Seems very strange to me, also, why it's not working.

Wait, when Adding the ads, are you check marking the boxes to tell where to show the ads at?
Title: Re: Ad Management mod
Post by: Bigguy on December 16, 2008, 07:52:49 PM
@ XRacer101: Your default theme is not displaying correctly in FF is it displaying right in IE. ??? This might be part of your problem.
Title: Re: Ad Management mod
Post by: nexxus on December 17, 2008, 02:30:24 AM
Hi,

Is the ad managment mod compatible with the 1.1.7 ?

Thanks.
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on December 17, 2008, 07:39:18 AM
Quote from: nexxus on December 17, 2008, 02:30:24 AM
Hi,

Is the ad managment mod compatible with the 1.1.7 ?

Thanks.

Yes, it is.
Title: Re: Ad Management mod
Post by: nexxus on December 17, 2008, 11:43:16 PM
Hi,

I thought I had it, but nothing is showing up under the configuration so far.  I am new to SMF, so I'm not too sure if I did everything right.  I uploaded the ad_mod_1-1-x_v2-3 mod through my package panel.  I uploaded the zip file and it was showing success.  But I noticed that all of the files needed to be changed to 777, so I unzipped it and then uploaded the folder so I could chmod each file to 777.  It's still not showing up, so, maybe from this you can tell what I've done wrong.
Title: Re: Ad Management mod
Post by: Burke ♞ Knight on December 18, 2008, 12:17:57 AM
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: Ad Management mod
Post by: Dougster on December 18, 2008, 09:26:24 AM
Hi,

I have a problem with my ad mod not showing.

I recently installed forum version 1.1.7 but the database was older
so the themes and source files are 1.1.

I'm wondering if that is why it is not allowing me to add my ads or adsense?

In packages it is showing as "installed" but on the left in the administration
panel where it had been showing before the new install, to allow configuring of ads and to show the adsense... it is not showing.

How can I get the mod to show in admin  so that I can begin serving my
adsense ads again on all the pages?

Title: Re: Ad Management mod
Post by: naijapreneur on December 18, 2008, 04:49:45 PM
Can someone help solve this parse error


Parse error: syntax error, unexpected '<' in .../Themes/extreme61/index.template.php on line 175

166:
167:             document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";
168:
169:             current_header_ic = mode;
170:          }
171:       // ]]></script>';
172: echo '
173: </head>
174: <body>';   //Display ads on the top of the page   if (function_exists("show_topofpageAds"))    {      $ads = show_topofpageAds();         if(!empty($ads))         if($ads['type']==0)            echo $ads['content'];         else            eval($ads['content']);         unset($ads);    }     <div id="sag1">

175:   <div id="sol1">

176:    <div id="alt1">
177:     <div id="altsag1">
178:      <div id="altsol1">
179:    <div id="ust1">
Title: Re: Ad Management mod
Post by: glennk on December 18, 2008, 04:55:41 PM
Hi Guys,

I have added this mod to a new site at :

http://holderness-coast-fishing.co.uk/forum/index.php

This is the YABB theme. The ads are not showing. Does the mod work with this theme and what else can I do to get it working ??
Title: Re: Ad Management mod
Post by: Bigguy on December 18, 2008, 05:02:50 PM
The template files of that theme have to be edited. Run the mod through the package parser. If it is already installed then just do the edits to the 4 template files it lists.
Title: Re: Ad Management mod
Post by: glennk on December 18, 2008, 05:09:03 PM
Thanks bigguy. Sound advice as usual.
Title: Re: Ad Management mod
Post by: naijapreneur on December 18, 2008, 05:36:23 PM
Bigguy, any comment on parse error posted above ? really need help
Title: Re: Ad Management mod
Post by: Bigguy on December 18, 2008, 05:54:59 PM
Can you upload that file and I will take a look now for you.
Title: Re: Ad Management mod
Post by: naijapreneur on December 18, 2008, 06:01:14 PM
this is it
Title: Re: Ad Management mod
Post by: Bigguy on December 18, 2008, 09:24:08 PM
Looking at it now.
Title: Re: Ad Management mod
Post by: AlenNS on December 18, 2008, 09:30:09 PM
I can't edit copyright area at all.
Does it somehow related with add management mod?

It also doesn't show anything I put from this mod in the bottom of forum.
Title: Re: Ad Management mod
Post by: Bigguy on December 18, 2008, 09:30:44 PM
Try this naijapreneur
Title: Re: Ad Management mod
Post by: Bigguy on December 18, 2008, 09:31:27 PM
Your not supposed to edit the copyright AlenNS. This mod adds a space above it.
Title: Re: Ad Management mod
Post by: AlenNS on December 18, 2008, 09:45:19 PM
That what I mean. To edit space around it. :)
Title: Re: Ad Management mod
Post by: Bigguy on December 18, 2008, 09:53:16 PM
Are you using a custom theme. ??? what do you mean you want to edit the space around it. ???
Title: Re: Ad Management mod
Post by: AlenNS on December 18, 2008, 10:01:50 PM
I'm using default theme SMF 2.0 Beta 4.

U want to put above copyright somr links and pictures but I can't.
Title: Re: Ad Management mod
Post by: Bigguy on December 18, 2008, 10:28:52 PM
Are all your edits done right to that part of the file.
Title: Re: Ad Management mod
Post by: AlenNS on December 19, 2008, 09:49:34 AM
Yes, they are. Even I trid to put through ad management mod, but nothing shows. Don't know why.
Title: Re: Ad Management mod
Post by: Bigguy on December 19, 2008, 10:07:21 AM
I see your adsense above the copyright. If thats what your talking about then it is showing. If you wanted to put more there you can by just creating another ad space for that area in the ad mod. Add your ads to it and on every page refresh it will show a different ad in that space.
Title: Re: Ad Management mod
Post by: Dougster on December 19, 2008, 05:12:19 PM
Quote from: Dougster on December 18, 2008, 09:26:24 AM
Hi,

I have a problem with my ad mod not showing.

I recently installed forum version 1.1.7 but the database was older
so the themes and source files are 1.1.

I'm wondering if that is why it is not allowing me to add my ads or adsense?

In packages it is showing as "installed" but on the left in the administration
panel where it had been showing before the new install, to allow configuring of ads and to show the adsense... it is not showing.

How can I get the mod to show in admin  so that I can begin serving my
adsense ads again on all the pages?

Still need to know why my ads or ad mod is not showing on the forum?
Title: Re: Ad Management mod
Post by: naijapreneur on December 19, 2008, 06:31:05 PM
Quote from: Bigguy on December 18, 2008, 09:30:44 PM
Try this naijapreneur

Thanks bigguy, it worked, i appreciate
Title: Re: Ad Management mod
Post by: naijapreneur on December 19, 2008, 07:45:24 PM
Please what about this Parse error in display template, take a look

Parse error: syntax error, unexpected $end in .../Themes/extreme61/Display.template.php on line 1229

1220:
1221:    if ($context['show_spellchecking'])
1222:
1223:       echo '
1224:
1225: <form action="', $scripturl, '?action=spellcheck" method="post" accept-charset="', $context['character_set'], '" name="spell_form" id="spell_form" target="spellWindow"><input type="hidden" name="spellstring" value="" /></form>';
1226:
1227: }
1228:

1229: ?>

1230:
Title: Re: Ad Management mod
Post by: glennk on December 20, 2008, 04:22:17 AM
Quote from: Bigguy on December 18, 2008, 05:02:50 PM
The template files of that theme have to be edited. Run the mod through the package parser. If it is already installed then just do the edits to the 4 template files it lists.


Orite bigguy

I just realised the edits listed in the parser are for teh defualt theme. ie

/Themes/default/index.template.php

Will the edits be exactly the same for the classic yabb theme ??

Just as an example it says I have to find and replace the code shown below, but this code isnt in the classicyabb file

<div class="windowbg2 clearfix">';
Title: Re: Ad Management mod
Post by: naijapreneur on December 20, 2008, 04:17:38 PM
Quote from: naijapreneur on December 19, 2008, 07:45:24 PM
Please what about this Parse error in display template, take a look

Parse error: syntax error, unexpected $end in .../Themes/extreme61/Display.template.php on line 1229

1220:
1221:    if ($context['show_spellchecking'])
1222:
1223:       echo '
1224:
1225: <form action="', $scripturl, '?action=spellcheck" method="post" accept-charset="', $context['character_set'], '" name="spell_form" id="spell_form" target="spellWindow"><input type="hidden" name="spellstring" value="" /></form>';
1226:
1227: }
1228:

1229: ?>

1230:


Anybody helping with this error, bigguy, jade, any help please. See file attached
Title: Re: Ad Management mod
Post by: Dougster on December 20, 2008, 06:11:04 PM
Quote from: Dougster on December 19, 2008, 05:12:19 PM
Quote from: Dougster on December 18, 2008, 09:26:24 AM
Hi,

I have a problem with my ad mod not showing.

I recently installed forum version 1.1.7 but the database was older
so the themes and source files are 1.1.

I'm wondering if that is why it is not allowing me to add my ads or adsense?

In packages it is showing as "installed" but on the left in the administration
panel where it had been showing before the new install, to allow configuring of ads and to show the adsense... it is not showing.

How can I get the mod to show in admin  so that I can begin serving my
adsense ads again on all the pages?

Still need to know why my ads or ad mod is not showing on the forum?


Answers anyone at all?


Title: Re: Ad Management mod
Post by: Bigguy on December 20, 2008, 08:17:14 PM
naijapreneur try this

@ Dougster: Make sure all you edits are done. Check index.php                         
Title: Re: Ad Management mod
Post by: Bigguy on December 20, 2008, 08:19:50 PM
@ glennk: No they are not going to be exactly the same. I suggest you download a program called "Winmerge" (Google it) and compare the default index.template.php file with the index.template.php file of the classic yabb theme to see where the edits are to go. Make sure the edits for the mod are already in the default index.template.php file and then compare the two.
Title: Re: Ad Management mod
Post by: naijapreneur on December 21, 2008, 02:50:35 AM
Thanks Bigguy,  i appreciate your help
Title: Re: Ad Management mod
Post by: searchgr on December 21, 2008, 04:12:03 AM
Thanks for the 'winmerge' suggestion.
Title: Re: Ad Management mod
Post by: afe on December 22, 2008, 03:42:56 AM
Please help, I get this when trying to install

!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Type Action Description
1. Execute Code install.php 
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/Subs.php Test successful
4. Execute Modification ./Themes/default/index.template.php Test failed
5. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
6. Execute Modification ./Themes/default/Display.template.php Test successful
7. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
8. Execute Modification ./Sources/ManagePermissions.php Test successful
9. Extract File ./Sources/Ads.php 
10. Extract File ./Sources/LoadAds.php 
11. Extract File ./Themes/default/Ads.template.php 
12. Extract File ./Themes/default/languages/Ads.english.php 

The reason it's doing that is because I've installed a different template. But how do I fix it?
I'm using the default theme with a different index.template.php
So I've basically replaced all the files in here http://custom.simplemachines.org/themes/index.php?lemma=1248 with the ones in the default theme.

Please help and thank you. :)
Title: Re: Ad Management mod
Post by: Phat^Trance on December 22, 2008, 07:18:14 AM
does anyone have problem with adsense ads not showing up on the google adsense report page?  my other ads are showing on the blog is there but not the forum ads. im using another chanel code for the forum and not the same as the one on the blog.
Title: Re: Ad Management mod
Post by: searchgr on December 22, 2008, 09:49:03 AM
Do they have the same domain (blog,forum)?
Title: Re: Ad Management mod
Post by: Phat^Trance on December 22, 2008, 09:50:29 AM
yes

blog: dailymobile.se
forum  dailymobile.se/forum
Title: Re: Ad Management mod
Post by: gregmacp on December 22, 2008, 10:33:45 AM
Hello and thanks for the SMF software!

I'm in kind of the same situation as Dougster.
I have installed several MODS. All of them appear to be installed.
Some of them work (Remove SMF logo) but some of them don't.

Looking at the list of things as noted by others, here is my status (at http://www.insidetracknews.com/forum/index.php)

1. That does not look like the default theme.... Mine is set to: SMF Default Theme - Core

2. Is your language set to English or English-UTF8? I'm using ENGLISH

3. Have you made sure that in the permissions for all groups, it is set to enable ads? I assume this should appear under PERMISSIONS BY MEMBERGROUPS... I can see lots of options under the ADD PERMISSIONS menu, but none of them mention "ENABLE ADS".

4. Is the Hide ads for Admin checkmarked in the ads settings? I can't find this option, either.

Below is a list of what I've installed, with comments:

1. Ad Managment 2.3   UPDATED: Did all the manual edits... working now!
2. Are You Human? Anti-Bot Registration Check 1.3... ALSO working now
3. BK-SMF StatCounter 1.0... ALSO working now
4. Remove SMF Logo 1.2... This one seemed to work.  
5. Picasa Gallery Browser 0.4 ... UPDATE: This one is now working after I went through the manual installation directions.

Anyway, thanks again for the SMF software. I can't believe the traffic.
:)   


Title: Re: Ad Management mod
Post by: slnurajar on December 22, 2008, 12:39:38 PM
Hi i am using ad management  2.3.4  version in smf2.0 beta 4, i am getting this error when installing , error is shown in screenshots please any one help me

(http://img83.imageshack.us/img83/9706/aderrorjm3.png) (http://img83.imageshack.us/img83/9706/aderrorjm3.png)


Please any one help me, if i need to attach any files please say, i vil attach it
Title: Re: Ad Management mod
Post by: slnurajar on December 23, 2008, 02:04:46 PM
Hi i am using smf 2.0 beta 4 version , when i installed the ad management package i am getting this error, can any one help me


!!
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.



QuoteInstallations actions for "Ad Managment":
Installing this package will perform the following actions:
      Type    Action    Description
   1.    Execute Code    install.php    
   2.    Execute Modification    install.xml    Modification parse error
   3.    Execute Modification    install.xml    Modification parse error
   4.    Extract File    ./Sources/Ads.php    
   5.    Extract File    ./Sources/LoadAds.php    
   6.    Extract File    ./Themes/default/Ads.template.php    
   7.    Extract File    ./Themes/default/languages/Ads.english.php    
   8.    Extract File    ./Themes/default/languages/Ads.english-utf8.php    
Title: Re: Ad Management mod
Post by: Dougster on December 23, 2008, 05:24:46 PM
Quote from: Bigguy on December 20, 2008, 08:17:14 PM
naijapreneur try this

@ Dougster: Make sure all you edits are done. Check index.php

Hi Bigguy,

Thanks for your reply, I really appreciate it. I'm kind of lost as to what edits I need to be checking?

So, I need to edit my index.php file for the ad mod to work?

Title: Re: Ad Management mod
Post by: Bigguy on December 23, 2008, 07:09:14 PM
Run the ad mod through the parser and then compare those edits with the ones in your files. I think it would be the index.php that is giving the problem but my memory might be wrong.
Title: Re: Ad Management mod
Post by: Bigguy on December 23, 2008, 07:10:40 PM
@ slnurajar: Check the Packages folder and put a temp directory in it if there is not one. Then chmod it to 777 or 755 depending on your host. Then try to re-install it.
Title: Re: Ad Management mod
Post by: igordr on December 28, 2008, 04:55:23 AM
Hi !
I installed this mod for ads (http://custom.simplemachines.org/mods/index.php?mod=255 , version :ad_mod_1-1-x_v2-3.zip) and, i cant see under the Configuration heading,Ad Management...
I am using theme mystic jade (http://custom.simplemachines.org/themes/index.php?lemma=367)
Can now somebody explain me ?
Sorry for bad english....
Title: Re: Ad Management mod
Post by: neato on December 29, 2008, 01:42:00 PM
Hey Guys,

I recently installed a new forum using the DS Natural theme.

My site is here: www.signamigo.com/forum

I am using SMF 1.1.7

Now, I don't know much about web coding, in fact, really nothing at all. So please bear with me.

I installed the Ad Management package and can't seem to get my ads to display. I did do a search for this topic but I'm still confused. Do I need to alter the code in the index.template.php file in order for this mod to work correctly? I saw a post on another site that offered some text to add, but when I tried it, I just got an error when I went to the forum home page. I wasn't 100% certain that it was my fix anyway.

Thanks!

phillip
Title: Re: Ad Management mod
Post by: uni on December 30, 2008, 03:47:28 PM
If you're using a custom theme you will need to change it yourself, go to:
http://mods.simplemachines.org/index.php?mod=255

Select ad_mod_1-1-x_v2-3.zip, then Manual Install Instructions for SMF for 1.1.7. You'll need to redo anything related to ./Themes/Default, but on DS Natural theme instead. Backup your files first.




I've upgraded recently to 1.1.7 and had to fix most of the mods, I'm just getting this error with the ADS:

Quote
         Issue with the Ad Mod
                            LoadAds.php is missing/corrupt from your sources directory. Please make sure that it uploaded properly. The Ad mod won't be able to function properly.

the file is there and I tried uploading a new and older version. Any ideas how to fix it?

Thanks![/hr]
Title: Re: Ad Management mod
Post by: Don Pepito on January 04, 2009, 04:07:52 PM
Does this mod gives you monthly or weekly informations about my potential user's campagin...
Does it sample all clicks on banner....??
Title: Re: Ad Management mod
Post by: midas on January 09, 2009, 07:39:40 AM
Hi all,

I've had the ad mod installed for some time now and have only just noticed that my column ads don't display properly for guests viewing forum posts.  When a user is logged in the column ads display exactly as they should i.e right next to post being viewed but when not logged in the column ads display under the last post.  It occurs in Firefox and IE, small screens and large screens.

You can see the issue in action here 121GuitarLessons.com (http://www.121guitarlessons.com/index.php?topic=47.0).

Does any one know of a fix?
Title: Re: Ad Management mod
Post by: Bugpac ™ on January 09, 2009, 09:01:54 AM
I use ad managment to display sponsors and google, I have 4 sponsors and i select all of them to display on the message index, and the post index, is there anyway to keep it like this as they come up random, but make it so they can not be seen in one individual boar, my sponsors have there own board, and it is not fitting for anothers add to be displayed on there message index...

www.dtsfab.com
Title: Re: Ad Management mod
Post by: midas on January 09, 2009, 09:29:54 AM
Quote from: Bugpac ™ on January 09, 2009, 09:01:54 AM
I use ad managment to display sponsors and google, I have 4 sponsors and i select all of them to display on the message index, and the post index, is there anyway to keep it like this as they come up random, but make it so they can not be seen in one individual boar, my sponsors have there own board, and it is not fitting for anothers add to be displayed on there message index...

www.dtsfab.com

You can select which board/s an ad displays on by Admin/Ad Management/Add Ads/then type in the boad(boards) you wish the ad to be displayed on (the relevant text to look at is "Which boards should this ad display in?").

Hope I've helped.
Title: Re: Ad Management mod
Post by: danewfie on January 09, 2009, 10:09:55 AM
Quote from: Dougster on December 20, 2008, 06:11:04 PM
Quote from: Dougster on December 19, 2008, 05:12:19 PM
Quote from: Dougster on December 18, 2008, 09:26:24 AM
Hi,

I have a problem with my ad mod not showing.

I recently installed forum version 1.1.7 but the database was older
so the themes and source files are 1.1.

I'm wondering if that is why it is not allowing me to add my ads or adsense?

In packages it is showing as "installed" but on the left in the administration
panel where it had been showing before the new install, to allow configuring of ads and to show the adsense... it is not showing.

How can I get the mod to show in admin  so that I can begin serving my
adsense ads again on all the pages?

Still need to know why my ads or ad mod is not showing on the forum?


Answers anyone at all?



I have the exact same problem. version 1.1.7 is installed .. the package installed fine.

no link to access add management.

all files are updated, all database tables were inserted.

the only thing i can think of is the server cache. But that was cleared and still nothing. Anybody have any ideas?
Title: Re: Ad Management mod
Post by: Bugpac ™ on January 09, 2009, 12:01:43 PM
Quote from: midas on January 09, 2009, 09:29:54 AM
Quote from: Bugpac ™ on January 09, 2009, 09:01:54 AM
I use ad managment to display sponsors and google, I have 4 sponsors and i select all of them to display on the message index, and the post index, is there anyway to keep it like this as they come up random, but make it so they can not be seen in one individual boar, my sponsors have there own board, and it is not fitting for anothers add to be displayed on there message index...

www.dtsfab.com

You can select which board/s an ad displays on by Admin/Ad Management/Add Ads/then type in the boad(boards) you wish the ad to be displayed on (the relevant text to look at is "Which boards should this ad display in?").

Hope I've helped.

thank you, I new i could do that, was looking for the easy way.... :D That is what i am going to do tho....
Title: Re: Ad Management mod
Post by: midas on January 09, 2009, 02:22:40 PM
Bugpac, I know what you mean, it'd be nice if we could exempt some boards from displaying ads.  Maybe the mod's creator will read this and add an exempt function. (edited to add: I've put in a feature request).

Danewfie, I had a similar problem when I first installed it (quite a while ago).  I think I solved it by setting the forum's default language to English (i.e not UTF-8).  To do this go to Admin/Server Settings/Core Configuration and look at item 14, "Default Forum Language."  If that fails, download the package to your desktop, open it up and check for manual installation instructions (if any).  Remember to back-up any files changed.

Another place you might look for manual install instructions needed when a custom theme is being used is the ad mod support forum (http://www.smfads.com/forums/index.php?topic=1930.0)
Title: Re: Ad Management mod
Post by: hl90 on January 11, 2009, 02:35:14 PM
Hi want to the ad mod in my forum. I use a theme called safi-multicolor. Where do I need to upload it? In the theme map?
Title: Re: Ad Management mod
Post by: midas on January 12, 2009, 12:40:50 PM
Quote from: hl90 on January 11, 2009, 02:35:14 PM
Hi want to the ad mod in my forum. I use a theme called safi-multicolor. Where do I need to upload it? In the theme map?

Install it as you would do any other package.  When using non-default themes you need to edit the index.template.php to include the button code for the mod installed.  Usually, nothing more needs to be done.  Check the manual installation instructions for individual mods and look specifically for any changes to index.template.php.
Title: Re: Ad Management mod
Post by: needhelpplease on January 12, 2009, 05:02:34 PM
help i can't find it
i install already
Quoteo add your ads in this version is quite simple. Go into the Admin panel of SMF and under the Configuration heading click on Ad Management then click on Add Ads. Under this tab you will see several sections, the first being Name. This should be filled in with what you want to call this particular ad. For example, if it's Google ads you might want to type "Google" (no quotes). This is done to identify the ad code so that you can easily edit it later on, or to see reports on your ad.

I can't see it on my configuration... there's no ad management i've installed

0.     Ad Managment      2.3

they showed the green light so it's perfectly installed
but I see nothing can somebody help thxxxxx
Title: Re: Ad Management mod
Post by: shalkith on January 12, 2009, 06:13:28 PM
Quote from: danewfie on January 09, 2009, 10:09:55 AM
Quote from: Dougster on December 20, 2008, 06:11:04 PM
Quote from: Dougster on December 19, 2008, 05:12:19 PM
Quote from: Dougster on December 18, 2008, 09:26:24 AM
Hi,

I have a problem with my ad mod not showing.

I recently installed forum version 1.1.7 but the database was older
so the themes and source files are 1.1.

I'm wondering if that is why it is not allowing me to add my ads or adsense?

In packages it is showing as "installed" but on the left in the administration
panel where it had been showing before the new install, to allow configuring of ads and to show the adsense... it is not showing.

How can I get the mod to show in admin  so that I can begin serving my
adsense ads again on all the pages?

Still need to know why my ads or ad mod is not showing on the forum?


Answers anyone at all?



I have the exact same problem. version 1.1.7 is installed .. the package installed fine.

no link to access add management.

all files are updated, all database tables were inserted.

the only thing i can think of is the server cache. But that was cleared and still nothing. Anybody have any ideas?


I'm seeing the same thing on my end. No Link to manage them under configuration... is there a fix for this?
Title: Re: Ad Management mod
Post by: GGC on January 12, 2009, 08:42:27 PM
I've added this and changing to normal "English" let me see the CP, I added a few but they don't show. Any ideas?
Title: Re: Ad Management mod
Post by: catfished on January 13, 2009, 03:43:04 PM
QuoteI have the exact same problem. version 1.1.7 is installed .. the package installed fine.

no link to access add management.


all files are updated, all database tables were inserted.

Same problem here. I have it on my 1.1.7 forum but it's been active way before 1.1.7 came out and it's fine but I just installed it on another 1.1.7 forum and it's not accessible.??????????????????????
Title: Re: Ad Management mod
Post by: Bigguy on January 13, 2009, 04:28:02 PM
I have notified the mod author of this problem and things will be checked out.
Title: Re: Ad Management mod
Post by: Ganx on January 13, 2009, 06:51:09 PM
Hiya guys, Have tried the mod, downloaded it and now it is in the "browse package" folder. When i click APPLY MOD, enter the ftp info this the list of error messages i get: Looks like a ftp error, but checked it doubled checked trie about 15 times!

  [/quote] Ganx   Today at 01:44:15 AM 
41.245.240.184     05b182c510233c1c577e203a49ed9e3c 
http://sascams.co.za/forum/index.php?action=packages;sa=install;package=ad_mod_1-1-x_v2-3.zip;sesc 
2: fclose(): supplied argument is not a valid stream resource
File: /home/sascams/public_html/forum/Sources/Subs-Package.php
Line: 1908

   Ganx   Today at 01:44:15 AM 
41.245.240.184     05b182c510233c1c577e203a49ed9e3c 
http://sascams.co.za/forum/index.php?action=packages;sa=install;package=ad_mod_1-1-x_v2-3.zip;sesc 
2: fopen(/home/sascams/public_html/forum/Themes/default/MessageIndex.template.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/sascams/public_html/forum/Sources/Subs-Package.php
Line: 1901

QuoteHiya guys resolved this one.. thanks!!!
Title: Re: Ad Management mod
Post by: midas on January 13, 2009, 07:35:18 PM
Quote from: GGC on January 12, 2009, 08:42:27 PM
I've added this and changing to normal "English" let me see the CP, I added a few but they don't show. Any ideas?

Some ad provider's ads don't show up immediately.  For example, Google and Adbrite can take a few hours to become active.  Test the mod by trying to display a small jpeg (any bit of html or bbcode can be displayed - I've previously used it to display Socialmarker and AddThis buttons).

PS - Changing the forum's language from UTF-8 to non-UTF-8 worked for me too (posted it above but I don't think many are reading the thread).

PPS - Remember you can postion your ads left, center or right of their fields by embedding them in a div e.g <div align="left">AD CODE HERE</div> or <<div align="center">AD CODE HERE</div> or <div align="right">AD CODE HERE</div>
Title: Re: Ad Management mod
Post by: thenerd on January 14, 2009, 03:51:27 PM
Thanks for the great mod.
Title: Re: Ad Management mod
Post by: Forgotten_1 on January 16, 2009, 11:25:51 AM
Great mod from what I can see, only question I have is:

On SMF v1.1.7 where can I access the mod to use it?
Title: Re: Ad Management mod
Post by: chakru on January 16, 2009, 01:30:45 PM
I tried installing this mod on my new smf 1.1.7 but it doesnot seem to work!!

any help please
Title: Re: Ad Management mod
Post by: ampedm on January 18, 2009, 05:35:01 AM
Possible Bug

Not sure if this reported or not but there is a extra:

echo '</div>';

around line 697 ... the last edit line in Display.template.php

I noticed this because  my CSS-heavy theme was broken after i installed this mod on the post pages only. (SMF 2.0 Beta 4) using the overview theme by dzinerstudio.
Title: Re: Ad Management mod
Post by: bhsreptiles on January 18, 2009, 12:46:01 PM
cant seem to be able to get manual install instructions for 1.1.7
Title: Re: Ad Management mod
Post by: ces on January 18, 2009, 02:35:41 PM
hey guys hopefully somebody can help me with this i have been trying for 2 weeks and keep getting this error and have no idea what to do  i run smf 2.4

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

I ALSO GET THIS:

1.     Execute Code     install.php     
*    2.    Execute Modification    ./index.php    Test successful
      1.    Add After    ./index.php    Test successful
      2.    Add After    ./index.php    Test successful
      3.    Add After    ./index.php    Test successful
*    3.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Add After    ./Sources/Admin.php    Test successful
      2.    Add After    ./Sources/Admin.php    Test successful
*    4.    Execute Modification    ./Themes/default/index.template.php    Test successful
      1.    Add After    ./Themes/default/index.template.php    Test successful
      2.    Replace    ./Themes/default/index.template.php    Test successful
      3.    Add After    ./Themes/default/index.template.php    Test successful
      4.    Add After    ./Themes/default/index.template.php    Test successful
      5.    Add Before    ./Themes/default/index.template.php    Test successful
*    5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
      1.    Add Before    ./Themes/default/BoardIndex.template.php    Test successful
      2.    Add After    ./Themes/default/BoardIndex.template.php    Test successful
*    6.    Execute Modification    ./Themes/default/Display.template.php    Test failed
      1.    Add After    ./Themes/default/Display.template.php    Test failed
      2.    Replace    ./Themes/default/Display.template.php    Test successful
      3.    Replace    ./Themes/default/Display.template.php    Test successful
*    7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
      1.    Add After    ./Themes/default/MessageIndex.template.php    Test successful
      2.    Add After    ./Themes/default/MessageIndex.template.php    Test successful
*    8.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
      1.    Add After    ./Sources/ManagePermissions.php    Test successful
   9.    Extract File    ./Sources/Ads.php    
   10.    Extract File    ./Sources/LoadAds.php    
   11.    Extract File    ./Themes/default/Ads.template.php    
   12.    Extract File    ./Themes/default/languages/Ads.english.php    
   13.    Extract File    ./Themes/default/languages/Ads.english-utf8.php
Title: Re: Ad Management mod
Post by: KrisBG on January 19, 2009, 05:28:05 AM
Quote from: chakru on January 16, 2009, 01:30:45 PM
I tried installing this mod on my new smf 1.1.7 but it doesnot seem to work!!

any help please

I use the same version of SMF 1.1.7.
Ad Management  installation is successful but the problem is not anything out of the administrative panel to add the ads.
Can a little help where, what should be changed to work.
Title: Re: Ad Management mod
Post by: abcx on January 19, 2009, 05:36:34 AM
In the installation instruction of Ad Management 2.3.3 for SMF 1.1.7 there is a section that says:

Code
install.php
This file should not be able to execute standalone. You may have to run the following queries manually.


Query: [Select]
CREATE TABLE IF NOT EXISTS {$db_prefix}ads (ADS_ID mediumint unsigned NOT NULL auto_increment,NAME tinytext NOT NULL,CONTENT text NOT NULL,BOARDS tinytext,POSTS tinytext,HITS mediumint NOT NULL default '0',TYPE smallint(4) NOT NULL default '0',show_index smallint(4) NOT NULL default '0',show_board smallint(4) NOT NULL default '0',show_threadindex smallint(4) NOT NULL default '0',show_lastpost smallint(4) NOT NULL default '0',show_thread smallint(4) NOT NULL default '0',show_bottom smallint(4) NOT NULL default '0',show_welcome smallint(4) NOT NULL default '0',show_topofpage smallint(4) NOT NULL default '0',show_towerright smallint(4) NOT NULL default '0',show_towerleft smallint(4) NOT NULL default '0',show_betweencategories smallint(4) NOT NULL default '0',show_underchildren smallint(4) NOT NULL default '0',PRIMARY KEY (ADS_ID))
Query: [Select]
CREATE TABLE IF NOT EXISTS {$db_prefix}ads_settings (variable tinytext NOT NULL,value text NOT NULL,PRIMARY KEY (variable(30)))
Query: [Select]
ALTER IGNORE TABLE {$db_prefix}adsADD   show_lastpost smallint(4) NOT NULL default '0' AFTER show_threadindex
Query: [Select]
ALTER IGNORE TABLE {$db_prefix}adsADD   CATEGORY tinytext AFTER POSTS
Query: [Select]
ALTER IGNORE TABLE {$db_prefix}adsADD   show_underchildren smallint(4) NOT NULL default '0'
Query: [Select]
INSERT IGNORE INTO {$db_prefix}settings(variable, value)VALUES ('ads_displayAdsAdmin', '0'),('ads_updateReports', '0'),('ads_quickDisable', '0'),('ads_lookLikePosts'

Can someone please explain what I am suppose to do? How to execute standalone / run the queries manually? Thanks!
Title: Re: Ad Management mod
Post by: coucnilhomeswap on January 19, 2009, 09:05:06 AM
ca someone help me please. ive installed it correctly and now i get this error.

"Table 'a5512024_smf9.smf_ads' doesn't exist
File: /home/a5512024/public_html/Sources/LoadAds.php
Line: 33

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php."

I personally can not run MySql queries
Title: Re: Ad Management mod
Post by: Majo0od on January 19, 2009, 02:09:23 PM
Thats the same error I got, how do I fix that?
Title: Re: Ad Management mod
Post by: alex30 on January 20, 2009, 12:39:40 AM
Hi guys! Quick question.

Tried to install ad mod on my forum and I actually did that successfully, but once installed, it doesn't appear under "Themes and.." in admin panel. I have no idea why it's not there.

What do you think, what's wrong?
Title: Re: Ad Management mod
Post by: KrisBG on January 20, 2009, 02:21:51 AM
I think that this is not the Themes  because I switched all  Themes  and nothing happens again no where to administer ads.
I hope someone here to answer.
Whether there is someone who works Ad Management mod? ??? ??? ???
Title: Re: Ad Management mod
Post by: KrisBG on January 20, 2009, 05:04:09 AM
Quote from: alex30 on January 20, 2009, 12:39:40 AM
Hi guys! Quick question.

Tried to install ad mod on my forum and I actually did that successfully, but once installed, it doesn't appear under "Themes and.." in admin panel. I have no idea why it's not there.

What do you think, what's wrong?


I found where is the problem.
Must to be English and will be OK
Title: Re: Ad Management mod
Post by: alex30 on January 20, 2009, 11:55:59 AM
Quote from: KrisBG on January 20, 2009, 05:04:09 AM
Quote from: alex30 on January 20, 2009, 12:39:40 AM
Hi guys! Quick question.

Tried to install ad mod on my forum and I actually did that successfully, but once installed, it doesn't appear under "Themes and.." in admin panel. I have no idea why it's not there.

What do you think, what's wrong?


I found where is the problem.
Must to be English and will be OK

But I'm, using foreign language on forum. How do I enable it with different language?
Title: Re: Ad Management mod
Post by: sombra on January 20, 2009, 03:03:25 PM
i tried to look for the archives i need to edit so i can see the adds on the custom theme im using followd the intructions but im a little bit list here some lines i can find if somone can give me a hand here for what i saw in a before post im supost to edit every file in /Themes/default/ in my case darckbreak if im rigth theres only one in there

/Themes/darkbreak_20b4/index.template.php

so i think its the only one i need to edit but there are some lines i can find to edit so im looking for a little help here
Title: Re: Ad Management mod
Post by: KrisBG on January 20, 2009, 03:17:34 PM
So did the following:
Switched to English and administer ads, then switched again in another language. And the ads are OK but the problem is that I only see them that is an administrator. Which of course sucks.
So has anyone to say how to correct these ads  :o
Title: Re: Ad Management mod
Post by: alex30 on January 20, 2009, 11:14:39 PM
Anyone?
Title: Re: Ad Management mod
Post by: sanga282 on January 21, 2009, 03:09:51 PM
ive tried installing this mod and i get about a page of errors in my forum error log, also there is no way for me to actively change the adverts because i install the mod and basically the modification it should make, i.e giving me a menu that i can add an advert from doesnt appear, the link isnt appearing there
Title: Re: Ad Management mod
Post by: KrisBG on January 21, 2009, 04:21:18 PM
After the change in English right and who is entitled to see the ads. Corrected by premissinon and I guess everything will be fine.
Then Go back to your language.
Title: Re: Ad Management mod
Post by: sombra on January 21, 2009, 09:47:37 PM
ok hello. first i got to say nice mod good job.

i have it installed and working great on theme default but i got a problem i want it to work on other theme darkbreak and i read on som post before i need to edit 3 files that are ./Themes/default/

looking for them i only found one for the darbreak theme and my problem is that looking on the code i need to edit some lines are mising and i will need to ask whay can i do the first one is ok i fount it and added after the code that it told me

but then i went to the second one...

         <div class="windowbg2 clearfix">';

and cant find it if sombody can tell me what to do

then i have the 3 one tha is

   echo '
         </div>

---------------------------------------------------------------------

i founded 2 that are almost the same

   echo '
               </div>
            </div>
         </div>
      </div>
      <div id="bdy-l">
         <div id="bdy-r">
            <div id="bdy-tl">
               <div id="bdy-tr">
                  <div id="bodyarea">';

   // Show the navigation tree.
   theme_linktree();

}

function template_body_below()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '
                  </div>
               </div>
            </div>
         </div>
      </div>';

   // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must....

so were do i need to edit to be more exact?

then i went loooking for the 4 one and didint fount it either

   template_menu();

hope somone can help me hehe i dont know nothing about php but im triying :D
Title: Re: Ad Management mod
Post by: jay.clark on January 22, 2009, 08:20:34 AM
Ok, I managed to figure out server side includes, and it works pretty well so far.

I figured out why I was getting the orginal error message, when you set an add for PHP coding you do NOT surround the code with <?php xxxxxxx ?> duh !

I then tried to use the include command, only to find out that the include function is disabled by my hosting service.

What finally worked was using the file_get_contents.

So far I have gotten the RSS feed to display, as well as being able to to use the built in cgi random quote generator from the hosting service.

To make this stuff work you have to first create a page someplace on your server with the content you wish to display, the use the file_get_contents from within the ad settings

    Create page containing the information you want      to include, if you are going to use server side includes be sure to save      as *.shtml
In Ad Manager set type to php and insert the following code     
$a = file_get_contents("http://www.vegasbdsm.com/bots/snakewoman.shtml");
echo ($a);


Now I just need to find the donate button to back up my good feelings with some cash
Title: Re: Ad Management mod
Post by: saad_4rmpk on January 23, 2009, 03:00:23 PM
hi plz solve my problem see in this pic
(http://www.apnimuskaan.com/maza4fun/upload/untitled.bmp)
i have install ad manager now see in this pic
(http://www.apnimuskaan.com/maza4fun/upload/untitled1.bmp)
i can not see ad option plz help me out
Title: Re: Ad Management mod
Post by: eazy24 on January 24, 2009, 12:40:05 PM
Quoteauthor=KrisBG link=topic=68632.msg1885153#msg1885153
I use the same version of SMF 1.1.7.
Ad Management  installation is successful but the problem is not anything out of the administrative panel to add the ads.
Can a little help where, what should be changed to work.

look at server settings>>Default Forum Language
if you have default language english-utf8 than you just must make another file called Ads.english-utf8.php(same content inside like Ads.english.php have,only change name)  and upload it same place where is Ads.english.php
is.,that helped me to make visible on menu.
hope this helps anybody :)

Title: Re: Ad Management mod
Post by: sombra on January 25, 2009, 10:49:26 AM

ok hello. first i got to say nice mod good job.

i have it installed and working great on theme default but i got a problem i want it to work on other theme darkbreak and i read on som post before i need to edit 3 files that are ./Themes/default/

looking for them i only found one for the darbreak theme and my problem is that looking on the code i need to edit some lines are mising and i will need to ask whay can i do the first one is ok i fount it and added after the code that it told me

but then i went to the second one...

         <div class="windowbg2 clearfix">';

and cant find it if sombody can tell me what to do

then i have the 3 one tha is

   echo '
         </div>

---------------------------------------------------------------------

i founded 2 that are almost the same

   echo '
               </div>
            </div>
         </div>
      </div>
      <div id="bdy-l">
         <div id="bdy-r">
            <div id="bdy-tl">
               <div id="bdy-tr">
                  <div id="bodyarea">';

   // Show the navigation tree.
   theme_linktree();

}

function template_body_below()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '
                  </div>
               </div>
            </div>
         </div>
      </div>';

   // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must....

so were do i need to edit to be more exact?

then i went loooking for the 4 one and didint fount it either

   template_menu();

hope somone can help me hehe i dont know nothing about php but im triying :D


i havent figured out this problem if someone can help me

thanks
Title: Re: Ad Management mod
Post by: ohioreef on January 27, 2009, 12:09:42 PM
I installed this mod and it looks like it will fit my needs very well, however I do have a problem.

When I add an ad under ad management it adds it twice. If I try to delete one it deletes them both.

Any idea what might be wrong? I tried uninstalling and reinstalling but it did not help.
Title: Re: Ad Management mod
Post by: Hot Rides on January 27, 2009, 04:58:23 PM
Quote from: ohioreef on January 27, 2009, 12:09:42 PM
I installed this mod and it looks like it will fit my needs very well, however I do have a problem.

When I add an ad under ad management it adds it twice. If I try to delete one it deletes them both.

Any idea what might be wrong? I tried uninstalling and reinstalling but it did not help.
thats a theme issue, the code was added twice to all the spots it displays
Title: Re: Ad Management mod
Post by: w0lfman on January 27, 2009, 06:36:25 PM
Parse error installing the ad management mod on the default theme.  Error message below...



QuoteParse error: syntax error, unexpected '<' in /home/w0lfman/public_html/12thman/Sources/Load.php(1747) : eval()'d code(255) : eval()'d code on line 1


When i install the mod I get the following...

QuoteInstalling this package will perform the following actions:  Type Action Description
1. Execute Code install.php 
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/Subs.php Test successful
4. Execute Modification ./Themes/default/index.template.php Test failed
5. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
6. Execute Modification ./Themes/default/Display.template.php Test successful
7. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
8. Execute Modification ./Sources/ManagePermissions.php Test successful
9. Extract File ./Sources/Ads.php 
10. Extract File ./Sources/LoadAds.php 
11. Extract File ./Themes/default/Ads.template.php 
12. Extract File ./Themes/default/languages/Ads.english.php
Title: Re: Ad Management mod
Post by: ohioreef on January 27, 2009, 07:05:23 PM
Quote from: Hot Rides on January 27, 2009, 04:58:23 PM
thats a theme issue, the code was added twice to all the spots it displays

I am using the default theme which it is supposed to be compatible with. Any ideas/suggestions on how to fix it?
Title: Re: Ad Management mod
Post by: kingkingston on January 27, 2009, 07:36:33 PM
Having trouble adding the mod to babylon where do i start and how much work do i have to do ?

Title: Re: Ad Management mod
Post by: TW1ST3D on January 27, 2009, 10:25:19 PM
Quote from: kingkingston on January 27, 2009, 07:36:33 PM
Having trouble adding the mod to babylon where do i start and how much work do i have to do ?



I recently added this mod to a Heavily Modified 1.1.7 Babylon themed forum, Just start the install process that you normally would and when the install fails , make a note of the Templates that it fails in and just edit the files manually. Just be careful, and edit EXACTLY where it tells you to find / replace....................
Title: Re: Ad Management mod
Post by: kingkingston on January 27, 2009, 10:50:57 PM
Quote from: TW1ST3D on January 27, 2009, 10:25:19 PM
Quote from: kingkingston on January 27, 2009, 07:36:33 PM
Having trouble adding the mod to babylon where do i start and how much work do i have to do ?



I recently added this mod to a Heavily Modified 1.1.7 Babylon themed forum, Just start the install process that you normally would and when the install fails , make a note of the Templates that it fails in and just edit the files manually. Just be careful, and edit EXACTLY where it tells you to find / replace....................
the install doesn't fail,i don't get any red failed signs when ive installed it,it installs perfectly,i just found Ads.template.php is this where i need to add code etc ? for babylon to work,if i switch to the default the ads show up on the forum.
Title: Re: Ad Management mod
Post by: sombra on January 28, 2009, 06:20:06 AM
Quote from: sombra on January 21, 2009, 09:47:37 PM
ok hello. first i got to say nice mod good job.

i have it installed and working great on theme default but i got a problem i want it to work on other theme darkbreak and i read on som post before i need to edit 3 files that are ./Themes/default/

looking for them i only found one for the darbreak theme and my problem is that looking on the code i need to edit some lines are mising and i will need to ask whay can i do the first one is ok i fount it and added after the code that it told me

but then i went to the second one...

         <div class="windowbg2 clearfix">';

and cant find it if sombody can tell me what to do

then i have the 3 one tha is

   echo '
         </div>

---------------------------------------------------------------------

i founded 2 that are almost the same

   echo '
               </div>
            </div>
         </div>
      </div>
      <div id="bdy-l">
         <div id="bdy-r">
            <div id="bdy-tl">
               <div id="bdy-tr">
                  <div id="bodyarea">';

   // Show the navigation tree.
   theme_linktree();

}

function template_body_below()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '
                  </div>
               </div>
            </div>
         </div>
      </div>';

   // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must....

so were do i need to edit to be more exact?

then i went loooking for the 4 one and didint fount it either

   template_menu();

hope somone can help me hehe i dont know nothing about php but im triying :D


any ideas?
Title: Re: Ad Management mod
Post by: ohioreef on January 28, 2009, 11:41:20 AM
Not sure what the deal was, but when I installed the mod on my other site it worked fine. Great mod!!!!
Title: Re: Ad Management mod
Post by: nasirj on January 29, 2009, 05:42:16 AM
I'm using SMF1.1.7 and I don't see a user guide to install this mod. It's so painful looking for solutions here. anybody succeed on installing Ad Mod 2.3 on SMF 1.1.7 ? any help is much appreciated.
Title: Re: Ad Management mod
Post by: exp1969 on January 29, 2009, 06:36:46 AM
Hello,

I have a quick question about this mod.

I've installed it and everything work fine. The problem is, banner is only visible to me (administrator).

What should I do to make it visible to everyone?

Thank you very much!
Title: Re: Ad Management mod
Post by: ohioreef on January 29, 2009, 08:10:44 AM
You will need to Enable Ads in the permissions for each of your member groups. This mod apparently does not automatically enable it.
Title: Re: Ad Management mod
Post by: Black_Paolo on January 29, 2009, 02:23:36 PM
Hi, I would like to do a little modification.
I would like to create, and configure it via Admin Panel, another code to show in the search page, the profile page etc.
I know how to set the "visualization" code in this pages, but I was wondering how to "create" new "names", like "show_boardAds".
Where the code find "show_boardAds"  it check if the banner is activated via admin panel, and then put the banner. I would like to create for example "show_profileAds" and add the "modification page" in the admin panel.

Can you tell me where do I have to edit to add another "name" that I can set via Admin Panel?
Thank you in advance :D
Title: Re: Ad Management mod
Post by: alex30 on January 29, 2009, 02:49:20 PM
Guys, I have a question for you. How to remove ads from "registration page"?

I want to have that page without ads on the right.

Here is how it looks now - http://aquatropicalfish.com/forum/index.php?action=register

Thanks for help.
Title: Re: Ad Management mod
Post by: coucnilhomeswap on January 30, 2009, 09:53:01 AM
can this be used on custom themes and if so what files need editing
Title: Re: Ad Management mod
Post by: Bigguy on January 30, 2009, 05:44:50 PM
Yes it can and just the template files that are in your custom theme that are listed in the mod edits need modifying.
Title: Re: Ad Management mod
Post by: Black_Paolo on January 30, 2009, 05:55:16 PM
Quote from: Black_Paolo on January 29, 2009, 02:23:36 PM
Hi, I would like to do a little modification.
I would like to create, and configure it via Admin Panel, another code to show in the search page, the profile page etc.
I know how to set the "visualization" code in this pages, but I was wondering how to "create" new "names", like "show_boardAds".
Where the code find "show_boardAds"  it check if the banner is activated via admin panel, and then put the banner. I would like to create for example "show_profileAds" and add the "modification page" in the admin panel.

Can you tell me where do I have to edit to add another "name" that I can set via Admin Panel?
Thank you in advance :D
noone?
Title: Re: Ad Management mod
Post by: PerryM on January 31, 2009, 06:54:23 PM
Installed latest version fine on Beta 4 and on some PCs I get an error message when the ad displays:

"The current web page is trying to open a site in your Trusted sites list.  Do you want to allow this?

Current site: http://googleads.g.doubleclick.net
Trusted site: res://ieframe.dll

Any suggestions?

Thanks
Title: Re: Ad Management mod
Post by: tanner6565 on February 04, 2009, 01:39:20 PM
Hi,

I was wondering if there was a member of the admin that would be willing to log in to my site as an administrator and see why the ad management mod is not working.

Here is a copy the orginal post:-

I have installed the ad management mod version 1-1-x_v2-3, but the problem is it will not show up in the configuration section? I have also tried other versions of this mod but it says that they are incompatable to the version of SMF i am using which is 1.1.7.

I have tried installing this loads of times and only ever getting to to work once. When it worked the first time i closed the webpage down and went back in to the site later on and it had gone? But it was still installed.

I have had a look at the code behind the mod but I am no good at PHP what so ever.

I am installing it on the default theme but still nothing. So i am asking if anyone else on here has had the same problem and could help me out.

Cheers


Many thanks
Title: Re: Ad Management mod
Post by: godfly on February 04, 2009, 05:50:57 PM
I am experiencing the same problem described by the user below.

I have a fresh install of SMF 1.1.7 with SimplePortal  2.1.1.

After I install this Ad Management Mod, I noticed that it added an extra space under Configuration but it's an empty space. I tried uninstalling / reinstalling all mods but it's still the same thing.

There are no restrictions on my server so it's not a server issue.

Quote from: tanner6565 on February 04, 2009, 01:39:20 PM
Hi,

I was wondering if there was a member of the admin that would be willing to log in to my site as an administrator and see why the ad management mod is not working.

Here is a copy the orginal post:-

I have installed the ad management mod version 1-1-x_v2-3, but the problem is it will not show up in the configuration section? I have also tried other versions of this mod but it says that they are incompatable to the version of SMF i am using which is 1.1.7.

I have tried installing this loads of times and only ever getting to to work once. When it worked the first time i closed the webpage down and went back in to the site later on and it had gone? But it was still installed.

I have had a look at the code behind the mod but I am no good at PHP what so ever.

I am installing it on the default theme but still nothing. So i am asking if anyone else on here has had the same problem and could help me out.

Cheers


Many thanks
Title: Re: Ad Management mod
Post by: Mr. Toy on February 05, 2009, 02:04:17 AM
I'm just starting out with SMF, so I'm just learning my way around. I've installed this ad management mod and tested it. I find the ads only show up if I'm logged in as a user. No ads show if I'm not logged in. I don't even get a blank space where the ads should be. It's as if the ad code was never entered. I'm using the default template, so there shouldn't be any compatibility issues. The same thing happens in both IE and Firefox. Is there a fix?

forum.montereypeninsula.info is the location.
Title: Re: Ad Management mod
Post by: sombra on February 05, 2009, 07:24:24 AM
ok hello. first i got to say nice mod good job.

i have it installed and working great on theme default but i got a problem i want it to work on other theme darkbreak and i read on som post before i need to edit 3 files that are ./Themes/default/

looking for them i only found one for the darbreak theme and my problem is that looking on the code i need to edit some lines are mising and i will need to ask whay can i do the first one is ok i fount it and added after the code that it told me

but then i went to the second one...

         <div class="windowbg2 clearfix">';

and cant find it if sombody can tell me what to do

then i have the 3 one tha is

   echo '
         </div>

---------------------------------------------------------------------

i founded 2 that are almost the same

   echo '
               </div>
            </div>
         </div>
      </div>
      <div id="bdy-l">
         <div id="bdy-r">
            <div id="bdy-tl">
               <div id="bdy-tr">
                  <div id="bodyarea">';

   // Show the navigation tree.
   theme_linktree();

}

function template_body_below()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '
                  </div>
               </div>
            </div>
         </div>
      </div>';

   // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must....

so were do i need to edit to be more exact?

then i went loooking for the 4 one and didint fount it either

   template_menu();

hope somone can help me hehe i dont know nothing about php but im triying :D


i havent figured out this problem if someone can help me

thanks
Title: Re: Ad Management mod
Post by: riker on February 05, 2009, 09:33:13 AM
Screws my default theme up on beta4 and RC1 - see attachment.

Both sites are on different servers/hosts and both used the newest version of the mod
Title: Re: Ad Management mod
Post by: hartiberlin on February 06, 2009, 12:20:12 AM
I got it to work on SMF 2.0B4,
but now SMF 2.0 RC1 is out.

Does the Ads MOD need a change now ?

Will the SMF 2.0B4 Mod version also work with
SMF 2.0 RC1  ?

Many thanks.
Title: Re: Ad Management mod
Post by: riker on February 06, 2009, 03:07:25 AM
Quote from: hartiberlin on February 06, 2009, 12:20:12 AM
I got it to work on SMF 2.0B4,
but now SMF 2.0 RC1 is out.

Does the Ads MOD need a change now ?

Will the SMF 2.0B4 Mod version also work with
SMF 2.0 RC1  ?

Many thanks.

Does everything as before with me including the top right part of the theme screw up
Title: Re: Ad Management mod
Post by: alex30 on February 06, 2009, 03:19:01 AM
Can anyone help me?

Quote from: alex30 on January 29, 2009, 02:49:20 PM
Guys, I have a question for you. How to remove ads from "registration page"?

I want to have that page without ads on the right.

Here is how it looks now - http://aquatropicalfish.com/forum/index.php?action=register

Thanks for help.

Title: Re: Ad Management mod
Post by: coucnilhomeswap on February 06, 2009, 09:51:30 AM
Quote from: godfly on February 04, 2009, 05:50:57 PM
I am experiencing the same problem described by the user below.

I have a fresh install of SMF 1.1.7 with SimplePortal  2.1.1.

After I install this Ad Management Mod, I noticed that it added an extra space under Configuration but it's an empty space. I tried uninstalling / reinstalling all mods but it's still the same thing.

There are no restrictions on my server so it's not a server issue.

Quote from: tanner6565 on February 04, 2009, 01:39:20 PM
Hi,

I was wondering if there was a member of the admin that would be willing to log in to my site as an administrator and see why the ad management mod is not working.

Here is a copy the orginal post:-

I have installed the ad management mod version 1-1-x_v2-3, but the problem is it will not show up in the configuration section? I have also tried other versions of this mod but it says that they are incompatable to the version of SMF i am using which is 1.1.7.

I have tried installing this loads of times and only ever getting to to work once. When it worked the first time i closed the webpage down and went back in to the site later on and it had gone? But it was still installed.

I have had a look at the code behind the mod but I am no good at PHP what so ever.

I am installing it on the default theme but still nothing. So i am asking if anyone else on here has had the same problem and could help me out.

Cheers


Many thanks

to be quite honest it seems your are missing some language strings. im not sure its just a guess. the mod creator might be able to help better but remember they are quiet busy
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on February 06, 2009, 08:11:53 PM
Couldn't get the mod to work when loaded with fantastico, but 2.0 using install.php works great.

Your mod may help feed my family and I thank you. Is there somewhere I can make a donation when I get my first ppc check?

Rick
Title: Re: Ad Management mod
Post by: ApplianceJunk on February 06, 2009, 08:33:37 PM
Quote from: KirkhamsEbooks on February 06, 2009, 08:11:53 PM
Is there somewhere I can make a donation when I get my first ppc check?

Rick

You can find his paypal donation button at his site.
http://www.smfads.com/forums/
Title: Re: Ad Management mod
Post by: Mystery? on February 07, 2009, 12:30:12 AM
Are there any plans of updating this mod for SMF 2.0 RC1?
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on February 07, 2009, 02:51:58 AM
I'm running it on 2.0 right now

Rick
Title: Re: Ad Management mod
Post by: riker on February 07, 2009, 07:31:17 AM
Quote from: KirkhamsEbooks on February 07, 2009, 02:51:58 AM
I'm running it on 2.0 right now

Rick

Well it looks like I was right because he's working on a update.  He said the script was written with 1.1 in mind which explains the problems with the top right of the default 2.0 beta 4+ themes being messed up
Title: Re: Ad Management mod
Post by: ohioreef on February 07, 2009, 10:05:13 AM
I currently have my ads displayed in the area just to the right of the "Unread posts since last visit" area. There is a white border around the ad banner. Is it possible to completely fill that area and not have a border?

Title: Re: Ad Management mod
Post by: riker on February 07, 2009, 12:11:36 PM
Quote from: ohioreef on February 07, 2009, 10:05:13 AM
I currently have my ads displayed in the area just to the right of the "Unread posts since last visit" area. There is a white border around the ad banner. Is it possible to completely fill that area and not have a border?

All I can tell you is what he told me, he's working on it and the update could be days or months.  He did mention a work around so I'd pop over to his site and ask about that if your in a rush
Title: Re: Ad Management mod
Post by: jay.clark on February 07, 2009, 06:36:30 PM
Quote
look at server settings>>Default Forum Language
if you have default language english-utf8 than you just must make another file called Ads.english-utf8.php(same content inside :)

Thanks, seems to have solved my problem, I was set for english-utf8 so switched to english and now I can see the ad manger control panel,  I am kinda wondering what I am going to loose by switching to english from the utf8 flavor, but that may be tomorrows problem, ad manager is GREAT, I am using it to serve News Feeds inside my forum.
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on February 07, 2009, 11:15:39 PM
Do what I do and use a test forum before uploading any mods to your primary forum

Rick
Title: Re: Ad Management mod
Post by: MultiformeIngegno on February 08, 2009, 06:19:19 AM
Quote from: Mystery? on February 07, 2009, 12:30:12 AM
Are there any plans of updating this mod for SMF 2.0 RC1?
Quote!! :D
Title: Re: Ad Management mod
Post by: eric1234 on February 08, 2009, 06:49:53 AM
Hi,
   Can somebody help me? I had manually modify the theme and i found that the ads still dun show out in my forum !!
my forum link : www.anixekai.110mb.com
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on February 08, 2009, 01:55:12 PM
Did you use fantstico to install yours? I couldn't get mine to work with a fantastico install. Of course I'm a newbie, but I'll never install anything with fantastico again

Rick
Title: Re: Ad Management mod
Post by: Bigdealer on February 08, 2009, 07:07:25 PM
Heya i am currently using this mod can you tell me please how to center the adverts??

I mean they come to the right and are not centered?

The theme i am using is Avare Mu

The link of my forum is

http://www.eastenderstvsoap.co.uk/Forum/

Please help!! :)

I cant seem to find it anywhere in the ad management area
Title: Re: Ad Management mod
Post by: eric1234 on February 08, 2009, 11:44:32 PM
Hi,
   Can somebody help me? I had manually modify the theme and i found that the ads still dun show out in my forum !! What should i do??? !!!!
my forum link : www.anixekai.110mb.com
Title: Re: Ad Management mod
Post by: riker on February 09, 2009, 11:59:16 AM
Quote from: Bigdealer on February 08, 2009, 07:07:25 PM
Heya i am currently using this mod can you tell me please how to center the adverts??

I mean they come to the right and are not centered?

The theme i am using is Avare Mu

The link of my forum is

http://www.eastenderstvsoap.co.uk/Forum/

Please help!! :)

I cant seem to find it anywhere in the ad management area
Add this before <p align="center">
Title: Re: Ad Management mod
Post by: alex30 on February 09, 2009, 12:01:00 PM
Guys, I have a question for you. How to remove ads from "registration page"?

I want to have that page without ads on the right.

Here is how it looks now - http://aquatropicalfish.com/forum/index.php?action=register

Thanks for help.
Title: Re: Ad Management mod
Post by: Goodman854 on February 09, 2009, 07:42:19 PM
8.     Execute Modification     ./Sources/ManagePermissions.php     Test failed
Help please.
Title: Re: Ad Management mod
Post by: eric1234 on February 10, 2009, 11:09:09 AM
Hi,
   Can somebody help me? I had manually modify the theme and i found that the ads still dun show out in my forum !! What should i do??? !!!!
my forum link : www.anixekai.110mb.com
Title: Re: Ad Management mod
Post by: weisus on February 10, 2009, 01:00:59 PM
Hi,
Quick question:
Is this mod compatible with 1.1.8? I just downloaded it and when I applied the mod I received this error:
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Here is the failed action:
5.   Execute Modification   ./Themes/default/BoardIndex.template.php   Test failed

I have made some code modifications in this file, could this be the problem?
Title: Re: Ad Management mod
Post by: JamesD01 on February 10, 2009, 07:13:27 PM
Is this mod compatable with SMF 2 RC1?
(Doesn't state it does on the mod page yet.)
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on February 10, 2009, 08:08:28 PM
Quote from: JamesD01 on February 10, 2009, 07:13:27 PM
Is this mod compatable with SMF 2 RC1?
(Doesn't state it does on the mod page yet.)

Worked for 2.0 beta

Rick
Title: Re: Ad Management mod
Post by: weisus on February 10, 2009, 09:15:04 PM
*&T^%&*,
Now I'm getting a Template Parse Error when trying to navigate my forum, I wish to God I had never come across this mod.
Title: Re: Ad Management mod
Post by: JamesD01 on February 10, 2009, 09:24:11 PM
Quote from: KirkhamsEbooks on February 10, 2009, 08:08:28 PM
Quote from: JamesD01 on February 10, 2009, 07:13:27 PM
Is this mod compatable with SMF 2 RC1?
(Doesn't state it does on the mod page yet.)

Worked for 3.0 beta

Rick
Yeah but that doesn't mean it works for RC1?
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on February 11, 2009, 12:43:23 AM
Just installed it into my freeware forum. No problem

Try it on a test forum first

Rick
Title: Re: Ad Management mod
Post by: eric1234 on February 11, 2009, 01:41:13 AM
Hi,
   Can somebody help me? I had manually modify the theme and i found that the ads still dun show out in my forum !! What should i do??? !!!!
my forum link : www.anixekai.110mb.com
Title: Re: Ad Management mod
Post by: riker on February 11, 2009, 05:46:09 AM
Quote from: JamesD01 on February 10, 2009, 09:24:11 PM
Quote from: KirkhamsEbooks on February 10, 2009, 08:08:28 PM
Quote from: JamesD01 on February 10, 2009, 07:13:27 PM
Is this mod compatable with SMF 2 RC1?
(Doesn't state it does on the mod page yet.)

Worked for 3.0 beta

Rick
Yeah but that doesn't mean it works for RC1?

Correct, beta 3 didn't have html theming so it was the last 2.0 Ad Management worked on
Title: Re: Ad Management mod
Post by: riker on February 11, 2009, 05:48:15 AM
Quote from: alex30 on February 10, 2009, 07:29:19 PM
Guys, I have a question for you. How to remove ads from "registration page"?

I want to have that page without ads on the right.

Here is how it looks now - http://aquatropicalfish.com/forum/index.php?action=register

Thanks for help.

For crying out loud will you stop spamming the thread by pasting this everywhere.  Go to the authers website and ask him but expect a long wait
Title: Re: Ad Management mod
Post by: eric1234 on February 11, 2009, 11:00:33 AM
Quote from: eric1234 on February 11, 2009, 01:41:13 AM
Hi,
   Can somebody help me? I had manually modify the theme and i found that the ads still dun show out in my forum !! What should i do??? !!!!
my forum link : www.anixekai.110mb.com

Can somebody help me please..!! I'm in desperate..!!  :'(
Title: Re: Ad Management mod
Post by: LG on February 12, 2009, 05:23:25 AM
It is not working properly on SMF 1.1.8.
SMF 1.1.8  is not listed as "Compatible With" but 1.1.8 is the latest stable version recommended by SMF.

It shows ads only for admin.

Any help here ?

Thanks in advance.

Lara
Title: Re: Ad Management mod
Post by: weisus on February 12, 2009, 08:58:26 AM
LG's right, it doesn't seem to be compatible with 1.1.8; but if you go to Germ's forum for ad support, you may find more answers:
http://www.smfads.com/forums/index.php?PHPSESSID=74bb9363b2e4564a70058c535319e64d& (http://www.smfads.com/forums/index.php?PHPSESSID=74bb9363b2e4564a70058c535319e64d&)
also if your running 1.1.8 you may want to check out a post by Nite0859; http://www.simplemachines.org/community/index.php?topic=153647.0 (http://www.simplemachines.org/community/index.php?topic=153647.0) , he explains a pretty simple process for manually inserting ads into your forum, in the header/footer, after 1st posts etc.
Title: Re: Ad Management mod
Post by: LG on February 12, 2009, 01:31:36 PM
Thank You weisus.

I have asked creator of this mod on his forum.
We will see.

Lara
Title: Re: Ad Management mod
Post by: LG on February 12, 2009, 01:39:29 PM
Well, I have found this :
"Go to Admin > Permissions and click "modify" on the group you want to show the ads to. Enable the permission "view ads"."

and it is working.

So, it is compatible with 1.1.8  ?

Lara
Title: Re: Ad Management mod
Post by: Bigdealer on February 13, 2009, 09:11:19 AM
Why am i not getting paid for the adverts?? Is this some sort of joke? A friend of mine clicked an advert becasue i asked him to check whther its working and i dont get the money for that advert. No wonder i havnt been making much!

Any one know?
Title: Re: Ad Management mod
Post by: eric1234 on February 13, 2009, 12:20:47 PM
Quote from: eric1234 on February 11, 2009, 11:00:33 AM
Quote from: eric1234 on February 11, 2009, 01:41:13 AM
Hi,
   Can somebody help me? I had manually modify the theme and i found that the ads still dun show out in my forum !! What should i do??? !!!!
my forum link : www.anixekai.110mb.com

Can somebody help me please..!! I'm in desperate..!!  :'(
Title: Re: Ad Management mod
Post by: jossanaijr on February 13, 2009, 02:02:49 PM
Is this working with SMF 2.0 RC1?
Title: Re: Ad Management mod
Post by: riker on February 13, 2009, 03:08:14 PM
Quote from: jossanaijr on February 13, 2009, 02:02:49 PM
Is this working with SMF 2.0 RC1?
Yes but it screws up the default theme on the top right because it was designed around the 1.1 theme. There supposed to be working on a Beta4/RC1 compatible 1 but can't say when it will be out
Title: Re: Ad Management mod
Post by: fmofmpls on February 13, 2009, 04:01:54 PM
This mod works just fine on 1.1.8. Just installed it today on a heavily modded forum using multi color default themes. Works like a charm!
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on February 13, 2009, 04:05:12 PM
Quote from: Bigdealer on February 13, 2009, 09:11:19 AM
Why am i not getting paid for the adverts?? Is this some sort of joke? A friend of mine clicked an advert becasue i asked him to check whther its working and i dont get the money for that advert. No wonder i havnt been making much!

Any one know?

What advertisement system are you using. If it's google adsense did you sign up for that and are you using the code you setup in google for pay per click?

Rick
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on February 13, 2009, 04:06:50 PM
Quote from: riker on February 13, 2009, 03:08:14 PM
Quote from: jossanaijr on February 13, 2009, 02:02:49 PM
Is this working with SMF 2.0 RC1?
Yes but it screws up the default theme on the top right because it was designed around the 1.1 theme. There supposed to be working on a Beta4/RC1 compatible 1 but can't say when it will be out

I hadn't noticed that but it's a small price to pay for such a great mod

Rick
Title: Re: Ad Management mod
Post by: Sir_Trout on February 14, 2009, 11:51:35 AM
Quote from: KirkhamsEbooks on February 13, 2009, 04:05:12 PM
Quote from: Bigdealer on February 13, 2009, 09:11:19 AM
Why am i not getting paid for the adverts?? Is this some sort of joke? A friend of mine clicked an advert becasue i asked him to check whther its working and i dont get the money for that advert. No wonder i havnt been making much!

Any one know?

What advertisement system are you using. If it's google adsense did you sign up for that and are you using the code you setup in google for pay per click?

Rick

I have been getting nice checks from Google every few months.   Yahoo not so many.

Title: Re: Ad Management mod
Post by: BostWick on February 14, 2009, 07:46:07 PM
Ugh, I'm on 1.1.8 and when I install this mod it says that the following:

   Type     Action     Description
1.    Execute Code    install.php    
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/Subs.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
6.    Execute Modification    ./Themes/default/Display.template.php    Test successful
7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
8.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
9.    Extract File    ./Sources/Ads.php    
10.    Extract File    ./Sources/LoadAds.php    
11.    Extract File    ./Themes/default/Ads.template.php    
12.    Extract File    ./Themes/default/languages/Ads.english.php    

I continue with the install, but under member permissions there are no settings to change for this mod- which makes sense since it has problems with the Permissions file.

Any fix for this?
Title: Re: Ad Management mod
Post by: jossanaijr on February 15, 2009, 05:19:29 AM
Hi BostWick,
you need to manually edit your ManagePermissions.php .
Title: Re: Ad Management mod
Post by: eric1234 on February 15, 2009, 05:50:03 AM
Quote from: eric1234 on February 13, 2009, 12:20:47 PM
Quote from: eric1234 on February 11, 2009, 11:00:33 AM
Quote from: eric1234 on February 11, 2009, 01:41:13 AM
Hi,
   Can somebody help me? I had manually modify the theme and i found that the ads still dun show out in my forum !! What should i do??? !!!!
my forum link : www.anixekai.110mb.com

Can somebody help me please..!! I'm in desperate..!!  :'(

Some help here..!!
Title: Re: Ad Management mod
Post by: Bigdealer on February 15, 2009, 07:26:20 AM
Quote from: KirkhamsEbooks on February 13, 2009, 04:05:12 PM
Quote from: Bigdealer on February 13, 2009, 09:11:19 AM
Why am i not getting paid for the adverts?? Is this some sort of joke? A friend of mine clicked an advert becasue i asked him to check whther its working and i dont get the money for that advert. No wonder i havnt been making much!

Any one know?

What advertisement system are you using. If it's google adsense did you sign up for that and are you using the code you setup in google for pay per click?

Rick

Im using google adsense! Also yeah i am using the right code!
Title: Re: Ad Management mod
Post by: BostWick on February 15, 2009, 10:01:40 AM
Quote from: jossanaijr on February 15, 2009, 05:19:29 AM
Hi BostWick,
you need to manually edit your ManagePermissions.php .

Ok thanks! I'll try that and tell you how it went.

Edit: It worked, thanks a ton. I know it may seem simple but you just made the difference in me making money or not.
Title: Re: Ad Management mod
Post by: derby on February 15, 2009, 11:32:17 AM
please how do i enable ads Management Mod to Dilber Mc
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on February 15, 2009, 01:08:00 PM
Quote from: Bigdealer on February 15, 2009, 07:26:20 AM
Quote from: KirkhamsEbooks on February 13, 2009, 04:05:12 PM
Quote from: Bigdealer on February 13, 2009, 09:11:19 AM
Why am i not getting paid for the adverts?? Is this some sort of joke? A friend of mine clicked an advert becasue i asked him to check whther its working and i dont get the money for that advert. No wonder i havnt been making much!

Any one know?

What advertisement system are you using. If it's google adsense did you sign up for that and are you using the code you setup in google for pay per click?

Rick

Im using google adsense! Also yeah i am using the right code!

If you're using the right code there shouldn't be a problem. Be sure to check your reports and also read about when adsense pays you etc

Rick
Title: Re: Ad Management mod
Post by: Bigdealer on February 15, 2009, 03:47:25 PM
Quote from: KirkhamsEbooks on February 15, 2009, 01:08:00 PM
Quote from: Bigdealer on February 15, 2009, 07:26:20 AM
Quote from: KirkhamsEbooks on February 13, 2009, 04:05:12 PM
Quote from: Bigdealer on February 13, 2009, 09:11:19 AM
Why am i not getting paid for the adverts?? Is this some sort of joke? A friend of mine clicked an advert becasue i asked him to check whther its working and i dont get the money for that advert. No wonder i havnt been making much!

Any one know?

You know before i installed it one of the tests failed i didnt think much of it at that point. Could that be the problem?

What advertisement system are you using. If it's google adsense did you sign up for that and are you using the code you setup in google for pay per click?

Rick

Im using google adsense! Also yeah i am using the right code!

If you're using the right code there shouldn't be a problem. Be sure to check your reports and also read about when adsense pays you etc

Rick
Title: Re: Ad Management mod
Post by: phpMyTony on February 16, 2009, 09:21:45 AM
www.2.tonyperez.biz - I have activated it so that it appears at the top, in the welcome user bit, but it does not appear.Any help?
Title: Re: Ad Management mod
Post by: BostWick on February 17, 2009, 12:01:09 PM
Hmmm, for some reason the ads will only display under the navbar, and not on the side as towers when I have that activated.

Any help? Thanks.
Title: Re: Ad Management mod
Post by: JamesD01 on February 17, 2009, 02:14:20 PM
When can we expect it to work on RC1?
Title: Re: Ad Management mod
Post by: MultiformeIngegno on February 17, 2009, 05:26:20 PM
Quote from: JamesD01 on February 17, 2009, 02:14:20 PM
When can we expect it to work on RC1?
Quote!!!
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on February 17, 2009, 05:32:28 PM
Just noticed using 2.0 RC1 the ads only show up if you're logged in. As mentioned previously most visitors won't even join. Is there a fix for this?

Rick
Title: Re: Ad Management mod
Post by: JamesD01 on February 17, 2009, 07:33:59 PM
Quote from: KirkhamsEbooks on February 17, 2009, 05:32:28 PM
Just noticed using 2.0 RC1 the ads only show up if you're logged in. As mentioned previously most visitors won't even join. Is there a fix for this?
Look in the permissions for Guests. ;)

Also it could be a bug.. Ad management mod hasn't been confirmed to work correctly with RC1 yet. (Look on the mod page). ;)
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on February 17, 2009, 09:35:22 PM
Not in Guest permissions, but thanks for your time

Rick
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on February 17, 2009, 10:04:51 PM
FOUND IT!

It is in Guest Permissions BUT you have to change the view to Classic

Rick
Title: Re: Ad Management mod
Post by: GravuTrad on February 18, 2009, 08:24:40 PM
Hi.

why manual editing for this mod on mods site is not accessible for 1.1 branch but only for 2.0 branch?
Title: Re: Ad Management mod
Post by: bullbreedluverz on February 18, 2009, 08:32:53 PM
when you click submit for the manual instructions the radio buttons above must be selected for the right version - click the top button to select 1.1.x version
Title: Re: Ad Management mod
Post by: GravuTrad on February 18, 2009, 08:52:10 PM
i know well this but for all the 1 branch you have:

QuoteSorry, but this modification does not appear to be compatible with the selected version.
Title: Re: Ad Management mod
Post by: kenang82 on February 21, 2009, 02:49:58 AM
I am using smf 1.1.8

The "Ad Management" option does not appear under "configuration". I am not able to edit my previously added ads.

PLEASE ADVICE
Title: Re: Ad Management mod
Post by: eric1234 on February 22, 2009, 12:21:10 AM
Hi..can the lastest ads mod work with the 1.1.5 SMF version? If my forum is 1.15 then it mean after i modify the theme also it wont work right?
Title: Re: Ad Management mod
Post by: derby on February 22, 2009, 04:41:06 PM
CAN SOMEONE PLEASE HELP ME OUT MY ADS DOES NOT SHOW ON MY FORUM(SMF 1.1.8)
Title: Re: Ad Management mod
Post by: MultiformeIngegno on February 22, 2009, 05:46:58 PM
Finally, where the mod developers are??
Why they don't release a new version with fixes?
Title: Re: Ad Management mod
Post by: JamesD01 on February 22, 2009, 07:01:56 PM
Quote from: derby on February 22, 2009, 04:41:06 PM
CAN SOMEONE PLEASE HELP ME OUT MY ADS DOES NOT SHOW ON MY FORUM(SMF 1.1.8)
Do you have a link to your forum?

Also have you enabled it? And have you changed the permissions for the membergroups for them to see the adverts?

Quote from: lorenzone92 on February 22, 2009, 05:46:58 PM
Finally, where the mod developers are??
Why they don't release a new version with fixes?
I've been told there is going to be a new one being developed specially for SMF2 by jerm. Try his forum for support. ;)
http://www.smfads.com/
Title: Re: Ad Management mod
Post by: derby on February 22, 2009, 07:27:23 PM
this is the link to my forum www.derbjobs.com If u check it out u will see that the ads is not showing @all
Title: Re: Ad Management mod
Post by: JamesD01 on February 22, 2009, 07:49:53 PM
It might be a theme issue or a conflict between a different mod.
Have you added a advert in the ad management? Have you enabled ads for each membergroup in the permissions? (Classic view).

Also in which advert positions have you chosen?
I believe only a couple positions actually work on custom themes..
Title: Re: Ad Management mod
Post by: derby on February 22, 2009, 08:00:27 PM
@jamesD01 Can u help me in doing it if u re giving access to the admin panel?Pls
Title: Re: Ad Management mod
Post by: fotografo74 on February 23, 2009, 03:57:48 AM
Hi :-)
Thanks for this Mod.
I use it in SMF 1.1.7, it's ok.
In my forum test based to SMf 2RC1, i have a problem, like attached screenshot.
I used this code, in welcome area:

<div align="center"><a href="http://site affiliated......."><img src="http://www.macroforum.org/smf2rc/banner/magliani.jpg" border="0"></a></div>


Helps please!
Antonio
Title: Re: Ad Management mod
Post by: justanothertechy on February 26, 2009, 10:22:46 AM
Hey guys,

Ads seem to work great, this is a nice mod. One question though - when I'm signed in as Admin, the ads show up just fine. When I am signed in as a regular user, they are not. Any advice?

Thanks!
Title: Re: Ad Management mod
Post by: Ravac on February 26, 2009, 10:41:10 AM
Quote from: justanothertechy on February 26, 2009, 10:22:46 AM
Hey guys,

Ads seem to work great, this is a nice mod. One question though - when I'm signed in as Admin, the ads show up just fine. When I am signed in as a regular user, they are not. Any advice?

Thanks!

Did you check permissions, if i remember well, there you have to check permissions for groups...
Title: Re: Ad Management mod
Post by: justanothertechy on February 26, 2009, 10:48:01 AM
Thank you sir! I will look into that asap.

Back to the webcrafting.

EDIT: Worked like a charm - sorry folks work's a little stressful this morning so I'm all over the place. I probably should have figured that on my own. Thanks for the help!
Title: Re: Ad Management mod
Post by: sandmannd on February 26, 2009, 02:53:27 PM
My site is at www.chasintailfishin.com/forum and I can't get the ads to show up. Also, how do I put different banner ads showing on my home page under each board?
Title: Re: Ad Management mod
Post by: phoenixjay on February 26, 2009, 04:39:19 PM
Hi there,

I just installed the mod and everything appeared to go fine (it is showing as currently installed in the package manager).  However the ad management option isn't appearing iunder configuration (or anywhere else).

I am using SMF version 1.1.8 with the WMC theme by WannaBeDie

Hope that you can help.

Thanks

Jay
Title: Re: Ad Management mod
Post by: NetOnly on February 27, 2009, 06:24:37 PM
Do I have to add something to my template if I am not using the Default Template because I have this setup in 1.1.8, the permissions are set, it's installed but the ads are not showing up.

If there is something that needs to be added to the template, please let me know.
Title: Re: Ad Management mod
Post by: wolverine09 on February 28, 2009, 08:22:22 AM
Not showing up in 1.1.8. Thanks.
Title: Re: Ad Management mod
Post by: wickedstangs on February 28, 2009, 11:24:25 AM
tried to install on 2.0RC1 and did not work... How do I remove it?

Thanks
Title: Re: Ad Management mod
Post by: assam_siddibapa on March 01, 2009, 12:55:59 PM
Can you please edit the manual edits for me on the index.templeate ... as i am not able to find the edits there .
Title: Re: Ad Management mod
Post by: sandmannd on March 02, 2009, 07:59:16 PM
Quote from: sandmannd on February 26, 2009, 02:53:27 PM
My site is at www.chasintailfishin.com/forum and I can't get the ads to show up. Also, how do I put different banner ads showing on my home page under each board?

I got the ads to show up, but they are showing double now. As in two of the same mods. Has anyone else had this?
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on March 02, 2009, 08:38:16 PM
I had it happen when I selected the placement and the placement overlapped

Rick
Title: Re: Ad Management mod
Post by: sandmannd on March 03, 2009, 01:09:39 PM
Quote from: Hot Rides on January 27, 2009, 04:58:23 PM
Quote from: ohioreef on January 27, 2009, 12:09:42 PM
I installed this mod and it looks like it will fit my needs very well, however I do have a problem.

When I add an ad under ad management it adds it twice. If I try to delete one it deletes them both.

Any idea what might be wrong? I tried uninstalling and reinstalling but it did not help.
thats a theme issue, the code was added twice to all the spots it displays

I have this same issue. What do you edit to make this work properly?
Title: Re: Ad Management mod
Post by: wickedstangs on March 03, 2009, 01:11:25 PM
Can someone lend me a hand installing this on 2.0RC1 thanks
Title: Re: Ad Management mod
Post by: JamesD01 on March 03, 2009, 02:44:55 PM
Quote from: wolverine09 on February 28, 2009, 08:22:22 AM
Not showing up in 1.1.8. Thanks.
Tried setting all the permissions for all membergroups? What theme? Also a link to the forum would be good. ;)

Quote from: wickedstangs on March 03, 2009, 01:11:25 PM
Can someone lend me a hand installing this on 2.0RC1 thanks
Just install via the package manager, add a advert (remember you need a adsense account), check the placements you want (some don't work on custom themes) and add the code from the adsense site, enable adverts in the membergroup permissions for every group.

It's not hard really. ;) If you're still stuck you can PM me and I see what I can do. ;)
Title: Re: Ad Management mod
Post by: fotografo74 on March 03, 2009, 03:08:11 PM
Quote from: fotografo74 on February 23, 2009, 03:57:48 AM
Hi :-)
Thanks for this Mod.
I use it in SMF 1.1.7, it's ok.
In my forum test based to SMf 2RC1, i have a problem, like attached screenshot.
I used this code, in welcome area:

<div align="center"><a href="http://site affiliated......."><img src="http://www.macroforum.org/smf2rc/banner/magliani.jpg" border="0"></a></div>


Helps please!
Antonio
News about my problem please? :-)
Antonio
Title: Re: Ad Management mod
Post by: JamesD01 on March 03, 2009, 03:25:25 PM
Quote from: fotografo74 on March 03, 2009, 03:08:11 PM
Quote from: fotografo74 on February 23, 2009, 03:57:48 AM
Hi :-)
Thanks for this Mod.
I use it in SMF 1.1.7, it's ok.
In my forum test based to SMf 2RC1, i have a problem, like attached screenshot.
I used this code, in welcome area:

<div align="center"><a href="http://site affiliated......."><img src="http://www.macroforum.org/smf2rc/banner/magliani.jpg" border="0"></a></div>


Helps please!
Antonio
News about my problem please? :-)
Antonio
Did you put that in the advert or in the template code?
Title: Re: Ad Management mod
Post by: sandmannd on March 03, 2009, 08:02:49 PM
Quote from: sandmannd on March 02, 2009, 07:59:16 PM
Quote from: sandmannd on February 26, 2009, 02:53:27 PM
My site is at www.chasintailfishin.com/forum and I can't get the ads to show up. Also, how do I put different banner ads showing on my home page under each board?

I got the ads to show up, but they are showing double now. As in two of the same mods. Has anyone else had this?

Mine are now showing triple. How do I fix this please? I've tried unistalling and reinstalling the mod and that's when it went from double to triple. I really need help on this one please.
Title: Re: Ad Management mod
Post by: fotografo74 on March 04, 2009, 01:19:19 AM
Quote from: JamesD01 on March 03, 2009, 03:25:25 PM
Quote from: fotografo74 on March 03, 2009, 03:08:11 PM
Quote from: fotografo74 on February 23, 2009, 03:57:48 AM
Hi :-)
Thanks for this Mod.
I use it in SMF 1.1.7, it's ok.
In my forum test based to SMf 2RC1, i have a problem, like attached screenshot.
I used this code, in welcome area:

<div align="center"><a href="http://site affiliated......."><img src="http://www.macroforum.org/smf2rc/banner/magliani.jpg" border="0"></a></div>


Helps please!
Antonio
News about my problem please? :-)
Antonio
Did you put that in the advert or in the template code?
I put the code in the advert and select Show in welcome area. in my 1.1.7  forum the mod works ok. help please :-)
Title: Re: Ad Management mod
Post by: JamesD01 on March 04, 2009, 04:41:37 PM
Quote from: sandmannd on March 03, 2009, 08:02:49 PM
Quote from: sandmannd on March 02, 2009, 07:59:16 PM
Quote from: sandmannd on February 26, 2009, 02:53:27 PM
My site is at www.chasintailfishin.com/forum and I can't get the ads to show up. Also, how do I put different banner ads showing on my home page under each board?

I got the ads to show up, but they are showing double now. As in two of the same mods. Has anyone else had this?

Mine are now showing triple. How do I fix this please? I've tried unistalling and reinstalling the mod and that's when it went from double to triple. I really need help on this one please.
It seems the uninstall doesn't work, and basically when you installed after you tried to uninstall it; it added the code into the position on the default template again.

I haven't a clue how to correct this, better visit the authors website and seek support there. The Author rarely comes to this topic so best to ask at his support forum.
Title: Re: Ad Management mod
Post by: JamesD01 on March 04, 2009, 04:44:09 PM
Quote from: fotografo74 on March 04, 2009, 01:19:19 AM
Quote from: JamesD01 on March 03, 2009, 03:25:25 PM
Quote from: fotografo74 on March 03, 2009, 03:08:11 PM
Quote from: fotografo74 on February 23, 2009, 03:57:48 AM
Hi :-)
Thanks for this Mod.
I use it in SMF 1.1.7, it's ok.
In my forum test based to SMf 2RC1, i have a problem, like attached screenshot.
I used this code, in welcome area:

<div align="center"><a href="http://site affiliated......."><img src="http://www.macroforum.org/smf2rc/banner/magliani.jpg" border="0"></a></div>


Helps please!
Antonio
News about my problem please? :-)
Antonio
Did you put that in the advert or in the template code?
I put the code in the advert and select Show in welcome area. in my 1.1.7  forum the mod works ok. help please :-)

Did you change your theme since 1.1.7?
I'm not really sure what the cause of it is, could be the size of the advert banner, try a smaller sized advert perhaps. Or go to the authors support forum. ;)
Title: Re: Ad Management mod
Post by: sandmannd on March 04, 2009, 07:25:07 PM
Quote from: JamesD01 on March 04, 2009, 04:41:37 PM
Quote from: sandmannd on March 03, 2009, 08:02:49 PM
Quote from: sandmannd on March 02, 2009, 07:59:16 PM
Quote from: sandmannd on February 26, 2009, 02:53:27 PM
My site is at www.chasintailfishin.com/forum and I can't get the ads to show up. Also, how do I put different banner ads showing on my home page under each board?

I got the ads to show up, but they are showing double now. As in two of the same mods. Has anyone else had this?

Mine are now showing triple. How do I fix this please? I've tried unistalling and reinstalling the mod and that's when it went from double to triple. I really need help on this one please.
It seems the uninstall doesn't work, and basically when you installed after you tried to uninstall it; it added the code into the position on the default template again.

I haven't a clue how to correct this, better visit the authors website and seek support there. The Author rarely comes to this topic so best to ask at his support forum.

Any idea what his website would be?
Title: Re: Ad Management mod
Post by: starzz on March 05, 2009, 07:52:28 PM
I just installed this mod.. it installed fine but the problem is that it's not showing up in my acp.. So what do I need to do..
My current version is 1.1.7 I don't want to update until I fix this.
and this is the only mod i have installed so far...
I use the package manager installer
please help
Thanks
Title: Re: Ad Management mod
Post by: sandmannd on March 05, 2009, 10:52:20 PM
I got some of it fixed by going to the mods site at smfads.com but still didn't fix my problem. It did a lot of clean up, but I still have triple adds showing up. I don't understand why we can't get help on these issues.  ???
Title: Re: Ad Management mod
Post by: fotografo74 on March 06, 2009, 06:26:33 AM
Quote from: JamesD01 on March 04, 2009, 04:44:09 PM
Quote from: fotografo74 on March 04, 2009, 01:19:19 AM
Quote from: JamesD01 on March 03, 2009, 03:25:25 PM
Quote from: fotografo74 on March 03, 2009, 03:08:11 PM
Quote from: fotografo74 on February 23, 2009, 03:57:48 AM
Hi :-)
Thanks for this Mod.
I use it in SMF 1.1.7, it's ok.
In my forum test based to SMf 2RC1, i have a problem, like attached screenshot.
I used this code, in welcome area:

<div align="center"><a href="http://site affiliated......."><img src="http://www.macroforum.org/smf2rc/banner/magliani.jpg" border="0"></a></div>


Helps please!
Antonio
News about my problem please? :-)
Antonio
Did you put that in the advert or in the template code?
I put the code in the advert and select Show in welcome area. in my 1.1.7  forum the mod works ok. help please :-)

Did you change your theme since 1.1.7?
I'm not really sure what the cause of it is, could be the size of the advert banner, try a smaller sized advert perhaps. Or go to the authors support forum. ;)
Thanks :-)
I use same theme, Default theme.
I'll try with smaller banner :-)
Thanks!
Antonio
Title: Re: Ad Management mod
Post by: Low on March 07, 2009, 10:20:02 AM
Doesn't work for 1.1.8.

It installs fine but no ads show. Yes! I've got it set correctly.

Any support?
Title: Re: Ad Management mod
Post by: searchgr on March 07, 2009, 12:19:54 PM
I see goggle ads in your forum.
Title: Re: Ad Management mod
Post by: CtheProducer on March 07, 2009, 11:44:20 PM
Not sure if I am just missing it or not, but in SMF 2.0 RC1 there is nowhere in the Membergroup permissions to enable "adverts" or "Enable ads"........... Anyone have any idea? Thanks
Title: Re: Ad Management mod
Post by: Mystery? on March 08, 2009, 08:01:09 PM
Can you update this mod for full RC1 compatibility because I get errors in my error log because of this mod.
Title: Re: Ad Management mod
Post by: TDNY on March 08, 2009, 09:24:11 PM
Chalk up another Default core vers. 1.1.8 that uploaded fine with no errors, installed all ok. Nothing works on this. I have nothing in Admin/ config that says ad management. No tabs, nothing.
Title: Re: Ad Management mod
Post by: PalmBeachPreps on March 09, 2009, 09:12:02 PM
Version 1.1.8 - NO GO for me.  :(  I attempted to install and got this warning:
QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Title: Re: Ad Management mod
Post by: JamesD01 on March 10, 2009, 08:08:35 AM
Quote from: Mystery? on March 08, 2009, 08:01:09 PM
Can you update this mod for full RC1 compatibility because I get errors in my error log because of this mod.
What errors?

Also I believe the author is doing a re-write of the mod for the smf 2.0 series.

Quote from: CtheProducer on March 07, 2009, 11:44:20 PM
Not sure if I am just missing it or not, but in SMF 2.0 RC1 there is nowhere in the Membergroup permissions to enable "adverts" or "Enable ads"........... Anyone have any idea? Thanks
Use the classic view in the permissions then it should be there..

Quote from: TDNY on March 08, 2009, 09:24:11 PM
Chalk up another Default core vers. 1.1.8 that uploaded fine with no errors, installed all ok. Nothing works on this. I have nothing in Admin/ config that says ad management. No tabs, nothing.
There is a Ad management link on the sidebar on the admin panel.

Quote from: AlreeGator on March 09, 2009, 09:12:02 PM
Version 1.1.8 - NO GO for me.  :(  I attempted to install and got this warning:
QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Conflict with another mod probably, best to go to the authors site (www.smfads.com).
Title: Re: Ad Management mod
Post by: HR on March 10, 2009, 08:28:56 AM
I'd really like to get a look at somebody's default template files for this.. manual edits blow dog.. I originally edited it out for alignment issues but trying to work it back in..

Forgot to mention.. 2.0b4
Title: Re: Ad Management mod
Post by: dejanlesi on March 10, 2009, 04:32:41 PM
Hello!
I have SMF version 1.1.7 and installed this mod through the package manager and everything went smoothly.. But in the configuration panel the space opened up but there is no new button ad management.. Could somebody give me some advice on this?
Title: Re: Ad Management mod
Post by: JamesD01 on March 10, 2009, 06:09:07 PM
Quote from: dejanlesi on March 10, 2009, 04:32:41 PM
Hello!
I have SMF version 1.1.7 and installed this mod through the package manager and everything went smoothly.. But in the configuration panel the space opened up but there is no new button ad management.. Could somebody give me some advice on this?
Hiya,

Is that the only problem you're getting?
I'm guessing the mod wasn't installed properly..

Can you give a screenshot of your Admin Panel?
Title: Re: Ad Management mod
Post by: quirkyjake on March 10, 2009, 10:13:52 PM
Quote from: Low on March 07, 2009, 10:20:02 AM
Doesn't work for 1.1.8.

It installs fine but no ads show. Yes! I've got it set correctly.

Any support?
I'm having the same issue.  I've got everything set correctly in Ad Mod but no ad is showing.  Do I need to set something elsewhere?

Btw, this has all the makings of an awesome mod.

Any help would be greatly appreciated. 

QJ
Title: Re: Ad Management mod
Post by: quirkyjake on March 10, 2009, 10:31:00 PM
Ah, it only works on the default core and was viewing on Babylon. 

How do I get it to appear on all templates?

Thanks for a great mod!
QJ
Title: Re: Ad Management mod
Post by: HR on March 11, 2009, 12:27:34 AM
Quote from: quirkyjake on March 10, 2009, 10:31:00 PM
Ah, it only works on the default core and was viewing on Babylon. 

How do I get it to appear on all templates?

Thanks for a great mod!
QJ

Manual edits
Title: Re: Ad Management mod
Post by: texbrazos on March 14, 2009, 06:50:12 PM
Hi,
I am new here, I have a forum called www.dallasforum.dfwdallas.com and I installed the ad mod on my site.  I got it installed and can view the google ads only when I am logged in.  Does anyone know why the ads will not display unless you are logged in?  Please help, I do not know alot about coding.  I mainly use html and photoshop programs.  I am learning a whole new program with the forums, please simplify if possible.
Thanks,
Tex
Title: Re: Ad Management mod
Post by: HR on March 14, 2009, 11:24:25 PM
Check your permissions for guest from admin and make sure view ads is selected.
Title: Re: Ad Management mod
Post by: SWR on March 15, 2009, 04:27:58 AM

I'm using the theme DS-Natural by Dziner Studios in SMF 2.0 RC1.

I loaded the Ad Management Mod and it works partially.  I can place almost all of the horizontal type ads but not the tower ads.

Can anyone give me the manual edits that will make the mod fully functional for this theme?  Dziner Studios support isn't much help.

Thanks.
Title: Re: Ad Management mod
Post by: HR on March 15, 2009, 04:35:43 AM
Because of the way DZ themes are coded the side ads wont function correctly they do have a post on their forums about the code placement though.. just do a search and have a look.

Title: Re: Ad Management mod
Post by: quirkyjake on March 15, 2009, 09:11:36 AM
I have an ad placed under the menu on every page but only logged in members can view it.  How to get this viewable by all?  I'm using 1.8.

Any help would be greatly appreciated.

QJ
Title: Re: Ad Management mod
Post by: TDNY on March 16, 2009, 10:55:48 AM
Quote from: dejanlesi on March 10, 2009, 04:32:41 PM
Hello!
I have SMF version 1.1.7 and installed this mod through the package manager and everything went smoothly.. But in the configuration panel the space opened up but there is no new button ad management.. Could somebody give me some advice on this?

I have the same thing with a 1.1.7 upgraded to 1.1.8 default core I even have space in the permissions area with check boxes but no writing. Anyone have the answer to put this puzzle to rest?
TD
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on March 16, 2009, 04:59:57 PM
Aloha

I'm getting double ads after upgrading from 2.0 beta to 2.0 irc. I've uninstalled and reinstalled the ad mod

Has this come up yet?

Rick
Title: Re: Ad Management mod
Post by: TDNY on March 16, 2009, 08:59:37 PM
Quote from: TDNY on March 08, 2009, 09:24:11 PM
Chalk up another Default core vers. 1.1.8 that uploaded fine with no errors, installed all ok. Nothing works on this. I have nothing in Admin/ config that says ad management. No tabs, nothing.

Got it done, went to smfads site and read that you need to change from english UTF-8 to English. Up and running very well, great mod thanks!

TD
Title: Re: Ad Management mod
Post by: igordr on March 17, 2009, 02:09:35 PM
Mod is good... But best way to add something is to edit index.template.php ...
Title: Re: Ad Management mod
Post by: riker on March 18, 2009, 10:53:54 AM
Leaves default theme corrupted when used on Beta 4 & RC1 and the theme was changed to html and the mod wasn't
Title: Re: Ad Management mod
Post by: bburg5 on March 18, 2009, 05:28:07 PM
I have two ads below the menu and need to know how to set up the table to fit on most screens. I set it to 100%, but when I go to a 1024x768 monitor it sticks out to the left a little. How can I get this to shrink like the other forum tables?

Also, now all my categories and topics text are centered and not where they were originally. what happened. I changed only what was needed to be changed for my template.

Screen shot below...screenshot was when I centered the table. I would like to get them to be on each far side of the page instead.

Thanks
Title: Re: Ad Management mod
Post by: dejanlesi on March 19, 2009, 05:45:18 AM
Quote from: TDNY on March 16, 2009, 08:59:37 PM
Quote from: TDNY on March 08, 2009, 09:24:11 PM
Chalk up another Default core vers. 1.1.8 that uploaded fine with no errors, installed all ok. Nothing works on this. I have nothing in Admin/ config that says ad management. No tabs, nothing.

Got it done, went to smfads site and read that you need to change from english UTF-8 to English. Up and running very well, great mod thanks!

TD

Thanks for that info! Now it is working for me 2 :) Well at least the writing is there now. I will try with some ads and see how that goes..

Thanks
Title: Re: Ad Management mod
Post by: arjanhs on March 19, 2009, 08:55:20 AM
I have updated my forum to 2.0 RC1, and when using the mod the following line is displayed:

Parse error: syntax error, unexpected '<' in /var/www/smf/Sources/Load.php(1944) : eval()'d code(415) : eval()'d code on line 1
Title: Re: Ad Management mod
Post by: gibsongk55 on March 21, 2009, 06:32:40 AM
Hi,

I just installed simple machine and want to use this mod with adsense.  I don't see any instructions with the mod itself.  I try to download it and it says not compatible with 1.1.7 or what i have 1.1.8 the current version yet it states it is compatible. 

can someone please tell me how to install it?

Thanks,

Gibs
Title: Re: Ad Management mod
Post by: tbk22 on March 22, 2009, 11:56:00 AM
my ads are only appearing for the Firefox browser...

Any TIPS on how to solve this? I tested on Opera and Internet explorer and i cant see any ads
Title: Re: Ad Management mod
Post by: gibsongk55 on March 24, 2009, 12:53:33 AM
Hi,

I wanted to install the latest of this mod but it says it is not compatible with the latest version 1.1.8?

Thanks,

Gibs
Title: Re: Ad Management mod
Post by: smartsyntha on March 24, 2009, 03:56:36 AM
Hi,

I have installed SMF 1.1.8 & today I installed Ad Management tool. But after installation the link of this tool is NOT appearing under "Administratin / Configuration/ ? "  saction...

any help ..... ????
Title: Re: Ad Management mod
Post by: Ravac on March 24, 2009, 04:58:17 AM
Did you check language files? there is probably some missing string....
Title: Re: Ad Management mod
Post by: smartsyntha on March 24, 2009, 06:03:00 AM
at the time of installation , system showed some file which was automatically skipped by system. Other file tests were successfull. Skipped files were language files.

I continued installation process. Installed uccessfully.

I can see mod installed succeessfuly under "Package" heading. But Not sseeing under configuration head.
Title: Re: Ad Management mod
Post by: smartsyntha on March 24, 2009, 04:15:31 PM
Pleae help//........ :(
Title: Re: Ad Management mod
Post by: smartsyntha on March 25, 2009, 03:32:40 AM
No help on this topic ???
Title: Re: Ad Management mod
Post by: janajanet on March 25, 2009, 01:19:00 PM
Hi,
i installed a ad management yestarday. I added google adsense ads but cant see any of them:(  what should i do? my forum link is http://www.healthandfitnesscouncil.com/forum Can you see any ads? Hmmmm:( 
Title: Re: Ad Management mod
Post by: TDNY on March 25, 2009, 01:45:52 PM
Quote from: janajanet on March 25, 2009, 01:19:00 PM
Hi,
i installed a ad management yestarday. I added google adsense ads but cant see any of them:(  what should i do? my forum link is http://www.healthandfitnesscouncil.com/forum Can you see any ads? Hmmmm:(

I don't see any ads. Like someone mentioned above go to Admin/Configuration/server settings and change it to English, don't forget to click save.
Title: Re: Ad Management mod
Post by: janajanet on March 25, 2009, 01:58:59 PM
Quote from: TDNY on March 25, 2009, 01:45:52 PM
Quote from: janajanet on March 25, 2009, 01:19:00 PM
Hi,
i installed a ad management yestarday. I added google adsense ads but cant see any of them:(  what should i do? my forum link is http://www.healthandfitnesscouncil.com/forum Can you see any ads? Hmmmm:(

I don't see any ads. Like someone mentioned above go to Admin/Configuration/server settings and change it to English, don't forget to click save.

It is in english  :(
Title: Re: Ad Management mod
Post by: TDNY on March 25, 2009, 03:19:40 PM
Quote from: janajanet on March 25, 2009, 01:58:59 PM
Quote from: TDNY on March 25, 2009, 01:45:52 PM
Quote from: janajanet on March 25, 2009, 01:19:00 PM
Hi,
i installed a ad management yestarday. I added google adsense ads but cant see any of them:(  what should i do? my forum link is http://www.healthandfitnesscouncil.com/forum Can you see any ads? Hmmmm:(

I don't see any ads. Like someone mentioned above go to Admin/Configuration/server settings and change it to English, don't forget to click save.

It is in english  :(

Check in Ad Mgmnt Admin settings and make sure you click enable ads and also check the permissions for guests and regular members, check off the boxes to allow them to view the ads.
TD
Title: Re: Ad Management mod
Post by: sandmannd on March 25, 2009, 05:37:54 PM
I didn't get much help at all. I can tell you the best thing to do is to go to the mod site and get the manual install instructios. Follow those and you might get it working. I had mine showing in triplicate and when I went in and did the manual part of it I found it listed three times in a few php files. Took them out and it's working now.
Title: Re: Ad Management mod
Post by: Slaapkopf on March 26, 2009, 07:23:31 AM
Why cant my guests see the ads?
Title: Re: Ad Management mod
Post by: TDNY on March 26, 2009, 07:26:17 AM
Quote from: Slaapkopf on March 26, 2009, 07:23:31 AM
Why cant my guests see the ads?

Check under permissions for guests, you need to check the box to let them view the ads.
TD
Title: Re: Ad Management mod
Post by: Slaapkopf on March 26, 2009, 11:45:28 AM
Quote from: TDNY on March 26, 2009, 07:26:17 AM
Quote from: Slaapkopf on March 26, 2009, 07:23:31 AM
Why cant my guests see the ads?

Check under permissions for guests, you need to check the box to let them view the ads.
TD
Ahh tnx.

Found it ;D.
Title: Re: Ad Management mod
Post by: caentertainment on March 29, 2009, 03:40:17 PM
Hello guys, (sorry for my english im french.)

ok so i have some problems installing Ad Management mod V 2.3
My SMF current version is 1.1.8.

i have downloaded ad_mod_v2-3-4_SMF_vbeta4.zip from http://custom.simplemachines.org/mods/index.php?mod=255

went on my forum > admin > packages >  Download Packages > Upload a Package > Selected the zip file i downloaded earlier > Upload.

I got this message:
Package has been downloaded successfully
Ad Managment    [ Apply Mod ] [ List Files ]

I clicked on Apply Mod.
Then i got this message:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

What did i do wrong??
Please help me!

Thanks a lot
Title: Re: Ad Management mod
Post by: vristang on March 29, 2009, 04:40:40 PM
^ I think you're trying to install the SMF 2.0 version on your SMF 1.1.8 version.

Go back to the Mod page...
http://custom.simplemachines.org/mods/index.php?mod=255
and make sure you download the zip file for version 1.1.*...
It is the top one.
Title: Re: Ad Management mod
Post by: vristang on March 29, 2009, 04:50:55 PM
I have a request for a minor change in the excellent mod....


I would like to display 2 ads, side by side in my header.
I have no idea how to make the coding changes to do this.

Also, I only have 2 advertisers right now, so it would be kinda cool if I could dedicate an ad to each location.

Just for clarification,
I am using the Babylon theme, so the bottom of my header is a row of buttons.  This mod placed the ads just below this row.  I like that location.
What I would like to have is an Ad on the Left, and an Ad on the Right.
And since I only have 2 Ads to choose from, I would like to take manual control over which Ad is displayed in each location.


I thought I saw somewhere that jerm no longer had time to fully support this mod and change requests.
If that's so, could someone else help me out... or atleast get me pointed in the right direction?

Thanks,
jason
Title: Re: Ad Management mod
Post by: caentertainment on March 29, 2009, 05:06:38 PM
Quote from: vristang on March 29, 2009, 04:40:40 PM
^ I think you're trying to install the SMF 2.0 version on your SMF 1.1.8 version.

Go back to the Mod page...
http://custom.simplemachines.org/mods/index.php?mod=255
and make sure you download the zip file for version 1.1.*...
It is the top one.

thx vristang! intalled this mod perfectly.
I have another little problem, i added my google adsense code etc.
here is a screencap http://i39.tinypic.com/1iyf11.jpg

but the ads dont show anywhere. :( whats the problem?
Title: Re: Ad Management mod
Post by: vristang on March 29, 2009, 05:12:08 PM
Each member group needs to have 'permission granted' for the ads to show.

Admin CP > Members > Permissions
Then Modify each groups permissions to see the Ads...
(it was in the top right corner for most of my groups)
Title: Re: Ad Management mod
Post by: caentertainment on March 29, 2009, 05:17:53 PM
yeah ive done that, but its still not working. ive noticed that its working with the default theme but not mine. (im using the "classic" theme) :(
Title: Re: Ad Management mod
Post by: vristang on March 29, 2009, 05:25:11 PM
Aaahhh,
You'll need to manually edit your Index.Template file for YOUR theme...

Head back to this page...
http://custom.simplemachines.org/mods/index.php?mod=255

Select the top zip file again, then in the drop down window just below, select 1.1.8.  Hit submit.
This will take you to a list of file edits that are done for this mod.

Anything done in Themes/Default/*****
Will have to be done manually in your theme....
Title: Re: Ad Management mod
Post by: caentertainment on March 29, 2009, 05:49:57 PM
ok thanks im going to try. so i have to remove the package working with the default theme right? then, edit the package and reupload it?
Title: Re: Ad Management mod
Post by: vristang on March 29, 2009, 06:15:21 PM
I'm not sure I would mess with the package....

What I have been doing to get Mods installed on my Babylon theme...
Install the package, as long as no errors come up.  This gets the majority of it done.
Then, I go into the File Manager for my site via my Web Host.  This gives me access to ALL the files.
I go through the directions for a manual install.  Anything that is done in the Default them, will need to also be done in YOUR theme.
Also, double check any changes made in English, as some also need to be made in English-UTF (at least they did for my Babylon theme).

Hope that helps... it's about all I know right now, as I am just starting out here myself...

jason
Title: Re: Ad Management mod
Post by: 07knev on March 30, 2009, 01:15:38 AM
Hi

I have started a new  Technology forum  http:///www.ittechsolution.com
To display ads , using a ver 2.3 Ad management tool .
I did the installations and configuration according to the instruction , but still not displaying ads.

Can you please help me  ?

thanks
knev
Title: Re: Ad Management mod
Post by: collguy82 on March 31, 2009, 03:47:22 PM
I did a manual install for Ad Management with my Yabb Theme and am getting this error when I enter the Ad Management.  I have reloaded the "LoadAd.php" a couple times, but still receive the error.  My smf versions is 1.1.8, and using "ad_mod_1-1-x_v2-3".  Thanks for the help

Issue with the Ad Mod

LoadAds.php is missing/corrupt from your sources directory. Please make sure that it uploaded properly. The Ad mod won't be able to function properly. If you are having issues, please visit www.smfads.com!
Title: Re: Ad Management mod
Post by: getandshare on April 01, 2009, 04:05:18 PM
Guys Its easy Job...

For me Ads mod worked out without manual edit...
Just try selecting other themes (check them) while installing mod...

If your theme is much customised one than you need to install it manually....
To install manually goto mod's page select your SMF version from drop down menu and click go....

This ll lead you to manual install page..... Its far easy to install from there rather than tampering with the code looking for what changes occured in default theme...

No need to edit on your hosts file manager... Better way ll be to download the file... make its backup than tamper with it... and than upload it back....

If ads are not getting displayed for guests or other members goto
AdminCP-> member->permission

Select the group and add the permission enable ads.... thats all....:D
Title: Re: Ad Management mod
Post by: glennk on April 02, 2009, 06:08:39 AM
Are we compatibale with 2rc1 yet ?
Title: Re: Ad Management mod
Post by: getandshare on April 03, 2009, 05:46:54 AM
Quote from: glennk on April 02, 2009, 06:08:39 AM
Are we compatibale with 2rc1 yet ?

Yes we are...
Am using it on smf 2.0 RC1 and its working like a knife runs on butter..... :P
Title: Re: Ad Management mod
Post by: chadon on April 03, 2009, 07:57:01 PM
I have a suggestion for this mod. On my forum I am using it to display ads and a menu to send the visitors to external pages and I would like to disable ads for registered members but still be able to show the menu blocks. Would it be possible to set permissions for each ad?
Title: Re: Ad Management mod
Post by: bdsur on April 04, 2009, 03:56:03 PM
i want to download it my smf version 1.1.8 but i can't find the file do u give me here download link.
Title: Re: Ad Management mod
Post by: tracker-man on April 04, 2009, 05:38:21 PM
Quote from: getandshare on April 03, 2009, 05:46:54 AM
Quote from: glennk on April 02, 2009, 06:08:39 AM
Are we compatibale with 2rc1 yet ?

Yes we are...
Am using it on smf 2.0 RC1 and its working like a knife runs on butter..... :P

Can you or somebody else please tell me how you install this mod in Version 2.0 RC1 ?
Title: Re: Ad Management mod
Post by: Bigguy on April 04, 2009, 07:03:24 PM
The latest version should install fine to the default theme.
Title: Re: Ad Management mod
Post by: MultiformeIngegno on April 05, 2009, 06:11:23 AM
Quote from: Bigguy on April 04, 2009, 07:03:24 PM
The latest version should install fine to the default theme.
No, it doesn't work with 2.0 beta 4 and RC 1!!
Where is the dev? Why doesn't he release a new version?
Title: Re: Ad Management mod
Post by: tracker-man on April 05, 2009, 06:34:28 AM
Quote from: lorenzone92 on April 05, 2009, 06:11:23 AM
Quote from: Bigguy on April 04, 2009, 07:03:24 PM
The latest version should install fine to the default theme.
No, it doesn't work with 2.0 beta 4 and RC 1!!
Where is the dev? Why doesn't he release a new version?

Diidn't work for me either. I installed it as per the instructions, all the files seem to be there, and the table is in the SMF database. But the "Ad management" link isn't shown in the admin section of my forum. It should appear under "configuration" but its not there. I am using Anecdota theme by Crip.
Title: Re: Ad Management mod
Post by: weightman on April 05, 2009, 12:37:42 PM
Can I use javascript with this mod?

Thanks
Title: Re: Ad Management mod
Post by: Ed2 on April 05, 2009, 08:55:39 PM
Installed and removed it 4 times..can't get it to work in my SMF 1.1.8


Would really be handy to have if I could get it working!


BTW: It says that it was "installed successfully"...but no configuration options are listed..obviously a lot of people are having the same problem?
Title: Re: Ad Management mod
Post by: bdsur on April 05, 2009, 10:27:27 PM
i am install successfully add management mods but i did not see opition my smf version is 1.1.8 help me.
Title: Re: Ad Management mod
Post by: gibsongk55 on April 06, 2009, 11:12:30 PM
Hi,

I installed this mod on SMF 1.1.8 and selected "show ad below menu on every page" .  I don't see anything appearing. Can someone help?

Thanks.

Gibs
Title: Re: Ad Management mod
Post by: JamesD01 on April 07, 2009, 12:35:41 PM
Guys, try asking for help at the mod authors website. Link can be found in the first post of this topic.

Though it would be better if the author himself comes here and sorts the problems, if not the topic might aswell be closed as no point in it if he ain't offering support for the mod he created in the topic he created for support questions.

I've been told by the author there is a new version of the mod for RC1 but no idea nor is there any news about it!
Title: Re: Ad Management mod
Post by: Ed2 on April 08, 2009, 08:30:13 AM
NOTE: Got up this morning and re-intalled it and it LOADS!! I did nothing to change my forum from before..don't know why...but it now LOADS!

I have two 1.1.8 boards...Ad Mod wouldn't load on either until this morning. FYI: The Colorize Forum mod wouldn't install yesterday either..today it loads & works! Have a feeling the problem is (was) within 1.1.8

LOAD IT WHILE IT WORKS ;D

FYI: The Good News..I can now load it! Bad News: It doesn't work within Classic YaBB SE Theme.  Ad Management Mod was designed to work with the "default" 1.1.8 theme. (switch themes and see for yourself).  So it is useless to me. Went to the authors website for help...and got a headache bouncing all over the boards for answers.

The Mod is a great concept that only works with a limited number of themes..Unless you know how to edit themes of course....which I don't.

Ad Management mod is one that folks are willing to pay for IF IT WORKED.....Keeping my fingers crossed.... O:)
Title: Re: Ad Management mod
Post by: DavidWFF on April 08, 2009, 08:34:10 AM
It work's just fine for me on 2.0 rc1...David
Title: Re: Ad Management mod
Post by: vristang on April 08, 2009, 02:46:59 PM
Some things to check for guys having issues...
- Did it install in the language files correctly?
- Are you running one of the languages it installs automatically to?

seems like that could be part of the problem if the options aren't displaying the way they should...

(I'm no expert, but this has tripped me up with mods before...)
Title: Re: Ad Management mod
Post by: Jump1979man on April 09, 2009, 05:38:33 PM
the mod author isnt updating and maintaining this mod....questions to his site go unanswered.

http://www.smfads.com/forums/index.php?topic=2101.0


I know Bigguy was helping him but Bigguy has his own things going on and this mod is a great mod that needs to be ever evolving to truly be GREAT! 

This mod needs updated to work properly and also needs a supporting staff to fix bugs....maybe someone could take it over and keep it up???   or maybe someone else should create a different AD Mod???
Title: Re: Ad Management mod
Post by: Ed2 on April 11, 2009, 09:24:14 PM
Use this MOD..works great...just use html code to center your post, ad or image!

http://custom.simplemachines.org/mods/index.php?mod=351

Global Headers and Footers Mod!

BASIC...BUT...WORKS WITH "ALL" THEMES!
Title: Re: Ad Management mod
Post by: BlindShooter on April 12, 2009, 02:35:12 AM
This mod is awesome. I used it to get my wordpress header into my forum - so much easier, so much faster... thanks! :D
Title: Re: Ad Management mod
Post by: oludimuni on April 15, 2009, 07:38:39 AM
How can i add the ad management mod to my forum
Title: Re: Ad Management mod
Post by: oludimuni on April 15, 2009, 07:57:31 AM
What version on Ad Management Mod is suitable when i install smf with webinstall
Title: Re: Ad Management mod
Post by: oludimuni on April 15, 2009, 08:09:00 AM
Quote from: Ed2 on April 11, 2009, 09:24:14 PM
Use this MOD..works great...just use html code to center your post, ad or image!

http://custom.simplemachines.org/mods/index.php?mod=351

Global Headers and Footers Mod!

BASIC...BUT...WORKS WITH "ALL" THEMES!


How were you able to use this mod with the 1.1.8 version please give me a step by step guide into this please


I need to resolve this urgently.
Title: Re: Ad Management mod
Post by: Ed2 on April 15, 2009, 08:56:18 AM
Send me a PM with contact info and I'll walk you through it.
Title: Re: Ad Management mod
Post by: ross85 on April 15, 2009, 07:56:43 PM
I installed this mod, but whenever I create an ad it makes 2 of them. So when it displays it shows 2 ads, one over the other. Whats going on? www.rotorheadforums.com
Title: Re: Ad Management mod
Post by: GazOutEast on April 18, 2009, 12:48:26 PM
DOHHHHH !!!!

After hours of trying to get this mod to work on SMF 2.0 RC1 and weeks of reading this forum and the author's site looking for an answer, I realise now ....

.... the latest download file is called ad_mod_v2-3-4_SMF_vbeta4.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=255;id=68760)

Note that file name ... it is v2.3.4 for SMF 2.0 Beta 4

It is NOT for RC1

However, despite that, I will post my issues just in case it helps the mod authors to bring the mod up to speed for RC1 any faster.

I have it installed all fine, and superficially working fine, on SMF 2.0 RC1 - all the menus and everything else are visible in admin and working.  For now I have set all user groups (including guests) to see all ads.

Now here's the issue - when setting up ads based on boards - example - board A covers topic A and there is an advert specifically for subject A, then to me this is an "ad match" and Ad A should be targeted at Board A.  With me so far?

OK - in Admin - Configuration - Ad Management - Add Ads ... there are three suitable options after choosing the board number for where to display this ad -

(http://www.buildaskill.com/board/Themes/default/images/helptopics.gif) (http://www.buildaskill.com/board/index.php?action=admin;area=ads;sa=help;help=ad_manage_board) Display ads on board index
(http://www.buildaskill.com/board/Themes/default/images/helptopics.gif) (http://www.buildaskill.com/board/index.php?action=admin;area=ads;sa=help;help=ad_manage_threadindex) Display ads on message index
(http://www.buildaskill.com/board/Themes/default/images/helptopics.gif) (http://www.buildaskill.com/board/index.php?action=admin;area=ads;sa=help;help=ad_manage_thread) Display ads on the post page
The help buttons describe where these positions are (rather badly in my opinion) but it is important to read the following to understand the problem I am getting with bugs in my install of Ad Management v2.3.4
How the help buttons describe the locations is -

- Board Index - on the main board area. This section is typically the root of the forum.
- Message Index - on the message index page. These pages are found within the boards, but are not the posts
- Post Page -  on the message page itself.

OK that's how the help buttons describe them, and in my opinion, they are completely wrong -

- Forum Index - This is the home page of the forum (i.e. /smf/index.php ) and the forum root - it displays the forum categories and the first level boards in those categories.
- Board Index - This is the BOARD or CHILD-BOARD LIST (not the forum root) and it displays (in a vanilla install) first the child-boards list/index, then the topics posted list/index for topics posted directly to the board number XXX, which is the current board being viewed.
- Message Index - is the list of topics in the current board XXX - whether that board is first or fortieth level down the heirarchy - the message index is displayed for every board on each and every board level, (at every heirarchy level), whether it has topics or not.  It is the second list, which follows the Board Index, on any board level page - the child-boards' Board Index being the first part of the page.
- - The combined Board Index and Message Index is the LEVEL Index / Board Page at any particular layer of the board and message heirarchy - it should be referred to as the Board Page.
- Message Page - is the TOPIC DISPLAY PAGE - where readers can read the messages that have so far been posted into an individual topic (note - in SMF they are referred to as "topics" - more commonly in other software, they are referred to as "threads").
- Post Page - by its very name can only ever have ONE post and by definition within the software, that means this is the page where you write and post your post.

Therefore the correct heirarchical naming convention should be -

- Forum Index - page containing the categories list
- - Category Index - page containing the first level boards (topics cannot be assigned to categories - only to boards)
- - - Board PAGE - page containing the Child-Board Index & current board-level topics
- - - Board Index - the child-board list that is part of the Board Page
- - - Message Index - the list of Topics that are posted into the current level board (whether it is first level or a child-board) - it is part of the Board Page (unless this board has NO child-boards, then the Message Index becomes the whole Board Page by default).
- - - - Topic Page - the page that displays all the posts within a topic/thread, whether it is only the OP, or whether it has many replies.
- - - - - Post Page - is the page where a user writes their post.

Note in the above heirarchy - an individual list of boards or topics is an "Index",
but a page containing multiple indexes, or a single topic's content, is a "Page".

Finally, here's my problem -

As I said at the top, everything is working fine except the following -

- Ads selected to display on the "message index" are displaying on the "topic page" (i.e. the page for reading a topic's posts and replies) - not the index list of topics claimed by the mod authors.
- Ads selected to display on the post page (i.e. the posts and replies within the topic according to the mod's author) NEVER display anywhere - not even on the post writing page.
- Ads selected to display on the Board Index NEVER appear anywhere, at any level of the heirarchy.

These errors, and my structural comments above, indicate there is a severe naming mismatch between the conventions used up to SMF 2.0 vBeta4, and the naming in use within SMF 2.0 RC1, for the different levels of the forum heirarchy, from top home index, down through boards and child-boards, to individual topics and posts. 

This I believe is why Ad Management v2.3.4 does not work fully with SMF 2.0 RC1 - not the mod author's fault at a code level (because they state v2.3.4 is for up to Beta4 only), but in terms of the help pop-ups, they also have some rewriting to do (feel free to copy from what I've typed above if it helps and saves you time).

Gaz
 
Title: Re: Ad Management mod
Post by: GinjaNinja on April 18, 2009, 07:08:31 PM
Hey

I'm running SMF 1.1.8 with a custom theme...

Im trying to install Ad Management manually but I'm having some trouble...

I parsed it and replaced all the code and added the files to the correct directories but how do I install it? what do I do with the install.php file?


thanks!

Greg
Title: Re: Ad Management mod
Post by: wolverine09 on April 18, 2009, 09:59:51 PM
I was able to get Ad Management 2.3 to work by uninstalling the initial install and re-installing.

That said, how do I get the google ads to show for non-registered users? They currently only show for forum members. It would seem the ads would work best for people looking for an exit who aren't interesting in posting.
Title: Re: Ad Management mod
Post by: Bigguy on April 18, 2009, 11:23:40 PM
Check guest permissions.
Title: Re: Ad Management mod
Post by: wolverine09 on April 19, 2009, 04:24:07 AM
Thank you! Worked very well.
Title: Re: Ad Management mod
Post by: jeffrey scott on April 19, 2009, 05:44:19 AM
Quote from: ross85 on April 15, 2009, 07:56:43 PM
I installed this mod, but whenever I create an ad it makes 2 of them. So when it displays it shows 2 ads, one over the other. Whats going on? www.rotorheadforums.com

I get the same, I am running software version 1.1.8 it seems both of the images are going in the footer and none in the header? If I just add one image then I get one in the footer, but I would really like to get one in the header???

Also can we not just have the forums running from within a website template with a header and right menu so I can put advertising in the header and right menu?

Many thanks for the mod mind and all the help.

Jeff
Title: Re: Ad Management mod
Post by: dzinerfusion on April 19, 2009, 04:11:32 PM
 i have a question. I use a custom theme  megapolis and i installed this mod.it installed succesfully! then i go the ad config and put in my add for after first post.when i go into my forums theres no ad!What am i doing wrong? Do i have to maunally edit the templates even if i installed successfully with the download package? I have gave all enable ad permissons :o
Title: Re: Ad Management mod
Post by: mstanfa on April 20, 2009, 02:14:54 PM
Hi guys I just got this all set up and I installed like so many others and got the same thing its not showing up on any of the menus. What do I need to do to get this thing going? Ive been looking thru the threads but I guess Im missing it. I am really new to all this. THanks for any help in advance. Oh yea I am running 1.1.8
Also I checked the filename for the ads.english and its names correctly. What am I missing here. I have been reading and not getting the right answer.

Mark
Title: Re: Ad Management mod
Post by: gibsongk55 on April 20, 2009, 11:44:26 PM
Hi,

I cannot get this thing to work.  Also  in the custom downloads if you select version 1.1.8 and parse, it says it is not compatible to get manual instructions?

I wish SMF would come up with standards for custom templates so that they can all be modified automatically when mods are installed. 

I have installed DreamLike and Anywhere themes.  I have tried for weeks now manually inserting the code and everytime the forum will not come up because of the template system.

I also downloaded an index.template.php from smfads forum that was modified from another custom template and tried to follow the changes and still the same problem. 

Is this that difficult to get to work?  I am not a php programmer but I am a programmer and cannot get the damn thing to work.  Is there any help out there?

Thanks,

Gibs
Title: Re: Ad Management mod
Post by: dru1487 on April 22, 2009, 11:45:01 AM
I have v 1.1.8 and got this installed properly and can access it in my Configuration menu. However, when I add an ad, I cannot see anything?

Maybe my HTML code is wrong? Anyone have a sample code I could try?
Title: Re: Ad Management mod
Post by: Goodman854 on April 23, 2009, 10:01:28 PM
Its not letting me Download it says DL not Avaiable!
Title: Re: Ad Management mod
Post by: neighbors on April 23, 2009, 11:06:11 PM
I have this mod installed on my forum. I am serving my ads from OpenX, which generates the ad code.

The ads appear and rotate just as they should when I am logged in as an Admin.

But when logged in as any other user, the ads do not appear.

I have asked OpenX techs about this and think it might be a template issue.

I am new to SMF so I have no idea how to fix it. Can someone please help?

http://www.littleelmneighbors.com

MODIFIED:
NEVERMIND! I found the problem. Permissions. duh. :)
Title: Re: Ad Management mod
Post by: Bigguy on April 24, 2009, 07:33:33 AM
Check the code that was added to exsisting SMF files. Seems it is in there twice somewhere. Use the package parser to search for code.

Quote from: jeffrey scott on April 19, 2009, 05:44:19 AM
Quote from: ross85 on April 15, 2009, 07:56:43 PM
I installed this mod, but whenever I create an ad it makes 2 of them. So when it displays it shows 2 ads, one over the other. Whats going on? www.rotorheadforums.com

I get the same, I am running software version 1.1.8 it seems both of the images are going in the footer and none in the header? If I just add one image then I get one in the footer, but I would really like to get one in the header???

Also can we not just have the forums running from within a website template with a header and right menu so I can put advertising in the header and right menu?

Many thanks for the mod mind and all the help.

Jeff
Title: Re: Ad Management mod
Post by: Bigguy on April 24, 2009, 07:34:36 AM
Yes, manually adding code to the template files in your custom theme is what you need to do.

Quote from: bluesinjid on April 19, 2009, 04:11:32 PM
i have a question. I use a custom theme  megapolis and i installed this mod.it installed succesfully! then i go the ad config and put in my add for after first post.when i go into my forums theres no ad!What am i doing wrong? Do i have to maunally edit the templates even if i installed successfully with the download package? I have gave all enable ad permissons :o
Title: Re: Ad Management mod
Post by: Goodman854 on April 26, 2009, 11:42:01 PM
I keep getting premission error on install, any suggestions?
Title: Re: Ad Management mod
Post by: vegetablegod on April 28, 2009, 05:07:06 AM
I installed it using the Upload a Package tool and it said everything was successful but Ad Management does not show up under Configuration.
When I changed the language from English-UTF8 to English, I get an error that says
"Connection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later."
I had to reinstall the forum after that error.


Was able to figure it out myself:P


EDIT:
Now when I copy my Adsense code and past it  in the Add Ads, the add will not display on the pages. If I highlight the area it should be in, you can see its there, but it wont s how.
Title: Re: Ad Management mod
Post by: jpaytoncfd on April 28, 2009, 06:19:58 AM
been using for a bit now and I like it although im wondering if I could make it so a registered user would only see the add's at the bottom and an un registered would see them and the ads under the menu. I also cant get google adsence code to work.
Title: Re: Ad Management mod
Post by: pedenski on April 28, 2009, 02:05:34 PM
 I already installed the Mod and it was successful.. But for some reasons, I cant see any Ad Management on my configuration
Title: Re: Ad Management mod
Post by: pedenski on April 28, 2009, 09:48:53 PM
I need support here please..
Title: Re: Ad Management mod
Post by: Bigguy on April 28, 2009, 10:12:08 PM
We usually wait 24 hours before we bump our posts. Check all your edits agaiinst the package parser and any errors in the error logs. Have you done all forum maintenance. ???
Title: Re: Ad Management mod
Post by: Goodman854 on April 28, 2009, 10:36:32 PM
ya mine doesnt work. Premission Error on Install. Going threw makes only the admin see ads.
Title: Re: Ad Management mod
Post by: Bigguy on April 28, 2009, 10:37:48 PM
You will have to add any edits that failed manually. Use the package parser for this.
Title: Re: Ad Management mod
Post by: pedenski on April 28, 2009, 11:01:10 PM
I dont get what youre saying. can you please xplain? and does this thing applicable to all themes?
Title: Re: Ad Management mod
Post by: Bigguy on April 28, 2009, 11:03:05 PM
You say you had a permissions error on install. Was this with uploading the mod through the package manager or it failed one of the edits during install. ???

Quote from: goodman854 on April 28, 2009, 10:36:32 PM
ya mine doesnt work. Premission Error on Install. Going threw makes only the admin see ads.
Title: Re: Ad Management mod
Post by: Chair on April 29, 2009, 05:13:56 AM
My adverts do not show up on any theme other than the default core theme...

Is there any way I can get it to work? Perhaps a piece of code to place in a certain file?
Title: Re: Ad Management mod
Post by: Bigguy on April 29, 2009, 08:17:14 AM
You have to add the ad mod code to the template files that are in your custom theme. If you have a BoardIndex.template.php file in your custom theme folder it must be edited, if not it was edited apon install of the mod; and so on for all the template files that the ad mod edits.

Quote from: impennetrate on April 29, 2009, 05:13:56 AM
My adverts do not show up on any theme other than the default core theme...

Is there any way I can get it to work? Perhaps a piece of code to place in a certain file?
Title: Re: Ad Management mod
Post by: glennk on April 29, 2009, 01:29:50 PM
Please dont think Im hassling anyone but is there likely to be a version for 2rc1 in the near future ?
Title: Re: Ad Management mod
Post by: Bigguy on April 29, 2009, 07:42:09 PM
I have heard that something is in the works. I don't know when it will be ready though or if it is even close.
Title: Re: Ad Management mod
Post by: Andythescientist on April 30, 2009, 05:17:34 AM
I have this package running on 1.1.8..

I'm using an adsense tower and have this positioned on the right hand side of the forum (checkbox).. it shows right at the top right which is perfect.

Now the question is it possible to stack another add, say an amazon stack underneath that adsense tower? If i put the amazon stack on and click the right hand side checkbox, it overwrites the adsense ad, and you only end up with one tower. I had assumed it would just stack them but this does not seem to be the case. Is there any way of doing this type of ad stacking?
Title: Re: Ad Management mod
Post by: jpaytoncfd on April 30, 2009, 05:41:03 AM
Quote from: Andythescientist on April 30, 2009, 05:17:34 AM
I have this package running on 1.1.8..

I'm using an adsense tower and have this positioned on the right hand side of the forum (checkbox).. it shows right at the top right which is perfect.

Now the question is it possible to stack another add, say an amazon stack underneath that adsense tower? If i put the amazon stack on and click the right hand side checkbox, it overwrites the adsense ad, and you only end up with one tower. I had assumed it would just stack them but this does not seem to be the case. Is there any way of doing this type of ad stacking?

I dont know about stacking but if you notice they will cycle. if you look at the page you have them on and refresh it will choose what shows there randomly. http://chforum.netau.net if you go there and look at the bottom just keep refreshing and you'll get different ones almost every time
Title: Re: Ad Management mod
Post by: kat on April 30, 2009, 08:13:39 AM
I have to admit to being a tad confused.

When I clicked "Parse", for manual install to v1.1.8, I got "Sorry, but this modification does not appear to be compatible with the selected version."

Is that correct?
Title: Re: Ad Management mod
Post by: Bigguy on April 30, 2009, 09:36:55 AM
It doesn't overwrite it, it rotates the ad on page refresh between the two that are locked in for that position.

Quote from: Andythescientist on April 30, 2009, 05:17:34 AM
I have this package running on 1.1.8..

I'm using an adsense tower and have this positioned on the right hand side of the forum (checkbox).. it shows right at the top right which is perfect.

Now the question is it possible to stack another add, say an amazon stack underneath that adsense tower? If i put the amazon stack on and click the right hand side checkbox, it overwrites the adsense ad, and you only end up with one tower. I had assumed it would just stack them but this does not seem to be the case. Is there any way of doing this type of ad stacking?

@ Kat: I get the same thing. Wonder if its a problem with the mod or the parser.
Title: Re: Ad Management mod
Post by: kat on April 30, 2009, 09:47:34 AM
Dunno. I installed it, anyway. Seems OK.

I'll just have to figure the manual edits from the script, I s'pose.
Title: Re: Ad Management mod
Post by: Andythescientist on April 30, 2009, 10:24:46 AM
Quote from: Bigguy on April 30, 2009, 09:36:55 AM
It doesn't overwrite it, it rotates the ad on page refresh between the two that are locked in for that position.

Quote from: Andythescientist on April 30, 2009, 05:17:34 AM
I have this package running on 1.1.8..

I'm using an adsense tower and have this positioned on the right hand side of the forum (checkbox).. it shows right at the top right which is perfect.

Now the question is it possible to stack another add, say an amazon stack underneath that adsense tower? If i put the amazon stack on and click the right hand side checkbox, it overwrites the adsense ad, and you only end up with one tower. I had assumed it would just stack them but this does not seem to be the case. Is there any way of doing this type of ad stacking?

@ Kat: I get the same thing. Wonder if its a problem with the mod or the parser.

Cheers you are ofc correct i've played about and that is indeed what's happening it swabs between the two.. Now my next question is probably obvious then.. is there no way to show both at the same time on the right hand side? or is this impossible? The forums quite large and has a lot of space to fill down that right side :)

check out http://www.enlightenedequitation.com/ee/boards/index.php  to see what i means..
Title: Re: Ad Management mod
Post by: Bigguy on April 30, 2009, 11:02:32 AM
Not impossible I don't think but would require a bit of extra coding.
Title: Re: Ad Management mod
Post by: Filipina on April 30, 2009, 01:07:45 PM
Quote from: Andythescientist on April 30, 2009, 05:17:34 AM
I have this package running on 1.1.8..

I'm using an adsense tower and have this positioned on the right hand side of the forum (checkbox).. it shows right at the top right which is perfect.

Now the question is it possible to stack another add, say an amazon stack underneath that adsense tower? If i put the amazon stack on and click the right hand side checkbox, it overwrites the adsense ad, and you only end up with one tower. I had assumed it would just stack them but this does not seem to be the case. Is there any way of doing this type of ad stacking?

Not sure if this is what you mean but if you want an AdSense tower ad and below it a amazon ad, you do not need two stacks of tower ads. You can put them both in the same unit, with the code of the amazon ad just below the adsense ad and maybe a small break between them.  I have done it many times.
Title: Re: Ad Management mod
Post by: Sgt Rock on May 01, 2009, 12:42:23 AM
I downloaded it, installed it and it is not showing up anywhere. Any ideas? default core. 1.1.8.
Title: Re: Ad Management mod
Post by: Goodman854 on May 01, 2009, 09:10:24 AM
Quote from: Bigguy on April 28, 2009, 11:03:05 PM
You say you had a permissions error on install. Was this with uploading the mod through the package manager or it failed one of the edits during install. ???

Quote from: goodman854 on April 28, 2009, 10:36:32 PM
ya mine doesnt work. Premission Error on Install. Going threw makes only the admin see ads.
I just downloaded the package and hit apply mod. Error in Modfication of Permissions
Title: Re: Ad Management mod
Post by: dru1487 on May 01, 2009, 08:24:42 PM
Anyone now how I could display ads under my News fader?
Title: Re: Ad Management mod
Post by: Bigguy on May 01, 2009, 09:17:50 PM
@ goodman854: What file does it error on when installing. ???

@ dru1487: Moving the code around a bit comes to mind. I have not looked at the ad code for awhile so I would not be able to tell you off hand what part of the code needs to be moved but it would work.
Title: Re: Ad Management mod
Post by: jonnyfishboy on May 01, 2009, 10:30:49 PM
I added this Mod.

It gave me an error on the Sources/ManagePermisions.php. So I parsed the mod (My board is v 1.1.8) and added the code manualy. I also confimed that the Ads.php, Loadads.php, AdsTemplate.php, & Adsenglish.php were placed into the right location as they were not checkmarked. They were in the right folders.

Now I go into admin section and Look in the configuration area but do not see the Manage ads link????

I tried in the default theme as well as my custom theme and do not see it. Any ideas???

My board is www.clickstars.info
Title: Re: Ad Management mod
Post by: Bigguy on May 01, 2009, 11:18:53 PM
Check the edits for the index.php file I think it is. (just a shot in the dark really) It has been awhile since I played with the ad mod. :(
Title: Re: Ad Management mod
Post by: Goodman854 on May 02, 2009, 12:12:51 AM
Quote from: Bigguy on May 01, 2009, 09:17:50 PM
@ goodman854: What file does it error on when installing. ???

@ dru1487: Moving the code around a bit comes to mind. I have not looked at the ad code for awhile so I would not be able to tell you off hand what part of the code needs to be moved but it would work.
Modify Premisions
Title: Re: Ad Management mod
Post by: jonnyfishboy on May 02, 2009, 12:58:23 AM
Quote from: Bigguy on May 01, 2009, 11:18:53 PM
Check the edits for the index.php file I think it is. (just a shot in the dark really) It has been awhile since I played with the ad mod. :(

Do you mean default/index.template.php? Thats where all the code is for my custom theme.

Cause in the default/index.php theres nothing there, only
Quote
<?php

// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
   include (dirname(dirname(__FILE__)) . '/index.php');
else
   exit;

?>
Title: Re: Ad Management mod
Post by: NigelW on May 02, 2009, 08:55:37 AM
Hi,

I have Simpleportal installed on my custom theme SMF. Now I installed Ad Management and when viewing my website with default theme, I can see the Ads. However with my custom theme I don't see the ads.

I did some manual modification (parse) to the three attached documents and now I only see the ads when viewing a post. On my main portal page I don't see them, on my forum index I don't see them and also when viewing a category I don't see them.

Any help on this would be highly appreciated.

Thank you.

Title: Re: Ad Management mod
Post by: darklord2 on May 02, 2009, 10:57:29 AM
Hi,

I installed the mod and anything goes with out any Error, but no ads shown! i create new adds and Checked all possible showing settings (on forums. sub forums, posts, etc... ) but nothing happend!

any suggestion?

Thanks.
Title: Re: Ad Management mod
Post by: darklord2 on May 02, 2009, 03:46:35 PM
SomeThing Strange happend!

i 'm not using default Theme, but i made all changes manualy to my custom theme. anyway in my Custom theme there is just 2 customized templates: BoardIndex.template.php and index.template.php! when is swiched to default theme Mod works correct but when i switched back there is no Ad! i've changed settings to show ads just after first post of topics and as i said "Display.template.php" is'nt in my custom theme so SMF uses the default one but in default theme "Post Like" ads are visible and in custom theme there is no Ad! i'm totaly confused, Help me...
Title: Re: Ad Management mod
Post by: kat on May 02, 2009, 03:55:36 PM
I love ccbtimewiz's parsing for the index.template...

Find </td>

Riiight... There's only about six billion of those in the Apollo theme... (http://www.augk18.dsl.pipex.com/Smileys/rolleyesb.gif)
Title: Re: Ad Management mod
Post by: Bigguy on May 02, 2009, 06:47:43 PM
@ jonnyfishboy: No in the index.php file in the root of your SMF install.

@ goodman854: Have you manually edited that file. ???

@ NigelW: Do you need this mod with Simple Portal. ???

@ darklord2: Have you checked permissions and cleared your forum cache as well as your browser cache. ???

@ Kat: That edit is tricky, what you are really searching for is the whitespace attached to the </td> seeing as it's the only one that is put in that position in the default theme. (hope that made sense) With a good editor you can find it. What I usually do for a custom theme to find that code is this:

Seach for the</td> in the default theme....find the code that is around it and search for that in your custom theme instead of the </td> Then just experiment where to put the ad mod edit around that area. :) (Hope that made sense as well) The edits in the template files can pretty much go where you want them if you are willing to experiment. :)

Title: Re: Ad Management mod
Post by: jonnyfishboy on May 03, 2009, 12:08:27 AM
I checked my main index and according to the Parsed code everything is right and where it should be.

I have the same problem (Admin controls not appearing in Admin section) with the Shop Mod.
Title: Re: Ad Management mod
Post by: darklord2 on May 03, 2009, 02:49:09 AM
Quote from: Bigguy on May 02, 2009, 06:47:43 PM

@ darklord2: Have you checked permissions and cleared your forum cache as well as your browser cache. ???


Thanks, that worked...  8)
Title: Re: Ad Management mod
Post by: bayness0 on May 03, 2009, 12:48:24 PM
A have just installed this mod and it adds 2 instances of the ad when I create the record.
Title: Re: Ad Management mod
Post by: darklord2 on May 03, 2009, 01:54:01 PM
Same thing occured on my board, that was because of Install > UnInstall > ReInstall!

logicaly its must not be true but:
Look for "$adcounter++;" in Display.template.php if there is 2 instance of that code, remove one of them. actualy i dont know why; but it fixed the problem for me!

i mean if there is something like:

$adcounter++;
$adcounter++;
echo '


change that to

$adcounter++;
echo '
Title: Re: Ad Management mod
Post by: bayness0 on May 03, 2009, 04:09:35 PM
Thanks for the suggestion - I tried but it does not change anything.  I have only installed it once - I will give up with it for now
Title: Re: Ad Management mod
Post by: kat on May 03, 2009, 04:12:29 PM
Quote from: Bigguy on May 02, 2009, 06:47:43 PMThat edit is tricky, what you are really searching for is the whitespace attached to the </td> seeing as it's the only one that is put in that position in the default theme. (hope that made sense) With a good editor you can find it. What I usually do for a custom theme to find that code is this:

Seach for the</td> in the default theme....find the code that is around it and search for that in your custom theme instead of the </td> Then just experiment where to put the ad mod edit around that area. :) (Hope that made sense as well) The edits in the template files can pretty much go where you want them if you are willing to experiment. :)

Yeah, that's what I've been doing.

It's a real bugger on themes like ApolloBB, though. (http://www.augk18.dsl.pipex.com/Smileys/c020.gif)

Thanks, for that!
Title: Re: Ad Management mod
Post by: darklord2 on May 03, 2009, 04:15:20 PM
I know those things are logicaly not related but i thought that fixed my problem.
anyway, sorry for wasting your time.
Title: Re: Ad Management mod
Post by: Goodman854 on May 03, 2009, 11:28:14 PM
Quote from: Bigguy on May 02, 2009, 06:47:43 PM
@ jonnyfishboy: No in the index.php file in the root of your SMF install.

@ goodman854: Have you manually edited that file. ???

@ NigelW: Do you need this mod with Simple Portal. ???

@ darklord2: Have you checked permissions and cleared your forum cache as well as your browser cache. ???

@ Kat: That edit is tricky, what you are really searching for is the whitespace attached to the </td> seeing as it's the only one that is put in that position in the default theme. (hope that made sense) With a good editor you can find it. What I usually do for a custom theme to find that code is this:

Seach for the</td> in the default theme....find the code that is around it and search for that in your custom theme instead of the </td> Then just experiment where to put the ad mod edit around that area. :) (Hope that made sense as well) The edits in the template files can pretty much go where you want them if you are willing to experiment. :)


I already said yes i tried that
Title: Re: Ad Management mod
Post by: kat on May 04, 2009, 05:45:40 AM
EEK!

I keep getting some well weird errors, when I try to add this to the ApolloBB theme.

If I grovel, most unseemingly, could someone help me out, with this, pretty-please...?

(http://www.augk18.dsl.pipex.com/Smileys/c018.gif)
Title: Re: Ad Management mod
Post by: darklord2 on May 04, 2009, 05:53:52 AM
need the buggy file + exact error message...
Title: Re: Ad Management mod
Post by: itsdice on May 04, 2009, 08:13:23 PM
I just downloaded the ad mod. And went to check the the instructions for installing and they are not showing up I'm Using  1.1.8 it is saying that  An Error Has Occurred!
Sorry, but this modification does not appear to be compatible with the selected version.

And it shows That it is compatible with the version im using. Not sure on if i just upload the files straight to my FTP and then what do i do from there?

Any help would be greatly appreciated! Thanks
Title: Re: Ad Management mod
Post by: kat on May 04, 2009, 08:19:26 PM
If you look back a page, you'll see that I had exactly the same problem, itsdice.

I installed it and all went well, except for the manual edits that I need to make to the ApolloBB theme...

Go ahead and install it.

If you get any warning messages, though, don't even think of ignoring them.

Oh... You HAVE taken a full backup, haven't you?  ;)
Title: Re: Ad Management mod
Post by: itsdice on May 04, 2009, 08:35:09 PM
No i havent backed anything up yet but i will before i install. Thanks for your help. So once i upload, just go to my admin in my forum and i should see it?
Title: Re: Ad Management mod
Post by: kat on May 04, 2009, 08:40:12 PM
Yep. Then, apply and you're away.

As I said, though, don't ignore any warnings you get, after you hit "Apply".

Quite a bit of manual editing to do with custom themes. You can get the details here:

http://www.smfads.com/forums/index.php?topic=1930.0#post_ref5
Title: Re: Ad Management mod
Post by: itsdice on May 04, 2009, 08:59:11 PM
Thank you again. I will post if i have any more issues. I am just using the Default Theme.  And i wont ignore the warnings i want everything working. Thanks Again!!  :D
Title: Re: Ad Management mod
Post by: itsdice on May 04, 2009, 09:05:00 PM
Was wondering Just upload to MAIN part of Ftp it doesnt have to go into any directory?
Title: Re: Ad Management mod
Post by: itsdice on May 04, 2009, 09:31:04 PM
I am kinda lost on how to install this mod? I though just uploading it to my ftp though Filezilla. Then i see in the forum it has option to upload? Any Help?
Title: Re: Ad Management mod
Post by: Goodman854 on May 04, 2009, 10:59:48 PM
any word on premission prob?
Title: Re: Ad Management mod
Post by: itsdice on May 05, 2009, 12:02:03 AM
I got an error. 

I am using Version 1.1.8 Default Theme And No Mods

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

And here is what shows at the bottom

(http://uofanswers.com/error.JPG)
Title: Re: Ad Management mod
Post by: itsdice on May 05, 2009, 07:49:41 AM
Any Possible help on this please?

I would greatly appreciate it. Thanks again
Title: Re: Ad Management mod
Post by: Bigguy on May 05, 2009, 08:38:39 AM
@ itsdice: If you go ahead and install the mod and then come back and manually edit that file everything should work fine for you.
Title: Re: Ad Management mod
Post by: itsdice on May 05, 2009, 10:01:28 AM
Bigguy  Ok But what would i need to edit in that file? does it explain it once i install it?
Title: Re: Ad Management mod
Post by: Bigguy on May 05, 2009, 10:40:16 AM
Use the package parser where you downloaded the mod.
Title: Re: Ad Management mod
Post by: itsdice on May 05, 2009, 12:30:09 PM
Thats been my problem from the getgo The install instructions dont work/showup cant download them thats why im having problems
Title: Re: Ad Management mod
Post by: kat on May 05, 2009, 06:32:37 PM
As I said, a bit earlier, the full instuctions for manual edits are here:

http://www.smfads.com/forums/index.php?topic=1930.0#post_ref5

If you can't cope, even with that, you could always attach your theme's display.template.php and we could do it, for you.
Title: Re: Ad Management mod
Post by: Goodman854 on May 05, 2009, 10:45:29 PM
Still any way to fix permissions error?
Title: Re: Ad Management mod
Post by: josan_v on May 06, 2009, 08:15:31 AM
Hello, I installed the mod and it didn't give me any errors uploading and installing it. But it won't show up under the configuration section of admin panel. And in the forum error log it mentions:

8: Undefined index: ad_management
File: /home/josan/public_html/forum/Sources/Subs.php
Line: 2742

and

Unable to load the 'Ads.english-utf8' language file.

I don't know how to manually code or parse or whatever it's called. I'm so confused by now. I'm using version SMF 1.1.8 and theme Overview but it won't show up in the SMF default theme either.

Who can help me step by step, in simple words. I've tried to read all those manual coding and parsing pages on this forum by now and I don't get it and I'm scared to mess up my forum if I do.
Title: Re: Ad Management mod
Post by: itsdice on May 06, 2009, 05:13:21 PM
Ok So i installed it went to manually edit it. And all the code that was suppose to be edited already appeared in that file. So i am going to see if it works
Title: Re: Ad Management mod
Post by: Bigguy on May 06, 2009, 06:36:45 PM
@ josan_v: Is your forum using utf8, if so rename the Ads.english.php file to Ads.english-utf8.php and see if that works.
Title: Re: Ad Management mod
Post by: josan_v on May 06, 2009, 06:45:37 PM
Quote from: Bigguy on May 06, 2009, 06:36:45 PM
@ josan_v: Is your forum using utf8, if so rename the Ads.english.php file to Ads.english-utf8.php and see if that works.

Thank you so very much. I followed your suggestion and the function now appears in the menu. I'll try to ad ads now and let you know  :) Thanks again!
Title: Re: Ad Management mod
Post by: kat on May 06, 2009, 06:47:29 PM
Quote from: Kat on May 03, 2009, 04:12:29 PMIt's a real bugger on themes like ApolloBB, though.

Figured it, thanks!
Title: Re: Ad Management mod
Post by: josan_v on May 06, 2009, 07:00:25 PM
Bigguy, I still see this error in the forum error log:

8: Undefined index: ad_management
File: /home/josan/public_html/forum/Sources/Subs.php
Line: 2742

I am able to work in the ad manager thru my admin panel, but I don't see the ads appearing on the board itself. Any idea what is still wrong?
Title: Re: Ad Management mod
Post by: Bigguy on May 06, 2009, 07:11:31 PM
Hmm, not sure what that is right off the top of my head. No ads at all are showing, Anywhere. ???
Title: Re: Ad Management mod
Post by: josan_v on May 07, 2009, 08:32:10 AM
Quote from: Bigguy on May 06, 2009, 07:11:31 PM
Hmm, not sure what that is right off the top of my head. No ads at all are showing, Anywhere. ???

I got it to work, I wasn't writing the link to the html ad out properly. And the sub error has stopped too? Magically disappeared I guess  ;D
Title: Re: Ad Management mod
Post by: Bigguy on May 07, 2009, 03:35:03 PM
Great to know you got it working. :)
Title: Re: Ad Management mod
Post by: itsdice on May 07, 2009, 06:18:39 PM
Mine is working too just have to wait for google to send me adsense pin code so it will stop showing public service ads. Thanks bigguy and Kat for your help i appreciate it
Title: Re: Ad Management mod
Post by: Bigguy on May 07, 2009, 06:33:41 PM
Not a problem at all. glad to be able to help. :)
Title: Re: Ad Management mod
Post by: primetime on May 07, 2009, 06:42:38 PM
I have two custom themes installed, silentwave and extreme. My SMF version is 2.0 RC1.
The Ads show up nicely in the default theme. They only show up one time in the custom themes. They do not rotate appearances either. Is there some type of edit instructions for 2.0RC1 custom themes?

Thank you,
Prime
Title: Re: Ad Management mod
Post by: Bigguy on May 07, 2009, 07:08:04 PM
Use the package parser to see what code goes in the template files of your themes you want to use.
Title: Re: Ad Management mod
Post by: primetime on May 07, 2009, 10:36:17 PM
Quote from: Bigguy on May 07, 2009, 07:08:04 PM
Use the package parser to see what code goes in the template files of your themes you want to use.

I wish it were that easy.. some of the code that the parser tells me to find does not exist on the templates.
Title: Re: Ad Management mod
Post by: Bigguy on May 07, 2009, 10:57:01 PM
Ok all the spots the parser tells you to find are in the default templates. So you will have to find those spots in the default templates and then look at the code around those spots, now go back to your custom theme and look for the that. Place the ad mod code somewhere around there and experiment. For this though you need a good editor and some patience.
Title: Re: Ad Management mod
Post by: oludimuni on May 08, 2009, 04:02:51 AM
can someone help me in steps by step how i can use this version on mode  (ad_mod_1-1-x_v2-3) with smf 1.1.8. I need to add google adsense to my forum.
Title: Re: Ad Management mod
Post by: Bigguy on May 08, 2009, 06:11:26 AM
Have you tried the package parser. ???
Title: Re: Ad Management mod
Post by: primetime on May 08, 2009, 07:52:25 AM
Quote from: Bigguy on May 07, 2009, 10:57:01 PM
Ok all the spots the parser tells you to find are in the default templates. So you will have to find those spots in the default templates and then look at the code around those spots, now go back to your custom theme and look for the that. Place the ad mod code somewhere around there and experiment. For this though you need a good editor and some patience.

I will check it more slowly. I use Rapid PHP to edit so I think that should be suffice. Updates to follow. :)
Title: Re: Ad Management mod
Post by: dru1487 on May 08, 2009, 10:53:40 AM
I have the admod installed but have no ads showing on my custom theme. I know I need to to a manual add for some of the code, but do I need to make ALL the manual changes listed in the parse since the mod is installed already?

I am using 1.1.8 and a CLassic Yabb theme
Title: Re: Ad Management mod
Post by: Bigguy on May 08, 2009, 12:24:25 PM
No, if the mod is installed only do manual edits to the template files that you find in your custom theme folder.
Title: Re: Ad Management mod
Post by: laneydotbiz on May 08, 2009, 05:23:40 PM
Thanks for the good jobs you've been doing. Now i have few questions about this mode.
First, i learn t that this ad mode can only work with Default Theme - Core but i i'm using Classic YaBB SE theme. My forum version is 1.1.8.
Pls is there any ad mode that works perfectly with this theme and smf version?
Thanks again
Title: Re: Ad Management mod
Post by: Bigguy on May 08, 2009, 05:32:23 PM
This mod CAN work with any theme. All it takes is a bit of manual edits. Install the mod on the default theme, then go to your YaBB SE theme folder and edit the files:

index.template.php
messageindex.template.php
boardindex.template.php
display.template.php

Use the package parser from the download page to find the edits for the mod.

If that theme does not have all of those files then only edit the ones that are there. The others would have been modified during install and do not need to be edited. Yes, they will still work on your theme because whatever template files are not in the custom theme folder SMF reads from the default theme folder for them.

If you can not find some of the code that you need to edit in those files. You will have to compare the default template file against the custom template file and experiment on where to put the code. (I hope that all made sense.)

REMEMBER to BACKUP your database BEFORE installing ANY mod.
Title: Re: Ad Management mod
Post by: jonnyfishboy on May 08, 2009, 10:13:51 PM
Well seems like I had the same problem Jason had in regards to my ad Management not appearing in admin. So that it fixed.  :)

Now I managed to get ads appear in some spots, but not others.

The between posts works as well as at the top of posts, but ads DO NOT appear on index page when I select any that are supposed to??????

Also 2 more questions.

1. If I ad 2 ads and select the same option ie. after 1ST post, will it rotate them, or will it ad 2 banners?

2. How do you center the banners. Right now they are flush right and it makes the forum look a little off????

Thanks again

Jon
Title: Re: Ad Management mod
Post by: Bigguy on May 08, 2009, 10:27:22 PM
1.) yes it will rotate on page refresh

2.) That has been discussed alot, search this thread
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on May 08, 2009, 11:02:41 PM
I just wanted to know, does this mod work for "Google Adsense for Search" and display the search results on the forum too?
Title: Re: Ad Management mod
Post by: jonnyfishboy on May 08, 2009, 11:25:47 PM
Quote from: Bigguy on May 08, 2009, 10:27:22 PM
1.) yes it will rotate on page refresh

2.) That has been discussed alot, search this thread

Thanks,

But what about the ads not appearing with certain selections?

It does show in between posts, and at top of posts, but no on the index when you select that one???????
Title: Re: Ad Management mod
Post by: Bigguy on May 08, 2009, 11:43:43 PM
If you are using a custom theme refer to this post (http://www.simplemachines.org/community/index.php?topic=68632.msg2049988#msg2049988)
Title: Re: Ad Management mod
Post by: jonnyfishboy on May 09, 2009, 02:11:57 AM
I did that,

But ads still does not show on main index page.

I did fix the messageindex page. But can not figure out the index page problem.

Almost there.

Title: Re: Ad Management mod
Post by: jonnyfishboy on May 09, 2009, 02:16:58 AM
ok,

I got the index page figured out.

I needed to check 2 catagories for the index page to appear??

1. Display ads on every page right below the menu
2. Display ads on board index

Thank You
Title: Re: Ad Management mod
Post by: benjicadena on May 09, 2009, 11:54:00 AM
I am looking at the parse instructions of version 2.3 and understood everything until I got to the end where it talks about running queries manually. How is this done. Do I have to create a file called install.php or does this file already exist and do I have to paste the queries in this file to run them and if I do is it one by one?  Do I paste all of them or erase one after pasting it then paste another and run it?
I am running smf 1.1.8 default theme.

Sorry if my question doesn't make too much sense but basically I need to understand that last bit of instruction of running queries.
Title: Re: Ad Management mod
Post by: Bigguy on May 09, 2009, 11:57:55 AM
You shouldn't have to run anything if you installed through the package manager. :)
Title: Re: Ad Management mod
Post by: benjicadena on May 09, 2009, 01:05:15 PM
Okay, I just installed it through package manager and it says installed successfully but I don't see ad management under the heading Configuration. I refreshed and cleared my cookie but don't see anything. Do I have to edit any of the files even after installing through package manager?
Title: Re: Ad Management mod
Post by: benjicadena on May 09, 2009, 02:43:42 PM
I got it to show under configuration now. I had to set the language under server settings to English.

Thank you Bigguy
Title: Re: Ad Management mod
Post by: Goodman854 on May 10, 2009, 12:22:21 PM
...and the permission error?
Title: Re: Ad Management mod
Post by: ArkServer on May 10, 2009, 01:39:01 PM
I was wondering if anyone could make the edits for this theme: DS-Natural  ( my site uses the theme: http://www.engineeringserver.com/forum/ )
download theme: http://www.dzinerstudio.com/index.php?action=tpmod;dl=item76

very much appriciated :D
Title: Re: Ad Management mod
Post by: laneydotbiz on May 11, 2009, 03:31:34 AM
Quote from: Bigguy on May 08, 2009, 05:32:23 PM
This mod CAN work with any theme. All it takes is a bit of manual edits. Install the mod on the default theme, then go to your YaBB SE theme folder and edit the files:

index.template.php
messageindex.template.php
boardindex.template.php
display.template.php

Use the package parser from the download page to find the edits for the mod.

If that theme does not have all of those files then only edit the ones that are there. The others would have been modified during install and do not need to be edited. Yes, they will still work on your theme because whatever template files are not in the custom theme folder SMF reads from the default theme folder for them.

If you can not find some of the code that you need to edit in those files. You will have to compare the default template file against the custom template file and experiment on where to put the code. (I hope that all made sense.)

REMEMBER to BACKUP your database BEFORE installing ANY mod.


Thanks for the idea. But pls i'm a complete novice, i  know few things about html.
Pls could you state the actions to achieve this in a step by step way.
Sorry to disturb you.
Title: Re: Ad Management mod
Post by: Bigguy on May 11, 2009, 09:04:37 AM
The package parser does lay it out in a step by step way. If you have it installed through the package manager then all you have to edit is template files.
Title: Re: Ad Management mod
Post by: TomW on May 11, 2009, 01:01:56 PM
How can I place ads on the side (left or right) of my forum ?  Do I need to create another layer; or use something like PortaMX ?  That seems like overkill for what I need.
Title: Re: Ad Management mod
Post by: Bigguy on May 11, 2009, 02:56:27 PM
Use the tower ad placement in ad management.
Title: Re: Ad Management mod
Post by: Goodman854 on May 12, 2009, 10:03:03 PM
Just on another note.... how would i fix the PREMISSION ERROR?! I tried manual edit.
Title: Re: Ad Management mod
Post by: benjicadena on May 12, 2009, 10:10:06 PM
I know this mod is suppose to be for ads but will it also work if I paste a counter code like Google Analytics
to track my visitors?
Title: Re: Ad Management mod
Post by: Bigguy on May 13, 2009, 07:52:11 AM
Yes benjicadena, it should. What error are you getting again goodman854 ???
Title: Re: Ad Management mod
Post by: Magicjax on May 13, 2009, 02:15:10 PM
It seems to have installed right. At least that's what the package manager said.

But there is no "Ad Management" link under configuration. All I got is this:

(http://magictalk.com/nolink.jpg)

SMF 1.1.8

Theme: Anecdota

Any suggestions?

Thanks.

Ron
Title: Re: Ad Management mod
Post by: TomW on May 13, 2009, 03:45:31 PM
Quote from: Bigguy on May 11, 2009, 02:56:27 PM
Use the tower ad placement in ad management.

Thank you !
Title: Re: Ad Management mod
Post by: Goodman854 on May 13, 2009, 05:43:52 PM
I fixed premssion error by manualyl uploading an edited modbalah.php But the other error was
./Themes/default/Display.template.php
Title: Re: Ad Management mod
Post by: Magicjax on May 13, 2009, 07:35:41 PM
Quote from: Magicjax on May 13, 2009, 02:15:10 PM
It seems to have installed right. At least that's what the package manager said.

But there is no "Ad Management" link under configuration. All I got is this:

(http://magictalk.com/nolink.jpg)

SMF 1.1.8

Theme: Anecdota

Any suggestions?

Thanks.

Ron

Any help with this problem?
Title: Re: Ad Management mod
Post by: Bigguy on May 13, 2009, 09:26:58 PM
Try moving the modifications.english.php file to the language folder of the theme you are using. If there is no language folder there create one and put that file in it.
Title: Re: Ad Management mod
Post by: Goodman854 on May 13, 2009, 11:21:00 PM
uhh Big guy would it be ok if over PM i just give you FTP info and you can try to fix it? Sorry I know your prob busy. But can ya? Thanks.
Title: Re: Ad Management mod
Post by: jonnyfishboy on May 13, 2009, 11:52:43 PM
Quote from: Magicjax on May 13, 2009, 02:15:10 PM
It seems to have installed right. At least that's what the package manager said.

But there is no "Ad Management" link under configuration. All I got is this:

(http://magictalk.com/nolink.jpg)

SMF 1.1.8

Theme: Anecdota

Any suggestions?

Thanks.

Ron

I had the same problem, See one possible resolution the Bigguy gave someone else that helped me. Check your error logs. Do you get an error like this

Quote
Unable to load the 'Ads.english-utf8' language file.

If so then this might help you.

Quote from: Bigguy on May 06, 2009, 06:36:45 PM
Is your forum using utf8, if so rename the Ads.english.php file to Ads.english-utf8.php and see if that works.

Also read from this spot in this thread onward for additional help - http://www.simplemachines.org/community/index.php?topic=68632.msg2046543#msg2046543
Title: Re: Ad Management mod
Post by: Bigguy on May 14, 2009, 12:02:02 AM
@ goodman854: It's late here but it is a very simple procedure. make a new folder in your custom theme folder and call it languages next take the Modifications.english.php file and download to your desktop then upload to your new folder. You can also try what jonnyfishboy suggested. :)
Title: Re: Ad Management mod
Post by: Magicjax on May 14, 2009, 02:41:55 PM
Quote from: jonnyfishboy on May 13, 2009, 11:52:43 PM
Quote from: Magicjax on May 13, 2009, 02:15:10 PM
It seems to have installed right. At least that's what the package manager said.

But there is no "Ad Management" link under configuration. All I got is this:

(http://magictalk.com/nolink.jpg)

SMF 1.1.8

Theme: Anecdota

Any suggestions?

Thanks.

Ron

I had the same problem, See one possible resolution the Bigguy gave someone else that helped me. Check your error logs. Do you get an error like this

Quote
Unable to load the 'Ads.english-utf8' language file.

If so then this might help you.

Quote from: Bigguy on May 06, 2009, 06:36:45 PM
Is your forum using utf8, if so rename the Ads.english.php file to Ads.english-utf8.php and see if that works.

Also read from this spot in this thread onward for additional help - http://www.simplemachines.org/community/index.php?topic=68632.msg2046543#msg2046543

Thanks so much for your help. That did the trick.

If anyone else runs into the problem this file is located in themes/default/language

Thanks again.
Title: Re: Ad Management mod
Post by: Goodman854 on May 14, 2009, 03:50:28 PM
Quote from: Bigguy on May 14, 2009, 12:02:02 AM
@ goodman854: It's late here but it is a very simple procedure. make a new folder in your custom theme folder and call it languages next take the Modifications.english.php file and download to your desktop then upload to your new folder. You can also try what jonnyfishboy suggested. :)
Its the default theme not custom.
Title: Re: Ad Management mod
Post by: Goodman854 on May 14, 2009, 08:01:52 PM
HELP PLEASE I HAVE ALMOST FIXED IT

I have 3 "</td></tr>';" which one do I replace? I don't really wanan try trail and error.

EDIT; Sorry for the double post that was a mistake should it be just a little under "      // Show the member's signature?"?
Title: Re: Ad Management mod
Post by: Bigguy on May 14, 2009, 09:46:33 PM
The whitespace in front of the edit should tell you which one to edit.
Title: Re: Ad Management mod
Post by: Goodman854 on May 14, 2009, 11:26:56 PM
Quote from: goodman854 on May 14, 2009, 08:01:52 PM
HELP PLEASE I HAVE ALMOST FIXED IT

I have 3 "</td></tr>';" which one do I replace? I don't really wanan try trail and error.

EDIT; Sorry for the double post that was a mistake should it be just a little under "      // Show the member's signature?"?
Sorry what do you mean? There exactly the same.
Title: Re: Ad Management mod
Post by: Bigguy on May 14, 2009, 11:45:42 PM
In the edits for the ad mod when it shows the td tr edit there is a whitespace in front of it. That space is really what you are looking for. It should match with one in your template. (hope that made sense.)
Title: Re: Ad Management mod
Post by: Goodman854 on May 15, 2009, 12:21:03 AM
Sadly due to other mods ext. They all have same white space. In your DISPLAY.TEMPLATE what and where abouts is it? Whats it say above th edit below ext. plz and ty.
SOLVED
It was already edited in that area thats why. After a few manual edits it finally works sorry. Thanks any ways tho! And uh Big Guy are u the supporter for the mod or did the orginal guy quit?
Title: Re: Ad Management mod
Post by: jpaytoncfd on May 15, 2009, 02:01:48 PM
IDK if this has been mentioned or not but this mod works like a charm on 2.0 RC1

http://thestablesociety.com

At the bottom. All other positions work too.
Title: Re: Ad Management mod
Post by: Magicjax on May 15, 2009, 02:05:28 PM
Thanks so much for the help so far. The last issue I had is now taken care of so thanks again for that.

But now the ads aren't showing up on my forum. I read other solutions at the smfads.com forum but I can't figure out which solution fits my problem and my theme. So I don't know where to start.

I looked up help for my theme which is Anecdota and my version is 1.1.8

You can see my forum here:
http://magictalk.com/forum/index.php

What I'm trying to do is to get the ads to show up between the categories. I'm pretty sure I have the settings set right to do this in the ad manager settings. But no ads show up on the forum anywhere.

Any help would be appreciate. Thanks again for the help so far.

Ron

Title: Re: Ad Management mod
Post by: ellion on May 15, 2009, 02:46:35 PM
hi, i am trying to find away to put ads under the toolbar menu on the topic pages only. all i want is one ad under the menu on the topic pages. i dont want ads to show on board index or non topic pages would i be able to do this using this mod?

thanks for your help
Title: Re: Ad Management mod
Post by: Magicjax on May 15, 2009, 06:19:56 PM
I still can't get the ads to show up on the forum. So I looked around.

When I went to the download page for the mod here (http://custom.simplemachines.org/mods/index.php?mod=255) and clicked the "Manual Install Instructions for SMF". The next page said:

Quote
An Error Has Occurred!
Sorry, but this modification does not appear to be compatible with the selected version.

Does this mean the mod won't work with 1.1.8?

If not how can I get the ads to show up on my forum?

Ron
Title: Re: Ad Management mod
Post by: Bigguy on May 16, 2009, 03:47:08 AM
@ goodman854: not sure what has happened to Jerm

@ Magicjax: it's probably due to a template file not being manually edited in your custom theme folder.

@ Magicjax: Yes it does. Try to find the right version.
Title: Re: Ad Management mod
Post by: dzinerfusion on May 16, 2009, 09:56:31 AM
Sorry if this has been answered before... can i use this on 2.0 rc1 because when i parse it it works
Title: Re: Ad Management mod
Post by: Goodman854 on May 16, 2009, 11:12:13 AM
Yes Bluesinjid you can. However watch out some people on this forum will insult you VERY EASILY careful. I wouldn't use it If I were you every one all on edge and crap I just got screamed at for no reason in another thread.
NEVER MAKE A SINGLE SPELLING MISTAKE they will pounce you like dogs.
Title: Re: Ad Management mod
Post by: Magicjax on May 16, 2009, 12:11:34 PM
Quote from: Bigguy on May 16, 2009, 03:47:08 AM
@ goodman854: not sure what has happened to Jerm

@ Magicjax: it's probably due to a template file not being manually edited in your custom theme folder.

@ Magicjax: Yes it does. Try to find the right version.

Thank you very much Bigguy.

I do remember seeing something that tells you how to edit the template file. But I'm not sure where. Do you happen to have a link that would walk me through it? I'm new and a little worried I'll make the wrong changes. :)

Thanks again.

Ron
Title: Re: Ad Management mod
Post by: Magicjax on May 16, 2009, 01:11:24 PM
I found this tutorial (http://www.smfads.com/forums/index.php?topic=1930.0) on adding the mod to other themes. I can understand it all except for one part.

It says:

Find:
Code:

</td>


Replace with:
Code:

</td>';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo '


The problem is there are 4 (</td>) in the index.template.php file and it doesn't tell which one to replace. Which one do I replce the code with?

Thanks
Title: Re: Ad Management mod
Post by: Bigguy on May 17, 2009, 10:25:40 AM
There is only one td that has that whitespace in front of it. That is the one to edit. (or there should be only one)
Title: Re: Ad Management mod
Post by: Magicjax on May 17, 2009, 01:43:50 PM
In my file there are 4 </td> and none of them have a large empty spaces before them. The bloc that has them is below.


if (empty($button_strip))
return '<td> </td>';
$mid='';
echo '
<td valign="top" class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '"> </td>
<td valign="top" class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode($mid, $button_strip) , '</td>
<td valign="top" class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '"> </td>';

}



So what should I do? Would it be the first one?

Thanks for the reply.

Ron
Title: Re: Ad Management mod
Post by: Bigguy on May 18, 2009, 07:22:32 AM
Check where the ad management mod puts that code in the default template. Then have a look around that area to see what code is around it and compare that to your custom template. You should be able to find it that way.
Title: Re: Ad Management mod
Post by: waldano on May 21, 2009, 08:43:58 AM
Hello everybody,
First of all, thanks whoever takes place in such a good community and helps us to develop our sites to a better shape.

I have a small problem about ad management mod.
When I try to install this package,
There is a problem with  display.template.php
my forum uses SMF 1.1.9 ,also there was an error again while my forum was 1.1.8.
I tried to solve the problem by installing the mod manuelly but the same thing happened again :/
I can't see ad management mod on my admin panel.
I'm really new on this coding things and don't know much :/
(http://img194.imageshack.us/img194/3883/admanagementadmin.jpg)
So, i attached my display.template.php file,
I hope someone could find the problem and help me :)

If you need, here are the installed packages;

1.  Registered Links  1.0 
2. Pretty URLs 0.9.3
3. Favicon 1.2
4. Topic Ratings 1.03
5. SMF 1.0.15 / 1.1.7 Update 1.0
6. SMF 1.0.16 / 1.1.8 Update 1.0
7. SMF Sitemap 1.2.2
8. Advanced Reputation System 0.1.2
9. SimplePortal 2.2
10. Aligned and Bilateral Child Boards 1.4
11. Tagging System 1.1.1
12. Googlebot & Spiders Mod 2.0.4
13. Hide Tag Special 1.8.0
14. Select All And Copy Code To Clipboard 1.2
15. Full Top 10 Stats 1.0
16. Double Post Stopper 1.1
17. Box BBCode 1.2
18. Related Topics 1.3.2
19. Images On Board 2.1
20. nneonneo's AJAX ShoutBox 1.22
21. Search Focus Dropdown 1.2
22. Todays Birthday 1.2
23. SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update 1.0
24. Highslide Image Viewer 1.0 RC9
25. Treasury 2.34
26. Ad Managment 2.3





Title: Re: Ad Management mod
Post by: Magicjax on May 21, 2009, 04:50:18 PM
I had the same problem and here's the solution that worked.

Quote from: jonnyfishboy on May 13, 2009, 11:52:43 PM
Quote from: Magicjax on May 13, 2009, 02:15:10 PM
It seems to have installed right. At least that's what the package manager said.

But there is no "Ad Management" link under configuration. All I got is this:

(http://magictalk.com/nolink.jpg)

SMF 1.1.8

Theme: Anecdota

Any suggestions?

Thanks.

Ron

I had the same problem, See one possible resolution the Bigguy gave someone else that helped me. Check your error logs. Do you get an error like this

Quote
Unable to load the 'Ads.english-utf8' language file.

If so then this might help you.

Quote from: Bigguy on May 06, 2009, 06:36:45 PM
Is your forum using utf8, if so rename the Ads.english.php file to Ads.english-utf8.php and see if that works.

Also read from this spot in this thread onward for additional help - http://www.simplemachines.org/community/index.php?topic=68632.msg2046543#msg2046543


So you change the name of this file:
Ads.english.php

To this:
Ads.english-utf8.php

This file is located in themes/default/language
Title: Re: Ad Management mod
Post by: saibaworld on May 22, 2009, 03:54:35 PM
I had the ad management mod installed successfully yesterday on my smf 1.1.8; which i also incidentally upgraded to smf 1.1.9.

My problem now is that my google ads are only visible to the admin WHILE guests and registered members just cannot see them

How do i get my registered members n guests to see the ads?
Title: Re: Ad Management mod
Post by: benjicadena on May 22, 2009, 04:11:20 PM
Quote from: drtonik on May 22, 2009, 03:54:35 PM
I had the ad management mod installed successfully yesterday on my smf 1.1.8; which i also incidentally upgraded to smf 1.1.9.

My problem now is that my google ads are only visible to the admin WHILE guests and registered members just cannot see them

How do i get my registered members n guests to see the ads?

Go to your admin, click on permissions, then click on modify for guests and make sure that the enable ads box is checked. Do the same thing for members click on modify and make sure the enable ads box is checked.
Title: Re: Ad Management mod
Post by: saibaworld on May 23, 2009, 04:32:56 PM
Thanks mate.

Mine's working now.

Went to admin -> permissions -> modify for guests n then for members, just like you said

thanks a lot
Title: Re: Ad Management mod
Post by: rafaweborama on May 23, 2009, 06:57:33 PM
I Have the 1.1.9 but i cant see the Ads Tab :(

Any1?
Title: Re: Ad Management mod
Post by: waldano on May 23, 2009, 08:43:21 PM
Quote from: waldano on May 21, 2009, 08:43:58 AM
Hello everybody,
First of all, thanks whoever takes place in such a good community and helps us to develop our sites to a better shape.

I have a small problem about ad management mod.
When I try to install this package,
There is a problem with  display.template.php
my forum uses SMF 1.1.9 ,also there was an error again while my forum was 1.1.8.
I tried to solve the problem by installing the mod manually but the same thing happened again :/
I can't see ad management mod on my admin panel.
I'm really new on this coding things and don't know much :/
(http://img194.imageshack.us/img194/3883/admanagementadmin.jpg)
So, i attached my display.template.php file,
I hope someone could find the problem and help me :)


Quote from: rafaweborama on May 23, 2009, 06:57:33 PM
I Have the 1.1.9 but i cant see the Ads Tab :(

Any1?


I think you installed and couldn't see the ad mod in admin panel just like me :.
Luckily i got it today and figured out :)

You must be using utf-8 characters and ad mod has only Ads.english.php
Just simply copy file this and change its name to => Ads.english-utf8.php
Then, send into languages file ;)

There is no connection with display.template.php as i thought before.

Thanks to me ^_^
Title: Re: Ad Management mod
Post by: benjicadena on May 23, 2009, 10:03:29 PM
Quote from: rafaweborama on May 23, 2009, 06:57:33 PM
I Have the 1.1.9 but i cant see the Ads Tab :(

Any1?

Go to admin, then under configuration go to server settings, and under default forum language choose english. Make sure that you choose English and not English with the utf 8
Title: Re: Ad Management mod
Post by: amrik on May 26, 2009, 03:58:03 AM
Is that work with the latest  version of smf? :-\
Title: Re: Ad Management mod
Post by: oludimuni on May 26, 2009, 06:27:57 AM
I installed version 2.3, but i can only view it from my computer alone, but cannot view it anywhere else.
Title: Re: Ad Management mod
Post by: Bigguy on May 26, 2009, 08:43:04 AM
Check permissions.
Title: Re: Ad Management mod
Post by: amrik on May 26, 2009, 03:34:35 PM
can i install it on smf 2.0?
Title: Re: Ad Management mod
Post by: MultiformeIngegno on May 27, 2009, 10:18:51 AM
Hello! :)
I receive this error in the logs...

Unable to load the 'Ads.english' language file.

...how can I fix it?
Thanks in advance!
Title: Re: Ad Management mod
Post by: Bigguy on May 28, 2009, 07:31:38 AM
@ amrik: I do believe there is a version for 2.0 yes.

@ lorenzone92: Make sure the file is there and permissions are set right.
Title: Re: Ad Management mod
Post by: computel on May 28, 2009, 12:14:57 PM
I just setupo a new forum under 1.1.9 and tried to install the ad manager but it doesn't install. I click install it sends me to another page but doesn't install and no errors.

How do I fix this?

Thanks
Title: Re: Ad Management mod
Post by: Bigguy on May 28, 2009, 07:06:47 PM
You would have to edit the .xml file to make it compatible with 1.1.9 Then repack the mod and try installing it.
Title: Re: Ad Management mod
Post by: computel on May 28, 2009, 11:13:31 PM
what would I need to add or change in the xml file.

Thanks
Title: Re: Ad Management mod
Post by: Bigguy on May 29, 2009, 07:04:13 AM
There's an install line that has version numbers in it. It should look like this:

<install for="1.1.7, 1.1.8">

Insert the version of SMF (1.1.9) and save, repack and upload. DO A BACKUP OF THE DATABASE BEFORE YOU DO THIS.
Title: Re: Ad Management mod
Post by: MultiformeIngegno on May 29, 2009, 12:44:33 PM
But... why do SMF has this (stupid) stuff (that it checks the version of the forum to be sure it's compatible)...?
I think it would be more useful if the author can provide a list of non-compatible versions, when installing, SMF will check that list, if the version istalled is included in it, the package couldn't be installed, if it's not included, the installation can continue...
Title: Re: Ad Management mod
Post by: Bigguy on May 29, 2009, 12:47:00 PM
Pretty much the same thing isn't it. ??? Code changes to SMF files in different versions makes this check a must.
Title: Re: Ad Management mod
Post by: MultiformeIngegno on May 29, 2009, 05:41:19 PM
Quote from: Bigguy on May 29, 2009, 12:47:00 PM
Pretty much the same thing isn't it. ??? Code changes to SMF files in different versions makes this check a must.
And... an online check?
The author can provide an updated list of compatible-versions... when installing the package goes online and checks if it's compatible!

If not (or it can't access to the site) it will prompt an advice.. or something... :)
Title: Re: Ad Management mod
Post by: Bigguy on May 29, 2009, 07:15:11 PM
I'm not saying its a bad idea. If you would like to post it in the general support board instead of a mod help thread then I am sure someone will be with you shortly. :)
Title: Re: Ad Management mod
Post by: MultiformeIngegno on May 30, 2009, 08:35:12 AM
You're right, sorry! :P

But... now I've a support request for you... ;)
Why in my forum (I've Ad management mod installed) when users aren't logged the login box in welcome area is grey?
(http://img38.imageshack.us/img38/473/welcomeare.png)

...when logged it's "normal".... this happens with every browser (i've tried with ie 7/8, firefox, chrome...)
Title: Re: Ad Management mod
Post by: Bigguy on May 30, 2009, 08:55:41 AM
I would have to go through the mod but maybe there is a .css change in it somewhere.
Title: Re: Ad Management mod
Post by: MultiformeIngegno on May 30, 2009, 09:44:14 AM
Quote from: Bigguy on May 30, 2009, 08:55:41 AM
I would have to go through the mod but maybe there is a .css change in it somewhere.
If you want I can post the css files here...
Title: Re: Ad Management mod
Post by: TomW on May 30, 2009, 01:35:53 PM
I manually installed this mod in RC1, and get this error when trying to save an ad:

Unknown column 'CATEGORY' in 'field list'
File: /Users/Tom/Sites/TheGarage2/Sources/Ads.php
Line: 315

Please help.

Title: Re: Ad Management mod
Post by: Bigguy on May 30, 2009, 04:16:08 PM
Did you run the install.php after manually installing it. If not then database changes have not been made.
Title: Re: Ad Management mod
Post by: Bigguy on May 30, 2009, 04:16:54 PM
@ lorenzone92: Come to think of it, I'm not sure there are .css changes in this mod. ???
Title: Re: Ad Management mod
Post by: TomW on May 30, 2009, 04:52:50 PM
Quote from: Bigguy on May 30, 2009, 04:16:08 PM
Did you run the install.php after manually installing it. If not then database changes have not been made.

Yes, but there is an error in the syntax, so I ran the create table scripts & added values to the *settings table.  I ignored the section to add columns for an upgrade, but did not notice that CATEGORY is missing from the initial create table script.  After I added that column, it is working.  Thanks for pointing me in the right direction.

However - the create table script for *_ads table should be corrected in install.php...
Title: Re: Ad Management mod
Post by: Bigguy on May 30, 2009, 04:57:49 PM
Thanks for pointing that out. I will point the mod author to your post.
Title: Re: Ad Management mod
Post by: MultiformeIngegno on May 30, 2009, 06:57:36 PM
Quote from: Bigguy on May 30, 2009, 04:16:54 PM
@ lorenzone92: Come to think of it, I'm not sure there are .css changes in this mod. ???
Mmmh... so... what could it be...?
Title: Re: Ad Management mod
Post by: Bigguy on May 30, 2009, 07:36:33 PM
I'm not sure, I think this has been a bit of a problem for awhile. Although not serious it is annoying.
Title: Re: Ad Management mod
Post by: krick on May 31, 2009, 01:39:43 AM
Quote from: Bigguy on May 28, 2009, 07:06:47 PM
You would have to edit the .xml file to make it compatible with 1.1.9 Then repack the mod and try installing it.

I just did a clean 1.1.9 install yesterday and then installed Ad Management and it installed perfectly with no errors.  If you are seeing errors during the install and you're on a unix based server, then the problem is likely file/folder ownership issues.  If you have a control panel like Plesk, go in and make sure that all source files that are modified by Ad Management have the same ownership and permissions as the rest of the SMF files.
Title: Re: Ad Management mod
Post by: fx991 on May 31, 2009, 12:14:36 PM
MY ADS ARE NOT SHOWING TO GUESTS.

I am using SMF 2.0 RC1-1
Title: Re: Ad Management mod
Post by: MultiformeIngegno on May 31, 2009, 01:04:28 PM
Quote from: Bigguy on May 30, 2009, 07:36:33 PM
I'm not sure, I think this has been a bit of a problem for awhile. Although not serious it is annoying.
I've tried to uninstall it (deleting also the db tables) and reinstall... but... nothing... :(
Title: Re: Ad Management mod
Post by: jossanaijr on May 31, 2009, 02:12:59 PM
Quote from: fx991 on May 31, 2009, 12:14:36 PM
MY ADS ARE NOT SHOWING TO GUESTS.

I am using SMF 2.0 RC1-1
Check permission to show to guests.
Title: Re: Ad Management mod
Post by: MultiformeIngegno on May 31, 2009, 03:14:01 PM
Quote from: lorenzone92 on May 30, 2009, 08:35:12 AM
Why in my forum (I've Ad management mod installed) when users aren't logged the login box in welcome area is grey?
(http://img38.imageshack.us/img38/473/welcomeare.png)

...when logged it's "normal".... this happens with every browser (i've tried with ie 7/8, firefox, chrome...)
Here's the code in my index.template.php...


if (!empty($modSettings['enableOpenID']))
echo'
<br />
<input type="text" name="openid_url" id="openid_url" size="25" class="openid_login" />';

echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}

echo '
</div>';
echo '<div class="windowbg2 clearfix" align="right">';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
}
unset($ads);
}
echo '</div>';
echo '

</div>


please... help me... :)
Title: Re: Ad Management mod
Post by: terroja on June 02, 2009, 10:13:09 PM
Nothing shows up under my configure menu, regardless of whether I use the default theme or a custom one. I've gotten no error message at all. It looks to be installed properly.
Title: Re: Ad Management mod
Post by: MultiformeIngegno on June 03, 2009, 10:35:17 AM
If you don't know what's the problem.. can you tell me how can I MANUALLY add ads in the welcome user area (SMF 2.0rc1-1)? Thanks!! :)
Title: Re: Ad Management mod
Post by: Kat9119 on June 03, 2009, 03:13:41 PM
I'm curious. I know you can disable ads for members, but can  you disable SOME ads for members?

For example, I want guests to see all ads (on top of pages and in posts), and I want users to only see the ads on the top of the pages.

Also, ads will not work on board index. Its okay by me, but I'm thinking I should fix it so it works. I'm assuming that boardindex and index didn't get updated for my custom theme (which is the default theme) and I went to do edits...only there are no instructions for 1.1.8???
Title: Re: Ad Management mod
Post by: cartesio on June 05, 2009, 02:25:32 AM
Quote from: terroja on June 02, 2009, 10:13:09 PM
Nothing shows up under my configure menu, regardless of whether I use the default theme or a custom one. I've gotten no error message at all. It looks to be installed properly.

I have exactky the same problem.

There is no link under my configure menu and I can not go to Ads menu.

¿Ansy idea about it?

Thanks in advance
Title: Re: Ad Management mod
Post by: Mynamehere on June 07, 2009, 05:01:26 AM
I am unable to show ads on these forums.
I have created two zones (one leaderboard, one skyscraper) in which I put the invocationcode of my OpenX zones. These invocation codes work properly on other parts of my site, but not here. I see no changes whatsoever.

Do I need to change some settings outside of the ad manager pck?
I run SMF 1.1.9 and ad manager 2.3
Title: Re: Ad Management mod
Post by: fx991 on June 07, 2009, 05:40:27 AM
I am just surprised that one of the best and most used mod for smf is still does not for RC1-1

kind request to mod auther: please make necessary change to installer of the mod to install the same without any version enulation
Title: Re: Ad Management mod
Post by: amrik on June 07, 2009, 03:07:53 PM
Quote from: fx991 on June 07, 2009, 05:40:27 AM
I am just surprised that one of the best and most used mod for smf is still does not for RC1-1

kind request to mod auther: please make necessary change to installer of the mod to install the same without any version enulation


yeah plzzzzz
Title: Re: Ad Management mod
Post by: Mayhem30 on June 08, 2009, 05:39:53 PM
Is there a way to make this so my ads will only show after the first post on a thread - and that's it?

When I use that option now, it shows up on page 1 after the first post, on page 2 same thing and so on and so on.
Title: Re: Ad Management mod
Post by: jerm on June 09, 2009, 01:59:55 AM
Quote from: lorenzone92 on May 30, 2009, 08:35:12 AM
You're right, sorry! :P

But... now I've a support request for you... ;)
Why in my forum (I've Ad management mod installed) when users aren't logged the login box in welcome area is grey?
(http://img38.imageshack.us/img38/473/welcomeare.png)

...when logged it's "normal".... this happens with every browser (i've tried with ie 7/8, firefox, chrome...)

Problem fixed in new version. Try it out.

Quote from: TomW on May 30, 2009, 01:35:53 PM
I manually installed this mod in RC1, and get this error when trying to save an ad:

Unknown column 'CATEGORY' in 'field list'
File: /Users/Tom/Sites/TheGarage2/Sources/Ads.php
Line: 315

Please help.



Fixed.

Quote from: waldano on May 21, 2009, 08:43:58 AM
(http://img194.imageshack.us/img194/3883/admanagementadmin.jpg)
I hope someone could find the problem and help me :)

Released a new version for the SMF1.1.x line that'll solve this problem forever. There are no code changes, just adding utf8 support.

Quote from: fx991 on June 07, 2009, 05:40:27 AM
I am just surprised that one of the best and most used mod for smf is still does not for RC1-1

kind request to mod auther: please make necessary change to installer of the mod to install the same without any version enulation

Maybe it's because I'm one person coding. Plus I only have one person helping me out with support. Only so much 2 people can do with a mod this popular. Maybe if I had more help things would get done faster? And btw, your font size alone made me not want to release a new version. Consider yourself lucky that the one person helping me out convinced me it is worth releasing a new version.
Title: Re: Ad Management mod
Post by: collins465 on June 09, 2009, 05:44:36 AM
can it work for 1.1.9 ?
Title: Re: Ad Management mod
Post by: Bigguy on June 09, 2009, 08:47:22 AM
Thanks Jerm for all your hard work. ;) I'm sure this version is just what people are looking for.
Title: Re: Ad Management mod
Post by: InstilledBee on June 09, 2009, 08:56:26 AM
Hey thanks for this mod! Worked on my site like a charm. ;)
Title: Re: Ad Management mod
Post by: ciuly on June 09, 2009, 11:51:28 AM
I'm on 1.1.9, default theme, eng. I installed ad_mod_v2-3-1_SMF_v1-1-x.zip fir the first time. It appears to have installed ok. But there is no configuration link. Nothing in the error log either.

Any ideas?
Title: Re: Ad Management mod
Post by: Kat9119 on June 09, 2009, 01:23:21 PM
Installed this on 1.1.8 through package manager. Seemed to install fine. However, ads will only appear under menu, bottom of page, and in posts. I cannot get it to work on the index.

I assume my custom 'default' template did not get updated, but there are no manual edits for 1.1.8, any suggestions?

I do not want to go updating to 1.1.9 before getting this fixed, otherwise rolling back to uninstall or updating may become an issue
Title: Re: Ad Management mod
Post by: glennk on June 09, 2009, 01:52:25 PM
Yes thanks for your hard work mate. Ill keep popping back in and checking for the new release. This mod does make life easy for us and we are very grateful to you for your unpaid work.
Title: Re: Ad Management mod
Post by: philcross on June 09, 2009, 03:49:56 PM

Ive added this mod and all works great on IE

But, no adds show up in Firefox browser

Ideas ??

Title: Re: Ad Management mod
Post by: jossanaijr on June 09, 2009, 07:48:27 PM
Hi,
installed in a fresh RC1-1 with no errors.  Using english language and default theme.  It says its okay but no Ad Management Administration links.  Any help?
Title: Re: Ad Management mod
Post by: Mayhem30 on June 09, 2009, 10:45:06 PM
When I go to uninstall the Ad Management mod, the only file it fails on is : index.template.php

I have checked the .xml file and I'm at a loss to why it's failing in there.

Is there any way to find out where exactly in the file it's failing at?
Title: Re: Ad Management mod
Post by: candidosa2 on June 09, 2009, 11:20:35 PM
well i try to post linguage here http://www.smfads.com/forums/index.php#3  but i dont have permission

Title: Re: Ad Management mod
Post by: Nibirusoon on June 10, 2009, 05:25:42 PM
First of all, thanx for the new release.
...but sadly I got this error when I tried to install it via SMF installer on a Fresh RC1.1 board with "Yet Another Global Announcements Mod" and "Aligned and Bilateral Child Boards" mods already installed don it.

Here the errors:
./Themes/default/MessageIndex.template.php     Test failed
   1.     Add After     ./Themes/default/MessageIndex.template.php     Test failed

Help, besides "install the mod manually" will be appreciates :)
Title: Re: Ad Management mod
Post by: DELHI_BOY on June 10, 2009, 05:59:16 PM
Its awesome mod but problem is it do nt support php and it cannot add two adv. at the bottom of the page. It only allow 1 adv. At 1 position. If i am wrong plz guide me how to do that.
Title: Re: Ad Management mod
Post by: jossanaijr on June 10, 2009, 06:18:10 PM
Quote from: DELHI_BOY on June 10, 2009, 05:59:16 PM
Its awesome mod but problem is it do nt support php and it cannot add two adv. at the bottom of the page. It only allow 1 adv. At 1 position. If i am wrong plz guide me how to do that.
Yes, it works with PHP (change pop-up in ad setting).
Title: Re: Ad Management mod
Post by: Bigguy on June 10, 2009, 08:12:30 PM
Make two ads and give them the same position and they will rotate on page refresh.
Title: Re: Ad Management mod
Post by: philcross on June 11, 2009, 01:51:10 AM
QuoteIve added this mod and all works great on IE

But, no adds show up in Firefox browser

Ideas ??

Anyone else having this problem ???


I also have this, which may be linked to this Mod..........


I just took a look at my error logs, and despite a couple of wrong password errors for members, I have this Critical error.

Administration login attempt!
Referer: http://www.XXXXXXX.COM/XXXforum/index.php?action=admin
User agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.1.3; .NET CLR 3.0.30729)
IP: 94.196.161.9

I have the Ad Manage Mod installed and notice that ads show in IE8 but not in Firefox - could the error message be to do with that.

Thanks
Title: Re: Ad Management mod
Post by: DELHI_BOY on June 11, 2009, 06:35:07 AM
Thnx jossanaijr, i will try that.
Thnx bigguy for clearing my doubts.
Title: Re: Ad Management mod
Post by: checkmater on June 11, 2009, 04:59:42 PM
Where is the package parser and its latest version??? I cant find it. Please help.


Thanks.
Title: Re: Ad Management mod
Post by: checkmater on June 11, 2009, 05:15:38 PM
Ah!.... lol Is in the download section... lol lol lol....
Title: Re: Ad Management mod
Post by: Kat9119 on June 11, 2009, 07:11:26 PM
Anyone offering support for this? I notice a lot going unanswered, wondering if I should just uninstall
Title: Re: Ad Management mod
Post by: Bigguy on June 11, 2009, 07:22:18 PM
@ philcross: That has nothing to do with the ad mod. Someone has tried to login to your admin cp.

@ Kat9119: Yes support is being offered. If you had looked through the pages you would have seen that. :) It's just that that pesky thing we call real life keeps getting in the way of things, lol. :)
Title: Re: Ad Management mod
Post by: Robin1989 on June 11, 2009, 08:00:21 PM
hi i was wondering if you could help me with something as i am getting a lot of errors in my themes that are used on the site


Installations actions for "Ad Managment":
Installing this package will perform the following actions:
Type Action Description
1. Execute Code install.php
2. Execute Modification ./index.php Test successful
3. Execute Modification .//Sources/Admin.php Test successful
4. Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/index.template.php Test successful
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/index.template.php Test successful
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/index.template.php Test successful
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/index.template.php Test successful
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/index.template.php Test successful
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/index.template.php Test successful
5. Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/BoardIndex.template.php Test successful
6. Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/Display.template.php Test successful
7. Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/MessageIndex.template.php Test successful
8. Execute Modification .//Sources/ManagePermissions.php Test successful
9. Extract File .//Sources/Ads.php
10. Extract File .//Sources/LoadAds.php
11. Extract File //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/Ads.template.php
12. Extract File //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/languages/Ads.english.php
13. Extract File //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/default/languages/Ads.english-utf8.php
Install in Other Themes
To use this modification in themes other than the default, the package manager needs to make additional changes to the other themes. If you'd like to install this modification in the other themes, please select these themes below.
Babylon Theme
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/index.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/index.template.php Test failed
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/index.template.php Test failed
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/index.template.php Test failed
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/index.template.php Test successful
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/index.template.php Test failed
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/BoardIndex.template.php Test failed
1. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/BoardIndex.template.php Test failed
2. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/BoardIndex.template.php Test failed
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/Display.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/Display.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/Display.template.php Test successful
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/Display.template.php Test failed
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/MessageIndex.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/MessageIndex.template.php Test successful
2. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/babylon/MessageIndex.template.php Test failed
Darkbreak
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/darkbreak_20rc1/index.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/darkbreak_20rc1/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/darkbreak_20rc1/index.template.php Test failed
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/darkbreak_20rc1/index.template.php Test failed
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/darkbreak_20rc1/index.template.php Test failed
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/darkbreak_20rc1/index.template.php Test failed
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/darkbreak_20rc1/index.template.php Test successful
ds-natural
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/ds-natural_20rc1/index.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/ds-natural_20rc1/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/ds-natural_20rc1/index.template.php Test failed
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/ds-natural_20rc1/index.template.php Test failed
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/ds-natural_20rc1/index.template.php Test successful
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/ds-natural_20rc1/index.template.php Test failed
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/ds-natural_20rc1/index.template.php Test successful
MysticJade
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/mysticjade_20rc1/index.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/mysticjade_20rc1/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/mysticjade_20rc1/index.template.php Test failed
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/mysticjade_20rc1/index.template.php Test failed
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/mysticjade_20rc1/index.template.php Test successful
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/mysticjade_20rc1/index.template.php Test failed
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/mysticjade_20rc1/index.template.php Test successful
Outline
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/outline_20rc1/index.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/outline_20rc1/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/outline_20rc1/index.template.php Test failed
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/outline_20rc1/index.template.php Test failed
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/outline_20rc1/index.template.php Test failed
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/outline_20rc1/index.template.php Test failed
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/outline_20rc1/index.template.php Test successful
OverView
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overview_20rc1/index.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overview_20rc1/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overview_20rc1/index.template.php Test failed
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overview_20rc1/index.template.php Test failed
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overview_20rc1/index.template.php Test failed
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overview_20rc1/index.template.php Test failed
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overview_20rc1/index.template.php Test failed
OverViewLight
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overviewlight_20rc1/index.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overviewlight_20rc1/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overviewlight_20rc1/index.template.php Test failed
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overviewlight_20rc1/index.template.php Test failed
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overviewlight_20rc1/index.template.php Test failed
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overviewlight_20rc1/index.template.php Test failed
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/overviewlight_20rc1/index.template.php Test failed
SilentWave
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/silentwave_20rc1/index.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/silentwave_20rc1/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/silentwave_20rc1/index.template.php Test failed
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/silentwave_20rc1/index.template.php Test failed
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/silentwave_20rc1/index.template.php Test successful
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/silentwave_20rc1/index.template.php Test failed
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/silentwave_20rc1/index.template.php Test successful
AcidMods 2.0
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/index.template.php Test failed
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/index.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/index.template.php Test failed
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/index.template.php Test failed
4. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/index.template.php Test failed
5. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/index.template.php Test successful
6. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/index.template.php Test successful
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/BoardIndex.template.php Test successful
1. Add Before //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/BoardIndex.template.php Test successful
2. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/BoardIndex.template.php Test successful
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/Display.template.php Test successful
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/Display.template.php Test successful
2. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/Display.template.php Test successful
3. Replace //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/Display.template.php Test successful
Execute Modification //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/MessageIndex.template.php Test successful
1. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/MessageIndex.template.php Test successful
2. Add After //boswinfs01/home/users/web/b1160/ez.cyberpyrot/Forum/Themes/AcidMods/MessageIndex.template.php Test successful
SMF4iPhone
Execute Modification ./Themes/smf4iphone/index.template.php Test failed
1. Add After ./Themes/smf4iphone/index.template.php Test failed
2. Replace ./Themes/smf4iphone/index.template.php Test failed
3. Replace ./Themes/smf4iphone/index.template.php Test failed
4. Add After ./Themes/smf4iphone/index.template.php Test failed
5. Add After ./Themes/smf4iphone/index.template.php Test failed
6. Add Before ./Themes/smf4iphone/index.template.php Test failed
Execute Modification ./Themes/smf4iphone/BoardIndex.template.php Test failed
1. Add Before ./Themes/smf4iphone/BoardIndex.template.php Test failed
2. Add After ./Themes/smf4iphone/BoardIndex.template.php Test failed
Execute Modification ./Themes/smf4iphone/Display.template.php Test failed
1. Add After ./Themes/smf4iphone/Display.template.php Test successful
2. Replace ./Themes/smf4iphone/Display.template.php Test failed
3. Replace ./Themes/smf4iphone/Display.template.php Test failed
Execute Modification ./Themes/smf4iphone/MessageIndex.template.php Test failed
1. Add After ./Themes/smf4iphone/MessageIndex.template.php Test failed
2. Add After ./Themes/smf4iphone/MessageIndex.template.php Test failed


looking at the themes and what failed to install it seems to be the same areas of the install on the index.template.php file (im not to bothered about babylon theme - thinking i will delete it)




Find [Select]
<div class="windowbg2 clearfix">';
Replace [Select]
<div class="windowbg2 clearfix floatleft">';






Find [Select]
<form class="windowbg" id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
Replace [Select]
<form class="windowbg2" id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>





Find [Select]
echo '
</div>
Add After [Select]
';
echo '<div class="windowbg2 clearfix" align="right">';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
}
unset($ads);
}
echo '</div>';
echo '






Find [Select]
template_menu();
Add After [Select]

//Below the menu ads
if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
$ads = show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

//Tower left Ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);
//Tower Right Ads
$ads = show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}






Find [Select]
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
Add Before [Select]

//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads = show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td></tr></table>';

unset($ads);
//Close table for towerleft ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads = show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}



so im wondering what i should do do i just leave those edits out of the themes or is there an area i should put them in


thanks for any help that can be given
Title: Re: Ad Management mod
Post by: Bigguy on June 11, 2009, 08:12:24 PM
Certain sections can be left out of the template files with no adverse effects. It's up to you if you wish to leave them out or not. Keep in mind though that a test failed does also mean that some code could be installed in that file and some won't be so it could end up in a parse error.
Title: Re: Ad Management mod
Post by: Mayhem30 on June 12, 2009, 01:06:59 AM
If someone can help answer my 2 questions on page 193 that would be great!  :)
Title: Re: Ad Management mod
Post by: Bigguy on June 12, 2009, 09:09:48 AM
With the ads question, I think that is the only way to show it after a post. For the uninstalling part, you can still uninstall if you want but edits will have to be taken out manually for that file. I have no idea why it's failing unless you installed a mod after the ad mod and it changed the index.template.php.
Title: Re: Ad Management mod
Post by: baijianpeng on June 12, 2009, 09:52:09 AM
I am using SMF v1.1.9 and a custom template named rt_smf_versatility.

I tried to install Ad Management Mod v2.3.1 and succeeded. Of course I had edited the install.xml file to suit my custom template.

But, it seems that this Mod can't work at all.

Could some one help me to modify this Mod to work together with my rt_smf_versatility template?

Thanks.
Title: Re: Ad Management mod
Post by: riker on June 12, 2009, 01:45:06 PM
I see it's still messing up the top right of the default theme on SMF BETA4/RC1
Title: Re: Ad Management mod
Post by: Kat9119 on June 12, 2009, 02:10:59 PM
Quote from: Bigguy on June 11, 2009, 07:22:18 PM
@ Kat9119: Yes support is being offered. If you had looked through the pages you would have seen that. :) It's just that that pesky thing we call real life keeps getting in the way of things, lol. :)

I have looked through a lot of the recent posts and it seems like a lot not answered. I've asked a question 2-3 times, maybe someone just doesn't know the answer.

My ads are only showing up under the main menu, and at the bottom. I cannot get it to show on the index.  I assume it didn't update my themes index file and thats whats wrong. However, there are no manual directions for 1.1.8, therefore I cannot check this and make the edits myself.

I'm worried that this is only half installed, and I have to upgrade to 1.1.9 asap..don't want to upgrade till this issue is resolved as I assume it could mess up the Ad Management Mod.
Title: Re: Ad Management mod
Post by: Bigguy on June 12, 2009, 02:21:48 PM
I would do your upgrade first. Uninstall as many mods as you can do the upgrade and then worry about the ad mod. Manual edits can be found through the package parser found on the download page for this mod or in the install.xml file that is packaged with the mod. Also, other than me and a few knowledgeable members in this thread I am the only one providing support. So if I have missed a couple posts that is to be expected I would think. :)
Title: Re: Ad Management mod
Post by: dodant on June 12, 2009, 03:33:38 PM
Is this mod compatible with 1.1.8?
Title: Re: Ad Management mod
Post by: riker on June 12, 2009, 03:52:02 PM
Quote from: dodant on June 12, 2009, 03:33:38 PM
Is this mod compatible with 1.1.8?

Yes it works fine on 1.1.x it's just SMF 2.0 beta 4 and above it's not fully compatible with
Title: Re: Ad Management mod
Post by: Kat9119 on June 12, 2009, 04:38:03 PM
Quote from: Bigguy on June 12, 2009, 02:21:48 PM
I would do your upgrade first. Uninstall as many mods as you can do the upgrade and then worry about the ad mod. Manual edits can be found through the package parser found on the download page for this mod or in the install.xml file that is packaged with the mod. Also, other than me and a few knowledgeable members in this thread I am the only one providing support. So if I have missed a couple posts that is to be expected I would think. :)

Ok, no problem. Thanks for the reply. I have checked the package parser, and I thought there was nothing. I must have had the wrong button ticked, as it kept telling me there was nothing for 1.1.8. I just tried again, and there seem too be directions for my version.

I'll give it a try, and then update. Thanks again.

Title: Re: Ad Management mod
Post by: dennisfreeworld on June 12, 2009, 04:46:21 PM
i have a problem installing the ad management mod.I have try and try.
It dont not show any error but I find where it suppose to me ..so what do i do next.
Please this is my forum  http://nigeriaonlinecommunity.com/

Plz need help
Title: Re: Ad Management mod
Post by: dzinerfusion on June 12, 2009, 05:11:44 PM
hi I cant put this code in my index.template.



Find:

<div class="windowbg2 clearfix">';



Replace with:

<div class="windowbg2 clearfix floatleft">';




Find:

<form class="windowbg" id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>



Replace with:

<form class="windowbg2" id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>




Find:

echo '
</div>



Add after:

';
echo '<div class="windowbg2 clearfix" align="right">';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
}
unset($ads);
}
echo '</div>';
echo '



Can you edit of tell me where to put it???
Title: Re: Ad Management mod
Post by: Kat9119 on June 12, 2009, 05:31:10 PM
Ok, so I had to do manual edits for 1.1.8 for my theme, otherwise everything installed well.

But, I'm running into an issue.

Trying to add this to my index.template.php of my custom default theme since this file wasn't updated when I ran the mod through package manager.

First of all, it tells me to find <body>'; my file doesn't have that. Then it says to find </td> and there are about 100 of them. So, I was unsure where to look. I decided to go ahead and compare the default edits to my themes file, and fix it that way. But I must have messed something up because I'm now getting an error (see below)

Also it says to find

echo '
</div>';


on BoardIndex.template.php, which I found, however there are two { after I add the code, not sure if there should be 2 or 1.

When I go and upload all my edits to my theme, I get the following error
   

QuoteTemplate Parse Error!
There was a problem loading the /Themes/CampBlood/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------


Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/CampBlood/index.template.php on line 181

172:       // ]]></script>
173: </head>
174: <body>
175:    
176:    //Display ads on the top of the page
177:    if (function_exists("show_topofpageAds"))
178:    {
179:       $ads = show_topofpageAds();   
180:       if(!empty($ads))
181:          if($ads['type']==0)182:             echo $ads['content'];
183:          else
184:             eval($ads['content']);   
185:       unset($ads);
I'm a copy and paste person when it comes to this (although I am trying to learn) I have no idea what this error is or how to fix it. I'm going to guess that its because my file didn't have the <body>'; code?

If I edit that so it is <body>'; I get the following error:

QuoteTemplate Parse Error!
There was a problem loading the /Themes/CampBlood/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------


Parse error: syntax error, unexpected '<' in .../Themes/CampBlood/index.template.php on line 188

179:       $ads = show_topofpageAds();   
180:       if(!empty($ads))
181:          if($ads['type']==0)
182:             echo $ads['content'];
183:          else
184:             eval($ads['content']);   
185:       unset($ads);
186:    }
187:
188: <table width="822" height="643" border="0" align="center" cellpadding="0" cellspacing="0" table id="mytable2">189:   <tr>
190:     <td height="643" scope="col"><table width="100%" height="643" border="0" cellpadding="0" cellspacing="0" bordercolor="4B0007" table id="mytable1">
191:       <tr>
192:         <td height="92" colspan="2" bgcolor="#000000" scope="col"><img src="Themes/CampBlood/images/banner2.jpg" width="818" height="90"></td>

Anyhow, my index.template.php is attached

Thanks in advance for the help.

Title: Re: Ad Management mod
Post by: dennisfreeworld on June 13, 2009, 05:53:03 AM
Quote from: dennisfreeworld on June 12, 2009, 04:46:21 PM
i have a problem installing the ad management mod.I have try and try.
It dont not show any error but I find where it suppose to me ..so what do i do next.
Please this is my forum  http://nigeriaonlinecommunity.com/

Plz need help


plz help  meeeee
Title: Re: Ad Management mod
Post by: MaXiForum.cz on June 13, 2009, 08:25:47 AM
Quote from: dennisfreeworld on June 13, 2009, 05:53:03 AM
plz help  meeeee

Install this by hand :)
Title: Re: Ad Management mod
Post by: Bigguy on June 13, 2009, 09:44:39 AM
Some templates aren't going to have the mentioned code in them. This is the time were you need to experiment and compare your template files to the default template files to find out where things should go. It's not really that hard. There is a program out that makes file comparing very easy. It's called Winmerge (http://winmerge.org/).
Title: Re: Ad Management mod
Post by: Kat9119 on June 13, 2009, 03:17:48 PM
Quote from: Bigguy on June 13, 2009, 09:44:39 AM
Some templates aren't going to have the mentioned code in them. This is the time were you need to experiment and compare your template files to the default template files to find out where things should go. It's not really that hard. There is a program out that makes file comparing very easy. It's called Winmerge (http://winmerge.org/).

I assume that was towards me. I downloaded, and tried that out for index.template.php looked like simple edits. Added the different code.

I still get this error:

QuoteTemplate Parse Error!
There was a problem loading the /Themes/CampBlood/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------


Parse error: syntax error, unexpected '<' in .../Themes/CampBlood/index.template.php on line 188

179:       $ads = show_topofpageAds();   
180:       if(!empty($ads))
181:          if($ads['type']==0)
182:             echo $ads['content'];
183:          else
184:             eval($ads['content']);   
185:       unset($ads);
186:    }
187:
188: <table width="822" height="643" border="0" align="center" cellpadding="0" cellspacing="0" table id="mytable2">189:   <tr>
190:     <td height="643" scope="col"><table width="100%" height="643" border="0" cellpadding="0" cellspacing="0" bordercolor="4B0007" table id="mytable1">
191:       <tr>
192:         <td height="92" colspan="2" bgcolor="#000000" scope="col"><img src="Themes/CampBlood/images/banner2.jpg" width="818" height="90"></td>

It seems like its complaining about the <table width part, but I cannot see why. It works fine before any edits.

I also compared the default theme file and my custom theme file, and the only changes were small theme changes that can't be changed without messing up my theme.

any suggestions?
Title: Re: Ad Management mod
Post by: dzinerfusion on June 13, 2009, 08:43:13 PM
k got that to work, now I got a question how to add to the ''show ad like post'' in the poster left a profile image , all of those icons etc, to make it look like a post? :)
Title: Re: Ad Management mod
Post by: ciuly on June 14, 2009, 04:52:11 PM
I posted here a while ago with a problem I got it helped thanks to kimmies directions, anyone having the same problam can read more here: http://www.simplemachines.org/community/index.php?topic=135761.msg2109710#msg2109710
Title: Re: Ad Management mod
Post by: Bigguy on June 14, 2009, 06:51:23 PM
@ Kat9119: On line 186 after the } try adding a ;
Title: Re: Ad Management mod
Post by: Kat9119 on June 15, 2009, 02:11:09 PM
Quote from: Bigguy on June 14, 2009, 06:51:23 PM
@ Kat9119: On line 186 after the } try adding a ;

Ok, tried that out, and got this error:

QuoteTemplate Parse Error!
There was a problem loading the /Themes/CampBlood/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------


Parse error: syntax error, unexpected '<' in .../Themes/CampBlood/index.template.php on line 188

179:       $ads = show_topofpageAds();   
180:       if(!empty($ads))
181:          if($ads['type']==0)
182:             echo $ads['content'];
183:          else
184:             eval($ads['content']);   
185:       unset($ads);
186:    };
187:
188: <table width="822" height="643" border="0" align="center" cellpadding="0" cellspacing="0" table id="mytable2">189:   <tr>
190:     <td height="643" scope="col"><table width="100%" height="643" border="0" cellpadding="0" cellspacing="0" bordercolor="4B0007" table id="mytable1">
191:       <tr>
192:         <td height="92" colspan="2" bgcolor="#000000" scope="col"><img src="Themes/CampBlood/images/banner2.jpg" width="818" height="90"></td>

I uninstalled it for now. Going to upgrade, and then I'll reinstall it and try the edits again or just manually enter coding information somewhere.
Title: Re: Ad Management mod
Post by: dzinerfusion on June 16, 2009, 05:43:45 PM
What i mean is like when I make a post on this forum I can see my whole info, like an image of web (globe) MSN ( msn pic) etc. I want to add that to the left side of my ad unit for the after first post settings.
Title: Re: Ad Management mod
Post by: glennk on June 17, 2009, 03:25:24 AM
Hi there, Im currently trying to install on 2rc1-1. I hope I have the right zip file ?? - ad_mod_v2-3-5_SMF_v2-0RC1-1.zip

If this is the right file then I get the following errors. Could you please advise on what to do.



1.     Execute Code     install.php     
*    2.    Execute Modification    ./index.php    Test successful
      1.    Add After    ./index.php    Test successful
      2.    Add After    ./index.php    Test successful
      3.    Add After    ./index.php    Test successful
*    3.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Add After    ./Sources/Admin.php    Test successful
      2.    Add After    ./Sources/Admin.php    Test successful
*    4.    Execute Modification    ./Themes/default/index.template.php    Test successful
      1.    Add After    ./Themes/default/index.template.php    Test successful
      2.    Replace    ./Themes/default/index.template.php    Test successful
      3.    Replace    ./Themes/default/index.template.php    Test successful
      4.    Add After    ./Themes/default/index.template.php    Test successful
      5.    Add After    ./Themes/default/index.template.php    Test successful
      6.    Add Before    ./Themes/default/index.template.php    Test successful
*    5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
      1.    Add Before    ./Themes/default/BoardIndex.template.php    Test successful
      2.    Add After    ./Themes/default/BoardIndex.template.php    Test successful
*    6.    Execute Modification    ./Themes/default/Display.template.php    Test successful
      1.    Add After    ./Themes/default/Display.template.php    Test successful
      2.    Replace    ./Themes/default/Display.template.php    Test successful
      3.    Replace    ./Themes/default/Display.template.php    Test successful
*    7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test failed
      1.    Add After    ./Themes/default/MessageIndex.template.php    Test failed
      2.    Add After    ./Themes/default/MessageIndex.template.php    Test successful
*    8.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
      1.    Add After    ./Sources/ManagePermissions.php    Test successful
   9.    Extract File    ./Sources/Ads.php    
   10.    Extract File    ./Sources/LoadAds.php    
   11.    Extract File    ./Themes/default/Ads.template.php    
   12.    Extract File    ./Themes/default/languages/Ads.english.php    
   13.    Extract File    ./Themes/default/languages/Ads.english-utf8.php


I have the following packages already installed

1.     Global Headers Footers     2.0     [ Uninstall ]
2.    Yet Another Global Announcements Mod    1.1.7.2    [ Uninstall ]
3.    Read Sticky Topics    1.0.0    [ Uninstall ]
4.    Users Online Today    1.5.4    [ Uninstall ]
5.    Aeva ~ Auto-Embed Video & Audio    6.9.99
Title: Re: Ad Management mod
Post by: duder673 on June 17, 2009, 05:48:31 AM
Anyone have any success with Google Adsense?

I am getting around 15,000 pageviews a day on my forums but I haven't earned a cent.

Any pointers?
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on June 17, 2009, 01:17:34 PM
Where are you placing your ads? may I see your forum?

Rick
Title: Re: Ad Management mod
Post by: japan_6 on June 22, 2009, 12:26:18 PM
Hi,
Can anyone help me with Ad Management Mod?
I have problem with my language, I am using Macedonian UTF-8 on my forum and when I set my language (Macedonian) I didn't see the Ad Manager in the Admin Panel.

Can anyone tell me how to translate to Macedonian UTF-8 language ?
Title: Re: Ad Management mod
Post by: GravuTrad on June 22, 2009, 01:17:51 PM
use the Manual Install Instructions for SMF  menu in the download part of the mod, and report all concerns languages files into your language file. In this you'll can translate too in you language if you're able to, or at less have it in english.
Title: Re: Ad Management mod
Post by: DELHI_BOY on June 22, 2009, 03:08:35 PM
I want to install this mod in smf 1.1.9 with ReDARK theme. What r the steps to follow?
Title: Re: Ad Management mod
Post by: Mynamehere on June 23, 2009, 02:07:36 PM
Hi,
am having a few problems:

1) I am unable to run my OpenX channel code in the forums, but  I do not understand why

2) When running google AdSense, it ONLY appears when someone is logged in.
Title: Re: Ad Management mod
Post by: Bigguy on June 23, 2009, 03:45:54 PM
1.) Not sure about this one.

2.) Check permissions.
Title: Re: Ad Management mod
Post by: Anncp on June 23, 2009, 03:53:30 PM
I'm trying to make the manual edits for my theme and I'm having a hard time finding where to make changes in certain areas.

For example, one change is to find </td> in ./Themes/default/index.template.php and replace it with something else.

There are TONS of </td> in the template.php file. Which one do I replace?

I had the same problem with several others too. The thing I'm supposed to find and replace is either not there or there are MANY of them and I haven't got a clue which to choose. Showing some of the before or after code for these common ones would be really helpful.

Just saying "find </td>" is like saying "find a strand of black fur on that black dog." Ok, but which one?

Thank you for any help!
Title: Re: Ad Management mod
Post by: Mynamehere on June 23, 2009, 04:50:48 PM
Quote from: Bigguy on June 23, 2009, 03:45:54 PM
1.) Not sure about this one.

2.) Check permissions.

1. Pity, anyone else perhaps?
2. Where?

Thanks for your time
Title: Re: Ad Management mod
Post by: Bigguy on June 23, 2009, 05:14:12 PM
Member permissions.
Title: Re: Ad Management mod
Post by: glennk on June 23, 2009, 05:42:23 PM
Sorry to be a pain Bigguy.  Would you mind having a little look at mine

http://www.simplemachines.org/community/index.php?topic=68632.msg2114008#msg2114008

best regards - Glenn
Title: Re: Ad Management mod
Post by: Bigguy on June 23, 2009, 06:33:30 PM
@ glennk: You will have to do the edits for that file manually.
Title: Re: Ad Management mod
Post by: glennk on June 24, 2009, 03:14:35 AM
Ok thankyou,

Does that mean I install the mod through the installer and then do the edits for that file on its own ?
Title: Re: Ad Management mod
Post by: DELHI_BOY on June 24, 2009, 03:19:23 AM
How to install this mod in ReDark theme ? I am using smf 1.1.9.
Title: Re: Ad Management mod
Post by: Mynamehere on June 24, 2009, 04:08:00 AM
Found the permissions! Thanks. Now all that is left is figuring out how to get the OpenX in...
Title: Re: Ad Management mod
Post by: Bigguy on June 24, 2009, 07:57:39 AM
Yes. :)

Quote from: glennk on June 24, 2009, 03:14:35 AM
Ok thankyou,

Does that mean I install the mod through the installer and then do the edits for that file on its own ?
Title: Re: Ad Management mod
Post by: Mynamehere on June 24, 2009, 09:10:27 AM
A new thought...

is it possible to call upon another webpage in the Ad mod code bit?
Title: Re: Ad Management mod
Post by: Bigguy on June 24, 2009, 12:45:45 PM
You would have to experiment but I don't see why not.
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on June 24, 2009, 04:37:12 PM
I made an iframe as an adcode

Rick
Title: Re: Ad Management mod
Post by: Yahmez on June 24, 2009, 05:49:10 PM
I have a question. I am running 2.0RC1.1 and have nneonneo's AJAX ShoutBox V1.22. This particular shoutbox appears in the 'welcome user' area. When I install the Ad Mod, it squishes the shout box to the left and makes a blank area to the right. I tried editing the mod and removed all parts of code partaining to the 'welcome user' area but it still shows up like that. In SMF 1.1.x it never did this. Does anyone else have this issue and/or know how to remove all (ad mod) edits to the welcome user area of the header?
Title: Re: Ad Management mod
Post by: Mynamehere on June 25, 2009, 03:42:46 AM
How to put OpenX code in the AdMod....

contrary to what I did... do NOT put the code as PHP, but as HTML.... problem solved :)
Title: Re: Ad Management mod
Post by: feona on June 25, 2009, 03:54:53 PM
Good mod - it looks to be - but it is displaying all the ads twice.
As soon as I create one - it is listed twice in the list.
And it shows twice on the pages.

I think there is a line that is looping twice somehow. How do I correct?

THANKS!
Title: Re: Ad Management mod
Post by: japan_6 on June 25, 2009, 09:19:47 PM
Quote from: japan_6 on June 22, 2009, 12:26:18 PM
Hi,
Can anyone help me with Ad Management Mod?
I have problem with my language, I am using Macedonian UTF-8 on my forum and when I set my language (Macedonian) I didn't see the Ad Manager in the Admin Panel.

Can anyone tell me how to translate to Macedonian UTF-8 language ?
I have done the translation but now I didn't see any ads , anyone knows what is the problem ??
I enable ads view for all guests,members,mods .... but ads are not showing :(
Title: Re: Ad Management mod
Post by: duder673 on June 25, 2009, 10:11:40 PM
Very good mod, I appreciate it!

Is there a way to setup separate ad layout formats for different membergroups?

I want all guest to have maximum mods, and members to only have one at the top of each board.

Any suggestions?
Title: Re: Ad Management mod
Post by: Bigguy on June 26, 2009, 12:01:02 AM
Look at your permission settings for each group. :)
Title: Re: Ad Management mod
Post by: japan_6 on June 26, 2009, 03:05:39 PM
Quote from: japan_6 on June 25, 2009, 09:19:47 PM
Quote from: japan_6 on June 22, 2009, 12:26:18 PM
Hi,
Can anyone help me with Ad Management Mod?
I have problem with my language, I am using Macedonian UTF-8 on my forum and when I set my language (Macedonian) I didn't see the Ad Manager in the Admin Panel.

Can anyone tell me how to translate to Macedonian UTF-8 language ?
I have done the translation but now I didn't see any ads , anyone knows what is the problem ??
I enable ads view for all guests,members,mods .... but ads are not showing :(
BUMP!
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on June 26, 2009, 10:21:25 PM
I have the list of files

   1.  readme.txt (2031 bytes)
   2. Ads.php (12681 bytes)
   3. Ads.english.php (11789 bytes)
   4. Ads.english-utf8.php (11789 bytes)
   5. Ads.template.php (25664 bytes)
   6. install.php (2378 bytes)
   7. install.xml (12138 bytes)
   8. LoadAds.php (8937 bytes)
   9. package-info.xml (1145 bytes)

I'm getting double ads due to installing one ad version on top of another. Which one of these files do I need to edit or should I just uninstall and delete these files and start over?

Thanks

Rick
Title: Re: Ad Management mod
Post by: Questions on June 26, 2009, 11:18:51 PM
Hello!

I just installed a brand new Forum version: SMF 1.1.9
Has the Core theme
I installed EzPortal.
I installed Ad Managment 2.3 

No errors at all.

But in administration under Configuration there is no link for Ad management.
I thought I had read it would be found there after the install.

What did I do wrong? Is there another option in admin I need to enable or disable or anything. What did I miss doing?

Thank you for any help on this
Title: Re: Ad Management mod
Post by: Yahmez on June 26, 2009, 11:28:28 PM
Quote from: Yahmez on June 24, 2009, 05:49:10 PM
I have a question. I am running 2.0RC1.1 and have nneonneo's AJAX ShoutBox V1.22. This particular shoutbox appears in the 'welcome user' area. When I install the Ad Mod, it squishes the shout box to the left and makes a blank area to the right. I tried editing the mod and removed all parts of code partaining to the 'welcome user' area but it still shows up like that. In SMF 1.1.x it never did this. Does anyone else have this issue and/or know how to remove all (ad mod) edits to the welcome user area of the header?
I really hate to bump...
Could I get this moved to coding please?
Title: Re: Ad Management mod
Post by: Yahmez on June 27, 2009, 07:40:18 AM
Quote from: michellelondon88 on June 27, 2009, 01:44:38 AM
any chance this could be made to display certain banners in certain boards or does it do that?
Home Teeth Whitening  (http://www.teethwhiteninginstructions.com)
Resveratrol Cancer (http://www.resveratroluses.com)
Buy Acai Berries (http://www.acaiberryinformations.com)
Colon Cleanse (http://www.hilarysweightloss.com)
Yes you can pick which banners display where in the forum.
Title: Re: Ad Management mod
Post by: japan_6 on June 27, 2009, 03:01:23 PM
Quote from: Questions on June 26, 2009, 11:18:51 PM
Hello!

I just installed a brand new Forum version: SMF 1.1.9
Has the Core theme
I installed EzPortal.
I installed Ad Managment 2.3 

No errors at all.

But in administration under Configuration there is no link for Ad management.
I thought I had read it would be found there after the install.

What did I do wrong? Is there another option in admin I need to enable or disable or anything. What did I miss doing?

Thank you for any help on this
The problem is in your language i guess, what language are you using ?
Title: Re: Ad Management mod
Post by: Questions on June 27, 2009, 10:22:15 PM
Quote from: japan_6 on June 27, 2009, 03:01:23 PM
Quote from: Questions on June 26, 2009, 11:18:51 PM
Hello!

I just installed a brand new Forum version: SMF 1.1.9
Has the Core theme
I installed EzPortal.
I installed Ad Managment 2.3 

No errors at all.

But in administration under Configuration there is no link for Ad management.
I thought I had read it would be found there after the install.

What did I do wrong? Is there another option in admin I need to enable or disable or anything. What did I miss doing?

Thank you for any help on this
The problem is in your language i guess, what language are you using ?

Thank you for your help response. Oh, hm, I'm unsure about the language part. What and where do I need to change something in Admin? I didn't install anything else other than ezportal and ad management. I missed something huh? New to all this bulletin board stuff. My appologies for that :)
Title: Re: Ad Management mod
Post by: duder673 on June 28, 2009, 03:04:53 AM
Quote from: Bigguy on June 26, 2009, 12:01:02 AM
Look at your permission settings for each group. :)

That only let's me enable ads.

It doesn't allow me to format them how I want them for every membergroup.

Registered users: I want to have limited ads (1 per board for registered users)
Guest users:  3 on the index, and 1 on each board plus under the last post for the guests.

The problem is, I can only see a way to allow them(all) for one group or to not allow them(all) .
Title: Re: Ad Management mod
Post by: Questions on June 28, 2009, 02:07:32 PM
Quote from: Questions on June 27, 2009, 10:22:15 PM
Quote from: japan_6 on June 27, 2009, 03:01:23 PM
Quote from: Questions on June 26, 2009, 11:18:51 PM
Hello!

I just installed a brand new Forum version: SMF 1.1.9
Has the Core theme
I installed EzPortal.
I installed Ad Managment 2.3 

No errors at all.

But in administration under Configuration there is no link for Ad management.
I thought I had read it would be found there after the install.

What did I do wrong? Is there another option in admin I need to enable or disable or anything. What did I miss doing?

Thank you for any help on this
The problem is in your language i guess, what language are you using ?

Thank you for your help response. Oh, hm, I'm unsure about the language part. What and where do I need to change something in Admin? I didn't install anything else other than ezportal and ad management. I missed something huh? New to all this bulletin board stuff. My appologies for that :)


Anybody Anybody? Moderator? Techie? Willing to help me out with this? I love SMF and appreciate that it's a beautiful Bulletin Board that is offered for us to use for free.

Though, I do need some tech advice how to get the ad management mod working.
Title: Re: Ad Management mod
Post by: feona on June 28, 2009, 02:35:54 PM
I "thought" this mod was running great. Looked great to me anyway.
But, no one was clicking on any ads, nothing was happening. Strange.

Well, I needed to help a member so I logged in via her account and whaaa....
No ads were displaying!  So, I tried another account. Nothing.
No ads display.

The ads don't display EXCEPT for the administrator - me.

This is really baffling.

I checked the code in index-template.php and I don't see anything that sets it to display ads only to admin.

Very baffling.

Is this fixable?

THANKS!
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on June 28, 2009, 02:41:50 PM
Admin>permissions>Modfy change view to classic >Enable Ads
Title: Re: Ad Management mod
Post by: feona on June 28, 2009, 02:48:35 PM
Quote from: KirkhamsEbooks on June 28, 2009, 02:41:50 PM
Admin>permissions>Modfy change view to classic >Enable Ads

Wow. How easy. :)

Thanks.
Title: Re: Ad Management mod
Post by: ShadoWind on June 30, 2009, 03:16:05 PM
I installed this in 1.1.9 and there's no option in the "Configuration" section of the Admin area to customise the ads...

I'm using the default theme at the moment if that's any help...
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on June 30, 2009, 03:19:31 PM
Did you install using Fantastico? I had that problem when I did and just started the forum over, but I'm not as skilled as most of these folks

Rick
Title: Re: Ad Management mod
Post by: ShadoWind on June 30, 2009, 03:23:33 PM
Quote from: KirkhamsEbooks on June 30, 2009, 03:19:31 PM
Did you install using Fantastico? I had that problem when I did and just started the forum over, but I'm not as skilled as most of these folks

Rick

I installed the board using Fantastico but I don't want to have to start all over again just because one mod won't work even though it installed fine.
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on June 30, 2009, 03:23:58 PM
I realize 99% of the replies here are for help and indeed I could always use help, but I wanted to thank you for this mod. I just received my first Adsense check after installing it and would like to give you a donation if you tell me how to do so.

My family and I thank you for this income opportunity

Rick
Title: Re: Ad Management mod
Post by: chefjohnnie on July 01, 2009, 01:35:49 AM
Parse error: syntax error, unexpected '<' in .../Themes/default/index.template.php on line 186

Quote177:    {
178:       $ads = show_topofpageAds();   
179:       if(!empty($ads))
180:          if($ads['type']==0)
181:             echo $ads['content'];
182:          else
183:             eval($ads['content']);   
184:       unset($ads);
185:    }

186:    <div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>

187:       <table width="100%" cellpadding="0" cellspacing="0" border="0">
188:          <tr>
189:             <td class="headerbg"><a href="', $scripturl, ' "><img src="', $settings['images_url']. '/banner.jpg" alt="" /></a></td>';
190:                      //Welcome Ads

Here is the moded file
Title: Re: Ad Management mod
Post by: 2sanstef on July 01, 2009, 08:46:43 PM
I am having problems installing in 1.1.9 the mod has been installed from package manager in default theme.

Firstly no "ad management" config link appears in the menu

Secondly keep getting error messages repeating every few minutes


http://www.sanstefanos.co.uk/smf/index.php?action=viewErrorLog;desc 
8: Undefined index: ad_management
File: /www.sanstefanos.co.uk/smf/Sources/Subs.php
Line: 2742


http://www.sanstefanos.co.uk/smf/index.php?action=viewErrorLog;desc 
Unable to load the 'Ads.english' language file.

Thanks for your help

Title: Re: Ad Management mod
Post by: Bigguy on July 02, 2009, 07:34:39 AM
If you are using utf8 for language instead of striaght english then you won't see anything. Change Ads.english.php to Ads.english-utf8.php and see if it helps.
Title: Re: Ad Management mod
Post by: chefjohnnie on July 02, 2009, 02:06:28 PM
Quote from: chefjohnnie on July 01, 2009, 01:35:49 AM
Parse error: syntax error, unexpected '<' in .../Themes/default/index.template.php on line 186

Quote177:    {
178:       $ads = show_topofpageAds();   
179:       if(!empty($ads))
180:          if($ads['type']==0)
181:             echo $ads['content'];
182:          else
183:             eval($ads['content']);   
184:       unset($ads);
185:    }

186:    <div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>

187:       <table width="100%" cellpadding="0" cellspacing="0" border="0">
188:          <tr>
189:             <td class="headerbg"><a href="', $scripturl, ' "><img src="', $settings['images_url']. '/banner.jpg" alt="" /></a></td>';
190:                      //Welcome Ads

Here is the moded file

could some one please help me on this i have tried to do it my self but to no avail
thaxs
Title: Re: Ad Management mod
Post by: 2sanstef on July 02, 2009, 07:39:13 PM
Decided to reinstall 1.1.9 as I had made so many changes via package manager wanted to make sure I had a clean copy.

Now I get the following error message, I have checked CHMOD permissions on smf/Sources/Packages.php and tried both 777 and 755

Fatal error: packageinstall() [function.require]: Failed opening required '/www.sanstefanos.co.uk/smf/Packages/temp/./install.php' (include_path='.:/usr/local/lib/php') in /www.sanstefanos.co.uk/smf/Sources/Packages.php on line 556

What Ad Mgt mod should I be using I have downloaded 2.3.1
Title: Re: Ad Management mod
Post by: chefjohnnie on July 02, 2009, 08:48:15 PM
Quote from: 2sanstef on July 02, 2009, 07:39:13 PM
Decided to reinstall 1.1.9 as I had made so many changes via package manager wanted to make sure I had a clean copy.

Now I get the following error message, I have checked CHMOD permissions on smf/Sources/Packages.php and tried both 777 and 755

Fatal error: packageinstall() [function.require]: Failed opening required '/www.sanstefanos.co.uk/smf/Packages/temp/./install.php' (include_path='.:/usr/local/lib/php') in /www.sanstefanos.co.uk/smf/Sources/Packages.php on line 556

What Ad Mgt mod should I be using I have downloaded 2.3.1
try this
Title: Re: Ad Management mod
Post by: chefjohnnie on July 02, 2009, 08:50:13 PM
Quote from: chefjohnnie on July 02, 2009, 02:06:28 PM
Quote from: chefjohnnie on July 01, 2009, 01:35:49 AM
Parse error: syntax error, unexpected '<' in .../Themes/default/index.template.php on line 186

Quote177:    {
178:       $ads = show_topofpageAds();   
179:       if(!empty($ads))
180:          if($ads['type']==0)
181:             echo $ads['content'];
182:          else
183:             eval($ads['content']);   
184:       unset($ads);
185:    }

186:    <div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>

187:       <table width="100%" cellpadding="0" cellspacing="0" border="0">
188:          <tr>
189:             <td class="headerbg"><a href="', $scripturl, ' "><img src="', $settings['images_url']. '/banner.jpg" alt="" /></a></td>';
190:                      //Welcome Ads

Here is the moded file

could some one please help me on this i have tried to do it my self but to no avail
thaxs
can i please get a hand
Title: Re: Ad Management mod
Post by: Bigguy on July 02, 2009, 10:17:58 PM
Try this:

Change this:

       unset($ads);
    }


To this:

       unset($ads);
    }';


Or this:

       unset($ads);
    };


One of them should work.
Title: Re: Ad Management mod
Post by: 2sanstef on July 03, 2009, 04:12:13 AM
Quote from: chefjohnnie on July 02, 2009, 08:48:15 PM
Quote from: 2sanstef on July 02, 2009, 07:39:13 PM
Decided to reinstall 1.1.9 as I had made so many changes via package manager wanted to make sure I had a clean copy.

Now I get the following error message, I have checked CHMOD permissions on smf/Sources/Packages.php and tried both 777 and 755

Fatal error: packageinstall() [function.require]: Failed opening required '/www.sanstefanos.co.uk/smf/Packages/temp/./install.php' (include_path='.:/usr/local/lib/php') in /www.sanstefanos.co.uk/smf/Sources/Packages.php on line 556

What Ad Mgt mod should I be using I have downloaded 2.3.1
try this

Ok tried that but still get this error message in the browser window:

Fatal error: packageinstall() [function.require]: Failed opening required '/www.sanstefanos.co.uk/smf/Packages/temp/./install.php' (include_path='.:/usr/local/lib/php') in /www.sanstefanos.co.uk/smf/Sources/Packages.php on line 556

And these errors in the Error log (I have a temp folder added with permissions CHMOD 777


   2sanstef   Today at 09:09:28 AM 
155.136.80.172     918735aea7a29d55b4f41dd51d681a60 
http://www.sanstefanos.co.uk/smf/index.php?action=packages;sa=install2;package=ad_mod_v2-3-1_SMF_v1-1-x.zip 
2: copy(/www.sanstefanos.co.uk/smf/Packages/temp/./Ads.php) [<a href='function.copy'>function.copy</a>]: failed to open stream: No such file or directory
File: /www.sanstefanos.co.uk/smf/Sources/Subs-Package.php
Line: 1025

   2sanstef   Today at 09:09:28 AM 
155.136.80.172     918735aea7a29d55b4f41dd51d681a60 
http://www.sanstefanos.co.uk/smf/index.php?action=packages;sa=install2;package=ad_mod_v2-3-1_SMF_v1-1-x.zip 
2: file_get_contents(/www.sanstefanos.co.uk/smf/Packages/temp/./Ads.php) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory
File: /www.sanstefanos.co.uk/smf/Sources/Subs-Package.php
Line: 1824



This all worked so well on 1.1.8 now its becoming a nightmare!
Title: Re: Ad Management mod
Post by: Bigguy on July 03, 2009, 07:35:06 AM
Try the mod "No remove temp directory" (or whatever it's called) and see if that makes a difference.
Title: Re: Ad Management mod
Post by: collins465 on July 04, 2009, 07:44:29 AM
please help i am using smf 1.1.9 with babylon theme, i installed it and did everything possible and it was installed properly without error messages but my ad is not displaying even as an admin i coult not see any ad...

i am a newbie pleas help....
Title: Re: Ad Management mod
Post by: PERVEZ on July 04, 2009, 11:21:31 AM
I install Ad Management mod V 2.3. Im using smf 1.1.9 with outline theme. But after installation i cant find any module under Configuration to add my advertise code. My board url is: http://sms.mig33forum.com

Im new to smf. First i download this mod and upload via package manager in admin panel. And install and aplly it. Was it enough and right?
Title: Re: Ad Management mod
Post by: Bigguy on July 04, 2009, 02:25:49 PM
@ collins465: Manual edits have to be done on any theme other than the default theme.

@ PERVEZ: Read above.
Title: Re: Ad Management mod
Post by: thisishowu on July 04, 2009, 08:39:07 PM
I have this mod and when i put in an adsense code i get 2 adds for 1 code, one underneath the first, have tried all the different versions.
I am using 1.1.9
Title: Re: Ad Management mod
Post by: Bigguy on July 04, 2009, 09:59:27 PM
The code has been added twice to the template files then. My guess is you tried to install twice somewhere along the line. You will have to manually go through the template files and remove the duplicate code.
Title: Re: Ad Management mod
Post by: thisishowu on July 05, 2009, 12:13:33 AM
Ok i will look in the template files and let you know
Title: Re: Ad Management mod
Post by: collins465 on July 05, 2009, 11:51:54 AM
Quote from: Bigguy on July 04, 2009, 02:25:49 PM
@ collins465: Manual edits have to be done on any theme other than the default theme.

@ PERVEZ: Read above.

please i will appreciate if you can help me out i am a newbie and dont know anything about these codes and editing

here is the index.template of my babylon theme i am using

thanks and waiting .
Title: Re: Ad Management mod
Post by: Bigguy on July 05, 2009, 12:41:37 PM
Ok try this. I'm not guaranteeing anything. Backup the original first and make sure you have the ad mod installed before trying this file.
Title: Re: Ad Management mod
Post by: darkNiGHTS on July 05, 2009, 02:23:29 PM
So I am trying to make all ads only appear for guests, but I can't seem to find the in a forum board ads. The ones on the top here:

http://thepurplecube.org/forums/index.php?board=16.0

I've tried looking around in the PHP file for a long time and haven't been able to find that specific location.  I managed to make the ones on the foum index only appear if you are a guest.  What file are those ads in and what does the code look like?  Thanks.
Title: Re: Ad Management mod
Post by: collins465 on July 05, 2009, 07:01:15 PM
Quote from: Bigguy on July 05, 2009, 12:41:37 PM
Ok try this. I'm not guaranteeing anything. Backup the original first and make sure you have the ad mod installed before trying this file.

you are reall gud. it worked perfectly.

tnx alot i appreciate
Title: Re: Ad Management mod
Post by: Bigguy on July 06, 2009, 06:30:12 AM
@ darkNiGHTS: Look in permissions.
Title: Re: Ad Management mod
Post by: fff on July 06, 2009, 10:27:12 AM
I am trying to install manually ad management mod on my 1.1.9 forum http://trustedptc.ueuo.com/
I did everything except this:
Code
install.php
This file should not be able to execute standalone. You may have to run the following queries manually.

Query: [Select]


CREATE TABLE IF NOT EXISTS {$db_prefix}ads (
ADS_ID mediumint(8) unsigned NOT NULL auto_increment,
NAME tinytext NOT NULL,
CONTENT text NOT NULL,
BOARDS tinytext,
POSTS tinytext,
HITS mediumint(8) NOT NULL default '0',
TYPE smallint(4) NOT NULL default '0',
show_index smallint(4) NOT NULL default '0',
show_board smallint(4) NOT NULL default '0',
show_threadindex smallint(4) NOT NULL default '0',
show_lastpost smallint(4) NOT NULL default '0',
show_thread smallint(4) NOT NULL default '0',
show_bottom smallint(4) NOT NULL default '0',
show_welcome smallint(4) NOT NULL default '0',
show_topofpage smallint(4) NOT NULL default '0',
show_towerright smallint(4) NOT NULL default '0',
show_towerleft smallint(4) NOT NULL default '0',
show_betweencategories smallint(4) NOT NULL default '0',
show_underchildren smallint(4) NOT NULL default '0',
PRIMARY KEY (ADS_ID)
)

Query: [Select]


CREATE TABLE IF NOT EXISTS {$db_prefix}ads_settings (
variable tinytext NOT NULL,
value text NOT NULL,
PRIMARY KEY (variable(30))
)

Query: [Select]


ALTER IGNORE TABLE {$db_prefix}ads
ADD   show_lastpost smallint(4) NOT NULL default '0' AFTER show_threadindex

Query: [Select]


ALTER IGNORE TABLE {$db_prefix}ads
ADD   CATEGORY tinytext AFTER POSTS

Query: [Select]


ALTER IGNORE TABLE {$db_prefix}ads
ADD   show_underchildren smallint(4) NOT NULL default '0'

Query: [Select]


INSERT IGNORE INTO {$db_prefix}settings
(variable, value)
VALUES ('ads_displayAdsAdmin', '0'),
('ads_updateReports', '0'),
('ads_quickDisable', '0'),
('ads_lookLikePosts', '1')


I don't know what this means. How to run the previous queries manually?
BTW when I open my forum it says: Database Error
Please try again. If you come back to this error screen, report the error to an administrator.

What is the problem?
Title: Re: Ad Management mod
Post by: ScrepY on July 06, 2009, 02:23:00 PM
I have some problem, when i install it ruins my template. Here is an image (where is the ride line it shouldn't be like that)
(http://img80.imageshack.us/img80/5778/gerasd.th.jpg) (http://img80.imageshack.us/i/gerasd.jpg/)
Any ideas what's wrong ?
Title: Re: Ad Management mod
Post by: 2sanstef on July 06, 2009, 05:31:29 PM
Hi I am trying to manually install on 1.1.9 as I am having problems with the package manager. Have installed the (No Temp Delete mod) as suggested, this works and now contains all of the files from the ad management mod and feed mod that I am attempting to install.

I to have got stuck at the install.php stage (the ad management option has now appeared in the menu but if I click on it I just get taken to the forum home page.

Can you help me get past this stage and install the ad management mod successfully please. BTW this mod has worked perfectly in conjunction with the package manager in previous versions so has anything changed in 1.1.9?


Ok I have now managed to get the ad management working of sorts, it displays ads but not in all available locations. If I ask for it to be at the end of a post the ad appears at the start and end :-) I assume its an error in one of the template files I have edited
Title: Re: Ad Management mod
Post by: Bigguy on July 06, 2009, 09:09:45 PM
@ fff: If I'm not mistaken those queries can be run in phpmyadmin.

@ ScrepY: Did you already add an add, is that why that space is there. ???

@ 2sanstef: Did you run the install.php is that what you are having problems with. ???
Title: Re: Ad Management mod
Post by: Yahmez on July 06, 2009, 09:24:56 PM
Quote from: Yahmez on June 24, 2009, 05:49:10 PM
I have a question. I am running 2.0RC1.1 and have nneonneo's AJAX ShoutBox V1.22. This particular shoutbox appears in the 'welcome user' area. When I install the Ad Mod, it squishes the shout box to the left and makes a blank area to the right. I tried editing the mod and removed all parts of code partaining to the 'welcome user' area but it still shows up like that. In SMF 1.1.x it never did this. Does anyone else have this issue and/or know how to remove all (ad mod) edits to the welcome user area of the header?
Bump!  Anyone have any ideas on this?
Title: Re: Ad Management mod
Post by: Bigguy on July 06, 2009, 09:26:18 PM
I wish I could help but I don't use the shoutbox at all.
Title: Re: Ad Management mod
Post by: Yahmez on July 06, 2009, 09:40:23 PM
Quote from: Bigguy on July 06, 2009, 09:26:18 PM
I wish I could help but I don't use the shoutbox at all.
Shout box or not... I need to remove all edits to the header that are done by the ad mod...  I tried editing the files to remove all references to the 'show ads in welcome user area' but no luck.
Title: Re: Ad Management mod
Post by: Bigguy on July 06, 2009, 10:21:39 PM
Use the package parser. it will show all edits. The ones you are looking for are in the index.template.php file I do believe.
Title: Re: Ad Management mod
Post by: 2sanstef on July 07, 2009, 04:19:18 AM
Quote from: Bigguy on July 06, 2009, 09:09:45 PM
@ fff: If I'm not mistaken those queries can be run in phpmyadmin.

@ ScrepY: Did you already add an add, is that why that space is there. ???

@ 2sanstef: Did you run the install.php is that what you are having problems with. ???

Update:

I installed ad mgt mod via package manager, got the green light indicating that the mod had been installed successfully but no ads and error messages saying the sub.php had errors.

Decided to install manually and completed all changes (No changes had been previously made by the package manager)

Got stuck at the install.php stage as didn't understand how to run these.

Went back to forum and it appears that ad mgt mod has now been installed successfuly.

Problem now is that Ads don't appear in all of the optional locations on the page. If I ask for it to be at the end of each post they appear at the beginning and end?

No error messages are being generated.

Forum http://www.sanstefanos.co.uk/smf/index.php (http://www.sanstefanos.co.uk/smf/index.php)

I am inclined to leave well alone. By the way have any changes been made in 1.1.9 that stop the package manager working properly as I have had problems installing this and the feeds mod, previously they both installed simply via the package manager?

Title: Re: Ad Management mod
Post by: ScrepY on July 07, 2009, 06:10:24 AM
Quote@ ScrepY: Did you already add an add, is that why that space is there. ???

No i just installl the mod and it happens like this. But installing the mode there are some errors when i am installing to my custom template, could it be the problem ?
Title: Re: Ad Management mod
Post by: fff on July 07, 2009, 07:18:05 AM
Quote from: Bigguy on July 06, 2009, 09:09:45 PM
@ fff: If I'm not mistaken those queries can be run in phpmyadmin.

I did it but I didn't solve my problem
Title: Re: Ad Management mod
Post by: Bigguy on July 07, 2009, 08:48:28 AM
@ 2sanstef: No changes I know of

@ ScrepY: It could be the problem. What does the ad mod look like on the default theme. Is that space still there.
Title: Re: Ad Management mod
Post by: collins465 on July 07, 2009, 10:49:27 AM
anyone using adsense with this mod sholu read and help me out... i really need help

i just launched a forum http://naijaorbit.com everything is working fine i have finished pimping it the way i want. i have installed ad management mod BUT putting adsense code in my forum is very confusing to me .
i signed up with google adsense, they have approved my forum i have generated my first text ad i  have the code, but the questions are where will i put this first text ad in my forum or ad mod, and how do i set up channels for my forum, will i continue to create ads by my self to suit the different categories in my forum like music sports business, computers etc..or will google be sending them to me or what?

please take your time and explain to me in detail, i know you are busy but please help me out..
Title: Re: Ad Management mod
Post by: ScrepY on July 08, 2009, 08:41:51 AM
Quote from: Bigguy on July 07, 2009, 08:48:28 AM
@ ScrepY: It could be the problem. What does the ad mod look like on the default theme. Is that space still there.
Yeah it was every thing ok when i changed the default template. So what i have to do to make it work and look right. By the way in my custom template there is one file index.template.php and when i try install it says taht there are errors can you help me to make the code ?
Title: Re: Ad Management mod
Post by: TomW on July 08, 2009, 10:13:34 PM
I'm trying to select  'Manual Install Instructions for SMF ver 1.1.9 but it will not parse.  What could be wrong ?
Title: Re: Ad Management mod
Post by: lindseylakeshore on July 09, 2009, 11:08:19 AM
I am trying to parse my new theme for my site the ads appear under default theme but keep coming up t string errors when I try to adjust the theme with the parse. Am I parsing to the smf version or the theme version. I run 1.1.9 smf but the theme is 1.1.8
Title: Re: Ad Management mod
Post by: Bigguy on July 09, 2009, 11:21:09 PM
@ ScrepY: Then the only file you need to edit is the index.template from the custom theme you are using. Try using the parser and an editor to work out were the code goes.

@ TomW: Could be something wrong with the parsor or the mod's .xml file. Try reporting it to the team.

@ lindseylakeshore: Ask the theme author for an updated theme and try again.

@ collins465: You shouldn't need any tags in the adsense code that you paste into the ad mod. So if you see any <php> or <html> tags strip them out and try it again. This includes their closing tags.
Title: Re: Ad Management mod
Post by: the epic winner on July 12, 2009, 12:34:54 PM
the mod is having no effect on my forum...nothing is showing even after I've added the ad code and set where i want it placed.
Title: Re: Ad Management mod
Post by: Yahmez on July 12, 2009, 12:59:16 PM
Quote from: the epic winner on July 12, 2009, 12:34:54 PM
the mod is having no effect on my forum...nothing is showing even after I've added the ad code and set where i want it placed.

Check your permissions for viewing the ads.
Title: Re: Ad Management mod
Post by: vitalik82 on July 13, 2009, 09:00:24 AM
Pease help!

I am trying to add adsense ads to my forum using Ad Mode.

So I received the code from google:

<script type="text/javascript"><!--
google_ad_client = "pub-3440420860184444";
/* ??????? ?1 */
google_ad_slot = "4374157380";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


I pasted it to the content field in the Ad Mode and nothing happend. But then I try to test it and write simple text in the contect field its working!
Title: Re: Ad Management mod
Post by: shumilica on July 16, 2009, 07:18:31 PM
vitalik82 this happens because google must first crawl the page to show ads. This ussually take a couple of hours to a day.
Title: Re: Ad Management mod
Post by: searchgr on July 18, 2009, 08:21:34 AM
and second are allowed only three adv. per page as per google policy
Title: Re: Ad Management mod
Post by: mgburks on July 18, 2009, 01:24:58 PM
Will this mod work with SMF 1.1.10? I've downloaded and installed it successfully but I do not see ad management in the configuration section of my admin panel.

Any guidance someone can give me will be most appreciated.


Title: Re: Ad Management mod
Post by: B1gft on July 18, 2009, 05:56:14 PM
I have just installed the mod, and have got this reading.



The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

The version of SMF I am useing is SMF 1.1.10. but I have also tried it with other versions and I am still getting the same message.
Please help as I really need this mod.
Thanks
Title: Re: Ad Management mod
Post by: Bigguy on July 18, 2009, 06:28:51 PM
You will have to wait until the package is updated.
Title: Re: Ad Management mod
Post by: TomW on July 18, 2009, 08:04:02 PM
I have been able to edit manually all of the files except for index.template.php which is from corp-lt116 theme.  It is drastically different than the default theme.  Can anyone help me with updating this file ?  You may pm me if you like.
Title: Re: Ad Management mod
Post by: NaYa on July 19, 2009, 02:40:01 AM
how i apply this to ANGIE theme ...with smf 1.1.10 ???

i used this in a theme named "post it" without any edits....
Title: Re: Ad Management mod
Post by: ScottDB on July 19, 2009, 02:58:29 AM
Hi all. I just installed the Ad Management and have edited permissions and all that but I still do not see any adds.
Checked  it with multiple places for ads to show as well as just one. Checked the show ads in the permission settings and even logged in as user to check for ads showing.
Tried multiple themes for default in case it was a theme problem.
I am not getting any error mesages so that makes it a little harder to figure out what the problem is.

I am using SMF 1.9 with ad package ad_mod_v2-3-1_SMF_v1-1-x. Not sure if this is the latest or best one to use with this version. Have posted in the mods general support but no reply. Can anybody help?
Title: Re: Ad Management mod
Post by: NaYa on July 19, 2009, 03:02:19 AM
Quote from: ScottDB on July 19, 2009, 02:58:29 AM
Hi all. I just installed the Ad Management and have edited permissions and all that but I still do not see any adds.
Checked  it with multiple places for ads to show as well as just one. Checked the show ads in the permission settings and even logged in as user to check for ads showing.
Tried multiple themes for default in case it was a theme problem.
I am not getting any error mesages so that makes it a little harder to figure out what the problem is.

I am using SMF 1.9 with ad package ad_mod_v2-3-1_SMF_v1-1-x. Not sure if this is the latest or best one to use with this version. Have posted in the mods general support but no reply. Can anybody help?


try this with theme "post it"

it is a good theme
Title: Re: Ad Management mod
Post by: ScottDB on July 19, 2009, 12:27:43 PM
I just looked for it and couldn't find it. Can you provide a link for it?
Title: Re: Ad Management mod
Post by: The Man Who on July 19, 2009, 03:21:09 PM
I have uploaded it fine - using the latest scripts for both SMF and Ad management.  But when I upload ads I can ONLY see them when logged in as an admin, I cant see them when as a posters/mods/guests.  How do I get the ads to show to users of the board?
Title: Re: Ad Management mod
Post by: RustyBarnacle on July 19, 2009, 04:17:31 PM
You need to edit the permissions for those groups to include ads.
Title: Re: Ad Management mod
Post by: The Man Who on July 19, 2009, 05:35:24 PM
Quote from: RustyBarnacle on July 19, 2009, 04:17:31 PM
You need to edit the permissions for those groups to include ads.

Thanks, I was indeed being that blind (would have SWORN I did that already but obviously not).

However on changing to a new them I am unable to have them display anywhere other than in text (as posts etc).

I am using the E N Theme

http://custom.simplemachines.org/themes/index.php?lemma=1798

And have set it up to run on http://forum.smallbellyguide.com

Anyone have any advice?
Title: Re: Ad Management mod
Post by: Immortalq on July 19, 2009, 08:07:35 PM
Ive installed Ad Management and i have problem with theme footer. I'm using Outline theme. Whole problem is:

Quote
Firstly - i know that i should post this on theme authors forum - which i did, but unfortunately i can't get support there (nobody replied for almost 36h now) and i really need to fix this. :(

Well i have installed latest AD Management with SMF 2.0 RC1-1. I'm using Outline style (just the blue version of it). After installing mod, it kinda screwed my footer, it looks like this:

(http://h.imagehost.org/t/0266/err1.jpg) (http://h.imagehost.org/view/0266/err1)

Ive set "display ads between posts (every 3)", it look ok on main page, topic page.

How to fix this? Please, help.

Firstly i thought it was a problem with theme, but after talking with support here (http://www.simplemachines.org/community/index.php?topic=324863.0) it's obvious that'sa mod - coding problem. Could you help me please? Attached my index.template.
Title: Re: Ad Management mod
Post by: vitalik82 on July 20, 2009, 05:39:50 AM
Thanx for quick response! The ads are showing now.

I have a new question, is it possible to have more than 1 ad in the same place?
Title: Re: Ad Management mod
Post by: TomW on July 20, 2009, 09:38:01 AM
Quote from: TomW on July 18, 2009, 08:04:02 PM
I have been able to edit manually all of the files except for index.template.php which is from corp-lt116 theme.  It is drastically different than the default theme.  Can anyone help me with updating this file ?  You may pm me if you like.
Any help would be appreciated.
Title: Re: Ad Management mod
Post by: GazOutEast on July 20, 2009, 12:48:27 PM
Quote from: vitalik82 on July 20, 2009, 05:39:50 AM
Thanx for quick response! The ads are showing now.

I have a new question, is it possible to have more than 1 ad in the same place?

When using the admin panel to add or edit an ad, simply put the code for both ads into the ad-code window.

If you want them side by side, don't use any line or paragraph breaks between them (in html),
or,
if using php code from a local adserver simply insert both ads' code with no php closer & opener between them - you don't neen them anyway with this mod if you have selected php format when creating the ad.

If you mean you want ads to alternate in the same position with each page refresh, simply create multiple ads for the same position and board. 

(better still, get a free hosted adserver account at openx.com and use the invocation code from there - you can have dozens of ads served through the same invocation code and only one ad in the ad management mod - openx will do the rotating and keyword targetting for you, plus geo-targetting, language targetting, browser targetting etc)

;)
Title: Re: Ad Management mod
Post by: GazOutEast on July 20, 2009, 12:51:05 PM
Quote from: TomW on July 20, 2009, 09:38:01 AM
Quote from: TomW on July 18, 2009, 08:04:02 PM
I have been able to edit manually all of the files except for index.template.php which is from corp-lt116 theme.  It is drastically different than the default theme.  Can anyone help me with updating this file ?  You may pm me if you like.
Any help would be appreciated.

I could probably help with it, but unfortunately my financial position right now only allows such jobs on a paid basis

Sorry
Title: Re: Ad Management mod
Post by: ScottDB on July 20, 2009, 03:52:37 PM
QuoteHi all. I just installed the Ad Management and have edited permissions and all that but I still do not see any adds.
Checked  it with multiple places for ads to show as well as just one. Checked the show ads in the permission settings and even logged in as user to check for ads showing.
Tried multiple themes for default in case it was a theme problem.
I am not getting any error mesages so that makes it a little harder to figure out what the problem is.

I am using SMF 1.9 with ad package ad_mod_v2-3-1_SMF_v1-1-x. Not sure if this is the latest or best one to use with this version. Have posted in the mods general support but no reply. Can anybody help?

I've checked and rechecked permisions and can not figure this out. Can someone please help. I will PM admin details if you need.
Title: Re: Ad Management mod
Post by: vitalik82 on July 21, 2009, 05:25:52 AM
Quote from: GazOutEast on July 20, 2009, 12:48:27 PM
When using the admin panel to add or edit an ad, simply put the code for both ads into the ad-code window.

If you want them side by side, don't use any line or paragraph breaks between them (in html),


Thats exactly what I wanted! Thank you very much!
Title: Re: Ad Management mod
Post by: Immortalq on July 21, 2009, 03:09:27 PM
Quote from: Immortalq on July 19, 2009, 08:07:35 PM
Ive installed Ad Management and i have problem with theme footer. I'm using Outline theme. Whole problem is:

Quote
Firstly - i know that i should post this on theme authors forum - which i did, but unfortunately i can't get support there (nobody replied for almost 36h now) and i really need to fix this. :(

Well i have installed latest AD Management with SMF 2.0 RC1-1. I'm using Outline style (just the blue version of it). After installing mod, it kinda screwed my footer, it looks like this:

(http://h.imagehost.org/t/0266/err1.jpg) (http://h.imagehost.org/view/0266/err1)

Ive set "display ads between posts (every 3)", it look ok on main page, topic page.

How to fix this? Please, help.

Firstly i thought it was a problem with theme, but after talking with support here (http://www.simplemachines.org/community/index.php?topic=324863.0) it's obvious that'sa mod - coding problem. Could you help me please? Attached my index.template.

Anybody? Help would be appreciated.
Title: Re: Ad Management mod
Post by: Immortalq on July 23, 2009, 08:56:39 AM
Oh cmon....it's so hard to get support here and i'm not asking for miracles.

...X days later - i still got that problem, anybody can help?
Title: Re: Ad Management mod
Post by: royhunters on July 25, 2009, 10:38:43 PM
I dont see anything in my smf under config to be able to install this mod, I downloaded it but I can not find any info on what I need to do to install it.

I am not a pro at this so I need the 101 instructions.

Thanks
Title: Re: Ad Management mod
Post by: Yahmez on July 25, 2009, 10:44:30 PM
Easy! Upload it and click 'apply mod'
http://docs.simplemachines.org/index.php?topic=93#post_upload
Title: Re: Ad Management mod
Post by: royhunters on July 25, 2009, 11:03:25 PM
The files are sitting in a folder on my desktop, they were downloaded from the SMF website, not within the admin of the forum.

Where do I upload them? in the forum folder I have in the root on the server? then log into the forum and poof there it is?

Sorry to sound like a retard here, I have only had the forum for a week so I am in the learning curve.
Title: Re: Ad Management mod
Post by: royhunters on July 25, 2009, 11:28:39 PM
OK, I got SMF to upload the zip folder to the server and I see it in pachages..

Next stupid question: Now what?

Sorry, it has been a long day
Title: Re: Ad Management mod
Post by: royhunters on July 26, 2009, 09:59:51 AM
Hi,

Could someone please tell me how to install the mod once it has been uploaded, I see the mod in packages and I can see a file list but I do not know how to install it.

I can not see where you click to "apply mod"

it is 2-3.4

Thanks
Title: Re: Ad Management mod
Post by: Immortalq on July 27, 2009, 08:36:16 AM
Quote from: Immortalq on July 21, 2009, 03:09:27 PM
Quote from: Immortalq on July 19, 2009, 08:07:35 PM
Ive installed Ad Management and i have problem with theme footer. I'm using Outline theme. Whole problem is:

Quote
Firstly - i know that i should post this on theme authors forum - which i did, but unfortunately i can't get support there (nobody replied for almost 36h now) and i really need to fix this. :(

Well i have installed latest AD Management with SMF 2.0 RC1-1. I'm using Outline style (just the blue version of it). After installing mod, it kinda screwed my footer, it looks like this:

(http://h.imagehost.org/t/0266/err1.jpg) (http://h.imagehost.org/view/0266/err1)

Ive set "display ads between posts (every 3)", it look ok on main page, topic page.

How to fix this? Please, help.

Firstly i thought it was a problem with theme, but after talking with support here (http://www.simplemachines.org/community/index.php?topic=324863.0) it's obvious that'sa mod - coding problem. Could you help me please? Attached my index.template.

Anybody? Help would be appreciated.

Still waiting for some support it's been now 8 days since i wrote this. :(
Title: Re: Ad Management mod
Post by: Yahmez on July 28, 2009, 11:45:05 AM
Quote from: royhunters on July 26, 2009, 09:59:51 AM
Hi,

Could someone please tell me how to install the mod once it has been uploaded, I see the mod in packages and I can see a file list but I do not know how to install it.

I can not see where you click to "apply mod"

it is 2-3.4

Thanks

Sorry bout that Roy,
If you have got the package uploaded thru package manager then you want to look under ADMIN>PACKAGES>BROWSE PACKAGES
The Mods uploaded show here and you can click [Apply mod] there. If it reads [Uninstall] then you already have it installed and need to check your permissions and set accordingly, and then add your ads.
Title: Re: Ad Management mod
Post by: webmin on July 28, 2009, 02:06:36 PM
How do I install this script.
I download the zip folder and have in on my computer...where on the sever must I upload it to have in installed.
Title: Re: Ad Management mod
Post by: Yahmez on July 28, 2009, 02:50:15 PM
Quote from: webmin on July 28, 2009, 02:06:36 PM
How do I install this script.
I download the zip folder and have in on my computer...where on the sever must I upload it to have in installed.
The easiest way is to upload the package (zip file) thru SMF.
Go to: Admin>Packages>Download Packages
Scroll down to: 'Upload a Package' and click 'Browse...'
Find your file and click upload.
Title: Re: Ad Management mod
Post by: webmin on July 28, 2009, 03:15:26 PM
Quote from: Yahmez on July 28, 2009, 02:50:15 PM
Quote from: webmin on July 28, 2009, 02:06:36 PM
How do I install this script.
I download the zip folder and have in on my computer...where on the sever must I upload it to have in installed.
The easiest way is to upload the package (zip file) thru SMF.
Go to: Admin>Packages>Download Packages
Scroll down to: 'Upload a Package' and click 'Browse...'
Find your file and click upload.

Thanks I was able to successfully upload and install the script...not It not showing up in the cofig panel for me to edit it.
Title: Re: Ad Management mod
Post by: Yahmez on July 28, 2009, 03:38:05 PM
In 2.0 it should be found @   Admin>Configuration>Ad Management
If it's not there maybe this will shed some light? http://www.simplemachines.org/community/index.php?topic=230761.0 (http://www.simplemachines.org/community/index.php?topic=230761.0)
Title: Re: Ad Management mod
Post by: [A-US]James246 on July 29, 2009, 03:19:02 AM
Will this work with SMF 2.0 RC1.2?  ???
Title: Re: Ad Management mod
Post by: _______ on July 29, 2009, 04:22:29 AM
Nice mod..
Title: Re: Ad Management mod
Post by: Yahmez on July 29, 2009, 06:52:38 AM
Quote from: [A-US]James246 on July 29, 2009, 03:19:02 AM
Will this work with SMF 2.0 RC1.2?  ???
Works for me!  :P
Title: Re: Ad Management mod
Post by: ChipT2009 on July 29, 2009, 11:40:35 AM
Hi to all -

I must be as dumb as a box of hammers... but I did read a bunch of posts here, too...

1. I have a brand new install of 1.1.10 installed on a server with no changes or anything done to it yet.

2. I want to add the correct ad module so I can display my own ads/banners, not Google stuff.

3. I have no idea about the precise steps to do this, despite spending hours trying to find them anywhere written in a way an average pc guy with over a decade experience can understand them.

4. I have no idea which ad module of the four or five listed to DL... and there seems to be no explanation anywhere as to which link is for what...

5. I cannot access them through 'packages' section in my SMF software.

6. Once I could get the correct link/ad module DL'd, I have no idea how to get it onto the server, into the SMF software, and functioning properly.

7. When I clicked the 'get manual instructions pdf' or whatever that link said... it tells me that apparently the ad module is not compatible with my 1.1.10 version.

8. A few inches away from there, on the same web page, version 1.1.10 is listed as one of the compatible versions with the listed ad modules.

So either I must be as dumb as a sack of rocks... or I am just missing the obvious... but nevertheless I would sure love it if someone could please give me very specific, 3rd-grade-reader instructions on each and every precise step to take to go from where I am now -- stuck in the quicksand -- to then arrive at the finishing line where that correct ad module is installed on the server inside my SMF install and I can set up my own ads/banners to be placed on my various forum pages.

Please, someone help me.  I have lost a whole day now trying to get this right...

Thank you tons in advance -

Chip


Title: Re: Ad Management mod
Post by: babjusi on July 29, 2009, 11:45:59 AM
Hi ChipT2009

the mod is compatible with 1.1.10. First download the mod to your pc then go the acp of your forum-packages and click on browse. Select the mod from your pc and install it. To install it on a 1.1.10 forum you must use the emulate version trick or change the version at package-info file inside the mod package, save the changes and zip up ahain the mod and install it.

Note that almost all mods will work with the default theem only. SO, if you have a custom theme, then manual instalaltion is required.
Title: Re: Ad Management mod
Post by: ChipT2009 on July 29, 2009, 11:59:14 AM
Hi -

Thank you for your amazing fast reply, but...

Some of what you just said is Mandarin Chinese to me...

1. Yes, I have the default theme and it is unchanged in any way...

2. I can DL whatever to my pc, but have no idea which of the available ad mod links to DL...

3. What is the 'acp' of my forum packages?

4. Which mod version do I select?

5. I have no idea what the 'emulate version trick'  is...

6. I have no idea what "or change the version at package-info file inside the mod package, save the changes and zip up ahain the mod and install it." means...

Thank you again -

Chip

Title: Re: Ad Management mod
Post by: S.Nieves on July 30, 2009, 01:26:43 AM
Hello,
Im getting this in my error log. This mod has been uninstalled and deleted. I found this particular file in the Languages section (ads.english) and manually deleted t. Where is my edit on this one so that this error stops showing up?

Apply Filter: Only show the error messages of this URL http://www.doggeekz.com/index.php?action=viewErrorLog;desc

Unable to load the 'Ads.english' language file.


Thanks

Sam
Title: Re: Ad Management mod
Post by: Immortalq on July 30, 2009, 05:52:27 AM
Quote from: Immortalq on July 27, 2009, 08:36:16 AM
Quote from: Immortalq on July 21, 2009, 03:09:27 PM
Quote from: Immortalq on July 19, 2009, 08:07:35 PM
Ive installed Ad Management and i have problem with theme footer. I'm using Outline theme. Whole problem is:

Quote
Firstly - i know that i should post this on theme authors forum - which i did, but unfortunately i can't get support there (nobody replied for almost 36h now) and i really need to fix this. :(

Well i have installed latest AD Management with SMF 2.0 RC1-1. I'm using Outline style (just the blue version of it). After installing mod, it kinda screwed my footer, it looks like this:

(http://h.imagehost.org/t/0266/err1.jpg) (http://h.imagehost.org/view/0266/err1)

Ive set "display ads between posts (every 3)", it look ok on main page, topic page.

How to fix this? Please, help.

Firstly i thought it was a problem with theme, but after talking with support here (http://www.simplemachines.org/community/index.php?topic=324863.0) it's obvious that'sa mod - coding problem. Could you help me please? Attached my index.template.

Anybody? Help would be appreciated.

Still waiting for some support it's been now 8 days since i wrote this. :(

Really....what's the point of writing the mod if you don't give support for it / update it / fix it. :/ Almost 2 weeks passed now, and i still can get answer / help to my problem here. Which for anybody would be at best a big disappointment.
Title: Re: Ad Management mod
Post by: Yahmez on July 30, 2009, 08:05:47 AM
Quote from: S.Nieves on July 30, 2009, 01:26:43 AM
Hello,
Im getting this in my error log. This mod has been uninstalled and deleted. I found this particular file in the Languages section (ads.english) and manually deleted t. Where is my edit on this one so that this error stops showing up?

Apply Filter: Only show the error messages of this URL http://www.doggeekz.com/index.php?action=viewErrorLog;desc (http://www.doggeekz.com/index.php?action=viewErrorLog;desc)

Unable to load the 'Ads.english' language file.


Thanks

Sam
The MOD might not have uninstalled properly if SMF is still trying to load that file. Try looking at what edits the mod makes to your files and then checking to verify that it removed all of the code when it was uninstalled.
Title: Re: Ad Management mod
Post by: S.Nieves on July 30, 2009, 01:48:49 PM
Thanks!

I will go throught he whole manual un-install today.

Sam
Title: Re: Ad Management mod
Post by: ScottDB on July 31, 2009, 01:47:14 AM
Quotethe mod is compatible with 1.1.10. First download the mod to your pc then go the acp of your forum-packages and click on browse. Select the mod from your pc and install it. To install it on a 1.1.10 forum you must use the emulate version trick or change the version at package-info file inside the mod package, save the changes and zip up ahain the mod and install it.

Note that almost all mods will work with the default theem only. SO, if you have a custom theme, then manual instalaltion is required.

Excuse me for I am fairly new but with other mods I just look up the version and parse it then manually install on custom themes. I have this working fine on my default and would like it to be on my other themes. Can you tell me where the edits are for adding this to custom themes. I am running 1.1.10

Title: Re: Ad Management mod
Post by: goldenboy48 on July 31, 2009, 04:36:10 AM
Hi,

How can I put ads inside the first post [box ad aligned right] just like this site - http://geopakistani.com/forums/showthread.php?t=36762 on my SMF forum?

Thanks
Title: Re: Ad Management mod
Post by: Paracelsus on July 31, 2009, 06:58:34 AM
I have 1.1.10 and it has been working fine for me.

Of course, since I don't use the default theme I had to manually edit the four templates affected by the MOD and I edited just the parts I needed to put the ads where I wanted them. In the end, I just can't get Display.template.php as supposed (to put ads between posts), probably because the post table structure is awfully different from the default theme one and I still haven't found a way to make it work.

But in general I would say it works very well with no error messages or problems whatsoever.
Title: Re: Ad Management mod
Post by: ScottDB on July 31, 2009, 03:01:08 PM
just wondering why when I try and get instructions for the manual instalation it says that it isn't compatable no mater what version I try to parse with.
Title: Re: Ad Management mod
Post by: goldenboy48 on July 31, 2009, 03:32:32 PM
Quote from: ScottDB on July 31, 2009, 03:01:08 PM
just wondering why when I try and get instructions for the manual instalation it says that it isn't compatable no mater what version I try to parse with.
You need to pick the correct version. Some versions are for 1.1.10 and some are for 2.0 RC.
Title: Re: Ad Management mod
Post by: ScottDB on August 01, 2009, 12:57:49 AM
Thanks, can't believe I missed that. :-[
Title: Re: Ad Management mod
Post by: [A-US]James246 on August 01, 2009, 04:11:03 AM
Hi.

Whenever I install this and apply it and add the ads, they don't show up...

Please help.
Title: Re: Ad Management mod
Post by: asrulz on August 03, 2009, 12:01:23 PM
hi

my ad doesnt appear / displayed between the post in the thread. i've followed everything on the instruction manual. did i miss something out here?

fyi .. i'm using SMF 1.1.9 with dziner studio themes. the ads working on other parts except displaying between post. please help. thanks.
Title: Re: Ad Management mod
Post by: eflat2130 on August 03, 2009, 03:05:47 PM
everytime I try to add an ad it makes it double? Please help..
Title: Re: Ad Management mod
Post by: docprego on August 04, 2009, 06:26:29 AM
Hello,

I tried to follow the guide to install the ad mod on my custom theme which is Red FS  Most edits matched up perfectly but several in the index.template.php file do not.  I am getting a parse error and this only occurs if this file is uploaded to the server.

Interestingly I found that ads are working if I don't upload index.template.php.  Without it, using the default file my site is loading up just fine with some ads.  I don't get the ads in all of the locations that the Ad Management configuration panel says that they would be available, these include:

1. In every page right below the menu
2. On the post page
3. On every page at the top of the page
4. In the welcome user area
5. On the bottom of the page
6. As towers on either the left or right side

But I am getting them on the board index and message index, after the last post and also within posts. 

I am assuming that if I modified my index.template.php file I would be able to place ads in all the places I listed above where they are currently not.  So If anyone would be willing to help it would be greatly appreciated.

I'm attaching the index.template.php file, help with the edits would be greatly appreciated.

Thank you
Title: Re: Ad Management mod
Post by: Bigguy on August 04, 2009, 10:59:41 PM
@ eflat2130: Check the template files for duplicate code from the ad mod.

@ docprego: I checked the file you posted and did not find any parse errors.
Title: Re: Ad Management mod
Post by: docprego on August 04, 2009, 11:57:22 PM
Quote from: Bigguy on August 04, 2009, 10:59:41 PM
@ eflat2130: Check the template files for duplicate code from the ad mod.

@ docprego: I checked the file you posted and did not find any parse errors.

Thanks for checking but I wasn't clear.  That file does not have the ad management mod edits applied to it, it is the unedited file from my theme which is Red FS.  I attached it hoping someone could apply the edits to the file because I couldn't figure out how to do it.  The instructions for manually installing the ads mods don't match up with my file because the areas the instructions say to find are not the same in my index.template.php.  In other words I can't find those places so I have no idea where to apply the edits that the manual install instructions say to.

If you could help me with those edits (I'm not sure where to apply them in the file) it would be greatly appreciated.

Thank you!
Title: Re: Ad Management mod
Post by: Bigguy on August 05, 2009, 07:35:19 AM
No time right now but maybe later today, not sure though.
Title: Re: Ad Management mod
Post by: docprego on August 05, 2009, 05:43:32 PM
Quote from: Bigguy on August 05, 2009, 07:35:19 AM
No time right now but maybe later today, not sure though.

Thank you very much.
Title: Re: Ad Management mod
Post by: rodrico101 on August 07, 2009, 03:52:25 PM
Hello,

Hoping for some help.
I've uploaded all the files with no errors, installed and applied the mod, checked my forum language for english-utf8 language and am running in the default theme and still I am not seeing the option for Ad Management under the Configuration Heading.  I am using version 1.1.10

What am I doing wrong?

Thanks,
Rod
Title: Re: Ad Management mod
Post by: ScottDB on August 08, 2009, 06:26:25 PM
I have the mod working on my default and one other custom theme but I'm having trouble installing on my custom theme called EOTS DZINE MC25. I just get a blank gray block on top mixed up in the header. I have checked the templates twice and can't find the error. Thought someone might know where I made my mistake by the pic. Included are the pic. of problem and the templates I have edited. Can someone please help with this and tell me what they change? I need to learn this stuff.
Title: Re: Ad Management mod
Post by: rodrico101 on August 09, 2009, 12:08:27 PM
QuoteHello,

Hoping for some help.
I've uploaded all the files with no errors, installed and applied the mod, checked my forum language for english-utf8 language and am running in the default theme and still I am not seeing the option for Ad Management under the Configuration Heading.  I am using version 1.1.10

What am I doing wrong?

Thanks,
Rod

Anyone???
Thanks,
Rod
Title: Re: Ad Management mod
Post by: docprego on August 09, 2009, 01:12:59 PM
Quote from: rodrico101 on August 09, 2009, 12:08:27 PM
QuoteHello,

Hoping for some help.
I've uploaded all the files with no errors, installed and applied the mod, checked my forum language for english-utf8 language and am running in the default theme and still I am not seeing the option for Ad Management under the Configuration Heading.  I am using version 1.1.10

What am I doing wrong?

Thanks,
Rod

Anyone???
Thanks,
Rod

See this post:

http://www.simplemachines.org/community/index.php?topic=78240.msg1715850#msg1715850
Title: Re: Ad Management mod
Post by: rodrico101 on August 09, 2009, 09:11:08 PM
Thanks....I switched the language to strictly "English" and that did the trick.

Thanks for the help.

Rod
Title: Re: Ad Management mod
Post by: docprego on August 09, 2009, 10:09:37 PM
Quote from: rodrico101 on August 09, 2009, 09:11:08 PM
Thanks....I switched the language to strictly "English" and that did the trick.

Thanks for the help.

Rod

You're welcome.
Title: Re: Ad Management mod
Post by: chevydrvr on August 09, 2009, 10:12:37 PM
I cant get it to work on my custom theme. Ive tried everything.
Title: Re: Ad Management mod
Post by: Bigguy on August 09, 2009, 10:51:15 PM
edit the template files. Use the parser to show you the edits.
Title: Re: Ad Management mod
Post by: rodrico101 on August 09, 2009, 11:25:55 PM
Now that I have it working on the default theme, just need to modify my modified template theme. 
The template files are quite a bit different than the default file, may take some work.

Rod
Title: Re: Ad Management mod
Post by: chevydrvr on August 10, 2009, 09:43:11 AM
I changed everything. It's all the way it should be. It still doesn't work.
Title: Re: Ad Management mod
Post by: Bigguy on August 10, 2009, 04:35:37 PM
Any errors in the error logs. ???
Title: Re: Ad Management mod
Post by: alangnw on August 11, 2009, 03:38:39 AM
I'm trying to get the Ad Manager mod running on my site with a custom theme (Kani). I have tested it on the default theme and it is working so must be installed okay.

I've searched through the forum and can't find a definitive answer that will help me get it into my theme. Previous posts suggest to follow the manual install as described here - http://custom.simplemachines.org/mods/index.php?action=parse

But, when looked through the template file index.template.php and search on the 'find' items the file does not match and many can not be found (though the other template files mention appear to be editable as per the instructions) - which leaves me wondering now where I must place the additional code to get it working?

Thank you in advance for anyone who can offer me help in sorting this out...

<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1.4';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
                  <script language="JavaScript" type="text/javascript" src="'
$settings['theme_url'], '/mootools.js"></script>
                  <script language="JavaScript" type="text/javascript" src="'
$settings['theme_url'], '/menu.js"></script>
                  <script language="JavaScript" type="text/javascript" src="'
$settings['theme_url'], '/main.js"></script>';
echo 
'
</head>
 <body>
  <div id="wrapper"/>
     <div id="head-l">
 <div id="head-r">
  <div id="header">
  <div id="userarea">'
;
if ($context['user']['is_logged'])
{
echo '<b>'$txt['hello_member_ndt'], ' '$context['user']['name'], '</b><br />';

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo $txt[152], ' <a href="'$scripturl'?action=pm">'$context['user']['messages'], ' '$context['user']['messages'] != $txt[153] : $txt[471], '</a>'$txt['newmessages4'], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'] , '.<br />';

echo '<a href="'$scripturl'?action=unread">'$txt['unread_since_visit'], '</a><br /><a href="'$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';

}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo '
'
$txt['welcome_guest'], '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>
  <form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="float:right;margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
     <span class="quick" style="float:right;display: block;">
       <span class="yoo-login">
          <span class="login">
            <span style="float:right;" class="login-button-icon">
         <button value="'
$txt[34], '" name="Submit" type="submit" title="'$txt[34], '"></button>
            </span>
            <span style="float:right;" class="password">
         <input type="password" name="passwrd" size="10" value="Password" onfocus="if(this.value==\'Password\')value=\'\';" onblur="if(this.value==\'\')value=\'Password\';" />
            </span>
            <span style="float:right;" class="username">
         <input type="text" name="user" size="18" alt="' 
$txt[35] , '" value="' $txt[35] , '" onfocus="if(this.value==\'' $txt[35] , '\')value=\'\';" onblur="if(this.value==\'\')value=\'' $txt[35] , '\';" />
            </span>
            <br />
                <input type="hidden" name="hash_passwrd" value="" />
          </span> 
       </span>
    </span>
        </form><br /> '
$context['current_time'],'<br />';
}
echo '
</div>

<a href="'
.$scripturl.'?action=forum" title=""><span id="logo"> </span></a>';
echo '
  </div>  
 </div>
</div>
  <div id="headerim">
<div id="headim-l">
 <div id="headim-r">
      <div id="fancymenu">'
,template_menu(),'
  </div></div></div></div>
  <div id="mainarea">
   <div id="sag">
    <div id="sol">
     <div id="alt">
<div id="altsag">
 <div id="altsol">
  <div id="ust">
   <div id="ustsag">
    <div id="ustsol">'
;
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footerarea">
<span class="smalltext">'
theme_copyright(), '| Theme Kani by <a href="http://www.fussilet.com" target="_blank">Fussilet</a> | Hosted on <a href="http://www.hostmonster.com/track/alangnw" target="_blank">Hostmonster</a> | Site provided by <a href="http://www.scorched-earth.com.com" target="_blank">Scorched Earth</a></span>';

// Show the load time?
if ($context['show_load_time'])
echo '
<p align="center"><span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span></p>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>'
;


  echo '
         </div>
  </div>
       </div>
      </div>
           </div>
          </div>
         </div>
              </div>
             </div><br />'
;


// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>';
echo 
'
 </body>
</html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 0ex; padding-bottom: 0ex; padding-left: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;|&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''logout''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Start of the tab section.
echo '
<ul>'
;

// Show the default [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'home' 'current' '' '"><a href="'$scripturl'">' $txt[103] , '</a></li>';

// Show the [help] button.
echo ($current_action=='help' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'help' 'current' '' '"><a href="'$scripturl'?action=help">' $txt[119] , '</a></li>';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action=='search' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'search' 'current' '' '"><a href="'$scripturl'?action=search">' $txt[182] , '</a></li>';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action=='admin' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'admin' 'current' '' '"><a href="'$scripturl'?action=admin">' $txt[2] , '</a></li>';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action=='profile' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'profile' 'current' '' '"><a href="'$scripturl'?action=profile">' $txt[79] , '</a></li>';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action=='pm' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'pm' 'current' '' '"><a href="'$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a></li>';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action=='calendar' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'calendar' 'current' '' '"><a href="'$scripturl'?action=calendar">' $txt['calendar24'] , '</a></li>';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action=='mlist' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'mlist' 'current' '' '"><a href="'$scripturl'?action=mlist">' $txt[331] , '</a></li>';

// The [login]!
if ($context['user']['is_guest'])
echo ($current_action=='login' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'login' 'current' '' '"><a href="'$scripturl'?action=login">' $txt[34] , '</a></li>';

// the [register] list button
if ($context['user']['is_guest'])
echo ($current_action=='register' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'register' 'current' '' '"><a href="'$scripturl'?action=register">' $txt[97] , '</a></li>';

// the [register] list button
if ($context['user']['is_logged'])
echo ($current_action=='logout' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'logout' 'current' '' '"><a href="'$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a></li>';

echo '</ul>';
}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td ''$newstrip false)
{
global $settings$buttons$context$txt$scripturl;

if($newstrip)
echo '<table cellpadding="0" cellspacing="0"><tr>';

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="maintab_back">'
implode('</td><td class="maintab_back">'$button_strip) , '</td>';

if($newstrip)
echo '</tr></table>';
}


?>
Title: Re: Ad Management mod
Post by: replay on August 11, 2009, 09:02:57 AM
Hi all.

I am using add mod to add banners, so i have my banner on my screen located to the top left, and would like it to have three banners located on the top left, middle, and right of the screen on my smf.

Heres the Htlm code i am using at the moment to display just one located to the left top.

So i need to alter this code to display three.
anyone help.

<p align="left">

<a href="http://www.pulpnightclub.com/"
target="_blank">
<img border="0" src="http://www.pulpnightclub.com/images/pulplogo.jpg"></a></p>
Title: Re: Ad Management mod
Post by: Bigguy on August 11, 2009, 11:59:56 AM
@ alangnw: The only way to come close to the right spots in a custom theme is to compare the index.template of your custom theme with the default index.template file.  Find the spots in the default template and search for the code that is around that spot in the custom theme. So if your looking for a:

<td>

That is not there in the custom template, find it in the default and look at the code just above that or below it and search for that in the custom template. Then its just a matter of seeing if it works when uploaded. Always keep a copy of the original template files just in case your edits don't work. Hope that helps a bit.

@ replay: Would you not just change this:

<p align="left">

to this:

<p align="right">

and this:

<p align="center">

Alternatively if you put 3 ads up in the same spot they will rotate on page refresh. :)
Title: Re: Ad Management mod
Post by: replay on August 11, 2009, 01:33:53 PM
sorry i dont think you fully understand what i mean!

I want to display three banners on the screen at the same time, from left, centre, and right !

I have seen the code to do this some where on here, but i cannot find it anymore, shame really.

Hope you can help buddy!

Cheers
Title: Re: Ad Management mod
Post by: collins465 on August 11, 2009, 02:39:09 PM
please i need help here http://www.simplemachines.org/community/index.php?topic=330027.0

your help will be highly appreciated

thanks
Title: Re: Ad Management mod
Post by: ScottDB on August 11, 2009, 07:36:32 PM
got this working on all my other themes, thanks to reading stuff on this post, but having problems with this one. I'm sure I followed the edits right but instead of the add poping up I get a strange glitch in the header. Pic. included in attachments. The theme is called Gladiatus. I am running 2.0 rc1.2 with SP 2.2.2
Title: Re: Ad Management mod
Post by: Bigguy on August 11, 2009, 09:02:18 PM
@ replay: Why couldn't you put it all in one window in a

<td><tr><p align="center">adcode</center><p align="right">adcode</right><p align="left">adcode</left></tr></td>

That's just very sloppy but something like that might work.

@ collins465: Seems you are getting help in the other thread. The ad mod has spots on the left and right for vertical ads so basically if you would use it you would have to find php code to vertically align the links in those two sections.

@ ScottDB: either this is a bug that is still in the most recent version of Ad mod OR when you put the edits in you forgot something or left it out. If you manually installed please check your edits again.
Title: Re: Ad Management mod
Post by: collins465 on August 12, 2009, 06:18:16 AM
Quote@ collins465: Seems you are getting help in the other thread. The ad mod has spots on the left and right for vertical ads so basically if you would use it you would have to find php code to vertically align the links in those two sections.

Nobody has practically told me what to do. please if you dont mind can you help me out on how to go about it or the php codes to add in other for it to appear in the recent topics section which i specified.

thanks.
Title: Re: Ad Management mod
Post by: Bigguy on August 12, 2009, 07:45:14 AM
Search for this on Google:

php vertically align

See if that helps at all. It should yield some results.
Title: Re: Ad Management mod
Post by: collins465 on August 12, 2009, 08:07:15 AM
ok, i will do as you said. is just that i am a newbie in php.
Title: Re: Ad Management mod
Post by: Bigguy on August 12, 2009, 08:18:18 AM
We are here to help you learn. See what you can do and when I come home from work if you haven't gotten it then I will give it a shot. :)

EDIT: In the ad mod you do NOT need the php tags with the code just the rest of it.
Title: Re: Ad Management mod
Post by: ScottDB on August 12, 2009, 10:44:03 AM
I've rechecked my edits then deleted the theme, then reinstalled and ran edits again. I know how to edit it. I have gotten all my other themes to work and even had to check a couple of them against the default to find where to place the code because the theme was a little different and got them to work. I think it might be a theme problem, not sure. Or like you say a bug in the add mod.
Title: Re: Ad Management mod
Post by: collins465 on August 12, 2009, 11:20:57 AM
Quote from: Bigguy on August 12, 2009, 08:18:18 AM
We are here to help you learn. See what you can do and when I come home from work if you haven't gotten it then I will give it a shot. :)

EDIT: In the ad mod you do NOT need the php tags with the code just the rest of it.

i will say the truth, i dont know anything about php, but trying to learn. i will wait for you to come back from work.  thanks for your concern.
Title: Re: Ad Management mod
Post by: bustedupcowgirl on August 12, 2009, 11:47:57 AM
I did skim this topic and did not find an answer to my question, but will admit, I have not read every post...

When I installed this mod I had more boards than I do now. Since I deleted some I can't get this to work properly.

Example: An ad I had on before was located on board #11. It's now on #7 but if I change it to #7 it does not work....it still works marked as #11.

I can't get any of the ad's to show up now after this board and I have 15 more. I've tried staying with the original line up of boards...calling board #20 let's say 25, and I've tried it the correct way. Still nothing.

How can I correct this and get it right since I have deleted some of my boards?

I love this MOD BTW :)

Title: Re: Ad Management mod
Post by: Bigguy on August 12, 2009, 12:43:02 PM
Are you using the latest version of the mod. are there errors in the error logs in the admin panel. ???
Title: Re: Ad Management mod
Post by: bustedupcowgirl on August 12, 2009, 12:56:24 PM
Well, I see there was an update July 21st.....I've probably had it installed for 3 months, so maybe not.

I'll try to add an ad and then check the error log. Thanks for the tip.
Title: Re: Ad Management mod
Post by: replay on August 12, 2009, 01:14:41 PM
i was really looking for the code i supplied to be changed so i can just insert the code to display them, like i said before i have seen this code somewhere, but cannot find it anymore.

Please dont forget that these banners have links to them as well!

Cheers guys
Title: Re: Ad Management mod
Post by: ScottDB on August 12, 2009, 05:28:14 PM
OK, I've edited about two dozen templates now and I can get it to work with most. I keep on getting the same error message every time I can't get it to work. I've tried to edit this template in about 3 different ways. If I can figure out what I'm doing wrong on this one I think I can figure out what I've been doing wrong on the rest. The problem is always with my index.template. Can someone look over the template and tell me where I'm going wrong. Included is the original template for the theme and the edited one. I would really like to learn what I am doing wrong here. The edited one is on top. The theme is: tabs-silver-side.                                                                                    
Title: Re: Ad Management mod
Post by: collins465 on August 12, 2009, 06:54:53 PM
please sir, am still waiting. thanks
Title: Re: Ad Management mod
Post by: vanquizhers on August 13, 2009, 11:56:37 AM
Hi bro, I want to ask some questions,
why I always error when parse : template_menu(); in index.template.php
there's only ',template_menu(),'
when I replace it with :

Quotetemplate_menu();

   //Below the menu ads
   if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
   {
      $ads = show_indexAds();   
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);

      //Tower left Ads
      $ads = show_towerleftAds();
      if(!empty($ads))
         echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

      unset($ads);
      //Tower Right Ads
      $ads = show_towerrightAds();   
      if(!empty($ads))
         echo '<table><tr><td width="100%" valign="top">';
      unset($ads);
   }   

I'm getting error,
and I use SMF 1.1.10 and Outline Theme by DzinerStudio... Thanks..  :)
Title: Re: Ad Management mod
Post by: claysportsonline on August 13, 2009, 12:40:34 PM
Hey BigGuy:

I have searched through this thread to no avail.  I am really stuck. I am running smfads v2.3, SMF 1.10 with a slightly modified Classic YAbb SE theme.  I am trying to have skyscraper ads on the right.  The ad code (it's just one ad)is this...
<a href="http://www.pmsfirearms.com"_blank">
<img src="http://i22.photobucket.com/albums/b306/carolinn4733/PMS.jpg" width="200" height="200" border="0" alt="PMS Firearms Gunfitting & Gunsmithing"/></a>

No ads shows up on the forum at all.  When i click on the parse for my version of SMF, the site says it is not supported.  Are the ads (ad) behind the width of the forum?  Can you help?
Thanks in advance-
CP Woody
Title: Re: Ad Management mod
Post by: TheThriftyMama on August 13, 2009, 02:01:59 PM
I'm having the same issues as the previous poster.  I ask the mod to put the ad at the bottom of my site, and it still shows at the top.  It won't let me do side skyscrapers either.  Do I need to edit something in the PHP?  I'm using Orangeline as my theme, so I think that may be affecting it.  Totally newb to php (I'm a blogger, new to forums), so any advice would be great! Thanks!
Title: Re: Ad Management mod
Post by: Bigguy on August 14, 2009, 09:24:34 AM
@ vanquizhers: Can you upload you template file WITH THE CODE IN IT and I will take a look at it.

@ claysportsonline: Same as above leave the code in the template and upload it I will check it over.
Title: Re: Ad Management mod
Post by: kkattfish on August 14, 2009, 12:36:44 PM
Quote from: eflat2130 on August 03, 2009, 03:05:47 PM
everytime I try to add an ad it makes it double? Please help..

I'm having this same issue.  Can you let me know what i should be looking for that is doubled in the index.template.php please. 

Thank you,


edit:  found it, this is what was duplicated.  i deleted one of the entries and it now shows only once.



//Display ads on the top of the page
   if (function_exists("show_topofpageAds"))
   {
      $ads = show_topofpageAds();
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);
   }
Title: Re: Ad Management mod
Post by: collins465 on August 14, 2009, 01:41:18 PM
Quote from: Bigguy on August 12, 2009, 08:18:18 AM
We are here to help you learn. See what you can do and when I come home from work if you haven't gotten it then I will give it a shot. :)

EDIT: In the ad mod you do NOT need the php tags with the code just the rest of it.

sir please am sorry if i was rude in any way, is just that i am somehow desperate. i have been waiting since then, i pray you will come to my aid very soon.
Title: Re: Ad Management mod
Post by: docprego on August 15, 2009, 04:14:28 AM
Bigguy thanks for checking over my file.  Even though you found no errors I still cannot get this mod to work and it must be due to index.template.php.  I am attaching my current index.template.php file which has a few other edits I have done which are working fine.

If you or anyone could help me to get this file edited properly it would be greatly appreciated.

I am running SMF 1.1.10.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 15, 2009, 02:16:12 PM
Thanks for the great mod it has a few issues though, I will address them 1 at a time.

Getting error in the error log when viewing "ads in childboard" option.

Quote
http://www.requestiso.com/index.php?board=2.0
2: sprintf() [<a href='function.sprintf'>function.sprintf</a>]: Too few arguments
File: /******/*****/public_html/Themes/default/MessageIndex.template.php
Line: 86

Any Ideas?
Thanks in Advanced.
Title: Re: Ad Management mod
Post by: Bigguy on August 15, 2009, 02:20:41 PM
I have been trying this template and I can't seem to get it. I'm sorry but I did try. What theme is this from. ???
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 15, 2009, 02:51:55 PM
SteelV theme
http://custom.simplemachines.org/themes/index.php?lemma=1226

I have been waiting to use this mod for a while now, now its for RC1/-1/.2 i can finally use it, just having a few issues, like the error and display ad on top of every page not working, I did a few manual edits only, im sure i did them right, I manually edited:

boardindex.template.php
Display.template.php
index.template.php
Title: Re: Ad Management mod
Post by: docprego on August 15, 2009, 09:50:19 PM
Quote from: Bigguy on August 15, 2009, 02:20:41 PM
I have been trying this template and I can't seem to get it. I'm sorry but I did try. What theme is this from. ???

I'm not sure who you were asking, but if it was me the theme is called Red FS.

Thank you very much for your time.
Title: Re: Ad Management mod
Post by: ArkServer on August 16, 2009, 01:21:39 PM
Hi does anyone know how to add the sidebar ads in the ds natural template? Ive uploaded it here just in case thanks!
Title: Re: Ad Management mod
Post by: fff on August 16, 2009, 06:59:35 PM
I manually installed this mod at my 1.1.9 forum http://www.ptcinformation.com/ on my maistrafego theme. I tried a couple of times to add ads but they don't show at my forum. They show only if i add them to board index and they show only to me, not to the other members. How can I solve this problem?
Title: Re: Ad Management mod
Post by: Bigguy on August 18, 2009, 07:00:22 AM
Check permissions for ads. ;)
Title: Re: Ad Management mod
Post by: crustybum on August 18, 2009, 07:58:38 AM
Installed this a while back and installed everything twice, ie i get this in admin

ADS1    Modify
ADS2    Modify
ADS1    Modify
ADS2    Modify

and the actual ads are duplicated too, what do i need to modify?

Chris

Chris
Title: Re: Ad Management mod
Post by: Bigguy on August 18, 2009, 08:00:10 AM
Go through the template files and remove the duplicate code. You might also have to check the index.php file in the root of your SMF install.
Title: Re: Ad Management mod
Post by: fff on August 18, 2009, 06:03:35 PM
Quote from: Bigguy on August 18, 2009, 07:00:22 AM
Check permissions for ads. ;)
i solved only the second problem. Now the ads show to all members of the forum.  :)
But they show only at board index, between posts and between categories. :(
How can i solve this problem?
Title: Re: Ad Management mod
Post by: Bigguy on August 18, 2009, 08:19:30 PM
You are using a custom theme right. If so, you have to manually edit the template files that ARE in your custom theme folder. Just the template files that are there that the ad mod edits in the default theme. You can use the parser to find out what template files need to be edited.
Title: Re: Ad Management mod
Post by: Immortalq on August 20, 2009, 08:04:37 AM
Quote from: Immortalq on July 30, 2009, 05:52:27 AM
Quote from: Immortalq on July 27, 2009, 08:36:16 AM
Quote from: Immortalq on July 21, 2009, 03:09:27 PM
Quote from: Immortalq on July 19, 2009, 08:07:35 PM
Ive installed Ad Management and i have problem with theme footer. I'm using Outline theme. Whole problem is:

Quote
Firstly - i know that i should post this on theme authors forum - which i did, but unfortunately i can't get support there (nobody replied for almost 36h now) and i really need to fix this. :(

Well i have installed latest AD Management with SMF 2.0 RC1-1. I'm using Outline style (just the blue version of it). After installing mod, it kinda screwed my footer, it looks like this:

(http://h.imagehost.org/t/0266/err1.jpg) (http://h.imagehost.org/view/0266/err1)

Ive set "display ads between posts (every 3)", it look ok on main page, topic page.

How to fix this? Please, help.

Firstly i thought it was a problem with theme, but after talking with support here (http://www.simplemachines.org/community/index.php?topic=324863.0) it's obvious that'sa mod - coding problem. Could you help me please? Attached my index.template.

Anybody? Help would be appreciated.

Still waiting for some support it's been now 8 days since i wrote this. :(

Really....what's the point of writing the mod if you don't give support for it / update it / fix it. :/ Almost 2 weeks passed now, and i still can get answer / help to my problem here. Which for anybody would be at best a big disappointment.

Over a month now... I'm starting to think, that support here doesnt exist. Now i understand why people pay for Vbulletin or IPB, coz support is there, even for mods.
Title: Re: Ad Management mod
Post by: Bigguy on August 20, 2009, 09:42:52 PM
Well, I am only one person. As a matter of fact I am the only one giving support for this mod. I do have a life and a couple support sites of my own that I am tending to, plus two jobs and kids. I try to answer all questions. Sometimes it might take a bit. If you could find me more time in the day then I might be able to get every single question answered.  Support has always been here for this mod and any other support I can give for anything else for that matter.
Title: Re: Ad Management mod
Post by: Immortalq on August 21, 2009, 07:51:20 AM
Quote from: Bigguy on August 20, 2009, 09:42:52 PM
Well, I am only one person. As a matter of fact I am the only one giving support for this mod. I do have a life and a couple support sites of my own that I am tending to, plus two jobs and kids. I try to answer all questions. Sometimes it might take a bit. If you could find me more time in the day then I might be able to get every single question answered.  Support has always been here for this mod and any other support I can give for anything else for that matter.

I understand what you said and i really appreciate that youre giving support for free. But then again, we all have a real life, job, kids (in my case) and other things which we have to do on regular basis. I've just asked for support and i didnt want it "now" i've patiently waited, but lets be honest, a month to get support is a "bit" long don't you think? And what is most important here i still didn't get answer to my problem - support. I really willbe greatfull if you can help me.
Title: Re: Ad Management mod
Post by: Bigguy on August 21, 2009, 07:51:57 PM
Ok what was the question and I will see what I can do if your around tonight. I should be around tomorrow as well cause I have no work or nothing. I am here to help and sorry if it sounded as though I was mad or anything. Just trying to keep up with it all is a bit to much sometimes. We'll get ya looked after. ;)
Title: Re: Ad Management mod
Post by: Immortalq on August 22, 2009, 11:51:34 AM
Original post with index.template as attachment is here:

http://www.simplemachines.org/community/index.php?topic=68632.msg2167397#msg2167397

Thank you.
Title: Re: Ad Management mod
Post by: Bigguy on August 22, 2009, 12:06:13 PM
What templates are in your custom theme. ???
Title: Re: Ad Management mod
Post by: isl30fvi3w on August 22, 2009, 03:09:23 PM
hello,

Just posting my request if this is possible, Can you add a feature that will make this mod work like the AD REVENUE SHARING mod? There's a mod but it's currently compatible for SMF 1.1.9 and the author is not updating the mod. Is it possible for this feature to be integrated with AD MANAGEMENT MOD?
Title: Re: Ad Management mod
Post by: Immortalq on August 22, 2009, 07:28:38 PM
Quote from: Bigguy on August 22, 2009, 12:06:13 PM
What templates are in your custom theme. ???

Only index.template, nothing more. It uses the rest from default theme.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 22, 2009, 07:42:59 PM
Quote from: isl30fvi3w on August 22, 2009, 03:09:23 PM
hello,

Just posting my request if this is possible, Can you add a feature that will make this mod work like the AD REVENUE SHARING mod? There's a mod but it's currently compatible for SMF 1.1.9 and the author is not updating the mod. Is it possible for this feature to be integrated with AD MANAGEMENT MOD?

not really nessesary, using the HTML tags you could just add you adsense code to a post easily

[html]
Your
Google
Adsense
Code
[/html]


you could even use that in a signature, providing you let them use enough characters in the signature
Title: Re: Ad Management mod
Post by: Aslancito on August 22, 2009, 08:19:27 PM
Okay... i cant not read all posts... Ad works fine, but it can be seen withot default theme.. what can i do??
Title: Re: Ad Management mod
Post by: ScottDB on August 23, 2009, 07:18:21 PM
Hi, I have a problem with a gray bar showing up in my header area every time I try and install this mod. I have tried to edit it I don't know how many times. I have a feeling I have narrowed it down to two different areas that I am not sure about.

In the index.template there is a edit for echo '
         </div>


In My custom theme it shows the code like this



echo'

                            </div>

                            </div>

                </div>

            </div>';

I have been trying to put it after the first </div>. Would this make the graybar show accross the top in the header area. Pic. included
Title: Re: Ad Management mod
Post by: fff on August 24, 2009, 04:37:34 AM
Firstly when i inserted my two banners at the botton of the site, the first banner was next to the second banner ( in the same line).
Then I inserted other four banners.
Now second banner is under the first .the third banner is under the second. the fourth banner is under the third.
Take a look at my site http://www.ptcinformation.com
How to make my banners to be in the same line?
BTW I tried to lawer the width of the banners but the result is the same (They dont show in one line)
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 24, 2009, 01:03:12 PM
Quote from: fff on August 24, 2009, 04:37:34 AM
Firstly when i inserted my two banners at the botton of the site, the first banner was next to the second banner ( in the same line).
Then I inserted other four banners.
Now second banner is under the first .the third banner is under the second. the fourth banner is under the third.
Take a look at my site http://www.ptcinformation.com
How to make my banners to be in the same line?
BTW I tried to lawer the width of the banners but the result is the same (They dont show in one line)

adding a linespace ( <br /> ) between that should make them go one below the other

if you want them all in one line, add them all to the same ad box without adding any spaces between either one

also consider centering the ads, add <center> to top and </center> to bottom of the ad box
Title: Re: Ad Management mod
Post by: Bigguy on August 25, 2009, 05:06:53 PM
@ isl30fvi3w: I am not the mod author you will have to PM or email him.

@ Immortalq: Ok I will try again here but you might have to go to the mod author for these edits if I can't get it.

@ Aslancito: Not sure what you mean...and why can't you see all the posts. ???

@ ScottDB: No it shouldn't. See if the ad mod does any .css edits.

@ fff: I think it looks good like that....or did you get this solved. ???

@ johncccccc: Thanks for the help. Any and all is appreciated. ;)
Title: Re: Ad Management mod
Post by: narayanan on August 25, 2009, 10:22:18 PM
IS there any way to add Adbrite code,before and after every post.
Title: Re: Ad Management mod
Post by: plusev on August 26, 2009, 06:34:13 PM
Installed the mod on 2 rc1.2 with custom theme - got a few errors which I did the manual edits for on the default display.template.php. Couldn't do the edits on the index.template for my customs theme as there wasn't even anything close to what was recommended - simply didn't exist. Seems to be working fine other than when I use "Display ads after the last post" it put the ad before all the posts and snaps off the following errors:

8: Undefined variable: message
File: //Themes/default/Display.template.php
Line: 379  ==>379:    <div class="post" id="msg_', $message['id'], '"', '>

8: Undefined variable: reply_button
File: //Themes/default/Display.template.php
Line: 374  ==>374:    <li>', $reply_button, '</li>';

8: Undefined variable: message
File: //Themes/default/Display.template.php
Line: 359  ==>359:    <div id="msg_', $message['id'], '_quick_mod">&nbsp;</div>

8: Undefined variable: adcounter
File: //Themes/default/Display.template.php
Line: 341  ==>341:    if(($adpost = show_lastpostAds()) && !show_posts($adcounter))

Attached is my display.template.php if that will help.

Thx much





Title: Re: Ad Management mod
Post by: alangnw on August 27, 2009, 05:39:27 AM
I'm trying to get the Ad Manager mod running on my site with a custom theme (Kani). I have tested it on the default theme and it is working so must be installed okay.

I've searched through the forum and can't find a definitive answer that will help me get it into my theme. Previous posts suggest to follow the manual install as described here - http://custom.simplemachines.org/mods/index.php?action=parse

But, when looked through the template file index.template.php and search on the 'find' items the file does not match and many can not be found (though the other template files mention appear to be editable as per the instructions) - which leaves me wondering now where I must place the additional code to get it working?

Thank you in advance for anyone who can offer me help in sorting this out...

<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1.4';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
                  <script language="JavaScript" type="text/javascript" src="'
$settings['theme_url'], '/mootools.js"></script>
                  <script language="JavaScript" type="text/javascript" src="'
$settings['theme_url'], '/menu.js"></script>
                  <script language="JavaScript" type="text/javascript" src="'
$settings['theme_url'], '/main.js"></script>';
echo 
'
</head>
 <body>
  <div id="wrapper"/>
     <div id="head-l">
 <div id="head-r">
  <div id="header">
  <div id="userarea">'
;
if ($context['user']['is_logged'])
{
echo '<b>'$txt['hello_member_ndt'], ' '$context['user']['name'], '</b><br />';

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo $txt[152], ' <a href="'$scripturl'?action=pm">'$context['user']['messages'], ' '$context['user']['messages'] != $txt[153] : $txt[471], '</a>'$txt['newmessages4'], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'] , '.<br />';

echo '<a href="'$scripturl'?action=unread">'$txt['unread_since_visit'], '</a><br /><a href="'$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';

}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo '
'
$txt['welcome_guest'], '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>
  <form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="float:right;margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
     <span class="quick" style="float:right;display: block;">
       <span class="yoo-login">
          <span class="login">
            <span style="float:right;" class="login-button-icon">
         <button value="'
$txt[34], '" name="Submit" type="submit" title="'$txt[34], '"></button>
            </span>
            <span style="float:right;" class="password">
         <input type="password" name="passwrd" size="10" value="Password" onfocus="if(this.value==\'Password\')value=\'\';" onblur="if(this.value==\'\')value=\'Password\';" />
            </span>
            <span style="float:right;" class="username">
         <input type="text" name="user" size="18" alt="' 
$txt[35] , '" value="' $txt[35] , '" onfocus="if(this.value==\'' $txt[35] , '\')value=\'\';" onblur="if(this.value==\'\')value=\'' $txt[35] , '\';" />
            </span>
            <br />
                <input type="hidden" name="hash_passwrd" value="" />
          </span> 
       </span>
    </span>
        </form><br /> '
$context['current_time'],'<br />';
}
echo '
</div>

<a href="'
.$scripturl.'?action=forum" title=""><span id="logo"> </span></a>';
echo '
  </div>  
 </div>
</div>
  <div id="headerim">
<div id="headim-l">
 <div id="headim-r">
      <div id="fancymenu">'
,template_menu(),'
  </div></div></div></div>
  <div id="mainarea">
   <div id="sag">
    <div id="sol">
     <div id="alt">
<div id="altsag">
 <div id="altsol">
  <div id="ust">
   <div id="ustsag">
    <div id="ustsol">'
;
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footerarea">
<span class="smalltext">'
theme_copyright(), '| Theme Kani by <a href="http://www.fussilet.com" target="_blank">Fussilet</a> | Hosted on <a href="http://www.hostmonster.com/track/alangnw" target="_blank">Hostmonster</a> | Site provided by <a href="http://www.scorched-earth.com.com" target="_blank">Scorched Earth</a></span>';

// Show the load time?
if ($context['show_load_time'])
echo '
<p align="center"><span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span></p>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>'
;


  echo '
         </div>
  </div>
       </div>
      </div>
           </div>
          </div>
         </div>
              </div>
             </div><br />'
;


// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>';
echo 
'
 </body>
</html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 0ex; padding-bottom: 0ex; padding-left: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;|&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''logout''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Start of the tab section.
echo '
<ul>'
;

// Show the default [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'home' 'current' '' '"><a href="'$scripturl'">' $txt[103] , '</a></li>';

// Show the [help] button.
echo ($current_action=='help' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'help' 'current' '' '"><a href="'$scripturl'?action=help">' $txt[119] , '</a></li>';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action=='search' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'search' 'current' '' '"><a href="'$scripturl'?action=search">' $txt[182] , '</a></li>';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action=='admin' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'admin' 'current' '' '"><a href="'$scripturl'?action=admin">' $txt[2] , '</a></li>';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action=='profile' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'profile' 'current' '' '"><a href="'$scripturl'?action=profile">' $txt[79] , '</a></li>';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action=='pm' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'pm' 'current' '' '"><a href="'$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a></li>';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action=='calendar' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'calendar' 'current' '' '"><a href="'$scripturl'?action=calendar">' $txt['calendar24'] , '</a></li>';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action=='mlist' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'mlist' 'current' '' '"><a href="'$scripturl'?action=mlist">' $txt[331] , '</a></li>';

// The [login]!
if ($context['user']['is_guest'])
echo ($current_action=='login' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'login' 'current' '' '"><a href="'$scripturl'?action=login">' $txt[34] , '</a></li>';

// the [register] list button
if ($context['user']['is_guest'])
echo ($current_action=='register' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'register' 'current' '' '"><a href="'$scripturl'?action=register">' $txt[97] , '</a></li>';

// the [register] list button
if ($context['user']['is_logged'])
echo ($current_action=='logout' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'logout' 'current' '' '"><a href="'$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a></li>';

echo '</ul>';
}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td ''$newstrip false)
{
global $settings$buttons$context$txt$scripturl;

if($newstrip)
echo '<table cellpadding="0" cellspacing="0"><tr>';

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="maintab_back">'
implode('</td><td class="maintab_back">'$button_strip) , '</td>';

if($newstrip)
echo '</tr></table>';
}


?>
Title: Re: Ad Management mod
Post by: the_shadow on August 27, 2009, 11:47:41 AM
in my forum the add doesn't show up....neither in default...

i've just unninstall but is the same

someone knows what happens???

thnkx
Title: Re: Ad Management mod
Post by: ardhie on August 28, 2009, 04:57:35 AM
google adsense >:(
Title: Re: Ad Management mod
Post by: Hélène on August 28, 2009, 07:31:38 AM
Bonjour,

J'ai placé le fichier renommé ou non, puisque l'erreur indique tout le temps Ads.french-utf8, dans les dossiers.....Aucun ne fonctionne

Merci d'avance des aides
Title: Re: Ad Management mod
Post by: MultiformeIngegno on August 28, 2009, 12:24:45 PM
Quote from: Bigguy on August 25, 2009, 05:06:53 PM
@ ScottDB: No it shouldn't. See if the ad mod does any .css edits.
I've the same problem, but with the default theme!!
Title: Re: Ad Management mod
Post by: John Kitchens on August 28, 2009, 03:20:47 PM
Hello Guys,

I have the Ad Management software working on my site.

I changed my template to the "Analysis" template and now my ads aren't showing up.

Can someone please help figure out what I need to do in order to get the ads back going on my forum.

Thank you very much.
Title: Re: Ad Management mod
Post by: Hélène on August 29, 2009, 03:42:35 AM
Quoteaprès si on utilise des thèmes persos, il faut y mettre les modifs des thèmes faites par le mod...sinon ca ne fonctionne pas pour ce thème

désolée c'est en français, la traduction n'est pas véidente en anglais, mais voilà ce qu'on vient de me répondre sur le forum français

j'en arrive à croire qu'il ne faut utiliser que le thème par défaut...........................................!!!!
Title: Re: Ad Management mod
Post by: ScottDB on August 30, 2009, 01:00:21 PM
Quote@ ScottDB: No it shouldn't. See if the ad mod does any .css edits.
OK, I'm a little confused. Did you mean to say see if the add mod did anything to my css or see if the creator of the add mod could do any css edits? Thought you were the creator of the ad mod?
Title: Re: Ad Management mod
Post by: bdewong on August 31, 2009, 02:50:26 PM
I believe there is a bug in the install.xml file. In this section, I believe that the last closing "div" shouldn't be there.
Quote<file name="$themedir/Display.template.php">
   <operation>
      <search position="before"><![CDATA[global $context, $settings, $options, $txt, $scripturl, $modSettings;]]></search>
...

if(function_exists("show_lastpostAds") && function_exists("show_posts"))
{
   if(($adpost = show_lastpostAds()) && !show_posts($adcounter))
   {
      if($modSettings['ads_lookLikePosts'])
      {
         echo '
         <div class="bordercolor">
            <div class="clearfix windowbg3 largepadding">';
   
         // Show information about the poster of this message.
         echo '
               <div class="floatleft poster">
                  <h4>', $context['forum_name'], '</h4>';
   
         // Done with the information about the poster... on to the post itself.
         echo '
               </div>
               <div class="postarea">
                  <div class="keyinfo">&nbsp;
                     <div id="msg_', $message['id'], '_quick_mod">&nbsp;</div>
                  </div>';
   
         // If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
         echo '
                  <ul class="smalltext postingbuttons">';
   
         // Can they reply? Have they turned on quick reply?
         if ($context['can_reply'] && !empty($options['display_quick_reply']))
            echo '
                     <li>', $reply_button, '</li>';
   
         // So... quick reply is off, but they *can* reply?
         elseif ($context['can_reply'])
            echo '
                     <li>', $reply_button, '</li>';
   
         // Show the post itself, finally!
         echo '
                  </ul>
                  <div class="post" id="msg_', $message['id'], '"', '>
                     ', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'

               </div>
            </div>
         </div>';
      }
      else
         echo '
            <div class="bordercolor">
               <div class="clearfix windowbg3 largepadding">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>
            </div>';
   }
}
echo '</div>';]]>
</add>
</operation>
</file>
Title: Re: Ad Management mod
Post by: temii on September 01, 2009, 07:01:36 AM
 Hello,I hav problem with the ads manager i just installed.I cant find it under configuration in my forum.Im using the latest version of smf(1.1.10).Im seriously worried,I need help urgently.
Title: Re: Ad Management mod
Post by: MultiformeIngegno on September 01, 2009, 07:21:44 AM
I think bdewong is right!
Title: Re: Ad Management mod
Post by: the_shadow on September 01, 2009, 09:35:54 AM
hello ppl

i've installed this mod but the adds doesn't show in my forum... i try uninstall but it's missing something in Display.template

then i try add the missing part and says

Find: [Select]

</div>';
}


Replace With: [Select]

</div>';
if (function_exists("show_posts"))
{
if ($adpost = show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="bordercolor">
<div class="clearfix windowbg3 largepadding">';

// Show information about the poster of this message.
echo '
<div class="floatleft poster">
<h4>', $context['forum_name'], '</h4>';

// Done with the information about the poster... on to the post itself.
echo '
</div>
<div class="postarea">
<div class="keyinfo">
<h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>
<div class="smalltext">« <strong>', !empty($message['counter']) ? $txt['reply'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' »</div>
<div id="msg_', $message['id'], '_quick_mod"></div>
</div>';

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
echo '
<ul class="smalltext postingbuttons">';

// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li>', $reply_button, '</li>';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<li>', $reply_button, '</li>';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<li>', $modify_button, '</li>';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<li>', $remove_button, '</li>';

// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
<li>', $split_button, '</li>';

// Can we restore topics?
if ($context['can_restore_msg'])
echo '
<li>', $restore_message_button, '</li>';

// Show the post itself, finally!
echo '
</ul>
<div class="post" id="msg_', $message['id'], '"', '>
', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'
</div>

</div>
</div>
</div>';
}
else
echo '
<div class="bordercolor">
<div class="clearfix windowbg3 largepadding">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>
</div>';
}
}
}

if(function_exists("show_lastpostAds") && function_exists("show_posts"))
{
if(($adpost = show_lastpostAds()) && !show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="bordercolor">
<div class="clearfix windowbg3 largepadding">';

// Show information about the poster of this message.
echo '
<div class="floatleft poster">
<h4>', $context['forum_name'], '</h4>';

// Done with the information about the poster... on to the post itself.
echo '
</div>
<div class="postarea">
<div class="keyinfo">&nbsp;
<div id="msg_', $message['id'], '_quick_mod">&nbsp;</div>
</div>';

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
echo '
<ul class="smalltext postingbuttons">';

// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li>', $reply_button, '</li>';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<li>', $reply_button, '</li>';

// Show the post itself, finally!
echo '
</ul>
<div class="post" id="msg_', $message['id'], '"', '>
', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'

</div>
</div>
</div>';
}
else
echo '
<div class="bordercolor">
<div class="clearfix windowbg3 largepadding">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>
</div>';
}
}
echo '</div>';


and i find 6 matches in my Display.template for


</div>';
}


i'll leave where my display.template for someone see if can help me

thnkx ppl
Title: Re: Ad Management mod
Post by: temii on September 01, 2009, 10:18:46 AM
let someone help,ive installed ads manager but i cant find it under configuration.
Title: Re: Ad Management mod
Post by: John Kitchens on September 01, 2009, 10:37:58 AM
Hello Temii,

Try this: Go to server settings in your admin control panel and change the default forum language to "English".

After you do that it should then say Ad Management under Configuration.

John Kitchens
Title: Re: Ad Management mod
Post by: temii on September 01, 2009, 11:42:24 AM
oh this is great ive seen it thankx folks.
Title: Re: Ad Management mod
Post by: John Kitchens on September 01, 2009, 02:04:43 PM
Hello Everyone!

Well I made a post the other day, and I didn't get a reply. I am not complaining!

I have the ad mod working on my default template, but I downloaded the Analysis template and couldn't make it work.

I read and read and read some more and knew I had to manually edit some files, but I didn't know HOW to do it.

I kept reading post after post from Bigguy where he talked about the Parser. I didn't know what a parser was, but finally I figured it out!!!!!!!

So if any of you are having trouble getting your ads to work on any template besides the default template use the parser like bigguy tells us to.

Now if you were like me and didn't know what or where the parser is located I am going to tell you now. For those that think I am an idiot for not knowing so be it. I am a happy idiot because I am finally finished with this project!

The Parser can be found on this page: http://mods.simplemachines.org/index.php?mod=255

You will see "Manual Install Instructions for SMF" from the dropdown choose your version and select (that's right) Parse.

For the Analysis template all I had to edit was the index.template.php file. The parser told me what to look for and what to add.

It worked the very first time after I added the correct code.

Thanks to Jerm for creating the ad module and thanks to BigGuy for helping so many others, and myself, through your many posts.

John Kitchens
Title: Re: Ad Management mod
Post by: Smitten on September 02, 2009, 01:19:10 AM
I have a problem with Kani Theme in the display.template and index.template.

I give you the files, can yo do it? thanks for all genius!
Title: Re: Ad Management mod
Post by: BAMAVAMP on September 02, 2009, 02:01:52 PM
Thank you John. We changed templates about a week ago and found that the AM mod was not working for us...we are gonna try what was suggested about manually coding the index.template and hope it works out for us too!
Title: Re: Ad Management mod
Post by: BAMAVAMP on September 03, 2009, 12:54:41 AM
I have read over pages of this mod and I know where my forum is not reading it correctly. We are using a theme called BackNBlack..and I cannot for the life of me figure out where to put the code for the boardindex.template file for this theme. I have about 20 places in the file where it says echo' but none where it says echo' </div> like the parse instructions ask for.
And yes I did compare the boardindex file of the default theme with the boardindex of the theme we are using and it helps none cause the information is all in different places.

We are running SMF 1.1.10 and these are the parse instructions that I am having problems with, and I have attached the boardindex file for the theme we are using.
Thanks to anyone who can help out!

Quote./Themes/default/BoardIndex.template.php

Find: [Select]

      echo '
   </div>';

Add After: [Select]


   //Display ads Between cats
   if (function_exists("show_category"))
   {
      $ads = show_category($category['id']);
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);
   }

Title: Re: Ad Management mod
Post by: adamspt2 on September 03, 2009, 09:05:15 AM
I'm using SMF 2.0 RC 1.2 which may be the problem. I've got an ad at the top of my boards and another one at the bottom. For some reason, it runs each ad twice so I wind up with two ads stacked on top of each other, then the boards, then two ads stacked on top of each other at the bottom. Any suggestions? So far I have uninstalled and reinstalled the mod; I've also deleted all my ads and recreated them. I am using the SimplePortal mod as well.

Title: Re: Ad Management mod
Post by: John Kitchens on September 03, 2009, 11:59:50 AM
Hey BAMAVAMP,

I can feel your pain. Honestly I can, the Analysis template didn't have a boardindex.template file that I had to modify. I only had to modify the index.template file for my new template.

I wish I knew what to tell you. I would help you if I could, but I just don't know.

John Kitchens
Title: Re: Ad Management mod
Post by: neo2504 on September 03, 2009, 02:12:13 PM
I've installed the mod but when I'm trying tu put an ad I got this error:
QuoteParse error: syntax error, unexpected '<' in /membri/manimen/Sources/Load.php(2245) : eval()'d code(17) : eval()'d code on line 1

I've checked on this string and I got this:
Quote// Are we going to use eval?
   if (empty($modSettings['disableTemplateEval']))
   {
      $file_found = file_exists($filename) && eval('?' . '>' . rtrim(file_get_contents($filename))) !== false;
      $settings['current_include_filename'] = $filename;
   }

Can someone help? What I have to modify?
Title: Re: Ad Management mod
Post by: BAMAVAMP on September 03, 2009, 02:56:41 PM
Thanks anyway John. I have tried 100 different places of putting in the code and it just gives us a template error when the forum loads.

Does the person who wrote this mod not exist anymore? Normally mods are taken over by someone else who knows what they are doing, and its clear someone like that could really be used here. I think if there is no more direct support for the mod at hand that it should be removed to save a lot of us some grief.
Title: Re: Ad Management mod
Post by: limon1 on September 03, 2009, 05:14:56 PM
Can anyone supply me with a link to a downlod ADS that will install trouble free. I am running smf1.1.10 Theme Nooygel. I am a newbie and there seems lots of problems on this mod.
Thanks in advance
Title: Re: Ad Management mod
Post by: John Kitchens on September 03, 2009, 09:48:57 PM
Hey BAMAVAMP,
I wish I knew what to tell you. I struggled to get mine working on a custom template as well.  The person that wrote the mod Jerm does still exist and is still here, but I have no idea what his situation is.

The latest person that has been helping a lot of folks out is Bigguy. I know these guys are very busy and they help all of us out when they can.

BAMA, did you ever get the ad management to work properly on a default template? I would think that would be the place to start. (That is where I started).

I installed it and had it working fine on 1.1.10 on the default template. All of my trouble started when we changed to a new template.

If at all possible I would check that and make sure that it works on the default template first. Is your forum a new forum or one with posts already on it? Luckily I did all of my testing on a test site that the public couldn't see. Then as I got everything working I made the change on my real forum.

LIMONP: Same question. Did you ever have the program installed and working properly on your default template? I think you should try that first. The reason I say this is because if it won't work on the default template you have a problem. A different problem from it not working on your custom template.

I wish I was more help guys, but I am a newbie when it comes to this stuff as well.  I kind of got handed this project and just took the ball and ran but please know that I will be glad to help any of you if I can. Believe me I know how frustrating it is to need help and not be able to get it.

John Kitchens
Title: Re: Ad Management mod
Post by: Smitten on September 03, 2009, 10:18:11 PM
Quote from: Smitten on September 02, 2009, 01:19:10 AM
I have a problem with Kani Theme in the display.template and index.template.

I give you the files, can yo do it? thanks for all genius!

Solved...
Title: Re: Ad Management mod
Post by: John Kitchens on September 03, 2009, 10:57:22 PM
Hey Smitten,

I am glad you solved your problem. Please post the solution for the others here that will need it.

John Kitchens
Title: Re: Ad Management mod
Post by: BAMAVAMP on September 04, 2009, 02:30:36 AM
yes it works in the default just fine. It was installed originally while we were using the default and still works now cause I checked after I couldn't do it with the new theme.
Title: Re: Ad Management mod
Post by: Smitten on September 04, 2009, 05:47:01 PM
Quote from: John Kitchens on September 03, 2009, 10:57:22 PM
Hey Smitten,

I am glad you solved your problem. Please post the solution for the others here that will need it.

John Kitchens

For Kani119 Theme: INDEX.TEMPLATE.PHP

FIND:

<body>
  <div id="wrapper"/>
  <div id="head-l">
<div id="head-r">
  <div id="header">
  <div id="userarea">';
if ($context['user']['is_logged'])
{
echo '<b>', $txt['hello_member_ndt'], ' ', $context['user']['name'], '</b><br />';


ADD AFTER:

//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}


FIND:

<div id="mainarea">
<div id="sag">
<div id="sol">
  <div id="alt">
<div id="altsag">
<div id="altsol">
  <div id="ust">
<div id="ustsag">
<div id="ustsol">';
                                                  }


ADD AFTER:

//Below the menu ads
if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
$ads = show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

//Tower left Ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);
//Tower Right Ads
$ads = show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}


FIND:

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!

ADD BEFORE:

//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads = show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td></tr></table>';

unset($ads);
//Close table for towerleft ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads = show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


DISPLAY.TEMPLATE.PHP

FIND:

function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;


ADD AFTER:


//Display ads on the thread page
if (function_exists("show_threadAds"))
{
$ads = show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


FIND:

// Get all the messages...
while ($message = $context['get_message']())
{


REPLACE WITH

//Ad Counter
$adcounter =0;
// Get all the messages...
while ($message = $context['get_message']())
{
$adcounter++;


FIND:

// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div class="signature"><center>', $message['member']['signature'], '</center></div>';

echo '
</td>
</tr>
</table>
</td></tr>
<tr>
<td class="windowbg3"><br />
</td>
</tr>
</table>


ADD AFTER:

</td></tr>';
if (function_exists("show_posts"))
{
if ($adpost = show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '

<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><img src="', $message['icon_url'] . '" alt="" border="0" /></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>
<div class="smalltext">&#171; <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' &#187;</div></td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
', $reply_button, '';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
', $reply_button, '';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
', $modify_button, '';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
', $remove_button, '';

// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
', $split_button, '';
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</div>
</td>
</tr>
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp;', $txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}
else
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr>
<td class="windowbg3">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</td>
</tr>
</table>
</td></tr>';
}

}

}

if(function_exists("show_lastpostAds") && function_exists("show_posts"))
{
if(($ads = show_lastpostAds()) && !show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '

<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle">&nbsp;</td>
<td valign="middle">
&nbsp;</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
', $reply_button, '';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
', $reply_button, '';


echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">', $ads['type'] == 0 ? $ads['content'] : eval($ads['content']) , '</div>
</td>
</tr>
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp;', $txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}
else
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr>
<td class="windowbg3">', $ads['type'] == 0 ? $ads['content'] : eval($ads['content']) , '</td>
</tr>
</table>
</td></tr>';

}

}


BOARDINDEX.TEMPLATE.PHP

FIND:

// Show some statistics next to the link tree if SP1 info is off.

ADD BEFORE:


//Display ads on the board index
if (function_exists("show_boardAds"))
{
$ads = show_boardAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


FIND:

// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}

echo '
<tr>
<td colspan="3" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">
<span class="smalltext"><b>', $txt['parent_boards'], '</b>: ', implode(', ', $children), '</span>
</td>
</tr>';
}
}
echo '
</table>';
}
echo '
</div>';


ADD AFTER:


//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

Title: Re: Ad Management mod
Post by: icecopi on September 05, 2009, 06:56:47 PM
I see some SMF users have under the ads a solid colour background.  Can someone tell me how this is done?
Title: Re: Ad Management mod
Post by: hellokitty1234 on September 06, 2009, 01:56:16 AM
My custom theme has no display.template.php file So how would I stall the ad mod? Please help
Title: Re: Ad Management mod
Post by: hellokitty1234 on September 06, 2009, 02:20:42 AM
I forgot to mention im using smf 1.1.10
Title: Re: Ad Management mod
Post by: hellokitty1234 on September 06, 2009, 02:47:17 AM
Here are 3 of the 4 files the ad mod says I have to edit. In one of them (index)  there isn't even a "<body>';" to be found. If someone could edit them for me and point me in  the right direction. Your help would greatly be appreciated.
Title: Re: Ad Management mod
Post by: Rohan_ on September 06, 2009, 02:59:21 PM
hi ... i am editing my index.template.php and i am using 1.1.10 .. so ur mod needs to find
</td>

but i cant find it there .. what do i do now ?? please help
Title: Re: Ad Management mod
Post by: sipo on September 06, 2009, 06:27:16 PM
Hello, can anyone help me, only admins can see the ads on my site, how do I change it so all users see it ?

thanks :)
Title: Re: Ad Management mod
Post by: hellokitty1234 on September 06, 2009, 07:01:31 PM
QuoteHello, can anyone help me, only admins can see the ads on my site, how do I change it so all users see it ?

thanks :)


Try going to permissions and giving the usergroup permission
Title: Re: Ad Management mod
Post by: bellamandu on September 07, 2009, 03:30:53 AM
Can someone help me please? im not sure if i am doing this right, im sorta new at this kind of stuff.

i uploaded the files to the correct folders on my server, but when i try to run install.php i get this:

Fatal error: Call to undefined function db_query() in /www/vndv.com/e/t/e/eternalreign/htdocs/forum/Themes/default/install.php on line 6

what do i need to do to fix this? i cant even get it to install. am i doing this right?
Title: Re: Ad Management mod
Post by: Rohan_ on September 07, 2009, 04:03:40 AM
hey bellamandu u are doing wrong man .. just go in your admin > packages > download > then upload the zip file there then u can easily install that :)
Title: Re: Ad Management mod
Post by: sipo on September 07, 2009, 04:07:05 AM
Quote from: hellokitty1234 on September 06, 2009, 07:01:31 PM
QuoteHello, can anyone help me, only admins can see the ads on my site, how do I change it so all users see it ?

thanks :)


Try going to permissions and giving the usergroup permission

Oh, great, I did not know that was there, thank you a lot :)
Title: Re: Ad Management mod
Post by: bellamandu on September 07, 2009, 04:32:23 AM
Quote from: Rohan_ on September 07, 2009, 04:03:40 AM
hey bellamandu u are doing wrong man .. just go in your admin > packages > download > then upload the zip file there then u can easily install that :)

ok, so i tried that but it wont let me upload .zip files. is there any other way to do this?
Title: Re: Ad Management mod
Post by: bellamandu on September 07, 2009, 04:38:49 AM
ok, i found out that my server has zlib disabled and wont enabled it for whatever reason..

how can i manually install this mod?
Title: Re: Ad Management mod
Post by: FeDe.RuLeZ on September 07, 2009, 08:41:45 AM
Hi i have a problem. I have installed the mod manually because i have problems with the Package Manager.
I did every step i run the query etc etc, but i have a problem. When i try to access to the admin page of the mod i have an error: "Cannot load 'main' template".

Please help me and sorry for my english!
Title: Re: Ad Management mod
Post by: clewis789 on September 07, 2009, 01:41:30 PM
i keep getting this error while upload, "Could not upload package, please check directory permissions" how do i fix it ?
Title: Re: Ad Management mod
Post by: Rohan_ on September 07, 2009, 02:00:32 PM
go in packages > option > standard files are writable
Title: Re: Ad Management mod
Post by: FeDe.RuLeZ on September 07, 2009, 03:28:22 PM
Someone can help me please?
Title: Re: Ad Management mod
Post by: Games4Nerds on September 07, 2009, 04:14:14 PM
Hi guys, i need help with something, i installed the ad mod and everything is good, except that the ads only show up when i log in to my forum. Is there a way to make it so ads are shown even when not logged in? ???

Thanks
Games4nerds.net
Title: Re: Ad Management mod
Post by: Rohan_ on September 07, 2009, 05:09:20 PM
go in permissions > guests
Title: Re: Ad Management mod
Post by: clewis789 on September 07, 2009, 05:53:48 PM
Quote from: Rohan_ on September 07, 2009, 02:00:32 PM
go in packages > option > standard files are writable

yeah that is what I already had.
Title: Re: Ad Management mod
Post by: Games4Nerds on September 07, 2009, 06:11:03 PM
Quote from: Rohan_ on September 07, 2009, 05:09:20 PM
go in permissions > guests

Thanks  ;D
Title: Re: Ad Management mod
Post by: Rohan_ on September 08, 2009, 02:29:12 AM
Quote from: clewis789 on September 07, 2009, 05:53:48 PM
Quote from: Rohan_ on September 07, 2009, 02:00:32 PM
go in packages > option > standard files are writable

yeah that is what I already had.

login in ftp right click on packages go in file permissions then select 777 and also select apply for subfolders .. then try to install it :)
Title: Re: Ad Management mod
Post by: daveb26 on September 08, 2009, 01:52:56 PM
im on SMF 1.1.10 and cant install this, i get error msg
Title: Re: Ad Management mod
Post by: babjusi on September 08, 2009, 02:49:35 PM
Quote from: daveb26 on September 08, 2009, 01:52:56 PM
im on SMF 1.1.10 and cant install this, i get error msg

Can you post a screenshot of the error message?
Title: Re: Ad Management mod
Post by: kanderson88 on September 09, 2009, 12:17:41 AM
waiting for update to the newest version of smf, please hurry
Title: Re: Ad Management mod
Post by: FeDe.RuLeZ on September 09, 2009, 06:06:19 AM
Nobody's help me..
Title: Re: Ad Management mod
Post by: ne-yola on September 09, 2009, 04:09:54 PM
 Hello all,

I am using smf1.1.10 and babylonian theme and i have been using simple portal to manage my ads but haven't been satisfied because of the browser views and other screen resolution issues.

I would love to install adsense manually if i could be guided to the exact locations in the codes where they should be installed

(1) The first location is on top( horizontally).. Just below the Navigation buttons such as "home", forum", help" e.t.c and i want this to appear on all pages

(2) The 2nd position is at the bottom , just above the smf signature and i want this to appear horizontally on all pages.

(3) I want the third position to appear only on the front page and it would be vertical to the right "somewhere were recent items are posted, to the right of it

(4) lastly, I want adsense to be installed at the bottom of every 1st post in a board.

Thans and expecting ur help




the admod gives error
Title: Re: Ad Management mod
Post by: fmsllc on September 09, 2009, 05:35:58 PM
nice mod, worked very well for me.
Title: Re: Ad Management mod
Post by: ne-yola on September 09, 2009, 06:39:44 PM
Quote from: fmsllc on September 09, 2009, 05:35:58 PM
nice mod, worked very well for me.
well dats you, doesn't work for me
Title: Re: Ad Management mod
Post by: Yahmez on September 09, 2009, 10:20:25 PM
Quote from: ne-yola on September 09, 2009, 04:09:54 PM
Hello all,

I am using smf1.1.10 and babylonian theme and i have been using simple portal to manage my ads but haven't been satisfied because of the browser views and other screen resolution issues.

I would love to install adsense manually if i could be guided to the exact locations in the codes where they should be installed

(1) The first location is on top( horizontally).. Just below the Navigation buttons such as "home", forum", help" e.t.c and i want this to appear on all pages

(2) The 2nd position is at the bottom , just above the smf signature and i want this to appear horizontally on all pages.

(3) I want the third position to appear only on the front page and it would be vertical to the right "somewhere were recent items are posted, to the right of it

(4) lastly, I want adsense to be installed at the bottom of every 1st post in a board.

Thans and expecting ur help




the admod gives error

If you can get the ad mod to install it can put ads in most/all of the areas you need. What error is it giving you?
Title: Re: Ad Management mod
Post by: ne-yola on September 10, 2009, 04:43:42 PM
it can't install on "default display and default index" and even i am using babylonian not default
Title: Re: Ad Management mod
Post by: John Kitchens on September 10, 2009, 09:15:07 PM
I don't know about the manual installation. It seems to work better if you install the zipped file from your admin center.

Title: Re: Ad Management mod
Post by: sudarsan7532 on September 11, 2009, 09:43:10 AM
hello,

initially i was using the default SMF core theme for my forum, yesterday i installed a new theme and i found that the "Ad management 2.3" mod is not working in the new theme.

Could you help me figure out a way to make the admanagement mod to work with the new theme.

here are the detials:
forum version: 1.1.10
current forum theme: OrangeT (http://custom.simplemachines.org/themes/index.php?lemma=1836)
mod: Ad management mod version 2.3 (http://custom.simplemachines.org/mods/index.php?mod=255)

Looking forward eagerly for your reply. please do help :) Thanks
Title: Re: Ad Management mod
Post by: Rohan_ on September 11, 2009, 12:54:47 PM
it only works with the default theme ... u need to make changes to your theme files to make it work
Title: Re: Ad Management mod
Post by: John Kitchens on September 11, 2009, 03:44:20 PM
Hello Sudarsen7532,

I had the same problem, but I was using a different theme. This is what I did to get my problem solved: http://www.simplemachines.org/community/index.php?topic=68632.msg2238898#msg2238898

John Kitchens
Title: Re: Ad Management mod
Post by: feona on September 12, 2009, 06:22:45 PM
I did install this. And it worked great. At least I thought it did.
Until I found out only the moderators can actually see the ads.

What did I do wrong? Fixable?
Title: Re: Ad Management mod
Post by: Rohan_ on September 12, 2009, 06:46:03 PM
go in permissions then check the group permissions
Title: Re: Ad Management mod
Post by: sudarsan7532 on September 13, 2009, 06:55:03 AM
Quote from: John Kitchens on September 11, 2009, 03:44:20 PM
Hello Sudarsen7532,

I had the same problem, but I was using a different theme. This is what I did to get my problem solved: http://www.simplemachines.org/community/index.php?topic=68632.msg2238898#msg2238898

John Kitchens

hi mate i clearly understood everything, i installed it, but it is showing template parse error.

I would be really happy if you could manually install the ad management mod in the "OrangeT" theme and give edited theme to me :)

thanks in advance :)

here are the details:
forum version: 1.1.10
current forum theme: OrangeT (http://custom.simplemachines.org/themes/index.php?lemma=1836)
mod: Ad management mod version 2.3 (http://custom.simplemachines.org/mods/index.php?mod=255)
Title: Re: Ad Management mod
Post by: John Kitchens on September 13, 2009, 09:05:39 AM
Quote from: sudarsan7532 on September 13, 2009, 06:55:03 AM
I would be really happy if you could manually install the ad management mod in the "OrangeT" theme and give edited theme to me :)

Hey I am sure you would, but I don't have time to do that. I struggled to get mine working on my own. I am trying to help others, but I don't have the time to do it for you.

John Kitchens
Title: Re: Ad Management mod
Post by: TheDisturbedOne on September 13, 2009, 04:29:29 PM
Quote from: kanderson88 on September 09, 2009, 12:17:41 AM
waiting for update to the newest version of smf, please hurry
It works on 1.1.10, just emulate the version.
Title: Re: Ad Management mod
Post by: ne-yola on September 13, 2009, 06:38:46 PM
I have followed the procedure for the manual installation as well as the executed commands, but any time i click ad management on configuration Tab, it takes me to the Home page and does nothing

I am using smf 1.1.10 and babylonian theme

thanks
Title: Re: Ad Management mod
Post by: lazywealth on September 15, 2009, 10:03:48 AM
Please how Can i make the add to display centrally and not displaced to one side as i currently have them?
 
Here! (http://www.forumwalls.com)
Here! (http://www.forumwalls.com)
Title: Re: Ad Management mod
Post by: John Kitchens on September 15, 2009, 10:52:40 AM
lazywealth,

I can't see any ads on your site. I don't think you have your permissions set so that "guests" can see them.

If you are trying to have your ads centered at say the top of the page you can use the <center> command in the HTML code for your ad.

Hopefully that will help.

John Kitchens
Title: Re: Ad Management mod
Post by: lazywealth on September 15, 2009, 12:55:49 PM
Its true am the only one seeing the ads when am logged in Pls how will i do that?
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on September 15, 2009, 12:59:19 PM
Goto

http://yourforum.com/index.php?action=admin;area=permissions;sa=index

then make sure the Enable ads is checked for each member group you want ads to be displayed for
Title: Re: Ad Management mod
Post by: lazywealth on September 15, 2009, 01:07:24 PM
I think i just fixed it. Thanks.
Please check it out So i need more info on how to make my ads display centrally! especially the ladderboard ads
Title: Re: Ad Management mod
Post by: lazywealth on September 15, 2009, 01:50:23 PM
I think i got it now thanks to all....
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on September 15, 2009, 02:18:08 PM
I see a google adsense ad there yes, you can check it yourself by simply logging out lol  :)
Title: Re: Ad Management mod
Post by: collins465 on September 15, 2009, 02:28:09 PM
i dont want my ads to be displaying in homepage, so i 1-80 for my ads to be displaying in boards 1-80, but to no avail nothing was displaying, but if i enable it to display in all boards, then it will show.
what could be the problem.
Title: Re: Ad Management mod
Post by: John Kitchens on September 15, 2009, 02:39:13 PM
Looks like you got it sorted out Lazywealth. Everything looks fine when I checked it.

John Kitchens
Title: Re: Ad Management mod
Post by: lazywealth on September 16, 2009, 01:29:35 PM
Quote from: collins465 on September 15, 2009, 02:28:09 PM
i dont want my ads to be displaying in homepage, so i 1-80 for my ads to be displaying in boards 1-80, but to no avail nothing was displaying, but if i enable it to display in all boards, then it will show.
what could be the problem.

I think you should check the mod you are using mostly for compatibility and then take a critical look at your settings
Title: Re: Ad Management mod
Post by: collins465 on September 16, 2009, 01:46:05 PM
i have resolved it, i used 1-80 instead of 1,2,3,4,5,6,7,80.

thanks but i dont know why is not displaying after the first post or second post or am i mistaking something?
Title: Re: Ad Management mod
Post by: lazywealth on September 16, 2009, 02:24:18 PM
make sure you set the right permisions  for your guest to view ads
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on September 16, 2009, 03:46:15 PM
Quote from: collins465 on September 16, 2009, 01:46:05 PM
i have resolved it, i used 1-80 instead of 1,2,3,4,5,6,7,80.

thanks but i dont know why is not displaying after the first post or second post or am i mistaking something?

there is a separate option for displaying ad after the 1st post, see 1, 2, 3, 4, 5, 6, 7, 8, 9 is the reply not the post, 1 = 1st reply thus the ad on the 2nd post
Title: Re: Ad Management mod
Post by: collins465 on September 16, 2009, 06:54:54 PM
Quote from: johncccccc on September 16, 2009, 03:46:15 PM
Quote from: collins465 on September 16, 2009, 01:46:05 PM
i have resolved it, i used 1-80 instead of 1,2,3,4,5,6,7,80.

thanks but i dont know why is not displaying after the first post or second post or am i mistaking something?

there is a separate option for displaying ad after the 1st post, see 1, 2, 3, 4, 5, 6, 7, 8, 9 is the reply not the post, 1 = 1st reply thus the ad on the 2nd post
please how can i achieve this? in a simple english and direction.
Title: Re: Ad Management mod
Post by: lazywealth on September 17, 2009, 07:08:46 AM
Pls i need some one to tell how to align the ads that it will not affect the positioning of the categories
Title: Re: Ad Management mod
Post by: lazywealth on September 17, 2009, 09:20:29 AM
I think av fixed the problem..
Title: Re: Ad Management mod
Post by: Utech22 on September 17, 2009, 10:33:40 PM
I need some help installing ads management with the spider template.
smf 1.1.9     ???

:o :o :o
Title: Re: Ad Management mod
Post by: plusev on September 21, 2009, 12:21:40 PM
Is this mod still supported and will it be for 2 rc1.2? I'vegot it installed but getting hunderds of errors.

Thx
Title: Re: Ad Management mod
Post by: GreySkull-1 on September 21, 2009, 02:09:56 PM
Quote from: plusev on September 21, 2009, 12:21:40 PM
Is this mod still supported and will it be for 2 rc1.2? I'vegot it installed but getting hunderds of errors.

Thx

Haven't installed it yet but I appreciate you letting us know their are problems for 2.0 RC1.2

jerm, any idea when you will have another update?

Thanks!!
Title: Re: Ad Management mod
Post by: TheListener on September 22, 2009, 07:34:41 AM
Quote from: plusev on September 21, 2009, 12:21:40 PM
Is this mod still supported and will it be for 2 rc1.2? I'vegot it installed but getting hunderds of errors.

Thx

Was it a clean install ie no errors?
Title: Re: Ad Management mod
Post by: plusev on September 22, 2009, 11:13:11 AM
http://www.simplemachines.org/community/index.php?topic=68632.msg2230411#msg2230411

It also gives errors on any page with a poll.

+EV
Title: Re: Ad Management mod
Post by: lindseylakeshore on September 24, 2009, 12:24:10 PM
I have the ad mod in place and ads are running I have one at the top of the page and want to place more at the top of the page but they place in the same spot I want to run 4 ads across the top of the page next to eachother. how can i do this? thanks!
Title: Re: Ad Management mod
Post by: TNoob on September 24, 2009, 08:50:32 PM
Can someone help me?

The ads won't display on my board index...

My site URL: http://www.gamedusk.com

As you can see, I am using a custom theme.

Title: Re: Ad Management mod
Post by: Bigguy on September 24, 2009, 11:29:17 PM
Then edits are required to the custom template files. Do the ads show on the default theme. ???
Title: Re: Ad Management mod
Post by: Maxtor on September 25, 2009, 08:41:07 PM
1. Execute Code install.php 
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/Subs.php Test successful
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
6. Execute Modification ./Themes/default/Display.template.php Test failed
7. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
8. Execute Modification ./Sources/ManagePermissions.php Test failed
9. Extract File ./Sources/Ads.php 
10. Extract File ./Sources/LoadAds.php 
11. Extract File ./Themes/default/Ads.template.php 
12. Extract File ./Themes/default/languages/Ads.english.php


what is wrong here? im using SMF 1.1.10
Title: Re: Ad Management mod
Post by: TheListener on September 25, 2009, 08:45:11 PM
Quote from: maxtor on September 25, 2009, 08:41:07 PM
1. Execute Code install.php 
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/Subs.php Test successful
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
6. Execute Modification ./Themes/default/Display.template.php Test failed
7. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
8. Execute Modification ./Sources/ManagePermissions.php Test failed
9. Extract File ./Sources/Ads.php 
10. Extract File ./Sources/LoadAds.php 
11. Extract File ./Themes/default/Ads.template.php 
12. Extract File ./Themes/default/languages/Ads.english.php


what is wrong here? im using SMF 1.1.10

The two files which have test failed next to them will require a manul edit.
Title: Re: Ad Management mod
Post by: Maxtor on September 25, 2009, 09:20:53 PM
Quote from: TheListener on September 25, 2009, 08:45:11 PM
Quote from: maxtor on September 25, 2009, 08:41:07 PM
1. Execute Code install.php 
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/Subs.php Test successful
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
6. Execute Modification ./Themes/default/Display.template.php Test failed
7. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
8. Execute Modification ./Sources/ManagePermissions.php Test failed
9. Extract File ./Sources/Ads.php 
10. Extract File ./Sources/LoadAds.php 
11. Extract File ./Themes/default/Ads.template.php 
12. Extract File ./Themes/default/languages/Ads.english.php


what is wrong here? im using SMF 1.1.10

The two files which have test failed next to them will require a manul edit.

what edit ? can you help me?
Title: Re: Ad Management mod
Post by: TheListener on September 25, 2009, 09:30:08 PM
Looking at the Parse instructions you get:

./Sources/ManagePermissions.php

Find:

       'pm' => array(

Replace With:

'ad_manage' => array(
'ad_manageperm' => false,
),
'pm' => array(


Make sure you backup first.
Title: Re: Ad Management mod
Post by: Maxtor on September 25, 2009, 09:41:06 PM
a general question : if i install it with these 2 "test failed", the Execute Modification of these 2 files will be done? or not?
Title: Re: Ad Management mod
Post by: TheListener on September 25, 2009, 09:44:49 PM
You can still install the mod BUT it won't work as it should.
Title: Re: Ad Management mod
Post by: Maxtor on September 25, 2009, 09:50:45 PM
Quote from: TheListener on September 25, 2009, 09:44:49 PM
You can still install the mod BUT it won't work as it should.
yes but my question is it will modify the 2 files with that way? or the only thing after i install is to edit these 2 files?
Title: Re: Ad Management mod
Post by: TheListener on September 25, 2009, 09:54:02 PM
The only thing you can do is edit the files otherwise your error log will never be empty.
Title: Re: Ad Management mod
Post by: Maxtor on September 25, 2009, 10:05:24 PM
i have edited my install.xml and everything is ok now!
Title: Re: Ad Management mod
Post by: Maxtor on September 25, 2009, 10:07:57 PM
and this code:
- <file name="$sourcedir/ManagePermissions.php">
- <operation>
- <search position="replace">
- <![CDATA[ 'pm' => array(
  ]]>
  </search>
- <add>
- <![CDATA[ 'ad_manage' => array(
'ad_manageperm' => false,
),
'pm' => array(
  ]]>
  </add>
  </operation>

should be:
- <file name="$sourcedir/ManagePermissions.php">
- <operation>
- <search position="replace">
- <![CDATA['pm' => array(]]>
  </search>
- <add>
- <![CDATA[ 'ad_manage' => array(
'ad_manageperm' => false,
),
'pm' => array(
  ]]>
  </add>
  </operation>
Title: Re: Ad Management mod
Post by: abidejaz4u on September 26, 2009, 06:27:04 AM
ya its done but its showing ads only in admin user not other ?? now what can i do
Title: Re: Ad Management mod
Post by: TheListener on September 26, 2009, 06:38:57 AM
Have you checked the permissions?
Title: Re: Ad Management mod
Post by: abidejaz4u on September 26, 2009, 08:46:59 AM
From where i can check it???
Title: Re: Ad Management mod
Post by: TheListener on September 26, 2009, 08:49:45 AM
Go to your permissions via the admin
Title: Re: Ad Management mod
Post by: abidejaz4u on September 26, 2009, 08:57:45 AM
on there that options where i can go

(http://i33.tinypic.com/2r7bp5u.jpg)
Title: Re: Ad Management mod
Post by: TheListener on September 26, 2009, 09:05:06 AM
Go to where it says modify for each membergroup.

Title: Re: Ad Management mod
Post by: Maxtor on September 26, 2009, 09:17:43 AM
after installing this mod in smf1.1.10 i see these errors:
8: Undefined offset: 21
/home/lmaxche1/public_html/maxcheaters.com/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
187

8: Undefined index: parent_boards
/home/lmaxche1/public_html/maxcheaters.com/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
194

8: Undefined offset: 333
/home/lmaxche1/public_html/maxcheaters.com/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
135

8: Undefined offset: 22
/home/lmaxche1/public_html/maxcheaters.com/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
171

8: Undefined offset: 525
/home/lmaxche1/public_html/maxcheaters.com/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
171

8: Undefined index: smf88
/home/lmaxche1/public_html/maxcheaters.com/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
172

8: Undefined index: smf10
/home/lmaxche1/public_html/maxcheaters.com/forum/Sources/Subs.php
856

8: Undefined index: lang_locale
/home/lmaxche1/public_html/maxcheaters.com/forum/Sources/Subs.php
865

8: Undefined offset: 92
/home/lmaxche1/public_html/maxcheaters.com/forum/Sources/Load.php
1296

8: Undefined offset: 92
/home/lmaxche1/public_html/maxcheaters.com/forum/Sources/Load.php
1296

these are some of errors.
Title: Re: Ad Management mod
Post by: abidejaz4u on September 26, 2009, 09:31:15 AM
Quote from: TheListener on September 26, 2009, 09:05:06 AM
Go to where it says modify for each membergroup.

sorry i did not find any option link this in it...plz tell me breifly
Title: Re: Ad Management mod
Post by: Muldoon on September 26, 2009, 06:52:05 PM
Hi guys,

I'm currently running SMF 1.1.10.  Which file am I supposed to download on the custom mod page?  I see four different zip files?

ad_mod_1-1-x_v2-3.zip (17KB) [54949] 
ad_mod_v2-3-4_SMF_vbeta4.zip (22KB) [37076] 
ad_mod_v2-3-1_SMF_v1-1-x.zip (21KB) [2188] 
ad_mod_v2-3-5_SMF_v2-0RC1-1.zip (22KB) [3340]

Thank you,
Muldoon
Title: Re: Ad Management mod
Post by: GreySkull-1 on September 26, 2009, 07:55:08 PM
Seems to conflict with Global Headers and Footers mod.

I have a test site with no mods and it installed on SMF 2.0 RC1.2 with no problems.

My active site only has one mod and thats Global Headers and Footers...got errors when attempting to install the Ad Management mod package.

Title: Re: Ad Management mod
Post by: abidejaz4u on September 27, 2009, 05:55:52 AM
where is that option buddy
Title: Re: Ad Management mod
Post by: Maxtor on September 27, 2009, 09:04:27 AM
Quote from: Muldoon on September 26, 2009, 06:52:05 PM
Hi guys,

I'm currently running SMF 1.1.10.  Which file am I supposed to download on the custom mod page?  I see four different zip files?

ad_mod_1-1-x_v2-3.zip (17KB) [54949] 
ad_mod_v2-3-4_SMF_vbeta4.zip (22KB) [37076] 
ad_mod_v2-3-1_SMF_v1-1-x.zip (21KB) [2188] 
ad_mod_v2-3-5_SMF_v2-0RC1-1.zip (22KB) [3340]

Thank you,
Muldoon
this one:
ad_mod_v2-3-1_SMF_v1-1-x.zip (21KB) [2188] is 2.3.1 for SMF 1.1.x
Title: Re: Ad Management mod
Post by: Maxtor on September 27, 2009, 09:05:28 AM
Quote from: GreySkull-1 on September 26, 2009, 07:55:08 PM
Seems to conflict with Global Headers and Footers mod.

I have a test site with no mods and it installed on SMF 2.0 RC1.2 with no problems.

My active site only has one mod and thats Global Headers and Footers...got errors when attempting to install the Ad Management mod package.



me too. i get errors with both mods installed.
Title: Re: Ad Management mod
Post by: Muldoon on September 27, 2009, 03:17:45 PM
Thanks maxtor!!
Title: Re: Ad Management mod
Post by: killer.nanowhiz on September 28, 2009, 05:20:35 AM

ad management n EOTS DZINE - COD MODERN WARFARE 2 theme


ad management mod is not working ......while it gets installed successfully .... i installed EOTS DZINE - COD MODERN WARFARE 2 theme and i m using SMF 2.0 RC1.2 , i went through many topic and found that it works for only smf default theme and i have to edit it manually ..... i dont have knowledge about programming n all.... somebody plz help me to edit it ...plzz tell me what to edit n where to edit

if you need any file to make changes over there .... i will post it here ....tell me which file is needed
Title: Re: Ad Management mod
Post by: lindseylakeshore on September 28, 2009, 11:53:55 AM
I have the ad mod in place and ads are running I have one at the top of the page and want to place more at the top of the page but they place in the same spot I want to run 4 ads across the top of the page next to eachother. how can i do this? thanks!
Title: Re: Ad Management mod
Post by: shadowcrews on September 28, 2009, 09:13:08 PM
i have a question:

1. i placed the ad to display on every page below the menu, when i refresh sometimes the ad dosent appear and sometime it does appear

2. i placed another add to display on post page, how do i specify it to appear on every post? assume the thread as 30 replies, how can i have the add appear below all the post?

appereciate if anyone could help
Title: Re: Ad Management mod
Post by: alangnw on September 29, 2009, 10:06:22 AM
Would just like to thank Smitten for the following answer earlier which worked.... to a degree.

Ad in the footer works on every page - great!

Ad under menu works great on the home page - but only the home page

Can't display withing posts or anywhere else (and towers not working)

Anyone have any suggestions?

Thanks


Quote from: Smitten on September 04, 2009, 05:47:01 PM
Quote from: John Kitchens on September 03, 2009, 10:57:22 PM
Hey Smitten,

I am glad you solved your problem. Please post the solution for the others here that will need it.

John Kitchens

For Kani119 Theme: INDEX.TEMPLATE.PHP

FIND:

<body>
  <div id="wrapper"/>
  <div id="head-l">
<div id="head-r">
  <div id="header">
  <div id="userarea">';
if ($context['user']['is_logged'])
{
echo '<b>', $txt['hello_member_ndt'], ' ', $context['user']['name'], '</b><br />';


ADD AFTER:

//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}


FIND:

<div id="mainarea">
<div id="sag">
<div id="sol">
  <div id="alt">
<div id="altsag">
<div id="altsol">
  <div id="ust">
<div id="ustsag">
<div id="ustsol">';
                                                  }


ADD AFTER:

//Below the menu ads
if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
$ads = show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

//Tower left Ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);
//Tower Right Ads
$ads = show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}


FIND:

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!

ADD BEFORE:

//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads = show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td></tr></table>';

unset($ads);
//Close table for towerleft ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads = show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


DISPLAY.TEMPLATE.PHP

FIND:

function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;


ADD AFTER:


//Display ads on the thread page
if (function_exists("show_threadAds"))
{
$ads = show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


FIND:

// Get all the messages...
while ($message = $context['get_message']())
{


REPLACE WITH

//Ad Counter
$adcounter =0;
// Get all the messages...
while ($message = $context['get_message']())
{
$adcounter++;


FIND:

// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div class="signature"><center>', $message['member']['signature'], '</center></div>';

echo '
</td>
</tr>
</table>
</td></tr>
<tr>
<td class="windowbg3"><br />
</td>
</tr>
</table>


ADD AFTER:

</td></tr>';
if (function_exists("show_posts"))
{
if ($adpost = show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '

<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><img src="', $message['icon_url'] . '" alt="" border="0" /></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>
<div class="smalltext">&#171; <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' &#187;</div></td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
', $reply_button, '';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
', $reply_button, '';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
', $modify_button, '';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
', $remove_button, '';

// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
', $split_button, '';
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</div>
</td>
</tr>
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp;', $txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}
else
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr>
<td class="windowbg3">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</td>
</tr>
</table>
</td></tr>';
}

}

}

if(function_exists("show_lastpostAds") && function_exists("show_posts"))
{
if(($ads = show_lastpostAds()) && !show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '

<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle">&nbsp;</td>
<td valign="middle">
&nbsp;</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
', $reply_button, '';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
', $reply_button, '';


echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">', $ads['type'] == 0 ? $ads['content'] : eval($ads['content']) , '</div>
</td>
</tr>
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp;', $txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}
else
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr>
<td class="windowbg3">', $ads['type'] == 0 ? $ads['content'] : eval($ads['content']) , '</td>
</tr>
</table>
</td></tr>';

}

}


BOARDINDEX.TEMPLATE.PHP

FIND:

// Show some statistics next to the link tree if SP1 info is off.

ADD BEFORE:


//Display ads on the board index
if (function_exists("show_boardAds"))
{
$ads = show_boardAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


FIND:

// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}

echo '
<tr>
<td colspan="3" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">
<span class="smalltext"><b>', $txt['parent_boards'], '</b>: ', implode(', ', $children), '</span>
</td>
</tr>';
}
}
echo '
</table>';
}
echo '
</div>';


ADD AFTER:


//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

Title: Re: Ad Management mod
Post by: plusev on September 29, 2009, 04:26:01 PM
The MOD works fine on my custom theme with one exception - on any page with a poll I get the following error:

8: Undefined variable: adcounter
File: //Themes/default/Display.template.php
Line: 125 

105: </div>
106: </div>
107: <div id="pollmoderation">';
108: 
109: // Build the poll moderation button array.
110: $poll_buttons = array(
111: 'vote' => array('test' => 'allow_return_vote', 'text' => 'poll_return_vote', 'image' => 'poll_options.gif', 'lang' => true, 'url' => $scripturl . '?topic=' . $context['current_topic'] . '.' . $context['start']),
112: 'results' => array('test' => 'allow_poll_view', 'text' => 'poll_results', 'image' => 'poll_results.gif', 'lang' => true, 'url' => $scripturl . '?topic=' . $context['current_topic'] . '.' . $context['start'] . ';viewResults'),
113: 'change_vote' => array('test' => 'allow_change_vote', 'text' => 'poll_change_vote', 'image' => 'poll_change_vote.gif', 'lang' => true, 'url' => $scripturl . '?action=vote;topic=' . $context['current_topic'] . '.' . $context['start'] . ';poll=' . $context['poll']['id'] . ';' . $context['session_var'] . '=' . $context['session_id']),
114: 'lock' => array('test' => 'allow_lock_poll', 'text' => (!$context['poll']['is_locked'] ? 'poll_lock' : 'poll_unlock'), 'image' => 'poll_lock.gif', 'lang' => true, 'url' => $scripturl . '?action=lockvoting;topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),
115: 'edit' => array('test' => 'allow_edit_poll', 'text' => 'poll_edit', 'image' => 'poll_edit.gif', 'lang' => true, 'url' => $scripturl . '?action=editpoll;topic=' . $context['current_topic'] . '.' . $context['start']),
116: 'remove_poll' => array('test' => 'can_remove_poll', 'text' => 'poll_remove', 'image' => 'admin_remove_poll.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');"', 'url' => $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start']),
117: );
118: 
119: template_button_strip($poll_buttons);
120: 
121: echo '
122: </div>';
123: if (function_exists("show_posts"))
124: {
==>125: if ($adpost = show_posts($adcounter))
126: {
127: if($modSettings['ads_lookLikePosts'])
128: {
129: echo '
130: <div class="bordercolor">
131: <div class="clearfix windowbg3 largepadding">';
132:
133: // Show information about the poster of this message.
134: echo '
135: <div class="floatleft poster">
136: <h4>', $context['forum_name'], '</h4>';
137:
138: // Done with the information about the poster... on to the post itself.
139: echo '
140: </div>
141: <div class="postarea">
142: <div class="keyinfo">
143: <h5 id="subject_', $message['id'], '">
144: <a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
145: </h5>


If anyone would give me a hand with this issue I'd appreciate it. Thx
Title: Re: Ad Management mod
Post by: Chasingu on September 29, 2009, 04:38:47 PM
Is there anyway I can get this to show these ads to guests? I currently don't see a options for it.
Title: Re: Ad Management mod
Post by: Yahmez on September 29, 2009, 08:46:41 PM
Quote from: Chasingu on September 29, 2009, 04:38:47 PM
Is there anyway I can get this to show these ads to guests? I currently don't see a options for it.
Yes, check the guest permissions. Are you using SMF 2.0RC2 or 1.1.x?
Title: Re: Ad Management mod
Post by: replay on September 29, 2009, 08:52:01 PM
I am now running SMF 2.0 RC1.2 and would like to add Ad Management mod again, i did run this once on 1.1.10 but due to the upgrade the mod stopped working,...so which ad management mod do i need to be compatable on this version.

Cheers All
Title: Re: Ad Management mod
Post by: Yahmez on September 29, 2009, 09:13:59 PM
Quote from: replay on September 29, 2009, 08:52:01 PM
I am now running SMF 2.0 RC1.2 and would like to add Ad Management mod again, i did run this once on 1.1.10 but due to the upgrade the mod stopped working,...so which ad management mod do i need to be compatable on this version.

Cheers All
Here:
http://custom.simplemachines.org/mods/index.php?action=download;mod=255;id=101786

Are you using the default theme?
Title: Re: Ad Management mod
Post by: replay on September 29, 2009, 09:46:17 PM
Yes cheers

Title: Re: Ad Management mod
Post by: Yahmez on September 29, 2009, 09:51:32 PM
Quote from: Yahmez on September 29, 2009, 09:13:59 PM
Are you using the default theme?

Quote from: replay on September 29, 2009, 09:46:17 PM
Yes cheers

On the default theme (in 2.0) it causes some issues with the layout of the 'welcome user' area. If it does this for you too, it is possible to remove the coding to place ad's in this area and fix the issue. Or you can post up your relevant files and I can remove that part for you when I get the chance.
Title: Re: Ad Management mod
Post by: replay on September 29, 2009, 10:04:49 PM
is it not best i wait until the ad mod is sorted before i install.

Cheers
Title: Re: Ad Management mod
Post by: bri on September 30, 2009, 02:19:56 PM
Trying to move the indexAds to a new location, but keep breaking the thing! Anyone available for some support? Paid even?
Title: Re: Ad Management mod
Post by: TheListener on September 30, 2009, 02:41:21 PM
What do you mean by new location?
Title: Re: Ad Management mod
Post by: CarlWohlforth on September 30, 2009, 07:55:15 PM
Looks like it has good potential. Does it work on all themes?

I tried it on SMF 1.1.10 with Extreme10 theme and only 1 or 2 positions worked.

Do the permissions need to be turned on? It looked like they were off by default. I tried both ways and still didn't see the ads.
Title: Re: Ad Management mod
Post by: TheListener on September 30, 2009, 07:59:09 PM
Quote from: CarlWohlforth on September 30, 2009, 07:55:15 PM
Looks like it has good potential. Does it work on all themes?

I tried it on SMF 1.1.10 with Extreme10 theme and only 1 or 2 positions worked.

Do the permissions need to be turned on? It looked like they were off by default. I tried both ways and still didn't see the ads.

Did you have any errors on install?
Title: Re: Ad Management mod
Post by: CarlWohlforth on September 30, 2009, 08:47:11 PM
No, no errors on install.
Title: Re: Ad Management mod
Post by: TheListener on September 30, 2009, 08:53:33 PM
Have the permissions been set?

Make sure the box for admins to NOT see ads has not been ticked.
Title: Re: Ad Management mod
Post by: CarlWohlforth on September 30, 2009, 09:03:38 PM
Right. I did not check that box. I also logged in as a different user. I have more than one account. :)
Title: Re: Ad Management mod
Post by: Yahmez on September 30, 2009, 09:12:17 PM
In a custom theme you have to manually install the code...
Title: Re: Ad Management mod
Post by: CarlWohlforth on September 30, 2009, 09:41:42 PM
OK, I do have a custom theme, I'll look into manually installing the code tomorrow. No install errors today and one or two positions worked though the others didn't. Anyway I'm checking out for the night.

Thanks so much for the quick replies so far. I do appreciate that.
Title: Re: Ad Management mod
Post by: Kathleen Chute on October 02, 2009, 07:29:25 AM
I am using sfm 1.1.10 and I have been using this mod and it works very well. However. I visited my site and noted all my text was aligned center. Someone here in this forum had suggestion this might be a Google adsense issue. I went back to my site and saw all my ads were gone and I no longer can access my ad management utility panel. How can I fix this problem.
Thank you very much for the mod-it is very nice. I just think I have a Bug of some sort. Thank you
Title: Re: Ad Management mod
Post by: DilSe on October 02, 2009, 08:02:42 AM
hello to all plz help me ..

i install this mod .. it's install with out any error . when i put ads code and make setting .. ads show on index and bottom on page.. but noting heppend ads not show on indx. i don't understand how i fix this problem ...plz anybody help me.....
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 02, 2009, 09:13:34 AM
Which ads did you use, some ad providers ads will not show for at least 15-30 minutes after setting up the ad, you should just test the ad management with some standard text instead of an ad.

put this code instead of the code given by the ad provider to test the mod.
<center>THIS IS A TEST TO SEE IF THE AD MANAGEMENT MOD IS WORKING</center>

if this works, either wait a little more time for the ad to become active or consult the ad provider, if not, of course post back here for further support.
Title: Re: Ad Management mod
Post by: TheListener on October 02, 2009, 06:27:18 PM
Is there a way our own adverts can be added for displaying on the forum.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 02, 2009, 06:30:14 PM
you can add anything you like in there
Title: Re: Ad Management mod
Post by: TheListener on October 02, 2009, 06:32:08 PM
The problem I am having is the code I should be using.

Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 02, 2009, 08:04:23 PM
What kind of code is it, PHP, HTML ?
Title: Re: Ad Management mod
Post by: TheListener on October 02, 2009, 08:07:14 PM
It's one I designed myself using paintshop pro.

Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 02, 2009, 08:12:55 PM
upload the image to your hosting account

in the HTML box

<img src="IMAGE LINK HERE" />
Title: Re: Ad Management mod
Post by: TheListener on October 02, 2009, 08:26:17 PM
Nothing happened.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 02, 2009, 08:42:48 PM
Hmmm strange,

I have not got AD management at the moment, but I tried the code in Simple Portal block and it worked fine.
(http://i36.tinypic.com/22kfb4.png)

You can try it in a portal block, to check if your not mis-typing anything, if it works there and not in ad management, then I don't know what it is, are other ads working for you?
Title: Re: Ad Management mod
Post by: TheListener on October 02, 2009, 08:44:28 PM
The google ads work with no problem.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 02, 2009, 08:52:28 PM
Thats very strange, it happening to me too, I never noticed it before, I use simple portal to display most of my ads so never noticed that, however, my Google Adsense works too.

Wonder why that's happening, I will look into it
Title: Re: Ad Management mod
Post by: TheListener on October 02, 2009, 08:55:15 PM
With the exception of google adsense I tend to keep ads off my portals.
Title: Re: Ad Management mod
Post by: Kat9119 on October 03, 2009, 11:09:47 AM
Anyway to rotate ads in the same spot?

I think I read somewhere to put two codes in the same area. But this just shows two ads.

I have ads from google, and ads from another site and would like to rotate them in an area between posts.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 03, 2009, 11:48:23 AM
yes, is we would call an image, like "thelistener" is trying to do, you could setup some rotation PHP script with as many images as you need and instead of linking to an  a image you would <img ........image.php />
Title: Re: Ad Management mod
Post by: naijapreneur on October 03, 2009, 02:34:57 PM
Help,  i downloaded  * ad_mod_v2-3-5_SMF_v2-0RC1-1.zip * (22KB)   * [3551] and tried to install in my smf 2.0 rc 1.2 site, but it gave errors
   
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 03, 2009, 03:53:57 PM
Quote from: naijapreneur on October 03, 2009, 02:34:57 PM
Help,  i downloaded  * ad_mod_v2-3-5_SMF_v2-0RC1-1.zip * (22KB)   * [3551] and tried to install in my smf 2.0 rc 1.2 site, but it gave errors
   

well, what errors?
Title: Re: Ad Management mod
Post by: naijapreneur on October 03, 2009, 05:26:18 PM
  Type Action Description
1. Execute Code install.php 
2. Execute Modification ./index.php Test successful
  1. Add After ./index.php Test successful
  2. Add After ./index.php Test successful
  3. Add After ./index.php Test successful

3. Execute Modification ./Sources/Admin.php  Test successful
  1. Add After ./Sources/Admin.php                 Test successful
  2. Add After ./Sources/Admin.php                 Test successful

*4. Execute Modification ./Themes/default/index.template.php            Test failed
  *1. Add After ./Themes/default/index.template.php                          Test failed
  2. Replace ./Themes/default/index.template.php                            Test successful
  3. Replace ./Themes/default/index.template.php                          Test successful

The two lines with * are the indicated errors, what can i do

Title: Re: Ad Management mod
Post by: TheListener on October 03, 2009, 05:30:35 PM
All it means is that the one section of the index template requires a manual edit.
Title: Re: Ad Management mod
Post by: naijapreneur on October 03, 2009, 05:37:42 PM
Does it mean i can go ahead and install it. Then how do i complete it manually ?
Title: Re: Ad Management mod
Post by: TheListener on October 03, 2009, 05:39:04 PM
Go to the page where you downloaded the mod and use the parse instructions given for the version you use.
Title: Re: Ad Management mod
Post by: naijapreneur on October 03, 2009, 05:59:18 PM
Quote from: naijapreneur on October 03, 2009, 05:37:42 PM
Does it mean i can go ahead and install it.

Do you say i should install it in my admin area first then follow up with manual installation of the index template section ?
Or i should just go for manual edit.
Title: Re: Ad Management mod
Post by: TheListener on October 03, 2009, 06:05:03 PM
I would install the mod first via the admin area.
Title: Re: Ad Management mod
Post by: naijapreneur on October 03, 2009, 06:37:15 PM
Thanks, just did and it installed.
Title: Re: Ad Management mod
Post by: Muldoon on October 04, 2009, 09:31:05 AM
Hi everyone,

I have successfully installed the ad management mod.  However I am running the 'Mesh" theme with Tiny Portal v0.9.8 and SMF 1.1.10.  I was wondering if someone could provide me with the exact edits to get it to work in the Mesh Theme.  I took a look at the manual edits done to the default theme however they do not mimic the files in Mesh.

Any help would be greatly appreciated!

Mesh theme:
http://www.simplemachines.org/community/index.php?topic=148771.0

Thank you,
Muldoon
Title: Re: Ad Management mod
Post by: Kat9119 on October 04, 2009, 02:52:05 PM
Quote from: johncccccc on October 03, 2009, 11:48:23 AM
yes, is we would call an image, like "thelistener" is trying to do, you could setup some rotation PHP script with as many images as you need and instead of linking to an  a image you would <img ........image.php />

Ah, okay, I have no idea how to do that, I guess I'd have to research it unless anyone has a quick code on hand they'd like to share?
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 04, 2009, 03:27:40 PM
the code widely available, just search this forum for rotate script, you'll find it, if you plan on using this for a main header banner, I believe there is a mod just for that purpose
Title: Re: Ad Management mod
Post by: Kat9119 on October 04, 2009, 03:47:22 PM
Quote from: johncccccc on October 04, 2009, 03:27:40 PM
the code widely available, just search this forum for rotate script, you'll find it, if you plan on using this for a main header banner, I believe there is a mod just for that purpose

Yeah, I think in the past I had found a few php scripts like that...somewhere.

Was only planning on using it between posts via this mod.

EDIT: I found that if I put say three different ads, in three different boxes, then gave them the same # in "Display ads within posts" that they would rotate and there was no need for other code.
Title: Re: Ad Management mod
Post by: Kathleen Chute on October 05, 2009, 01:30:51 PM
I am using the digital theme. My friend was able to get this in for me.
Thank you!  It is a wonderful mod and your script is brilliant.
I don't know anything about this computer language stuff.
But I can deer Hunt !! That doesnt help me much here.
Can I pay you to further modify this for my digital theme? I would like to have rotating ads. CJ ads are all static and I would love to rotate them. If you can contact me at [email protected] and give me some idea How I could get this done , I would be grateful.
Thank you
Kathleen Chute
Title: Re: Ad Management mod
Post by: babjusi on October 05, 2009, 01:32:39 PM
Quote from: fawnfoto on October 05, 2009, 01:30:51 PM
I am using the digital theme. My friend was able to get this in for me.
Thank you!  It is a wonderful mod and your script is brilliant.
I don't know anything about this computer language stuff.
But I can deer Hunt !! That doesnt help me much here.
Can I pay you to further modify this for my digital theme? I would like to have rotating ads. CJ ads are all static and I would love to rotate them. If you can contact me at [email protected] and give me some idea How I could get this done , I would be grateful.
Thank you
Kathleen Chute


I do believe that there is an ad rotator mod at the mod site. Why don''t you give it a try?
Title: Re: Ad Management mod
Post by: ellion on October 05, 2009, 01:59:28 PM
hi,

i have a problem with this mod, i dont understand how this happened or if there is a setting for it.

the ads are onlly diplayed to members who are logged in. guests are not shown any ads, if any thing i would want this reversed but i cannot find any way to change this.

any ideas?
Title: Re: Ad Management mod
Post by: TheListener on October 05, 2009, 02:01:15 PM
Have you checked the permissions for guests?
Title: Re: Ad Management mod
Post by: Kathleen Chute on October 05, 2009, 02:42:07 PM
Quote from: babjusi on October 05, 2009, 01:32:39 PM
Quote from: fawnfoto on October 05, 2009, 01:30:51 PM
I am using the digital theme. My friend was able to get this in for me.
Thank you!  It is a wonderful mod and your script is brilliant.
I don't know anything about this computer language stuff.
But I can deer Hunt !! That doesnt help me much here.
Can I pay you to further modify this for my digital theme? I would like to have rotating ads. CJ ads are all static and I would love to rotate them. If you can contact me at [email protected] and give me some idea How I could get this done , I would be grateful.
Thank you
Kathleen Chute


I do believe that there is an ad rotator mod at the mod site. Why don''t you give it a try?
Im not so savy, Can the to mods be mixed?
Thank you
Kathleen Chute
Title: Re: Ad Management mod
Post by: babjusi on October 05, 2009, 02:46:19 PM
Quote from: fawnfoto on October 05, 2009, 02:42:07 PM
Quote from: babjusi on October 05, 2009, 01:32:39 PM
Quote from: fawnfoto on October 05, 2009, 01:30:51 PM
I am using the digital theme. My friend was able to get this in for me.
Thank you!  It is a wonderful mod and your script is brilliant.
I don't know anything about this computer language stuff.
But I can deer Hunt !! That doesnt help me much here.
Can I pay you to further modify this for my digital theme? I would like to have rotating ads. CJ ads are all static and I would love to rotate them. If you can contact me at [email protected] and give me some idea How I could get this done , I would be grateful.
Thank you
Kathleen Chute


I do believe that there is an ad rotator mod at the mod site. Why don''t you give it a try?
Im not so savy, Can the to mods be mixed?
Thank you
Kathleen Chute

You can un-install this one and use only the ad rotator mod.
Title: Re: Ad Management mod
Post by: Kathleen Chute on October 05, 2009, 03:32:43 PM
Quote from: babjusi on October 05, 2009, 02:46:19 PM
Quote from: fawnfoto on October 05, 2009, 02:42:07 PM
Quote from: babjusi on October 05, 2009, 01:32:39 PM
Quote from: fawnfoto on October 05, 2009, 01:30:51 PM
I am using the digital theme. My friend was able to get this in for me.
Thank you!  It is a wonderful mod and your script is brilliant.
I don't know anything about this computer language stuff.
But I can deer Hunt !! That doesnt help me much here.
Can I pay you to further modify this for my digital theme? I would like to have rotating ads. CJ ads are all static and I would love to rotate them. If you can contact me at [email protected] and give me some idea How I could get this done , I would be grateful.
Thank you
Kathleen Chute


I do believe that there is an ad rotator mod at the mod site. Why don''t you give it a try?
Im not so savy, Can the to mods be mixed?
Thank you
Kathleen Chute

You can un-install this one and use only the ad rotator mod.
I was hoping to pay to just get the ad mod that I have tweeked.I like the freedom I have with this and It cost me money evertime I make a change or a mistake
Thank you
forever learning
Kathleen
Title: Re: Ad Management mod
Post by: babjusi on October 05, 2009, 03:44:30 PM
Quote from: fawnfoto on October 05, 2009, 03:32:43 PM
Quote from: babjusi on October 05, 2009, 02:46:19 PM
Quote from: fawnfoto on October 05, 2009, 02:42:07 PM
Quote from: babjusi on October 05, 2009, 01:32:39 PM
Quote from: fawnfoto on October 05, 2009, 01:30:51 PM
I am using the digital theme. My friend was able to get this in for me.
Thank you!  It is a wonderful mod and your script is brilliant.
I don't know anything about this computer language stuff.
But I can deer Hunt !! That doesnt help me much here.
Can I pay you to further modify this for my digital theme? I would like to have rotating ads. CJ ads are all static and I would love to rotate them. If you can contact me at [email protected] and give me some idea How I could get this done , I would be grateful.
Thank you
Kathleen Chute


I do believe that there is an ad rotator mod at the mod site. Why don''t you give it a try?
Im not so savy, Can the to mods be mixed?
Thank you
Kathleen Chute

You can un-install this one and use only the ad rotator mod.
I was hoping to pay to just get the ad mod that I have tweeked.I like the freedom I have with this and It cost me money evertime I make a change or a mistake
Thank you
forever learning
Kathleen

Do you mean to make the ads rotate with the ad mod? No need to pay for everything. If you use the search system you will find the solution to this as it has been covered many times. Then try to make the edits yourself. Remember as long as you make a backup of the file/s prior to editing them, you should be fine.
Title: Re: Ad Management mod
Post by: Muldoon on October 05, 2009, 08:28:54 PM
Hi everyone,

Is there anyone out there that can help me with what files/edits I need to make to this mod work within the Mesh theme?  I have the mod installed and it works successfully in the SMF default theme but does not work with the Mesh theme right now.

Thank you.
Title: Re: Ad Management mod
Post by: ellion on October 06, 2009, 03:33:08 AM
Quote from: TheListener on October 05, 2009, 02:01:15 PM
Have you checked the permissions for guests?

thats the one,

thanks  :D
Title: Re: Ad Management mod
Post by: babjusi on October 06, 2009, 07:07:49 AM
Quote from: Muldoon on October 05, 2009, 08:28:54 PM
Hi everyone,

Is there anyone out there that can help me with what files/edits I need to make to this mod work within the Mesh theme?  I have the mod installed and it works successfully in the SMF default theme but does not work with the Mesh theme right now.

Thank you.

Try the mod parser for the edits, located under the download link.
Title: Re: Ad Management mod
Post by: Muldoon on October 06, 2009, 10:30:02 AM
I
Quote from: babjusi on October 06, 2009, 07:07:49 AM
Quote from: Muldoon on October 05, 2009, 08:28:54 PM
Hi everyone,

Is there anyone out there that can help me with what files/edits I need to make to this mod work within the Mesh theme?  I have the mod installed and it works successfully in the SMF default theme but does not work with the Mesh theme right now.

Thank you.

Try the mod parser for the edits, located under the download link.

I gave that a try however some of the edits to not match up so I'm wondering where I need to place the edits.  Also there is an edit to add something and it seems to already be there, so I'm not sure if I still need to add it.

That's why I'm a bit confuse and would love it if someone could walk me through this so I don't screw anything up :)

Thank you.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 06, 2009, 10:41:50 AM
Quote from: Muldoon on October 06, 2009, 10:30:02 AM
I gave that a try however some of the edits to not match up so I'm wondering where I need to place the edits.  Also there is an edit to add something and it seems to already be there, so I'm not sure if I still need to add it.

That's why I'm a bit confuse and would love it if someone could walk me through this so I don't screw anything up :)

Thank you.

Yea, lol.. of course, if it did match up the files would not have failed the test, where the parser says FIND, select only some of the code and find it, if a search of the partial code only finds one result then its safe to say that's the right place to edit
Title: Re: Ad Management mod
Post by: Muldoon on October 06, 2009, 11:12:30 AM
Hi johncccccc,  I understand that as I went through all four files that were edited in the default theme and looked at them in the Mesh theme.

The files I need to tweak for the Mesh theme are:

BoardIndex.template.php
Display.template.php
MessageIndex.template.php
index.template.php

Now I think I was able to make all the modifications to the following files successfully:

BoardIndex.template.php
MessageIndex.template.php

First question -- For Display.template.php

It says to add this code after a particular line.  However, this code already shows below the line.  So my question is, do I still need to add it?

Quote
   //Display ads on the thread page
   if (function_exists("show_threadAds"))
   {
      $ads = show_threadAds();   
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);
   }

Final questions -- index.template.php

the final two edits in this file do not match up and I'm wondering where I need to place them in Mesh's file:


There are two places where this template_menu is found, one ending with a:  () ,     and one with a:   ()  {  but NOT a ();
Find:
Quote
template_menu();

Add after:
Quote

   //Below the menu ads
   if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
   {
      $ads = show_indexAds();   
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);

      //Tower left Ads
      $ads = show_towerleftAds();
      if(!empty($ads))
         echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

      unset($ads);
      //Tower Right Ads
      $ads = show_towerrightAds();   
      if(!empty($ads))
         echo '<table><tr><td width="100%" valign="top">';
      unset($ads);
   }   




This "Powered by" line does not exist in the file.
Find:
Quote
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!


Add Before:
Quote
   //Close table for towerright ads
   if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
   {
      $ads = show_towerrightAds();   
      if(!empty($ads))
         echo '</td><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td></tr></table>';

      unset($ads);
      //Close table for towerleft ads
      $ads = show_towerleftAds();   
      if(!empty($ads))
         echo '</td></tr></table>';
      unset($ads);

      //Show ads on the bottom of the page
      $ads = show_bottomAds();
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);
   }

Any advice would be great!  Thank you.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 06, 2009, 12:33:18 PM
hmmm, attach the files and I will see what I can do

also, add some info
any mods installed, which theme you have
Title: Re: Ad Management mod
Post by: Muldoon on October 06, 2009, 12:44:48 PM
Hi johncccccc,

Thank you for taking a look at this.  I'm attaching two files from the Mesh Theme:

1)  index.template.php
2)  display.template.php

Additional info:
SMF 1.1.10
TinyPortal v0.9.8
Custom BBCode 2.00
Ad Management 2.3.1

Running the Mesh Theme.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 06, 2009, 01:05:54 PM
For the display.template.php, if the code is already there don't add it.

as for index.template.php, its because your theme is not based off of the default theme, thus the find code does not exist and we cant know where to edit, however, if you provide a link to your forum, I can try to see where that code would go on your theme :)
Title: Re: Ad Management mod
Post by: Muldoon on October 06, 2009, 01:11:37 PM
Ok, thank johncccccc,

I will leave the display file as is regarding that specific change.

Also, here is a link to my forum:

http://www.thethirdoption.net/smf/index.php?action=forum
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 06, 2009, 01:18:09 PM
ok I suspect, that you would add the code before the following line

Quote
   echo '
                        <span class="smalltext">', theme_copyright(), ' <br />

Im not 100% experienced with coding, but I know thats where the copyright info is displayed.
After making a backup, make those changes and be sure to add an ad to display at the bottom of all pages in ad management admin page for test, then ad that code above that line, if it does not work, replace backup and report back :)
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 06, 2009, 01:36:47 PM
BUMP:
I just tested this edit on my test forum, I used my mod since it calls the same Find code, and the edit will work fine! :)

(http://i38.tinypic.com/v7w12c.png)'

I added the ad, see the red box,

EDIT: Added your index.template.php file :)
Title: Re: Ad Management mod
Post by: TheListener on October 06, 2009, 01:42:26 PM
Although the google ad shows at the bottom of the page, the advert I want ato show below the best 3 mod shows on the default theme but not the theme I am using.

Where should I be looking?


EDIT: Failure to comply will result in assimilation by the Borg.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 06, 2009, 01:56:53 PM
Quote from: TheListener on October 06, 2009, 01:42:26 PM
Although the google ad shows at the bottom of the page, the advert I want ato show below the best 3 mod shows on the default theme but not the theme I am using.

Where should I be looking?

Thats weird, Im trying to see what you mean, I cannot navigate your forum very well, where am I supposed to be looking?
Title: Re: Ad Management mod
Post by: TheListener on October 06, 2009, 01:58:54 PM
Give me a couple seconds bud.
Title: Re: Ad Management mod
Post by: TheListener on October 06, 2009, 02:01:31 PM
There's a pm waiting for ya John
Title: Re: Ad Management mod
Post by: Muldoon on October 06, 2009, 03:50:06 PM
Thank you!  I will give it a shot and let you know how it turns out! :)

Quote from: johncccccc on October 06, 2009, 01:36:47 PM
BUMP:
I just tested this edit on my test forum, I used my mod since it calls the same Find code, and the edit will work fine! :)

(http://i38.tinypic.com/v7w12c.png)'

I added the ad, see the red box,

EDIT: Added your index.template.php file :)
Title: Re: Ad Management mod
Post by: Muldoon on October 06, 2009, 04:08:22 PM
johncccccc,

Also, do you have any idea where would I place this code:

Quote from: Muldoon on October 06, 2009, 11:12:30 AM

Find:
Quote
template_menu();

Add after:
Quote

   //Below the menu ads
   if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
   {
      $ads = show_indexAds();   
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);

      //Tower left Ads
      $ads = show_towerleftAds();
      if(!empty($ads))
         echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

      unset($ads);
      //Tower Right Ads
      $ads = show_towerrightAds();   
      if(!empty($ads))
         echo '<table><tr><td width="100%" valign="top">';
      unset($ads);
   }   


Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 06, 2009, 04:34:40 PM
That edit for index.template.php

try adding the code right before

function template_main_below()


That should do it
Title: Re: Ad Management mod
Post by: Muldoon on October 06, 2009, 04:45:44 PM
Thanks johncccccc,

Looks like the ad works on the bottom.  However when I click to display it on every page below the menu, nothing shows up...
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 06, 2009, 05:06:20 PM
hmmm I only know so much, I will take a look at it later :)
Title: Re: Ad Management mod
Post by: HecKel on October 07, 2009, 09:53:31 AM
plans for the update to SMF 2.0 RC2?
Title: Re: Ad Management mod
Post by: Muldoon on October 07, 2009, 09:08:53 PM
Quote from: Muldoon on October 06, 2009, 04:45:44 PM
Thanks johncccccc,

Looks like the ad works on the bottom.  However when I click to display it on every page below the menu, nothing shows up...


johncccccc,

Also, with the ad placement on the bottom.  I'd like to move the ad spot up to just above the bottom color so that it shows over the black background.  Any thoughts on this?

Thank you so much for your help so far. I really appreciate it!
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 07, 2009, 09:37:38 PM
I tried to see the ad on your forum, even signed up, cant see any ad at all ???
Title: Re: Ad Management mod
Post by: sshahnawaz on October 08, 2009, 07:05:29 AM
Sorry to ask you a very common question, but I found it difficult to implement and after searching I found no instructions for manual installation of this mod.

I tell you first what I did so that you better understand my problem. I went to download the ad management mod and I downloaded it. I knew this won't work on my theme which is 2ExtremeBlue so I started to edit my files manually by clicking parse and getting the manual edit instructions.

Now my problem is, my theme consists no such files as the default theme has. Is it OK to just edit the files present in my theme as directed and then edit the files of default themes too and in the last just make the changes to file locations ... i.e. getting the new files which this mod has and then placing them to the right place? Any input will be highly appreciated. Thanks in anticipation.

NOTE: Please DO QUOTE my question or WRITE my name in your answer so that I better understand that you are talking to me, coz sometimes I don't understand. Again sorry for this problem.  :)
Title: Re: Ad Management mod
Post by: Yahmez on October 08, 2009, 05:37:12 PM
Quote from: sshahnawaz on October 08, 2009, 07:05:29 AM
Sorry to ask you a very common question, but I found it difficult to implement and after searching I found no instructions for manual installation of this mod.

I tell you first what I did so that you better understand my problem. I went to download the ad management mod and I downloaded it. I knew this won't work on my theme which is 2ExtremeBlue so I started to edit my files manually by clicking parse and getting the manual edit instructions.

Now my problem is, my theme consists no such files as the default theme has. Is it OK to just edit the files present in my theme as directed and then edit the files of default themes too and in the last just make the changes to file locations ... i.e. getting the new files which this mod has and then placing them to the right place? Any input will be highly appreciated. Thanks in anticipation.

NOTE: Please DO QUOTE my question or WRITE my name in your answer so that I better understand that you are talking to me, coz sometimes I don't understand. Again sorry for this problem.  :)

sshahnawaz,

What you want to do is this:
Copy whatever templates you are missing in the 2ExtremeBlue theme from the default (core). But only the files required by the mod of course. Then edit the files you copied over. In 2.0 you can copy the files from within the admin area but I don't know if you can in 1.1.x or not.
Title: Re: Ad Management mod
Post by: Muldoon on October 08, 2009, 09:37:59 PM
Quote from: johncccccc on October 07, 2009, 09:37:38 PM
I tried to see the ad on your forum, even signed up, cant see any ad at all ???

Hi johncccccc,

I haven't gone ahead with it yet, because I want to implement everything at once. 

I guess all I need to figure out is have to get the ad to show below the menu and then to bump up the code on the bottom somehow so it is out of the red across the bottom of my site and sits just above on the blackground color. 

As it stands now the ad shows up in the red on the bottom, but nothing shows up under the menu.  I think it has to do with that last mod about the finding the 'template_menu section and adding that last portion of the code somewhere...
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 08, 2009, 09:46:44 PM
well, I would need to see exactly what you mean, if you make the edit as stated above, get it going, then I can look at it and see where to place it after

as for the template_menu, I already said where I think the code would fit in that theme, take a look in some of the recent posts in this thread.

Try to install the ad management mod then set up an ad for the bottom of all pages, then we can tune it up to your liking afterward :)
Title: Re: Ad Management mod
Post by: Muldoon on October 08, 2009, 09:49:03 PM
Ok I"ll get it going and will be back in a minute! Thanks john!
Title: Re: Ad Management mod
Post by: Muldoon on October 08, 2009, 09:55:33 PM
Ok, so I have it up. You'll see it on the bottom john.  These are boxes I checked:

Display ads on every page right below the menu

Display ads on the bottom of the page
Title: Re: Ad Management mod
Post by: Muldoon on October 08, 2009, 10:00:42 PM
I placed this code


//Below the menu ads
   if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
   {
      $ads = show_indexAds();   
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);

      //Tower left Ads
      $ads = show_towerleftAds();
      if(!empty($ads))
         echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

      unset($ads);
      //Tower Right Ads
      $ads = show_towerrightAds();   
      if(!empty($ads))
         echo '<table><tr><td width="100%" valign="top">';
      unset($ads);
   }   


right before:


function template_main_below()


Earlier I had placed it after one of the 'template_menu' s but it placed the add to the right of the menu in the gray area, not below in the black...  Would you like me try and do that again?
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 08, 2009, 10:03:25 PM
Hmmm I still don't see them, as guest or admin, if you could make a screen shot of what I'm supposed to be looking for I may see it

/me see's the other post

Well since I don't see the ad try that again I suppose :)
Title: Re: Ad Management mod
Post by: Muldoon on October 08, 2009, 10:07:26 PM
Wow, I wonder why I'm the only one that can see it.  I logged out, can't see it, logged in as a normal user and can't see it either.  Ok, let me replicate the top menu ad in that gray area and I'll see about a user being able to view the ad...
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 08, 2009, 10:09:59 PM
its probably not that, more than likely its a permission issue, check the permission settings
Title: Re: Ad Management mod
Post by: Muldoon on October 08, 2009, 10:16:12 PM
In Mesh theme index.template.php
Find:

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;


Add after:

  //Below the menu ads
   if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
   {
      $ads = show_indexAds();   
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);

      //Tower left Ads
      $ads = show_towerleftAds();
      if(!empty($ads))
         echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

      unset($ads);
      //Tower Right Ads
      $ads = show_towerrightAds();   
      if(!empty($ads))
         echo '<table><tr><td width="100%" valign="top">';
      unset($ads);
   }   


OK, so when I did this, maybe we are getting close.  It places the banner ad in the gray area just above the menu in the center, as I centered it. 

But I don't understand why I am the only one that can see the ads?  Non of them are checked for being disabled...

On another note, I did find that under Admin > Current Theme >

There is an option to check the box for 'Support for Ad management Mod'  However when I do this (without manually editing the code the banner ad shows up properly below the menu in the black, below the gray color, but then no ad shows up on the bottom of the page...

But I don't know if it's just me that can see it either...
Title: Re: Ad Management mod
Post by: Muldoon on October 08, 2009, 10:18:25 PM
'Enable Ads' in permission settings...who would have thought?  :)

So you should be able to view the ads now top and bottom
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 08, 2009, 10:58:47 PM
I can see the ad at the bottom
I can see the ad at the top,

Looks like those edits were good calls, pats self on back lol..

about moving the ads, I would leave them there, they look good there :)
Title: Re: Ad Management mod
Post by: Muldoon on October 08, 2009, 11:02:51 PM
Well thanks for taking a look and helping me out johncccccc.  I will leave them for now.  I would like to ultimately see how they look in the black just below the gray and just above the red on the bottom some time...  So if you think of anything, just let me know :).  Thank you so much!

And I will keep trying on my end.
Muldoon
Title: Re: Ad Management mod
Post by: Muldoon on October 08, 2009, 11:14:09 PM
johncccccc!  I figured out how to get the ad in the black, however I just can't seem to center it...haha.  but it below the menu, and actually below the linktree now.  How does it look???  :)

EDIT:  Scrap that...when I click into the boards, it's all messed up... I'll have to put it back I think.
Title: Re: Ad Management mod
Post by: MultiformeIngegno on October 11, 2009, 06:42:39 AM
Quote from: HecKel on October 07, 2009, 09:53:31 AM
plans for the update to SMF 2.0 RC2?
Quote...
Title: Re: Ad Management mod
Post by: DUNBAR on October 13, 2009, 11:42:29 PM
 I'm new to SMF and I've been able to upload this so far as a mod:


Files in archive ad_mod_v2-3-5_SMF_v2-0RC1-1.zip:
1.Ads.english.php (11713 bytes)
2.Ads.english-utf8.php (11712 bytes)
3.Ads.php (12438 bytes)
4.Ads.template.php (25340 bytes)
5.install.php (2398 bytes)
6.install.xml (12762 bytes)
7.LoadAds.php (8613 bytes)
8.package-info.xml (1145 bytes)
9.readme.txt (2156 bytes)



I'm assuming that I have to upload this package through my FTP client in order for this to work?

I'm having difficulty with getting to know this new format. Help is appreciated.



Title: Re: Ad Management mod
Post by: kyoote on October 16, 2009, 10:47:21 AM
hello, i have SMF 2.0 RC1.2 with default theme "classic Yabb SE Theme"

I install 2 packages, HIDE TAG and Ad management.

My ads are not showing up and I have also tried to test it by inputting

<center>THIS IS A TEST TO SEE IF THE AD MANAGEMENT MOD IS WORKING</center>
in the content area,

with Display ads within posts as 1,2  and Display ads on the bottom of the page  CHECKED.

I dont see the text either

Under settings, only "Ads within posts look like actual posts" is checked.

Anyone know why it is not showing?
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 16, 2009, 10:52:42 AM
Have you tried other settings?

Things to check out before editing any files.

Check General Permissions, check off that ads are on for every membergroup you want to see them.

Check, the mods own settings tab, Enable ads should be checked.

Check those and then post back here with the news :)
Title: Re: Ad Management mod
Post by: kyoote on October 16, 2009, 11:04:28 AM
thanks for fast reply.
I cant seem to find the

Check General Permissions, check off that ads are on for every membergroup you want to see them.

Check, the mods own settings tab, Enable ads should be checked.


I am checking under members --> permissions --> i dont see anything
and there is no Enable ads when i goto the the Ad Management under Configuration
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 16, 2009, 11:19:51 AM
Sorry, It actually says "Disable All Ads" make sure its unchecked.

index.php?action=admin;area=ads;sa=main;sa=settings <thats the location of the settings page.

index.php?action=admin;area=permissions <the general permissions area - it should be in there, its says "Enable Ads" however as admin this setting does not matter, if you cant see ads as administrator then the problem is elsewhere.
Title: Re: Ad Management mod
Post by: Bolerro on October 17, 2009, 12:20:26 PM
Is there any way to setup the various ad locations for different membergroups?

I want guests to see all ad locations that I have ads assigned to. Then I want registered users to see a few less ads. And then finally I want full members and admins to see only one ad at the bottom.
Title: Re: Ad Management mod
Post by: P@P on October 17, 2009, 09:56:21 PM
Any news regarding SMF 2.0 RC2?
Title: Re: Ad Management mod
Post by: replay on October 17, 2009, 10:27:28 PM
is ad management ready for 2.0 rc1.2 yet

Cheers
Title: Re: Ad Management mod
Post by: P@P on October 18, 2009, 10:32:01 AM
replay, I said RC2, not RC1.2.

ad management isn't ready for SMF 2.0 RC2 yet.
Title: Re: Ad Management mod
Post by: wilkins on October 19, 2009, 09:40:24 AM
I installed this and did not work for me, I am sure it was something I was doing.

I pasted the .js code in the text area, in the Admin section.  It was providing me a space, but the ad never showed.

So now I uninstalled it and deleted it and now have this below the SMF machines footer.  Can anyone help me delete this?

"); pageTracker._trackPageview(); } catch(err) {}
Title: Re: Ad Management mod
Post by: Libelcom on October 19, 2009, 12:14:45 PM
Hi, there,

I installed this ad-mod. It works well, but each and every ad appears 4 - 5 times on my forum! Strange. Could someone explain to me why and how to solve it? Thank you!

PS: I am using SMP 1.1.10 with TinyPortal and Ad_mod_v2-3-1_SMF_V1-1-X
Title: Re: Ad Management mod
Post by: ApplianceJunk on October 19, 2009, 05:47:05 PM
What happen to the owners own forum?

http://www.smfads.com

Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 19, 2009, 05:49:09 PM
Quote from: ApplianceJunk on October 19, 2009, 05:47:05 PM
What happen to the owners own forum?

http://www.smfads.com

AFAIK, The domain was for sale for a while, they probably removed the index.php file by the looks of it
Title: Re: Ad Management mod
Post by: jerm on October 20, 2009, 01:31:51 AM
Quote from: ♪ JohnCcCcCc ♫ on October 19, 2009, 05:49:09 PM
Quote from: ApplianceJunk on October 19, 2009, 05:47:05 PM
What happen to the owners own forum?

http://www.smfads.com

AFAIK, The domain was for sale for a while, they probably removed the index.php file by the looks of it

Someone else decided it would be fun to remove the index.php file.
Title: Re: Ad Management mod
Post by: ellion on October 20, 2009, 04:47:30 AM
i have installed this and have it working great. there is something i would like to know how to modify.

when placing ads in the section after last post.  the background to the ads is grey but my forum uses a white background to posts. this makes the ads look odd.

is there anyway to change this?
Title: Re: Ad Management mod
Post by: hartiberlin on October 21, 2009, 05:03:12 PM
Hmm,
seems the SMFads Mod will soon be dead:

Here he sells his domain:


http://www.smfads.com/sale/


Will there be now a version for the upcoming version SMF 2 RC2 ?

Or what other Mod could be used to place Google Adsense Ads between postings ?

Many thanks.
Title: Re: Ad Management mod
Post by: MultiformeIngegno on October 22, 2009, 04:50:02 AM
Quote from: hartiberlin on October 21, 2009, 05:03:12 PM
Will there be now a version for the upcoming version SMF 2 RC2 ?
Mmmh... I think we need to find another dev... :P
Title: Re: Ad Management mod
Post by: P@P on October 22, 2009, 10:35:16 AM
One of the most popular mods without Dev? How can SMF let this happen?
Title: Re: Ad Management mod
Post by: madfiddler on October 22, 2009, 02:37:44 PM
What a shame. I'm sure people would have paid a small amount to keep this going? Perhaps SMF could take it on and make it a benefit of Charter Membership or something?
Title: Re: Ad Management mod
Post by: nciboy on October 23, 2009, 04:09:14 PM
I just installed Ad mod correctly. It said installed correctly.

I cannot find the panel to control the ads anywhere.  The directions say this:

"It can be found in the Administration panel under the heading "Configuration". There is a new link there called "Ad Management" .Clicking on this link will bring up the configuration screen for the Ad Management Mod. In here you will see 4 tabs, Edit ads, Add ads, Reports and Credits."

You can see my menu below. I check ed in all the selections and I cannot find "Ad Management."

Main
Administration Center
Support and Credits
News and newsletters
Packages

Configuration
Features and Options
Server Settings
Current Theme
Themes and Layout

Pretty URLs
Forum
Boards
Posts and Topics
Calendar
Search
Smileys and Message Icons
Attachments and Avatars
Members
Members
Membergroups
Permissions
Registration
Ban List
Maintenance
Forum Maintenance
Generate Reports
Forum Error Log

Please help.
Title: Re: Ad Management mod
Post by: octavia77 on October 23, 2009, 04:10:13 PM
I have problem on my site najdijeta.com/forum
Only I can see ad's when I'm longed in as admin, and when I log out or log in as different user I don't see google ads.
My smf version is 1.1.10 and ad_mod_v2-3-1
Please help me.
Title: Re: Ad Management mod
Post by: ausbiz on October 23, 2009, 05:55:20 PM
PLEASE HELP

where do i have top uplaod this managemt ads mod ? in which folder ?

also i dotn udnerstand the    instructions ? there are modification to do to the
script ? or just uploading ?
thanks in advance
regards truly
paul
Title: Re: Ad Management mod
Post by: octavia77 on October 23, 2009, 06:50:22 PM
Quote from: octavia77 on October 23, 2009, 04:10:13 PM
I have problem on my site najdijeta.com/forum
Only I can see ad's when I'm longed in as admin, and when I log out or log in as different user I don't see google ads.
My smf version is 1.1.10 and ad_mod_v2-3-1
Please help me.

I have deleted smf version 1.0 and put smf 2.0 and it's the same thing. Only administrator(me) can see ads and nobody else.
Title: Re: Ad Management mod
Post by: HecKel on October 23, 2009, 07:57:32 PM
You have to change the group's permissions and let them see ads, just that.
Title: Re: Ad Management mod
Post by: lunicell on October 23, 2009, 11:44:15 PM
where can i download these files?
i cannot find them
--------------------------------------------------------------------------------------
Move the included file "Ads.php" to "./Sources".
Move the included file "LoadAds.php" to "./Sources".
Move the included file "Ads.template.php" to "./Themes/default".
Move the included file "Ads.english.php" to "./Themes/default/languages".
Move the included file "Ads.english-utf8.php" to "./Themes/default/languages".
-------------------------------------------------------------------------------------------
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 24, 2009, 12:01:52 PM
Quote from: lunicell on October 23, 2009, 11:44:15 PM
where can i download these files?
i cannot find them
--------------------------------------------------------------------------------------
Move the included file "Ads.php" to "./Sources".
Move the included file "LoadAds.php" to "./Sources".
Move the included file "Ads.template.php" to "./Themes/default".
Move the included file "Ads.english.php" to "./Themes/default/languages".
Move the included file "Ads.english-utf8.php" to "./Themes/default/languages".
-------------------------------------------------------------------------------------------

Those files are inside the mod package (zip), they should be uploaded if you have installed the mod, you can manually upload them via FTP if your having problems with the package manager.
Title: Re: Ad Management mod
Post by: rebus on October 24, 2009, 04:05:43 PM
Just installed ad_mod_v2-3-1_SMF_v1-1-x on my SMF 1.1.10 but I can  see no ads  :(
Ads are not disabled from the settings panel and permissions seem ok  ???
Title: Re: Ad Management mod
Post by: MaXiForum.cz on October 24, 2009, 04:08:09 PM
You must install modification on your theme! ;)
Title: Re: Ad Management mod
Post by: rebus on October 24, 2009, 04:25:56 PM
Quote from: MaXiForum.cz on October 24, 2009, 04:08:09 PM
You must install modification on your theme! ;)

That is, installing it through the package manager is not enough?  ???
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 24, 2009, 05:01:38 PM
Quote from: rebus on October 24, 2009, 04:25:56 PM
Quote from: MaXiForum.cz on October 24, 2009, 04:08:09 PM
You must install modification on your theme! ;)

That is, installing it through the package manager is not enough?  ???

When installing via the package manager, at the bottom of all the file edits list, click "Install in other Themes", check off the files in your theme.
Title: Re: Ad Management mod
Post by: rebus on October 24, 2009, 06:02:43 PM
Quote from: ♪ JohnCcCcCc ♫ on October 24, 2009, 05:01:38 PM
When installing via the package manager, at the bottom of all the file edits list, click "Install in other Themes"

I don't see any button like that  :o
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 24, 2009, 06:32:13 PM
Quote from: rebus on October 24, 2009, 06:02:43 PM
Quote from: ♪ JohnCcCcCc ♫ on October 24, 2009, 05:01:38 PM
When installing via the package manager, at the bottom of all the file edits list, click "Install in other Themes"

I don't see any button like that  :o

Do you have SMF 2.x or 1.x.x.x ?

I know its there in SMF 2.x, not 100% sure about 1.x.x.x
Title: Re: Ad Management mod
Post by: rebus on October 24, 2009, 06:38:56 PM
Quote from: ♪ JohnCcCcCc ♫ on October 24, 2009, 06:32:13 PM
Quote from: rebus on October 24, 2009, 06:02:43 PM
Quote from: ♪ JohnCcCcCc ♫ on October 24, 2009, 05:01:38 PM
When installing via the package manager, at the bottom of all the file edits list, click "Install in other Themes"

I don't see any button like that  :o

Do you have SMF 2.x or 1.x.x.x ?

I know its there in SMF 2.x, not 100% sure about 1.x.x.x

In fact I've got 1.1.10

And you're right, it's just installed in the default theme, but I use another one  :(
Title: Re: Ad Management mod
Post by: P@P on October 24, 2009, 06:39:47 PM
No, that functionality only exists on SMF 2.0. If you have 1.1.x you'll have to edit your templates by hand.
Title: Re: Ad Management mod
Post by: lunicell on October 24, 2009, 08:30:42 PM
Quote from: ♪ JohnCcCcCc ♫ on October 24, 2009, 12:01:52 PM
Those files are inside the mod package (zip), they should be uploaded if you have installed the mod, you can manually upload them via FTP if your having problems with the package manager.

Thank you very much!
i am a Beginner
Title: Re: Ad Management mod
Post by: trekkie2444 on October 24, 2009, 10:08:30 PM
Can I have the ads visible to guests without having them appear as posts but having them in the posts?
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on October 24, 2009, 11:15:28 PM
Quote from: trekkie2444 on October 24, 2009, 10:08:30 PM
Can I have the ads visible to guests without having them appear as posts but having them in the posts?

I'm pretty sure that can be coded up, but as far as the mod goes there is no option for displaying ads actually in someones post.
Title: Re: Ad Management mod
Post by: trekkie2444 on October 25, 2009, 01:15:51 AM
No, I meant that I wanted them to show up as they do to members in the blank space after the first post but to guests. They don't show up to guests unless I set it up to show the ad as a post, which I didn't want to do for layout issues.
Title: Re: Ad Management mod
Post by: rebus on October 25, 2009, 01:29:31 PM
Quote from: P@P on October 24, 2009, 06:39:47 PM
No, that functionality only exists on SMF 2.0. If you have 1.1.x you'll have to edit your templates by hand.

I will try then, thanks!
Title: Re: Ad Management mod
Post by: replay on October 26, 2009, 06:23:57 PM
is this mod ready for 2.0 rc2 yet


Cheers

Replay
Title: Re: Ad Management mod
Post by: collins465 on October 26, 2009, 07:25:33 PM
please how can i put ads under the first post just like the image below.
am using smf 1.1.10 @ babylon theme

(http://i33.tinypic.com/ajm5ip.jpg)

thanks
Title: Re: Ad Management mod
Post by: TheListener on October 26, 2009, 10:10:37 PM
As the mod author has got smfads for sale (been approx a year now I think) isn't it time someone did an updated version of this?
Title: Re: Ad Management mod
Post by: hartiberlin on October 26, 2009, 11:24:00 PM
Quote from: TheListener on October 26, 2009, 10:10:37 PM
As the mod author has got smfads for sale (been approx a year now I think) isn't it time someone did an updated version of this?

I hope user VBGamer will soon have his admod ready.

Regards, Stefan.
Title: Re: Ad Management mod
Post by: ccraciun on October 27, 2009, 12:43:43 PM
It is possible to insert the ads inside the posts?
Title: Re: Ad Management mod
Post by: Bigguy on October 29, 2009, 01:01:19 PM
Quote from: TheListener on October 26, 2009, 10:10:37 PM
As the mod author has got smfads for sale (been approx a year now I think) isn't it time someone did an updated version of this?

I do believe it is being worked on.
Title: Re: Ad Management mod
Post by: abhishek_del on November 01, 2009, 03:49:38 PM
Hello everyone,

I have successfully installed SMF Ads over SMF 1.1.10, using default theme and also Abc theme. I have enabled the permissions for regular visitors and Global mods to be able to view that..pasted an HTML code, all the options are correctly enabled yet I cannot see my AD. Any reason there could be?
Title: Re: Ad Management mod
Post by: saw___13 on November 01, 2009, 06:38:08 PM
y i'm not able to dl it ?
Title: Re: Ad Management mod
Post by: TheListener on November 01, 2009, 06:39:45 PM
Quote from: saw___13 on November 01, 2009, 06:38:08 PM
y i'm not able to dl it ?

Can you give more detailed information please.
Title: Re: Ad Management mod
Post by: abidejaz4u on November 02, 2009, 01:44:52 AM
i m using AddManagement Package ....i set it ads to between two post..its working fine...but now i create new board...Ads not displaying in new section...What can i Do?
Title: Re: Ad Management mod
Post by: gumnaam on November 03, 2009, 10:04:25 PM
i just tried to install by typing in address bar mydomain.com/install.php, then i got this eror message,

Fatal error: Function name must be a string in /home/ixtodayc/public_html/nribook/forum/install.php on line 8  

plz help.

thanks
Title: Re: Ad Management mod
Post by: lindseylakeshore on November 04, 2009, 06:10:31 PM
Hello I have ad mod running on 1.1.10 and want 4 ads to run across the top of the forum but can only place one how do i edit it for four across if i place a second one it goes right over the previous ad, any ideas?? thanks
Title: Re: Ad Management mod
Post by: gumnaam on November 04, 2009, 08:21:51 PM
Quote from: gumnaam on November 03, 2009, 10:04:25 PM
i just tried to install by typing in address bar mydomain.com/install.php, then i got this eror message,

Fatal error: Function name must be a string in /home/ixtodayc/public_html/nribook/forum/install.php on line 8  

HI EVERY ONE, no body is there to help me?
Title: Re: Ad Management mod
Post by: smp420 on November 04, 2009, 10:53:36 PM
Quote from: lindseylakeshore on November 04, 2009, 06:10:31 PM
Hello I have ad mod running on 1.1.10 and want 4 ads to run across the top of the forum but can only place one how do i edit it for four across if i place a second one it goes right over the previous ad, any ideas?? thanks
Just put them in a table

<table>
<tr>
<td>
image1 code here
</td>
<td>
image2 code here
</td>
<td>
image3 code here
</td>
<td>
image4 code here
</td>
</tr>
</table>

Quote from: gumnaam on November 03, 2009, 10:04:25 PM
i just tried to install by typing in address bar mydomain.com/install.php, then i got this eror message,

Fatal error: Function name must be a string in /home/ixtodayc/public_html/nribook/forum/install.php on line 8  

plz help.

thanks
It sounds like you are trying to install smf try here http://www.simplemachines.org/community/index.php?board=10.0
Title: Re: Ad Management mod
Post by: Harvester on November 05, 2009, 12:59:49 PM
Is there anywhere to make the post ads not use the "sticky" post background color? Id like to be able to make it a different background color.
Title: Re: Ad Management mod
Post by: Isabelle88 on November 05, 2009, 04:55:24 PM
I have one quick question before I install it, i have to do it with parse because I have trouble applying mods,  what page do i edit to place my own adsense ID?

and this part: this file should not be able to execute standalone. You may have to run the following queries manually.

how do i do that? in easy terms.

thank you
Title: Re: Ad Management mod
Post by: Harvester on November 05, 2009, 05:00:13 PM
Once you have the mod installed, you simply create a new add and paste your adsense code in the form. Its very simple.
Title: Re: Ad Management mod
Post by: smp420 on November 05, 2009, 05:38:55 PM
Quote from: Harvester on November 05, 2009, 12:59:49 PM
Is there anywhere to make the post ads not use the "sticky" post background color? Id like to be able to make it a different background color.

change all instances of windowbg3 to windowbg2
if you want to have the color different than this let me know and I will tell you how
if (function_exists("show_posts"))
{
if ($adpost = show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '

<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><img src="', $message['icon_url'] . '" alt="" border="0" /></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>
<div class="smalltext">&#171; <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' &#187;</div></td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
', $reply_button, '';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
', $reply_button, '';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
', $modify_button, '';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
', $remove_button, '';

// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
', $split_button, '';
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</div>
</td>
</tr>
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp;', $txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}
else
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr>
<td class="windowbg3">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</td>
</tr>
</table>
</td></tr>';
}

}

}

if(function_exists("show_lastpostAds") && function_exists("show_posts"))
{
if(($ads = show_lastpostAds()) && !show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '

<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle">&nbsp;</td>
<td valign="middle">
&nbsp;</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
', $reply_button, '';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
', $reply_button, '';


echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">', $ads['type'] == 0 ? $ads['content'] : eval($ads['content']) , '</div>
</td>
</tr>
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp;', $txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}
else
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr>
<td class="windowbg3">', $ads['type'] == 0 ? $ads['content'] : eval($ads['content']) , '</td>
</tr>
</table>
</td></tr>';

}

}]]>
Title: Re: Ad Management mod
Post by: Harvester on November 06, 2009, 11:42:34 AM
Thank you SMP :)

which file am I looking to edit SMP?
Title: Re: Ad Management mod
Post by: jclawson27 on November 06, 2009, 12:29:28 PM
Hi, I'm still a newbie when it comes to all of this so your help is needed just on some clarification so that I don't screw up my site too horrible lol.

So I did all the code changes and uploaded them, but I'm confused on install.php file. I don't know what to do here, don't know how to run queries manually.

I am using 1.1.10
Title: Re: Ad Management mod
Post by: smp420 on November 06, 2009, 06:03:02 PM
Quote from: Harvester on November 06, 2009, 11:42:34 AM
Thank you SMP :)

which file am I looking to edit SMP?
its in the display.template make sure you only change the ad management code
Quote from: jclawson27 on November 06, 2009, 12:29:28 PM
Hi, I'm still a newbie when it comes to all of this so your help is needed just on some clarification so that I don't screw up my site too horrible lol.

So I did all the code changes and uploaded them, but I'm confused on install.php file. I don't know what to do here, don't know how to run queries manually.

I am using 1.1.10

You shouldnt have to do this just use the package manager and it should be fine
Title: Re: Ad Management mod
Post by: abidejaz4u on November 07, 2009, 02:47:42 AM
Any body here for Help me :(
Title: Re: Ad Management mod
Post by: bburg5 on November 07, 2009, 11:13:07 PM
I am looking for a rotating option to add to my page. I want the ads to rotate with each click...

Does this exist on here?

Thanks
Title: Re: Ad Management mod
Post by: Bigguy on November 07, 2009, 11:52:34 PM
Show two different ads in one place, on page refresh the ad will change.
Title: Re: Ad Management mod
Post by: bburg5 on November 09, 2009, 12:35:08 PM
Yes, That is what I am looking for.... Do you know af any?
Title: Re: Ad Management mod
Post by: Rowdy on November 09, 2009, 01:33:26 PM
Is this mod compatible with SMF RC2?

Thanks!
Title: Re: Ad Management mod
Post by: Bruno36 on November 09, 2009, 02:37:12 PM
Hello!

A version for SMF 2.0 RC2 is provided for?
Title: Re: Ad Management mod
Post by: Yahmez on November 09, 2009, 07:04:29 PM
Quote from: bburg5 on November 09, 2009, 12:35:08 PM
Yes, That is what I am looking for.... Do you know af any?
Re-read Bigguy's post. He was telling you how to do it thru the ad mod. Not asking you if that's what you wanted...  ;)
Title: Re: Ad Management mod
Post by: Bolerro on November 10, 2009, 02:05:59 PM
Quote from: Bruno36 on November 09, 2009, 02:37:12 PM
Hello!

A version for SMF 2.0 RC2 is provided for?
I hope there will be... but not sure if Jerm is still updating this so quite possible it may wait until someone buys it from him.
Title: Re: Ad Management mod
Post by: mseraphim on November 11, 2009, 03:16:02 AM
Hi, I've tried to install the "ad management mod" and it comes up with the following error:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

I assume this is a default error message.  The test failed with several files:
themes/default/index.template.php
themes/default/Boardindex.template.php
themes/default/Messageindex.template.php

I am running wamp server on my local computer with SMF version 2.0 RC2.
the permissions for these files are 0755 - writable, and I'm unable to change it to 0777.

Is there anyone that could please offer me advice on installing this mod?

thank you
mseraphim
Title: Re: Ad Management mod
Post by: c23_Mike on November 11, 2009, 06:56:38 AM
Hi there!

Since there is the SMF 2 RC2 not listet at the comaptible SMF list it will not work there. Last SMF of the version 2 branch is RC1-1.
So you have to wait for an update or use the version 1 branch of smf.
Title: Re: Ad Management mod
Post by: mseraphim on November 11, 2009, 07:49:51 AM
Thanks Mike,

May I ask, how is it that other people are then displaying adds on their sites?  Is there another mod that could be used to display adds as good as this one?

mseraphim
Title: Re: Ad Management mod
Post by: c23_Mike on November 11, 2009, 09:06:18 AM
Hi there !

Good question, I search for myself and wait for Ad management mod updated for SMF 2 RC2.
But if you search "Smf adsystem" you find this threas with exact the same question: http://www.simplemachines.org/community/index.php?topic=89449.0

They use external software and put them in the theme per hand.
Title: Re: Ad Management mod
Post by: bburg5 on November 11, 2009, 07:36:48 PM
Quote
Quote from: Bigguy on November 07, 2009, 11:52:34 PM
Show two different ads in one place, on page refresh the ad will change.
Quote from: Yahmez on November 09, 2009, 07:04:29 PM
Quote from: bburg5 on November 09, 2009, 12:35:08 PM
Yes, That is what I am looking for.... Do you know af any?
Re-read Bigguy's post. He was telling you how to do it thru the ad mod. Not asking you if that's what you wanted...  ;)

Thank You for pointing that out...Yahmez


Can any one tell me how to correct the fact that I have my ads listed twice...

Thanks
Title: Re: Ad Management mod
Post by: amkrisis on November 12, 2009, 11:42:32 AM
Quote from: Bruno36 on November 09, 2009, 02:37:12 PM
Hello!

A version for SMF 2.0 RC2 is provided for?

Yeah, any word on when the mod will be updated?

Thansk!
Title: Re: Ad Management mod
Post by: mseraphim on November 13, 2009, 02:25:54 AM
Quote from: c23_Mike on November 11, 2009, 09:06:18 AM
Hi there !

Good question, I search for myself and wait for Ad management mod updated for SMF 2 RC2.
But if you search "Smf adsystem" you find this threas with exact the same question: http://www.simplemachines.org/community/index.php?topic=89449.0

They use external software and put them in the theme per hand.

Hi Mike,

Thanks for the reply.  I'm sure someone will make it ready for version 2.0 RC2 when RC2 has been officially released and not a beta version anymore.  I semi understand why it isn't out yet: Why would anyone want to write software or a module for a beta version if they would maybe need to rewrite it for the official release? On the other hand, I am a nana when it comes to programming/php so wouldn't know how to fix it myself.

It would be nice though to have some indication as when it would come out...(the smf version 2 official release and this module)... At least there are guys/or girls clever enough to write stuff like this. Wish I had this knowledge.

Guess we would just need to wait!!
Title: Re: Ad Management mod
Post by: Arantor on November 13, 2009, 03:59:46 AM
RC2 has been officially released, and was released 2 days before c23_Mike's post, on November 9th.

Btw, RC2 is a 'release candidate', and I note this mod worked on the previous 'release candidates', which are basically advanced betas.

SMF 2 Final will be out when it's done, this mod will probably be updated if/when the author has time.
Title: Re: Ad Management mod
Post by: mseraphim on November 13, 2009, 04:45:31 AM
Hi Arantor,

I understand what your saying.  I just meant that because RC2 is still in development stage, thats why this mod hasn't been updated yet.  It would be nice to have this mod ready, but I understand that these developers have a lot on their hands and that this particular mod may not be on top of their list.

I take my hat off for these developers for the work they are doing!!!
Thanks Guys
mseraphim
Title: Re: Ad Management mod
Post by: Arantor on November 13, 2009, 05:09:46 AM
RC2 isn't in development. It's been released. Any next version will almost certainly be RC3.

Just as RC1 was a release candidate, RC2 is in exactly the same position. RC2 Charter Preview was a developmental build. RC2 Public isn't, as such.

This mod was released by a former team member, it isn't maintained by the SMF team itself.
Title: Re: Ad Management mod
Post by: mseraphim on November 13, 2009, 07:04:04 AM
there is a note on the download page http://download.simplemachines.org/ that says: "Note: As this is in development, we do not recommend running SMF 2.0 RC2 on a production site."


Title: Re: Ad Management mod
Post by: Arantor on November 13, 2009, 09:21:00 AM
That's been there for every version of 2.0 as far as I know. My point is, the previous version or so of 2.0, 2.0 RC1-1 or 2.0 RC1.2 was supported by this mod without waiting for 2.0 final.

If/when this mod is updated it will likely be before 2.0 final which is likely to be a little while.
Title: Re: Ad Management mod
Post by: mseraphim on November 13, 2009, 09:55:34 AM
Thanks.

I see that you have quite a few modules developed!!  They look very useful.

Will be making use of them in my forum.

Thanks again!!
Title: Re: Ad Management mod
Post by: nestortoledo on November 13, 2009, 10:43:21 AM
The mod is compatible with the RC2, but not compatible with Curve Theme. If you install it and make changes in Core Theme it will work.
I have installed, and then make some changes to Curve theme, and ads are working, but not in all positions. check here www.clublgmobile.com/foro/
Title: Re: Ad Management mod
Post by: glennk on November 13, 2009, 06:18:29 PM
Quote from: Arantor on November 13, 2009, 05:09:46 AM
RC2 isn't in development. It's been released. Any next version will almost certainly be RC3.

Just as RC1 was a release candidate, RC2 is in exactly the same position. RC2 Charter Preview was a developmental build. RC2 Public isn't, as such.

This mod was released by a former team member, it isn't maintained by the SMF team itself.

Would it be fair comment for me to say that this mod is all but essential ?? Maybe future SMF versions could have some type of advert system as default ?
Title: Re: Ad Management mod
Post by: Arantor on November 13, 2009, 06:30:24 PM
It is not essential. There are many forums that do not have any need, nor want, for adverts. Speaking personally, I cannot ever see this mod, or something like it, becoming a core feature, and personally I wouldn't want it as such anyway.
Title: Re: Ad Management mod
Post by: hartiberlin on November 13, 2009, 09:08:08 PM
Quote from: nestortoledo on November 13, 2009, 10:43:21 AM
The mod is compatible with the RC2, but not compatible with Curve Theme. If you install it and make changes in Core Theme it will work.
I have installed, and then make some changes to Curve theme, and ads are working, but not in all positions. check here www.clublgmobile.com/foro/

Many thanks for the info.

Please let us know, what you changed to make it compatible
with the new standard curve theme.

Please post your modifications, so we can use it.

Many thanks in advance.

Regards, Stefan.
P.S: I don´t see any ads between postings...
Did you also get this to work in your forum ?
Many thanks.
Title: Re: Ad Management mod
Post by: carbonize on November 14, 2009, 04:25:05 PM
Times like this I wish SMF used a plugin system with hooks as opposed to the mod system they do use. Would mean there was more chance that things like this would still work even if SMF overhaul the main theme.
Title: Re: Ad Management mod
Post by: Arantor on November 14, 2009, 04:30:10 PM
Quote from: carbonize on November 14, 2009, 04:25:05 PM
Times like this I wish SMF used a plugin system with hooks as opposed to the mod system they do use. Would mean there was more chance that things like this would still work even if SMF overhaul the main theme.

Would also limit the rest of the customisation potential (unless you make every single thing you could ever possibly want to customise have a hook, which pretty much means every possible tag on the page would need a hook) as well as inhibit performance; it has been discussed numerous times.

In this particular case, even if we did use a hook theme, the mod author would still really need to check it over before saying it's compatible, given the level of changes from 2.0 RC1.2 to 2.0 RC2.
Title: Re: Ad Management mod
Post by: carbonize on November 14, 2009, 04:36:05 PM
Just annoying as this is probably the most useful mod I have come across and used. Going from the fact he has put both his domain, forum database and rights to this mod up for sale I'm not sure he is going to update it for RC2 or not. Guess if he, or no other kind soul, has done it within 10 days I may take a look at doing it myself since I will have a week off.
Title: Re: Ad Management mod
Post by: Arantor on November 14, 2009, 04:37:57 PM
Only the author will be able to update the official mod.

I did look at taking it over but I realised I just didn't have time to update and support this mod :(
Title: Re: Ad Management mod
Post by: carbonize on November 14, 2009, 04:41:31 PM
But if I am able to make it work with Curves I can email the mod author with the changes and send my modified copy to people if they request it yes?
Title: Re: Ad Management mod
Post by: Arantor on November 14, 2009, 04:44:23 PM
If you make it work with Curve, you can email the mod author. Anything further depends on what they say.
Title: Re: Ad Management mod
Post by: glennk on November 14, 2009, 05:36:02 PM
Please keep us all informed of any progress with this mod. This and the tags mod are the main reasons i wont upgrade straight away.

Is there a tutorial on this site which details haw to place adverts into the various parts of the forum ? I have managed to put my adsense ads on every page using the index.template.php but I would like to be able to place them after every post too.
Title: Re: Ad Management mod
Post by: Arantor on November 14, 2009, 05:39:55 PM
You are not allowed under Adsense's TOS to have more than 3 Adsense link units per page.
Title: Re: Ad Management mod
Post by: nickelz34 on November 14, 2009, 06:45:38 PM
i dont know why i just cant get this to work with my site i installed and everything says successful but when i click ad management link in admin panel it just goes to my home page and nowere else .  all versions of this mod do that as well not just this one .

i have :

smf 1.1.10
Title: Re: Ad Management mod
Post by: glennk on November 15, 2009, 06:14:35 AM
Quote from: Arantor on November 14, 2009, 05:39:55 PM
You are not allowed under Adsense's TOS to have more than 3 Adsense link units per page.

Unless I have it wrong. It is 3 adsense blocks per page ?

Im off to read it again as I have 2 blocks on every page on my site.
Title: Re: Ad Management mod
Post by: Arantor on November 15, 2009, 09:35:51 AM
You can have 3 per page, that's fine. (Block == link unit) At least it was the last time I read the TOS, which was a month or so ago.
Title: Re: Ad Management mod
Post by: sliemawarrior on November 15, 2009, 03:05:28 PM
Hi, I have installed this today and I am able to get the adverts to show within the posts but I cannot get any other advert to show at bottom of page, side of page, between categories.

I am enterting either google adsense banners or amazon banners to test out. I am presuming I just need to enter a title, then enter the code, then tick at side of page or under menu if I want it on every page. I have not put numbers in the boards and they are currently blank.

I can send screenshots if it helps.

I know the banner works and the script is correct as I trialed it within the posts and it works fine.

Am I missing something completely.

Any help appreciated.

Version 1.1.10

Thanks Sliemawarrior
Title: Re: Ad Management mod
Post by: smp420 on November 15, 2009, 05:15:30 PM
Are you using the default theme? if not you will have to manually install it.
Title: Re: Ad Management mod
Post by: automama on November 15, 2009, 05:53:17 PM
Does this mod work work with 1.1.10 then? The manual install parse says it's not compatible...would save me a LOT of work if it was  :)
Title: Re: Ad Management mod
Post by: Arantor on November 15, 2009, 06:04:16 PM
Version 2.3.1 is - parse instructions: http://custom.simplemachines.org/mods/index.php?action=parse;mod=255;attach=101785;smf_version=1.1.10
Title: Re: Ad Management mod
Post by: automama on November 15, 2009, 06:10:36 PM
Thanks!
Title: Re: Ad Management mod
Post by: hartiberlin on November 15, 2009, 09:14:49 PM
So any news about a workaround for Version SMF2.0 RC2 ?

What about the Admod VBGAMER45 wanted to put ot ?
Title: Re: Ad Management mod
Post by: Yahmez on November 16, 2009, 09:54:42 PM
Quote from: hartiberlin on November 15, 2009, 09:14:49 PM
So any news about a workaround for Version SMF2.0 RC2 ?

What about the Admod VBGAMER45 wanted to put ot ?

It installs despite the errors. Some ad locations do not work, and I'll bet it throws some errors. But until it is updated you can always switch your ads to spots that are working. Or tweak things a bit.
Title: Re: Ad Management mod
Post by: mseraphim on November 17, 2009, 02:01:45 AM
Here's a question that I hope could lead to a solution regarding this topic:

What version of SMF is the Simple Machines website running at the moment? Is it version 2.0 RC2?  It sure looks like it.  If it is, then what mod are they using to do all the advertising on this site?
Title: Re: Ad Management mod
Post by: Dharshan on November 17, 2009, 02:12:15 AM
Quote from: mseraphim on November 17, 2009, 02:01:45 AM
Here's a question that I hope could lead to a solution regarding this topic:

What version of SMF is the Simple Machines website running at the moment? Is it version 2.0 RC2?  It sure looks like it.  If it is, then what mod are they using to do all the advertising on this site?

yup am interested knowing it as well... this mod is only available  through manual installation for SMF 2 rc2.....

Title: Re: Ad Management mod
Post by: Kenny01 on November 17, 2009, 02:25:10 AM
I believe the ads are placed manually. They also avoid using the public mods, they rather code there mods themselves.
Title: Re: Ad Management mod
Post by: Waffadrunker on November 17, 2009, 02:25:37 AM
Yep.. i am looking ad mod also for my site.

This mod looks as good as it gets.. but it will not work for rc2 jet as i can read right?

I actually haven't seen any other ad management mods for 2.0 in customize section .. or am i blind?
Title: Re: Ad Management mod
Post by: Dharshan on November 17, 2009, 05:56:29 AM
Quote from: Waffadrunker on November 17, 2009, 02:25:37 AM
Yep.. i am looking ad mod also for my site.

This mod looks as good as it gets.. but it will not work for rc2 jet as i can read right?

I actually haven't seen any other ad management mods for 2.0 in customize section .. or am i blind?

nope, ur not. there aint a mod thats made for rc2
Title: Re: Ad Management mod
Post by: Arantor on November 17, 2009, 10:22:33 AM
This website: Powered by SMF 2.0 RC2 Charter Preview

It was not added by this mod, or anything else for that matter, but added manually through other code we have.


There are no ad mods for 2.0 RC2 at this time. No-one has written one and the author has not yet updated this mod.
Title: Re: Ad Management mod
Post by: Informatics on November 17, 2009, 10:42:14 AM
i think, he got any difficulties with the new theme of SMF 2 RC2..
Title: Re: Ad Management mod
Post by: DragonKith on November 17, 2009, 02:11:55 PM
What version of Ad Management should i use on my board i am using SMF 1.1.10 right now.
Title: Re: Ad Management mod
Post by: Arantor on November 17, 2009, 03:19:29 PM
Ad Management 2.3.1 as per my post a few up works fine on 1.1.10.
Title: Re: Ad Management mod
Post by: donelson on November 19, 2009, 05:54:38 AM
Hello, we now have a full SMF 2.0 RC2 up and ready, but did not realize that the Ad Management mod does not work with it yet, sigh.

*subscribes to this thread*

Is there a simple way to put a single PHP ad group at the top of every forum page?
Title: Re: Ad Management mod
Post by: Kenny01 on November 19, 2009, 06:21:13 AM
Quote from: donelson on November 19, 2009, 05:54:38 AM
Hello, we now have a full SMF 2.0 RC2 up and ready, but did not realize that the Ad Management mod does not work with it yet, sigh.

*subscribes to this thread*

Is there a simple way to put a single PHP ad group at the top of every forum page?
Just steup a test forum and play around with your ads code.
Title: Re: Ad Management mod
Post by: donelson on November 19, 2009, 07:00:42 AM
Quote from: Kenny01 on November 19, 2009, 06:21:13 AMJust steup a test forum and play around with your ads code.

Newbie here...

My current state of affairs... (http://www.simplemachines.org/community/index.php?topic=258642.msg2365370#msg2365370)

Title: Re: Ad Management mod
Post by: Rowdy on November 19, 2009, 08:38:43 AM
QuoteHello, we now have a full SMF 2.0 RC2 up and ready, but did not realize that the Ad Management mod does not work with it yet, sigh.

Haha. I made this mistake also. I would have held up on the upgrade to wait for this mod but got a little itchy on the trigger finger....

Hope it gets updated or I will have to code my ads in, and I am a very low level coder. :(
Title: Re: Ad Management mod
Post by: Afro on November 19, 2009, 09:17:40 AM
I manipulated my way into the ad codes and managed to add them where i wanted them to be.
using RC2 of course. It works to some degree after installation. then u tweek and twitch
Title: Re: Ad Management mod
Post by: JackWise on November 19, 2009, 01:12:09 PM
Hi,
I use this mod ( V.2.3) under smf 1.1.9
Today I added a new add, but when i try to update it, neither the "save" nor the "delete" buttons work.
I'm not able to change anything in this ad.
Can anyone help me ?
Best regards,
JW
Title: Re: Ad Management mod
Post by: wandawill on November 19, 2009, 07:44:00 PM
 I just set up a new 1.1.10 and installed Ad Management. When  try to add an ad I get two of whatever I put in it. I have it on another forum and it works fine. thanks
my mods
.     Megavideo BBCODE      1.0      [ List Files ]  [ Delete ]
2.    SMF Links    1.7.2    [ Uninstall ] [ List Files ] [ Delete ]
3.    Anti-Spam Verification Questions    1.02    [ Uninstall ] [ List Files ] [ Delete ]
4.    Post Box Message    1.1    [ List Files ] [ Delete ]
5.    Aeva ~ Auto-Embed Video & Audio    7.0    [ Uninstall ] [ List Files ] [ Delete ]
6.    insert Yahoo!Mail button in main menu    1.0    [ Uninstall ] [ List Files ] [ Delete ]
7.    BK-SMF Sub-Board    1.5    [ Uninstall ] [ List Files ] [ Delete ]
8.    Streaming 3    4.2.2b    [ Uninstall ] [ List Files ] [ Delete ]
9.    View Topic Permissions    1.1.0a    [ Uninstall ] [ List Files ] [ Delete ]
10.    Gender on Memberlist    1.0    [ Uninstall ] [ List Files ] [ Delete ]
11.    Smf Logo Clickable    1.0    [ Uninstall ] [ List Files ] [ Delete ]
12.    RemoveQuotedImages    1.0    [ Uninstall ] [ List Files ] [ Delete ]
13.    Admin Notepad    1.0    [ Uninstall ] [ List Files ] [ Delete ]
14.    Rename *Child Board* | S-Ace    1.0    [ Uninstall ] [ List Files ] [ Delete ]
15.    RSS Feed Icon    1.1    [ Uninstall ] [ List Files ] [ Delete ]
16.    Ad Managment    2.3.1    [ Uninstall ] [ List Files ] [ Delete ]
17.    Auto Embed Video Clips    1.3    [ Uninstall ] [ List Files ] [ Delete ]
18.    Enhanced Profile    1.1.5    [ Uninstall ] [ List Files ] [ Delete ]
19.    Enhanced Quick Reply Box 2.0.2    2.0.2    [ Uninstall ] [ List Files ] [ Delete ]
20.    EzPortal    0.3.3a
Title: Re: Ad Management mod
Post by: smp420 on November 19, 2009, 08:45:43 PM
Quote from: JackWise on November 19, 2009, 01:12:09 PM
Hi,
I use this mod ( V.2.3) under smf 1.1.9
Today I added a new add, but when i try to update it, neither the "save" nor the "delete" buttons work.
I'm not able to change anything in this ad.
Can anyone help me ?
Best regards,
JW

Are there any errors in your error log?
Title: Re: Ad Management mod
Post by: bburg5 on November 19, 2009, 08:47:47 PM
looking to find out how to correct my double ads listed... Image below..

Thanks
Title: Re: Ad Management mod
Post by: Afro on November 19, 2009, 09:08:57 PM
Quote from: wandawill on November 19, 2009, 07:44:00 PM
I just set up a new 1.1.10 and installed Ad Management. When  try to add an ad I get two of whatever I put in it. I have it on another forum and it works fine. thanks
my mods
.     Megavideo BBCODE      1.0      [ List Files ]  [ Delete ]
2.    SMF Links    1.7.2    [ Uninstall ] [ List Files ] [ Delete ]
3.    Anti-Spam Verification Questions    1.02    [ Uninstall ] [ List Files ] [ Delete ]
4.    Post Box Message    1.1    [ List Files ] [ Delete ]
5.    Aeva ~ Auto-Embed Video & Audio    7.0    [ Uninstall ] [ List Files ] [ Delete ]
6.    insert Yahoo!Mail button in main menu    1.0    [ Uninstall ] [ List Files ] [ Delete ]
7.    BK-SMF Sub-Board    1.5    [ Uninstall ] [ List Files ] [ Delete ]
8.    Streaming 3    4.2.2b    [ Uninstall ] [ List Files ] [ Delete ]
9.    View Topic Permissions    1.1.0a    [ Uninstall ] [ List Files ] [ Delete ]
10.    Gender on Memberlist    1.0    [ Uninstall ] [ List Files ] [ Delete ]
11.    Smf Logo Clickable    1.0    [ Uninstall ] [ List Files ] [ Delete ]
12.    RemoveQuotedImages    1.0    [ Uninstall ] [ List Files ] [ Delete ]
13.    Admin Notepad    1.0    [ Uninstall ] [ List Files ] [ Delete ]
14.    Rename *Child Board* | S-Ace    1.0    [ Uninstall ] [ List Files ] [ Delete ]
15.    RSS Feed Icon    1.1    [ Uninstall ] [ List Files ] [ Delete ]
16.    Ad Managment    2.3.1    [ Uninstall ] [ List Files ] [ Delete ]
17.    Auto Embed Video Clips    1.3    [ Uninstall ] [ List Files ] [ Delete ]
18.    Enhanced Profile    1.1.5    [ Uninstall ] [ List Files ] [ Delete ]
19.    Enhanced Quick Reply Box 2.0.2    2.0.2    [ Uninstall ] [ List Files ] [ Delete ]
20.    EzPortal    0.3.3a

the mod added the codes twice in your template files. find and remove them or attach these four files here.

Indextemplate.php
Boardindextemplate.php
Messageindextemplate.php
Displayindextemplate.php

All are located in your theme/default
Title: Re: Ad Management mod
Post by: bburg5 on November 19, 2009, 10:49:32 PM
here they are...

Thanks
Title: Re: Ad Management mod
Post by: Yahmez on November 19, 2009, 11:56:51 PM
Quote from: bburg5 on November 19, 2009, 10:49:32 PM
here they are...

Thanks

The ad mod is only installed once in those files. But I believe Afro was talking to wandawill, So I guess that is not the answer.

Pardon the silly questions here, but are you able to delete the extra ones? Do you have two identical ads displaying in the same location or is the duplication limited to the admin section for the ad mod?
Title: Re: Ad Management mod
Post by: killer.nanowhiz on November 20, 2009, 04:43:41 AM
plzz somebody help me ...i installed ad management few month ago ...but didn't check that time ..while it was installed successfully......but i noticed its not working properly...when i check all the option ...only two of them is working...."Display ads after the last post" and "Display ads on every page on the top of the page"

except these two no any is working

if i put any board name or post name in these option  -
1.Which boards should this ad display in   
2. Display ads within posts   
3.Display ads after categories

then that two also stops working..........................what to do ?.whats this problem ?...plzzzzzz help me

i m using....SMF 2.0 RC1.2    theme......EOTS DZINE - COD MODERN WARFARE 2
visit my site...http://nanowhiz.com/index.php (http://nanowhiz.com/index.php)


thanks in advance
Title: Re: Ad Management mod
Post by: wandawill on November 20, 2009, 05:11:05 AM
thanks afro. I uploaded the files and dropped the tables and reinstalled the mod. this time I got this testing it. this is for one ad.
(http://toolazytologin.com/shadowknows/files/2009-11-20/adds.jpg)
Title: Re: Ad Management mod
Post by: Afro on November 20, 2009, 06:27:27 AM
Quote from: wandawill on November 20, 2009, 05:11:05 AM
thanks afro. I uploaded the files and dropped the tables and reinstalled the mod. this time I got this testing it. this is for one ad.
(http://toolazytologin.com/shadowknows/files/2009-11-20/adds.jpg)

are they working well now ?
Title: Re: Ad Management mod
Post by: wandawill on November 20, 2009, 06:54:02 AM
no, it shows test five times.
Title: Re: Ad Management mod
Post by: Afro on November 20, 2009, 09:19:43 AM
Quote from: wandawill on November 20, 2009, 06:54:02 AM
no, it shows test five times.

Like i said, it added the codes to the template files several times. the issue is that the uninstal.php doesnt do its work by pulling them out when you uninstal.
For the second time, attach the edited files here if you cannot edit them with text editors.
Someone will definitely do that for ypu.
Title: Re: Ad Management mod
Post by: m0ney on November 20, 2009, 10:20:02 AM
How To: Insert Ads Only After the First Post ???
Title: Re: Ad Management mod
Post by: Afro on November 20, 2009, 11:29:04 AM
Quote from: m0ney on November 20, 2009, 10:20:02 AM
How To: Insert Ads Only After the First Post ???



This topic is for ad mod support.
You can ask your question on your forum version section.

SMF 1
SMF2 sections
Title: Re: Ad Management mod
Post by: bburg5 on November 20, 2009, 11:37:46 AM
Quote from: ҰΛĥmΞڃ on November 19, 2009, 11:56:51 PM
Quote from: bburg5 on November 19, 2009, 10:49:32 PM
here they are...

Thanks

The ad mod is only installed once in those files. But I believe Afro was talking to wandawill, So I guess that is not the answer.

Pardon the silly questions here, but are you able to delete the extra ones? Do you have two identical ads displaying in the same location or is the duplication limited to the admin section for the ad mod?


I apologize I just had the same question in a previous post... I only get the duplication in the admin section. The ads only show up once...

Thanks
Title: Re: Ad Management mod
Post by: donelson on November 20, 2009, 01:48:57 PM
Ad Manager: ad_mod_v2-3-5_SMF_v2-0RC1-1

QuotePackage upload failed due to the following error:
"Although the package was downloaded to the server it appears to be empty. Please check the Packages directory, and the "temp" sub-directory are both writable. If you continue to experience this problem you should try extracting the package on your PC and uploading the extracted files into a subdirectory in your Packages directory and try again. For example, if the package was called shout.tar.gz you should:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF."

Steps 1-4 complete, but errors:

Quote1.   Execute Code   install.php   
   2.   Execute Modification   ./index.php   Test successful
   3.   Execute Modification   ./Sources/Admin.php   Test successful
   4.   Execute Modification   ./Themes/default/index.template.php   Test failed
   1.   Add After   ./Themes/default/index.template.php   Test successful
   2.   Replace   ./Themes/default/index.template.php   Test failed
   3.   Replace   ./Themes/default/index.template.php   Test failed
   4.   Add After   ./Themes/default/index.template.php   Test successful
   5.   Add After   ./Themes/default/index.template.php   Test successful
   6.   Add Before   ./Themes/default/index.template.php   Test successful
   5.   Execute Modification   ./Themes/default/BoardIndex.template.php   Test failed
   1.   Add Before   ./Themes/default/BoardIndex.template.php   Test successful
   2.   Add After   ./Themes/default/BoardIndex.template.php   Test failed
   6.   Execute Modification   ./Themes/default/Display.template.php   Test successful
   7.   Execute Modification   ./Themes/default/MessageIndex.template.php   Test failed
   1.   Add After   ./Themes/default/MessageIndex.template.php   Test successful
   2.   Add After   ./Themes/default/MessageIndex.template.php   Test failed
   8.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
9.   Extract File   ./Sources/Ads.php   
10.   Extract File   ./Sources/LoadAds.php   
11.   Extract File   ./Themes/default/Ads.template.php   
12.   Extract File   ./Themes/default/languages/Ads.english.php   
13.   Extract File   ./Themes/default/languages/Ads.english-utf8.php


How should I proceed now? Thanks.
Title: Re: Ad Management mod
Post by: donelson on November 21, 2009, 06:28:51 AM
Can anyone help me please?

Thanks
Title: Re: Ad Management mod
Post by: mseraphim on November 21, 2009, 06:52:52 AM
I think I may have found a solution to this whole add problem for SMF version 2.0 RC2.
Someone please reply to this and tell me what you think?

10 Easy Steps to follow!!!

1.  SMF version 2.0 RC2.  In order to display google adds on your site, install the Portal Management Extension PortaMx for SMF 2 found by clicking either one of the two links below.
http://custom.simplemachines.org/mods/index.php?mod=1419 (http://custom.simplemachines.org/mods/index.php?mod=1419)
http://custom.simplemachines.org/mods/index.php?action=download;mod=1419;id=123536  (http://custom.simplemachines.org/mods/index.php?action=download;mod=1419;id=123536)

2.  Then go to Admin - PortaMx Admin Centre - Block Manager - Panel Overview.

3.  Choose a panel on which you would like to display your adds, ex. Head, Top Centre, Left, Right, Bottom Centre, Foot, Frontpage, Single Page. (For this I have chosen Foot panel)

4.  On your selection on the right hand side click on "click to add foot block"

5.  Give your block a title ex. "Google Ads" (you can select to display this name or not, but you at least have to give it a title name.

6.  Make block type: "Script"

7.  Paste your script from the Google Adsense that you've created, be it only Text, Text or Image, or just Images.

8.  Further Down to the Right under "Type Name" - "Header" : you can select if you want the block title to be displayed or not.

9.  Go all the way down and press save.

10.  Now be patient Google ads will start appearing soon - usually it doesn't take more than 10 minutes before adds starts displaying on your site.

Tell me what you think if this has helped for you, I find it to display adds very nice on my site.

mseraphim
Title: Re: Ad Management mod
Post by: donelson on November 21, 2009, 07:50:45 AM
Why do these "installs" fail so much?

I did not even get past step #1...

Quote6.   Execute Modification   ./Sources/Display.php   Test failed
   1.   Replace   ./Sources/Display.php   Test failed

So what do I do now?


Quote from: mseraphim on November 21, 2009, 06:52:52 AM
I think I may have found a solution to this whole add problem for SMF version 2.0 RC2.
Someone please reply to this and tell me what you think?

10 Easy Steps to follow!!!

1.  SMF version 2.0 RC2.  In order to display google adds on your site, install the Portal Management Extension PortaMx for SMF 2 found by clicking either one of the two links below.
http://custom.simplemachines.org/mods/index.php?mod=1419 (http://custom.simplemachines.org/mods/index.php?mod=1419)
http://custom.simplemachines.org/mods/index.php?action=download;mod=1419;id=123536  (http://custom.simplemachines.org/mods/index.php?action=download;mod=1419;id=123536)

2.  Then go to Admin - PortaMx Admin Centre - Block Manager - Panel Overview.

3.  Choose a panel on which you would like to display your adds, ex. Head, Top Centre, Left, Right, Bottom Centre, Foot, Frontpage, Single Page. (For this I have chosen Foot panel)

4.  On your selection on the right hand side click on "click to add foot block"

5.  Give your block a title ex. "Google Ads" (you can select to display this name or not, but you at least have to give it a title name.

6.  Make block type: "Script"

7.  Paste your script from the Google Adsense that you've created, be it only Text, Text or Image, or just Images.

8.  Further Down to the Right under "Type Name" - "Header" : you can select if you want the block title to be displayed or not.

9.  Go all the way down and press save.

10.  Now be patient Google ads will start appearing soon - usually it doesn't take more than 10 minutes before adds starts displaying on your site.

Tell me what you think if this has helped for you, I find it to display adds very nice on my site.

mseraphim
Title: Re: Ad Management mod
Post by: mseraphim on November 21, 2009, 08:00:20 AM
Quote from: donelson on November 21, 2009, 07:50:45 AM
Why do these "installs" fail so much?

I did not even get past step #1...

Quote6.   Execute Modification   ./Sources/Display.php   Test failed
   1.   Replace   ./Sources/Display.php   Test failed

So what do I do now?



You need to make sure that all your files on your site server are writable - chmod 777 all files and directories, else you will keep on running into problems. Have a quick look at my site, just added google adds to it.  www.wirelesshotspot.co.za (http://www.wirelesshotspot.co.za)
Title: Re: Ad Management mod
Post by: donelson on November 21, 2009, 08:12:49 AM
Display.php -- shows all 777 -- read, write, execute...

:(

Title: Re: Ad Management mod
Post by: donelson on November 21, 2009, 08:16:14 AM
I set all files in dir "Sources" to chmod 777

Now the forum does not come up at all, apache error 500

:( :(
Title: Re: Ad Management mod
Post by: mseraphim on November 21, 2009, 08:22:30 AM
Quote from: donelson on November 21, 2009, 08:16:14 AM
I set all files in dir "Sources" to chmod 777

Now the forum does not come up at all, apache error 500

I hope you made a backup? You should do things like this on a testing server, not on your official site.

I can't help you much as I don't know anything about php or programming or even why your test failed.  I wouldn't know even where to begin looking.  I assume that you were working on a newly installed SMF?
Title: Re: Ad Management mod
Post by: donelson on November 21, 2009, 08:26:32 AM
Quote from: mseraphim on November 21, 2009, 08:22:30 AM
Quote from: donelson on November 21, 2009, 08:16:14 AM
I set all files in dir "Sources" to chmod 777

Now the forum does not come up at all, apache error 500

I hope you made a backup? You should do things like this on a testing server, not on your official site.

I can't help you much as I don't know anything about php or programming or even why your test failed.  I wouldn't know even where to begin looking.  I assume that you were working on a newly installed SMF?

Yes, not "online" to the public yet. Sigh.

I have issued a support-request to our hosting company.

W


Title: Re: Ad Management mod
Post by: mseraphim on November 21, 2009, 08:37:40 AM
Quote
Yes, not "online" to the public yet. Sigh.

I have issued a support-request to our hosting company.

W

I have reloaded my SMF several times before I got it right, and it was also with the help of some very nice people on SMF.

Something that you could try is maybe to re-upload your sources directory. This could potentially help with getting the site back up.  If it doesn't you may need to wipe everything and start over again.  Be sure that when your site is working to make a backup of the site through C-Panel.

One problem that I've found with my site is that some of my files didn't upload properly to my server.  You will see it when you compare the data size between files on your local disk and files on the server. Just compare the data size from your local disc to the files that failed that test on the server.

hope it helps?

mseraphim
Title: Re: Ad Management mod
Post by: donelson on November 21, 2009, 09:07:35 AM
Host company has got site back up, they say should use 755, not 777.

Display.php has permissions set to 755.

Still get "fail" error on install.

What now?

Title: Re: Ad Management mod
Post by: donelson on November 21, 2009, 09:16:50 AM
Should I go ahead and install the whole thing, with the one error, then PATCH the file Display.php by hand?

thanks
Title: Re: Ad Management mod
Post by: mseraphim on November 21, 2009, 09:20:21 AM
Quote from: donelson on November 21, 2009, 09:07:35 AM

Still get "fail" error on install.

What now?

if it has been a clean install, try to upload the display.php file again to your server and make sure the permissions are correct.

Just so I'm sure, you are trying to install PortaMx?
Title: Re: Ad Management mod
Post by: donelson on November 21, 2009, 09:22:39 AM
Quote from: mseraphim on November 21, 2009, 09:20:21 AMJust so I'm sure, you are trying to install PortaMx?

Thanks. Yes, PortaMx.

And my host company is investigating now, so I won't do anything else just yet.

W
Title: Re: Ad Management mod
Post by: mseraphim on November 21, 2009, 09:23:47 AM
Quote from: mseraphim on November 21, 2009, 09:20:21 AM
Quote from: donelson on November 21, 2009, 09:07:35 AM

Still get "fail" error on install.

What now?

if it has been a clean install, try to upload the display.php file again to your server and make sure the permissions are correct.
Try to do the install again, and if it still fails contact the author of PortaMx under their support for the module section : http://www.simplemachines.org/community/index.php?topic=266721.0 (http://www.simplemachines.org/community/index.php?topic=266721.0)
Just so I'm sure, you are trying to install PortaMx?
Title: Re: Ad Management mod
Post by: mseraphim on November 21, 2009, 09:26:50 AM
This has got nothing to do with your hosting company. They only host your site, but what you do or put on is is up to you.

May I suggest that you contact the author on their support site : http://www.simplemachines.org/community/index.php?topic=266721.0

Feline (The Author) will definitely be able to help you.  Just state which files failed and hopefully you can get it sorted quickly.
Title: Re: Ad Management mod
Post by: donelson on November 21, 2009, 09:28:38 AM
Quote from: mseraphim on November 21, 2009, 09:26:50 AM
This has got nothing to do with your hosting company. They only host your site, but what you do or put on is is up to you.

May I suggest that you contact the author on their support site : http://www.simplemachines.org/community/index.php?topic=266721.0

Feline (The Author) will definitely be able to help you.  Just state which files failed and hopefully you can get it sorted quickly.

Thanks. My hosting company are excellent (ask me) and are familiar with SMF, and are attempting to fix this problem for me (and for their own knowledge as well).

Title: Re: Ad Management mod
Post by: mseraphim on November 21, 2009, 09:31:16 AM
Cool, Not all hosting companies are like that.

Hope they could sort it out for you!!!!!
Title: Re: Ad Management mod
Post by: donelson on November 21, 2009, 09:59:06 AM
Okay, going naked here...

I have decided to try a manual fix of Display.php...

Replacing this original code:
Quote
   // This is just a regular attachment...
   else
   {
      // This checks only the current board for $board/$topic's permissions.
      isAllowedTo('view_attachments');

      // Make sure this attachment is on this board.
      // NOTE: We must verify that $topic is the attachment's topic, or else the permission check above is broken.
      $request = $smcFunc['db_query']('', '
         SELECT a.id_folder, a.filename, a.file_hash, a.fileext, a.id_attach, a.attachment_type, a.mime_type, a.approved
         FROM {db_prefix}attachments AS a
            INNER JOIN {db_prefix}messages AS m ON (m.id_msg = a.id_msg AND m.id_topic = {int:current_topic})
            INNER JOIN {db_prefix}boards AS b ON (b.id_board = m.id_board AND {query_see_board})
         WHERE a.id_attach = {int:attach}
         LIMIT 1',
         array(
            'attach' => $_REQUEST['attach'],
            'current_topic' => $topic,
         )
      );
   }

(Note: last line "'current_topic' => $topic,"  is NOT present in the source Display.php that came orignally with the package.

Replacing the above with:
Quote
   // This is just a regular attachment...
   else
   {
//-> start change PortaMx
      if(isset($_REQUEST['fld']))
      {
         // get group access
         $request = $smcFunc['db_query']('', '
               SELECT config
               FROM {db_prefix}portamx_blocks
               WHERE active = 1 AND blocktype = {string:blocktyp} AND id = {int:id}',
            array(
               'blocktyp' => 'download',
               'id' => (int) $_REQUEST['fld'],
            )
         );
         if($smcFunc['db_num_rows']($request) > 0)
         {
            $row = $smcFunc['db_fetch_assoc']($request);
            $smcFunc['db_free_result']($request);
            $cfg = unserialize($row['config']);
            $acsgrp = (isset($cfg['settings']['download_acs']) && is_array($cfg['settings']['download_acs']) ? $cfg['settings']['download_acs'] : array());
         }
         else
            $acsgrp = array();

         // check if enabled for the usergroup
         $show = AllowedTo('admin_forum');
         foreach($acsgrp as $g)
            $show = (is_numeric($g) && in_array((int) $g, $user_info['groups']) ? true: $show);

         if(!$show)
            redirectexit($scripturl .'?action=dlerror;sa=acs');

         // get the filedata from attach table
         $request = $smcFunc['db_query']('', '
               SELECT a.id_folder, a.filename, a.file_hash, a.fileext, a.id_attach, a.attachment_type, a.mime_type, a.approved
               FROM {db_prefix}attachments AS a
                   INNER JOIN {db_prefix}messages AS m ON (m.id_msg = a.id_msg)
                   INNER JOIN {db_prefix}boards AS b ON (b.id_board = m.id_board)
               WHERE a.id_attach = {int:attach}
               LIMIT 1',
               array(
                   'attach' => $_REQUEST['attach'],
               )
         );
         if ($smcFunc['db_num_rows']($request) == 0)
            redirectexit($scripturl .'?action=dlerror;sa=fail');
      }
      else
      {
         // This checks only the current board for $board/$topic's permissions.
         isAllowedTo('view_attachments');

         // Make sure this attachment is on this board.
         // NOTE: We must verify that $topic is the attachment's topic, or else the permission check above is broken.
         $request = $smcFunc['db_query']('', '
            SELECT a.id_folder, a.filename, a.file_hash, a.fileext, a.id_attach, a.attachment_type, a.mime_type, a.approved
            FROM {db_prefix}attachments AS a
               INNER JOIN {db_prefix}messages AS m ON (m.id_msg = a.id_msg AND m.id_topic = {int:current_topic})
               INNER JOIN {db_prefix}boards AS b ON (b.id_board = m.id_board AND {query_see_board})
            WHERE a.id_attach = {int:attach}
            LIMIT 1',
            array(
               'attach' => $_REQUEST['attach'],
               'current_topic' => $topic,
            )
         );
      }
   }
//-> end change PortaMx

and will report if it works.

Title: Re: Ad Management mod
Post by: donelson on November 21, 2009, 10:25:09 AM
I selected "Top Center" and put in PHP code, but I do not yet see any ads.



Quote from: mseraphim on November 21, 2009, 06:52:52 AM
I think I may have found a solution to this whole add problem for SMF version 2.0 RC2.
Someone please reply to this and tell me what you think?

10 Easy Steps to follow!!!

1.  SMF version 2.0 RC2.  In order to display google adds on your site, install the Portal Management Extension PortaMx for SMF 2 found by clicking either one of the two links below.
http://custom.simplemachines.org/mods/index.php?mod=1419 (http://custom.simplemachines.org/mods/index.php?mod=1419)
http://custom.simplemachines.org/mods/index.php?action=download;mod=1419;id=123536  (http://custom.simplemachines.org/mods/index.php?action=download;mod=1419;id=123536)

2.  Then go to Admin - PortaMx Admin Centre - Block Manager - Panel Overview.

3.  Choose a panel on which you would like to display your adds, ex. Head, Top Centre, Left, Right, Bottom Centre, Foot, Frontpage, Single Page. (For this I have chosen Foot panel)

4.  On your selection on the right hand side click on "click to add foot block"

5.  Give your block a title ex. "Google Ads" (you can select to display this name or not, but you at least have to give it a title name.

6.  Make block type: "Script"

7.  Paste your script from the Google Adsense that you've created, be it only Text, Text or Image, or just Images.

8.  Further Down to the Right under "Type Name" - "Header" : you can select if you want the block title to be displayed or not.

9.  Go all the way down and press save.

10.  Now be patient Google ads will start appearing soon - usually it doesn't take more than 10 minutes before adds starts displaying on your site.

Tell me what you think if this has helped for you, I find it to display adds very nice on my site.

mseraphim
Title: Re: Ad Management mod
Post by: donelson on November 21, 2009, 10:39:40 AM
Everything went in okay, but I see NO ads on my forum.

Title: Re: Ad Management mod
Post by: mseraphim on November 21, 2009, 10:47:58 AM
The Block Type Should be "Script" not "php"?

You will see that depending on the size of your google ads that it will look different when placed at different places. ex top centre, foot.

Title: Re: Ad Management mod
Post by: donelson on November 21, 2009, 10:51:23 AM
Quote from: mseraphim on November 21, 2009, 10:47:58 AMThe Block Type Should be "Script" not "php"?

You will see that depending on the size of your google ads that it will look different when placed at different places. ex top centre, foot.

We are not using Google, but are using php-driven ads instead, thanks.

BUT... Just to check that it is working At All ....

What should I do to display a simple message:  " **** TEST MESSAGE ****"
in the Header block at the top of the page?

Title: Re: Ad Management mod
Post by: mseraphim on November 21, 2009, 10:51:53 AM
Quote from: donelson on November 21, 2009, 10:39:40 AM
Everything went in okay, but I see NO ads on my forum.

The same happened to me, you could also try by highlighting in "Block visibility access settings" the "guest, Ungrouped members, administrators"

Let me know...
Title: Re: Ad Management mod
Post by: donelson on November 21, 2009, 10:53:08 AM
Quote from: mseraphim on November 21, 2009, 10:47:58 AMThe Block Type Should be "Script" not "php"?

You will see that depending on the size of your google ads that it will look different when placed at different places. ex top centre, foot.

We are not using Google, but are using php-driven ads instead, thanks.

BUT... Just to check that it is working At All ....

What should I do to display a simple message:  " **** TEST MESSAGE ****"
in the Header block at the top of the page?
Title: Re: Ad Management mod
Post by: mseraphim on November 21, 2009, 10:56:44 AM
Quote from: donelson on November 21, 2009, 10:53:08 AM

We are not using Google, but are using php-driven ads instead, thanks.

BUT... Just to check that it is working At All ....

What should I do to display a simple message:  " **** TEST MESSAGE ****"
in the Header block at the top of the page?

Sorry, can't help you there. I only got Google script working with my very limited LIMITED knowledge. don't nkow anything about php.

mseraphim
Title: Re: Ad Management mod
Post by: mseraphim on November 21, 2009, 10:59:06 AM
Quote from: mseraphim on November 21, 2009, 10:51:53 AM
Quote from: donelson on November 21, 2009, 10:39:40 AM
Everything went in okay, but I see NO ads on my forum.

The same happened to me, you could also try by highlighting in "Block visibility access settings" the "guest, Ungrouped members, administrators"

Let me know...

did you try this?
Title: Re: Ad Management mod
Post by: donelson on November 21, 2009, 10:59:29 AM
Not PHP for the test, just Text.

Yes, I tried hiliting those... No difference.
Title: Re: Ad Management mod
Post by: mseraphim on November 21, 2009, 11:03:09 AM
then maybe try to change the block type, else I've got no clue.
Title: Re: Ad Management mod
Post by: donelson on November 21, 2009, 11:05:03 AM
I tried "block type" as HTML, and it gave me a server error...

PHP, Script, etc do not cause errors.

All I want to do at this point is to just put up a Test Message simply.
Title: Re: Ad Management mod
Post by: mseraphim on November 21, 2009, 11:07:51 AM
sorry, can't be of further help, but at least you were able to get this far.

All I know is that it works with google and thats about it.I gotta run, Baby feeding time.

all the best, cheers for now.

Mseraphim
Title: Re: Ad Management mod
Post by: hartiberlin on November 21, 2009, 11:10:12 AM
Maybe we can get back ONTOPIC and have somebody do an update,
so that the ADMOD will be working on SMF 2.0RC2 ?

Please somebody post the fixes, so that it will install
in SMF 2.0RC2 without errors and will run with the
new default CURVE theme.

Otherwise what about user VBGAMER45 who wanted to do a new
Admod ?

PortaMX is very nice, I am using it too, but it does
not allow you to put ads between postings,
and between postings is the best way to get clicks
from Google Adsense ads...
At the boarders the click rate is much lower..!
I have tested this all already.

So we need an Admod that let us put ads between
the postings in RC2.

Many thanks in advance.

Regards, Stefan.
Title: Re: Ad Management mod
Post by: mseraphim on November 21, 2009, 12:33:43 PM
Quote from: hartiberlin on November 21, 2009, 11:10:12 AM

Otherwise what about user VBGAMER45 who wanted to do a new
Admod ?

PortaMX is very nice, I am using it too, but it does
not allow you to put ads between postings,
and between postings is the best way to get clicks
from Google Adsense ads...
At the boarders the click rate is much lower..!
I have tested this all already.

So we need an Admod that let us put ads between
the postings in RC2.

Many thanks in advance.

Regards, Stefan.

I completely agree Stefan, but I thought at least that it may help to display the ads through PortaMx.  VBGAMER45? Where are you and what happened to your idea???

May I just ask, what is SMF using on this website of theirs to display these adds?

MSeraphim
Title: Re: Ad Management mod
Post by: Arantor on November 21, 2009, 01:22:31 PM
Sounds like you already have one or more mods already installed that these other mods are conflicting with.
Title: Re: Ad Management mod
Post by: donelson on November 21, 2009, 02:16:27 PM
Quote from: Arantor on November 21, 2009, 01:22:31 PM
Sounds like you already have one or more mods already installed that these other mods are conflicting with.

Not me here, if you meant me :)
Title: Re: Ad Management mod
Post by: jerm on November 21, 2009, 10:59:10 PM
I will be trying to get a new version out that is compatible with RC2. I appologize. I have been very busy the last couple weeks and haven't had time to put work into this. I don't get paid for the work I put in here. Please remember that.
Title: Re: Ad Management mod
Post by: Dharshan on November 22, 2009, 12:23:09 AM
Hi jerm,

I appreciate your time given/ spent for a cause that does not pay you, but still if you got time for this, please look into it, cos we r looking for this great mod to be used with SMF2 RC2...

cheers!
Title: Re: Ad Management mod
Post by: killer.nanowhiz on November 22, 2009, 03:55:02 AM
plzzzzzzzzzzzzzzz help me too.............................


plzz somebody help me ...i installed ad management few month ago ...but didn't check that time ..while it was installed successfully......but i noticed its not working properly...when i check all the option ...only two of them is working...."Display ads after the last post" and "Display ads on every page on the top of the page"

except these two no any is working

if i put any board name or post name in these option  -
1.Which boards should this ad display in   
2. Display ads within posts   
3.Display ads after categories

then that two also stops working..........................what to do ?.whats this problem ?...plzzzzzz help me

i m using....SMF 2.0 RC1.2    theme......EOTS DZINE - COD MODERN WARFARE 2
visit my site...http://nanowhiz.com/index.php [nofollow]


thanks in advance

Title: Re: Ad Management mod
Post by: orelanic on November 22, 2009, 04:16:24 AM
Quote from: jerm on November 21, 2009, 10:59:10 PM
I will be trying to get a new version out that is compatible with RC2. I appologize. I have been very busy the last couple weeks and haven't had time to put work into this. I don't get paid for the work I put in here. Please remember that.

Its people like you who need our thanks for doing what you do, so thanks for your hard work :)
Title: Re: Ad Management mod
Post by: MultiformeIngegno on November 22, 2009, 06:56:06 AM
Quote from: jerm on November 21, 2009, 10:59:10 PM
I will be trying to get a new version out that is compatible with RC2. I appologize. I have been very busy the last couple weeks and haven't had time to put work into this. I don't get paid for the work I put in here. Please remember that.
Yeah!! You rock! Thanks! ;)
Title: Re: Ad Management mod
Post by: jerm on November 22, 2009, 11:34:57 PM
After some work, I completed it. Welcome ads no longer work because I couldn't figure out how to code it. If someone can let me know how to do it and give me the code, I'll release another sub version.
Title: Re: Ad Management mod
Post by: jerm on November 22, 2009, 11:37:07 PM
Also, could people confirm this works. I have tested it on my development site but I have no beta testers anymore. Thanks.
Title: Re: Ad Management mod
Post by: raing3 on November 23, 2009, 12:15:48 AM
Thanks for the MOD update. Just installed, configured and gave it a quick test on 2.0RC2 and so far no complaints. Thanks for the update!
Title: Re: Ad Management mod
Post by: smp420 on November 23, 2009, 12:19:39 AM
It works but with left or right side ads there is a bug look at the attached screenshot.
Title: Re: Ad Management mod
Post by: jerm on November 23, 2009, 01:00:00 AM
Quote from: smp420 on November 23, 2009, 12:19:39 AM
It works but with left or right side ads there is a bug look at the attached screenshot.
Fixed. Uploaded and replaced the file. It should be fixed now. Thanks.
Title: Re: Ad Management mod
Post by: Dharshan on November 23, 2009, 01:22:43 AM
Woot!

it works..
Thanks for the great work!  ;D  ;D  ;D  ;D

you r the man....... thanks for the great work..

www.pcguide.exofire.net/forum (http://www.pcguide.exofire.net/forum)


is there a way to display ads at the end of first post (within the first post) ??
Title: Re: Ad Management mod
Post by: Afro on November 23, 2009, 02:05:54 AM
As soon as i added the mod RC2, the message index went blank.

every other places are showing ok.
strange, i changed the messageIndex.template file with a new brand one, and its still blank.
i uninstalled mod and its still blank
Title: Re: Ad Management mod
Post by: MultiformeIngegno on November 23, 2009, 03:09:04 AM
Afro are you using the default theme..?
Title: Re: Ad Management mod
Post by: mseraphim on November 23, 2009, 03:37:00 AM
Quote from: jerm on November 21, 2009, 10:59:10 PM
I will be trying to get a new version out that is compatible with RC2. I appologize. I have been very busy the last couple weeks and haven't had time to put work into this. I don't get paid for the work I put in here. Please remember that.

Hi Jerm,

I just want to say thank you for your willingness to create this mod for RC2!!! Will be testing it right away!!

MSeraphim
Title: Re: Ad Management mod
Post by: Afro on November 23, 2009, 03:59:16 AM
Quote from: lorenzone92 on November 23, 2009, 03:09:04 AM
Afro are you using the default theme..?

yes, but i found out the problem was from the added codes in displaytemplate.php
Title: Re: Ad Management mod
Post by: MultiformeIngegno on November 23, 2009, 04:35:42 AM
So is code from other mods?
Title: Re: Ad Management mod
Post by: Afro on November 23, 2009, 04:46:06 AM
no, the ad mod code in displaytemplate.
i removed it for now. pending
Title: Re: Ad Management mod
Post by: MultiformeIngegno on November 23, 2009, 05:03:39 AM
Did you notice any error during the installation?
Title: Re: Ad Management mod
Post by: Afro on November 23, 2009, 05:14:04 AM
Yea, some mod conflicts , which i edited manually
Title: Re: Ad Management mod
Post by: the_shadow on November 23, 2009, 07:49:01 AM
i'm using black rain V2 theme and in this theme i'ad got errors in all this files


someone can helpme???

thnkx
Title: Re: Ad Management mod
Post by: c23_Mike on November 23, 2009, 09:15:12 AM
Hi there !

Here at the installation all went very handsome, not one glitch. Now I have to test how it works, have created an ad but cannot see it, how are boards countet (1,2,3..) where can I see which board has what sort of number?
Title: Re: Ad Management mod
Post by: Arantor on November 23, 2009, 01:36:12 PM
Board ids are visible in the URL itself, for example index.php?board=1.0 is board id 1 and index.php?board=2.0 is board id 2.
Title: Re: Ad Management mod
Post by: dillon on November 23, 2009, 04:18:05 PM
Love this mod and have lots of advertisers that only advertise on certain boards.  I want to make special advertisers in my classifieds section that does not have a board number for me to specify specific ads within this section only.  Does that mean I can not use this feature there?

Path to it is this, there is no board #:

www.url.com/smfforum/index.php?action=classifieds
Title: Re: Ad Management mod
Post by: Arantor on November 23, 2009, 04:29:45 PM
Not without modifying the software, no.
Title: Re: Ad Management mod
Post by: dillon on November 23, 2009, 04:32:39 PM
Thanks for your reply.  Is this a large job?  What would need to be modified, the classifieds mod or the ad mod?
Title: Re: Ad Management mod
Post by: Arantor on November 23, 2009, 04:36:53 PM
I suspect it would be the ad mod, to be honest, but I really don't know enough about either.
Title: Re: Ad Management mod
Post by: lima5000 on November 23, 2009, 05:13:34 PM
Nice job, it is worked wonderfully at my forum,  but if you could help me, this mod works just at smf core template?  is there any way to work at the pixel perfect theme?
my version is rc2 1.2 and use pixel perfect theme
thanks a lot!
Title: Re: Ad Management mod
Post by: sudarsan7532 on November 23, 2009, 11:51:56 PM
 I am sick and tired of this ad mod...:(

It does not work with many themes

I tried using the parser,but the parser code modifications are different from the codes in my theme, so i cant find a way to install the ad management mod manually in my forum.

This is my forum:
http://forum.hyipnewsonline.com/

if anyone could help me install the admanagement mod in this forum, i would be really very grateful...please do help :)

one more thing
when i tried to do manual editing using the parser......when i was editing the index.template.php and i saved it....it showed a big template parse error....."the single quote ' should be folllow or escaped by a slash /"..

I am really mad with this mod, i feel like crying....i am frustrated...some of the techies here please help me. Pleaseeeeeeee
Title: Re: Ad Management mod
Post by: Arantor on November 23, 2009, 11:54:31 PM
What version of the mod, what version of SMF and what theme?
Title: Re: Ad Management mod
Post by: sudarsan7532 on November 24, 2009, 12:04:06 AM
Quote from: Arantor on November 23, 2009, 11:54:31 PM
What version of the mod, what version of SMF and what theme?

Mod Version: ad_mod_1-1-x_v2-3.zip
Forum version: 1.1.10
Forum theme: Anecdota117 (Anecdota)

Thanks :(
Title: Re: Ad Management mod
Post by: Arantor on November 24, 2009, 12:09:17 AM
And where are you trying to add it exactly?

I don't know the Anecdota theme well but I don't remember it has that many custom files meaning changes would apply to the default files for Anecdota to inherit.

That said I don't think its author supports it much now.
Title: Re: Ad Management mod
Post by: sudarsan7532 on November 24, 2009, 12:13:20 AM
Quote from: Arantor on November 24, 2009, 12:09:17 AM
And where are you trying to add it exactly?

I don't know the Anecdota theme well but I don't remember it has that many custom files meaning changes would apply to the default files for Anecdota to inherit.

That said I don't think its author supports it much now.

actually sir I am just have problem in editing the index.template.php.....the things given in the parser dont match with My theme's index.template.php

in the parser all the modification involve tables.....but in my theme tables are not being used instead <div> are being used....:( that why i am confused
Title: Re: Ad Management mod
Post by: sudarsan7532 on November 24, 2009, 12:16:21 AM
sir is there a way i could manually create some ad space in the forum below the menubar? without installing mods

Title: Re: Ad Management mod
Post by: Arantor on November 24, 2009, 12:44:00 AM
Is that just the only place you want it? (And please don't call me sir, makes me feel too formal)
Title: Re: Ad Management mod
Post by: sudarsan7532 on November 24, 2009, 12:46:22 AM
Quote from: Arantor on November 24, 2009, 12:44:00 AM
Is that just the only place you want it? (And please don't call me sir, makes me feel too formal)

Add space below the menubar and in footer.....only these 2 places....:)

is it possible, thanks  :):)

Title: Re: Ad Management mod
Post by: Arantor on November 24, 2009, 12:50:09 AM
Sure it is, by modifying your raw file itself. You may find someone has even done it in the Anecdota theme's discussion thread in fact.

If not please start a new topic in the Graphics and Templates board, with a copy of your theme's index.template.php file and the code for the ads you want to add. (If you're not using this mod, that's the best place to get support)
Title: Re: Ad Management mod
Post by: sudarsan7532 on November 24, 2009, 01:06:39 AM
Quote from: Arantor on November 24, 2009, 12:50:09 AM
Sure it is, by modifying your raw file itself. You may find someone has even done it in the Anecdota theme's discussion thread in fact.

If not please start a new topic in the Graphics and Templates board, with a copy of your theme's index.template.php file and the code for the ads you want to add. (If you're not using this mod, that's the best place to get support)

Thanks for your help :) finally now I am going to learn how to crete manual ad space....I have got freedom from this mod....to tell the truth i hate this mod....i have spent hours trying to get this mod working.....i think this mod does not suit the common man...only techies with programming knowledge wil be able to sort the puzzle with this mod epecially if your using the latest themes...

But as far as i have seen, this mod has worked very well and has been easy to install manualy in all old themes, only with new themes it is hard to install.

Thanks for your help Arantor, i really really appreciate it :)
Title: Re: Ad Management mod
Post by: Arantor on November 24, 2009, 01:08:30 AM
That's because the theme you have doesn't use the standard way SMF lays its theme out, nothing more. Unfortunately when theme authors do that, there's not a lot you can do other than manually add it.
Title: Re: Ad Management mod
Post by: nnyprs on November 25, 2009, 12:39:52 AM
I am having a problem installing this mod.  I use 1.1.10 and the default theme.  Every time I try to install it, an error is found in the display.template.php  Any clue?
Title: Re: Ad Management mod
Post by: smp420 on November 25, 2009, 12:54:23 AM
it is another mod interfering with it attach your display.template
Title: Re: Ad Management mod
Post by: Vyache on November 25, 2009, 01:42:39 AM
Hello,

For some reason it won't allow me change the chmod, for any of my files.
Title: Re: Ad Management mod
Post by: Kenny01 on November 25, 2009, 03:16:42 AM
Quote from: Vyache on November 25, 2009, 01:42:39 AM
Hello,

For some reason it won't allow me change the chmod, for any of my files.
Contact your host.
Title: Re: Ad Management mod
Post by: Eelko on November 25, 2009, 06:02:50 AM
I have some problems to installing this modification:

I use the normal Default Theme Curve and SMF2.0 RC2
Can anybody help me plz?:P

Sorry of my bad english :$
Title: Re: Ad Management mod
Post by: Kenny01 on November 25, 2009, 06:27:06 AM
Quote from: Eelko on November 25, 2009, 06:02:50 AM
I have some problems to installing this modification:

I use the normal Default Theme Curve and SMF2.0 RC2
Can anybody help me plz?:P

Sorry of my bad english :$
You have a custom theme, so install it manually.
Title: Re: Ad Management mod
Post by: Eelko on November 25, 2009, 07:51:04 AM
o ok Thnx :D
Title: Re: Ad Management mod
Post by: the_shadow on November 25, 2009, 10:30:49 AM
Quote from: the_shadow on November 23, 2009, 07:49:01 AM
i'm using black rain V2 theme and in this theme i'ad got errors in all this files


someone can helpme???
thnkx

i can´t add manually, i can't find the places to do it!!!! :S :(
Title: Re: Ad Management mod
Post by: sudarsan7532 on November 25, 2009, 09:48:53 PM
Quote from: the_shadow on November 25, 2009, 10:30:49 AM
Quote from: the_shadow on November 23, 2009, 07:49:01 AM
i'm using black rain V2 theme and in this theme i'ad got errors in all this files


someone can helpme???
thnkx

i can´t add manually, i can't find the places to do it!!!! :S :(

hello,

this mod cant be installed in some new themes, so better you create some ad space manually in your forum

edit index.template.php tp manually create ad space.
Title: Re: Ad Management mod
Post by: Eelko on November 27, 2009, 09:56:32 AM
Hello,

I have now manualy installed this mod but only members can see the ads ?
If you are a guest you can see it?

See screenshot:
Title: Re: Ad Management mod
Post by: poolhall on November 27, 2009, 12:54:09 PM
@Eelko

You need to enable ads in Permissions for Guests .
Title: Re: Ad Management mod
Post by: javierjp on November 27, 2009, 12:56:06 PM
Hi, im using this wonderfull mod since long time ago, congratulations!

My question is:

Would be possible to create diferent ads for different user groups in future versions? you think this can be added?
I mean add a permissions feature.

thanks in advance
best regards
Title: Re: Ad Management mod
Post by: ewealths on November 27, 2009, 09:07:20 PM
I have been reading this post from the beginning, slept woke up, still reading, but never seem to get the gist on this, PLEASE CAN SOMEONE HELP ME SIMPLIFY THE PROCESS, I currently use default theme, version of smf is 1.1.10, I want to run ads
I have uploaded the ad management mod but can not find it again to "modify" do I even need to modify it, PLEASE I JUST WANT TO GET THIS WORKING? Thanks in ADVANCE...

Please is this correct

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    install.php    
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/Subs.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
6.    Execute Modification    ./Themes/default/Display.template.php    Test successful
7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
8.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
9.    Extract File    ./Sources/Ads.php    
10.    Extract File    ./Sources/LoadAds.php    
11.    Extract File    ./Themes/default/Ads.template.php    
12.    Extract File    ./Themes/default/languages/Ads.english.php

if it is WHY is there no Test successful for other files
Title: Re: Ad Management mod
Post by: ewealths on November 27, 2009, 09:51:17 PM
There is a new link there called "Ad Management" .
Clicking on this link will bring up the configuration screen for the Ad Management Mod. In here you will see 4 tabs, Edit ads, Add ads, Reports and Credits.

But I can't find anything like that in my own, I uploaded to my site, what I found is
   1.  install.xml (12375 bytes)
   2. LoadAds.php (8939 bytes)
   3. package-info.xml (1075 bytes)
   4. readme.txt (1759 bytes)
   5. Ads.php (11778 bytes)
   6. Ads.english.php (11679 bytes)
   7. Ads.template.php (25316 bytes)
   8. install.php (2370 bytes)


Do I need to unzip before I upload,the above is not even in configuration path, please I need help, thanks
Title: Re: Ad Management mod
Post by: Arantor on November 27, 2009, 10:06:57 PM
install.php runs and is deleted, package-info.xml is also deleted since it isn't necessary.

LoadAds.php and Ads.php should be in Sources/, Ads.english.php in Themes/default/languages/, Ads.template.php in Themes/default/.

The install should have managed those for you.
Title: Re: Ad Management mod
Post by: ewealths on November 27, 2009, 10:58:19 PM
Quote from: Arantor on November 27, 2009, 10:06:57 PM
install.php runs and is deleted, package-info.xml is also deleted since it isn't necessary.

LoadAds.php and Ads.php should be in Sources/, Ads.english.php in Themes/default/languages/, Ads.template.php in Themes/default/.

The install should have managed those for you.

I can't find the ad mod in my configuration or anywhere except in packages and will I modify this mod to show google ads, thanks for your prompt reply expecting more...
Title: Re: Ad Management mod
Post by: Arantor on November 27, 2009, 10:59:46 PM
Please can we have a screenshot of your admin area?

(Please note, I didn't write this mod, I have never used it, but know a little something about modding in general)
Title: Re: Ad Management mod
Post by: ewealths on November 28, 2009, 12:12:35 AM
Am so sorry that I do understand what you mean by screenshot (a total newbie) and am also sorry to border you this much am just worried that a mod is giving me problem, I just want to add google adsense to my earning.
But I am seeing on my site all that is given below:

Main
Administration Center
Support and Credits
News and newsletters
Packages
Configuration
Features and Options
Server Settings
Current Theme
Themes and Layout

Forum
Boards
Posts and Topics
Calendar
Search
Smileys and Message Icons
Attachments and Avatars
Members
Members
Membergroups
Permissions
Registration
Ban List
Maintenance
Forum Maintenance
Generate Reports
Forum Error Log
   
Administration Center
Welcome,
This is your "Administration Center". From here, you can edit settings, maintain your forum, view logs, install packages, manage themes, and many other things.
If you have any trouble, please look at the "Support & Credits" page. If the information there doesn't help you, feel free to look to us for help with the problem.
You may also find answers to your questions or problems by clicking the Help symbols for more information on the related functions.
Update Available!
You're using an outdated version of SMF, which contains some bugs which have since been fixed. It is recommended that you update your forum to the latest version as soon as possible. It only takes a minute!
Help Live from Simple Machines...
You are unable to connect to simplemachines.org's latest news file.
        
Support Information
Version Information:
Forum version: SMF 1.1.10
Current SMF version: SMF 1.1.10
(more detailed)

Forum Administrators:
Support and Credits
Get support on common issues and version information to give if you have problems.    
Features and Options
Change or set options that control how this forum operates.
Forum Maintenance
Optimize tables, make backups, check for errors, and prune boards with these tools.    
Permissions
Change restrictions and available features globally or to specific boards.
Themes and Layout
Setup and manage your themes and set or reset theme options.    
Packages
Install new features or modify existing ones with this interface.
Smileys and Message Icons
Install new smiley sets, add smileys to existing ones, or manage your message icons.    
Members
View the member list, search for members and manage not-yet-approved members and members who haven't activated their account yet.


AND THEN UNDER PACKAGES IS IT SHOWING THIS


Browse Packages
Modification Packages
   Mod Name    Version    
1.    Ad Managment    2.3    [ Uninstall ] [ List Files ] [ Delete ]
Installed mods: current version older version

List files in package
Files in archive ad_mod_1-1-x_v2-3.zip:

   1. install.xml (12375 bytes)
   2. LoadAds.php (8939 bytes)
   3. package-info.xml (1075 bytes)
   4. readme.txt (1759 bytes)
   5. Ads.php (11778 bytes)
   6. Ads.english.php (11679 bytes)
   7. Ads.template.php (25316 bytes)
   8. install.php (2370 bytes)

[ Back ]
Title: Re: Ad Management mod
Post by: anto74 on November 28, 2009, 02:38:35 AM
Thanks for this Mod.
Works almost perfect in my RC2 forum but i have one problem: the ads not shows in welcome user area...! ( only in this place...in other place works ok! )
Any can helps me?
Antonio
Title: Re: Ad Management mod
Post by: carbonize on November 28, 2009, 04:16:32 AM
Quote from: jerm on November 22, 2009, 11:34:57 PM
After some work, I completed it. Welcome ads no longer work because I couldn't figure out how to code it. If someone can let me know how to do it and give me the code, I'll release another sub version.
Title: Re: Ad Management mod
Post by: MazdaClubTR on November 28, 2009, 11:43:43 AM
Hi ,

I have been using this great mod for months on my main site and today I have just installed it on my test site for SMF 2 RC2

I have set a test ad as follows ;

Display ads within posts ( between 1st and 2nd message )
Display ads under child boards

and

Display ads in the welcome user area

I can see the first two but I can not see the ad in the welcome user area. What can be the reason ?

Test site link is as follows ;

http://www.mzdclbtr.com

SMF RC2 , default theme, Ad Management 2.3.6 installed
Title: Re: Ad Management mod
Post by: anto74 on November 28, 2009, 12:53:11 PM
Quote from: carbonize on November 28, 2009, 04:16:32 AM
Quote from: jerm on November 22, 2009, 11:34:57 PM
After some work, I completed it. Welcome ads no longer work because I couldn't figure out how to code it. If someone can let me know how to do it and give me the code, I'll release another sub version.
Thanks  :)
Antonio
Title: Re: Ad Management mod
Post by: MazdaClubTR on November 28, 2009, 01:09:54 PM
Feeling stupid :P Anyway thanks for the reply :)
Title: Re: Ad Management mod
Post by: yourdailysaver on November 28, 2009, 02:59:47 PM
hello seniors,

i have upgraded to smf 2.0 RC2 and using curve theme. in any area i place my ads it shows only in some of the admin pages (backupdatabase page, empty catch page. ...) no other pages display my ads. seniors please help.
Title: Re: Ad Management mod
Post by: Kenny01 on November 28, 2009, 04:38:21 PM
Quote from: yourdailysaver on November 28, 2009, 02:59:47 PM
hello seniors,

i have upgraded to smf 2.0 RC2 and using curve theme. in any area i place my ads it shows only in some of the admin pages (backupdatabase page, empty catch page. ...) no other pages display my ads. seniors please help.
Check your permission settings.
Title: Re: Ad Management mod
Post by: ewealths on November 28, 2009, 09:58:27 PM
the solution to all of smf ad mod can be found on the the creator of the site forum, though the site is up for sale but he still provide vital solution, I fund answers to mine: My problem was after I installed it was not showing in Admin, it was an headache but the answer is here:http://www.smfads.com/forums/index.php?topic=1802.0 (http://www.smfads.com/forums/index.php?topic=1802.0)
Title: Re: Ad Management mod
Post by: MegaByte on November 29, 2009, 03:19:28 PM
This doesn't install under 2.0 RC2 using PostgreSQL as the database.

ERROR: syntax error at or near "NOT"
LINE 2: CREATE TABLE IF NOT EXISTS smf_ads (
^
File: /web/forums/Packages/temp/install.php
Line: 31
Title: Re: Ad Management mod
Post by: gasman on November 29, 2009, 04:22:23 PM
I have installed the new version of the Ad Management mod on my site with SMF 2.0 RC2. No problems in installation, and runs smoothly.


However, there seems to be nothing in the Member Permissions settings that I can find to enable viewing ads for each membergroup. There is a Permission for Enabling Ads (under Admin permissions), but not for simply viewing ads.


Am I missing something?
Title: Re: Ad Management mod
Post by: smp420 on November 29, 2009, 11:23:05 PM
Enable ads will make them show up. You must enable ads for each membergroup you want to see the ads.
Title: Re: Ad Management mod
Post by: kingkingston on November 30, 2009, 01:44:30 AM
How do i centre an ad ?,should be one of the features
Title: Re: Ad Management mod
Post by: carbonize on November 30, 2009, 07:03:23 AM
Quote from: kingkingston on November 30, 2009, 01:44:30 AM
How do i centre an ad ?,should be one of the features

By learning HTML.

<div style="text-align:center;">{adcode here}</div>
Title: Re: Ad Management mod
Post by: kingkingston on November 30, 2009, 12:23:51 PM
Quote from: carbonize on November 30, 2009, 07:03:23 AM
Quote from: kingkingston on November 30, 2009, 01:44:30 AM
How do i centre an ad ?,should be one of the features

By learning HTML.

<div style="text-align:center;">{adcode here}</div>
no need to be a smart ass :D,i just had the wrong html code that's all.
Title: Re: Ad Management mod
Post by: gasman on November 30, 2009, 02:42:08 PM
Quote from: smp420 on November 29, 2009, 11:23:05 PM
Enable ads will make them show up. You must enable ads for each membergroup you want to see the ads.

Its a bit misleading. The "Enable Ads" option is under the "Administrative Duties" section in the permissions, which implies that if ticked, that member can choose to make ads active or not for the forum.

I suggest it should be better called "View Ads" and be under "View Additional Board Content" section of member permissions.

cheers
Rob
Title: Re: Ad Management mod
Post by: Nodaz on December 02, 2009, 12:09:19 AM
just installed this on 1.1.11.   seemed to install fine, ad management is listed under admin tools. 
I use the outline theme
I created a test ad and when  i saved it it now show TWO identical ads listed.
The ad doesn't show up anywhere on the outline theme, but when i switch to the default theme it appears, TWICE.
Thoughts on how to resolve this?


Title: Re: Ad Management mod
Post by: smp420 on December 02, 2009, 12:20:46 AM
It installed the mod twice use the parser on the mod page to see the code this mod adds on and to what files and get rid of the duplicate code. And to get it to work on a custom theme you will have to add the code yourself use the parser for this as well.
Title: Re: Ad Management mod
Post by: Nodaz on December 02, 2009, 12:29:53 AM
Quote from: smp420 on December 02, 2009, 12:20:46 AM
It installed the mod twice use the parser on the mod page to see the code this mod adds on and to what files and get rid of the duplicate code.
Not sure what you mean here... where is the parser?
i opened the package manager an see a list of files installed, no duplicates.

How did the double install happen?
Should i just upload a backup of the home directory and start again? easier?



Quote from: smp420 on December 02, 2009, 12:20:46 AM
And to get it to work on a custom theme you will have to add the code yourself use the parser for this as well.
Ok ill do that later after i fix the first problem.
Title: Re: Ad Management mod
Post by: smp420 on December 02, 2009, 01:57:26 AM
The parser is on the page you downloaded the mod from just pick the version of smf, and ad management your using and click parse and it will show everything the mod adds or changes.
Title: Re: Ad Management mod
Post by: Nodaz on December 02, 2009, 02:50:08 AM
ok, found it, i think i will try uploading a fresh backup i did just prior to the mod,  is there any reason it installed the mod twice? 
EDIT, backup restored,
if i try this install will it double install again?
Title: Re: Ad Management mod
Post by: smp420 on December 02, 2009, 05:57:04 PM
It shouldn't install twice but it happens sometimes.
Title: Re: Ad Management mod
Post by: musicman8oh8 on December 03, 2009, 09:17:02 AM
Has anyone installed this on the default theme without any issues but yet no Ads are displaying? If so and you have "fixed" the issue please post what you have done to correct it. Thanks in advance.
Title: Re: Ad Management mod
Post by: Arantor on December 03, 2009, 10:01:17 AM
musicman80h8: Please state what version of SMF you're using, might help someone to help you unravel it.
Title: Re: Ad Management mod
Post by: alado on December 07, 2009, 12:56:32 PM
How to remove the display panel statistics the last message? Appears force!
It's set to display after the first message!
Title: Re: Ad Management mod
Post by: perplexed on December 07, 2009, 02:04:19 PM
Quote from: musicman8oh8 on December 03, 2009, 09:17:02 AM
Has anyone installed this on the default theme without any issues but yet no Ads are displaying? If so and you have "fixed" the issue please post what you have done to correct it. Thanks in advance.

have you switched the ads on?  Can you see them as admin?  have you set permissions?
Title: Re: Ad Management mod
Post by: ABCDiamond on December 07, 2009, 08:25:13 PM
I have been using this on 1.1.10 for a while, but when I upgraded to 1.1.11, no Ads appeared, and the advert option in Admin vanished, although it still showed up in the mod packages installed, as being active.

I reverted back to 1.1.10 and things returned to normal.

Should I delete the ad mod, then do a full re-install after upgrading to 1.1.11?

Title: Re: Ad Management mod
Post by: shumilica on December 07, 2009, 09:57:53 PM
Yes. Uninstall the mod, upgrade your smf, then reinstall the mod. No ads will be lost!
Title: Re: Ad Management mod
Post by: sgsharetalk on December 12, 2009, 09:27:06 AM
Quote from: shumilica on December 07, 2009, 09:57:53 PM
Yes. Uninstall the mod, upgrade your smf, then reinstall the mod. No ads will be lost!


I have same problem, however when after removed the mod and try to reinstall. following error is displayed.
I am using SMF 1.1.11 now. the test shown the display.tempate.php is having trouble. I dare not proceed with the package manager. anyone can advise next step. thanks in advance.
(http://lh5.ggpht.com/_BI7ZCkuI41A/SyOkryQalXI/AAAAAAAADh0/gnruzMiJEeg/s800/screen.jpg)
Title: Re: Ad Management mod
Post by: smp420 on December 12, 2009, 01:05:42 PM
Try this one
Title: Re: Ad Management mod
Post by: sgsharetalk on December 12, 2009, 06:35:11 PM
Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF


After downloaded the display.template.php and replace with FTP... try to use package manager to apply the MOD again. the same warning message display.... shall I continue ? sorry to trouble you again. thanks  
Title: Re: Ad Management mod
Post by: perplexed on December 12, 2009, 08:07:43 PM
sgsharetalk - the ad management install is failing on that file probably because the code has been changed by another mod you have already installed.  What you need to do is install the ad management mod, then you will have to manually edit your own display template to add in the code that the ad management mod couldn't add during the installation ie the fail.  You can find the instructions on how and what to add to your own display template on the ad management mod page - look for "manual instructions" on the top right hand side.  Select the package you are trying to install and your version of smf, and then look for the edits to add to your display template.  Then upload the edited file and it should be OK.

Remember always to take back ups of database and sources and files before installing or editing anything, in case anything goes wrong.
Title: Re: Ad Management mod
Post by: sgsharetalk on December 12, 2009, 08:23:56 PM
Millions thanks and this kind of support is really appreciated. Ok I will spend time to digest the manual installation and give it a try later. have a nice weekend.
Title: Re: Ad Management mod
Post by: sgsharetalk on December 13, 2009, 09:00:03 AM
Quote from: smp420 on December 12, 2009, 01:05:42 PM
Try this one

Thank you for the display.template.php,  however after installed still unable to install the ads mod. any suggestion . ps I can't do it manually too because I am not a programer.
Title: Re: Ad Management mod
Post by: smp420 on December 13, 2009, 01:22:04 PM
sorry use this one
Title: Re: Ad Management mod
Post by: navjotjsingh on December 16, 2009, 02:59:38 AM
How to edit the background color when a ad is shown under the post? Its pink currently. And if I select option of displaying it as post, then name of member used comes below the post text...whole block gets shifted to right below the post instead of starting below the username in the post.
Title: Re: Ad Management mod
Post by: navjotjsingh on December 16, 2009, 04:09:24 AM
Also how to disable ads for specific usergroups? I tried Permissions but no matter what setting I choose in permission ads keep enabled unless I check Disable ads for admins from global settings - which disable ads not only for admin but for everybody else too.
Title: Re: Ad Management mod
Post by: vhs on December 16, 2009, 01:42:41 PM
Quote from: navjotjsingh on December 16, 2009, 02:59:38 AM
How to edit the background color when a ad is shown under the post? Its pink currently.

I'm also lookin for it.
Title: Re: Ad Management mod
Post by: saintsinner on December 16, 2009, 02:27:36 PM
i have changed my theme to anecdota by Crip. but now the ads arent showing. it was working fine when i had the default template on. i checked all the permissions and tickmarked "enable ads".
any help?
thanks
Title: Re: Ad Management mod
Post by: Arantor on December 16, 2009, 03:14:31 PM
You will have to edit the theme to add ad support.
Title: Re: Ad Management mod
Post by: saintsinner on December 16, 2009, 03:49:00 PM
Quote from: Arantor on December 16, 2009, 03:14:31 PM
You will have to edit the theme to add ad support.
how do i do it??
Title: Re: Ad Management mod
Post by: perplexed on December 16, 2009, 05:34:35 PM
go to the mod page and follow the instructions for editing themes for your version of the software. 
Title: Re: Ad Management mod
Post by: MoreBloodWine on December 16, 2009, 05:43:05 PM
Question...

When viewing reports... under hits it's counting everytime an ad is shown on a page. Shouldnt a hit be defined as one count for each time an add is clicked. Assuming you have an add that is clickable and leads to another site ?
Title: Re: Ad Management mod
Post by: Bigguy on December 16, 2009, 06:17:15 PM
Quote from: saintsinner on December 16, 2009, 03:49:00 PM
Quote from: Arantor on December 16, 2009, 03:14:31 PM
You will have to edit the theme to add ad support.
how do i do it??

Only edit the template files the mod lists that are present in your custom theme folder. Nothing else should have to be edited as the mod edits all other files when you install it.

Title: Re: Ad Management mod
Post by: saintsinner on December 16, 2009, 08:38:50 PM
i am sorry. i still dont get it. do i just coy the files from mod and paste on to the custom template?
Title: Re: Ad Management mod
Post by: Bigguy on December 16, 2009, 10:36:00 PM
Install the mod, then go to the mod page you got it from and parse it. After that look in your custom theme folder and see what template files you have. Compare them to the template file names that are mentioned in the parser. Edit the template files in the custom theme folder that are there and that's it. You should be done. All other edits you see from the parser were done when the mod was installed.
Title: Re: Ad Management mod
Post by: nnick on December 17, 2009, 04:21:30 AM
Hello,

Will the latest version work with 1.1.11? At it's description it stops on 1.1.10
Title: Re: Ad Management mod
Post by: perplexed on December 17, 2009, 06:25:43 AM
Quote from: nnick on December 17, 2009, 04:21:30 AM
Hello,

Will the latest version work with 1.1.11? At it's description it stops on 1.1.10

have you tried to install it to see if it works?
Title: Re: Ad Management mod
Post by: nnick on December 17, 2009, 06:59:18 AM
No I haven't. I didn't want to mess the forum in case it doesn't :)
Title: Re: Ad Management mod
Post by: perplexed on December 17, 2009, 07:16:14 AM
if you upload the mod to package manager and click install, then if it says there are no fails, then personally I would proceed - assuming of course that I had already backed everything up as a precaution (database, files etc) and nothing should get messed up.  Even if someone tells you that it will work with 1.1.11 you still won't know if it will work for you personally depending on what else you have installed on your forum, other mods, themes etc
Title: Re: Ad Management mod
Post by: nnick on December 17, 2009, 08:04:19 AM
I have installed it, and it seems it works ok :)

I have another question though.

In another forum we had installed a previous version of this mod. For some reason, links from admin are missing although db tables are still there.

How do you propose to proceed there? Should I just delete the tables and try install the mod?
Title: Re: Ad Management mod
Post by: masterofceremony on December 17, 2009, 09:28:04 AM
Hi,

I have automatically installed Ad Management mod V 2.3 into SMF 2.0 RC2 in default theme and in footer, before Info Center I can see parse error:

Parse error: syntax error, unexpected '<' in /data03/virt23706/domeenid/www.bonsuna.com/htdocs/forum/Sources/Load.php(2081) : eval()'d code(233) : eval()'d code on line 1

And the ads are not working. Can You please help me with this matter.

brgs,

Marco
Title: Re: Ad Management mod
Post by: masterofceremony on December 18, 2009, 02:42:17 AM
Problem solved.

Can anybody give me a hint, how to modify Core theme, so it can show ads also.
Edit: I have curve theme as a default.
Title: Re: Ad Management mod
Post by: arreferee on December 18, 2009, 12:07:35 PM
Is there a way to reset the hit counter for this mod?  I would like to reset it each month so I can report back to the advertisers how many hits they are getting.
Title: Re: Ad Management mod
Post by: MoreBloodWine on December 18, 2009, 02:38:03 PM
Quote from: arreferee on December 18, 2009, 12:07:35 PM
Is there a way to reset the hit counter for this mod?  I would like to reset it each month so I can report back to the advertisers how many hits they are getting.
Hits arent worth using until someone looks at the problem I pointed out. A hit for a banner is defined as how many clicks it gets, not how many times a banner is shown that someone might not even be looking at.
Title: Re: Ad Management mod
Post by: baurebu on December 18, 2009, 05:39:57 PM
Has anybody here managed to install the mod with the kani theme? I have been trying for the last 2 days to get it to work. No luck. I can't seem to find the right location to add the code. Most code that needs to be replaced according to the instructions on the authors site, I can't find. I'm lost.  :-[
Title: Re: Ad Management mod
Post by: Bigguy on December 18, 2009, 09:59:52 PM
Look for parts of the code and that should give you the general location. You really need a good code editor like Php Designer.
Title: Re: Ad Management mod
Post by: baurebu on December 18, 2009, 11:02:27 PM
I was going through the index.template.php file and inserting adsense blocks just to see where it would pop up, but it would always give me an error on the template and the forum wouldnt work.
Title: Re: Ad Management mod
Post by: Bigguy on December 18, 2009, 11:52:37 PM
What editor are you using. ???
Title: Re: Ad Management mod
Post by: baurebu on December 18, 2009, 11:57:11 PM
notepad++. What difference does the editor make, if I don't know where to insert the adsense code.
Title: Re: Ad Management mod
Post by: Bigguy on December 19, 2009, 12:09:18 AM
Are you using the parser and what I suggested. ???
Title: Re: Ad Management mod
Post by: baurebu on December 19, 2009, 12:14:19 AM
ok back to the drawing board. Let me give it another try.  :)
Title: Re: Ad Management mod
Post by: Bigguy on December 19, 2009, 12:37:53 AM
If you have an editor that has a search function that's fine.....when searching for code, if you can't find xyz;whatever then search for xyz. Read the code in the parser and it will tell you if you are close enough to the right spot. It takes a bit to get used to it but you will get it. ;)

EDIT: Notepad can leave whitespace which causes errors. I would recommend not using it.
Title: Re: Ad Management mod
Post by: baurebu on December 19, 2009, 12:42:25 AM
My problem is that I am not really familiar with php code. More used to html. So it's kinda hard to know what section code is doing what. I'll tackle it tomorrow.
Title: Re: Ad Management mod
Post by: Sun11 on December 19, 2009, 08:09:32 AM
I'v always used this mod on any of my forums
Title: Re: Ad Management mod
Post by: dansomers on December 19, 2009, 07:39:47 PM
I have installed this on my forum http://seoguideforum.com but it only shows adverts to myself!

I did a dummy account and it doesnt show up for guests or registered, just admins

Title: Re: Ad Management mod
Post by: Arantor on December 19, 2009, 07:46:15 PM
Check the permissions in the admin panel.
Title: Re: Ad Management mod
Post by: dansomers on December 19, 2009, 07:54:46 PM
Only took 2 hours to work out ;)


Thank you
Title: Re: Ad Management mod
Post by: supahben on December 20, 2009, 10:58:35 AM
why does it modifies the default theme instead of my current theme?
Title: Re: Ad Management mod
Post by: Arantor on December 20, 2009, 11:15:05 AM
Because most themes actually reuse the default theme code in most cases.

Plus the default theme will *always* be installed.
Title: Re: Ad Management mod
Post by: supahben on December 20, 2009, 11:19:15 AM
Quote from: The Grinch on December 20, 2009, 11:15:05 AM
Because most themes actually reuse the default theme code in most cases.

Plus the default theme will *always* be installed.
does that mean i have to install it manually to my current theme?
Title: Re: Ad Management mod
Post by: Bigguy on December 20, 2009, 11:21:34 AM
Yes.
Title: Re: Ad Management mod
Post by: KensonPlays on December 20, 2009, 08:40:47 PM
Quote from: steelsun on January 30, 2006, 11:21:34 PM
Anyone use this yet?
I'd like to see a working example.

I am currently using it, visit http://www.kcmartz.com/forum and go to the bottom of the pages...

EDIT:
How do you set it so certain membergroups see the ads, and certain ones dont?
Title: Re: Ad Management mod
Post by: KensonPlays on December 20, 2009, 08:56:39 PM
Nevermind. Figured it out. *I THINK*
Title: Re: Ad Management mod
Post by: rockstar30993 on December 21, 2009, 05:20:30 AM
Quote from: Kcmartz on December 20, 2009, 08:56:39 PM
Nevermind. Figured it out. *I THINK*

Hey man can u you tell how is this done?
In my forum only Admins can see my Ads.Regular members can't see them.
I am using Dilber MC Theme and i have manually installed the mod.Someone help me....
www.cyberwarezmedia.com
Please help me .....
Title: Re: Ad Management mod
Post by: Arantor on December 21, 2009, 05:35:22 AM
We don't allow links to warez sites here, and generally won't support them either.
Title: Re: Ad Management mod
Post by: rockstar30993 on December 21, 2009, 06:18:00 AM
Quote from: The Grinch on December 21, 2009, 05:35:22 AM
We don't allow links to warez sites here, and generally won't support them either.
Hey it is just a name of fancy,mine is community forum based mainly for community.
Title: Re: Ad Management mod
Post by: supahben on December 21, 2009, 06:43:14 AM
Quote from: rockstar30993 on December 21, 2009, 06:18:00 AM
Quote from: The Grinch on December 21, 2009, 05:35:22 AM
We don't allow links to warez sites here, and generally won't support them either.
Hey it is just a name of fancy,mine is community forum based mainly for community.
lol its warez :D
Title: Re: Ad Management mod
Post by: rockstar30993 on December 21, 2009, 07:28:11 AM
Quote from: supahben on December 21, 2009, 06:43:14 AM
Quote from: rockstar30993 on December 21, 2009, 06:18:00 AM
Quote from: The Grinch on December 21, 2009, 05:35:22 AM
We don't allow links to warez sites here, and generally won't support them either.
Hey it is just a name of fancy,mine is community forum based mainly for community.
lol its warez :D
Come on bro we are also using smf and whenever we come across trouble why can't you just help us.....
please i beg you i am in need of help.....
Title: Re: Ad Management mod
Post by: Arantor on December 21, 2009, 07:44:46 AM
Because the site looks like it contains material we don't allow here. We do not ever allow links to warez, hacking or other illegal material here.

If someone else wants to help you, that's up to them. I personally will not.
Title: Re: Ad Management mod
Post by: poolhall on December 21, 2009, 02:09:09 PM
Quote from: rockstar30993 on December 21, 2009, 05:20:30 AM
Quote from: Kcmartz on December 20, 2009, 08:56:39 PM
Nevermind. Figured it out. *I THINK*

Hey man can u you tell how is this done?
In my forum only Admins can see my Ads.Regular members can't see them.
I am using Dilber MC Theme and i have manually installed the mod.Someone help me....
www.cyberwarezmedia.com
Please help me .....
You need to enable permission to see ads for each membergroup.
Title: Re: Ad Management mod
Post by: steveyos on December 23, 2009, 12:40:56 AM
Quote from: poolhall on December 21, 2009, 02:09:09 PM
Quote from: rockstar30993 on December 21, 2009, 05:20:30 AM
Quote from: Kcmartz on December 20, 2009, 08:56:39 PM
Nevermind. Figured it out. *I THINK*

Hey man can u you tell how is this done?
In my forum only Admins can see my Ads.Regular members can't see them.
I am using Dilber MC Theme and i have manually installed the mod.Someone help me....
www.cyberwarezmedia.com
Please help me .....
You need to enable permission to see ads for each membergroup.



I'm having the same problem where I only I can see ads and other members can't. I'm using the default theme that came with SMF 2.0 RC2. Where do you enable permissions at? I've looked in the ad mod settings and the membergroups settings. I'm not seeing anything about ads at all in the membergroups area, and nothing about membergroups in the ad mod area.
Title: Re: Ad Management mod
Post by: Arantor on December 23, 2009, 02:37:22 AM
More on Permissions: Permissions (http://docs.simplemachines.org/index.php?board=60.0;sort=subject)
Title: Re: Ad Management mod
Post by: steveyos on December 23, 2009, 10:01:51 AM
Quote from: The Grinch on December 23, 2009, 02:37:22 AM
More on Permissions: Permissions (http://docs.simplemachines.org/index.php?board=60.0;sort=subject)

Is there something about ad mod permissions in that link? I can't find it if so.
Title: Re: Ad Management mod
Post by: Arantor on December 23, 2009, 10:44:14 AM
No, that's how you do permissions generally.

Ad permissions should be added to the permissions area like all the others.
Title: Re: Ad Management mod
Post by: steveyos on December 24, 2009, 08:57:28 AM
Quote from: The Grinch on December 23, 2009, 10:44:14 AM
No, that's how you do permissions generally.

Ad permissions should be added to the permissions area like all the others.

How do I go about doing that exactly? Consider me a noob.

If you'd rather avoid the hassle though, the mod worked fine without having to change any permissions in 1.1.10, maybe I should switch back for now?
Title: Re: Ad Management mod
Post by: Arantor on December 24, 2009, 08:58:28 AM
I thought this mod had permissions in the permissions area but a) I've never used it and b) I'm only going on the comments earlier in this thread.
Title: Re: Ad Management mod
Post by: steveyos on December 24, 2009, 09:03:36 AM
Quote from: The Grinch on December 24, 2009, 08:58:28 AM
I thought this mod had permissions in the permissions area but a) I've never used it and b) I'm only going on the comments earlier in this thread.

Ahhhh, I got ya. No problem, I'll keep researching.
Title: Re: Ad Management mod
Post by: ekfaysal on December 28, 2009, 11:57:41 AM
guys
im facing a problem
using SMF 2 rc2
with default theme
first i hv uninstalled add mod. then uploaded new one and installed.
now whenever i try to add one slot, it addz 2.
it does it twice.
please anybody help
i hv already asked in the official forum of ad mod but they never reply so asking fom you guys.
Title: Re: Ad Management mod
Post by: 2sanstef on December 28, 2009, 01:47:37 PM
Hi

Just completed a clean install of 1.1.11 due to a krisbarteo virus again!!

Have re-installed ad management mod, learning from experience I checked that all relevant files were CHMOD 777 and included a temp file in the package manager.

Mod installed and previous ads are displayed perfectly, problem is that the Amin area doesn't include access to the Ad management function, menu has been changed but hyperlink not there!!

Do I uninstall and try again or manually amend if so which files?
thanks
Title: Re: Ad Management mod
Post by: akbora on December 28, 2009, 01:50:54 PM
Ad management is very succesful mod but RC2 versiyon doesn't run welcome user area?
Title: Re: Ad Management mod
Post by: carbonize on December 28, 2009, 01:53:57 PM
Quote from: jerm on November 22, 2009, 11:34:57 PM
After some work, I completed it. Welcome ads no longer work because I couldn't figure out how to code it. If someone can let me know how to do it and give me the code, I'll release another sub version.
Title: Re: Ad Management mod
Post by: smp420 on December 28, 2009, 02:08:52 PM
Quote from: ekfaysal on December 28, 2009, 11:57:41 AM
guys
im facing a problem
using SMF 2 rc2
with default theme
first i hv uninstalled add mod. then uploaded new one and installed.
now whenever i try to add one slot, it addz 2.
it does it twice.
please anybody help
i hv already asked in the official forum of ad mod but they never reply so asking fom you guys.
Either the mod installed twice or the old version never uninstalled. use the parser on the mod page and remove the duplicatecode in your files.
Title: Re: Ad Management mod
Post by: 2sanstef on December 28, 2009, 04:35:49 PM
Quote from: 2sanstef on December 28, 2009, 01:47:37 PM
Hi

Just completed a clean install of 1.1.11 due to a krisbarteo virus again!!

Have re-installed ad management mod, learning from experience I checked that all relevant files were CHMOD 777 and included a temp file in the package manager.

Mod installed and previous ads are displayed perfectly, problem is that the Amin area doesn't include access to the Ad management function, menu has been changed but hyperlink not there!!

Do I uninstall and try again or manually amend if so which files?
thanks

Missing ads.english language file has resolved this however, now getting an "Unable to load ads template message when I click on the ad management option in the control panel with an errors log of

2sanstef   Today at 09:32:03 PM 
81.86.56.159     323b899e3f76da2bdfb626492c496fdb 
http://www.sanstefanos.co.uk/smf/index.php?action=admod 
Unable to load the 'Ads' template
Title: Re: Ad Management mod
Post by: pointalk on December 29, 2009, 01:33:31 AM
admin can set banners random impression and set  every banner impression's times

please include this feature. :)
Title: Re: Ad Management mod
Post by: bchangia on December 29, 2009, 07:03:22 AM
Hi

I need a help I've installed Ad Management mod.

The installation happened properly, no error, now after adding the add in the SMF its not working, I don't see any add in my forum.

I checked the logs and for instance I'm pasting 1 of the example, for all the pages it says Undefined index:  Google_Results_Width

I checked each code for this mod and the queries all looks fine to me there is no problem.

8: Undefined index:  Google_Results_Width                                    File: /public_html/tf/techfreak.in/Themes/default/Errors.template.php (body_above sub template - eval?)
                     Line: 396                  

Can somebody please help?
Thanks in advance
Title: Re: Ad Management mod
Post by: Bigguy on December 29, 2009, 10:16:23 AM
Are you using a custom theme, if so then you will have to make some manual edits to your custom template files.
Title: Re: Ad Management mod
Post by: bchangia on December 29, 2009, 10:45:08 AM
No its the default theme and I've installed SMF 2.0 RC2

On this forum the default theme is "SMF Default Theme - Curve"

Do you mean to say the changes which is done on the files located in /home/Themes/default should it be done to /home/Themes/curve ?

But I've the following folders under themes folder
babylon
classic
core
default
Title: Re: Ad Management mod
Post by: Arantor on December 29, 2009, 10:50:18 AM
Nope. Curve is the default theme, it lives in Themes/default.

Any changes to Curve should be applied to those files.
Title: Re: Ad Management mod
Post by: bchangia on December 29, 2009, 10:54:37 AM
Then what should I do to make it work?
I've also checked all the mod changes (i.e. Manually apply the mod) against the present status of the files and tables. It all looks good to me, and all the change in the files match to the MOD details.
Title: Re: Ad Management mod
Post by: Bigguy on December 29, 2009, 11:17:49 AM
If techfreak is your site there are a few things broken on it other than the ad mod or is it the ad mod that is making a space in the header and footer.
Title: Re: Ad Management mod
Post by: bchangia on December 29, 2009, 11:24:17 AM
Yes Tech Freak is my site.

I am not so good at php. Can you giev me some tips to recognize the errors?

attached the screen shot for the packages which are installed.
Title: Re: Ad Management mod
Post by: Bigguy on December 29, 2009, 11:32:13 AM
It might be Ezportal making those spaces and it could be effecting the ad mod. Have you tried uninstalling it and see if things appear and work normal. ???
Title: Re: Ad Management mod
Post by: bchangia on December 29, 2009, 12:03:19 PM
Strange Now its working perfectly. I just uninstalled EZportal and installed again.
Thanks a lot Bigguy!!!
Cheers
Quote from: Bigguy on December 29, 2009, 11:32:13 AM
It might be Ezportal making those spaces and it could be effecting the ad mod. Have you tried uninstalling it and see if things appear and work normal. ???
Title: Re: Ad Management mod
Post by: Bigguy on December 29, 2009, 12:05:26 PM
Glad you got it. :)
Title: Re: Ad Management mod
Post by: Robin1989 on December 29, 2009, 03:13:18 PM
hi

i was wondering if there is a known issue with IE with the ad management mod when ads are positioned on the right side of the forum

(http://www.acidmods.com/forum/index.php?action=dlattach;topic=34181.0;attach=485;image)

as the ads cover the forum when on the category page. its installed in the default curve theme
Title: Re: Ad Management mod
Post by: imon32red on December 29, 2009, 04:36:59 PM
I installed smf version 1.1.10 through fantastico on my hostgator account yesterday.  Then I uploaded the patch to the new version 1.1.11.  When I upload this mod, ad_mod_v2-3-6_SMF_v2-0RC2.zip I get the message

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I have not added any other mods and am still using the default theme.
Title: Re: Ad Management mod
Post by: Bigguy on December 29, 2009, 04:59:24 PM
@ Robin1989: There are no known issues that I know about.

@ imon32red: Try the version marked "ad_mod_v2-3-1_SMF_v1-1-x.zip" if you are on the 1.1.x series of SMF.
Title: Re: Ad Management mod
Post by: imon32red on December 29, 2009, 06:06:07 PM
Thanks Bigguy
Title: Re: Ad Management mod
Post by: saintsinner on December 29, 2009, 08:27:40 PM
I am unable get the "bottom page" adsense to work. i have tried different ad sizes, but none of them seem to work. ad management is working great on other positions but not "bottom page"?
Any ideas why??

thanks
Title: Re: Ad Management mod
Post by: Bigguy on December 29, 2009, 08:47:28 PM
Are you using a custom theme. ???
Title: Re: Ad Management mod
Post by: DeadMetal on December 30, 2009, 10:21:36 AM
Is it possible with this mod to not show ads in closed topics?

(reason behind it: I close topics when people violate the forum rules. I am not allowed to show ads in topics where that happened).
Title: Re: Ad Management mod
Post by: ggs234 on December 30, 2009, 10:27:02 AM
I have installed admanagement on my new forum and copied leaderboard adsense code under content  selected following options

Which boards should this ad display in

Type HTML

Display ads on every page on the top of the page

But i am not able to see any ads and i am using orangeline theme with 2.0 RC2

How to fix this thanks for your help
Title: Re: Ad Management mod
Post by: Bigguy on December 30, 2009, 03:15:39 PM
Quote from: DeadMetal on December 30, 2009, 10:21:36 AM
Is it possible with this mod to not show ads in closed topics?

(reason behind it: I close topics when people violate the forum rules. I am not allowed to show ads in topics where that happened).

Why are you not allowed to. I have never heard of this.

@ ggs234: If you are using a custom theme then the template files in the custom theme will have to be manually modified.
Title: Re: Ad Management mod
Post by: DeadMetal on December 31, 2009, 04:09:19 AM
Quote from: Bigguy on December 30, 2009, 03:15:39 PM
Quote from: DeadMetal on December 30, 2009, 10:21:36 AM
Is it possible with this mod to not show ads in closed topics?

(reason behind it: I close topics when people violate the forum rules. I am not allowed to show ads in topics where that happened).

Why are you not allowed to. I have never heard of this.

My advertisors don't want to have their ads displayed next to those kind of topics. Does anyone know if with this mod you can disable ads being shown in closed topics?
Title: Re: Ad Management mod
Post by: Arantor on December 31, 2009, 04:12:29 AM
Not without modifying the code.
Title: Re: Ad Management mod
Post by: Bigguy on December 31, 2009, 09:06:16 AM
Or just don't show ads in topics or posts. Stay away from that area of the mod, or put other ads there from a different advertiser. :)
Title: Re: Ad Management mod
Post by: airric00 on December 31, 2009, 01:49:06 PM
Using SMF 2.0RC2 and blackrain V2.

What is the proper format in adding a new add in html and php? 

I tried and can't get it to appear.  Is there a trick to this?   I tried using this html code

<a href="target"><img src="linktoimage"></a>

What is the standard size banner image as well?   I have new sponsors coming and hope to get this to work..   :-[


Do I need to create a google ads profile and upload images there then get a code to work with this?  hmm..
Title: Re: Ad Management mod
Post by: Bigguy on December 31, 2009, 03:41:23 PM
No reason what you have shouldn't work. Try ordinary text and see if that shows up. You have of course already modified the custom templates that are in your custom themes folder. ???
Title: Re: Ad Management mod
Post by: imon32red on December 31, 2009, 04:21:30 PM
I am placing an ad under the menu on every page.  I just want one but it places three of them stacked on top of each other.
Title: Re: Ad Management mod
Post by: Bigguy on December 31, 2009, 04:33:25 PM
How many times did you try to install the mod. ???
Title: Re: Ad Management mod
Post by: imon32red on December 31, 2009, 04:47:14 PM
I had trouble finding the right version.  I might have installed it more than once...
Title: Re: Ad Management mod
Post by: Bigguy on December 31, 2009, 05:15:27 PM
This is why. The mod did not cleanly uninstall. There is triplicate code in the template files. You will have to go through and get rid of the extra code.
Title: Re: Ad Management mod
Post by: imon32red on December 31, 2009, 05:41:25 PM

What is the name of the template file.  I am assuming that I can find this through my file manager with hostgator.
Title: Re: Ad Management mod
Post by: Bigguy on December 31, 2009, 06:02:49 PM
Use the parser to get a list of the template files the ad mod edits. Then go to your custom theme folder and probably the default theme folder as well and take a look at those files. Remove any code in them that is there more than once.
Title: Re: Ad Management mod
Post by: C4G-TK on December 31, 2009, 06:31:26 PM
Just sounds like part of the uninstall didn't work and the code was repeated.  You just need to delete the duplicate code.
Title: Re: Ad Management mod
Post by: ketchup on January 01, 2010, 05:37:00 PM
hi there i am trying to make manual edit to the theme called
Burgundy_v1

1 there is no file
MessageIndex.template.php

2 I cannot see a
echo '
   </div>';
Title: Re: Ad Management mod
Post by: Arantor on January 01, 2010, 05:37:52 PM
1. In which case, edit Themes/default/MessageIndex.template.php.

2. What file?
Title: Re: Ad Management mod
Post by: ketchup on January 01, 2010, 05:53:25 PM
hI  :)

ok I am trying to follow the edits listed here....is this wrong or I should go by other edits in this topic?
http://www.smfads.com/forums/index.php?topic=1930.0

It says for file /BoardIndex.template.php
replace
echo '
   </div>';


This is the file from the theme
<?php

// Version: 1.1; BoardIndex



function template_main()

{

global $context$settings$options$txt$scripturl$modSettings;



// Show some statistics next to the link tree if SP1 info is off.

echo '

<table width="100%" cellpadding="0" cellspacing="0">

<tr>

<td valign="bottom">'
theme_linktree(), '</td>

<td align="right">'
;

if (!$settings['show_sp1_info'])

echo '

'
$txt[19], ': '$context['common_stats']['total_members'], ' &nbsp;&#38;#8226;&nbsp; '$txt[95], ': '$context['common_stats']['total_posts'], ' &nbsp;&#38;#8226;&nbsp; '$txt[64], ': '$context['common_stats']['total_topics'], '

'
, ($settings['show_latest_member'] ? '<br />' $txt[201] . ' <b>' $context['common_stats']['latest_member']['link'] . '</b>' $txt[581] : '');

echo '

</td>

</tr>

</table>'
;



// Show the news fader?  (assuming there are things to show...)

if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))

{

echo '

<table border="0" width="100%" class="tborder" cellspacing="' 
, ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' '0' '" cellpadding="4" style="margin-bottom: 2ex;">

<tr>

<td class="catbg"> &nbsp;'
$txt[102], '</td>

</tr>

<tr>

<td valign="middle" align="center" height="60">'
;



// Prepare all the javascript settings.

echo '

<div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>'
$context['news_lines'][0], '</b></div>

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

// The fading delay (in ms.)

var smfFadeDelay = '
, empty($settings['newsfader_time']) ? 5000 $settings['newsfader_time'], ';

// Fade from... what text color? To which background color?

var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};

// Surround each item with... anything special?

var smfFadeBefore = "<b>", smfFadeAfter = "</b>";



var foreColor, backEl, backColor;



if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")

{

foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);

smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};



backEl = document.getElementById(\'smfFadeScroller\');

while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")

backEl = backEl.parentNode;



backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);

smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};

}

else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")

{

foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);

smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};



backEl = document.getElementById(\'smfFadeScroller\');

while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")

backEl = backEl.parentNode;



backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);

smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};

}



// List all the lines of the news for display.

var smfFadeContent = new Array(

"'
implode('",

"'
$context['fader_news_lines']), '"

);

// ]]></script>

<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/fader.js"></script>

</td>

</tr>

</table>'
;

}



/* Each category in categories is made up of:

id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),

new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),

and boards. (see below.) */

$first true;

foreach ($context['categories'] as $category)

{

echo '

<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top: ' 
$first '0;' '2ex;' '' $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' '''">

<tr>

<td class="catbgsol" width="17" height="26">&nbsp;</td>

<td class="catbg" height="26">'
;

$first false;



echo '

'
$category['link'], '</td>

<td class="catbgsag" width="17" height="26">&nbsp;</td>

</tr>

</table>'
;



// Assuming the category hasn't been collapsed...

if (!$category['is_collapsed'])

{

echo '



<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">

<tr class="titlebg">

<td colspan="1">&nbsp;</td>

<td colspan="1"><span class="smalltext">'
$txt[20], '</span></td>

<td colspan="1" align="center"><span class="smalltext">'
$txt[22], '</span></td>

<td colspan="1" align="center"><span class="smalltext">'
$txt[330], '</span></td>

<td colspan="1" align="center"><span class="smalltext">'
$txt[21], '</span></td>

<td colspan="1" align="center"><span class="smalltext">'
$txt[298], '</span></td>

</tr>'
;



/* Each board in each category's boards has:

new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),

children (see below.), link_children (easier to use.), children_new (are they new?),

topics (# of), posts (# of), link, href, and last_post. (see below.) */

foreach ($category['boards'] as $board)

{

echo '

<tr>

<td ' 
, !empty($board['children']) ? '' '' ' class="windowbg" width="6%" align="center" valign="middle"><a href="'$scripturl'?action=unread;board='$board['id'], '.0">';



// If the board is new, show a strong indicator.

if ($board['new'])

echo '<img src="'$settings['images_url'], '/on.gif" alt="'$txt[333], '" title="'$txt[333], '" />';

// This board doesn't have new posts, but its children do.

elseif ($board['children_new'])

echo '<img src="'$settings['images_url'], '/on2.gif" alt="'$txt[333], '" title="'$txt[333], '" />';

// No new posts at all! The agony!!

else

echo '<img src="'$settings['images_url'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" />';



echo '</a>

</td>

<td class="windowbg2">

<b><a href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a></b><br />

'
$board['description'];

// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)

if (!empty($board['children']))

{

// Sort the links into an array with new boards bold so it can be imploded.

$children = array();

/* Each child in each board's children has:

id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */

foreach ($board['children'] as $child)

{

$child['link'] = '<a href="' $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' $txt[330] . ': ' $child['topics'] . ', ' $txt[21] . ': ' $child['posts']. $child['viewer_text'] . ')">' $child['name'] . '</a>';

$children[] = $child['new'] ? '<img style="margin-right:5px;" src="' $settings['images_url'] . '/on.gif" width="12" height="12" alt="' $txt[333] . '"/><b>' $child['link'] . '</b>' '<img style="margin-right:5px;" src="' $settings['images_url'] . '/off.gif" width="12" height="12" alt="' $txt[334] . '"/>' $child['link'];

}



echo '

<table style="float:right; padding-left:10px;margin-top: 5px;" width="100%" cellspacing="0" cellpadding="3" border="0">

<tr>'
;



$child_counter 0;



if(empty($settings['child_boards_rows']))

{

echo '



<td style="width:50%" class="smalltext" valign="top">'
;



for(; $child_counter ceil(count($children)/2); $child_counter++)

echo $children[$child_counter], '<br/>';

}



echo '

</td>

<td style="width:60%" class="smalltext" valign="top">'
;

for(; $child_counter count($children); $child_counter++)

echo $children[$child_counter], '<br/>';

echo '

</td>

</tr>

</table>'
;

}



// Show some basic information about the number of posts, etc.

echo '

</td>

<td class="windowbg2" valign="middle" width="22%">

<span class="smalltext">'
;



/* The board's and children's 'last_post's have:

time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),

link, href, subject, start (where they should go for the first unread post.),

and member. (which has id, name, link, href, username in it.) */

if (!empty($board['last_post']['id']))

echo '

<b>'
$board['last_post']['link'], '</b><br />

'
$txt[525], ' '$board['last_post']['member']['link'] , '<br />

<span style="float:right;">'
$txt[30], ' '$board['last_post']['time'],'&nbsp;<a href="'$board['last_post']['href'], '"><img src="'$settings['images_url'], '/icons/newmark.gif" alt="'$txt[111], '" title="'$txt[111], '" /></a></span>';

echo '

</span>

</td>

<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="largetext">

'
$board['topics'],'



</span></td>

<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="largetext">

'
$board['posts'], '

</span></td><td class="windowbg" width="8%" valign="middle" align="center">'
;

if (!empty(
$board['moderators']))

echo '

<div style="padding-top: 1px;" class="smalltext">





implode('<br />',$board['link_moderators']), 



</div>'
;



echo 
'

</td></tr> '
;

}

}

echo '

</table>'
;

}



// Here's where the "Info Center" starts...

echo '<br />

<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">

<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="'
$settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' 'expand.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>

'
$txt[685], '

</div>

<div id="upshrinkHeaderIC"'
, empty($options['collapse_header_ic']) ? '' ' style="display: none;"''>

<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">'
;



// This is the "Recent Posts" bar.

if (!empty($settings['number_recent_posts']))

{

echo '

<tr>

<td class="titlebg" colspan="2">'
$txt[214], '</td>

</tr>

<tr>

<td class="windowbg" width="20" valign="middle" align="center">

<a href="'
$scripturl'?action=recent"><img src="'$settings['images_url'], '/post/xx.gif" alt="'$txt[214], '" /></a>

</td>

<td class="windowbg2">'
;



// Only show one post.

if ($settings['number_recent_posts'] == 1)

{

// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)

echo '

<b><a href="'
$scripturl'?action=recent">'$txt[214], '</a></b>

<div class="smalltext">

'
$txt[234], ' &quot;'$context['latest_post']['link'], '&quot; '$txt[235], ' ('$context['latest_post']['time'], ')<br />

</div>'
;

}

// Show lots of posts.

elseif (!empty($context['latest_posts']))

{

echo '

<table cellpadding="0" cellspacing="0" width="100%" border="0">'
;



/* Each post in latest_posts has:

board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),

subject, short_subject (shortened with...), time, link, and href. */

foreach ($context['latest_posts'] as $post)

echo '

<tr>

<td class="middletext" valign="top"><b>'
$post['link'], '</b> '$txt[525], ' '$post['poster']['link'], ' ('$post['board']['link'], ')</td>

<td class="middletext" align="right" valign="top" nowrap="nowrap">'
$post['time'], '</td>

</tr>'
;

echo '

</table>'
;

}

echo '

</td>

</tr>'
;

}



// Show information about events, birthdays, and holidays on the calendar.

if ($context['show_calendar'])

{

echo '

<tr>

<td class="titlebg" colspan="2">'
$context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>

</tr><tr>

<td class="windowbg" width="20" valign="middle" align="center">

<a href="'
$scripturl'?action=calendar"><img src="'$settings['images_url'], '/icons/calendar.gif" alt="'$txt['calendar24'], '" /></a>

</td>

<td class="windowbg2" width="100%">

<span class="smalltext">'
;



// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.

if (!empty($context['calendar_holidays']))

echo '

<span style="color: #'
$modSettings['cal_holidaycolor'], ';">'$txt['calendar5'], ' 'implode(', '$context['calendar_holidays']), '</span><br />';



// People's birthdays. Like mine. And yours, I guess. Kidding.

if (!empty($context['calendar_birthdays']))

{

echo '

<span style="color: #'
$modSettings['cal_bdaycolor'], ';">'$context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';

/* Each member in calendar_birthdays has:

id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */

foreach ($context['calendar_birthdays'] as $member)

echo '

<a href="'
$scripturl'?action=profile;u='$member['id'], '">'$member['is_today'] ? '<b>' ''$member['name'], $member['is_today'] ? '</b>' '', isset($member['age']) ? ' (' $member['age'] . ')' '''</a>'$member['is_last'] ? '<br />' ', ';

}

// Events like community get-togethers.

if (!empty($context['calendar_events']))

{

echo '

<span style="color: #'
$modSettings['cal_eventcolor'], ';">'$context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';

/* Each event in calendar_events should have:

title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */

foreach ($context['calendar_events'] as $event)

echo '

'
$event['can_edit'] ? '<a href="' $event['modify_href'] . '" style="color: #FF0000;">*</a> ' ''$event['href'] == '' '' '<a href="' $event['href'] . '">'$event['is_today'] ? '<b>' $event['title'] . '</b>' $event['title'], $event['href'] == '' '' '</a>'$event['is_last'] ? '<br />' ', ';



// Show a little help text to help them along ;).

if ($context['calendar_can_edit'])

echo '

(<a href="'
$scripturl'?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">'$txt['calendar_how_edit'], '</a>)';

}

echo '

</span>

</td>

</tr>'
;

}





// Show YaBB SP1 style information...

if ($settings['show_sp1_info'])

{

echo '

<tr>

<td class="titlebg" colspan="2">'
$txt[645], '</td>

</tr>

<tr>

<td class="windowbg" width="20" valign="middle" align="center">

<a href="'
$scripturl'?action=stats"><img src="'$settings['images_url'], '/icons/info.gif" alt="'$txt[645], '" /></a>

</td>

<td class="windowbg2" width="100%">

<span class="middletext">

'
$context['common_stats']['total_posts'], ' '$txt[95], ' '$txt['smf88'], ' '$context['common_stats']['total_topics'], ' '$txt[64], ' '$txt[525], ' '$context['common_stats']['total_members'], ' '$txt[19], '. '$txt[656], ': <b> '$context['common_stats']['latest_member']['link'], '</b>

<br /> ' 
$txt[659] . ': <b>&quot;' $context['latest_post']['link'] . '&quot;</b>  ( ' $context['latest_post']['time'] . ' )<br />

<a href="'
$scripturl'?action=recent">'$txt[234], '</a>'$context['show_stats'] ? '<br />

<a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''

</span>

</td>

</tr>'
;

}



// "Users online" - in order of activity.

echo '

<tr>

<td class="titlebg" colspan="2">'
$txt[158], '</td>

</tr><tr>

<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">

'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' '''<img src="'$settings['images_url'], '/icons/online.gif" alt="'$txt[158], '" />'$context['show_who'] ? '</a>' '''

</td>

<td class="windowbg2" width="100%">'
;



echo '

'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' ''$context['num_guests'], ' '$context['num_guests'] == $txt['guest'] : $txt['guests'], ', ' $context['num_users_online'], ' '$context['num_users_online'] == $txt['user'] : $txt['users'];



// Handle hidden users and buddies.

if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))

{

echo ' (';



// Show the number of buddies online?

if ($context['show_buddies'])

echo $context['num_buddies'], ' '$context['num_buddies'] == $txt['buddy'] : $txt['buddies'];



// How about hidden users?

if (!empty($context['num_users_hidden']))

echo $context['show_buddies'] ? ', ' ''$context['num_users_hidden'] . ' ' $txt['hidden'];



echo ')';

}



echo $context['show_who'] ? '</a>' '''

<div class="smalltext">'
;



// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.

if (!empty($context['users_online']))

echo '

'
$txt[140], ':<br />'implode(', '$context['list_users_online']);



echo '

<br />

'
$context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' $scripturl '?action=stats">' $txt['smf223'] . '</a>' '''

</div>

</td>

</tr>

<tr>

<td class="windowbg2" width="100%">

<span class="middletext">

'
$txt['most_online_today'], ': <b>'$modSettings['mostOnlineToday'], '</b>.

'
$txt['most_online_ever'], ': '$modSettings['mostOnline'], ' (' timeformat($modSettings['mostDate']), ')

</span>

</td>

</tr>'
;



// If they are logged in, but SP1 style information is off... show a personal message bar.

if ($context['user']['is_logged'] && !$settings['show_sp1_info'])

{

 echo '

<tr>

<td class="titlebg" colspan="2">'
$txt[159], '</td>

</tr><tr>

<td class="windowbg" width="20" valign="middle" align="center">

'
$context['allow_pm'] ? '<a href="' $scripturl '?action=pm">' '''<img src="'$settings['images_url'], '/message_sm.gif" alt="'$txt[159], '" />'$context['allow_pm'] ? '</a>' '''

</td>

<td class="windowbg2" valign="top">

<b><a href="'
$scripturl'?action=pm">'$txt[159], '</a></b>

<div class="smalltext">

'
$txt[660], ' '$context['user']['messages'], ' '$context['user']['messages'] == $txt[471] : $txt[153], '.... '$txt[661], ' <a href="'$scripturl'?action=pm">'$txt[662], '</a> '$txt[663], '

</div>

</td>

</tr>'
;

}



// Show the login bar. (it's only true if they are logged out anyway.)

if ($context['show_login_bar'])

{

echo '

<tr>

<td class="titlebg" colspan="2">'
$txt[34], ' <a href="'$scripturl'?action=reminder" class="smalltext">(' $txt[315] . ')</a></td>

</tr>

<tr>

<td class="windowbg" width="20" align="center">

<a href="'
$scripturl'?action=login"><img src="'$settings['images_url'], '/icons/login.gif" alt="'$txt[34], '" /></a>

</td>

<td class="windowbg2" valign="middle">

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">

<table border="0" cellpadding="2" cellspacing="0" align="center" width="100%"><tr>

<td valign="middle" align="left">

<label for="user"><b>'
$txt[35], ':</b><br />

<input type="text" name="user" id="user" size="15" /></label>

</td>

<td valign="middle" align="left">

<label for="passwrd"><b>'
$txt[36], ':</b><br />

<input type="password" name="passwrd" id="passwrd" size="15" /></label>

</td>

<td valign="middle" align="left">

<label for="cookielength"><b>'
$txt[497], ':</b><br />

<input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="'
$modSettings['cookieTime'], '" /></label>

</td>

<td valign="middle" align="left">

<label for="cookieneverexp"><b>'
$txt[508], ':</b><br />

<input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>

</td>

<td valign="middle" align="left">

<input type="submit" value="'
$txt[34], '" />

</td>

</tr></table>

</form>

</td>

</tr>'
;

}



echo '

</table>

</div>'
;

}



?>
Title: Re: Ad Management mod
Post by: Bigguy on January 01, 2010, 07:01:28 PM
Go by the edits from the parser on the mod page.
Title: Re: Ad Management mod
Post by: ketchup on January 01, 2010, 08:36:27 PM
for the instructions i selected 1.1.11 and it says

Sorry, but this modification does not appear to be compatible with the selected version.
Title: Re: Ad Management mod
Post by: Arantor on January 01, 2010, 08:38:12 PM
Which version of the mod did you pick?
Title: Re: Ad Management mod
Post by: ketchup on January 01, 2010, 08:43:12 PM
Hi there ok I selected it right this time but it gives the same instructions listed on the smf site.

It lists for ./Themes/default/BoardIndex.template.php

echo '
</div>';

this is the code I listed on the other page
:o
Title: Re: Ad Management mod
Post by: Arantor on January 01, 2010, 08:44:26 PM
Which will exist on the default theme, or should do. It may not appear on a custom theme.
Title: Re: Ad Management mod
Post by: ketchup on January 01, 2010, 08:46:11 PM
Quote from: Arantor on January 01, 2010, 08:44:26 PM
Which will exist on the default theme, or should do. It may not appear on a custom theme.


well does that mean I do nothing then because the package installed already works on the default core theme
because it askes for 2 edits on that page and I did the first.
Title: Re: Ad Management mod
Post by: Arantor on January 01, 2010, 08:48:02 PM
If that edit hasn't been done it'll need to be done - if you want ads between categories on the board index.
Title: Re: Ad Management mod
Post by: Bigguy on January 01, 2010, 09:01:24 PM
Compare where it is in the default template to where it should be in the custom template, play around a bit and you should get it. :)

EDIT: It's not that hard to do with a good editor.
Title: Re: Ad Management mod
Post by: airric00 on January 01, 2010, 09:31:57 PM
Quote from: Bigguy on December 31, 2009, 03:41:23 PM
No reason what you have shouldn't work. Try ordinary text and see if that shows up. You have of course already modified the custom templates that are in your custom themes folder. ???

Yeah I did it by hand from the install page for 2.0..  Willing to donate to someone who can log in and give me a hand..
Title: Re: Ad Management mod
Post by: Bigguy on January 01, 2010, 09:40:36 PM
Quote from: airric00 on January 01, 2010, 09:31:57 PM
Quote from: Bigguy on December 31, 2009, 03:41:23 PM
No reason what you have shouldn't work. Try ordinary text and see if that shows up. You have of course already modified the custom templates that are in your custom themes folder. ???
Yeah I did it by hand from the install page for 2.0..  Willing to donate to someone who can log in and give me a hand..
What are you requiring, just someone to get a link going from the admin panel. ??? Send me a PM if ya want.
Title: Re: Ad Management mod
Post by: jydolikz on January 01, 2010, 10:41:26 PM
Hello friends,
its nice to see how you are helping one another here.Please I need help too.

I am having a serious trouble installing Google Adsense on my Forum. I use "Zilhicceh" Theme.
can anyone tell me how I can install adsense to my fomum.
I have tried to install different versions of ad-mod but none of it seems to be working.
PLEASE HELP
Title: Re: Ad Management mod
Post by: Bigguy on January 02, 2010, 12:19:09 AM
Please read the posts in the last couple pages if you are using a custom theme.
Title: Re: Ad Management mod
Post by: ~DS~ on January 02, 2010, 07:45:54 AM
Quote from: jydolikz on January 01, 2010, 10:41:26 PM
Hello friends,
its nice to see how you are helping one another here.Please I need help too.

I am having a serious trouble installing Google Adsense on my Forum. I use "Zilhicceh" Theme.
can anyone tell me how I can install adsense to my fomum.
I have tried to install different versions of ad-mod but none of it seems to be working.
PLEASE HELP
You need to enable permission for guests, regular and so on if you want it to be viewable. Keep it in mind it takes a while for adsense to show up.
Title: Re: Ad Management mod
Post by: Lotti on January 03, 2010, 08:13:40 PM
I have this error;

8: Undefined variable: context
File: /home/spaceofi/public_html/letterefilosofiasapienza/forum/Themes/default/Display.template.php(14) : eval()'d code
Linea: 7


this is my first line on display.template.php

<?php
// Version: 1.1; Display

function template_main()
{
//Display ads on the thread page
   if (function_exists("show_threadAds"))
   {
      $ads = show_threadAds();   
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);
   }   
   global $context, $settings, $options, $txt, $scripturl, $sourcedir, $modSettings;

   require_once($sourcedir.'/ArcadeSigsStats_v2.php');



Where is the problem?
Title: Re: Ad Management mod
Post by: Arantor on January 03, 2010, 08:17:52 PM
You've added the code before the line that begins with 'global'.

Should be:
<?php
// Version: 1.1; Display

function template_main()
{
   global 
$context$settings$options$txt$scripturl$sourcedir$modSettings;
//Display ads on the thread page
   
if (function_exists("show_threadAds"))
   {
      
$ads show_threadAds();   
      if(!empty(
$ads))
         if(
$ads['type']==0)
            echo 
$ads['content'];
         else
            eval(
$ads['content']);
      unset(
$ads);
   }   

   require_once(
$sourcedir.'/ArcadeSigsStats_v2.php');
Title: Re: Ad Management mod
Post by: Lotti on January 03, 2010, 08:21:25 PM
Oh, yeah, it's a stupid error, thanks a lot.
Title: Re: Ad Management mod
Post by: Sanhux on January 04, 2010, 07:02:14 AM
Quote from: Dharshan on November 23, 2009, 01:22:43 AM
Woot!

www.pcguide.exofire.net/forum (http://www.pcguide.exofire.net/forum)


is there a way to display ads at the end of first post (within the first post) ??

I saw on the description that this feature are avaliable, however I cant see any option on how to display the ad after first post.

Also the mod repeat the code 3 times, if you want just one add and put it at the top, 3 adsense blobks appears.
Title: Re: Ad Management mod
Post by: Arantor on January 04, 2010, 07:10:50 AM
Quote from: Sanhux on January 04, 2010, 07:02:14 AM
Also the mod repeat the code 3 times, if you want just one add and put it at the top, 3 adsense blobks appears.

That suggests it's been installed more than once in the code.
Title: Re: Ad Management mod
Post by: MazdaClubTR on January 04, 2010, 07:32:24 AM
There was a problem SMF RC2 with userarea.

It was not displaying ads in userarea. Is it solved ?
Title: Re: Ad Management mod
Post by: Sanhux on January 04, 2010, 08:35:49 AM
Hm, I figure out how to make it appears after first post, is the "Displa ads within possts" option.  8)
Title: Re: Ad Management mod
Post by: SocksHeaven on January 04, 2010, 04:56:21 PM
Dear Sir,
             i have installed mod on my site i don't have any error any where not even in error logs everything is fi9 b4 4 days i have put ads in mod and setup everything but ads are not showing up i have the default theme for smf 2.0 RC2 (Default Theme) with Portamx Portal.Please Help Me.Thank You.

Here is My 468x60 Image Banner Settings Screenshot
Quotehttp://easycaptures.com/fs/uploaded/204/8485601632.png
Here is my ad managment Settings screenshot
Quotehttp://easycaptures.com/fs/uploaded/204/3730189326.png
Title: Re: Ad Management mod
Post by: JackWise on January 05, 2010, 11:52:02 AM
Hi,

I have SMF 1.1.9 and Ad Managment 2.3 installed.

I want to upgrade using ad_mod_v2-3-6_SMF_v2-0RC2.zip.

Do I have to uninstall the previous version first ?

Best regards,

JW
Title: Re: Ad Management mod
Post by: Arantor on January 05, 2010, 11:53:48 AM
You can only upgrade to that if you are going to use SMF 2.0 RC2. In any case when you upgrade the mod's code will be removed.
Title: Re: Ad Management mod
Post by: JackWise on January 05, 2010, 12:20:36 PM
Quote from: Arantor on January 05, 2010, 11:53:48 AM
You can only upgrade to that if you are going to use SMF 2.0 RC2. In any case when you upgrade the mod's code will be removed.

Arantor,
Witch version can I use to upgrade ?
Title: Re: Ad Management mod
Post by: JackWise on January 05, 2010, 01:06:25 PM
Quote from: JackWise on January 05, 2010, 12:20:36 PM
Quote from: Arantor on January 05, 2010, 11:53:48 AM
You can only upgrade to that if you are going to use SMF 2.0 RC2. In any case when you upgrade the mod's code will be removed.

Arantor,
Witch version can I use to upgrade ?


Hi,
I removed the previous version, and installed ad_mod_v2-3-1_SMF_v1-1-x.zip.

I have a problem that I had with the other version.
I want to delete an ad, but the delete button don't delete it.
Were are the ads stored ? can I manually delete it ?
Title: Re: Ad Management mod
Post by: jydolikz on January 06, 2010, 03:26:35 AM
Quote from: Bigguy on January 02, 2010, 12:19:09 AM
Please read the posts in the last couple pages if you are using a custom theme.
I have read all posts on prevoius pages but when i try to edit my index.php i cant find the CODE: 'trackip' => array('Profile.php', 'trackIP'),
Please what else can I do?
I will appreciate your quick response as usual. Please I need to add Adsense to my forum to generate decent income online.
Thanks.
Title: Re: Ad Management mod
Post by: Arantor on January 06, 2010, 03:31:01 AM
jydolikz: That sounds like you're trying to install the 2.0 version on 1.1.x. If you want to install the 1.1.x version, select version 2.3.1 of the ad mod before using the parse option.
Title: Re: Ad Management mod
Post by: MazdaClubTR on January 06, 2010, 03:38:09 AM
Quote from: MazdaClubTR on January 04, 2010, 07:32:24 AM
There was a problem SMF RC2 with userarea.

It was not displaying ads in userarea. Is it solved ?

Any comment ?
Title: Re: Ad Management mod
Post by: masterofceremony on January 06, 2010, 08:06:05 AM
I'm still struggling with installation of this mod.
Can anybody please send me modded
index.template.php
BoardIndex.template.php
MessageIndex.template.php
Display.template.php
for Core theme, or change mine. I would be more than grateful to You.
My e-mail address is: masterofceremony(at)hot.ee or You can post those also in here.
Title: Re: Ad Management mod
Post by: supahben on January 06, 2010, 09:17:29 AM
Quote from: masterofceremony on January 06, 2010, 08:06:05 AM
I'm still struggling with installation of this mod.
Can anybody please send me modded
index.template.php
BoardIndex.template.php
MessageIndex.template.php
Display.template.php
for Core theme, or change mine. I would be more than grateful to You.
My e-mail address is: masterofceremony(at)hot.ee or You can post those also in here.

if youre asking how to install it to a different theme you have to edit manually the files
Title: Re: Ad Management mod
Post by: masterofceremony on January 06, 2010, 09:44:13 AM
I tryed to manually edit the files according to smfads.com, but i found instruction for SMF 1.1...., I need it for SMF 2.0 RC2. I tryed to change it, taking example from default theme and it didn't work also.

Title: Re: Ad Management mod
Post by: JackWise on January 06, 2010, 10:07:43 AM
Quote from: masterofceremony on January 06, 2010, 08:06:05 AM
I'm still struggling with installation of this mod.
Can anybody please send me modded
index.template.php
BoardIndex.template.php
MessageIndex.template.php
Display.template.php
for Core theme, or change mine. I would be more than grateful to You.
My e-mail address is: masterofceremony(at)hot.ee or You can post those also in here.

Which is your SMF version ?
Title: Re: Ad Management mod
Post by: masterofceremony on January 06, 2010, 10:28:48 AM
I have SMF 2.0 RC2
Title: Re: Ad Management mod
Post by: JackWise on January 06, 2010, 10:52:21 AM
Quote from: masterofceremony on January 06, 2010, 08:06:05 AM
I'm still struggling with installation of this mod.
Can anybody please send me modded
index.template.php
BoardIndex.template.php
MessageIndex.template.php
Display.template.php
for Core theme, or change mine. I would be more than grateful to You.
My e-mail address is: masterofceremony(at)hot.ee or You can post those also in here.


I changed your files assuming you'll use this version for the rest :
ad_mod_v2-3-5_SMF_v2-0RC1-1.zip

Don't forget to backup your php's files first, then :
1.Install the MOD automatically
2.Replace your theme files by these one.
3.Test.
4. Give feedback.

Regards,
JW


Title: Re: Ad Management mod
Post by: JackWise on January 06, 2010, 10:53:42 AM
Were are the ads stored ? can I manually delete it ?
Title: Re: Ad Management mod
Post by: masterofceremony on January 07, 2010, 07:47:19 AM
Quote from: JackWise on January 06, 2010, 10:52:21 AM
I changed your files assuming you'll use this version for the rest :
ad_mod_v2-3-5_SMF_v2-0RC1-1.zip

Don't forget to backup your php's files first, then :
1.Install the MOD automatically
2.Replace your theme files by these one.
3.Test.
4. Give feedback.

Regards,
JW
I have ad_mod_v2-3-6_SMF_v2-0RC2.zip version. I have ad management already installed for default theme. Problem occurred with manual modification of Core theme files. I couldn't make them work. But now, with Your modded files it seems, like it's working fine.

Edit: It has still problem. When I logout, then the forum goes wider and font goes bigger and the ad disappears.
Title: Re: Ad Management mod
Post by: Bigguy on January 07, 2010, 01:59:20 PM
You need to set permissions for guests to see ads...or have you done that. ???
Title: Re: Ad Management mod
Post by: jydolikz on January 07, 2010, 03:17:25 PM
Hello good people, Pls can anyone tell me how i can get a Theme like the one at nigeriainvestorguru.com and nairapalace.com
I want my forum to look exactly like the above forums. I wil appriciate your assistance. Thanks.
Title: Re: Ad Management mod
Post by: Arantor on January 07, 2010, 04:53:12 PM
The theme used at nairapalace.com is http://custom.simplemachines.org/themes/index.php?lemma=20
Title: Re: Ad Management mod
Post by: imon32red on January 07, 2010, 07:44:37 PM
I set my forum up in firefox and my ads display beautifully. 

I tried to view my site in IE and my ad is not there.  I then tried on a friends computer and didn't see my ads in firefox or IE.  The only computer that my ads appear is mine, and only in firefox.
Title: Re: Ad Management mod
Post by: masterofceremony on January 08, 2010, 01:31:29 AM
Quote from: Bigguy on January 07, 2010, 01:59:20 PM
You need to set permissions for guests to see ads...or have you done that. ???

I can't find place, where I can do this. Can You please show me the place. In ad management settings, I can't find such a place.
Title: Re: Ad Management mod
Post by: Arantor on January 08, 2010, 01:53:35 AM
Admin > Permissions
Title: Re: Ad Management mod
Post by: JackWise on January 08, 2010, 06:18:28 AM
Quote from: masterofceremony on January 07, 2010, 07:47:19 AM
Quote from: JackWise on January 06, 2010, 10:52:21 AM
I changed your files assuming you'll use this version for the rest :
ad_mod_v2-3-5_SMF_v2-0RC1-1.zip

Don't forget to backup your php's files first, then :
1.Install the MOD automatically
2.Replace your theme files by these one.
3.Test.
4. Give feedback.

Regards,
JW
I have ad_mod_v2-3-6_SMF_v2-0RC2.zip version. I have ad management already installed for default theme. Problem occurred with manual modification of Core theme files. I couldn't make them work. But now, with Your modded files it seems, like it's working fine.

Edit: It has still problem. When I logout, then the forum goes wider and font goes bigger and the ad disappears.

I did the changes for "ad_mod_v2-3-5_SMF_v2-0RC1-1.zip".
If you want to use the files changed by me, you have to use this mod.
I did not use "ad_mod_v2-3-6_SMF_v2-0RC2.zip" because the parse did'nt work for that release.
Try to remove "ad_mod_v2-3-6_SMF_v2-0RC2.zip", install ad_mod_v2-3-5_SMF_v2-0RC1-1.zip and apply the files changed by me, and give feedback.
JW
Title: Re: Ad Management mod
Post by: JackWise on January 08, 2010, 06:19:38 AM
Quote from: JackWise on January 06, 2010, 10:53:42 AM
Were are the ads stored ? can I manually delete it ?

Arantor, could you give help about this, please ?
Title: Re: Ad Management mod
Post by: masterofceremony on January 08, 2010, 07:20:05 AM
Quote from: JackWise on January 08, 2010, 06:18:28 AM
I did the changes for "ad_mod_v2-3-5_SMF_v2-0RC1-1.zip".
If you want to use the files changed by me, you have to use this mod.
I did not use "ad_mod_v2-3-6_SMF_v2-0RC2.zip" because the parse did'nt work for that release.
Try to remove "ad_mod_v2-3-6_SMF_v2-0RC2.zip", install ad_mod_v2-3-5_SMF_v2-0RC1-1.zip and apply the files changed by me, and give feedback.
JW
Does "ad_mod_v2-3-5_SMF_v2-0RC1-1.zip" work for SMF 2.0 RC2? If I try to install I recieve plenty Test failed notices. I think, that I need still ad_mod_v2-3-6_SMF_v2-0RC2.zip.
Only thing with Your files is now that after logout board goes wider and font increasing. Problem with ad disappearing was because of Guest didn't had permissions.
Does anybody has a glue, what can be wrong.
Title: Re: Ad Management mod
Post by: jydolikz on January 08, 2010, 08:24:43 AM
Quote from: Arantor on January 07, 2010, 04:53:12 PM
The theme used at nairapalace.com is http://custom.simplemachines.org/themes/index.php?lemma=20
Thanks so much Arantor. I got the theme and is working fine.
But I still need more assistance in this area, I need adsense on the forum. I have tried to manually install the ad mod because am using custom theme version 1.1.10 but the adsense is not showing. I selected mod 3.2.1 and parse but the index.php of the theme am using does not have "array==trackip" that i will need to edit.
I think you understand what i'm saying.
Thanks for your timely response.
Title: Re: Ad Management mod
Post by: Arantor on January 08, 2010, 09:39:41 AM
Quote from: JackWise on January 08, 2010, 06:19:38 AM
Quote from: JackWise on January 06, 2010, 10:53:42 AM
Were are the ads stored ? can I manually delete it ?

Arantor, could you give help about this, please ?


Nope, because I have no idea, on account of the fact I've never used this mod before. I'd *guess* it's probably in the database somewhere.
Title: Re: Ad Management mod
Post by: C4G-TK on January 08, 2010, 01:33:48 PM
As far as I've used, the ads are not stored anywhere.

I create my own images and FTP them to my website where they are hosted on the site in a directory.  Then, I copy the image location where it is hosted and use coding inside the mod to tell the mod where to pull the image from.

It does not create it's own directory nor does it upload images.  It is a mod that allows you to place images that are already hosted or stored on a site and display them on your site in different areas.

Hope that helps. 
Title: Re: Ad Management mod
Post by: Arantor on January 08, 2010, 01:43:03 PM
But the listing of what should be displayed must be stored somewhere, I think it's in the DB.
Title: Re: Ad Management mod
Post by: C4G-TK on January 08, 2010, 05:16:04 PM
There are two database tables created:

_ads  (This is where the info is stored that you input from the AP.)
_ads_settings


All of the adding, modifying, deleting of the ads are done via the Admin Panel of the forum.  If you set an ad to be placed (say in a post), you do it through the Admin Panel.  When you want to change the image, you go back into the Admin Panel.  The same for when you are done with the ad and want to delete it.
Title: Re: Ad Management mod
Post by: Bigguy on January 08, 2010, 05:51:06 PM
in the _ads table is where the ads are all stored. All the code you put in in the admin panel is in that table.
Title: Re: Ad Management mod
Post by: bork on January 09, 2010, 05:27:18 AM
Quote from: MazdaClubTR on January 04, 2010, 07:32:24 AM
There was a problem SMF RC2 with userarea.

It was not displaying ads in userarea. Is it solved ?
I've just installed RC2 and Ad Mangement 2.3.6.

I am no longer seeing ads in the user area either.

Is there a fix for this?

Thanks for a great mod btw :)
Title: Re: Ad Management mod
Post by: ewealths on January 09, 2010, 06:05:31 AM
I have downloaded the ad mod sometimes ago, my ads were showing but after updating to 1.1.11 my ads disappeared please what can I do, am thinking does this newest upgrade work with the ad mod or do I need to modify some settings...
Title: Re: Ad Management mod
Post by: darubillah on January 09, 2010, 06:32:27 AM
hey i think one location for ads is still missing

Please add a location in post content

like we see in many forums a square box ad in post

hope you understand
Title: Re: Ad Management mod
Post by: joe90 on January 10, 2010, 09:12:51 AM
Just installed a new 2.0 RC2 and put this ad mod on, as with my other forums ( 1.1.11's ) looks and works well for me but the problem on the new forum is only I can see the ads.

Any ideas, non new to SMS but very new to version  2.0 RC2
Title: Re: Ad Management mod
Post by: Bigguy on January 10, 2010, 09:13:32 AM
Set permissions for membergroups so they can see ads as well.
Title: Re: Ad Management mod
Post by: joe90 on January 10, 2010, 09:29:20 AM
Thanks Big Guy, sorted it now, had looked in permissions in simple view but couldn't find it until I switched to Classic View. Will recheck but sure it wasn't in simple view but could be me can't see for looking

Also the first post on this thread says ...

Permissions

Just like in the previous versions, you can have permissions on who is able to view the ads. By default everyone views the ads.....

My installation defaulted to not seeing the adds.

Thanks again all sorted now
Title: Re: Ad Management mod
Post by: lrodri7418 on January 10, 2010, 06:39:06 PM
HI

I have just sucessfully install the ad mod; however I do not see the admin to configure it. There is nothing in Basic features nor the permissions zone. Although I know i have installed it as the mod is embeded in my db.

Anyone knows what should i do???
Title: Re: Ad Management mod
Post by: masterofceremony on January 11, 2010, 01:49:01 AM
Quote from: masterofceremony on January 08, 2010, 07:20:05 AM
Does "ad_mod_v2-3-5_SMF_v2-0RC1-1.zip" work for SMF 2.0 RC2? If I try to install I recieve plenty Test failed notices. I think, that I need still ad_mod_v2-3-6_SMF_v2-0RC2.zip.
Only thing with Your files is now that after logout board goes wider and font increasing. Problem with ad disappearing was because of Guest didn't had permissions.
Does anybody has a glue, what can be wrong.
Can anybody please help with this matter. It's quite disdurbing. :'(
Title: Re: Ad Management mod
Post by: DukeN on January 11, 2010, 02:20:50 PM
1st of all, great mod!

I need to do some manual changes, with the ads. I'm using SMF 2.0 with Curve. I need to add ads as 2nd post. This is working correctly but i need to change the "pink" background to a normal post background and i want to add an avatar etc in this post to look it more as an post.

Is there some way to edit this ?

This is the code

if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="approvebg">
<span class="topslice"><span></span></span>
<div class="poster">
<h4>', $context['forum_name'], '</h4>
</div>
<div class="postarea">
<div class="flow_hidden">
<div class="keyinfo">
<div class="messageicon">
<img src="', $message['icon_url'] . '" alt="" border="0" />
</div>
<h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>
<div class="smalltext">&#171; <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' &#187;</div>
<div id="msg_', $message['id'], '_quick_mod"></div>
</div>';

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
<ul class="reset smalltext quickbuttons">';


Lets hope someone can help me.

I also added an example of my SMF 1.x forum where i added the code manually within the forum. (This is how it should be)
Title: Re: Ad Management mod
Post by: lrodri7418 on January 11, 2010, 03:05:19 PM
I found these two errors

1- 8: Undefined index: ad_management
Archivo: /home/content/e/b/d/ebdesarrollo/html/smf/Sources/Subs.php
Línea: 2871

2- No se pudo cargar el archivo de idioma 'Ads.spanish'.

Any clues??
Title: Re: Ad Management mod
Post by: smp420 on January 11, 2010, 06:45:19 PM
make sure your language files are in the language folder
Title: Re: Ad Management mod
Post by: masterofceremony on January 12, 2010, 01:59:18 AM
I attached  pictures, so You can see the difference. Can anybody please help me with this matter.
Title: Re: Ad Management mod
Post by: Owdy on January 12, 2010, 02:55:13 AM
That mod is using latin1_swedish_ci . Is it safe/wise to convert it top same as my default set, utf8_general_ci ?
Title: Re: Ad Management mod
Post by: kr5323 on January 12, 2010, 11:43:25 AM
I can not get a banner displayed on the USER AREA WELCOME. As much as I click on the "Display ads in the welcome user area" ... the banner is not displayed, on the other areas YES.

I use SMF 2.0 RC2 and I have installed the latest version of the ad-manegement mod (2.3.6)


Is there any way to do this?
Title: Re: Ad Management mod
Post by: smp420 on January 12, 2010, 08:02:30 PM
Quote from: masterofceremony on January 12, 2010, 01:59:18 AM
I attached  pictures, so You can see the difference. Can anybody please help me with this matter.
attach index.template.php

Quote from: kr5323 on January 12, 2010, 11:43:25 AM
I can not get a banner displayed on the USER AREA WELCOME. As much as I click on the "Display ads in the welcome user area" ... the banner is not displayed, on the other areas YES.

I use SMF 2.0 RC2 and I have installed the latest version of the ad-manegement mod (2.3.6)


Is there any way to do this?
The welcome user ads doesn't work with rc2 the mod author couldn't get that to work.
Title: Re: Ad Management mod
Post by: Pawan on January 13, 2010, 01:11:57 AM
How to change background colour .
Title: Re: Ad Management mod
Post by: DukeN on January 13, 2010, 02:54:07 AM
Quote from: DukeN on January 11, 2010, 02:20:50 PM
1st of all, great mod!

I need to do some manual changes, with the ads. I'm using SMF 2.0 with Curve. I need to add ads as 2nd post. This is working correctly but i need to change the "pink" background to a normal post background and i want to add an avatar etc in this post to look it more as an post.

Is there some way to edit this ?

This is the code

if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="approvebg">
<span class="topslice"><span></span></span>
<div class="poster">
<h4>', $context['forum_name'], '</h4>
</div>
<div class="postarea">
<div class="flow_hidden">
<div class="keyinfo">
<div class="messageicon">
<img src="', $message['icon_url'] . '" alt="" border="0" />
</div>
<h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>
<div class="smalltext">« <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' »</div>
<div id="msg_', $message['id'], '_quick_mod"></div>
</div>';

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
<ul class="reset smalltext quickbuttons">';


Lets hope someone can help me.

I also added an example of my SMF 1.x forum where i added the code manually within the forum. (This is how it should be)

Kick of post http://www.simplemachines.org/community/index.php?topic=68632.msg2449418#msg2449418
Title: Re: Ad Management mod
Post by: masterofceremony on January 13, 2010, 03:29:07 AM
Quote from: smp420 on January 12, 2010, 08:02:30 PM
Quote from: masterofceremony on January 12, 2010, 01:59:18 AM
I attached  pictures, so You can see the difference. Can anybody please help me with this matter.
attach index.template.php

index.template.php attached
Title: Re: Ad Management mod
Post by: kr5323 on January 13, 2010, 06:57:24 AM
Quote from: kr5323 on January 12, 2010, 11:43:25 AM
I can not get a banner displayed on the USER AREA WELCOME. As much as I click on the "Display ads in the welcome user area" ... the banner is not displayed, on the other areas YES.

I use SMF 2.0 RC2 and I have installed the latest version of the ad-manegement mod (2.3.6)


Is there any way to do this?

The welcome user ads doesn't work with rc2 the mod author couldn't get that to work.


Ok. Understood, thanks for the clarification.

Another question for smf2.0 rc2 and theme default: When I want a banner displayed in a given forum, adding the forum number in the option In a forum such advertising must be seen and select this others options:

Display advertising message index
Display advertising message in the thread


But I note that the post does not appear to enter the forum, I have to enter a post on the forum so you can see, while the norm is to be visible by accessing the forum.


Is there a solution?



Thank you.
Title: Re: Ad Management mod
Post by: Pawan on January 13, 2010, 10:45:02 AM
Quote from: DukeN on January 13, 2010, 02:54:07 AM
Quote from: DukeN on January 11, 2010, 02:20:50 PM
1st of all, great mod!

I need to do some manual changes, with the ads. I'm using SMF 2.0 with Curve. I need to add ads as 2nd post. This is working correctly but i need to change the "pink" background to a normal post background and i want to add an avatar etc in this post to look it more as an post.

Is there some way to edit this ?

This is the code

if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="approvebg">
<span class="topslice"><span></span></span>
<div class="poster">
<h4>', $context['forum_name'], '</h4>
</div>
<div class="postarea">
<div class="flow_hidden">
<div class="keyinfo">
<div class="messageicon">
<img src="', $message['icon_url'] . '" alt="" border="0" />
</div>
<h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>
<div class="smalltext">« <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' »</div>
<div id="msg_', $message['id'], '_quick_mod"></div>
</div>';

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
<ul class="reset smalltext quickbuttons">';


Lets hope someone can help me.

I also added an example of my SMF 1.x forum where i added the code manually within the forum. (This is how it should be)

Kick of post http://www.simplemachines.org/community/index.php?topic=68632.msg2449418#msg2449418

can you tell me how you edited that code to appear as second post in smf 1.1x i also want to do it.
Title: Re: Ad Management mod
Post by: smp420 on January 13, 2010, 06:17:13 PM
you dont have to modify any code it is an option when you make ads look and you might find it.
Title: Re: Ad Management mod
Post by: lrodri7418 on January 13, 2010, 08:21:22 PM
Quote from: lrodri7418 on January 11, 2010, 03:05:19 PM
I found these two errors

1- 8: Undefined index: ad_management
Archivo: /home/content/e/b/d/ebdesarrollo/html/smf/Sources/Subs.php
Línea: 2871

2- No se pudo cargar el archivo de idioma 'Ads.spanish'.

Any clues??

Please...I need helppp....thanks in advance
Title: Re: Ad Management mod
Post by: smp420 on January 13, 2010, 08:35:09 PM
did you check if the language files for ad management are there
Title: Re: Ad Management mod
Post by: masterofceremony on January 14, 2010, 02:52:59 AM
Quote from: masterofceremony on January 13, 2010, 03:29:07 AM
Quote from: smp420 on January 12, 2010, 08:02:30 PM
Quote from: masterofceremony on January 12, 2010, 01:59:18 AM
I attached  pictures, so You can see the difference. Can anybody please help me with this matter.
attach index.template.php

index.template.php attached
smp420
Can You please check index.template.php
Title: Re: Ad Management mod
Post by: DukeN on January 14, 2010, 03:36:29 AM
Quote from: smp420 on January 13, 2010, 06:17:13 PM
you dont have to modify any code it is an option when you make ads look and you might find it.

No, the color stays pink and you can't edit any avatar. It doesn't really look like an post.
Title: Re: Ad Management mod
Post by: lrodri7418 on January 14, 2010, 12:12:37 PM
Quote from: smp420 on January 13, 2010, 08:35:09 PM
did you check if the language files for ad management are there

thank you...right now I am able to use the admin panel....nonetheless neither I nor my users cannot see the ads er are trying to display.

For instance, I am testing this banner code and nothing happens....where am i mistaking??
   1.
      <object height="90" width="280" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
   2.
                              <param value="../images/Banner_web_setFX.swf" name="movie"/>
   3.
                              <param value="high" name="quality"/>
   4.
                              <embed height="87" width="280" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="../images/Banner_web_setFX.swf"/>
   5.
                                                      </object>

By the way, I am using SMF 1.10
Title: Re: Ad Management mod
Post by: kr5323 on January 14, 2010, 12:13:44 PM
Quote from: kr5323 on January 13, 2010, 06:57:24 AM
Another question for smf2.0 rc2 and theme default: When I want a banner displayed in a given forum, adding the forum number in the option In a forum such advertising must be seen and select this others options:

Display advertising message index
Display advertising message in the thread


But I note that the post does not appear to enter the forum, I have to enter a post on the forum so you can see, while the norm is to be visible by accessing the forum.


Is there a solution?



Thank you.

Please, i need help. Thanks.
Title: Re: Ad Management mod
Post by: lrodri7418 on January 14, 2010, 02:46:26 PM
Quote from: lrodri7418 on January 14, 2010, 12:12:37 PM
Quote from: smp420 on January 13, 2010, 08:35:09 PM
did you check if the language files for ad management are there

thank you...right now I am able to use the admin panel....nonetheless neither I nor my users cannot see the ads er are trying to display.

For instance, I am testing this banner code and nothing happens....where am i mistaking??
   1.
      <object height="90" width="280" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
   2.
                              <param value="../images/Banner_web_setFX.swf" name="movie"/>
   3.
                              <param value="high" name="quality"/>
   4.
                              <embed height="87" width="280" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="../images/Banner_web_setFX.swf"/>
   5.
                                                      </object>

By the way, I am using SMF 1.10

Any one has an idea of what´s going on?
Title: Re: Ad Management mod
Post by: chilltraveler on January 14, 2010, 04:01:42 PM
I am trying to install this mod.  I unzipped the file and uploaded the folder to my smf directory.  When I type my url and directories into the browser ending in install.php, I get an error that says it can't parse line 6. in the install.php.

Am I not doing this correctly?

All permissions are set correctly.  Sorry if this has been answered, but this thread has 236 pages :)

Thanks

Bob
Title: Re: Ad Management mod
Post by: smp420 on January 14, 2010, 05:26:00 PM
Quote from: masterofceremony on January 14, 2010, 02:52:59 AM
Quote from: masterofceremony on January 13, 2010, 03:29:07 AM
Quote from: smp420 on January 12, 2010, 08:02:30 PM
Quote from: masterofceremony on January 12, 2010, 01:59:18 AM
I attached  pictures, so You can see the difference. Can anybody please help me with this matter.
attach index.template.php

index.template.php attached
smp420
Can You please check index.template.php
I will check this

Quote from: lrodri7418 on January 14, 2010, 12:12:37 PM
Quote from: smp420 on January 13, 2010, 08:35:09 PM
did you check if the language files for ad management are there

thank you...right now I am able to use the admin panel....nonetheless neither I nor my users cannot see the ads er are trying to display.

For instance, I am testing this banner code and nothing happens....where am i mistaking??
   1.
      <object height="90" width="280" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
   2.
                              <param value="../images/Banner_web_setFX.swf" name="movie"/>
   3.
                              <param value="high" name="quality"/>
   4.
                              <embed height="87" width="280" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="../images/Banner_web_setFX.swf"/>
   5.
                                                      </object>

By the way, I am using SMF 1.10
You must install the mod on the theme you are using

Quote from: chilltraveler on January 14, 2010, 04:01:42 PM
I am trying to install this mod.  I unzipped the file and uploaded the folder to my smf directory.  When I type my url and directories into the browser ending in install.php, I get an error that says it can't parse line 6. in the install.php.

Am I not doing this correctly?

All permissions are set correctly.  Sorry if this has been answered, but this thread has 236 pages :)

Thanks

Bob

You dont have to unzip it just upload it in the package manager thats in the admin panel and install it from there.

Title: Re: Ad Management mod
Post by: Pawan on January 16, 2010, 12:57:55 AM
Quote from: smp420 on January 13, 2010, 06:17:13 PM
you dont have to modify any code it is an option when you make ads look and you might find it.
But it don't show avtar
Title: Re: Ad Management mod
Post by: NoobDeveloper on January 16, 2010, 01:33:28 AM
need help dear.

This mod works well with default theme. but not with DS-Natural  theme of DzinerStudio.
why is this mod theme dependent ? how do i resolve this issue ?
Title: Re: Ad Management mod
Post by: smp420 on January 16, 2010, 02:19:51 AM
Quote from: masterofceremony on January 13, 2010, 03:29:07 AM
Quote from: smp420 on January 12, 2010, 08:02:30 PM
Quote from: masterofceremony on January 12, 2010, 01:59:18 AM
I attached  pictures, so You can see the difference. Can anybody please help me with this matter.
attach index.template.php

index.template.php attached
Ok try this

Quote from: talktoanil on January 16, 2010, 01:33:28 AM
need help dear.

This mod works well with default theme. but not with DS-Natural  theme of DzinerStudio.
why is this mod theme dependent ? how do i resolve this issue ?

You will have to manually install it on the mod page you will see the package parser just select your version of smf and admanagement and click parse then just do the edits for the files your theme has
Title: Re: Ad Management mod
Post by: NoobDeveloper on January 16, 2010, 02:24:56 AM
ok...but i have one doubt.  tell me the correct method.


1. Uninstall the MOD and do manual file edits

OR

2. Install the MOD and then do manual file edits for each file mentioned on mod page.


which is the correct method ?
Title: Re: Ad Management mod
Post by: smp420 on January 16, 2010, 02:30:24 AM
The second one you only have to make the edits for the files your theme has as it will install it on the default theme.
Title: Re: Ad Management mod
Post by: NoobDeveloper on January 16, 2010, 02:35:42 AM
check this screen shot

so do i have to do only manual file edits for index.template.php ?
Title: Re: Ad Management mod
Post by: smp420 on January 16, 2010, 02:40:10 AM
Yes you will have to manually edit index.template.php
Title: Re: Ad Management mod
Post by: NoobDeveloper on January 16, 2010, 02:41:38 AM
thanks. Lets see how it goes.
Title: Re: Ad Management mod
Post by: NoobDeveloper on January 16, 2010, 03:02:27 AM
as said in file edit section of mod on smf.

it says
FIND
<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '

i tried to find this text in index.template.php but its not there in that theme file.

what to do now ?
Title: Re: Ad Management mod
Post by: smp420 on January 16, 2010, 03:28:18 AM
attach your index.template.php I can edit this for you.
Title: Re: Ad Management mod
Post by: HappyHooligan on January 16, 2010, 05:37:03 AM
Hi,
this is my first forum and I've only had limited experience making websites but I've so far managed to get SMF running and added some mods including your Ad Management Mod.
What I'm wanting to know is if it possible to place a different banner add at the top of each board and topic?
I've got your mod installed and running and I'm trying to place a test ad but I'm not to sure what I'm meant to do? Do you have a basic tutorial for idiots???
I've uploaded my banner to my server but in the mod I'm unsure as to what I should be putting in the content box?
Sorry if this is a real simple questio0n to answer but like I say I'm a novice to all this and just want to teach myself.
Thanks  :)
Title: Re: Ad Management mod
Post by: NoobDeveloper on January 16, 2010, 05:52:39 AM
put code in content box.

and create multiple ads if you want different types of ads.
Title: Re: Ad Management mod
Post by: HappyHooligan on January 16, 2010, 06:34:12 AM
Sorry but where do I get the code from???  ???
Title: Re: Ad Management mod
Post by: NoobDeveloper on January 16, 2010, 08:31:10 AM
i am using Google ad-sense for showing ads on my forum. Hence google provides me the code which i paste in mod.

u can use advertisements from Google or from any other 3rd party providers to earn money.
Title: Re: Ad Management mod
Post by: kr5323 on January 16, 2010, 09:05:30 AM
Quote from: kr5323 on January 14, 2010, 12:13:44 PM
Quote from: kr5323 on January 13, 2010, 06:57:24 AM
Another question for smf2.0 rc2 and theme default: When I want a banner displayed in a given forum, adding the forum number in the option In a forum such advertising must be seen and select this others options:

Display advertising message index
Display advertising message in the thread


But I note that the post does not appear to enter the forum, I have to enter a post on the forum so you can see, while the norm is to be visible by accessing the forum.


Is there a solution?



Thank you.

Please, i need help. Thanks.

I've seen that does not work though "Display advertising message index" option is activated.

Is there a solution?



Regards.
Title: Re: Ad Management mod
Post by: HappyHooligan on January 16, 2010, 09:19:31 AM
I don't want to earn money from the ads. The forum is for local shops and businesses so for example there is a forum for mountainbiking which will have a banner from a local mountain biking company at the top of the forum and a person from that company will also moderate it. I just want to know if it is possible to have a banner ad that I have created placed at the top of the topic or board? If so how do I go about etting it there using this Mod?
I've looked elsewhere on the forum but they all seem to lead to dead ends or people have not replied to the same question!
Thanks
Title: Re: Ad Management mod
Post by: NoobDeveloper on January 16, 2010, 09:25:48 AM
Yes You can do it. its easy.

if you know HTML then just make sample page on your local machine. then test it on local machine. after your are satisfied with it then go to ad-mgmt mod and click on Add Ads.

now paste your HTML code in that box as shown in below image. that's it. Let me know name of the theme you are using.

tick check boxes as shown. 

For more info click on  ?. its very easy.




Title: Re: Ad Management mod
Post by: HappyHooligan on January 16, 2010, 10:56:18 AM
ok
the theme im using is Curvy Caramel

Ok I made a test banner up and this is the code i have...

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
  <title>test_ad</title>
</head>
<body>
<img style="width: 702px; height: 90px;" alt="" src="test_ad.jpg"><br>
</body>
</html>


Is that correct???
Sorry about all this I feel like a right numpty!!!
???
Title: Re: Ad Management mod
Post by: NoobDeveloper on January 16, 2010, 11:10:44 AM
yes. it will work perfect on u r local machine.


now upload this page to server and check if page is displayed proper.

next, paste the code...it should work.


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  is not required.
Title: Re: Ad Management mod
Post by: HappyHooligan on January 16, 2010, 12:31:58 PM
I have a red cross and an empty place holder?
Don't I have to check a box somewhere to allow ads???
Title: Re: Ad Management mod
Post by: NoobDeveloper on January 16, 2010, 12:53:11 PM
yes.

click on Admin > Members > Permissions

Now you will see all the member groups.  for each member group click on Modify button and find option called Ad Management. In that tick 'Enable ads'

do this for each member group for which you want to show banner/ads.
Title: Re: Ad Management mod
Post by: NoobDeveloper on January 16, 2010, 12:54:18 PM
Quote from: smp420 on January 16, 2010, 03:28:18 AM
attach your index.template.php I can edit this for you.

sure buddy.  let me install all other mods and in the end i will attach that file here. 
Title: Re: Ad Management mod
Post by: HappyHooligan on January 16, 2010, 01:24:14 PM
Did all that but still getting the red cross?

Any ideas?
If not I'll have another go and start fresh again.

Thanks for the step by step instructions though it makes it a lot easier  ;D
Title: Re: Ad Management mod
Post by: NoobDeveloper on January 16, 2010, 02:59:18 PM
red cross is because image URL is not proper.
Title: Re: Ad Management mod
Post by: kr5323 on January 16, 2010, 03:00:30 PM
In SMF 2.0 and default theme ... NOT WORKING the option: "Display advertising message index" in ad-manegement 2.3.6.

Is there a solution?
Title: Re: Ad Management mod
Post by: chilltraveler on January 16, 2010, 07:54:43 PM
Quote from: HappyHooligan on January 16, 2010, 09:19:31 AM
I don't want to earn money from the ads. The forum is for local shops and businesses so for example there is a forum for mountainbiking which will have a banner from a local mountain biking company at the top of the forum and a person from that company will also moderate it. I just want to know if it is possible to have a banner ad that I have created placed at the top of the topic or board? If so how do I go about etting it there using this Mod?
I've looked elsewhere on the forum but they all seem to lead to dead ends or people have not replied to the same question!
Thanks

Here is the code I believe you are looking for.  Just replace the url's for the image and where you want it to point to.

<a href="http://www.yoursite.com" target="_blank"><img border="0" src="http://www.yoursite.com/your directory/your_image.jpg" width="size in pxls" height="size in pxls" alt="your copy"></a>
<br><br>


The <br><br> are breaks between ads so they do not stack up.  If you are using only one ad, you can eliminate them

Hope this helps.

Bob
Title: Re: Ad Management mod
Post by: kr5323 on January 17, 2010, 06:29:03 AM
Quote from: kr5323 on January 16, 2010, 03:00:30 PM
In SMF 2.0 and default theme ... NOT WORKING the option: "Display advertising message index" in ad-manegement 2.3.6.

Is there a solution?

I have long been trying to solve this problem advertising manager, I have come to the support forum of the mod and no one responds. I do not understand, because my problem might be a possible fault of the mod and I guess the creator is interested in the functioning RC2 SMF 2.0.

Beg an answer.
Title: Re: Ad Management mod
Post by: Owdy on January 17, 2010, 06:37:21 AM
Did you know this Mod has been allways in top3 in mod site. Popular mod. I wonder how many downloads.
Title: Re: Ad Management mod
Post by: kr5323 on January 17, 2010, 07:04:54 AM
Quote from: Fossil on January 17, 2010, 06:37:21 AM
Did you know this Mod has been allways in top3 in mod site. Popular mod. I wonder how many downloads.

Yes and I have been using ad-management has long been on my site and have never had problems.

Do not need anyone to convince me the convenience of this mod, for me ... essential.

Now I try upgrading to smf 2.0 and note the failure to expose and try to find a solution. So I call in the support forum.

I do not know if this is a problem that only occurs on my site or is a problem affecting the mod. Hence my approach in the support forum, I assume that incidents raised by users is what makes it better, day by day, the mod.

I just want to clarify whether there is evidence that ad-management manegement "Display advertising message index" activating properly advertising in default theme and smf 2.0.




Regards and sorry for my english.
Title: Re: Ad Management mod
Post by: Owdy on January 17, 2010, 07:07:33 AM
kr5323, i wasnt directing you, just saying in general :)
Title: Re: Ad Management mod
Post by: Arantor on January 17, 2010, 07:10:44 AM
Quote from: Fossil on January 17, 2010, 06:37:21 AM
Did you know this Mod has been allways in top3 in mod site. Popular mod. I wonder how many downloads.

Apparently (http://custom.simplemachines.org/mods/index.php?mod=255), 146,647.
Title: Re: Ad Management mod
Post by: Owdy on January 17, 2010, 07:13:49 AM
Thats alot.
Title: Re: Ad Management mod
Post by: Arantor on January 17, 2010, 07:16:22 AM
Aeva has over 200k but I gather that's down to how it does site-list updates.
Title: Re: Ad Management mod
Post by: kr5323 on January 17, 2010, 07:22:00 AM
Quote from: Fossil on January 17, 2010, 07:07:33 AM
kr5323, i wasnt directing you, just saying in general :)

Then see if anyone knows answer to my question. For me it's critical to find solutions and is a problem that affects a correct integration of mod smf 2.0 rc2.
Title: Re: Ad Management mod
Post by: smp420 on January 17, 2010, 01:43:27 PM
Quote from: kr5323 on January 17, 2010, 06:29:03 AM
Quote from: kr5323 on January 16, 2010, 03:00:30 PM
In SMF 2.0 and default theme ... NOT WORKING the option: "Display advertising message index" in ad-manegement 2.3.6.

Is there a solution?

I have long been trying to solve this problem advertising manager, I have come to the support forum of the mod and no one responds. I do not understand, because my problem might be a possible fault of the mod and I guess the creator is interested in the functioning RC2 SMF 2.0.

Beg an answer.
I tried this and you are right. I will try to get it to work and I will let you know if I do



Edit I got this to work first find in MessageIndex.template.php
//Display Ads on the Message index
                if (function_exists("show_threadindexAds"))
{
$ads = show_threadindexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


and move that under echo '
<a id="top"></a>';
Title: Re: Ad Management mod
Post by: kr5323 on January 17, 2010, 02:50:34 PM
Thanks for your answer.

Sorry, but i speak english only a bit.

Quote from: smp420 on January 17, 2010, 01:43:27 PM
Quote from: kr5323 on January 17, 2010, 06:29:03 AM
Quote from: kr5323 on January 16, 2010, 03:00:30 PM
In SMF 2.0 and default theme ... NOT WORKING the option: "Display advertising message index" in ad-manegement 2.3.6.

Is there a solution?

I have long been trying to solve this problem advertising manager, I have come to the support forum of the mod and no one responds. I do not understand, because my problem might be a possible fault of the mod and I guess the creator is interested in the functioning RC2 SMF 2.0.

Beg an answer.
I tried this and you are right. I will try to get it to work and I will let you know if I do



Edit I got this to work first find in MessageIndex.template.php
//Display Ads on the Message index
                if (function_exists("show_threadindexAds"))
{
$ads = show_threadindexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


and move that under echo '
<a id="top"></a>';


Sorry, but i don´t understand.

My actual messageindex.template.php include the nesxt code in the first of the file:


// Version: 2.0 RC2; MessageIndex

function template_main()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt;
//Display Ads on the Message index
if (function_exists("show_threadindexAds"))
{
$ads = show_threadindexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


echo '
<a id="top"></a>';

if (!empty($context['boards']) && (!empty($options['show_children']) || $context['start'] == 0))
{
echo '
<div class="tborder" id="childboards">
<h3 class="catbg"><span class="left"></span>', $txt['parent_boards'], '</h3>
<div class="table_frame">
<table class="table_list">
<tbody class="content"> ';

foreach ($context['boards'] as $board)
{
if(!empty($board['children']) && !empty($modSettings['tidy_child_boards']) && $modSettings['tidy_child_boards'] > 1)
tidyBoards($board);
echo '
<tr class="windowbg2">
<td class="icon windowbg"', !empty($board['children']) ? ' rowspan="2"' : '', '>
<a href="', ($board['is_redirect'] || $context['user']['is_guest'] ? $board['href'] : $scripturl . '?action=unread;board=' . $board['id'] . '.0;children'), '">';

if ($board['new']) {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/on.png'))
$board_new_img=$settings['theme_url']. '/icons/' . $board['id'] . '/on.png';
else
$board_new_img=$settings['images_url']. '/on.png';

echo '<img src="', $board_new_img,'" alt="', $txt['no_icon'], '" title="', $txt['no_icon'], '" border="0" />';
} elseif ($board['children_new']) {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/on2.png'))
$childboard_new_img=$settings['theme_url']. '/icons/' . $board['id'] . '/on2.png';
else
$childboard_new_img=$settings['images_url']. '/on2.png';

echo '<img src="', $childboard_new_img,'" alt="', $txt['no_icon'], '" title="', $txt['no_icon'], '" border="0" />';
} else {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/off.png'))
$board_nonew_img=$settings['theme_url']. '/icons/' . $board['id'] . '/off.png';
else
$board_nonew_img=$settings['images_url']. '/off.png';

echo '<img src="', $board_nonew_img,'" alt="', $txt['no_icon'], '" title="', $txt['no_icon'], '" border="0" />';
}
// Is it a redirection board?
if ($board['is_redirect'])
echo '<img src="', $settings['images_url'], '/redirect.png" alt="*" title="*" border="0" />';


echo '</a>
</td>
<td class="windowbg2">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>';





¿What i have to do??



Thanks, very thanks for your answer.
Title: Re: Ad Management mod
Post by: Owdy on January 17, 2010, 03:34:13 PM
Oh, seems this mod has moved away from this site.
http://www.simplemachines.org/community/index.php?topic=68632.msg470039#msg470039
Title: Re: Ad Management mod
Post by: smp420 on January 17, 2010, 03:40:54 PM
It should look like this


// Version: 2.0 RC2; MessageIndex
function template_main()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt;
                echo '
               <a id="top"></a>';

                //Display Ads on the Message index
if (function_exists("show_threadindexAds"))
{
$ads = show_threadindexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
Title: Re: Ad Management mod
Post by: Yahmez on January 17, 2010, 04:54:07 PM
Quote from: Fossil on January 17, 2010, 03:34:13 PM
Oh, seems this mod has moved away from this site.
http://www.simplemachines.org/community/index.php?topic=68632.msg470039#msg470039 (http://www.simplemachines.org/community/index.php?topic=68632.msg470039#msg470039)
:'(
Due to the actions of SMF management ?

:-\
Title: Re: Ad Management mod
Post by: kr5323 on January 17, 2010, 05:02:18 PM
SMF lost the best mod !!!!!

Title: Re: Ad Management mod
Post by: lima5000 on January 17, 2010, 05:22:20 PM
every parse code was deleted from smf?
does anyone have it?
I need to install in different template and cannot find the parse...
tks a lot.
Title: Re: Ad Management mod
Post by: Afro on January 17, 2010, 05:23:54 PM
wow!!!!

ad management is gone... >:( >:( >:( :( :( :(
Title: Re: Ad Management mod
Post by: smp420 on January 17, 2010, 05:44:25 PM
Quote from: lima5000 on January 17, 2010, 05:22:20 PM
every parse code was deleted from smf?
does anyone have it?
I need to install in different template and cannot find the parse...
tks a lot.
Use this http://www.smfhelper.info/forum/package.php
Title: Re: Ad Management mod
Post by: lima5000 on January 17, 2010, 10:24:38 PM
Quote from: smp420 on January 17, 2010, 05:44:25 PM
Quote from: lima5000 on January 17, 2010, 05:22:20 PM
every parse code was deleted from smf?
does anyone have it?
I need to install in different template and cannot find the parse...
tks a lot.
Use this http://www.smfhelper.info/forum/package.php (http://www.smfhelper.info/forum/package.php)

woooow great smp, wonderfull tip... thanks a lot!
Title: Re: Ad Management mod
Post by: masterofceremony on January 18, 2010, 04:57:29 AM
Quote from: smp420 on January 16, 2010, 02:19:51 AM
Quote from: masterofceremony on January 13, 2010, 03:29:07 AM
Quote from: smp420 on January 12, 2010, 08:02:30 PM
Quote from: masterofceremony on January 12, 2010, 01:59:18 AM
I attached  pictures, so You can see the difference. Can anybody please help me with this matter.
attach index.template.php

index.template.php attached
Ok try this
Still the same problem, that, when I log out, the board gets wider and font increases.
Title: Re: Ad Management mod
Post by: Muldoon on January 18, 2010, 11:21:51 AM
Hello,

I tested an install of this mod and everything test successful except I received an error:

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    install.php    
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/Subs.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
6.    Execute Modification    ./Themes/default/Display.template.php    Test failed
7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
8.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
9.    Extract File    ./Sources/Ads.php    
10.    Extract File    ./Sources/LoadAds.php    
11.    Extract File    ./Themes/default/Ads.template.php    
12.    Extract File    ./Themes/default/languages/Ads.english.php    
13.    Extract File    ./Themes/default/languages/Ads.english-utf8.php

As you'll see, the test failed for the Display.template.php file.  Should I go ahead with the install and then just make the manual edits to the Display.template.php file for it to work?  Any help would be much appreciated! Thank you.
Title: Re: Ad Management mod
Post by: Arantor on January 18, 2010, 11:25:13 AM
Muldoon, yes, that would be the solution.
Title: Re: Ad Management mod
Post by: Muldoon on January 18, 2010, 12:04:09 PM
So I installed and went through the Display.template.php changes.

I noticed on my site I had a banner ad on the bottom, but  now it shows twice! 

In the code, I saw this:

Find:

// Get all the messages...
while ($message = $context['get_message']())
{



Replace with:

//Ad Counter
$adcounter =0;
// Get all the messages...
while ($message = $context['get_message']())
{
$adcounter++;


In my file, it all seems to be there BUT I do see 2 $adcounter++;   one right below the other in my code.  Is this what is causing two to show on my bottom banner ad?  Should I remove one of these?

EDIT:  I juts went into my Ad Management area in my Admin area and looked at my ads...IT HAS DOUBLED MY ADS.  So I have two of each... I deleted one to see if it leaves the other, but it deletes both identical ads.

EDIT: I attempted to remove one of the $adcounter++' and uploaded it to my server, but the double ads still show...it did not correct the problem... I'm at a loss.  I could really use some help :)

EDIT: Further update to this...I changed over to my Mesh theme and it only displays the bottom ad once, HOWEVER in the Ad Management area of the admin section it still shows my ads twice. 
Title: Re: Ad Management mod
Post by: Muldoon on January 18, 2010, 01:31:23 PM
Well I've gone through all the files manually and uploaded the corrected files as there was some code that was doubled.

HOWEVER,

My index.template.php file is causing an error now.  This is what I get when I have my forum on the default theme:


Parse error: syntax error, unexpected '<' in /home/muldoon/domains/thethirdoption.net/public_html/smf/Themes/default/index.template.php on line 380

371: echo $ads['content'];
372: else
373: eval($ads['content']);
374: echo '</td>';
375: }
376: unset($ads);
377: }
378: echo '
379: ';

380: </tr>

381: </table>
382: </td>
383: </tr>
384: </table>';
Title: Re: Ad Management mod
Post by: Muldoon on January 18, 2010, 01:49:18 PM
Figured some of it out...I had to remove the '; from line 379.

1 - Bottom Ad now only shows once...there are not two of them, HOWEVER

2 - Under the Ad Management section in the Admin area, all ads still show twice.  I created one and it created it twice.  So it's still not fully corrected.

Any ideas?
Title: Re: Ad Management mod
Post by: C4G-TK on January 18, 2010, 02:34:49 PM
If you haven't made many changes or have many mods installed, try replacing the files on the forum with a fresh install and do it again.   :-[
Title: Re: Ad Management mod
Post by: Muldoon on January 18, 2010, 04:11:04 PM
Hi C4G-TK, could you walk me through this a bit?  What files would I need to replace?  Also, do I need to go through an actual install for SMF 1.1.11 again or juts replace some files (which would wipe out my mods).

Currently I have installed over SMF:

- TinyPortal v0.9.8 (I do not want to do anything that removes this as I had to do a manual install a year and a half ago for this...and I don't have the time to do another manual install for this).
- Custom BBCode (I can't even uninstall this because it gives me 'test failed' on the four or five files it shows.
- Ad Management Mod

And that is it :)

Any suggestions would be great :)
Title: Re: Ad Management mod
Post by: C4G-TK on January 18, 2010, 04:59:09 PM
1 - You could just replace the files on the forum that the Ad Mod edits.

2 - Check to see if the versions of TinyPortal and Custom BBCode use the same files and re-edit just those files that you replaced in Step 1

3 - Reinstall the Ad Mod.





One thing that I do is keep a spreadsheet of all the mods that I use and which files they edit.  This helps me check to see what could be causing errors by narrowing which mods altered a file.  You can see an example of what I do in the attached file.
Title: Re: Ad Management mod
Post by: Muldoon on January 18, 2010, 05:16:26 PM
Wow C4G-TK, thank you so much!  I love the spreadsheet and will definitely use that from now on.

Also, thank you for the instructions, I'll have to give that a shot!  when I replace these files, do I just delete the mod in the packages area or should I still go through the 'uninstall'?
Title: Re: Ad Management mod
Post by: C4G-TK on January 18, 2010, 05:25:20 PM
I do not uninstall in cases like this.  I replace the files that I need to replace and just redo the edits.  Also, you don't need to replace ALL of the files for the mod.  Just the files that you think may be causing the problem. 
Title: Re: Ad Management mod
Post by: masterofceremony on January 19, 2010, 09:46:25 AM
Quote from: masterofceremony on January 18, 2010, 04:57:29 AM
Quote from: smp420 on January 16, 2010, 02:19:51 AM
Quote from: masterofceremony on January 13, 2010, 03:29:07 AM
Quote from: smp420 on January 12, 2010, 08:02:30 PM
Quote from: masterofceremony on January 12, 2010, 01:59:18 AM
I attached  pictures, so You can see the difference. Can anybody please help me with this matter.
attach index.template.php

index.template.php attached
Ok try this
Still the same problem, that, when I log out, the board gets wider and font increases.
smp420
you can check it out http://www.bonsuna.com/forum/index.php (http://www.bonsuna.com/forum/index.php)
Title: Re: Ad Management mod
Post by: HappyHooligan on January 19, 2010, 02:40:27 PM
Hi again
I managed to get my ads up and running, chilltraveler thanks for that code worked first time.
Know I'm wanting to show differnet ads for different forums. EG I have a forum for rollerblading where I want the local skate shop to have an ad at the top of the forum and another forum for kite surfing where i want the local surf shop to advetise. Is this possible to have all these different forums sponsored by different shops? What are the settings I need to put into the edit box? I've tried changing the which boards to display in options but it just disappears!!!
:-\
Thanks
Title: Re: Ad Management mod
Post by: vbgamer45 on January 19, 2010, 05:54:57 PM
I have acquired the Ad Management Mod will making updates and updating the website shortly. The downloads will be restored as soon as possible.
Title: Re: Ad Management mod
Post by: qtime on January 19, 2010, 06:07:01 PM
Alternative you can use EzPortal or similar script with blocks, unfortunately this will not support an advertisement as a reply.

You can select for each membergroups which ad (block) you want to show. The ad management mod will only show an ad or not, no way between.

But thanks to gamer45 he keep the mod alive, because it has some nice features as well. I used both at my forum.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 19, 2010, 08:24:28 PM
I have restored the Ad Management Mod to the modsite with some minor updates. Currently working on an ad selling mod which I will announce soon.
Title: Re: Ad Management mod
Post by: bjraines on January 19, 2010, 09:28:29 PM
Thanks, will there be new features like ads in post like seen currently at forums.digitalpoint.com
Title: Re: Ad Management mod
Post by: C4G-TK on January 19, 2010, 09:38:39 PM
Thanks for taking on such a great mod, vbgamer45!  It is nice to see it back on SMF.  Can't wait to see what you do with it!
Title: Re: Ad Management mod
Post by: MultiformeIngegno on January 20, 2010, 11:42:05 AM
So the development is now continued?
Title: Re: Ad Management mod
Post by: Arantor on January 20, 2010, 11:43:40 AM
So it would seem :)
Title: Re: Ad Management mod
Post by: MultiformeIngegno on January 20, 2010, 11:46:38 AM
But.. what's happened (http://www.google.it/url?sa=t&source=web&ct=clnk&cd=2&ved=undefined&url=http%3A%2F%2F209.85.135.132%2Fsearch%3Fq%3Dcache%3AEzkUTKcinKIJ%3Awww.smfads.com%2Fsale%2F%2Bsmfads%26cd%3D2%26hl%3Dit%26ct%3Dclnk%26gl%3Dit&ei=ODNXS7uICZ7qmwOkzOGKAw&usg=AFQjCNHmbrpdSu9OqPjRv7iimilPKHxfGw&sig2=NwmXDApoDW19JqM2NQ2IHw)? ::)
Title: Re: Ad Management mod
Post by: vbgamer45 on January 20, 2010, 12:09:03 PM
I bought the mod from Jerm so sale is now over
Title: Re: Ad Management mod
Post by: Bigguy on January 20, 2010, 12:15:10 PM
I'm sure we will see great things for this mod from vbgamer. :)
Title: Re: Ad Management mod
Post by: C4G-TK on January 20, 2010, 12:18:39 PM
Would be nice if once you make a updated mod with everything you want in it... a new thread would be made.   :D  (Just because there's so many pages!!!)

Congrats on the purchase.
Title: Re: Ad Management mod
Post by: ~DS~ on January 20, 2010, 12:20:19 PM
It's great to see this mod alive and kicking.
Title: Re: Ad Management mod
Post by: Bigguy on January 20, 2010, 12:25:19 PM
We can't dismiss all the support that has happened here. This thread should stay IMHO.
Title: Re: Ad Management mod
Post by: Arantor on January 20, 2010, 12:29:10 PM
If there were a new variant created and this one put aside, the thread would stay.
Title: Re: Ad Management mod
Post by: carbonize on January 20, 2010, 12:29:31 PM
Hope it didn't cost you to much.
Title: Re: Ad Management mod
Post by: catfished on January 20, 2010, 12:29:49 PM
Quote from: Bigguy on January 20, 2010, 12:25:19 PM
We can't dismiss all the support that has happened here. This thread should stay IMHO.

I agree with Bigguy on this one. It's not much of an inconvenience to just click on the last page or first unread post. If you want to get information on what the mod does, just click on the first page and if you need more info, just click on the link to the actual mod. This way, all the support info is still readily available.
Title: Re: Ad Management mod
Post by: MultiformeIngegno on January 20, 2010, 12:38:40 PM
Well.. good luck for the purchase! I can say I'll use this MOD, it's really useful! :)
Title: Re: Ad Management mod
Post by: Bigguy on January 20, 2010, 12:44:04 PM
Quote from: Arantor on January 20, 2010, 12:29:10 PM
If there were a new variant created and this one put aside, the thread would stay.

Do all the old versions of the mod still exist ??? If so this is a valuable thread.

EDIT: Damn I was saving my 7800th post. :(
Title: Re: Ad Management mod
Post by: Arantor on January 20, 2010, 12:48:03 PM
Bigguy, I honestly don't know. If so they will be at smfads.com somewhere, since AFAIK all the files were removed from here.
Title: Re: Ad Management mod
Post by: Bigguy on January 20, 2010, 12:51:50 PM
Well, all I can say is I hope this thread stays around. Would be a shame to lose all this info. 
Title: Re: Ad Management mod
Post by: Arantor on January 20, 2010, 01:10:26 PM
Even if the modification is marked removed on the mod site, the thread will at worst be locked, nothing more.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 20, 2010, 01:36:31 PM
I have all the old versions of the admod if needed but the most recent ones for SMF 1.1.x and SMF 2.0.x on the mod site. I doubt anyone still needs SMF 1.0.x but have them if needed
Title: Re: Ad Management mod
Post by: poolhall on January 20, 2010, 02:16:32 PM
congrats to both of you, vbgamer45 and jerm!

...and for all of us too :)
Title: Re: Ad Management mod
Post by: aikencolon on January 20, 2010, 03:23:34 PM
Hi!

I'm looking to install this mod. I parsed for SMF 2.0 RC1, but I'm getting stuck at the themes/default/index.template.php step.

I have loose versions of the text it's telling me to look for, but it's not identical. For instance I have a class id="wrapper", but it doesn't end with $settings['forum_width'] . '">' : '', '... (it just is <div id="wrapper"/>). Also, I don't have anything in that file that looks like... <div id="content_section"><div class="frame">
      <div id="main_content_section">';

How can I go about updating my index.template.php? I have attached my index.template.php for some additional reference.

I look forward to hearing from you!

Best
Title: Re: Ad Management mod
Post by: Bigguy on January 20, 2010, 06:43:24 PM
Quote from: Arantor on January 20, 2010, 01:10:26 PM
Even if the modification is marked removed on the mod site, the thread will at worst be locked, nothing more.

good to hear.
Title: Re: Ad Management mod
Post by: kenso on January 22, 2010, 12:49:19 AM
Hi Guys, I am using 2-3-6-1 and my ads work fine when I'm logged in as admin, but they dont appear with the members. There is no check box in the permissions folders for the veiwing of ads, unless I have suddenly stopped being able to read ;D (I am using default theme.) I also noticed on the posts somewhere that "
QuoteIts a bit misleading. The "Enable Ads" option is under the "Administrative Duties" section in the permissions, which implies that if ticked, that member can choose to make ads active or not for the forum.
thats all well and good but where is the Administrative duties menu? ???
Cheers Kenso
Title: Re: Ad Management mod
Post by: vbgamer45 on January 22, 2010, 01:10:52 AM
Found under Admin -> Permissions -> Modify a group

Going to update that shortly to make it better understood
Title: Re: Ad Management mod
Post by: masterofceremony on January 22, 2010, 01:30:01 AM
I still have this old problem, that if I log out, then the board goes wider and font increases. When I stay logged in, then it's ok. Maybe someone will find a bit time and can help me with this matter.
Board index (http://www.bonsuna.com/forum/index.php)

with best regards,
Marco
Title: Re: Ad Management mod
Post by: vbgamer45 on January 22, 2010, 01:35:28 AM
Is this related to ad mod or a general smf board issue with RC2?
Title: Re: Ad Management mod
Post by: masterofceremony on January 22, 2010, 03:15:49 AM
This problem came out after those 4 core files were modified manually.
Title: Re: Ad Management mod
Post by: nalcaci on January 22, 2010, 12:04:00 PM
i have install this mod but where must i past the google adsense code :S
Title: Re: Ad Management mod
Post by: vbgamer45 on January 22, 2010, 12:29:06 PM
Quote from: nalcaci on January 22, 2010, 12:04:00 PM
i have install this mod but where must i past the google adsense code :S
Did you follow the guide on the modpage/read me
http://custom.simplemachines.org/mods/index.php?mod=255
It has a section on how to add Ad's
Title: Re: Ad Management mod
Post by: vbgamer45 on January 22, 2010, 02:55:23 PM
Just completed by Ad Selling mod Ad Seller Pro
http://www.smfhacks.com/ad-seller-pro.php

Kind of like ad management but focuses on selling and more placements.
The ad management mod here will always remain free.
Title: Re: Ad Management mod
Post by: nalcaci on January 22, 2010, 03:03:44 PM
Quote from: vbgamer45 on January 22, 2010, 12:29:06 PM
Quote from: nalcaci on January 22, 2010, 12:04:00 PM
i have install this mod but where must i past the google adsense code :S
Did you follow the guide on the modpage/read me
http://custom.simplemachines.org/mods/index.php?mod=255
It has a section on how to add Ad's

sorry :) i must first the change my langauge because if i dont change it i dont see mod settings

http://www.simplemachines.org/community/index.php?topic=361620.0

help me pls :(
Title: Re: Ad Management mod
Post by: alhem on January 22, 2010, 08:22:41 PM
Ads ONLY show for admin to me. Anyone had this before?
Title: Re: Ad Management mod
Post by: Arantor on January 22, 2010, 08:25:20 PM
Yes, you need to set the permissions in the permissions area.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 22, 2010, 08:26:12 PM
Thanks Arantor here is the flow

Admin -> Permissions -> Modify each group. Then under Ad Management choose "Enable Ads"
Title: Re: Ad Management mod
Post by: masterofceremony on January 23, 2010, 05:57:21 AM
Quote from: masterofceremony on January 22, 2010, 03:15:49 AM
This problem came out after those 4 core files were modified manually.

Still need some help. Please.
Title: Re: Ad Management mod
Post by: aikencolon on January 25, 2010, 04:38:11 PM
Quote from: masterofceremony on January 22, 2010, 03:15:49 AM
This problem came out after those 4 core files were modified manually.

Master of Ceremony, does the above reply relate to my problem? I can't install this mod. I am using SMF2.0 RC2 and parsed for that. I do use Day Relax theme. I have tried to install the mod into my default theme files and my Relax theme files- both without any success. When I try to manually install it into my Relax theme files here are my specific problems:

In index.template.php

I don't have:
<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '

I don't have:
<div id="content_section"><div class="frame">
      <div id="main_content_section">';

I DO have:
<div id="menucontent">
and
<div id="mainframe">

I don't have:
echo '
      </div>
   </div></div>';

I DO have:
echo '
         </div>
      </div>';
____________________________________________________________________
boardindex.template.php

I don't have:
   echo '
         </tbody>
         <tbody class="divider">
            <tr>
               <td colspan="4"></td>
            </tr>
         </tbody>';
___________________________________________________________________________
display.template.php

I don't have:
}

   echo '
            </form>
         </div>
         <a id="lastPost"></a>';

I DO have:
<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />
         </form>
      </div>
____________________________________________________________________________

In MessageIndex.template.php

I don't have:
echo '
         </tbody>
      </table>
   </div>
</div>';


I DO have:
   echo '
               </tbody>
            </table>
         </div>
         <a id="bot"></a>';
_____________________________________________________________

I have all of the other codes that I am told to look for.

Can you please help?  :'(

I look forward to hearing from you!

Best
Title: Re: Ad Management mod
Post by: vbgamer45 on January 25, 2010, 07:43:23 PM
That is the tough part each custom theme is a little different so there is no set solution for each theme it has to be custom done.
Title: Re: Ad Management mod
Post by: eckostylez on January 25, 2010, 11:42:32 PM
I get an error on Display.template.php when trying to install this mod. Any ideas what is causing this?
Title: Re: Ad Management mod
Post by: vbgamer45 on January 25, 2010, 11:49:07 PM
Mostly likely is a conflict with another mod that is also modifying the same code. You can install the mod but just make that one change manually.
Title: Re: Ad Management mod
Post by: eckostylez on January 26, 2010, 12:51:50 AM
OK, thanks vbgamer45
Title: Re: Ad Management mod
Post by: MazdaClubTR on January 26, 2010, 02:19:19 AM
Quote from: vbgamer45 on January 22, 2010, 02:55:23 PM
Just completed by Ad Selling mod Ad Seller Pro
http://www.smfhacks.com/ad-seller-pro.php

Kind of like ad management but focuses on selling and more placements.
The ad management mod here will always remain free.

If we are using Ad Management and happy with it, do we need it ?

I am using Ad Management and OpenX on my ad server..
Title: Re: Ad Management mod
Post by: vbgamer45 on January 26, 2010, 09:45:27 AM
It is more of additional placements and focus on selling of ad space.  If ad management is working fine you can continue using it still will be supported.
Title: Re: Ad Management mod
Post by: joehark on January 26, 2010, 11:15:34 AM
I have AM installed. (SMF 1.1.x), default theme.  My ads use Google code that works fine on WordPress-based sites I have on the same server. I have configured Permissions to show ads. But I cannot see them in any mode, including Admin to Guest.

Here's how I configured it:

Which boards should this ad display in     
Display ads within posts    
Display ads after categories    
Type                                                                   HTML
Display ads on every page right below the menu    
Display ads on board index    
Display ads on message index    
Display ads on the post page    
Display ads after the last post    
Display ads on every page on the top of the page    
Display ads in the welcome user area    
Display ads on the bottom of the page    
Display ads on every page as a tower on the left side    
Display ads on every page as a tower on the right side  CHECKED   
Display ads under child boards    

--------------------

if it matters the adwords code calls for the ad to be 234 by 60 px.

Please advise? If a moderator here wants access to look at my config, I'll provide it in response to a PM.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 26, 2010, 11:22:04 AM
Adsize shouldn't matter. If you view the source of the page do you see the adsense code on the page?
Title: Re: Ad Management mod
Post by: joehark on January 26, 2010, 11:34:47 AM
yes, the code is there in the page source. May I PM or email you Admin or server access?
Title: Re: Ad Management mod
Post by: vbgamer45 on January 26, 2010, 11:35:57 AM
Does the code look identical to the code that adsense gave you
Title: Re: Ad Management mod
Post by: joehark on January 26, 2010, 11:49:32 AM
No it did not. But after changing to match, the ads still do not appear. First, here's what was there (TheHomeExchangeForums.com)

<script type="text/javascript"><!--
google_ad_client = "pub-redacted";
/* 234x60, AdSenseNow created 3/1/09 */
google_ad_slot = "redacted";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

And here's what i got from the Page Source of one of the working sites. In each case i have redacted identifying Google #

<!-- AdSense Now! V1.56 -->
<!-- Post[count: 1] -->
<div class="adsense adsense-leadin" style="float:right;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "pub-redacted";
/* Plugin: adNow 234x60, created 6/22/09 */
google_ad_slot = "redacted";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
Title: Re: Ad Management mod
Post by: aikencolon on January 26, 2010, 01:10:48 PM
Quote from: vbgamer45 on January 25, 2010, 07:43:23 PM
That is the tough part each custom theme is a little different so there is no set solution for each theme it has to be custom done.

Thank you for your response. I understand that changing the theme would likely require custom mods, however I am also unable to install this mod on my default theme. When I use the package manager I get errors, and when I try to manually install it I still don't have the code it tells me to look for.

Any ideas?

Thanks!
Title: Re: Ad Management mod
Post by: Fire & Safetyfora on January 26, 2010, 06:17:12 PM
i have a problem with the ad management in the core theme, the problem is in the welkom area. If i set the code for this part in my forum than it will flip complete. The automatic installation don't set all the codes on the place were the most stand. How can help me?
Title: Re: Ad Management mod
Post by: www.n1-forum.com on January 26, 2010, 09:59:46 PM
teşekkürler
Title: Re: Ad Management mod
Post by: vbgamer45 on January 26, 2010, 10:18:12 PM
Quote from: Safetyforums on January 26, 2010, 06:17:12 PM
i have a problem with the ad management in the core theme, the problem is in the welkom area. If i set the code for this part in my forum than it will flip complete. The automatic installation don't set all the codes on the place were the most stand. How can help me?
what smf version?
Title: Re: Ad Management mod
Post by: masterofceremony on January 27, 2010, 02:17:30 AM
I still have this old problem, that if I log out, then the board goes wider and font increases. When I stay logged in, then it's ok. The problem came after manual installation of the ad management mod to core theme. Maybe someone will find a bit time and can help me with this matter.
Board index (http://www.bonsuna.com/forum/index.php)

with best regards,
Marco
Title: Re: Ad Management mod
Post by: Stüldt Håjt on January 27, 2010, 04:58:47 AM
What's new with the lastest release?
Title: Re: Ad Management mod
Post by: MaXiForum.cz on January 27, 2010, 07:38:58 AM
Quote from: Stüldt Håjt on January 27, 2010, 04:58:47 AM
What's new with the lastest release?

http://custom.simplemachines.org/mods/index.php?mod=255  ;)
Title: Re: Ad Management mod
Post by: vbgamer45 on January 27, 2010, 08:45:39 AM
Quote from: Stüldt Håjt on January 27, 2010, 04:58:47 AM
What's new with the lastest release?
Minor updates spelling changes etc.
Title: Re: Ad Management mod
Post by: joehark on January 27, 2010, 11:37:35 AM
Any chance someone can help me get AM to work on my site, please? Whatever I am doing wrong is not obvious to me. I tried everything I can think of. I believe I need an expert in AM to look in my Admin and see how I've configured things.

Thanks in advance.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 27, 2010, 08:05:22 PM
Quote from: joehark on January 27, 2010, 11:37:35 AM
Any chance someone can help me get AM to work on my site, please? Whatever I am doing wrong is not obvious to me. I tried everything I can think of. I believe I need an expert in AM to look in my Admin and see how I've configured things.

Thanks in advance.
Yeah I took a look I can see the ads on the right handside when I  view your page. Check that you don't have adblock blocking that website.
Title: Re: Ad Management mod
Post by: KensonPlays on January 27, 2010, 08:22:09 PM
Quote from: Arantor on January 07, 2010, 04:53:12 PM
The theme used at nairapalace.com is http://custom.simplemachines.org/themes/index.php?lemma=20

the theme doesn't exist according to your link...
Title: Re: Ad Management mod
Post by: vbgamer45 on January 27, 2010, 08:23:46 PM
The mod author removed it.
Title: Re: Ad Management mod
Post by: KensonPlays on January 27, 2010, 10:01:07 PM
Oh dang!!
Title: Re: Ad Management mod
Post by: scenerip2k on January 28, 2010, 04:23:57 PM
I'm using Ad Managment 2.3.6 for SMF 2.0 RC2 I create a new ad, and for some reason it creates a duplicate of it and displays it twice. Deleting one of them deletes both.

Whats going on?
Title: Re: Ad Management mod
Post by: vbgamer45 on January 28, 2010, 04:28:52 PM
Most likely the mod installed twice. Uninstall the mod then check your templates for any other duplicate ad management code.
Title: Re: Ad Management mod
Post by: masterofceremony on January 29, 2010, 02:13:02 AM
I still have this old problem, that if I log out, then the board goes wider and font increases. When I stay logged in, then it's ok. The problem came after manual installation of the ad management mod to core theme. Maybe someone will find a bit time and can help me with this matter.
Board index (http://www.bonsuna.com/forum/index.php)

Doesn't anybody have a glue? Please, I need Your help. Quite desperate already. :-[
Title: Re: Ad Management mod
Post by: Fire & Safetyfora on January 29, 2010, 02:30:44 AM
Quote from: vbgamer45 on January 26, 2010, 10:18:12 PM
Quote from: Safetyforums on January 26, 2010, 06:17:12 PM
i have a problem with the ad management in the core theme, the problem is in the welkom area. If i set the code for this part in my forum than it will flip complete. The automatic installation don't set all the codes on the place were the most stand. How can help me?


what smf version?

i have the 2.0 RC2 version. If i log out then is also my log in session gone. (welcome area)
Title: Re: Ad Management mod
Post by: Win_XP on January 29, 2010, 06:53:47 AM
Hi, I have a problem with my SMF and I think its Ad Management mod problem, on every thread the first post is not shown, it shows up after I post another post, where is the problem, I have only this mod installed.

Here is what I'm talking about:

pockethacks.com/forum/index.php?topic=2102.msg2106#new

Thanks,
Dimitar
Title: Re: Ad Management mod
Post by: Bigguy on January 29, 2010, 06:57:44 AM
Yes that is a problem with the ad mod. I do believe, if I remember correctly that not all the edits were done to the index.php file. ??? (I think) It has been awhile since I heard of this error.
Title: Re: Ad Management mod
Post by: idrees on January 29, 2010, 10:33:58 AM
i hav installed this in smf 1.1.1
it is only working in the default core theme
and i hav installed a new theme
plz tell me that how can implement this in the new theme (my own theme.....)
Title: Re: Ad Management mod
Post by: MaXiForum.cz on January 29, 2010, 02:58:20 PM
You must make the changes on your new theme...
Do you have?
Title: Re: Ad Management mod
Post by: vbgamer45 on January 29, 2010, 08:00:28 PM
Quote from: Win_XP on January 29, 2010, 06:53:47 AM
Hi, I have a problem with my SMF and I think its Ad Management mod problem, on every thread the first post is not shown, it shows up after I post another post, where is the problem, I have only this mod installed.

Here is what I'm talking about:

pockethacks.com/forum/index.php?topic=2102.msg2106#new

Thanks,
Dimitar
Hmm What ad options do you have enabled let me know all the details and I can check it out.
Title: Re: Ad Management mod
Post by: idrees on January 30, 2010, 04:52:40 AM
previous problem solved........
now there is another problem that when i add an ad from
admin-->Configuration-->>>Ad Management-->>Add ADS
its is successfully added but when i click on the
admin-->>Configuration-->>>Ad Management-->>Edit ADS
in this table the name of the AD is displayed two times
For example if i give the name of an ad "yyyyyy"
then in edit table it appears as:
yyyyyy
yyyyyy

plz tell me how to fix this
Title: Re: Ad Management mod
Post by: HollowbeadRanch on January 30, 2010, 10:17:59 AM
Hi!  I am sorry in advance if this question has already been answered somewhere in this thread... I tried to read through to find the answer, but either I missed it or no one else has had this problem...


I installed Ad Management to my forum, and it installed perfectly! However, I just tried adding the code for the google adsense ads, and they are not showing?  Does it take a while for it to show up or should it show up instantly?  My forum version is 2.0 RC2 and I am not using the default theme... I had a custom theme made.  The forum is www.GoatFarmCentral.com  Now I will admit that I am definitely NOT the sharpest tool in the shed when it comes to ANY of this... so I apologize in advance for my lack of knowledge.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 30, 2010, 10:29:56 AM
Quote from: HollowbeadRanch on January 30, 2010, 10:17:59 AM
Hi!  I am sorry in advance if this question has already been answered somewhere in this thread... I tried to read through to find the answer, but either I missed it or no one else has had this problem...


I installed Ad Management to my forum, and it installed perfectly! However, I just tried adding the code for the google adsense ads, and they are not showing?  Does it take a while for it to show up or should it show up instantly?  My forum version is 2.0 RC2 and I am not using the default theme... I had a custom theme made.  The forum is www.GoatFarmCentral.com  Now I will admit that I am definitely NOT the sharpest tool in the shed when it comes to ANY of this... so I apologize in advance for my lack of knowledge.
Make sure to also enable ads for each membergrup under Admin -> Permissions -> Modify Each Group
Title: Re: Ad Management mod
Post by: HollowbeadRanch on January 30, 2010, 11:00:04 AM
Thank you for the reply!


I went in and checked that, and yes the ads are enabled for all membergroups???
Title: Re: Ad Management mod
Post by: vbgamer45 on January 30, 2010, 11:02:23 AM
I see the issue you are using a custom theme which requires the edits that are made to the default theme to also be applied to your custom theme. Check out the modsite for details.
Title: Re: Ad Management mod
Post by: C4G-TK on January 30, 2010, 01:39:53 PM
I see where people have asked to get the background color changed in the ads that appear in threads as posts.  But, I don't see where anyone shows where to change it.  Can someone just post where to change it?  I'd like to do the editing myself instead of making someone else do it for me.  I just want to have the background appear like the normal post background or board background.

BTW, is there a way to not have the QUOTE button (and other buttons) appear in those posts? 

Title: Re: Ad Management mod
Post by: vbgamer45 on January 30, 2010, 01:49:31 PM
The code is added to themes/default/Display.template.php You can remove the buttons and change the class style type
Title: Re: Ad Management mod
Post by: Win_XP on January 30, 2010, 06:59:39 PM
Quote from: vbgamer45 on January 29, 2010, 08:00:28 PM
Quote from: Win_XP on January 29, 2010, 06:53:47 AM
Hi, I have a problem with my SMF and I think its Ad Management mod problem, on every thread the first post is not shown, it shows up after I post another post, where is the problem, I have only this mod installed.

Here is what I'm talking about:

pockethacks.com/forum/index.php?topic=2102.msg2106#new

Thanks,
Dimitar
Hmm What ad options do you have enabled let me know all the details and I can check it out.

Here is my config:

1 x ad at welcome user area
1 x ad at every page right below the menu, board index, the post page
1 x ad at the last post, on the bottom of the page, under child boards
Title: Re: Ad Management mod
Post by: vbgamer45 on January 30, 2010, 07:01:46 PM
Ok hmm can you attach your themes/default/Display.template.php file?
Title: Re: Ad Management mod
Post by: Win_XP on January 30, 2010, 07:06:49 PM
Here is :)
Title: Re: Ad Management mod
Post by: vbgamer45 on January 30, 2010, 07:17:07 PM
Next question do you have any other mods installed?

What happens when you disable "1 x ad at the last post, on the bottom of the page, under child boards"
Ad at the last post
Title: Re: Ad Management mod
Post by: Win_XP on January 30, 2010, 07:27:34 PM
No, I don't have any other mods installed, and nothing happens when ads are disabled :)
Title: Re: Ad Management mod
Post by: WhiteJC on February 01, 2010, 11:55:42 AM
I've installed Ad Management on SMF 1.1.11

I've got the "Ad Management" link in the left hand table of the Admin area that shows...
http://www.friendsoffulham.com/forum/index.php?action=admod

however, when I click on this I'm taken back to the index page (drops out of the admin area)

I guess I've mis-coded one of the files, any ideas where I should check?
Title: Re: Ad Management mod
Post by: vbgamer45 on February 01, 2010, 12:12:06 PM
If you manually installed it you missed the edit in the root of your forum in the index.php file
Title: Re: Ad Management mod
Post by: WhiteJC on February 01, 2010, 02:01:16 PM
Quote from: vbgamer45 on February 01, 2010, 12:12:06 PM
If you manually installed it you missed the edit in the root of your forum in the index.php file

that was it, thanks
Title: Re: Ad Management mod
Post by: vbgamer45 on February 01, 2010, 02:34:32 PM
Glad you got it working!
Title: Re: Ad Management mod
Post by: JackWise on February 01, 2010, 07:22:59 PM
Quote from: JackWise on January 05, 2010, 01:06:25 PM
Quote from: JackWise on January 05, 2010, 12:20:36 PM
Quote from: Arantor on January 05, 2010, 11:53:48 AM
You can only upgrade to that if you are going to use SMF 2.0 RC2. In any case when you upgrade the mod's code will be removed.

Arantor,
Witch version can I use to upgrade ?


Hi,
I removed the previous version, and installed ad_mod_v2-3-1_SMF_v1-1-x.zip.

I have a problem that I had with the other version.
I want to delete an ad, but the delete button don't delete it.
Were are the ads stored ? can I manually delete it ?


I have a question since January ,5.
Do anyone help me please ??

Thanks,
JW
Title: Re: Ad Management mod
Post by: vbgamer45 on February 01, 2010, 07:23:55 PM
The ads are stored in the database in the smf_ads table for your smf forum.
Title: Re: Ad Management mod
Post by: Brian Watts on February 02, 2010, 03:58:46 AM
I am trying to have three ads on bottom of page and enter code for the 3 separate ads with "left"  , "center"  , "right" placements but it only shows ad to "right" without left and center ads?

Is this possible and I am not coded correctly? 

Or is this not possible?

Love the mod thanks
Title: Re: Ad Management mod
Post by: JackWise on February 02, 2010, 09:26:11 AM
Quote from: vbgamer45 on February 01, 2010, 07:23:55 PM
The ads are stored in the database in the smf_ads table for your smf forum.

Can you teach me how to create a batch file to delete lines in the table ?
I can't modify/delete the second line by admin panel.
The buttons save/delete don't work for the second record.
Regards,
JW
Title: Re: Ad Management mod
Post by: vbgamer45 on February 02, 2010, 09:34:00 AM
A batch file won't work you would need to create a php script if you want to do it manually. But your hosting provider should have a tool called phpMyAdmin which will allow you to access your database and delete the records that are needed.
Title: Re: Ad Management mod
Post by: JackWise on February 02, 2010, 09:51:40 AM
I'm not an expert so I'm afraid of drop all...

But thanks anyway.

JW
Title: Re: Ad Management mod
Post by: willclickforfood on February 03, 2010, 04:15:49 PM
Hello people,

I need help with my forum

I would like to add a centered banner rotator or banner ad space in my forum but do not know what code to put or where to put it in my files.

Could anyone suggest or help me with this?

please reply or PM
Title: Re: Ad Management mod
Post by: vbgamer45 on February 03, 2010, 04:22:50 PM
You could use a javascript rotater and put then in for the html code search on google for javascript banner rotater example
Title: Re: Ad Management mod
Post by: TomW on February 03, 2010, 07:01:56 PM
A couple of questions.  I am using SMF ver. 1.1.11 and the parser says 'this mod is not valid for this version', something like that.  Which version should I select ?

Next question:  I want to simply have linked images as skyscrapers on the right, not anything like google ads, etc.  Am I using the correct mod ?
Title: Re: Ad Management mod
Post by: vbgamer45 on February 03, 2010, 07:19:13 PM
Make sure you select the correct file on the modsite then use the parser
If not you can try this parser as well http://resourcez.biz/PackageParser/

Yes this mod works with any html/javascript code so you can create your own space on the right.
Title: Re: Ad Management mod
Post by: TomW on February 03, 2010, 07:25:28 PM
Quote from: vbgamer45 on February 03, 2010, 07:19:13 PM
Make sure you select the correct file on the modsite then use the parser
If not you can try this parser as well http://resourcez.biz/PackageParser/

Yes this mod works with any html/javascript code so you can create your own space on the right.

My stupid mistake on the parser.  Thanks !
Title: Re: Ad Management mod
Post by: vbgamer45 on February 03, 2010, 07:51:28 PM
Glad you got it figured out!
Title: Re: Ad Management mod
Post by: BigDaddyDiesel on February 03, 2010, 10:43:18 PM
Ok, I have a question on something that has driven me batty today.  I installed this mod on SMF 2.0 RC2 and the mod works great for displaying ads to admin and dealers.  But, not only does it not show ads for regular members and guests, there are not any "Enable Ads" settings for the individual user groups so I have not been able to enable them. 

Any hints?

My Site (http://www.syntheticmotorsports.org)

PLEASE feel free to pm me.
Title: Re: Ad Management mod
Post by: vbgamer45 on February 03, 2010, 11:02:06 PM
It is under Permissions -> Modify Each Group -> Modify regular members. Expand all the options inside one of them you should see Enable Ads
Title: Re: Ad Management mod
Post by: BigDaddyDiesel on February 03, 2010, 11:41:38 PM
Ok, there were two views for the permissions, the classic and simple.  With the simple view, (the one I was using without realizing it) the enable ads feature is not an option on any of the drop down selections. 

however, it IS listed in the classic view, so now my issue is solved. 

Thanks for the rapid response.
Title: Re: Ad Management mod
Post by: vbgamer45 on February 03, 2010, 11:43:53 PM
Glad you got it working!
Title: Re: Ad Management mod
Post by: BigDaddyDiesel on February 03, 2010, 11:50:50 PM
Thanks, it is an AWESOME Mod Indeed.  I am having fun playing with it...
Title: Re: Ad Management mod
Post by: wlchase on February 04, 2010, 06:03:29 PM
My cohort posted this erroneously in the "General Discussion" forum (and then I erroneously posted this in the SMF 1.1 Support Forum), and I can't see any clear fix, so I will re-post here. Please feel free to remove Armoredman's post the other forum (and mine in the SMF 1.1 Support Forum).
QuoteI added a line of code to the Main Page ad section, where I had a simple code from PS Clicks, an advertiser. They sent me a simple two line code addition. I added it, and the two lines suddenly became 1000, and the board went bye bye, as in I couldn't see anything between the header and the bottom, all gone. Also gone was the ability to manipulate the code in that ad section. I could access Admin, and see all the others just fine, but the Main Page one had all options below missing. PSCLicks then asked for my log in info,    to "fix it". Yeah, right. I got my board back by tuirning off all ads, but I have some advertisers that may be a little upset at the lost clicks/interest.
Howinthehell do I fix this? I got into running a board due to my interest in the subject matter, not due to being a computer person, so I am half computer illiterate.

What he describes is accurate. The field in the Ad Management package where he had inserted the code is blank, yet the code for the other ad pages look fine. We have not upgraded the package beyond the 2.3 version.

Here are the two sets of code (I'm no PHP coder, so I'm a bit lost).

<!-- TacticalRepublic.com 728x90 Banner Ad Start -->

<style>
#clrtitle {margin:0; padding:0; color: ; font-weight: bold; text-decoration: underline;}
#clrbody {margin:0; padding:0; color: ; font-weight: normal; text-decoration: underline;}
#clrurl {margin:0; padding:0; color: ; font-weight: normal; text-decoration: underline;}
</style>

<script type='text/javascript'><!--//<![CDATA[
   var m3_u = (location.protocol=='https:'?'https://173.203.148.107/www/delivery/ajs.php':'http://173.203.148.107/www/delivery/ajs.php');
   var m3_r = Math.floor(Math.random()*99999999999);
   if (!document.MAX_used) document.MAX_used = ',';
   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
   document.write ("?zoneid=29");
   document.write ('&amp;cb=' + m3_r);
   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
   document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
   document.write ("&amp;loc=" + escape(window.location));
   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
   if (document.context) document.write ("&context=" + escape(document.context));
   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
   document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href='http://173.203.148.107/www/delivery/ck.php?n=a189b210&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://173.203.148.107/www/delivery/avw.php?zoneid=29&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=a189b210' border='0' alt='' /></a></noscript>



<!-- TacticalRepublic.com 728x90 Banner Ad End -->


<!-- TacticalRepublic.com 728x90 Banner Ad Start -->

<style>
#clrtitle {margin:0; padding:0; color: ; font-weight: bold; text-decoration: underline;}
#clrbody {margin:0; padding:0; color: ; font-weight: normal; text-decoration: underline;}
#clrurl {margin:0; padding:0; color: ; font-weight: normal; text-decoration: underline;}
</style>

<script type='text/javascript'><!--//<![CDATA[
   var m3_u = (location.protocol=='https:'?'https://173.203.148.107/www/delivery/ajs.php':'http://173.203.148.107/www/delivery/ajs.php');
   var m3_r = Math.floor(Math.random()*99999999999);
   if (!document.MAX_used) document.MAX_used = ',';
   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
   document.write ("?zoneid=152");
   document.write ('&amp;cb=' + m3_r);
   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
   document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
   document.write ("&amp;loc=" + escape(window.location));
   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
   if (document.context) document.write ("&context=" + escape(document.context));
   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
   document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href='http://173.203.148.107/www/delivery/ck.php?n=aa73ec52&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://173.203.148.107/www/delivery/avw.php?zoneid=152&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=aa73ec52' border='0' alt='' /></a></noscript>


<!-- TacticalRepublic.com 728x90 Banner Ad End -->


Thanks for any help!

Bill (the sysadmin-kinda guy)
Title: Re: Ad Management mod
Post by: vbgamer45 on February 04, 2010, 06:06:29 PM
If you view the source of the page do you see the code for the advertising javascript in that page?

I think the ad code is the issue

<script type='text/javascript'><!--//<![CDATA[
   var m3_u = (location.protocol=='https:'?'https://173.203.148.107/www/delivery/ajs.php':'http://173.203.148.107/www/delivery/ajs.php');
   var m3_r = Math.floor(Math.random()*99999999999);
   if (!document.MAX_used) document.MAX_used = ',';
   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
   document.write ("?zoneid=29");
   document.write ('&amp;cb=' + m3_r);
   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
   document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
   document.write ("&amp;loc=" + escape(window.location));
   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
   if (document.context) document.write ("&context=" + escape(document.context));
   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
   document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href='http://173.203.148.107/www/delivery/ck.php?n=a189b210&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://173.203.148.107/www/delivery/avw.php?zoneid=29&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=a189b210' border='0' alt='' /></a></noscript>

Should be

<script type='text/javascript'><!--//<![CDATA[
   var m3_u = (location.protocol=='https:'?'https://173.203.148.107/www/delivery/ajs.php':'http://173.203.148.107/www/delivery/ajs.php');
   var m3_r = Math.floor(Math.random()*99999999999);
   if (!document.MAX_used) document.MAX_used = ',';
   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
   document.write ("?zoneid=29");
   document.write ('&amp;cb=' + m3_r);
   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
   document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
   document.write ("&amp;loc=" + escape(window.location));
   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
   if (document.context) document.write ("&context=" + escape(document.context));
   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
   document.write ("'><\/scr"+"ipt>");
//]]>-->
</script><noscript><a href='http://173.203.148.107/www/delivery/ck.php?n=a189b210&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://173.203.148.107/www/delivery/avw.php?zoneid=29&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=a189b210' border='0' alt='' /></a></noscript>


The html comment is overriding the </script> tag
Title: Re: Ad Management mod
Post by: wlchase on February 04, 2010, 06:38:07 PM
Is the ad code stored in the Forum software, or in the database? Looking in the Ad Management console, the code for the ad in question is completely missing.(!?)

Thanks!
Bill
Title: Re: Ad Management mod
Post by: vbgamer45 on February 04, 2010, 06:40:57 PM
Stored in the database by default in the smf_ads database of your forum.
Title: Re: Ad Management mod
Post by: wlchase on February 04, 2010, 06:49:58 PM
OK, I guess then since I can't see any code from the console, I need to restore that db from a backup. Oh boy! Learning all the time!

Thanks!
Bill
Title: Re: Ad Management mod
Post by: vbgamer45 on February 04, 2010, 06:52:32 PM
I wouldn't restore the whole db just that table
Title: Re: Ad Management mod
Post by: wlchase on February 04, 2010, 07:17:25 PM
If you happen to have a link to a reference here for that, I'd be exceeding grateful! If not, don't sweat, I'll dig around on the Interwebs for an answer.

Much appreciated!
Bill
Title: Re: Ad Management mod
Post by: playdiune on February 04, 2010, 09:41:07 PM
hello,

is it possible to upgrade to the new version manualy ? i.e, if i try to uninstall the current version (2.3.1) i get errors in all important files. So maybe i can make the changes manualy, file by file. will it be a hard work ?

thanks
Title: Re: Ad Management mod
Post by: vbgamer45 on February 04, 2010, 09:45:39 PM
Easy to do it was just ad management file changes not SMF source
Title: Re: Ad Management mod
Post by: playdiune on February 04, 2010, 09:52:40 PM
so what files do i have to change ?

thanks
Title: Re: Ad Management mod
Post by: vbgamer45 on February 04, 2010, 09:56:32 PM
I would just update all the ad management files just copy them from the zip
Title: Re: Ad Management mod
Post by: punjablovers on February 05, 2010, 03:51:53 AM
Hi there,

While discussing for some help for add management i am forwarded here, i am posting a like of my previous thread where i was searching for help:

http://www.simplemachines.org/community/index.php?topic=364117.0


I am sending you two links which tell what i want to say actually, 
1st shows how i want to show my adds, this is another forum.
funfani.com/hilarious-jokes/understanding-beloved-women-t14830.0.html [nonactive]

2nd,
as you told me with attached image it show add like this:
This is mine::: punjablovers.com/forum/latest-wallpapers/avtar-movie-wallpapers/ [nonactive]
look at the end of first post where adds are showing

i want to do like the first one...

Cant someone help me???

Title: Re: Ad Management mod
Post by: vbgamer45 on February 05, 2010, 10:00:21 AM
1st link does not work.

The ad magement mod supports both html/javascript/php which you can use to customize the look of your advertisment.
Title: Re: Ad Management mod
Post by: wlchase on February 05, 2010, 11:25:49 AM
Me again!  ;D

So, how about if I remove the current version (2.3) and then delete the smf_ads table in the MySQL db, then install the new version?

I realize I'd have to re-do all my ads, but that may be quicker than me learning how to restore a table.

TIA!
Bill
Title: Re: Ad Management mod
Post by: vbgamer45 on February 05, 2010, 11:42:02 AM
That would work the best. Uninstall the mod. Delete the smf_ads table then install it again
Title: Re: Ad Management mod
Post by: wlchase on February 05, 2010, 12:42:18 PM
Would you mind sending the manual install instructions from version 2.3 for SMF 1.1.1? I got an error uninstalling (./Sources/Subs.php fails) and need to manually correct things.

Thanks!
Bill
Title: Re: Ad Management mod
Post by: KensonPlays on February 05, 2010, 02:25:42 PM
Quote from: vbgamer45 on February 03, 2010, 04:22:50 PM
You could use a javascript rotater and put then in for the html code search on google for javascript banner rotater example
Isn't there a "Header Rotater" mod? That should work!
Title: Re: Ad Management mod
Post by: vbgamer45 on February 05, 2010, 04:28:01 PM
Maybe but I don't think it would tie in with ad management.
Title: Re: Ad Management mod
Post by: wlchase on February 05, 2010, 05:11:30 PM
Quote from: wlchase on February 05, 2010, 12:42:18 PM
Would you mind sending the manual install instructions from version 2.3 for SMF 1.1.1? I got an error uninstalling (./Sources/Subs.php fails) and need to manually correct things.

Thanks!
Bill

Nevermind... I found and corrected the error in ./Sources/Subs.php and it uninstalled OK.

Thanks!
Bill
Title: Re: Ad Management mod
Post by: vbgamer45 on February 05, 2010, 05:31:24 PM
Glad you got it!
Title: Re: Ad Management mod
Post by: HollowbeadRanch on February 05, 2010, 10:52:15 PM
Well we got it added where it will work!! Thanks everyone!!!!

I do have one more question.... I was wanting to put a few ads side by side at the top... is there a way i can do this?  When I add the ads, then select "Display ads on every page right below the menu", all it does is alternate the ads.  One time it will be one of them and the next it will be the other one in the same spot.  But I want them side by side.  Any advice?
Title: Re: Ad Management mod
Post by: vbgamer45 on February 05, 2010, 10:53:42 PM
What type of ad?
Title: Re: Ad Management mod
Post by: HollowbeadRanch on February 05, 2010, 11:01:12 PM
A small 150X150 ad or smaller.  Here is the info I was using to test it out to see if it would work

<a href="http://www.goatfarmcentral.com/"><img src="http://i162.photobucket.com/albums/t247/BrandilynLeigh/BannerforGoatFinder150x150-1.gif" width="150" height="150" alt="Test" /><br />Test</a>

Is there something else I should be adding to the code?
Title: Re: Ad Management mod
Post by: vbgamer45 on February 05, 2010, 11:08:53 PM
You could probably use an html to do that to include it side by side


<table>
<tr>
<td>ad one here</td>
<td>ad two here</td>
</tr>
</table>
Title: Re: Ad Management mod
Post by: HollowbeadRanch on February 05, 2010, 11:11:13 PM
k!  Thank you! We will work on that!! ;D
Title: Re: Ad Management mod
Post by: victorsr on February 07, 2010, 09:33:50 AM
I have problems also with SMF 1.1.1, More Style Theme, install successes and Enable ads but don`t show again   .
Please help   :-\
Title: Re: Ad Management mod
Post by: wlchase on February 07, 2010, 10:49:44 AM
Just want to say a huge "Thanks!" to vbgamer45 for helping solve our problem, being patient, and for the package in the first place.

Bill
Title: Re: Ad Management mod
Post by: playdiune on February 08, 2010, 09:10:42 AM
hello Vbgamer45

I want to ADD a google AD just inside the first topic ( not after as an answer ). I want to create an ADD with backgound´s forum color and put it just after the last line of the first topic.

like this...

-----------------------------
-   bla  first topic  bla   -
-   bla  first topic  bla   -
-                                  -
-  google AD here        -
-----------------------------

can i do this. i can even, if you tell me how, to add the code manualy.

thanks
Title: Re: Ad Management mod
Post by: kicky on February 08, 2010, 09:32:38 PM
Hi,

I install this nice mod in my SMF 1.1.11 and work properly.

And now I want to have the ad as attached picture which the position is in yellow box, can I do it with this mod?
How?

Thank you in advance
Title: Re: Ad Management mod
Post by: vbgamer45 on February 08, 2010, 09:42:33 PM
You would need to add the ad code in the boardindex.template.php to do that
Title: Re: Ad Management mod
Post by: kicky on February 08, 2010, 09:54:20 PM
Quote from: vbgamer45 on February 08, 2010, 09:42:33 PM
You would need to add the ad code in the boardindex.template.php to do that

vbgamer45, thanks for advice..
what kind of ad code?
will you help me?
and where I must put the code in BoardIndex.template.php?

thanks again
Title: Re: Ad Management mod
Post by: playdiune on February 09, 2010, 07:10:47 PM
I cant make visible more than 3 ADS on each page. Is this normal ?
Title: Re: Ad Management mod
Post by: Arantor on February 10, 2010, 04:20:25 AM
If they're Google Adsense, you're only allowed 3 of their ads per page as per the TOS.
Title: Re: Ad Management mod
Post by: willclickforfood on February 13, 2010, 06:15:31 AM
Can someone please do this for me as I have tried twice now and still running into problems. Please reply here or PM thank you.
Title: Re: Ad Management mod
Post by: irtiza104 on February 13, 2010, 12:47:02 PM
I am using OverviewLight theme. If i want to manually install this mod, will i have to edit the files of this theme (overviewlight folder) or the files from the default theme (default folder)?

moreover, where am i supposed to upload the install.php  file (it says, this file should be able to execute standalone)

what am i supposed to do. please help.
Title: Re: Ad Management mod
Post by: vbgamer45 on February 13, 2010, 12:49:20 PM
Install it using package manager. Then apply the theme edits to your custom theme.
Title: Re: Ad Management mod
Post by: irtiza104 on February 13, 2010, 01:04:21 PM
i get error massages (internal server error) when i try to install using package manager. thats y i am trying to install this manually. where do i upload install.php?
Title: Re: Ad Management mod
Post by: vbgamer45 on February 13, 2010, 01:09:12 PM
i think root of forum if it supports SSI they may work
Title: Re: Ad Management mod
Post by: willclickforfood on February 14, 2010, 01:58:47 AM
Can anyone do this for me?
Title: Re: Ad Management mod
Post by: willclickforfood on February 14, 2010, 01:59:39 AM
Anyone help me please? I need someone to help me do this, I would like to add this to my forum but am having problems adding it.
Title: Re: Ad Management mod
Post by: Arantor on February 14, 2010, 07:49:48 AM
Quote from: willclickforfood on February 14, 2010, 01:59:39 AM
Anyone help me please? I need someone to help me do this, I would like to add this to my forum but am having problems adding it.

Posting a new post less than a minute later won't get it solved any faster. Hopefully the author can reply shortly.
Title: Re: Ad Management mod
Post by: vbgamer45 on February 14, 2010, 10:36:00 AM
What problems are you having?
Title: Re: Ad Management mod
Post by: HollowbeadRanch on February 14, 2010, 11:45:13 AM
Quote from: vbgamer45 on February 05, 2010, 11:08:53 PM
You could probably use an html to do that to include it side by side


<table>
<tr>
<td>ad one here</td>
<td>ad two here</td>
</tr>
</table>


I wanted to say THANK YOU again for helping me with this mod!  I love it!  And will be adding the ads to the forum this coming week!  I also wanted to let everyone know that using the table html code DOES work!  Just incase anyone else was wanting to place ads side by side like that ;)  Thank you again for all the help! :D
Title: Re: Ad Management mod
Post by: vbgamer45 on February 14, 2010, 04:42:32 PM
Glad it helped!
Title: Re: Ad Management mod
Post by: motivaras_kamlesh on February 14, 2010, 11:30:54 PM
Hi,
I want suggestion for my forum
I have installed  Ad Management mod 2.6.3.1, I have blackrain version 1.1, custom theme though....
I have paste html code into it.but still I am unable to view ads,
sometime I am able to see ads into Admin login but that too in center of forum, I want banner ads sid by side of forum...
I have made language setting to English....but still not able to view ads..
Title: Re: Ad Management mod
Post by: vbgamer45 on February 14, 2010, 11:32:09 PM
You have to enable ads for membergroups under Admin -> Permissions
Title: Re: Ad Management mod
Post by: javierjp on February 15, 2010, 09:11:20 AM
Hi vbgamer45, exist any way to set different ads for different membergroup? something like a permision system to filter ads per membergroup basis.

grettings
Title: Re: Ad Management mod
Post by: motivaras_kamlesh on February 15, 2010, 12:00:54 PM
Thanks vbgamer45 for your help.......

Truly appreciate!!!!!!!!!!!!!!!
Title: Re: Ad Management mod
Post by: TomW on February 15, 2010, 01:38:34 PM
Is there a way to place the ads next to the forum in skyscraper mode ?  My forum width is 1024 pixels; the ad is to the far right of the screen.  TIA
Title: Re: Ad Management mod
Post by: TheListener on February 16, 2010, 05:47:01 PM
Posted the following into the 2.0 support thread as I am not sure which mod affects the error.

http://www.simplemachines.org/community/index.php?topic=366128.0
Title: Re: Ad Management mod
Post by: willclickforfood on February 18, 2010, 02:23:07 AM
Quote from: vbgamer45 on February 14, 2010, 10:36:00 AM
What problems are you having?

Problems with integrating it to my forum, I can pay $1 paypal for someone to upload it into my site?
Title: Re: Ad Management mod
Post by: vbgamer45 on February 18, 2010, 11:10:19 AM
I would post in the help wanted boards maybe someone will do it.
Title: Re: Ad Management mod
Post by: motivaras_kamlesh on February 20, 2010, 02:00:07 AM
Hi vbgamer45,

This is regards to my forum I am using blackrain version 1.1. I have pasted html code into forum. It was 728 x 90 banner
Earlier it was working fine
after two days it was disappear..Request you to assist

(http://i807.photobucket.com/albums/yy358/webmaster_hottestcurry/AdProfile.jpg)

Its only shows "your AD here"
Please see the image
regards,
Title: Re: Ad Management mod
Post by: abhishek_del on February 20, 2010, 02:38:39 AM
Hello,

When would be the support for SMF RC2.0 would be available. I have been waiting for a while.
Title: Re: Ad Management mod
Post by: vbgamer45 on February 20, 2010, 11:00:17 AM
RC2 is already supported.
Title: Re: Ad Management mod
Post by: motivaras_kamlesh on February 21, 2010, 03:08:03 AM
Hi,

I want to make banner on side by side of forum..please let me know how to do..
what code need to add??

request to assist

thanks
Title: Re: Ad Management mod
Post by: derby on February 21, 2010, 06:09:57 AM
i have installed ads management my ads are showing but i don't know how to make it show in as post and other parts of the forum?
Title: Re: Ad Management mod
Post by: vbgamer45 on February 21, 2010, 10:33:05 AM
There should be a setting to show as post under the  main settings page.
For each ad you just check what location you wan to show it under.
Title: Re: Ad Management mod
Post by: motivaras_kamlesh on February 21, 2010, 10:39:07 AM
Hi,

I want one support from you, I got adbrite code below can u please check and please let me know what is an error..because i am only can see iframe in my pag. I am using blackrain version 1.1 "cutmo theme" SMFADS v2.3. Below is html code.Request to help..do i need to change in template php

<!-- Begin: Black Label Ads, Generated: 2010-02-21 10:35:58  -->
<script type="text/javascript">
var AdBrite_Title_Color = '0000FF';
var AdBrite_Text_Color = '000000';
var AdBrite_Background_Color = 'FFFFFF';
var AdBrite_Border_Color = 'CCCCCC';
var AdBrite_URL_Color = '008000';
try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
</script>
<span style="white-space:nowrap;"><script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1529329&zs=3732385f3930&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>
<a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=1529329&afsid=55544"><img src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-leaderboard.gif" style="background-color:#CCCCCC;border:none;padding:0;margin:0;" alt="Your Ad Here" width="14" height="90" border="0" /></a></span>
<!-- End: Black Label Ads -->
Title: Re: Ad Management mod
Post by: vbgamer45 on February 21, 2010, 10:54:32 AM
Code should be ok if you copied if from an ad network just make sure you choose an html block and not php for the ad
Title: Re: Ad Management mod
Post by: derby on February 21, 2010, 04:05:09 PM
Quote from: vbgamer45 on February 21, 2010, 10:33:05 AM
There should be a setting to show as post under the  main settings page.
For each ad you just check what location you wan to show it under.
I have done that..it is showing @ the bottom of the page but does not and cannot show on any other part of the forum even if i checked it on the Ads Management Settings
Title: Re: Ad Management mod
Post by: vbgamer45 on February 21, 2010, 04:07:27 PM
If you are using a custom theme that theme will need to be modified to include all the ad spots as well.
Title: Re: Ad Management mod
Post by: derby on February 21, 2010, 04:10:32 PM
Quote from: vbgamer45 on February 21, 2010, 04:07:27 PM
If you are using a custom theme that theme will need to be modified to include all the ad spots as well.
im using the smf default theme(core) On RC2
Title: Re: Ad Management mod
Post by: vbgamer45 on February 21, 2010, 04:13:12 PM
Core isn't currently supported yet only curve I believe so the edits will need to be made to that theme as well.
Title: Re: Ad Management mod
Post by: irtiza104 on February 23, 2010, 05:25:08 PM
I can not set up the ads. the instructions are hard to understand for me. do i put just goodle publisher id or the total code?

i want to have:
1. a spyscraper at the home page at the right of the forum
2. A horizontal 468*60 ad on the home page on top
3. want to have ads on the main topic posts or after the topic post (1st post)

what should i do? please help.

and i use overvireLight theme. do i need to install this mod manually to this theme? i have successfully installed it via package manage. I tried to install it in this theme manually but couldnt find the code i am supposed to replace in index.template.php. what sould i do?

if this helps:
(http://i964.photobucket.com/albums/ae128/irtiza104/untitled-2.jpg)
Title: Re: Ad Management mod
Post by: vbgamer45 on February 23, 2010, 05:26:11 PM
You put the total ad code. For custom themes you will need to manually add the add management code to that theme.
Title: Re: Ad Management mod
Post by: 0917725929a on February 24, 2010, 07:05:59 PM
Quote from: vbgamer45 on February 23, 2010, 05:26:11 PM
You put the total ad code. For custom themes you will need to manually add the add management code to that theme.


Hello,

Im french and I speak a very bad english, sorry in advance. I've a custom theme on my forum (smf 1.1.11) (this theme (http://custom.simplemachines.org/themes/index.php?lemma=586)) and I don't know PHP. Can you edit the theme's files and ad the ad management code ?

I thank you in advance same you can't

Regards

EDIT : I use the 1.1.11 SMF version.
Title: Re: Ad Management mod
Post by: 0917725929a on February 25, 2010, 05:46:57 AM
Please help me it's very urgent :(
Title: Re: Ad Management mod
Post by: vbgamer45 on February 25, 2010, 09:07:55 AM
I can add ad management to a theme but that would be $15 to do the theme for you.
Otherwise you can follow the edits via the mod site and apply them to your custom theme.
Title: Re: Ad Management mod
Post by: ShowMeYourStyle on February 25, 2010, 11:02:27 AM
Hi there,

thats a kewl mod for sure!

however i got a problem with my custom them, whe installing it cant edit index.template.php file, i tried doing it manually spent few hours on it but still :/ can you help me?

attached index.template.php file

Title: Re: Ad Management mod
Post by: JeremyC87 on February 26, 2010, 04:36:00 AM
I am having issues with ad placements not showing up and I have come across this
Quote from: vbgamer45 on February 21, 2010, 04:07:27 PM
If you are using a custom theme that theme will need to be modified to include all the ad spots as well.
By this I am assuming you can achieve this by doing this
Quote from: vbgamer45 on February 25, 2010, 09:07:55 AM
You can follow the edits via the mod site and apply them to your custom theme.
Then by this I am again assuming you mean this site (http://www.smfads.com/forums/index.php?topic=1930.0) but this doesn't apply to me as I'm am using 2.0rc2 and the theme is impulse2.

I've actually found this (http://www.smfads.com/forums/index.php?topic=2648.0) but it wasn't much help
Title: Re: Ad Management mod
Post by: DUNBAR on February 26, 2010, 09:00:39 PM
Quote from: vbgamer45 on February 25, 2010, 09:07:55 AM
I can add ad management to a theme but that would be $15 to do the theme for you.
Otherwise you can follow the edits via the mod site and apply them to your custom theme.



I was able to d/l the ad management mod but cannot find it  in my admin panel anywhere, other  than the packages themselves.

I just switched from 1.1.11 to the   2.0 and having difficulty figuring out the admin panel.
Title: Re: Ad Management mod
Post by: vbgamer45 on February 26, 2010, 09:45:08 PM
You will need to download ad management for SMF 2.0 then upload/install via the package manager.
Title: Re: Ad Management mod
Post by: waruna on February 27, 2010, 05:58:27 AM
Hye guys.

Can I use this mod to place an ads only at portal index, not board index? I'm using SMF2.0 RC2 and Simple Portal.

Thanks in advance
Title: Re: Ad Management mod
Post by: vbgamer45 on February 27, 2010, 10:14:55 AM
Not at this time. This mod only works on predetermined spots. I have another paid addon that allows custom spots.

Another option would be to take the code on the board index and added to the portal index page and that may do the same thing hard to say though depending on what portal is used.
Title: Re: Ad Management mod
Post by: stog on February 27, 2010, 07:34:54 PM
hi
i use and appreciate Ad Management mod in several forums 1.1.11 with TP  ..to one of which i have just added the chess mod, but  there is a javascript in chess that clashes with a javascript i use in the welcome area ad for randomising info/ads, and i want to try and ensure this ad doesn't load when action=chess.

can i add a line of code to that effect in the index template? and if so could someone confirm its syntax and position.. many thx

if($context['current_action'] != 'chess')
    echo '


somewhere before here

//Display ads on the top of the page
   $ads = show_topofpageAds();   



reference paracelsus post http://www.simplemachines.org/community/index.php?topic=225742.msg1463771#msg1463771

or is there  another way of achieving? many thx (great mod)
Title: Re: Ad Management mod
Post by: vbgamer45 on February 27, 2010, 07:42:51 PM
You could do something like

if (@$_REQUSEST['action'] != 'chess')
{

}
Title: Re: Ad Management mod
Post by: stog on February 27, 2010, 08:06:39 PM
thx vb -- well quick reply!!

but as i am not proficient in php = does it go  before here in the index template?

//Display ads on the top of the page
   $ads = show_topofpageAds(); 

many thx for your time
Title: Re: Ad Management mod
Post by: vbgamer45 on February 27, 2010, 08:14:35 PM
Put
$ads = show_topofpageAds(); 
in the middle of the { }
Title: Re: Ad Management mod
Post by: stog on February 27, 2010, 08:17:10 PM
wonderful thx! now i begin to learn! (ps can u recommend a good link to php phrasing or a good tutorial link?)

thx again
Title: Re: Ad Management mod
Post by: vbgamer45 on February 27, 2010, 08:17:48 PM
http://www.w3schools.com/php/default.asp
Title: Re: Ad Management mod
Post by: stog on February 27, 2010, 08:43:33 PM
great! (didn't work at first, but discovered welcome ad further down....(not 'topofpage' ad but now i see how to modify a little -- ty

//Welcome Ads
               if($context['current_action'] != 'chess')
{
                     $ads = show_welcomeAds();}



thx again!

www.fibsboard.com
Title: Re: Ad Management mod
Post by: MetalUprising on February 28, 2010, 08:06:37 AM
H. First off, thanks for a great mod. Now my question, this mod works perfectly with the default theme but I recently changed to Black Mist and now the ads will appear everywhere I choose accept the index page (which is where I REALLY want them) even when I have " Display ads on board index" checked. When you go to a subforum they appear below the welcome message like I want but not at all on the index page. This is bad for sponsors who want to be in the limelight of the main page! What do I need to change to get the ads to appear on the index page of the forum?
Title: Re: Ad Management mod
Post by: vbgamer45 on February 28, 2010, 02:51:42 PM
You would need to apply the edits to the index.template.php of your custom theme manually. Check the modsite for the parse instructions then just do edits for the index.template.php
Title: Re: Ad Management mod
Post by: JeremyC87 on February 28, 2010, 10:11:14 PM
I am having issues with ad placements not showing up and I have come across this
Quote from: vbgamer45 on February 21, 2010, 04:07:27 PM
If you are using a custom theme that theme will need to be modified to include all the ad spots as well.
By this I am assuming you can achieve this by doing this
Quote from: vbgamer45 on February 25, 2010, 09:07:55 AM
You can follow the edits via the mod site and apply them to your custom theme.
Then by this I am again assuming you mean this site (http://www.smfads.com/forums/index.php?topic=1930.0) but this doesn't apply to me as I'm am using 2.0rc2 and the theme is impulse2.

I've actually found this (http://www.smfads.com/forums/index.php?topic=2648.0) but it wasn't much help
Title: Re: Ad Management mod
Post by: vbgamer45 on February 28, 2010, 10:16:24 PM
Theme edits are found here
http://custom.simplemachines.org/mods/index.php?mod=255

Using the main SMF site itself
Title: Re: Ad Management mod
Post by: JeremyC87 on February 28, 2010, 10:18:27 PM
do i just parse Manual Install instructions?
Title: Re: Ad Management mod
Post by: vbgamer45 on February 28, 2010, 10:22:18 PM
Yes and just do the edits for theme.
Title: Re: Ad Management mod
Post by: JeremyC87 on February 28, 2010, 10:25:27 PM
ok and thank you so much for a fast reply
Title: Re: Ad Management mod
Post by: aussieherps on February 28, 2010, 11:03:05 PM
Hi
Using 2.0rc2 and my ads are not showing in the welcome area when that is the setting.
Any help would be great.

Todd
Title: Re: Ad Management mod
Post by: JeremyC87 on February 28, 2010, 11:26:55 PM
when i try to find <div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', ' or <div id="content_section"><div class="frame">
<div id="main_content_section">';
or echo '
</div>
</div></div>';
in my theme index.template.php its not there
and in Display.template.php it does not find
// Get all the messages...
while ($message = $context['get_message']())
{

or
}

echo '
</form>
</div>
<a id="lastPost"></a>';

also there is no BoardIndex.template.php or MessageIndex.template.php for my theme
Title: Re: Ad Management mod
Post by: MetalUprising on March 01, 2010, 12:10:04 AM
Same here, when I try to use the parse instructions none of what it says to look for is actually there in Black Mist. Im lost and I want to use that theme AND have ad management. :(
Title: Re: Ad Management mod
Post by: Bigguy on March 01, 2010, 03:32:56 PM
Compare the default index.template with your custom one and ad the ad mod code around the same area and experiment a bit.
Title: Re: Ad Management mod
Post by: derby on March 02, 2010, 01:50:21 PM
Quote from: vbgamer45 on February 21, 2010, 04:13:12 PM
Core isn't currently supported yet only curve I believe so the edits will need to be made to that theme as well.
sori i meant curve
Title: Re: Ad Management mod
Post by: vika.vedy on March 04, 2010, 03:27:20 AM
Quote from: aussieherps on February 28, 2010, 11:03:05 PM
Hi
Using 2.0rc2 and my ads are not showing in the welcome area when that is the setting.
Any help would be great.

Todd

Yes, I even didn't see any code in templates for displaying «Welcome Ads» section in 2RC2 version of the mod.
Probably, we should add it manually to appropriate place
Title: Re: Ad Management mod
Post by: vbgamer45 on March 04, 2010, 11:47:24 AM
If you use a custom theme you will need to edit the theme.
Title: Re: Ad Management mod
Post by: aussieherps on March 04, 2010, 06:35:44 PM
If using custom theme would have added which theme, but using default theme.

@vika.vedy Would not know what I am looking for or where to add.
Title: Re: Ad Management mod
Post by: irtiza104 on March 07, 2010, 11:57:00 AM
I installed it in the default theme without any problem. but i can not install it in the custom theme (overviewlight) because i can not find the codes required in the index.template.php

the codes which are missing

1. <div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '

2. template_menu();

3. <div id="content_section"><div class="frame">
      <div id="main_content_section">';

4. echo '
      </div>
   </div></div>';

That means i can not find any of the codes in index.template.php.

What should i do?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 07, 2010, 01:49:29 PM
Try to find a similar area on your theme code that is similar
Title: Re: Ad Management mod
Post by: smp420 on March 07, 2010, 02:08:00 PM
Quote from: irtiza104 on March 07, 2010, 11:57:00 AM
I installed it in the default theme without any problem. but i can not install it in the custom theme (overviewlight) because i can not find the codes required in the index.template.php

the codes which are missing

1. <div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '

2. template_menu();

3. <div id="content_section"><div class="frame">
      <div id="main_content_section">';

4. echo '
      </div>
   </div></div>';

That means i can not find any of the codes in index.template.php.

What should i do?


Don't search for all of the code just search for parts of it and it even helps if you look at where that is on the default theme. It wont be on the same line or anything just compare the code around it.
Title: Re: Ad Management mod
Post by: irtiza104 on March 08, 2010, 01:31:42 AM
I tried to search small parts of them. but i couldnt find them either. What should i do? i am not good at php or html coding...

attaching the index.template.php if that helps.

Title: Re: Ad Management mod
Post by: henryjesus on March 08, 2010, 09:46:54 AM
Im using RC2, when I activate the ad, it shows up twice , on the reports , it generates the ads / shows the ads two times, anyone having this problem ? I'm trying another theme to see if its still the same.
Title: Re: Ad Management mod
Post by: Arantor on March 08, 2010, 09:47:40 AM
henryjesus: Generally means you pressed the install button twice.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 08, 2010, 08:03:14 PM
Updated for SMF 2.0 RC3!
Title: Re: Ad Management mod
Post by: smp420 on March 08, 2010, 08:12:43 PM
That was fast.
Title: Re: Ad Management mod
Post by: Arantor on March 08, 2010, 08:13:40 PM
smp420: vbgamer had access to the code and would have been able to test them beforehand, but most mods will work just fine from RC2 -> RC3.
Title: Re: Ad Management mod
Post by: smp420 on March 08, 2010, 08:14:40 PM
Didnt think about that but its good that this mod is actually being supported now.
Title: Re: Ad Management mod
Post by: Kat9119 on March 08, 2010, 09:50:48 PM
I was trying to restore my database via phpmyadmin. I imported the database and got the following error:

QuoteError

SQL query:

-- -- Dumping data for table `smf_ads` -- INSERT INTO `smf_ads` (`ADS_ID`, `NAME`, `CONTENT`, `BOARDS`, `POSTS`, `CATEGORY`, `HITS`, `TYPE`, `show_index`, `show_board`, `show_threadindex`, `show_lastpost`, `show_thread`, `show_bottom`, `show_welcome`, `show_topofpage`, `show_towerright`, `show_towerleft`, `show_betweencategories`, `show_underchildren`) VALUES (1, 'google', '
\r\n
', '', '1,8', '', 586025, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (10, 'Google Txt & Img', '

So...the import stops and I can't continue. There are dropped tables in this that I need very badly. Can anyone help with this? I have no idea what to do...

I have SMF 1.1.11
Title: Re: Ad Management mod
Post by: smp420 on March 08, 2010, 10:46:23 PM
Quote from: irtiza104 on March 08, 2010, 01:31:42 AM
I tried to search small parts of them. but i couldnt find them either. What should i do? i am not good at php or html coding...

attaching the index.template.php if that helps.
Try this if it gives you any errors let me know where and use the one you attached.
Title: Re: Ad Management mod
Post by: irtiza104 on March 09, 2010, 01:04:03 AM
Can anyone please look at my problem mentioned above?
Title: Re: Ad Management mod
Post by: smp420 on March 09, 2010, 01:20:56 AM
/\  Read the post I made right before yours. /\
l                                                                     l
Title: Re: Ad Management mod
Post by: irtiza104 on March 09, 2010, 01:37:20 AM
Opps! thanks.

BTW, is it the index.template file of my theme...edited? 
Title: Re: Ad Management mod
Post by: vika.vedy on March 09, 2010, 04:42:42 AM
Quote from: vbgamer45 on March 08, 2010, 08:03:14 PM
Updated for SMF 2.0 RC3!

Still don't see code for including «Welcome Ads» into templates in install.xml file.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 09, 2010, 10:11:41 AM
Welcome ads? I don't think that is supported
Title: Re: Ad Management mod
Post by: smp420 on March 09, 2010, 10:40:57 AM
Quote from: irtiza104 on March 09, 2010, 01:37:20 AM
Opps! thanks.

BTW, is it the index.template file of my theme...edited?
Yes it is.
Title: Re: Ad Management mod
Post by: shadowcrews on March 09, 2010, 09:22:06 PM
where is the version 2.6.3.1 ? i only see 2.6.3.1 in mod download page
Title: Re: Ad Management mod
Post by: vbgamer45 on March 09, 2010, 09:28:24 PM
? That should be it the latest version.
Title: Re: Ad Management mod
Post by: vika.vedy on March 10, 2010, 09:49:34 AM
Quote from: vbgamer45 on March 09, 2010, 10:11:41 AM
Welcome ads? I don't think that is supported

But  included files LoadAds.php and Ads.php both has functions and variables related to "welcome ads":

Ads.php
186: //Display this ad in the welcome area
187: if (isset($_POST['show_welcome']))
188: $adsUpdate[] = 'show_welcome = ' . ($_POST['show_welcome'] ? '1' : '0');

295: $adsUpdate[] = 'show_welcome = ' . (empty($_POST['show_welcome']) ? '0' : '1');

LoadAds.php
45: 'show_welcome' => $row['show_welcome'],
99: function show_welcomeAds()
100: {
101: return showAds('show_welcome');
102: }
Title: Re: Ad Management mod
Post by: smp420 on March 10, 2010, 05:57:11 PM
That was one of the options but Jerm couln't figure out how to make it work in Curve.
Title: Re: Ad Management mod
Post by: tonnybarros on March 10, 2010, 06:54:21 PM
Hello, I upgraded to version RC3 and installed the new version of Ad Management, and everything works at the advertisements in the area "Welcome", all others work perfectly.

Use the theme Curve, but I noticed that when installing all the other issues was in error, so just installed the theme Curve.

I'm from Brazil and translate poel Google
Title: Re: Ad Management mod
Post by: irtiza104 on March 11, 2010, 08:58:59 AM
How can i change the background color of the ads displayed in between posts? default is pink.

(http://i964.photobucket.com/albums/ae128/irtiza104/untitled-4.jpg)
Title: Re: Ad Management mod
Post by: hartiberlin on March 11, 2010, 11:44:54 AM
Yes, why did you change the background color for the ads ?

How can it be set as if it is a normal posting ?

Many thanks.

Regards, Stefan.
Title: Re: Ad Management mod
Post by: irtiza104 on March 12, 2010, 03:28:18 AM
How to change the background/surrounding color of the ads displayed in between posts?
Title: Re: Ad Management mod
Post by: Stüldt Håjt on March 12, 2010, 05:22:13 AM
I have some suggestions for new features:

* I can specify which boards an ad shouldn't be displayed instead of now I have to add all other boards so I can exclude one board.
* In Edit Ads -view there should be simple enable/disable-option to more easily enable or disable ads instead of editing them and selecting/deselecting where to display options.
* "Always on"-option. For example I can have one ad permanently on right side and then have two other ads to show underneath it in turns. This also helps with the problem that I want to have two tower ads on right side but only one ad to show on every board and another to show in selected boards. At the moment I have to put both ads in same content place so they both are shown at the same time no matter what.
Title: Re: Ad Management mod
Post by: irtiza104 on March 13, 2010, 08:24:46 AM
Ads are not showing for GUESTS or MEMBERS, just for admin. what should i do?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 13, 2010, 11:43:48 AM
Quote from: irtiza104 on March 13, 2010, 08:24:46 AM
Ads are not showing for GUESTS or MEMBERS, just for admin. what should i do?
You have to enable ads under permissions for each group.
Title: Re: Ad Management mod
Post by: smp420 on March 13, 2010, 02:05:20 PM
Just a suggestion vbgamer but it seems permissions are a big problem with this mod nobody bothers to change them maybe you should give all membergroups permission by default.
Title: Re: Ad Management mod
Post by: irtiza104 on March 13, 2010, 10:17:56 PM
Quote from: vbgamer45 on March 13, 2010, 11:43:48 AM
Quote from: irtiza104 on March 13, 2010, 08:24:46 AM
Ads are not showing for GUESTS or MEMBERS, just for admin. what should i do?
You have to enable ads under permissions for each group.

How? :-/
Title: Re: Ad Management mod
Post by: Arantor on March 13, 2010, 10:27:57 PM
Admin > Permissions > find the membergroup and edit the permissions for it.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 13, 2010, 11:41:21 PM
Quote from: Stüldt Håjt on March 12, 2010, 05:22:13 AM
I have some suggestions for new features:

* I can specify which boards an ad shouldn't be displayed instead of now I have to add all other boards so I can exclude one board.
* In Edit Ads -view there should be simple enable/disable-option to more easily enable or disable ads instead of editing them and selecting/deselecting where to display options.
* "Always on"-option. For example I can have one ad permanently on right side and then have two other ads to show underneath it in turns. This also helps with the problem that I want to have two tower ads on right side but only one ad to show on every board and another to show in selected boards. At the moment I have to put both ads in same content place so they both are shown at the same time no matter what.
I belie I have those in Ad Seller Pro for most of those features.
Title: Re: Ad Management mod
Post by: irtiza104 on March 14, 2010, 07:45:06 AM
Thanks  :D
Title: Re: Ad Management mod
Post by: DarkBlizz on March 14, 2010, 03:41:03 PM
vbgamer: Any chance of a non-pink background, so we don't have to edit the actual pink images :\
Title: Re: Ad Management mod
Post by: vbgamer45 on March 14, 2010, 04:27:29 PM
Quote from: DarkBlizz on March 14, 2010, 03:41:03 PM
vbgamer: Any chance of a non-pink background, so we don't have to edit the actual pink images :\
Just released an update that should fix that.
Title: Re: Ad Management mod
Post by: szef on March 14, 2010, 05:55:36 PM
Good job. Thanks !
Title: Re: Ad Management mod
Post by: aw06 on March 15, 2010, 01:37:50 PM
Can this mod place ads right above the info center on the board index page, ?? also , is their a screen pic of the admin section of this mod, would love to see where and where ads can be placed ...
Title: Re: Ad Management mod
Post by: halfpint on March 15, 2010, 06:12:54 PM
Hi after updating to the latest version of smf my ads no longer show up I have gone through the parse for the mod and have also enabled the ad permissions and they still wont show up The ad management shows up fine in the admin panel.  I havent changed my theme which is the classic YaBB SE theme.  I dont know what else to do now to get them to show up again. Anyone have any sugestions please
Title: Re: Ad Management mod
Post by: bjraines on March 16, 2010, 11:35:57 PM
can you add ads in the body of the first post liek so many forums are doing today (digitalpoitn, jeepforums etc
Title: Re: Ad Management mod
Post by: tonnybarros on March 17, 2010, 07:15:30 PM
It has not yet no solution to put the advertisement in the "Welcome" theme of the Curve?
Title: Re: Ad Management mod
Post by: Kat9119 on March 18, 2010, 03:12:02 PM
Quote from: Kat9119 on March 08, 2010, 09:50:48 PM
I was trying to restore my database via phpmyadmin. I imported the database and got the following error:

QuoteError

SQL query:

-- -- Dumping data for table `smf_ads` -- INSERT INTO `smf_ads` (`ADS_ID`, `NAME`, `CONTENT`, `BOARDS`, `POSTS`, `CATEGORY`, `HITS`, `TYPE`, `show_index`, `show_board`, `show_threadindex`, `show_lastpost`, `show_thread`, `show_bottom`, `show_welcome`, `show_topofpage`, `show_towerright`, `show_towerleft`, `show_betweencategories`, `show_underchildren`) VALUES (1, 'google', '
\r\n
', '', '1,8', '', 586025, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (10, 'Google Txt & Img', '

So...the import stops and I can't continue. There are dropped tables in this that I need very badly. Can anyone help with this? I have no idea what to do...

I have SMF 1.1.11

Anyone know anything about this? Its pretty useless to back up my forum at this point because I won't be able to restore it due to this error....
Title: Re: Ad Management mod
Post by: vbgamer45 on March 18, 2010, 03:29:50 PM
Can't see much cause it looks like the query is cut off.
Title: Re: Ad Management mod
Post by: derby on March 21, 2010, 02:36:28 PM
Vbgamer im still asking please how do i make ads showing on other page of the forum???i have selected it on ads management settings but still not working im using RC2
Title: Re: Ad Management mod
Post by: vbgamer45 on March 21, 2010, 02:57:41 PM
Make sure you have membergroups enabled and select the boards/areas to show the ads.
Title: Re: Ad Management mod
Post by: Dharshan on March 21, 2010, 03:08:09 PM
Quote from: derby on March 21, 2010, 02:36:28 PM
Vbgamer im still asking please how do i make ads showing on other page of the forum???i have selected it on ads management settings but still not working im using RC2

simply go to
Admin panel =>members => Permission => click on the modify button of each member group
and tick the display ads option....

until you do this the ads will not appear... (do it for all the member groups, cos you can disable the ads for admins later through settings)

look at the pic
Title: Re: Ad Management mod
Post by: gumnaam on March 21, 2010, 04:27:47 PM
How to make ad management Mod working in other themes like Classic YaBB & babylon or in anyother theme.
thx in advance.
Title: Re: Ad Management mod
Post by: TheListener on March 21, 2010, 04:30:47 PM
Make sure the appropriate files are edited.
Title: Re: Ad Management mod
Post by: gumnaam on March 21, 2010, 04:39:30 PM
How to make Ad Management Mod working in other themes like Babylon, Classic YaBB and anyother themes.
thx in advance.
Title: Re: Ad Management mod
Post by: TheListener on March 21, 2010, 04:41:25 PM
Quote from: Brack1 on March 21, 2010, 04:30:47 PM
Make sure the appropriate files are edited.
Quote from: gumnaam on March 21, 2010, 04:27:47 PM
How to make ad management Mod working in other themes like Classic YaBB & babylon or in anyother theme.
thx in advance.

Firstly please do not post the same question less than 24 hours apart.

Secondly read the answer I gave you.
Title: Re: Ad Management mod
Post by: gumnaam on March 21, 2010, 04:56:55 PM
msg was posted twice by mistake, nd could u plz advise me which files to edit for each theme?
thx
Title: Re: Ad Management mod
Post by: vbgamer45 on March 21, 2010, 05:50:39 PM
You have to apply the edits to the themes to your custom theme check the modsite for details.
Title: Re: Ad Management mod
Post by: smp420 on March 22, 2010, 01:37:47 AM
Quote from: gumnaam on March 21, 2010, 04:56:55 PM
msg was posted twice by mistake, nd could u plz advise me which files to edit for each theme?
thx

Read this http://docs.simplemachines.org/index.php?topic=402.0 and use the package parser http://custom.simplemachines.org/mods/index.php?mod=255
Title: Re: Ad Management mod
Post by: derby on March 22, 2010, 02:23:53 PM
Quote from: vbgamer45 on March 21, 2010, 02:57:41 PM
Make sure you have membergroups enabled and select the boards/areas to show the ads.
Have done that..
.
Quote from: Dharshan on March 21, 2010, 03:08:09 PM
Quote from: derby on March 21, 2010, 02:36:28 PM
Vbgamer im still asking please how do i make ads showing on other page of the forum???i have selected it on ads management settings but still not working im using RC2

simply go to
Admin panel =>members => Permission => click on the modify button of each member group
and tick the display ads option....

until you do this the ads will not appear... (do it for all the member groups, cos you can disable the ads for admins later through settings)

look at the pic
like under the bottom of the forum it is not showing on every page only on forum index bottom of the page
Title: Re: Ad Management mod
Post by: Szyfer on March 25, 2010, 01:49:26 PM
Using ad_mod_v2-3-6-1_SMF_v1-1-x.zip with SMF Version 1.1.9 and I having trouble properly adding the ads I want to my Bulletin Board.  Using basic HTML coding to point to banner image, linking the image to customer's website, but the ad is not visible on the Forum.  I have set this first ad to appear under the menu, but it is not working.

Is there something I am missing doing?  Does SMF need to be setup a certain way for this mod to work?

Please help.
Title: Re: Ad Management mod
Post by: perplexed on March 25, 2010, 01:53:06 PM
are you using the default theme or another theme?  Did you install to other themes when you installed the mod?
Title: Re: Ad Management mod
Post by: breweruk on March 27, 2010, 09:55:55 AM
I have installed the mod, have my Google code, added it, but can't see anything. I am probably doing something silly. Is there a walk through on how to set it up for Google Adsense?  Here is my forum.  http://www.brookmans.com/forum/
Title: Re: Ad Management mod
Post by: breweruk on March 27, 2010, 10:51:35 AM
Ah, got it, it didn't like my theme. It worked with the default. Sorry to bother anyone.
Title: Re: Ad Management mod
Post by: Dharshan on March 27, 2010, 11:01:06 AM
k, but if you want it to work with a custom theme you will need to install it by placing the code directly in... :)
Title: Re: Ad Management mod
Post by: breweruk on March 27, 2010, 11:09:01 AM
Ah, got it, thanks.

David
Title: Re: Ad Management mod
Post by: JeremyC87 on March 28, 2010, 08:59:54 PM
how come plenty other mods can install on custom themes no problem and this one cant, then on top of it there are SO many people that have problems with manually installing it.............it's perplexing lol
Title: Re: Ad Management mod
Post by: vbgamer45 on March 28, 2010, 09:09:02 PM
Because nearly every custom theme uses different code and this mod makes a lot of theme edits.
Title: Re: Ad Management mod
Post by: JeremyC87 on March 28, 2010, 09:12:25 PM
oh i was just wondering. i have been using the mod for almost 6 months and i still cant get it to work with my theme.........i tried to manually do it but i just cant get it to work right
Title: Re: Ad Management mod
Post by: JeremyC87 on March 28, 2010, 09:35:48 PM
i am trying to do it manually and im stuck at editing BoardIndex.template.php and MessageIndex.template.php but my theme doesnt even have those files should i just create them?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 28, 2010, 09:47:11 PM
No need to create it. If it doesn't exist it uses the file from the default theme.
Title: Re: Ad Management mod
Post by: JeremyC87 on March 28, 2010, 09:49:27 PM
oh ok thats great then all should be working i shall go test...
Title: Re: Ad Management mod
Post by: JeremyC87 on March 28, 2010, 10:17:03 PM
ok it kinda works the ads will show up now in all placements but it has messed some things up as well......when i put in a side ad it somehow makes the text larger :-\ and it pushes the background over instead of going on top of it and it also messed up the bottom and when i edit the css to try and fix the bottom it doesnt do anything. i included a pic showing the problems. the text isnt a big deal the background isnt either but the bottom is.
http://img171.imageshack.us/img171/5743/37367281.jpg (http://img171.imageshack.us/img171/5743/37367281.jpg)
http://img707.imageshack.us/img707/4724/40454862.jpg (http://img707.imageshack.us/img707/4724/40454862.jpg)
also is there a way to make the ads fixed instead of scrolling?
Title: Re: Ad Management mod
Post by: Brido on March 30, 2010, 04:12:08 PM
Ho there,

can anyone help me out, How i can let guests see the ads like members

Many thanks
Title: Re: Ad Management mod
Post by: Arantor on March 30, 2010, 04:16:38 PM
Brido: Try turning them on for guests in Admin > Permissions...
Title: Re: Ad Management mod
Post by: breweruk on March 30, 2010, 04:23:52 PM
Excellent, so easy. Why did I not think of that.

David
Title: Re: Ad Management mod
Post by: Brido on March 30, 2010, 04:40:11 PM
Thanks just noticed that in General Permission > Advanced Options > Standard Guests >

In the ( Select a permission ) there is boxes missing along with description to what they are for!!
Title: Re: Ad Management mod
Post by: Arantor on March 30, 2010, 04:42:30 PM
And what language are you using?
Title: Re: Ad Management mod
Post by: Brido on March 30, 2010, 04:46:48 PM
The board should be in English
Title: Re: Ad Management mod
Post by: Arantor on March 30, 2010, 05:15:33 PM
English or English UTF-8?
Title: Re: Ad Management mod
Post by: JeremyC87 on March 30, 2010, 07:20:13 PM
can anyone help me with my question? http://www.simplemachines.org/community/index.php?topic=68632.msg2559475#msg2559475
Title: Re: Ad Management mod
Post by: Brido on March 30, 2010, 11:07:17 PM
Quote from: Arantor on March 30, 2010, 05:15:33 PM
English or English UTF-8?

This i am not sure of.  And how to change to see if it would work
Title: Re: Ad Management mod
Post by: vbgamer45 on March 30, 2010, 11:09:20 PM
Admin -> Server Settings
Title: Re: Ad Management mod
Post by: Brido on March 31, 2010, 12:05:11 AM
Had a look in SMF 2.0 RC3 Admin -> Server Settings the setting are not there for English or English UTF-8?
Title: Re: Ad Management mod
Post by: smp420 on March 31, 2010, 12:25:49 AM
Administration Center » Languages
Title: Re: Ad Management mod
Post by: vbgamer45 on March 31, 2010, 12:42:55 AM
Ah forgot they moved it.
Title: Re: Ad Management mod
Post by: Brido on March 31, 2010, 12:53:05 AM
I can see the Administration Center » But Languages is not there!

I think it could be a problem with the mods i installed.

Many Thanks
Title: Re: Ad Management mod
Post by: fredmeepbob on March 31, 2010, 01:54:01 AM
Hey I apologize if I'm being dumb, but I can't get this package to install.
I downloaded it in the admin cp, and when I press "apply mod" it takes me to a page where I believe I have to execute install.php.
When I uploaded the install.php file to my site and went to it, it said it needed to be located in the same place as index.php, so I put it in the main directory of the forum and it gives me this error: Fatal error: Function name must be a string in /home/herpderp/public_html/forum/install.php on line 28

How do I finish this installation?
Thanks

edit: on 2-9 it says 'test successful.' On the rest it's blank.
Title: Re: Ad Management mod
Post by: fredmeepbob on March 31, 2010, 02:40:05 AM
Does this require manual installation? I heard I might have to chmod all these files (don't know how to do that) but it could be bypassed if I gave my info in the options tab in the admin control panel.

The default ftp server is localhost. I'm assuming I should leave this?
And for the username, do I just use my ftp server login username? I don't have to give my password?
Title: Re: Ad Management mod
Post by: fredmeepbob on April 01, 2010, 09:46:07 PM
shameless self bump ^_^
Title: Re: Ad Management mod
Post by: vbgamer45 on April 01, 2010, 09:58:21 PM
Requires manual install if you use a custom theme otherwise the package manager would be able to install it.
Title: Re: Ad Management mod
Post by: fredmeepbob on April 01, 2010, 11:44:36 PM
Gah! I just learned that this may not be compatible with version SMF 1.1.11
Is this true?
Title: Re: Ad Management mod
Post by: smp420 on April 01, 2010, 11:48:30 PM
It is compatible.
Title: Re: Ad Management mod
Post by: fredmeepbob on April 02, 2010, 03:12:20 AM
Hey sorry for my incompetence. I followed all the directions for manual installation, and the tests all say 'successful.'
But when I run install.php I get the error:
Fatal error: Function name must be a string in /home/*****/public_html/forum/install.php on line 28

Is there a certain place I must upload install.php to for it to work? Or am I missing something.
I appreciate the responses.
Fred
Title: Re: Ad Management mod
Post by: smp420 on April 02, 2010, 03:14:45 AM
Go to the package manager click install mod then if all tests are successful on the bottom of page click install, setup permissions, and add your ads that is it.
Title: Re: Ad Management mod
Post by: fredmeepbob on April 02, 2010, 03:16:35 AM
Quote from: smp420 on April 02, 2010, 03:14:45 AM
Go to the package manager click install mod then if all tests are successful on the bottom of page click install, setup permissions, and add your ads that is it.

Finally! :D

Thank you all ^_^
Title: Re: Ad Management mod
Post by: smp420 on April 02, 2010, 03:18:04 AM
Glad you figured it out.
Title: Re: Ad Management mod
Post by: luuuciano on April 02, 2010, 09:33:44 PM
Hi!
I have installed it... and it is working... but it happens something odd
I just can see ads using the main admin account... regular users can no see ads at all...

Why is that? how to change that behavior? any idea?
Title: Re: Ad Management mod
Post by: rd on April 02, 2010, 09:58:02 PM
You must edit the permissions in order to allow them to see. 

Title: Re: Ad Management mod
Post by: luuuciano on April 02, 2010, 11:07:00 PM
Quote from: Royalduke™ on April 02, 2010, 09:58:02 PM
You must edit the permissions in order to allow them to see. 



edit: solved
in permissions I have switched View from Simple to Classic... it was there!
Title: Re: Ad Management mod
Post by: vbgamer45 on April 02, 2010, 11:11:01 PM
Admin -> Permissions -> Then modify each group
Title: Re: Ad Management mod
Post by: smp420 on April 03, 2010, 03:30:43 AM
I suggested this before but got no response. Permissions should be enabled by default for all membergroups. This seems like something everyone overlooks.
Title: Re: Ad Management mod
Post by: vbgamer45 on April 03, 2010, 11:11:13 AM
Yeah that would be a good idea.
Title: Re: Ad Management mod
Post by: vbgamer45 on April 03, 2010, 12:06:06 PM
Quote from: smp420 on April 03, 2010, 03:30:43 AM
I suggested this before but got no response. Permissions should be enabled by default for all membergroups. This seems like something everyone overlooks.
Ok added it! Wasn't that hard. Thanks this should help with the support requests! Time to do this for all my mods heh.
Title: Re: Ad Management mod
Post by: Furqon on April 03, 2010, 01:00:55 PM
Could you help me with this index.template.php


I'm really stuck to find the code  :(
Title: Re: Ad Management mod
Post by: vbgamer45 on April 03, 2010, 01:06:40 PM
I have a paid service to modify templates since I have many requests/mods to work on.
Title: Re: Ad Management mod
Post by: Avail on April 03, 2010, 10:57:31 PM
Hello!

I don't know if anyone mentioned this already, but I believe you made a small typo on your package page. You say the latest version is '2.6.3.2', when I suspect based on the downloads that it is '2.3.6.2'. It isn't really a problem, but it might be convenient to correct it.

Thanks.
Title: Re: Ad Management mod
Post by: fredmeepbob on April 04, 2010, 02:07:50 AM
Hey me again  ::)

I can't seem to get the add to display.
I've edited permissions for each membergroup already but can't seem to get it to work.
Is there anything I overlooked?
Title: Re: Ad Management mod
Post by: smp420 on April 04, 2010, 02:28:25 AM
Are you using a custom theme?
Title: Re: Ad Management mod
Post by: abidejaz4u on April 04, 2010, 09:27:06 AM
i installed ths pckg ...now ads is working ...but now in admin panel its showing blank...like that

Title: Re: Ad Management mod
Post by: TheListener on April 04, 2010, 09:33:01 AM
Quote from: abidejaz4u on April 04, 2010, 09:27:06 AM
i installed ths pckg ...now ads is working ...but now in admin panel its showing blank...like that
[/quote

Were there any errors on install?
Title: Re: Ad Management mod
Post by: Arantor on April 04, 2010, 09:34:57 AM
Better question would be what language you're using, English, English-UTF-8, English British or English British UTF8.
Title: Re: Ad Management mod
Post by: abidejaz4u on April 04, 2010, 10:22:19 AM
no ...no error...
and english language...utf8...it also working...in start it will working fine now its doing like this
Title: Re: Ad Management mod
Post by: Arantor on April 04, 2010, 10:29:05 AM
I don't think the mod has support for English UTF-8.
Title: Re: Ad Management mod
Post by: vbgamer45 on April 04, 2010, 10:43:46 AM
Quote from: abidejaz4u on April 04, 2010, 10:22:19 AM
no ...no error...
and english language...utf8...it also working...in start it will working fine now its doing like this
Under Admin -> Server Settings -> Set the language to just english and not english utf8
Title: Re: Ad Management mod
Post by: abidejaz4u on April 04, 2010, 11:31:01 AM
ok thanks that problem solve...

but there is another problem...in my forum in some section its showing the ads... but now i make new section on there ads not displaying..what can i do
Title: Re: Ad Management mod
Post by: smp420 on April 04, 2010, 12:40:41 PM
From your screenshot your using a custom theme you will have to install the mod manually on that theme if you go to the mod page on the right you select your version of smf and parse it this will tell you all the edits you need to make you only have to make the edits for the files in your theme.
Title: Re: Ad Management mod
Post by: fredmeepbob on April 04, 2010, 02:10:25 PM
Quote from: smp420 on April 04, 2010, 02:28:25 AM
Are you using a custom theme?
I am using a custom theme and English-UTF-8
Title: Re: Ad Management mod
Post by: vbgamer45 on April 04, 2010, 02:15:04 PM
There is no reason to use english utf8 so I would suggest to use just english it works a lot better with mods.
Custom themes require edits
Title: Re: Ad Management mod
Post by: fredmeepbob on April 04, 2010, 02:23:18 PM
Quote from: vbgamer45 on April 04, 2010, 02:15:04 PM
There is no reason to use english utf8 so I would suggest to use just english it works a lot better with mods.
Custom themes require edits
I changed the default language to english in settings.php, but still no one can see the ads.
Title: Re: Ad Management mod
Post by: vbgamer45 on April 04, 2010, 02:24:13 PM
For ads you have to enable it under permissions. I fixed this in the current release.

Admin -> Permissions -> Modify each group

Find Enable Ads permission.
Title: Re: Ad Management mod
Post by: fredmeepbob on April 04, 2010, 02:27:19 PM
Quote from: vbgamer45 on April 04, 2010, 02:24:13 PM
For ads you have to enable it under permissions. I fixed this in the current release.

Admin -> Permissions -> Modify each group

Find Enable Ads permission.
Sorry I forgot to include I have already edited permissions.
Is there anything else I might have overlooked?
I did a manual install and everything should have worked I think  :o
Title: Re: Ad Management mod
Post by: vbgamer45 on April 04, 2010, 02:32:12 PM
If you have a custom theme you will have to edit any of the themes .template.php files where the ad manager code is added.
Title: Re: Ad Management mod
Post by: fredmeepbob on April 04, 2010, 02:46:07 PM
Quote from: vbgamer45 on April 04, 2010, 02:32:12 PM
If you have a custom theme you will have to edit any of the themes .template.php files where the ad manager code is added.
do you mean just
/Themes/default/index.template.php
/Themes/default/BoardIndex.template.php
/Themes/default/Display.template.php
/Themes/default/MessageIndex.template.php

because I edited all of those during the installation already >_<
Title: Re: Ad Management mod
Post by: vbgamer45 on April 04, 2010, 02:51:48 PM
No those fine the package manager does that but your custom theme you would need to edit it.
Title: Re: Ad Management mod
Post by: fredmeepbob on April 04, 2010, 06:19:48 PM
Quote from: vbgamer45 on April 04, 2010, 02:51:48 PM
No those fine the package manager does that but your custom theme you would need to edit it.

Ohh alright I understand. So I make the same edits as I did in those files to the ones in my custom theme?
Thanks for your replies.
Title: Re: Ad Management mod
Post by: vbgamer45 on April 04, 2010, 11:08:44 PM
Yes that's correct
Title: Re: Ad Management mod
Post by: abidejaz4u on April 05, 2010, 05:47:29 AM
Quote from: smp420 on April 04, 2010, 12:40:41 PM
From your screenshot your using a custom theme you will have to install the mod manually on that theme if you go to the mod page on the right you select your version of smf and parse it this will tell you all the edits you need to make you only have to make the edits for the files in your theme.

but mod is working fine...just i creat new seciton in my forum ...on there ads not displaying???
Title: Re: Ad Management mod
Post by: derby on April 06, 2010, 03:31:25 PM
After uploading the ads flash image,jpg or gif image to my server how do i get it to show on using Ads Management???
Title: Re: Ad Management mod
Post by: vbgamer45 on April 07, 2010, 12:09:47 AM
You need to use html to include them inside an ad
Title: Re: Ad Management mod
Post by: Hendrikus on April 07, 2010, 02:24:35 AM
Hi all,
I have a problem with placing banners on my forum and i  hope someone help with this.
i have install'd ad management mod but it doesnt seem to work.
i really have try'd everything and also iam not very good at this.
i have SMF 2.0 RC3 theme BLACKRAIN install'd.
When i install'd the Ad managment mod i got a lott off fail test items.
I really Hope someone can help me with this.


Kind regards to , Hendrikus
Title: Re: Ad Management mod
Post by: derby on April 07, 2010, 05:51:09 AM
Quote from: vbgamer45 on April 07, 2010, 12:09:47 AM
You need to use html to include them inside an ad
how do i do that??
Title: Re: Ad Management mod
Post by: vbgamer45 on April 07, 2010, 01:19:56 PM
Like <a href="http://anothersite.com"><img src="http://www.mysite.com/myimage.jpg"></a>
Title: Re: Ad Management mod
Post by: derby on April 07, 2010, 03:48:54 PM
Quote from: vbgamer45 on April 07, 2010, 01:19:56 PM
Like <a href="http://anothersite.com"><img src="http://www.mysite.com/myimage.jpg"></a>
Thanks Working Now..Nd one more tin how do i centralizer it(to put it in the middle)?
Title: Re: Ad Management mod
Post by: vbgamer45 on April 07, 2010, 04:25:53 PM
put <center> tags around it.
Title: Re: Ad Management mod
Post by: tech0925 on April 08, 2010, 12:48:20 AM
Hey peeps, please help. I am new to SMF. I downloaded this mod but don't know what to do now. I have a hosting account that i used to install SMF. My question is, what directory do I upload this zip file to? Basically if you can walk me step by step it would be much appreciated!
Title: Re: Ad Management mod
Post by: vbgamer45 on April 08, 2010, 12:53:04 AM
The package manager does this check out some docs found at
Package Manager (http://docs.simplemachines.org/index.php?board=49.0;sort=subject)
Title: Re: Ad Management mod
Post by: tech0925 on April 08, 2010, 12:58:53 AM
Thank you for such a quick response. Forgive me for being an idiot when it comes to this. LOL I went to your link and click on the mod tab. From there everything looks foreign to me. LOL Can you try to explain to me where to upload the downloaded zip file? Or is that what I do?  :o
Title: Re: Ad Management mod
Post by: tech0925 on April 08, 2010, 01:19:36 AM
Ok, I think I am getting somewhere. I found where you can browse and upload your mods. However, I uploaded the mod and clicked on install mod. I got an error message saying the mod was not executable. I uploaded the whole zip file. Is that correct?
Title: Re: Ad Management mod
Post by: tech0925 on April 08, 2010, 01:26:52 AM
I got it!  ;D The second download would not work. I downloaded the first one and it works like a charm!

Cheers  ;)
Title: Re: Ad Management mod
Post by: Ismail Mohamed on April 08, 2010, 09:44:47 PM
i install Ad Management mod and i add a new adsense code too
but no ads appear on the forum in any where
i don't know why
mod  : http://custom.simplemachines.org/mods/index.php?mod=255
SMF version : SMF 1.1.11
Theme  : babylon
Language: Arabic
Title: Re: Ad Management mod
Post by: abidejaz4u on April 09, 2010, 08:58:19 AM
Quote from: abidejaz4u on April 05, 2010, 05:47:29 AM
Quote from: smp420 on April 04, 2010, 12:40:41 PM
From your screenshot your using a custom theme you will have to install the mod manually on that theme if you go to the mod page on the right you select your version of smf and parse it this will tell you all the edits you need to make you only have to make the edits for the files in your theme.

but mod is working fine...just i creat new seciton in my forum ...on there ads not displaying???

what abt my problem bro ..i m still facing it
Title: Re: Ad Management mod
Post by: flapjack on April 09, 2010, 09:13:25 AM
Quote from: abidejaz4u on April 09, 2010, 08:58:19 AM
Quote from: abidejaz4u on April 05, 2010, 05:47:29 AM
Quote from: smp420 on April 04, 2010, 12:40:41 PM
From your screenshot your using a custom theme you will have to install the mod manually on that theme if you go to the mod page on the right you select your version of smf and parse it this will tell you all the edits you need to make you only have to make the edits for the files in your theme.

but mod is working fine...just i creat new seciton in my forum ...on there ads not displaying???

what abt my problem bro ..i m still facing it

you are wrong. you need to manually install it in you theme, that is your answer
Title: Re: Ad Management mod
Post by: thesicilian on April 09, 2010, 12:10:12 PM
Can this mod be added to a non-standard theme index.template?
Title: Re: Ad Management mod
Post by: taysan on April 09, 2010, 01:29:28 PM
I've been using Ad Management for a while and it's working well for me in 1.1.11.  I do have one small issue however with regards to right and left tower ads.

When using just the right side, the ad goes all the way up and to the right, outside the formatted area of the forum.

When using just the left side, the ad is inserted under the menu bar, pushing all the boards down to the bottom.

It only seems to work 'properly' when using both towers together.

I've made all the requisite changes to my theme php files, and all ad locations seem to work.  It's just the towers seem to not work independantly.  I'd like to run just one tower, and could possibly insert a blank JPG or 1 pixel wide tower ad on the opposite side (haven't tried this) but clearly it should work as intended.

My forum - www.dotheton.com - gets about a million page views monthly.
Title: Re: Ad Management mod
Post by: anto74 on April 10, 2010, 08:41:41 AM
Hi vbgamer45,
i have installed this Mod, it works almost perfect...only the banners in welcome user area not shows...
I use RC3 and default theme ( Curve)
I have attached my index.template.php file.
Thanks
Antonio
Title: Re: Ad Management mod
Post by: abidejaz4u on April 10, 2010, 10:58:14 AM
Quote from: flapjack on April 09, 2010, 09:13:25 AM
Quote from: abidejaz4u on April 09, 2010, 08:58:19 AM
Quote from: abidejaz4u on April 05, 2010, 05:47:29 AM
Quote from: smp420 on April 04, 2010, 12:40:41 PM
From your screenshot your using a custom theme you will have to install the mod manually on that theme if you go to the mod page on the right you select your version of smf and parse it this will tell you all the edits you need to make you only have to make the edits for the files in your theme.

but mod is working fine...just i creat new seciton in my forum ...on there ads not displaying???

what abt my problem bro ..i m still facing it

you are wrong. you need to manually install it in you theme, that is your answer

i told u bro...check my forum
innerforum.com/forum
in some section its showing and in saraiki songs its not displayig
Title: Re: Ad Management mod
Post by: flapjack on April 10, 2010, 11:44:53 AM
its showing only on these template files, which are not modified and default are being used
Title: Re: Ad Management mod
Post by: smp420 on April 10, 2010, 03:51:15 PM

Quote from: anto74 on April 10, 2010, 08:41:41 AM
Hi vbgamer45,
i have installed this Mod, it works almost perfect...only the banners in welcome user area not shows...
I use RC3 and default theme ( Curve)
I have attached my index.template.php file.
Thanks
Antonio

The welcome center ads were removed, although the options are still there.
Title: Re: Ad Management mod
Post by: Eudemon on April 10, 2010, 07:15:32 PM
the ad properly displayed on my forum like this, see attachment, but on the right side, there are still some space left
how can i display 2 ads, with the same option? or how do i modify it(exp:in the template?)

im using custom theme>impulse2, the ad won't display in post page, even i enabled it
i think it's the theme's problem, cuz it shows on smf default theme, can u help me fix this?
the theme--->http://custom.simplemachines.org/themes/index.php?lemma=2060

thank you for your time
Title: Re: Ad Management mod
Post by: abidejaz4u on April 11, 2010, 03:41:13 AM
Quote from: flapjack on April 10, 2010, 11:44:53 AM
its showing only on these template files, which are not modified and default are being used

then now what can i do
Title: Re: Ad Management mod
Post by: smp420 on April 11, 2010, 03:51:22 AM
Quote from: Eudemon369 on April 10, 2010, 07:15:32 PM
the ad properly displayed on my forum like this, see attachment, but on the right side, there are still some space left
how can i display 2 ads, with the same option? or how do i modify it(exp:in the template?)

im using custom theme>impulse2, the ad won't display in post page, even i enabled it
i think it's the theme's problem, cuz it shows on smf default theme, can u help me fix this?
the theme--->http://custom.simplemachines.org/themes/index.php?lemma=2060

thank you for your time
You can use table if you want a simple way although some will argue against tables.
No edits to your files need to be made just use this in an ad block

<table>
<tr>
<td>
ad #1 code
</td>
<td>
ad#2 code
</td>
</tr>
</table>
Title: Re: Ad Management mod
Post by: Eudemon on April 11, 2010, 12:03:58 PM
Quote from: smp420 on April 11, 2010, 03:51:22 AM
Quote from: Eudemon369 on April 10, 2010, 07:15:32 PM
the ad properly displayed on my forum like this, see attachment, but on the right side, there are still some space left
how can i display 2 ads, with the same option? or how do i modify it(exp:in the template?)

im using custom theme>impulse2, the ad won't display in post page, even i enabled it
i think it's the theme's problem, cuz it shows on smf default theme, can u help me fix this?
the theme--->http://custom.simplemachines.org/themes/index.php?lemma=2060

thank you for your time
You can use table if you want a simple way although some will argue against tables.
No edits to your files need to be made just use this in an ad block

<table>
<tr>
<td>
ad #1 code
</td>
<td>
ad#2 code
</td>
</tr>
</table>

thx it works great
Title: Re: Ad Management mod
Post by: noelksmall on April 11, 2010, 03:02:45 PM
Hi

I am using SMF 2 RC2 and have installed the add management mod. It installed correctly but i have one problem.

I the forum owner can see the adverts ok, but why cant anyone else see the adverts?

An help / advice greatly appreciated

Noel
Title: Re: Ad Management mod
Post by: flapjack on April 11, 2010, 03:10:51 PM
set proper permissions for other groups
Title: Re: Ad Management mod
Post by: noelksmall on April 11, 2010, 03:27:46 PM
Quote from: flapjack on April 11, 2010, 03:10:51 PM
set proper permissions for other groups

Problem sorted, Many Thanks  :)
Title: Re: Ad Management mod
Post by: abidejaz4u on April 12, 2010, 08:22:56 AM
Quote from: flapjack on April 11, 2010, 03:10:51 PM
set proper permissions for other groups

from where
Title: Re: Ad Management mod
Post by: sawz on April 12, 2010, 08:37:51 AM
Quote from: abidejaz4u on April 12, 2010, 08:22:56 AM
Quote from: flapjack on April 11, 2010, 03:10:51 PM
set proper permissions for other groups

from where

look in Admin > Permissions
edit the proper group, you'll see where you can allow the ad mod
Title: Re: Ad Management mod
Post by: SonnyCooL on April 12, 2010, 03:27:36 PM
Quote from: vbgamer45 on April 04, 2010, 02:15:04 PM
There is no reason to use english utf8 so I would suggest to use just english it works a lot better with mods.
Custom themes require edits

i'm using English only but admin panel still not working ....
Title: Re: Ad Management mod
Post by: vbgamer45 on April 12, 2010, 03:43:40 PM
Have a custom theme check that modifications.english.php in that folder too
Title: Re: Ad Management mod
Post by: amko_sa on April 13, 2010, 02:46:42 PM
This is just one suggestion.
Can you add the admin possibility to set avatars inside last topic ads block.

Thanks for a great mod
Title: Re: Ad Management mod
Post by: elkingrey on April 14, 2010, 02:06:43 AM
Hello, I just got through attempting to install ad mod v2-3-6-1 SMP v-1-1-x and am having some problems and could use some help.

I followed these directions:

http://custom.simplemachines.org/mods/index.php?action=parse

I went through and meticulously followed the file edit directions.

Then the second part of the directions reads: CODE   install.php

I had no idea what I was supposed to do there so I skipped to the next set of directions FILE OPERATIONS
and I went into my ftp applet on my web server and copied the files where it told me to. After I did that I tried to navigate through my SMF and kept getting this error:

Table 'dailyanarchist_2453037.smf_ads' doesn't exist
File: /misc/10/000/246/127/0/user/web/dailyanarchist.com/forum/Sources/LoadAds.php
Line: 27

Any help anyone could provide would be much appreciated. Thank you. And feel free to email me.
Title: Re: Ad Management mod
Post by: vbgamer45 on April 14, 2010, 02:11:06 AM
Copy install.php to the root directory of your forum then run in the browser to create the tables.
Title: Re: Ad Management mod
Post by: elkingrey on April 14, 2010, 03:56:33 PM
Quote from: vbgamer45 on April 14, 2010, 02:11:06 AM
Copy install.php to the root directory of your forum then run in the browser to create the tables.

Okay, copied it to the forum directory using FTP Applet.  Sorry, I just realized the link I copied doesn't get you to the parse, but when you open the parse, towards the bottom of the page right before FILE OPERATIONS but after COPY install.php it reads "This file should be able to execute standalone." What does that mean?

But after I copy install.php to my root directory, how do I run it in the browser? Also, I don't know what you mean by creating the tables? Frankly, I'm a little unclear on the whole thing, because the only directions I know of is the parse. Is there a set of directions for managing the ads and all that once it's installed? Thanks again.
Title: Re: Ad Management mod
Post by: vbgamer45 on April 14, 2010, 04:04:47 PM
Normally you wouldn't install it manually. You would use the package manger to install it and it will take care of all the database/file work.
Title: Re: Ad Management mod
Post by: elkingrey on April 14, 2010, 07:13:07 PM
Quote from: vbgamer45 on April 14, 2010, 04:04:47 PM
Normally you wouldn't install it manually. You would use the package manger to install it and it will take care of all the database/file work.

I don't know what the package manager is. I'm obviously a noob. I'm used to double clicking the exe file and having it walk me through the whole thing. So this has been an enjoyable, albeit slightly frustrating experience for me.

After I moved the install.php file to my forum directory it now reads: "MAJOR SECURITY RISK:
You have not removed install.php!" on my SMF forum page. I'm still not understanding the part about running it in my browser and creating tables. Any advice?
Title: Re: Ad Management mod
Post by: vbgamer45 on April 14, 2010, 07:39:51 PM
Check out this topic on the package manager. With SMF you do not have to edit files manually.
Package Manager (http://docs.simplemachines.org/index.php?board=49.0;sort=subject)
Title: Re: Ad Management mod
Post by: elkingrey on April 14, 2010, 09:08:49 PM
Quote from: vbgamer45 on April 14, 2010, 07:39:51 PM
Check out this topic on the package manager. With SMF you do not have to edit files manually.
Package Manager (http://docs.simplemachines.org/index.php?board=49.0;sort=subject)

I seem to break everything I touch. I went to the link you gave me and still couldn't figure out where the package manager is. I figured it must have been some part of the admin functions within the actual SMF program. But since my SMF program is currently not working I decided to delete the install.php file as well as all of the other files that I manually uploaded using my FTP applet. Now my forum works again, except for my admin bar.

So the question now is, how do I fix my admin bar, and is the package manager a function inside of my admin bar within the actual program SMF, or are we dealing with files through my webserver?
Title: Re: Ad Management mod
Post by: vbgamer45 on April 14, 2010, 09:24:50 PM
That i wouldn't know much about I would try asking in the general support forum.
Title: Re: Ad Management mod
Post by: taysan on April 14, 2010, 11:05:52 PM
Is there a way to specify an ad shows up every nth post, as opposed to putting 1, 5, 10, 15, 20, 25, 30.... into the "Display ads within posts" property?  I have threads in my forum with 100's of posts, and would like ads to continue showing throughout.
Title: Re: Ad Management mod
Post by: vbgamer45 on April 14, 2010, 11:49:24 PM
Not builtin no.
Title: Re: Ad Management mod
Post by: tech0925 on April 16, 2010, 01:07:51 AM
I apologize in advance if I missed the answer here. I looked and looked but couldnt find any. I installed the ad management mod to my smf 1.1.11 and I am using the default theme for this forum. My problem is when I add a ad it shows up twice. Ive deleted the mod and even reinstalled it but get the same thing. I notice a lot of people has had this problem and was wondering what could be done to fix it?

Thanks :o
Title: Re: Ad Management mod
Post by: giveaway365.com on April 16, 2010, 11:55:17 PM
I want to remove some space below the ads.. I have attached the screen shot.
Is there any way to remove that space... ?
Title: Re: Ad Management mod
Post by: tech0925 on April 17, 2010, 12:27:30 AM
Quote from: giveaway365.com on April 16, 2010, 11:55:17 PM
I want to remove some space below the ads.. I have attached the screen shot.
Is there any way to remove that space... ?


Try adding <br /> in front of your ad. Add as many as you need in front to lower the ad. For example: <br /><br /><br />Ad code here Each time you add one it will drop your ad down little by little
Title: Re: Ad Management mod
Post by: giveaway365.com on April 17, 2010, 01:24:38 AM
i dont want to add <br> I want to remove <br> below the ads.
Title: Re: Ad Management mod
Post by: tech0925 on April 17, 2010, 03:16:17 AM
I see. I figured it would still drop the picture without dropping the border below that. I dunno, still a newbie. LOL
Check this out and see if it helps.

http://forums.devshed.com/css-help-116/remove-the-space-between-img-and-td-556894.html (http://forums.devshed.com/css-help-116/remove-the-space-between-img-and-td-556894.html)
Title: Re: Ad Management mod
Post by: genius09 on April 17, 2010, 10:54:47 AM
Hey, when i install this mod all the other files have tested successful except the index.template.php located in themes

i've tried it with both default and custom themes. after placing the ad code in the provided box it is not showing up on the board index nor any other area on the site.
Title: Re: Ad Management mod
Post by: tech0925 on April 17, 2010, 11:22:14 AM
Quote from: genius09 on April 17, 2010, 10:54:47 AM
Hey, when i install this mod all the other files have tested successful except the index.template.php located in themes

i've tried it with both default and custom themes. after placing the ad code in the provided box it is not showing up on the board index nor any other area on the site.

Sounds like you will have to manually install it. I had to do the same thing.
Title: Re: Ad Management mod
Post by: genius09 on April 17, 2010, 11:23:28 AM
can you assist me in doing this?

i'm not familiar with it

thanks
Title: Re: Ad Management mod
Post by: tech0925 on April 17, 2010, 11:39:09 AM
Quote from: genius09 on April 17, 2010, 11:23:28 AM
can you assist me in doing this?

i'm not familiar with it

thanks


Sure, just go back to the download page of the mod and over to the right click the download bubble that matches the correct download and then select the correct download option from the drop down bar and hit the parse button. This will walk you exactly how to do it. Let me know if you get stuck.
Title: Re: Ad Management mod
Post by: genius09 on April 17, 2010, 11:43:56 AM
i'm using version 1.1.11 and when i click on parse it says;

Sorry, but this modification does not appear to be compatible with the selected version.
Title: Re: Ad Management mod
Post by: tech0925 on April 17, 2010, 12:22:33 PM
Same version as me too. Where your messing up is if you look to the right of the TWO zip files you will see a bubble to select. Select the first one ( default automatically selects the second zip file ). Then drop down and select the right version and hit parse.  :)
Title: Re: Ad Management mod
Post by: genius09 on April 17, 2010, 05:04:35 PM
yes, i know there is usually a little bubble there but in this case it isn't.

can someone install this mod manually for me.

let me know so i can upload the template file here

thanks
Title: Re: Ad Management mod
Post by: tech0925 on April 17, 2010, 05:27:09 PM
attach your /themes/your current theme/index.template.php
&
/Themes/your current theme/BoardIndex.template.php
&
/Themes/your current theme/Display.template.php
Finally
/Themes/your current theme/MessageIndex.template.php
Title: Re: Ad Management mod
Post by: genius09 on April 17, 2010, 05:58:17 PM
ok here there are tech.

Title: Re: Ad Management mod
Post by: tech0925 on April 17, 2010, 07:20:23 PM
Here you go bro. Always be sure to keep a copy of the originals but these should work just fine now. Upload them and then install your ad mod. Should be up and working. Let me know.
The other mod you have on here was not installed right. You may want to try and get in touch with the guy that installed it b/c he didnt install it according to the directions. If I remove something, (but not all of them), you may get an error or something. That's just my advice on that mod.

If you want me to try, make sure these are working good first and then I can go back and try to track down all the codes and remove them that way.

:D
Title: Re: Ad Management mod
Post by: genius09 on April 17, 2010, 08:29:54 PM
ok, i'll try these and post my results here..............thanks again

i may still need you to uninstall that mod i pm'd you about

i'll upload the file here
Title: Re: Ad Management mod
Post by: genius09 on April 17, 2010, 08:38:12 PM
the test failed on the index and display template files.
Title: Re: Ad Management mod
Post by: tech0925 on April 17, 2010, 08:45:44 PM
darn, i was really hoping that would have worked. You don't have a backup of your theme that your using when you first installed it do you?
Title: Re: Ad Management mod
Post by: genius09 on April 17, 2010, 08:47:45 PM
unfortunately, no i dont........what's next?
Title: Re: Ad Management mod
Post by: tech0925 on April 17, 2010, 08:53:31 PM
I would re-post this issue into this category as a new topic. This topic is so long that I don't believe many people check it. I wished that I could have fixed it but you probably need someone more experienced than me.

Good Luck.
Title: Re: Ad Management mod
Post by: Harry33 on April 19, 2010, 03:05:53 AM
Hi, please I want to move the code that always display ad on top the post page like this  http://appiiforum.com/index.php?topic=77.msg187;topicseen#msg187. Now I want to place the code under TOPIC BAR (that is that bar containing the wording 'Author'. I will greatly appreciate your effort. I use smf2.0 RC3. Thanks
Title: Re: Ad Management mod
Post by: giveaway365.com on April 19, 2010, 03:11:51 AM
Quote from: giveaway365.com on April 16, 2010, 11:55:17 PM
I want to remove some space below the ads.. I have attached the screen shot.
Is there any way to remove that space... ?

dear experts , any luck on this?
Title: Re: Ad Management mod
Post by: giveaway365.com on April 19, 2010, 05:19:43 AM
in RC3 the welcome section has no meaning?
Title: Re: Ad Management mod
Post by: bucharest on April 19, 2010, 08:35:41 AM
i cant get this mod to work since i chnaged to custom theme black rain,ive been told i need to edit the mod,but i have no idea what i need to edit

any advice would be helpful

http://www.thaivisanews.com/
Title: Re: Ad Management mod
Post by: sawz on April 19, 2010, 08:40:29 AM
Quote from: giveaway365.com on April 19, 2010, 03:11:51 AM
Quote from: giveaway365.com on April 16, 2010, 11:55:17 PM
I want to remove some space below the ads.. I have attached the screen shot.
Is there any way to remove that space... ?

dear experts , any luck on this?

is there a line break in the banner code adding that space?
<br>
Title: Re: Ad Management mod
Post by: TugaBin on April 19, 2010, 11:10:34 AM
Quote from: tech0925 on April 16, 2010, 01:07:51 AM
I apologize in advance if I missed the answer here. I looked and looked but couldnt find any. I installed the ad management mod to my smf 1.1.11 and I am using the default theme for this forum. My problem is when I add a ad it shows up twice. Ive deleted the mod and even reinstalled it but get the same thing. I notice a lot of people has had this problem and was wondering what could be done to fix it?

Thanks :o

One more here!

The only one that works like it should is the 'post' one (the one that looks like a post in a topic)

Can it be fixed? I noticed that I have this issue with default theme and the last theme I installed (zone99 form dzigners.com), but it worked fine with theme 'pixelperfected' from graphicsmayem.com  :o

We would really appreciate a way to fix it  ;)

And by the way, in the last 2 themes I said (zone99 & pixelperfected), I can't get to put ads below menu, nor top & bottom page, others work fine.

Thnaks to all  :D
Title: Re: Ad Management mod
Post by: giveaway365.com on April 20, 2010, 12:26:46 AM
Quote from: sawz on April 19, 2010, 08:40:29 AM
Quote from: giveaway365.com on April 19, 2010, 03:11:51 AM
Quote from: giveaway365.com on April 16, 2010, 11:55:17 PM
I want to remove some space below the ads.. I have attached the screen shot.
Is there any way to remove that space... ?

dear experts , any luck on this?

is there a line break in the banner code adding that space?
<br>

Its ordinary google code... I think the mod ads a <br> somewhere or a line somewhere which I cannot find where it is doing that...
Title: Re: Ad Management mod
Post by: abidejaz4u on April 20, 2010, 05:28:45 AM
Quote from: sawz on April 12, 2010, 08:37:51 AM
Quote from: abidejaz4u on April 12, 2010, 08:22:56 AM
Quote from: flapjack on April 11, 2010, 03:10:51 PM
set proper permissions for other groups

from where

look in Admin > Permissions
edit the proper group, you'll see where you can allow the ad mod


On there Enable ads check is on in every group ..now
Title: Re: Ad Management mod
Post by: giveaway365.com on April 20, 2010, 08:21:17 AM
any suggestions on removing the space below each ad?
Title: Re: Ad Management mod
Post by: luuuciano on April 21, 2010, 01:25:28 AM
in the install.xml file, wich is the code section of the show ads between posts function?
is it there?

because it is not working... and I want to check if that section was properly added to my files...

(I tried to find it, with out luck)
Title: Re: Ad Management mod
Post by: giveaway365.com on April 21, 2010, 03:22:31 AM
some how I managed to get this solved. Its no problem with mod, but the placement of codes.
Just remove <br in index.template.php solves the problem.

If anyone wanna know... just write back here... I will give you the exact spots of the edits.
Title: Re: Ad Management mod
Post by: Mad Mongoose on April 22, 2010, 06:12:54 PM
I'm sorry if this has already been answered but I have scowerd this thread and havent found anything.

« on: Today at 12:39:58 am » Quote Modify 

--------------------------------------------------------------------------------

So..I currently use:
SMF 2.0 RC3, MySQL - 5.1.30, PHP - 5.2.4, Country Flags 1.1.1, SMFShop 3.1.5.2 , Countdown BBCode 1.3, Member Color Link 3.0.8, Ad Managment 2.3.6.2 , Advanced Reputation System 1.8.1, RSS Feed Icon 1.1, Custom Form Mod 1.6, SMF Staff Page 1.7, Favicon 1.3, last login 2.2 , Bakers Dozen Pages 1.2, SimplePortal 2.3.2, AjaxChat Integration 3.2.1(SMF 2RC3), Join date in Posts 1.0, Admin member list registration date 1.1 and Sitemap 2.1.2

NOTE: Ad Management 2.3.6.2
I have it installed and it mostly works...I get ads in the areas I want them but they don't work in the tower and such...that's ok, I don't want those ads anyway.

The problem I am having is that I cannot disable them for any of the member groups.  He toggle it there and I can select it...but no matter what, you can see the ads.

The "disable for admins" works fine...it's just the user groups that I can't turn them off for.

Also...I have the ads running on a multitude of locations (posts and Cats) and only the first few ad spots in the cats work...same with posts.   As you get near the bottom of the page they stop showing up.

Any ideas on these 2 problems?  The disabling is WAY more important..I can probably fix the other one on my own...but I am stumped as far as the disabling thing goes.
Title: Re: Ad Management mod
Post by: swoodie on April 24, 2010, 06:00:48 PM
Hi thanks for a great mod, i have it working for flash banners in between boards but not sure what code to get to centre code below i am using.

<object height="60" width="468" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
                                 <param value="../images/stories/bannerAds/1.swf" name="movie"/>
                                 <param value="high" name="quality"/>
                                 <embed height="60" width="468" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer [nofollow]" quality="high" src="../images/stories/bannerAds/1.swf"/>
</object>

what other code would i have to use to make it centred
Title: Re: Ad Management mod
Post by: vbgamer45 on April 24, 2010, 09:38:49 PM
Put center tags around that code
Title: Re: Ad Management mod
Post by: swoodie on April 25, 2010, 01:12:20 AM
thanks Vbgamer45 resolved

is there a site to look up tags if thats what you call them
Title: Re: Ad Management mod
Post by: luuuciano on April 25, 2010, 01:25:00 AM
Quote from: swoodie on April 25, 2010, 01:12:20 AM
is there a site to look up tags if thats what you call them
http://www.w3schools.com/
look the html & css sections first
Title: Re: Ad Management mod
Post by: kinderkyle on April 25, 2010, 02:02:41 PM
Quote from: jerm 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

This is not working for me, same error.
   Execute Modification   ./Sources/ManagePermissions.php   Test failed

I think it might be conflicting with another mod, i have pretty url installed and it may be conflicting.

please help
Title: Re: Ad Management mod
Post by: smp420 on April 25, 2010, 02:30:20 PM
You can uninstall pretty urls install add management and reinstall pretty urls that might work. Or you can use the package parser on the mod page and manually install it in that file.
Title: Re: Ad Management mod
Post by: kinderkyle on April 25, 2010, 02:37:25 PM
the pretty urls mod doesnt list that file as being modified though.  so i am not sure why it is not allowing that file
Title: Re: Ad Management mod
Post by: swoodie on April 26, 2010, 03:17:07 AM
Hi i have the version 2.6.3.2 installed but it dont display my flash banners in between posts, works when using google code in same spot
only come up with the outline of the banner.
flash banners work in between topics

my flash code
<center><object height="60" width="468" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param value="../forum/ads/1.swf" name="movie"/>
<param value="high" name="quality"/>
<embed height="60" width="468" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer " quality="high" src="../forum/ads/1.swf"/>
</object></center>

would there be any reason not work in between posts?.

i solved it i had to remove .. from in front of value= and scr=
Title: Re: Ad Management mod
Post by: vbgamer45 on April 26, 2010, 01:16:46 PM
Glad you got it working
Title: Re: Ad Management mod
Post by: xxxbbs site on April 26, 2010, 10:46:46 PM
Thanks for your nice mod.

Any chance of adding ad within the first post ?
Title: Re: Ad Management mod
Post by: giveaway365.com on April 27, 2010, 04:50:11 AM
i m also looking for the same...
Title: Re: Ad Management mod
Post by: bucharest on April 28, 2010, 07:18:15 AM
im having problems adding these to the forum what is the correct format i should be using

<a href="http://www.fizzybrain.co.uk" alt="Fizzybrain - Consumer guide & directory" title="Fizzybrain - Consumer guide & directory" target="_blank">Consumer guide & directory</a><br />FizzyBrain is a free guide and directory targeting many articles and websites carefully selected by our team to help consumers in their choice.   

http://www.affbot3.com/link-0b02035f0b030355500305510c0b5d065505400f0d5f11400e0652585d0202060009070840514b5f?plan=178


http://www.affbot1.com/link-b641000fb640000e5e500d03030b5b45560c5f580657191f5b405d040953031a025442555452065c?plan=187


http://www.thaivisanews.com/
Title: Re: Ad Management mod
Post by: luismanson on April 28, 2010, 08:18:45 AM
is there any ways to make the ads load last? since my site "hangs" until the ad server sends them :(
Title: Re: Ad Management mod
Post by: Arantor on April 28, 2010, 08:25:09 AM
Quote from: luismanson on April 28, 2010, 08:18:45 AM
is there any ways to make the ads load last? since my site "hangs" until the ad server sends them :(

Not really since that's the price of having inline Javascript.

I suppose you could get very clever and have Javascript rewriting the HTML to add the other Javascript in, but that's not recommended for a number of reasons (mostly because it's against the terms of service for some advertisers)
Title: Re: Ad Management mod
Post by: DawnsWebDesigns on April 28, 2010, 07:05:31 PM
I couldn't get the package manager to install this...fatal error.  So I manually installed it.  Then I couldn't even get to my admin page.  No table in the database.  And I can't find an sql file.

Thanks for any help. :)
Title: Re: Ad Management mod
Post by: Arantor on April 28, 2010, 07:07:45 PM
Assuming you downloaded the 1.1 version of the mod... look for install.php in the mod package which runs as a PHP file to do the database work for you.
Title: Re: Ad Management mod
Post by: vbgamer45 on April 28, 2010, 08:03:39 PM
There should be an install.php file in the mod package which you can copy to the root directory of your forum and run via the browser.
Title: Re: Ad Management mod
Post by: onslow286 on April 28, 2010, 09:38:57 PM
As a total newbie to installing mods, could someone be so kind as to tell me how to install this mod? I mean from after I have downloaded the zip file. I have searched for the answer but only found out how to edit the files etc. Do I upload the zip file or do I unpack it and upload the files?

Thanks for any help.
Title: Re: Ad Management mod
Post by: vbgamer45 on April 28, 2010, 10:04:32 PM
You would install it using SMF's package manager

Package Manager (http://docs.simplemachines.org/index.php?board=49.0;sort=subject)
Title: Re: Ad Management mod
Post by: onslow286 on April 28, 2010, 10:14:46 PM
Thank you SO much! That was easy  :)
Title: Re: Ad Management mod
Post by: vbgamer45 on April 28, 2010, 10:22:57 PM
Glad you got working the package manager rocks!
Title: Re: Ad Management mod
Post by: bucharest on April 30, 2010, 06:59:40 AM
Quote from: bucharest on April 28, 2010, 07:18:15 AM
im having problems adding these to the forum what is the correct format i should be using

<a href="http://www.fizzybrain.co.uk" alt="Fizzybrain - Consumer guide & directory" title="Fizzybrain - Consumer guide & directory" target="_blank">Consumer guide & directory</a><br />FizzyBrain is a free guide and directory targeting many articles and websites carefully selected by our team to help consumers in their choice.   

http://www.affbot3.com/link-0b02035f0b030355500305510c0b5d065505400f0d5f11400e0652585d0202060009070840514b5f?plan=178


http://www.affbot1.com/link-b641000fb640000e5e500d03030b5b45560c5f580657191f5b405d040953031a025442555452065c?plan=187


http://www.thaivisanews.com/

can anyone help with this ?
Title: Re: Ad Management mod
Post by: Arantor on April 30, 2010, 07:04:56 AM
Jeez, STOP triple posting.
Title: Re: Ad Management mod
Post by: bucharest on April 30, 2010, 07:16:52 AM
I posted several days ago and was told it was in the wrong section
Title: Re: Ad Management mod
Post by: Arantor on April 30, 2010, 07:18:18 AM
Yes, the correct section is SMF Coding Discussion where I asked you for further information.
Title: Re: Ad Management mod
Post by: Ed2 on April 30, 2010, 09:59:07 AM
Sorry wrong mod section
Title: Re: Ad Management mod
Post by: gisfreak on May 01, 2010, 04:07:08 AM
hello, i want to update my themes, so i need manual installing for this mod

but when i parse it to SMF 1.1.11

it said, not compatible....bla...bla...bla  :o, although this mod compatible with those version  ???

any clue to overcome it

thanx  ;D

Title: Re: Ad Management mod
Post by: smp420 on May 01, 2010, 04:22:07 AM
Works fine be sure you select the version for 1.1.x before you parse.
Title: Re: Ad Management mod
Post by: WindowsNT on May 01, 2010, 05:39:09 AM
Hmmm I 've tried installing it over default theme SMF 2.0 RC3 and no code is displayed. It installs OK and configures OK, but it doesn't show the ads.

I 've installed it from the package manager, should I install from another url ?
Title: Re: Ad Management mod
Post by: gisfreak on May 01, 2010, 10:44:24 AM
Quote from: WindowsNT on May 01, 2010, 05:39:09 AM
Hmmm I 've tried installing it over default theme SMF 2.0 RC3 and no code is displayed. It installs OK and configures OK, but it doesn't show the ads.

I 've installed it from the package manager, should I install from another url ?

hum have you activate it through ads management control panel, and make sure that you uncheck the "disable ads for admin" function  ;)


Quote from: smp420 on May 01, 2010, 04:22:07 AM
Works fine be sure you select the version for 1.1.x before you parse.

shame on me, i miss this   :o
Title: Re: Ad Management mod
Post by: vbgamer45 on May 01, 2010, 10:46:10 AM
Also Check permissions that ads are enabled. You should have an ad settings area too.
Title: Re: Ad Management mod
Post by: elkingrey on May 01, 2010, 07:25:40 PM
I am trying to install an advertisement mod 1.1.11. After following the instructions from this link: http://custom.simplemachines.org/mods/index.php?action=parse, I get the following message when I try to start the install by clicking on Install.php

Fatal error: Function name must be a string in /misc/10/000/246/127/0/user/web/dailyanarchist.com/forum/install.php on line 28

I don't know what this means. Any help?
Title: Re: Ad Management mod
Post by: vbgamer45 on May 01, 2010, 07:38:59 PM
I dont think you grabed the right package make sure you are using the SMF 1.1.x version
Title: Re: Ad Management mod
Post by: WindowsNT on May 02, 2010, 05:59:03 AM
Quote from: gisfreak on May 01, 2010, 10:44:24 AM

hum have you activate it through ads management control panel, and make sure that you uncheck the "disable ads for admin" function  ;)


I think so. Disable ads for admin was off anyway. I 've enabled the "Display ads on every page on the top of the page".  What do you mean "activate" it ?

Title: Re: Ad Management mod
Post by: abidejaz4u on May 02, 2010, 11:39:54 AM
Quote from: abidejaz4u on April 20, 2010, 05:28:45 AM
Quote from: sawz on April 12, 2010, 08:37:51 AM
Quote from: abidejaz4u on April 12, 2010, 08:22:56 AM
Quote from: flapjack on April 11, 2010, 03:10:51 PM
set proper permissions for other groups

from where

look in Admin > Permissions
edit the proper group, you'll see where you can allow the ad mod


On there Enable ads check is on in every group ..now

i m still facing it bro any body there for help me
Title: Re: Ad Management mod
Post by: vbgamer45 on May 02, 2010, 03:02:32 PM
Maybe not installed on your theme?
Title: Re: Ad Management mod
Post by: WindowsNT on May 03, 2010, 02:36:00 PM
I use the default theme. It doesn't work :(
Title: Re: Ad Management mod
Post by: smp420 on May 04, 2010, 12:36:51 AM
what are you putting into the ad block exactly?
Title: Re: Ad Management mod
Post by: WindowsNT on May 04, 2010, 01:48:50 AM
Anything from a simple html tag to the google ads code.

<script type="text/javascript"><!--
google_ad_ etc ... >


Does it require something in special format ?

Title: Re: Ad Management mod
Post by: WindowsNT on May 04, 2010, 10:41:31 AM
I should note here that this is an upgrade from RC 2 to RC 3 using the web installer script. After the update i tried the Ad management mod.

Perhaps there are known incompatibilities with RC 3 ?
Title: Re: Ad Management mod
Post by: kinderkyle on May 04, 2010, 07:57:56 PM
I can't install ad management mod i keep getting an error... i would be willing to pay for anyone that can fix this.  PM me for details.

   8.   Execute Modification   ./Sources/ManagePermissions.php   Test failed
   1.   Add After   ./Sources/ManagePermissions.php   Test failed

I am using 2.0 RC3

the other mods i have installed are: tagging system, pretty urls, effectively remove smf logo, sitemap, and google analytics code

Please help
Title: Re: Ad Management mod
Post by: vbgamer45 on May 04, 2010, 09:16:18 PM
I would install that part manually
Title: Re: Ad Management mod
Post by: WindowsNT on May 05, 2010, 04:26:54 AM
I tried a clean installation and still the ad management doesn't show. Is index.template.php the one which is changed ?
For some reason I don't think that ads.template.php is called.  Could it be some unix permission issues in the files  ?

Thanks.
Title: Re: Ad Management mod
Post by: RomiReinner on May 06, 2010, 06:17:43 PM
HI there,

I used setup my site and am using the "Arılı Tema" theme. Well, the thing is that i am not able to see my ads when i use that theme. Is there anyway I can continue using the same theme because I don't want to sacrifice such a great mod for the theme. Can you guys please help me by giving me a fix on this?

Continue the great work. The mod is awesome. ;D
Title: Re: Ad Management mod
Post by: Arantor on May 06, 2010, 06:19:08 PM
RomiReinner: What version of SMF? If you're using 1.1, you will have to manually edit the theme to add the code from the mod.
Title: Re: Ad Management mod
Post by: RomiReinner on May 07, 2010, 03:06:54 AM
@Arantor:

Extremely sorry dude, i forgot to add it. Am using 1.1.11. Can you tell me how to do it? Am weak at coding. But any help will be appreciated.

Thanks in advance.
Title: Re: Ad Management mod
Post by: Arantor on May 07, 2010, 03:32:12 AM
You'll need to post your theme's index.template.php file because without that we can't help.
Title: Re: Ad Management mod
Post by: RomiReinner on May 07, 2010, 02:27:59 PM
Sorry am new to the forum. Didnt know that. Well the lines were more so i have just attached the index.template.php ..hope it helps u :).
Title: Re: Ad Management mod
Post by: Sgt P on May 10, 2010, 03:17:21 PM
I'm new at this, so please bare with me!

I'm using SMF1.1.11, with Classic YaBB SE Theme.  And I have the Ad Management 2.3.6.1 installed.
But, I'm not seeing the ad's I'm trying to test.

I've got the permissions enabled, and the "disable" buttons are turned off.  I've chosen the location applied to all boards.

What else do I need to do??

Thanks in advance...
Title: Re: Ad Management mod
Post by: codinandlearn on May 10, 2010, 05:19:49 PM
I couldn't get the ad mod to show for the life of me. But after a fresh install off 1.1.11 with the default theme it works perfect. Try making it the first mod you enable and I honestly think it should be fine.
Title: Re: Ad Management mod
Post by: vbgamer45 on May 10, 2010, 05:25:02 PM
Glad you got it working
Title: Re: Ad Management mod
Post by: gisfreak on May 10, 2010, 07:01:24 PM
hello mate  ;)

i use version 2.3.1 and want to upgrade to 2.3.6.1 so should i uninstall prev version first or just install the latest over the old version ?

thanx  ;D
Title: Re: Ad Management mod
Post by: vbgamer45 on May 10, 2010, 07:02:41 PM
Yeah I would suggest it if you can.
Title: Re: Ad Management mod
Post by: gisfreak on May 10, 2010, 07:07:02 PM
Quote from: vbgamer45 on May 10, 2010, 07:02:41 PM
Yeah I would suggest it if you can.

what it refers too?

uninstall or overwrite ?  ;D
Title: Re: Ad Management mod
Post by: vbgamer45 on May 10, 2010, 08:41:02 PM
uninstall if you can if not then overwrrite.
Title: Re: Ad Management mod
Post by: nashamiki on May 10, 2010, 09:20:32 PM
Hello,
I'm running my forum at http://ecovoice.net/forum/index.php on SMF 1.1.7 and have already installed your mod 2.6.3.1 and setup ads in several positions earlier. However all of a sudden since about 2 days ago when I attempt to make any changes to the ads, like adding new script, or deleting old ads I keep on ending up on a "403 forbidden" page which looks like the attached image below.

Frankly I am stumped because as the Administrator with all the permissions I just cannot understand why I am being denied permission to access "admod". Any advice on this ?

Title: Re: Ad Management mod
Post by: vbgamer45 on May 10, 2010, 09:34:55 PM
Looks like a seo url mod issue rewriting the url
Title: Re: Ad Management mod
Post by: nashamiki on May 10, 2010, 09:47:36 PM
OK that was spot-on.  It was the "pretty urls" mod, which I have just uninstalled, and it appears to have solved the problem.

Thanks very much.
Title: Re: Ad Management mod
Post by: vbgamer45 on May 10, 2010, 09:50:34 PM
Glad you got it working!
Title: Re: Ad Management mod
Post by: 2times on May 11, 2010, 01:33:57 AM
I have a question about the "reports"

Are the "hits" just impressions? Or does it actually somehow count if it was clicked??
Title: Re: Ad Management mod
Post by: smp420 on May 11, 2010, 02:22:41 AM
If I remember correctly it is just impressions. But its been a while since I used this mod.
Title: Re: Ad Management mod
Post by: gisfreak on May 11, 2010, 04:32:02 AM
Quote from: vbgamer45 on May 10, 2010, 08:41:02 PM
uninstall if you can if not then overwrrite.

yap, thanx mate  ;)
Title: Re: Ad Management mod
Post by: waqarhassan on May 12, 2010, 08:26:57 AM
Ad management mod not working in smf 2.0 rc2 why? Need help thanks

I have a forum that is  smf 2.0 rc2 its theme is default .

I install ad management mod but its not show ads any where that listed in it.
when i save my ads its safe all right, ad management working properly,  but ads not show.

anybody help me thanks
Title: Re: Ad Management mod
Post by: vbgamer45 on May 12, 2010, 11:08:46 AM
Upgrade to RC3
Title: Re: Ad Management mod
Post by: !RFAN on May 13, 2010, 02:09:08 AM
thanx for this valuable mod..

m using smf2 rc3... on default theme i got one error in messageindex.template.php but on my custom theme i was totally unable to make changes manually coz i rcd 4 errors in index.template.php of my custom theme... please help me...

here is my index.template.php
Title: Re: Ad Management mod
Post by: vbgamer45 on May 13, 2010, 07:50:13 AM
I have a theme install service starting at $15 per theme.
Title: Re: Ad Management mod
Post by: !RFAN on May 14, 2010, 05:43:55 AM
okay let me earn something first by using global headers and footer...then i will contact u :p
Title: Re: Ad Management mod
Post by: giveaway365.com on May 14, 2010, 06:47:48 AM
I already earned $2 till now from my forum. :P
Title: Re: Ad Management mod
Post by: vbgamer45 on May 14, 2010, 12:37:06 PM
Congrats every bit helps!
Title: Re: Ad Management mod
Post by: RomiReinner on May 15, 2010, 04:52:33 PM
Quote from: RomiReinner on May 07, 2010, 02:27:59 PM
Sorry am new to the forum. Didnt know that. Well the lines were more so i have just attached the index.template.php ..hope it helps u :).

hey there...i actually have no idea how much time to wait for replies so am reminding u again. Were u able to add the ad management mod to the theme?

Thanks again :).
Title: Re: Ad Management mod
Post by: vbgamer45 on May 15, 2010, 09:50:26 PM
I have theme install service if you need it done for a custom theme.
Title: Re: Ad Management mod
Post by: !RFAN on May 16, 2010, 02:18:39 AM
Quote from: giveaway365.com on May 14, 2010, 06:47:48 AM
I already earned $2 till now from my forum. :P

i earned $2.36 using global headers and global footer mod :p
Title: Re: Ad Management mod
Post by: derby on May 16, 2010, 05:46:36 AM
PLEASE MY GOOGLE ADS IS NOT SHOWING TO ME AS AN ADMIN OR MEMBER,PLEASE I NID HELLP
Title: Re: Ad Management mod
Post by: vbgamer45 on May 16, 2010, 06:51:56 AM
Check your code.
Title: Re: Ad Management mod
Post by: RomiReinner on May 16, 2010, 03:42:05 PM
Quote from: vbgamer45 on May 15, 2010, 09:50:26 PM
I have theme install service if you need it done for a custom theme.

Hmm sorry dont have the cash right now.coz it boils to lot of money in my country and i have just started :(.
Is there any other way u could help me? can u let me know what to look for in the theme.php page?
maybe i could use my limited knowledge and find something out?
Title: Re: Ad Management mod
Post by: smp420 on May 17, 2010, 01:19:49 AM
Go to the mod page http://custom.simplemachines.org/mods/index.php?mod=255 slect the mod version and smf version and click parse it tells you what to edit.
Title: Re: Ad Management mod
Post by: RomiReinner on May 17, 2010, 09:07:40 AM
Quote from: smp420 on May 17, 2010, 01:19:49 AM
Go to the mod page http://custom.simplemachines.org/mods/index.php?mod=255 slect the mod version and smf version and click parse it tells you what to edit.

Awesome dude..thanks a LOT...i think i got it now.
:D.
Title: Re: Ad Management mod
Post by: derby on May 17, 2010, 01:08:26 PM
Quote from: vbgamer45 on May 16, 2010, 06:51:56 AM
Check your code.
yes i have checked it..it is correct but not showing
Title: Re: Ad Management mod
Post by: vbgamer45 on May 17, 2010, 01:09:23 PM
Do you see the adsense code on view source
Title: Re: Ad Management mod
Post by: derby on May 17, 2010, 01:34:38 PM
Quote from: vbgamer45 on May 17, 2010, 01:09:23 PM
Do you see the adsense code on view source
it is showing on other people's computer but its not showing on mine
Title: Re: Ad Management mod
Post by: vbgamer45 on May 17, 2010, 01:48:36 PM
maybe you don't have them enabled for admins in settings or got ad block
Title: Re: Ad Management mod
Post by: derby on May 17, 2010, 02:03:30 PM
as members/admin/guest it does not show..i tryed it on I.E its showing but i dont know why its not showing on Google Chrome/Firefox..any solution?
Title: Re: Ad Management mod
Post by: vbgamer45 on May 17, 2010, 02:10:59 PM
Adblock??
Title: Re: Ad Management mod
Post by: RomiReinner on May 17, 2010, 03:25:38 PM
Quote from: smp420 on May 17, 2010, 01:19:49 AM
Go to the mod page http://custom.simplemachines.org/mods/index.php?mod=255 slect the mod version and smf version and click parse it tells you what to edit.

Well just a small doubt. Will it work on custom themes and themes from other authors too? Will i be able to use ad management mod after editing all those files on different themes too?

:)
Title: Re: Ad Management mod
Post by: smp420 on May 18, 2010, 01:21:41 AM
Quote from: RomiReinner on May 17, 2010, 03:25:38 PM
Quote from: smp420 on May 17, 2010, 01:19:49 AM
Go to the mod page http://custom.simplemachines.org/mods/index.php?mod=255 slect the mod version and smf version and click parse it tells you what to edit.

Well just a small doubt. Will it work on custom themes and themes from other authors too? Will i be able to use ad management mod after editing all those files on different themes too?

:)
You can use the mod on other themes but the code you are looking for might not be the same. It is usually pretty easy though.

Quote from: derby on May 17, 2010, 02:03:30 PM
as members/admin/guest it does not show..i tryed it on I.E its showing but i dont know why its not showing on Google Chrome/Firefox..any solution?
If it works in one browser but not another it might be a problem with the code you put in the ad block. Would you mind posting this.
Title: Re: Ad Management mod
Post by: Kevin Deguara on May 18, 2010, 07:02:22 AM
Is it possible to add an e-mail hyperlink to the code so that when the banner/ad is clicked, it will open up an e-mail client to send an e-mail?

Thanks in advance,

Kevin.
Title: Re: Ad Management mod
Post by: MakeItWork on May 18, 2010, 07:10:34 AM
This mod seriously rocks!
Title: Re: Ad Management mod
Post by: vbgamer45 on May 18, 2010, 10:57:13 AM
Thanks for your support!
Title: Re: Ad Management mod
Post by: ekoree on May 18, 2010, 12:51:27 PM
Thank you for this mod.
However i have not been able to get it to work on my site ekoonibajeng.com. Am on 1.1.11. Perhaps it has to do with the theme(DK).
Am not conversant with codes. Can't apply google analytics code, add this, etc. as well. Not even global headers and footers is working. I have not been fortunate to receive help, in spite of my several appeals.
Please can you help, Vbgamer45, even if I have to pay.
Thanks
Title: Re: Ad Management mod
Post by: vicram10 on May 18, 2010, 01:05:05 PM
Quote from: ekoree on May 18, 2010, 12:51:27 PM
Thank you for this mod.
However i have not been able to get it to work on my site ekoonibajeng.com. Am on 1.1.11. Perhaps it has to do with the theme(DK).
Am not conversant with codes. Can't apply google analytics code, add this, etc. as well. Not even global headers and footers is working. I have not been fortunate to receive help, in spite of my several appeals.
Please can you help, Vbgamer45, even if I have to pay.
Thanks

you installed the mod Ad management, okay
now you needed, modify your index.tmplate.php of your Custom theme..
then, attach, here your index.template.php (of your custom theme)
Title: Re: Ad Management mod
Post by: ekoree on May 18, 2010, 01:30:22 PM
Thanks for your prompt response. Am not conversant with coding. Previous attempts at working there has resulted in errors. That is why I am soliciting for help
Title: Re: Ad Management mod
Post by: Arantor on May 18, 2010, 01:31:42 PM
That's why vicram is asking for the file that needs to be modified so he can modify it for you...
Title: Re: Ad Management mod
Post by: vicram10 on May 18, 2010, 01:39:03 PM
Quote from: Arantor on May 18, 2010, 01:31:42 PM
That's why vicram is asking for the file that needs to be modified so he can modify it for you...

exactly
Title: Re: Ad Management mod
Post by: ekoree on May 18, 2010, 01:42:01 PM
Thanks both. Cant seem to figure how to attach on this forum, as well. Pls help as well
Title: Re: Ad Management mod
Post by: vicram10 on May 18, 2010, 01:46:53 PM
Quote from: ekoree on May 18, 2010, 01:42:01 PM
Thanks both. Cant seem to figure how to attach on this forum, as well. Pls help as well

when you reply this topic, before the "Post Button" you can see a link
"Additional Options", click there, and you can see the option where you can attach or upload the file
Title: Re: Ad Management mod
Post by: ekoree on May 18, 2010, 01:57:37 PM
Thanks. Pls find attcahed the page
Title: Re: Ad Management mod
Post by: ekoree on May 18, 2010, 02:03:50 PM
Thanks. Internet link slow here.
Title: Re: Ad Management mod
Post by: vicram10 on May 18, 2010, 02:21:40 PM
not, you must enter via FTP to your hosting, in this zone Themes/your_theme/index.template.php
download this file and upload here..
this is the right way
Title: Re: Ad Management mod
Post by: ekoree on May 18, 2010, 02:26:47 PM
Will do that and revert now. Thanks
Title: Re: Ad Management mod
Post by: ekoree on May 19, 2010, 05:44:38 AM
Vicram. Thanks a million. So sorry, i have not been able to access my cpanel. My host says there is a phishing problem of sorts they are sorting out.
As soon as i access, i will upload
Title: Re: Ad Management mod
Post by: ekoree on May 19, 2010, 07:45:07 AM
Finally have the template attached. Thanks for the support.
Title: Re: Ad Management mod
Post by: vicram10 on May 19, 2010, 08:52:16 AM
okay, try with these files....
if you have any problem, just reply to this topic
Title: Re: Ad Management mod
Post by: forumnepali on May 19, 2010, 10:16:22 AM
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Uninstall Actions "Ad Managment" Installing this package will perform the following actions:
  Type Action Description
1. Execute Modification ./index.php Test failed
  1. Replace ./index.php Test successful
  2. Replace ./index.php Test successful
  3. Replace ./index.php Test failed

i want to uninstal this  and i want to install This mod SimpleAds

Thank In Advance
Title: Re: Ad Management mod
Post by: ekoree on May 19, 2010, 10:39:53 AM
Cannot thank Vicram enough. Just to confirm - am to upload these files overwriting what was there?
Title: Re: Ad Management mod
Post by: vicram10 on May 19, 2010, 10:47:33 AM
Quote from: ekoree on May 19, 2010, 10:39:53 AM
Cannot thank Vicram enough.

You're welcome

Quote from: ekoree on May 19, 2010, 10:39:53 AM
Just to confirm - am to upload these files overwriting what was there?

first make a backup of your original files, then overwrite the files




@forumnepali: SMF version?
Title: Re: Ad Management mod
Post by: forumnepali on May 19, 2010, 10:51:17 AM
forum verision is Powered by SMF 2.0 RC3
Title: Re: Ad Management mod
Post by: vicram10 on May 19, 2010, 10:54:59 AM
attach your index.php (root file)
another mod will have changed that part
Title: Re: Ad Management mod
Post by: forumnepali on May 19, 2010, 11:01:59 AM
please give me more info where can i find that index.php file ??
Title: Re: Ad Management mod
Post by: forumnepali on May 19, 2010, 11:03:49 AM
i think you need this index file path is here /public_html/index.php

Title: Re: Ad Management mod
Post by: vicram10 on May 19, 2010, 11:12:32 AM
okay, unistall (ignoring the error), later (finish the uninstall), replace, your index.php
Title: Re: Ad Management mod
Post by: forumnepali on May 19, 2010, 11:15:11 AM
ok let me try
Title: Re: Ad Management mod
Post by: ekoree on May 19, 2010, 11:15:53 AM
Thanks. Ads displayed, except they are towers, messing up the whole page. Also, this error msg was dsiplayed at the top :
Parse error: syntax error, unexpected '<' in /home/ekooniba/public_html/Sources/Load.php(1733) : eval()'d code(17) : eval()'d code on line 1

2. The menu bar at the top for  is no longer displaying
3.Can i still modify ads in the mod, or replace the google code without reverting to you for help on the files again ?
Title: Re: Ad Management mod
Post by: forumnepali on May 19, 2010, 11:48:41 AM
Yes Thanks its working but Error is showing

PLease se logs

http://sad.com/index.php?action=admin;area=ads;sa=add;b4650ccfb=db87a208d37643fd2227e480f41522a88: Undefined index: descriptionFile: /home/sd/public_html/Themes/default/GenericMenu.template.php
Line: 284

Thank you for hepling me
Title: Re: Ad Management mod
Post by: vicram10 on May 19, 2010, 01:24:28 PM
Quote from: ekoree on May 19, 2010, 11:15:53 AM
Thanks. Ads displayed, except they are towers, messing up the whole page. Also, this error msg was dsiplayed at the top :
Parse error: syntax error, unexpected '<' in /home/ekooniba/public_html/Sources/Load.php(1733) : eval()'d code(17) : eval()'d code on line 1

I do not know which is the reason for your error, because the added code is correct
but, what is the code you want to add? (in your ad management panel)

Quote from: ekoree on May 19, 2010, 11:15:53 AM
2. The menu bar at the top for  is no longer displaying

Not understand, any "screenshot" to see

Quote from: ekoree on May 19, 2010, 11:15:53 AM
3.Can i still modify ads in the mod, or replace the google code without reverting to you for help on the files again ?

yes, you can modify (replace) any ads in any moment, in your ad management panel...




Quote from: forumnepali on May 19, 2010, 11:48:41 AM
Yes Thanks its working but Error is showing
PLease se logs
http://sad.com/index.php?action=admin;area=ads;sa=add;b4650ccfb=db87a208d37643fd2227e480f41522a88: Undefined index: descriptionFile: /home/sd/public_html/Themes/default/GenericMenu.template.php
Line: 284
Thank you for hepling me

error only came in the index.php (when you uninstalling) or in another file?
Title: Re: Ad Management mod
Post by: ekoree on May 19, 2010, 02:43:15 PM
Sorry, I have been having issues with the internet connection. Its slow. It went off as we were conversing. Now, the menu bar and logo are displaying again. However, the error msg displayed again. Dont know if this is a function of page not fully loading as the internet link is so slow. The site is www.ekoonibajeng.com
Thank you so much
Title: Re: Ad Management mod
Post by: ekoree on May 19, 2010, 03:48:20 PM
Thanks vicram.
i have not been able to place the google analytics, addthis codes, not knowing where to place them.
Also couldn't get the global headers and footers mod, and baker's dozen pages mod to work.
I really wanted a home page with hot topics only, perhaps i need a redirect function for that.
You have been of tremendous help to me, already.
God bless you.

Title: Re: Ad Management mod
Post by: vicram10 on May 19, 2010, 05:52:29 PM
QuoteGod bless you.

always blesses me, giving health, to my family

you're welcome, but I need more explanation for this part

Quote from: ekoree on May 19, 2010, 03:48:20 PM
i need a redirect function for that.
Title: Re: Ad Management mod
Post by: Robin1989 on May 19, 2010, 07:08:23 PM
hey ive had a quick look through the features listed on the first page and couldnt see a feature for targeting ads to certain coutries/areas like have it show 1 ad for usa and a different one for europe and asia etc.  if it isnt a feature yet could i please request it as a feature
Title: Re: Ad Management mod
Post by: ekoree on May 20, 2010, 01:40:27 AM
Quote from: vicram10 on May 19, 2010, 05:52:29 PM
QuoteGod bless you.

always blesses me, giving health, to my family

you're welcome, but I need more explanation for this part

Quote from: ekoree on May 19, 2010, 03:48:20 PM
i need a redirect function for that.
Thanks. What i want is a fresh home page which will carry select hot topics only, qith categories and boards lined up at the top. An example of such is found on this site - www.nairaland.com. Really don't know if what was used id the redirect feature or mod.
Title: Re: Ad Management mod
Post by: RomiReinner on May 20, 2010, 03:52:04 AM
Hey there.

as per your instructions i parsed the page for my smf 1.1.11 and inserted the stuff in my theme index.template.php and boardindex.template.php , but i was able to insert everything except the line which says </td> ...i have found 4 such </td>s so am not sure which one to use. Can you help me with this?

Also my theme files does not have Display.template.php , MessageIndex.template.php . Am i doing something wrong?
Thanks in advance :D.
Title: Re: Ad Management mod
Post by: ekoree on May 20, 2010, 06:08:28 AM
Hi Vicram, don't know what to do. Tried to work in the ad mgt mod to change the way the ads are displayed. Now the ads no longer display at all with this error msg being displayed instead : Parse error: syntax error, unexpected '<' in /home/ekooniba/public_html/Sources/Load.php(1733) : eval()'d code(17) : eval()'d code on line 1
Title: Re: Ad Management mod
Post by: vicram10 on May 20, 2010, 09:13:41 AM
Quote from: ekoree on May 20, 2010, 01:40:27 AM
Really don't know if what was used id the redirect feature or mod.
mmm... I don't know

Quote from: ekoree on May 20, 2010, 06:08:28 AM
Hi Vicram, don't know what to do. Tried to work in the ad mgt mod to change the way the ads are displayed. Now the ads no longer display at all with this error msg being displayed instead : Parse error: syntax error, unexpected '<' in /home/ekooniba/public_html/Sources/Load.php(1733) : eval()'d code(17) : eval()'d code on line 1

What code you add in the AD Management?
Title: Re: Ad Management mod
Post by: ekoree on May 20, 2010, 09:31:17 AM
Quote from: vicram10 on May 20, 2010, 09:13:41 AM
Quote from: ekoree on May 20, 2010, 01:40:27 AM
Really don't know if what was used id the redirect feature or mod.
mmm... I don't know

Quote from: ekoree on May 20, 2010, 06:08:28 AM
Hi Vicram, don't know what to do. Tried to work in the ad mgt mod to change the way the ads are displayed. Now the ads no longer display at all with this error msg being displayed instead : Parse error: syntax error, unexpected '<' in /home/ekooniba/public_html/Sources/Load.php(1733) : eval()'d code(17) : eval()'d code on line 1


What code you add in the AD Management?

I did not add any code. The google adsense code placed in the content part was already there. Was trying to change the size or placement position through these options :

Which boards should this ad display in 
Display ads within posts 
Display ads after categories 
Type  HTML PHP
Display ads on every page right below the menu 
Display ads on board index 
Display ads on message index 
Display ads on the post page 
Display ads after the last post 
Display ads on every page on the top of the page 
Display ads in the welcome user area 
Display ads on the bottom of the page 
Display ads on every page as a tower on the left side 
Display ads on every page as a tower on the right side 
Display ads under child boards 

Title: Re: Ad Management mod
Post by: vicram10 on May 20, 2010, 09:59:39 AM
yes, i know...
just want to see a screenshot of that part to see if it's okay

anyway use this mod, with this mod you can see the exact error (for example, your error is not in the load.php if not elsewhere)

Disable Template Eval (http://custom.simplemachines.org/mods/index.php?mod=2054)
Title: Re: Ad Management mod
Post by: ekoree on May 20, 2010, 10:41:28 AM
Pls see attached home page with error msg
Title: Re: Ad Management mod
Post by: vicram10 on May 20, 2010, 11:53:17 AM
Quote from: vicram10 on May 20, 2010, 09:59:39 AM
anyway use this mod, with this mod you can see the exact error (for example, your error is not in the load.php if not elsewhere)
Disable Template Eval (http://custom.simplemachines.org/mods/index.php?mod=2054)
Title: Re: Ad Management mod
Post by: ekoree on May 20, 2010, 12:14:32 PM
Vicram, i have instaled the mod. The error msg is still showing. what am i supposed to do ? Disable template ?
Title: Re: Ad Management mod
Post by: Arantor on May 20, 2010, 12:26:15 PM
Quote from: ekoree on May 20, 2010, 12:14:32 PM
Vicram, i have instaled the mod. The error msg is still showing. what am i supposed to do ? Disable template ?

Turning on disable template eval won't prevent the error. But it helps diagnose it better.
Title: Re: Ad Management mod
Post by: vicram10 on May 20, 2010, 12:47:13 PM
Quote from: Arantor on May 20, 2010, 12:26:15 PM
Turning on disable template eval won't prevent the error. But it helps diagnose it better.

exactly...

@ekoree:

see this image (so you'll know where the option to activate) http://custom.simplemachines.org/mods/index.php?action=download;mod=2054;id=110601;image, you must activate the option "Disable Template Evaluation", so we can know where exactly is the error
Title: Re: Ad Management mod
Post by: ekoree on May 20, 2010, 01:29:09 PM
Thanks. I activated it. This is the msg that came up :
Parse error: syntax error, unexpected '<' in /home/ekooniba/public_html/Themes/DKTHEME/index.template.php(183) : eval()'d code on line 1
Title: Re: Ad Management mod
Post by: ekoree on May 20, 2010, 01:52:19 PM
Parse error: syntax error, unexpected '<' in /home/ekooniba/public_html/Themes/DKTHEME/BoardIndex.template.php(17) : eval()'d code on line 1

It equally displayed this message on the front
Title: Re: Ad Management mod
Post by: ekoree on May 21, 2010, 01:55:38 PM
Hi Vicram. Thanks for everything. Guess, you have been otherwise busy. The problem remains unresolved. I am still in need of a reoslution of all the issues i have raised, even if I have to pay for it.
Title: Re: Ad Management mod
Post by: ekoree on May 21, 2010, 05:15:31 PM
Thanks Vicram, I have been able to resolve the issues. Thanks to all.
Title: Re: Ad Management mod
Post by: vicram10 on May 21, 2010, 08:54:31 PM
(sorry for responding late, I'm busy (I'm the manager of my company))

mmm... I don't know, please, You can do a screenshot, when you edit the ad to watch?..
because, I don't know why you have that error
Title: Re: Ad Management mod
Post by: RomiReinner on May 22, 2010, 02:45:09 AM
Quote from: RomiReinner on May 20, 2010, 03:52:04 AM
Hey there.

as per your instructions i parsed the page for my smf 1.1.11 and inserted the stuff in my theme index.template.php and boardindex.template.php , but i was able to insert everything except the line which says </td> ...i have found 4 such </td>s so am not sure which one to use. Can you help me with this?

Also my theme files does not have Display.template.php , MessageIndex.template.php . Am i doing something wrong?
Thanks in advance :D.

Can i get some help too please? :C
Title: Re: Ad Management mod
Post by: vicram10 on May 22, 2010, 08:55:16 AM
Quote from: RomiReinner on May 20, 2010, 03:52:04 AM
Hey there.
as per your instructions i parsed the page for my smf 1.1.11 and inserted the stuff in my theme index.template.php and boardindex.template.php , but i was able to insert everything except the line which says </td> ...i have found 4 such </td>s so am not sure which one to use. Can you help me with this?

the <td> corresponds to the Welcome area (in your theme, index.template.php)

Quote from: RomiReinner on May 20, 2010, 03:52:04 AM
Also my theme files does not have Display.template.php , MessageIndex.template.php . Am i doing something wrong?
Thanks in advance :D.

If your theme does not have the files, you must change the files (Display.template, MessageIndex.template, etc..) of the theme default
Title: Re: Ad Management mod
Post by: RomiReinner on May 22, 2010, 12:06:21 PM
Great!

Thanks a lot.i guess i got it now :D.

Title: Re: Ad Management mod
Post by: vbgamer45 on May 22, 2010, 12:14:43 PM
Glad you got it!
Title: Re: Ad Management mod
Post by: iSutton59 on May 22, 2010, 02:31:33 PM
Hi,

i installed admgt mod via packages under admin tab..

where it says "Enter Adsense Code,"  i've tried several from tutorials, forum posts, and my adsense account itself where i generated the code..

tried using HTML or PHP, in Admanagement Mod but nothing will make the ads show up on the home page or forums..

I'm using the regular basic theme.  Any help with this?  Thanks much.

PS I am hosting thru my computer via Wampserver.
Title: Re: Ad Management mod
Post by: GMCbris on May 23, 2010, 05:34:02 AM
Hi can someone have a look at my display.template file

I keep getting parse errors

thanks in advance

GMC
Title: Re: Ad Management mod
Post by: Liam. on May 23, 2010, 06:53:09 AM
GMCbris, what sort of parse errors, and where in the file?
Title: Re: Ad Management mod
Post by: vbgamer45 on May 23, 2010, 10:30:22 AM
File looks ok didn't see any php parse errors in it.
Title: Re: Ad Management mod
Post by: Achilles. on May 23, 2010, 01:39:44 PM
So yeah, I've successfully installed Ad Management Mod... BUT I got this parse error:
Parse error: syntax error, unexpected ':' in /home/bautista/public_html/home/Sources/Load.php(2102) : eval()'d code(351) : eval()'d code on line 1

How will I be able to fix it? Attached /Load.php


Thanks!
Title: Re: Ad Management mod
Post by: smp420 on May 23, 2010, 01:58:16 PM
In phpmyadmin run this query to disable template eval
REPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);
Post the new error as well as the file.
Title: Re: Ad Management mod
Post by: Outdoor-Fishing on May 24, 2010, 02:58:03 AM
Ad management mod works great! Thanks to the author(s) for putting the time and effort to create this mod.

I just have a quick question about running separate ad campaigns. Right now if you take a look at my site outdoor-fishing.moc then you should be able to see two ad banners placed side by side. These are coded to run in one ad. I want to have these ads run in separate ad campaigns but still show side by side. Another words, I want to have two separate ad campaigns in one ad "block".

So, is it possible?
Title: Re: Ad Management mod
Post by: Achilles. on May 24, 2010, 03:12:05 AM
Quote from: smp420 on May 23, 2010, 01:58:16 PM
In phpmyadmin run this query to disable template eval
REPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);
Post the new error as well as the file.

I did run the query on the PhpMyadmin... The parse error changed to:

Parse error: syntax error, unexpected $end in /home/bautista/public_html/home/Themes/darkmodern_203/index.template.php(351) : eval()'d code on line 1

index.template.php file attached. Thanks!
Title: Re: Ad Management mod
Post by: smp420 on May 24, 2010, 03:16:08 AM
I told you how to do it get on phpmyadmin and run that query then the error will change post the new error you get and the file it is in.
Title: Re: Ad Management mod
Post by: Achilles. on May 24, 2010, 03:17:31 AM
Quote from: smp420 on May 24, 2010, 03:16:08 AM
I told you how to do it get on phpmyadmin and run that query then the error will change post the new error you get and the file it is in.

Yeah, the error changed. And I've attached it on my reply above. Thanks!
Title: Re: Ad Management mod
Post by: GMCbris on May 24, 2010, 05:01:18 AM
Quote from: Liam. on May 23, 2010, 06:53:09 AM
GMCbris, what sort of parse errors, and where in the file?
Quote from: vbgamer45 on May 23, 2010, 10:30:22 AM
File looks ok didn't see any php parse errors in it.
Ummmm

Would you believe I upped the file that doesnt have the problems

I am a dill

The issue I am having is this

when looking for this (from the Installation Instructions for 1.1.11)

</td></tr>';
}


my template doesnt have this exact code - and no matter what I try to insert the required piece of code I get a parse error

I am a novice coder at best, so what I have tried is obviously on the wrong track

Can someone try insert the required code for me

I would appreciate the assistance

Cheers and thanks for getting to me!!

GMCbris

Title: Re: Ad Management mod
Post by: Achilles. on May 24, 2010, 07:29:32 AM
Quote from: Achilles. on May 24, 2010, 03:12:05 AM
Quote from: smp420 on May 23, 2010, 01:58:16 PM
In phpmyadmin run this query to disable template eval
REPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);
Post the new error as well as the file.

I did run the query on the PhpMyadmin... The parse error changed to:

Parse error: syntax error, unexpected $end in /home/bautista/public_html/home/Themes/darkmodern_203/index.template.php(351) : eval()'d code on line 1

index.template.php file attached. Thanks!
Title: Re: Ad Management mod
Post by: vbgamer45 on May 24, 2010, 12:53:29 PM
Looks like you have an error in your ad code itself that you added as an ad.
Look in your ads table in phpmyadmin and remove your ad entry.
Title: Re: Ad Management mod
Post by: Achilles. on May 24, 2010, 01:49:48 PM
Quote from: vbgamer45 on May 24, 2010, 12:53:29 PM
Looks like you have an error in your ad code itself that you added as an ad.
Look in your ads table in phpmyadmin and remove your ad entry.

It worked, thanks! :)
Title: Re: Ad Management mod
Post by: vbgamer45 on May 24, 2010, 03:44:10 PM
Glad you got it working
Title: Re: Ad Management mod
Post by: Outdoor-Fishing on May 24, 2010, 09:07:22 PM
Quote from: Outdoor-Fishing on May 24, 2010, 02:58:03 AM
Ad management mod works great! Thanks to the author(s) for putting the time and effort to create this mod.

I just have a quick question about running separate ad campaigns. Right now if you take a look at my site outdoor-fishing.moc then you should be able to see two ad banners placed side by side. These are coded to run in one ad. I want to have these ads run in separate ad campaigns but still show side by side. Another words, I want to have two separate ad campaigns in one ad "block".

So, is it possible?

My question got buried quick! Anyone?
Title: Re: Ad Management mod
Post by: vbgamer45 on May 24, 2010, 09:13:09 PM
Not possible at this time.
Title: Re: Ad Management mod
Post by: Outdoor-Fishing on May 24, 2010, 09:56:54 PM
Quote from: vbgamer45 on May 24, 2010, 09:13:09 PM
Not possible at this time.

Ok. I would be interested in purchasing this feature if it ever comes out.

A good example can be seen at crackroll-dot-com (unfortunately a VB site) Like this site, my forum also has a set width.

Throw the idea around and if you come up with something let me know.
Title: Re: Ad Management mod
Post by: Kmam on May 24, 2010, 09:57:33 PM
I use 1.1.11 and my ad management is acting screwy. When I add an ad it adds three of the same banner... I have uninstalled it and deleted it then reinstalled it but it automaticlly shows the ad i put in before i deleted it. Is there something i need to clear out to make it work right again?
Title: Re: Ad Management mod
Post by: vbgamer45 on May 24, 2010, 10:24:38 PM
Recheck all the files that ad manager modified and see if any were duplicated.
Title: Re: Ad Management mod
Post by: Kmam on May 24, 2010, 10:38:36 PM
Dont see any duplicates any other ideas?
Title: Re: Ad Management mod
Post by: vbgamer45 on May 25, 2010, 01:06:15 PM
Quote from: Outdoor-Fishing on May 24, 2010, 09:56:54 PM
Quote from: vbgamer45 on May 24, 2010, 09:13:09 PM
Not possible at this time.

Ok. I would be interested in purchasing this feature if it ever comes out.

A good example can be seen at crackroll-dot-com (unfortunately a VB site) Like this site, my forum also has a set width.

Throw the idea around and if you come up with something let me know.
You can somewhat do it in Ad Seller Pro. Since Ad Seller Pro allows you to define custom ad locations. You can create as many custom ad locations as needed and just place each ad location side by side to get the affect needed.
Title: Re: Ad Management mod
Post by: vomega on May 27, 2010, 12:34:32 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF

version 1.11.1 

any updates?
Title: Re: Ad Management mod
Post by: vbgamer45 on May 27, 2010, 12:44:15 PM
Which package are you trying to use? Make sure you are downloading the one for SMF 1.1.x
Title: Re: Ad Management mod
Post by: vomega on May 27, 2010, 01:09:55 PM
thanks, my bad i had downloaded the wrong version.,
Title: Re: Ad Management mod
Post by: vbgamer45 on May 27, 2010, 01:15:18 PM
Glad you got it working
Title: Re: Ad Management mod
Post by: coolfx350 on June 02, 2010, 09:09:00 AM
Is there anyway to add an ad directly inside the post, I saw that on Vbulletin, where they add "300 X 250" ads next to the first post, right side of the messages, not under it.

would love to do something like that on my forum.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 02, 2010, 11:28:49 AM
There is an option to make ads look like a post. I believe under settings. Otherwise in Ad Seller Pro I have option to insert an ad inside a post.
Title: Re: Ad Management mod
Post by: vomega on June 02, 2010, 11:43:45 AM
hey guys i created two ads, one showing on top and bottom, the other one on the left of the forum, however, second ad had a bad code, so it corrupted the delecte section in admin panel, so unstalled the mod and reinstalled it thinking it delelte de ads automatically, however every time i reinstall the mod it brings back the old ads the ad panel,  so how do I get rid the ads? 
Title: Re: Ad Management mod
Post by: vbgamer45 on June 02, 2010, 11:47:16 AM
Go into phpmyadmin and open up the smf_ads table and truncate it or delete the entry for the ad.
Title: Re: Ad Management mod
Post by: vomega on June 02, 2010, 12:02:33 PM
thanks! that did it.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 02, 2010, 12:13:06 PM
Glad you got it working!
Title: Re: Ad Management mod
Post by: coolfx350 on June 02, 2010, 02:55:12 PM
Quote from: vbgamer45 on June 02, 2010, 11:28:49 AM
There is an option to make ads look like a post. I believe under settings. Otherwise in Ad Seller Pro I have option to insert an ad inside a post.

It's not an option in Ad manager.

Could you please post the trick here? I don't need the ad sellers pro.

thanks a lot.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 02, 2010, 03:06:07 PM
You would need to modify the display.template.php and insert the ad code to get that to work.
Title: Re: Ad Management mod
Post by: legoracer on June 03, 2010, 07:26:12 PM
Hopefully this is the right place to post this.

I can't display ads.

Version:RC3

Default template you can see the ads but when I change themes I do not see them anymore. What do I have to do to get them to show?

Theme: DS Natural

Thanks for your help in advance.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 03, 2010, 08:17:03 PM
You would need to make modifications to the custom themes. You would need to do the theme edits.
Title: Re: Ad Management mod
Post by: katb on June 04, 2010, 08:35:00 AM
in my forum adds are coming  right to shout box , i need to disable coming it there , because  after that shout box display looking bad. is there any way ??

Please check the attachment
Title: Re: Ad Management mod
Post by: vbgamer45 on June 04, 2010, 10:45:05 AM
What ad spot did you enable?
Title: Re: Ad Management mod
Post by: legoracer on June 05, 2010, 04:56:58 PM
Quote from: vbgamer45 on June 03, 2010, 08:17:03 PM
You would need to make modifications to the custom themes. You would need to do the theme edits.
Thanks for the reply on post 5370!!

Whats the chance someone can help walk me through this?
Title: Re: Ad Management mod
Post by: C4G-TK on June 05, 2010, 05:10:11 PM
Quote from: legoracer on June 05, 2010, 04:56:58 PM
Quote from: vbgamer45 on June 03, 2010, 08:17:03 PM
You would need to make modifications to the custom themes. You would need to do the theme edits.
Thanks for the reply on post 5370!!

Whats the chance someone can help walk me through this?

In a nutshell:

1- Parse the mod for your version where you downloaded it here:
http://custom.simplemachines.org/mods/index.php?mod=255

2- Wherever you see an edit that starts with ./Themes/, do that edit on all your other themes in order for it to be used on that theme.  (If your custom theme does not have that php file, it will pull from the default edit, so no need to do that edit.)
Title: Re: Ad Management mod
Post by: legoracer on June 05, 2010, 05:21:12 PM
Thank you!
Title: Re: Ad Management mod
Post by: katb on June 05, 2010, 11:04:18 PM
Quote from: vbgamer45 on June 04, 2010, 10:45:05 AM
What ad spot did you enable?
Please find the screen shots attached ..

Title: Re: Ad Management mod
Post by: vbgamer45 on June 05, 2010, 11:31:15 PM
Don't enable welcome over if they go there.
Title: Re: Ad Management mod
Post by: katb on June 05, 2010, 11:56:35 PM
Quote from: vbgamer45 on June 05, 2010, 11:31:15 PM
Don't enable welcome over if they go there.

Thanks lot ... i disabled welcome over and Shoutbox showing fine
Title: Re: Ad Management mod
Post by: vbgamer45 on June 06, 2010, 12:09:04 AM
Glad that helps!
Title: Re: Ad Management mod
Post by: GMCbris on June 06, 2010, 06:49:45 AM
Quote from: GMCbris on May 24, 2010, 05:01:18 AM
Quote from: Liam. on May 23, 2010, 06:53:09 AM
GMCbris, what sort of parse errors, and where in the file?
Quote from: vbgamer45 on May 23, 2010, 10:30:22 AM
File looks ok didn't see any php parse errors in it.
Ummmm

Would you believe I upped the file that doesnt have the problems

I am a dill

The issue I am having is this

when looking for this (from the Installation Instructions for 1.1.11)

</td></tr>';
}


my template doesnt have this exact code - and no matter what I try to insert the required piece of code I get a parse error

I am a novice coder at best, so what I have tried is obviously on the wrong track

Can someone try insert the required code for me

I would appreciate the assistance

Cheers and thanks for getting to me!!

GMCbris


Hi did anyone look at my file and see where I add the code?

Cheers

GMC
Title: Re: Ad Management mod
Post by: king999 on June 06, 2010, 09:21:36 AM
hiiii i have dizner theme ds4 so i wanna install ads management in ds4 so help me.
Title: Re: Ad Management mod
Post by: Liam. on June 06, 2010, 10:14:59 AM
Quote from: king999 on June 06, 2010, 09:21:36 AM
hiiii i have dizner theme ds4 so i wanna install ads management in ds4 so help me.

Parse it and manually install it.
Title: Re: Ad Management mod
Post by: iSutton59 on June 06, 2010, 01:26:22 PM
How do I place ads right underneath the menu options (standard template/theme) while inside the message boards?  I currently have it doing this in my main page, but want to see ads in this same location while inside the message board - I tried all the options under Ad Settings, but it didnt work.  Thanks so much.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 06, 2010, 01:42:35 PM
I would try modifiying the index.template.php of theme since that is like a global headers and footers and anything you include there would be visible on any page in the forum
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on June 07, 2010, 02:30:17 PM
Using RC3 I uploaded the ad mod, but did not get an install command under packages. Any suggestions?

Rick
Title: Re: Ad Management mod
Post by: Arantor on June 07, 2010, 02:30:55 PM
Quote from: KirkhamsEbooks on June 07, 2010, 02:30:17 PM
Using RC3 I uploaded the ad mod, but did not get an install command under packages. Any suggestions?

Rick

Which version of the mod?
Title: Re: Ad Management mod
Post by: KirkhamsEbooks on June 07, 2010, 02:40:18 PM
That was the problem

I assumed the top one was the most recent when I noticed the 2 at the end of the file name on the bottom .

I'm on the way over for an IQ test now and don't expect to do well

Rick
Title: Re: Ad Management mod
Post by: vbgamer45 on June 07, 2010, 03:06:25 PM
Glad you got it figured out!
Title: Re: Ad Management mod
Post by: Speakman on June 08, 2010, 09:44:00 AM
Hey guys


like the concept of your mod, but can't make the manual edits to get it working.

site: blackwatch.net.nz
Build: SMF 2.0 RC3 w/ Porta MX and Black Rain Theme

my issue is with index.template.php in the default theme (or the Black Rain theme) directory


i cannot find

<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '

and

<div id="content_section"><div class="frame">
<div id="main_content_section">';


and

echo '
</div>
</div></div>';


to make the manual edits after.

attached is index.template.php (current version from default theme directory), and index.templateBR.php (current version of index.template.php from the Black Rain Theme directory)


i have looked through the backups of my original files, with no luck.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 08, 2010, 10:07:21 AM
Make sure are doing the correct manual install instructions with the right SMF version that you are using on the mod site.
Title: Re: Ad Management mod
Post by: Speakman on June 08, 2010, 10:10:50 AM
i am using: http://custom.simplemachines.org/mods/index.php?mod=255

with

ad_mod_v2-3-6-2_SMF_v2-0.zip selected, parsing Manual Install Instructions for SMF 2.0 RC3
Title: Re: Ad Management mod
Post by: vbgamer45 on June 08, 2010, 10:14:23 AM
Would I do is normally take the default theme index.template.php find where the edits go then look for a similar location in the custom theme.
Title: Re: Ad Management mod
Post by: Speakman on June 08, 2010, 10:42:23 AM
when i search the .php file, i cannot find where to make the edit.


the three parts of code i pasted into my original post aren't there :(
Title: Re: Ad Management mod
Post by: C4G-TK on June 08, 2010, 11:59:37 PM
Quote from: C4G-TK on January 30, 2010, 01:39:53 PM
I see where people have asked to get the background color changed in the ads that appear in threads as posts.  But, I don't see where anyone shows where to change it.  Can someone just post where to change it?  I'd like to do the editing myself instead of making someone else do it for me.  I just want to have the background appear like the normal post background or board background.

BTW, is there a way to not have the QUOTE button (and other buttons) appear in those posts?

Yikes, took me long enough to get back to doing this.  Thanks for your help, vbgamer45.




I changed...

if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="windowbg">


to this...

if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="windowbg2">


because I have it set up that Ads appear after the first post.  I wanted the Ad to appear not part of the first post since the first post uses windowbg.  That worked great.




Then, to get rid of some of the buttons and things, I ended up deleting the following from the code because I didn't want people quoting the Ad posts and saying anything rude about the potential advertisers.  LOL. 

I ended up getting rid of a lot more than the quotes.  I got rid of the forum name because I wanted things to be more distinguished.  I didn't want members to associate so closely the forum and the advertisers as being the same.  Having the name there kind of clouds the message.  (Kind of like how editorials have the disclaimer of being the "views expressed in this blah blah blah are not the necessarily the views of the station.")  I did this by deleting...

<div class="poster">
<h4>', $context['forum_name'], '</h4>
</div>



<div class="messageicon">
<img src="', $message['icon_url'] . '" alt="" border="0" />
</div>
<h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>
<div class="smalltext">&#171; <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' &#187;</div>
<div id="msg_', $message['id'], '_quick_mod"></div>



// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<li class="modify_button"><a>', $txt['modify'], '</a></li>';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<li class="remove_button"><a>', $txt['remove'], '</a></li>';

// What about splitting it off the rest of the topic?
if ($context['can_split'] && !empty($context['num_replies']))
echo '
<li class="split_button"><a>', $txt['split'], '</a></li>';



Everything now looks the way I want it to look.  I'm not showing any errors or anything, but is there anything that I deleted that would cause problems? 

I'm going to do the same thing for the last Ad in a thread, too.


Once again, thanks for your help!  :D
Title: Re: Ad Management mod
Post by: uninvited13th on June 10, 2010, 04:09:47 AM
2.     Execute Modification     install.xml     Modification parse error
3.    Execute Modification    -                    Modification parse error


help please.. im using smf 1.1.11
Title: Re: Ad Management mod
Post by: qubbah on June 10, 2010, 03:58:34 PM
i didnt find
} echo ' </form>  </div>  <a id="lastPost"></a>';
in my display.template.php

hope anybody can help..
Title: Re: Ad Management mod
Post by: vbgamer45 on June 10, 2010, 05:20:27 PM
Check the default theme then look for similar code/location in your theme that's what I do for custom themes if I can't find a match
Title: Re: Ad Management mod
Post by: kartheekb on June 10, 2010, 09:20:32 PM
getting error???

MY Version: SMF 2.0RC3
Theme: Outlook

i have installed Ad management Mod & after that i have installed simple ads MODS

I am getting error


(http://tinyimage.net/image-A441_4C117799.jpg)


what to do now?


when i am trying to uninstall

(http://tinyimage.net/image-3040_4C117E09.jpg)
Title: Re: Ad Management mod
Post by: vbgamer45 on June 10, 2010, 09:44:27 PM
You need to uninstall mods in the order they were installed in order for them to uninstall cleanly last to first
Title: Re: Ad Management mod
Post by: kartheekb on June 11, 2010, 12:26:36 AM
So i need to uninstall every MOD?


i have installed nearly 20 MODS?

so need to uninstall all?
Title: Re: Ad Management mod
Post by: vbgamer45 on June 11, 2010, 12:37:30 AM
You need to uninstall any mods installed after in order in order for it to uninstall cleanly
Title: Re: Ad Management mod
Post by: uninvited13th on June 11, 2010, 04:16:34 AM
Quote from: uninvited13th on June 10, 2010, 04:09:47 AM
2.     Execute Modification     install.xml     Modification parse error
3.    Execute Modification    -                    Modification parse error


help please.. im using smf 1.1.11


help me please??
Title: Re: Ad Management mod
Post by: vbgamer45 on June 11, 2010, 09:22:27 AM
I would try to install it manually and make sure you grabbed the right install package
Title: Re: Ad Management mod
Post by: uninvited13th on June 11, 2010, 11:16:15 AM
Quote from: vbgamer45 on June 11, 2010, 09:22:27 AM
I would try to install it manually and make sure you grabbed the right install package

I tried to install it manually but when i go to my forum it says that smf_ads in my database is missing..
Title: Re: Ad Management mod
Post by: vbgamer45 on June 11, 2010, 11:41:32 AM
You have to run the install php file too to create the tables.
Title: Re: Ad Management mod
Post by: uninvited13th on June 11, 2010, 12:15:25 PM
Quote from: vbgamer45 on June 11, 2010, 11:41:32 AM
You have to run the install php file too to create the tables.

How?
Title: Re: Ad Management mod
Post by: vbgamer45 on June 11, 2010, 12:25:49 PM
Copy it to the root directory of your forum then run it though the browser
Title: Re: Ad Management mod
Post by: uninvited13th on June 12, 2010, 02:28:07 AM
Quote from: vbgamer45 on June 11, 2010, 12:25:49 PM
Copy it to the root directory of your forum then run it though the browser

How do i manual install it on non-default theme?
Title: Re: Ad Management mod
Post by: Masterd on June 12, 2010, 05:51:43 AM
I can't install this mod on RC3. What is the problem?
Title: Re: Ad Management mod
Post by: Cheese Head on June 12, 2010, 07:28:07 AM
Hi, great mod works perfect 1st time on my SMF 2.0 RC2 forum! Thanks fees will help pay for server and software!

I don't want adverts to be intrusive to my members so I've got Google Adsense set to display on every thread after the 1st post only and only for guests, members don't see the ads works great.

However, to push Guests to join the forum, I'd like to add a text line preferably with link saying "Guests, join the XXX.com Community to remove this ad." with underlined text as a link, similar to what this forum does (http://slickdeals.net/forums/showthread.php?sduid=0&t=2076074) for their Guests.

Any ideas how or can you you redirect me if been asked/solved before (I've searched all over the Community Forum but could not find)?

Thanks . . . John.

PS: Small question, from my Admin account, on the Ad Management > Reports Tab, it shows the name I gave my adverts profile and Hits = 106 and below it there is a table listing where the ads are placed with number below that, for me it is all emply except Boards = All & Posts = 1. What is the difference between these 3 readings, is Hits the same as Adsense's Page Impressions, Post=1 the same as Clicks?
Title: Re: Ad Management mod
Post by: Reefer on June 14, 2010, 02:42:55 PM
Wonder if someone would be so kind as to help me. I had Ad Manager installed and it was working fine. Changed themes a few times, and now it doesn't produce ads anywhere. I uninstalled it, then re-installed, no problems. I set up an ad but there is no display anywhere. I have checked all permissions, they seem to be fine (enabled). The theme I'm now using is Estalia, which I'd like to keep using... can someone give me some pointers here. Please speak English (layman's terms!!) - I am a complete nooob when it comes to coding...
What files do you need to see?
Title: Re: Ad Management mod
Post by: vbgamer45 on June 14, 2010, 02:49:54 PM
For custom themes you have to edit each theme and include the ad management code.
Title: Re: Ad Management mod
Post by: Reefer on June 14, 2010, 03:02:18 PM
How would I do that... would you be talking about a manual install? Not sure I can manage something like that... like I said... too much of a noob at this.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 14, 2010, 03:06:45 PM
Yeah you would have to do a manual install for the template code on those themes. I do have a theme install service for $15 to do it for you on a custom theme.
Title: Re: Ad Management mod
Post by: Reefer on June 14, 2010, 03:19:18 PM
You got PM
Title: Re: Ad Management mod
Post by: Sirdayor on June 14, 2010, 05:34:55 PM
Please i am using version 1.1.11 of smf, but i am finding it a bit difficul to instal the  mod according to the instruction at the beginig of this thread. There is no "ad management" link in the administration panel, please i need a detail step by step installation intruction.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 14, 2010, 06:00:32 PM
I would use the package manager first. If not grab the manual install instructions from the mod site.
Title: Re: Ad Management mod
Post by: GarfieldP on June 14, 2010, 08:09:22 PM
I dont understand >:( I have a skyscraper ad that is located here
http://garfieldp.com/index.php?topic=46.0
and it takes up so much room!
I want to make the ad as close to the side as possible
my code is
<object width="160" height="600">
<param name="movie" value="skyscraper2.swf">
<embed src="http://garfieldp.com/skyscraper2.swf" width="160" height="600">
</embed>
</object>
Title: Re: Ad Management mod
Post by: Sirdayor on June 14, 2010, 08:38:50 PM
It all look so complicated, i can see the "ad mod" files under the "package" link at the administrative environment now. But i am still having the problem about where and how exactly i am going to put the advertisement codes in the area.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 15, 2010, 12:00:17 AM
You should be able to just add an ad insert the ad code then choose where you want it to appea.
Title: Re: Ad Management mod
Post by: Hj Ahmad Rasyid Hj Ismail on June 16, 2010, 02:48:29 PM
Can the mod author or other coders check this. Thanks.
http://www.simplemachines.org/community/index.php?topic=153647.msg2669246#msg2669246
Title: Re: Ad Management mod
Post by: vbgamer45 on June 16, 2010, 05:05:12 PM
Use ad management to place adsense
Title: Re: Ad Management mod
Post by: GarfieldP on June 16, 2010, 06:19:41 PM
QuoteI dont understand  I have a skyscraper ad that is located here
http://garfieldp.com/index.php?topic=46.0
and it takes up so much room!
I want to make the ad as close to the side as possible
my code is
<object width="160" height="600">
<param name="movie" value="skyscraper2.swf">
<embed src="http://garfieldp.com/skyscraper2.swf" width="160" height="600">
</embed>
</object>


Any ideas?
Title: Re: Ad Management mod
Post by: arty5 on June 16, 2010, 08:54:42 PM
Hi am unsure about how exactly the the mod behavior has changed!!! i was running smf 1.1.11 and running Ad Management mod and it ran perfectly and now i have upgraded to smf 2.0 rc3 the ad targeting seems too be abit off, for example a weight loss topic would always come up with ads to do with weightloss and nothing else but in 2.0 rc3 it seems to be finding it hard to come up with the right ads i dont know if its google or the mod, but i am using the exact same code but on a newer version. Has anyone else noticed this and is their a way to fix this. :D
here is a example on a weightloss topic on my site, the ad targeting some times works at 50% 1 out 2 ads as coming up as what it should be  http://delta5ive.com/index.php?topic=124.0 (http://delta5ive.com/index.php?topic=124.0)

Thankyou
Title: Re: Ad Management mod
Post by: vbgamer45 on June 16, 2010, 08:56:10 PM
That's not from the mod that is from the content of your site. Templates are changed with upgrade to SMF 2.0
Title: Re: Ad Management mod
Post by: arty5 on June 16, 2010, 11:53:34 PM
I figured it out, your mod is perfect but when it came to me using the facebook like button mod i had to disable pretty urls, and now i have enabled them again all the ads works perfectly. I just have to fix the facebook mod now so they can all co-exist lol  :D Thanx vbgamer45 for this awesome mod
Title: Re: Ad Management mod
Post by: vbgamer45 on June 17, 2010, 12:02:09 AM
Glad you got it working
Title: Re: Ad Management mod
Post by: Maxtor on June 19, 2010, 07:33:38 PM
I have Ad Managment   2.3.1 and want to upgrade to 2.6.3.1 .

What to do in order not to loose current banners?

I use SMF 1.1.11.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 19, 2010, 08:48:26 PM
Your safe to uninstall no data is removed
Title: Re: Ad Management mod
Post by: Carlos Faria on June 22, 2010, 06:45:21 PM
I'm having problems installing the mod:

There is a blank space:

(http://i45.tinypic.com/2wrgahx.jpg)

Was supposedly the control panel of the MOD.

Already change the file Ads.english_utf8.php to Ads.portuguese_pt-utf8.php but still nothing happened.


What's happening?


Thanks
Title: Re: Ad Management mod
Post by: Bigguy on June 22, 2010, 06:47:44 PM
It is possible there are some edits missing.
Title: Re: Ad Management mod
Post by: Carlos Faria on June 22, 2010, 07:05:36 PM
Quote from: Bigguy on June 22, 2010, 06:47:44 PM
It is possible there are some edits missing.

The one thing I did was change the file name Ads.english-utf8.php to Ads.portuguese_pt-utf8.php

Neither touched the file!
Title: Re: Ad Management mod
Post by: Bigguy on June 22, 2010, 07:35:33 PM
I remember some issues a long time ago that people were having about it not installing all the edits sometimes. This problem could be fixed by now but the only way to make sure is to parse the mod and check the files. I would start with the index.php file. If I remember correctly it might be the problem. (Not sure though.)
Title: Re: Ad Management mod
Post by: vbgamer45 on June 22, 2010, 07:42:55 PM
Check the edits in Subs.php that controls the Admin link in RC3
Title: Re: Ad Management mod
Post by: Carlos Faria on June 23, 2010, 08:38:20 AM
Quote from: Bigguy on June 22, 2010, 07:35:33 PM
I remember some issues a long time ago that people were having about it not installing all the edits sometimes. This problem could be fixed by now but the only way to make sure is to parse the mod and check the files. I would start with the index.php file. If I remember correctly it might be the problem. (Not sure though.)

Attached goes the file ./index.php


Thank you.

Quote from: vbgamer45 on June 22, 2010, 07:42:55 PM
Check the edits in Subs.php that controls the Admin link in RC3

??

I have version 1.1.11
Title: Re: Ad Management mod
Post by: vbgamer45 on June 23, 2010, 08:58:06 AM
Wrong file. Check the modsite for manual install instructions.
Title: Re: Ad Management mod
Post by: Carlos Faria on June 24, 2010, 07:55:29 AM
Resolved.

But there is something strange:

(http://i46.tinypic.com/29zwzrm.jpg)

It is normal 2 Ads appear when I only created one?
Title: Re: Ad Management mod
Post by: Hj Ahmad Rasyid Hj Ismail on June 24, 2010, 08:21:50 AM
Quote from: [T]uGa [M]aSter on June 24, 2010, 07:55:29 AM
Resolved.

But there is something strange:

(http://i46.tinypic.com/29zwzrm.jpg)

It is normal 2 Ads appear when I only created one?
Aah... You must have refresh your installation and installed it twice (i.e. the package installer had installed it twice ). You have to remove the extra code manually then... Wait for the mod owner guide on this or simply go and check all the modified files. It should be in Admin.php file. But my suggestion, check all the modified files. Just in case they all have double code too...
Title: Re: Ad Management mod
Post by: vbgamer45 on June 24, 2010, 08:28:28 AM
That is not normal shouldn't do that. What smf version
Title: Re: Ad Management mod
Post by: Carlos Faria on June 24, 2010, 08:37:34 AM
Quote from: vbgamer45 on June 24, 2010, 08:28:28 AM
That is not normal shouldn't do that. What smf version

1.1.11
Title: Re: Ad Management mod
Post by: Carlos Faria on June 24, 2010, 07:58:08 PM
How do I solve this problem?
Title: Re: Ad Management mod
Post by: vbgamer45 on June 24, 2010, 08:09:17 PM
Haven't had time to look at it yet.
Title: Re: Ad Management mod
Post by: DEEPSNUYB on June 27, 2010, 03:22:26 AM
Ok I have this mod working under the default theme but I cannot get the changes to the code on this theme.

http://custom.simplemachines.org/themes/index.php?lemma=1993

The files I needed changed on this template are:

./Themes/babylon/index.template.php

./Themes/babylon/BoardIndex.template.php

./Themes/babylon/Display.template.php

./Themes/babylon/MessageIndex.template.php

And thanks vbgamer, I understand now. You must have the mod installed for the default first and then change your template files as needed.
But I cannot do this one as the files for the babylon theme have different coding.

Can anyone help?
Title: Re: Ad Management mod
Post by: vbgamer45 on June 27, 2010, 09:57:13 AM
I have a theme install service starting at $15 per custom theme.
Title: Re: Ad Management mod
Post by: m1993 on June 27, 2010, 12:04:14 PM
it works for a spanish forum???
how do i make this work for a spanish forum
Title: Re: Ad Management mod
Post by: vbgamer45 on June 27, 2010, 01:35:36 PM
Yes it does you just have to install the language strings in your modifications.spansih.php files
Title: Re: Ad Management mod
Post by: DEEPSNUYB on June 27, 2010, 04:34:39 PM
Quote from: vbgamer45 on June 27, 2010, 09:57:13 AM
I have a theme install service starting at $15 per custom theme.

That is fine for $15. You know what theme I'm using.  It works under the default theme.  I just need it working when I switch to my current theme.  Thanks.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 27, 2010, 04:46:43 PM
PM me with ftp information and which theme you would like edited and I can get it done payment is via paypal.
Title: Re: Ad Management mod
Post by: DEEPSNUYB on June 27, 2010, 05:02:16 PM
Quote from: vbgamer45 on June 27, 2010, 04:46:43 PM
PM me with ftp information and which theme you would like edited and I can get it done payment is via paypal.

I would rather do it myself.  Can you just send me the coding. 
Title: Re: Ad Management mod
Post by: vbgamer45 on June 27, 2010, 05:33:27 PM
Can't since it is different for nearly every custom theme sorry.
Title: Re: Ad Management mod
Post by: DEEPSNUYB on June 27, 2010, 05:39:43 PM
Quote from: vbgamer45 on June 27, 2010, 05:33:27 PM
Can't since it is different for nearly every custom theme sorry.

Yes you got the link to the theme.  Im sure you have a test board you use.  Thanks.
Title: Re: Ad Management mod
Post by: m1993 on June 27, 2010, 06:06:52 PM
Quote from: DEEPSNUYB on June 27, 2010, 04:34:39 PM
Quote from: vbgamer45 on June 27, 2010, 09:57:13 AM
I have a theme install service starting at $15 per custom theme.

That is fine for $15. You know what theme I'm using.  It works under the default theme.  I just need it working when I switch to my current theme.  Thanks.

where do i get the files . Thanks
Title: Re: Ad Management mod
Post by: DEEPSNUYB on June 27, 2010, 11:21:41 PM
Quote from: m1993 on June 27, 2010, 06:06:52 PM
Quote from: DEEPSNUYB on June 27, 2010, 04:34:39 PM
Quote from: vbgamer45 on June 27, 2010, 09:57:13 AM
I have a theme install service starting at $15 per custom theme.

He has to do it.  It's not something you can go and just buy and download.  I'm still waiting on a reply from him also.  Thanks.
That is fine for $15. You know what theme I'm using.  It works under the default theme.  I just need it working when I switch to my current theme.  Thanks.

where do i get the files . Thanks
Title: Re: Ad Management mod
Post by: Cheese Head on July 03, 2010, 07:04:08 PM
Hi, great mod works perfect 1st time on my SMF 2.0 RC2 forum! Thanks fees will help pay for server and software!

I don't want adverts to be intrusive to my members so I've got Google Adsense set to display on every thread but only after the 1st post only and only for guests, members don't see the ads works great.

However, to push Guests to join the forum, I'd like to add a text line preferably with link saying "Guests, join the XXX.com Community to remove this ad." with underlined text as a link, similar to what this forum does for their Guests.

Any ideas how or can you you redirect me if been asked/solved before (I've searched all over the Community Forum but could not find)
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on July 03, 2010, 07:12:03 PM
Well, inside the ad code html form, paste in your ad code

then put <br />
Then add the text below saying To remove ads join us...and so on...

for a link use

<u><a href="url goes here">join us and we remove ads</a></u>

This will add the text below that ad all the time, you would use the option to only show it to guests in the modification settings area.
Title: Re: Ad Management mod
Post by: m1993 on July 04, 2010, 01:21:43 PM
I wanna use this mod on A spanish forum SMF 1.1.1  I need some help.. please can anyone tell me how to make this works
Title: Re: Ad Management mod
Post by: vbgamer45 on July 04, 2010, 01:40:45 PM
Just translate the ads.english.php and the language strings added to modifications.english.php
Title: Re: Ad Management mod
Post by: tareko on July 04, 2010, 02:56:03 PM
That 15 dollar installation service you got going, how many themes does it cover?
Title: Re: Ad Management mod
Post by: Zatyrax on July 04, 2010, 03:12:11 PM
I have installed the mod to my forum now, and its working quite good! I have fixed all the coding stuff. But i have some problems. I want to have ads on the sides of my forum. If i choose the show the add on the right on every page it gets like this:
(http://img337.imageshack.us/img337/7829/skrmklipp2.png)

I would like it to be something like this:
(http://img686.imageshack.us/img686/5565/skrmklipp3.png)

Any tips? :)

EDIT: Using SMG 1.1.11
Title: Re: Ad Management mod
Post by: Hj Ahmad Rasyid Hj Ismail on July 05, 2010, 05:40:06 AM
Quote from: Zatyrax on July 04, 2010, 03:12:11 PM
Using SMG 1.1.11
Huh?! What software is that?!  ;D
Title: Re: Ad Management mod
Post by: Zatyrax on July 05, 2010, 09:10:05 AM
Quote from: ⎝⏠⏝⏠⎠ on July 05, 2010, 05:40:06 AM
Quote from: Zatyrax on July 04, 2010, 03:12:11 PM
Using SMG 1.1.11
Huh?! What software is that?!  ;D
Hahaha :P That G is dangerously close F  ;D
Title: Re: Ad Management mod
Post by: vbgamer45 on July 05, 2010, 10:46:40 AM
Looks like you are missing a closing tag or table tag in the template_header template_footer in index.template.php
Title: Re: Ad Management mod
Post by: Leemy on July 06, 2010, 11:54:25 AM
edit: resolved.
Title: Re: Ad Management mod
Post by: Jojie on July 07, 2010, 08:53:43 PM
I have similar issues..

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    install.php    
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/Subs.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
6.    Execute Modification    ./Themes/default/Display.template.php    Test failed
7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
8.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
9.    Extract File    ./Sources/Ads.php    
10.    Extract File    ./Sources/LoadAds.php    
11.    Extract File    ./Themes/default/Ads.template.php    
12.    Extract File    ./Themes/default/languages/Ads.english.php    
13.    Extract File    ./Themes/default/languages/Ads.english-utf8.php


Mods are (note some of them are not installed)

Modification Packages
   Mod Name    Version    
1.    Ad Managment    2.3.6.1    [ Apply Mod ] [ List Files ] [ Delete ]
2.    AJAX Instant Quick Reply    1.0.2    [ Uninstall ] [ List Files ] [ Delete ]
3.    SMF Sitemap    1.2.2    [ Uninstall ] [ List Files ] [ Delete ]
4.    TinyPortal    1.099    [ Uninstall ] [ List Files ] [ Delete ]
5.    Aeva ~ Auto-Embed Video & Audio    6.9.100    [ Uninstall ] [ List Files ] [ Delete ]
6.    NoFollow BBCode    1.1    [ Apply Mod ] [ List Files ] [ Delete ]
7.    SMF 1.0.19 / 1.1.11 Update    1.0    [ Uninstall ] [ List Files ] [ Delete ]
8.    TinyPortal    1.083    [ List Files ] [ Delete ]
9.    Sticky First Post (extends sticky topic)    1.3.2    [ Uninstall ] [ List Files ] [ Delete ]
10.    Anti-Bot Registration Puzzles    1.2.0.1    [ Uninstall ] [ List Files ] [ Delete ]
11.    Stop Forum Spam    0.5    [ Uninstall ] [ List Files ] [ Delete ]
12.    NoFollow All Links    1.2.1    [ Uninstall ] [ List Files ] [ Delete ]
13.    Enhanced Quick Reply Box 2.0.2    2.0.2    [ Apply Mod ] [ List Files ] [ Delete ]
14.    Auto Merge Double Post    1.2    [ Apply Mod ] [ List Files ] [ Delete ]
15.    Flickr Gallery Browser    0.3    [ Apply Mod ] [ List Files ] [ Delete ]
16.    Pretty URLs    1.0RC    [ Apply Mod ] [ List Files ] [ Delete ]
17.    SMF Media Gallery    2.0 beta 4    [ Apply Mod ] [ List Files ] [ Delete ]
18.    nCode Image Resizer    1.2    [ Apply Mod ] [ List Files ] [ Delete ]
Installed mods: current version older version
Title: Re: Ad Management mod
Post by: nhoudek on July 07, 2010, 09:07:51 PM
I am using SMF 1.1.11. I downloaded ad mod and have been using it with Google ad sense ads. The leader board ads work fine at any location horizontally. None of the ads placed on the left or right of the forum as a skyscraper show up. Has any one else had this problem and it there a way to fix it?
www.temporarydutyassignment.org
Title: Re: Ad Management mod
Post by: Cheese Head on July 10, 2010, 08:29:13 AM
JohnCc, for your post #5456 above, many thanks, perfect!
Title: Re: Ad Management mod
Post by: elkingrey on July 12, 2010, 10:10:59 PM
Okay, I am determined to get this ad mod for my site. I tried installing it a few months ago and failed miserably every time. But since then, I think I've learned some things and might be able to understand what people are telling me to do this time for help.

I am currently running smf 1.1.11 and am using my own theme.

I downloaded the zip file and extracted the files.

Before I get started on this long process I want to make sure I know exactly what I am doing first, so that I don't repeat what happened to me last time, which is crashing my forum and having to reinstall it.

The next step in the process is to do the file edits. This is the easy part for me, even though it takes a long time.

The problem I am having is that I still don't understand what to do with the install.php file. I do not understand the code and execute standalone stuff. So, where do I put the install.php file? What do I do with it once I have it there?

The third step is to upload the files to my server which is also easy.

If someone can just please help me understand what to do with the install.php that would be great. Also, will this work with my own theme? Thank you.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 12, 2010, 10:35:07 PM
Copy install.php to the root directory of your forum then run it via the browser.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 13, 2010, 01:16:11 AM
It should be done then it just creates database tables and settings for the mod
Title: Re: Ad Management mod
Post by: elkingrey on July 13, 2010, 01:58:43 AM
Quote from: vbgamer45 on July 12, 2010, 10:35:07 PM
Copy install.php to the root directory of your forum then run it via the browser.

Okay. So I've uploaded it to the forum's root directory and clicked install.php. It opened a new tab but the screen is blank. It seems to have done nothing.
Title: Re: Ad Management mod
Post by: elkingrey on July 13, 2010, 02:08:06 AM
You were right. It worked. I just figured there would have been some sort of tada momemt.

I want to thank you for your help. You gave me similar help a few months ago, but I was too much of a noob to understand what the heck you were talking about. Thank you again for all of your help. I can't wait to get this mod started!
Title: Re: Ad Management mod
Post by: elkingrey on July 13, 2010, 02:50:23 AM
Okay. So, the ads seem to work in a few places but not in others.

One problem I seem to have now is that the very first post is missing in all of my topics. Only the replies are showing up. For topics with no replies, it is just blank.

Also, my tower ads on the left and right seem to not work. Do I need to adjust something to give it room?
Title: Re: Ad Management mod
Post by: reach_ay on July 13, 2010, 05:12:15 AM
Anyone who can help with Ad Management Mod Installation on SMF 1.1.11?  I have downloaded and installed the Ad management mod package , but i dont see it any where so i dont know how to go about using the Ad management mod i installed. Or any other good way of adding the Adsense code to my web. Am a newbie in PHP
Title: Re: Ad Management mod
Post by: cicka on July 13, 2010, 05:54:52 AM
Quote from: reach_ay on July 13, 2010, 05:12:15 AM
Anyone who can help with Ad Management Mod Installation on SMF 1.1.11?  I have downloaded and installed the Ad management mod package , but i dont see it any where so i dont know how to go about using the Ad management mod i installed. Or any other good way of adding the Adsense code to my web. Am a newbie in PHP


The mod adds its setting in the Admin Panel. Can you provide some more details please, such as what is the default language of your forum, what style are using?
Title: Re: Ad Management mod
Post by: Kindred on July 13, 2010, 07:49:45 AM
Please ask for support of specific mods in the thread dedicated to that mod. 

This does not belong in the general SMF feedback board.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on July 13, 2010, 01:05:49 PM
Quote from: Cheese Head on July 10, 2010, 08:29:13 AM
JohnCc, for your post #5456 above, many thanks, perfect!

Glad it worked out for you, enjoy.
Title: Re: Ad Management mod
Post by: elkingrey on July 13, 2010, 04:31:35 PM
I tried posting my problem in a generic support board but they told me to come back here.

I have SMF 1.1.11 and I recently added the ad mod. Since then all of the first posts in every topic are missing. If I create a new topic, the first post is still missing. Any suggestions?
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on July 13, 2010, 04:37:48 PM
Quote from: elkingrey on July 13, 2010, 04:31:35 PM
I tried posting my problem in a generic support board but they told me to come back here.

I have SMF 1.1.11 and I recently added the ad mod. Since then all of the first posts in every topic are missing. If I create a new topic, the first post is still missing. Any suggestions?

Have you disabled the ads within the posts to determine if this is infact causing the issue?
Title: Re: Ad Management mod
Post by: elkingrey on July 13, 2010, 04:40:11 PM
Quote from: ♪ JohnCcCcCc ♫ on July 13, 2010, 04:37:48 PM
Quote from: elkingrey on July 13, 2010, 04:31:35 PM
I tried posting my problem in a generic support board but they told me to come back here.

I have SMF 1.1.11 and I recently added the ad mod. Since then all of the first posts in every topic are missing. If I create a new topic, the first post is still missing. Any suggestions?

Have you disabled the ads within the posts to determine if this is infact causing the issue?

Thank you for your reply.

Yes. I've disabled all of the ads to see if the problem disappeared. It hasn't. The problem persists.  :(
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on July 13, 2010, 04:42:52 PM
Well, it may not be that causing the issue then, before we can start getting solutions we need to determine what is causing the issues, just for the sake of ruling this mod out, for a moment, disable ads completely, then check again, if the problem still occurs, I would recommend stating that at the Support board you started at, and mention that the mod has been ruled out already. Then list all the mods you have installed there too.
Title: Re: Ad Management mod
Post by: elkingrey on July 13, 2010, 04:51:54 PM
Quote from: ♪ JohnCcCcCc ♫ on July 13, 2010, 04:42:52 PM
Well, it may not be that causing the issue then, before we can start getting solutions we need to determine what is causing the issues, just for the sake of ruling this mod out, for a moment, disable ads completely, then check again, if the problem still occurs, I would recommend stating that at the Support board you started at, and mention that the mod has been ruled out already. Then list all the mods you have installed there too.

I've deleted my ads. Problem persists. I should mention that when I was installing the mod I accidentally ran the install.php before I edited the files. Then I edited the files, then ran the install.php again, then I uploaded the other files. I don't know if that would cause a problem or not.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on July 13, 2010, 05:11:36 PM
Quote from: elkingrey on July 13, 2010, 04:51:54 PM
Quote from: ♪ JohnCcCcCc ♫ on July 13, 2010, 04:42:52 PM
Well, it may not be that causing the issue then, before we can start getting solutions we need to determine what is causing the issues, just for the sake of ruling this mod out, for a moment, disable ads completely, then check again, if the problem still occurs, I would recommend stating that at the Support board you started at, and mention that the mod has been ruled out already. Then list all the mods you have installed there too.

I've deleted my ads. Problem persists. I should mention that when I was installing the mod I accidentally ran the install.php before I edited the files. Then I edited the files, then ran the install.php again, then I uploaded the other files. I don't know if that would cause a problem or not.

The Install.php file "usually" just adapts the database, it should not cause any issues, but that's really for vbgamer45 to say, as he is the author.

Did you actually disable the ads mod, just removing your ad code will not determine if the ad mod is or is not causing the issue.
Title: Re: Ad Management mod
Post by: elkingrey on July 13, 2010, 05:16:11 PM
I'm not getting any love in the smf 1.x support board. Is there any file or code that I can copy/paste here that might help someone to diagnose the problem? Likewise, is there someone who could fix it if they had temporary access to the site?

What is the next step you would recommend I take at this point?
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on July 13, 2010, 05:18:41 PM
Quote from: elkingrey on July 13, 2010, 05:16:11 PM
I'm not getting any love in the smf 1.x support board. Is there any file or code that I can copy/paste here that might help someone to diagnose the problem? Likewise, is there someone who could fix it if they had temporary access to the site?

What is the next step you would recommend I take at this point?

We dont resort to that until we find a diagnosis, and you should only give any details about your forum to Support Team Members, they have a Green Badge above their avatar, it Says support on it.

Have you tried uninstalling the mod? If not try, see if the problem goes away then, post back results. :)
Title: Re: Ad Management mod
Post by: elkingrey on July 13, 2010, 05:27:08 PM
Okay. I will do. How do I go about uninstalling it?

Do I first remove the files that I uploaded, then upload the uninstall.php, run it, then go back and change all of the code back to the way it was originally? Or is there a simpler way?
Title: Re: Ad Management mod
Post by: Kindred on July 13, 2010, 05:52:42 PM
I see the potential cause... if you manually edited the files, then, I suspect that you edited the display.template.php incorrectly, replacing code instead of adding after (or something like that) since the ad mod will be displaying the advert just AFTER the first post, when that is turned on.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on July 13, 2010, 05:53:46 PM
Quote from: elkingrey on July 13, 2010, 05:27:08 PM
Okay. I will do. How do I go about uninstalling it?

Do I first remove the files that I uploaded, then upload the uninstall.php, run it, then go back and change all of the code back to the way it was originally? Or is there a simpler way?

Just use the Package Manager, you do not need to change anything in the database.

Quote from: Kindred on July 13, 2010, 05:52:42 PM
I see the potential cause... if you manually edited the files, then, I suspect that you edited the display.template.php incorrectly, replacing code instead of adding after (or something like that) since the ad mod will be displaying the advert just AFTER the first post, when that is turned on.

In this case, the uninstall will fail the test for that file, and you could go ahead and attach that file so it can be manually edited.
Title: Re: Ad Management mod
Post by: elkingrey on July 13, 2010, 06:15:51 PM
Quote from: Kindred on July 13, 2010, 05:52:42 PM
I see the potential cause... if you manually edited the files, then, I suspect that you edited the display.template.php incorrectly, replacing code instead of adding after (or something like that) since the ad mod will be displaying the advert just AFTER the first post, when that is turned on.

Okay. I went to the display.template.php and looked for errors I may have made.

I think I may have accidentally replaced only the first line of the "//get all of the messages..." code with the code needed. This left two extra lines in there that were meant to be replaced. So I deleted those lines to try it out, and it killed the ability of the page to load at all, it just gave me an error message. So I put the code I deleted back, but I am back to where I was. So, here is the complete code from my display.template.php file. Wait a minute, I don't know how to put it up here and keep it small, with a scroll bar. Anybody?

Title: Re: Ad Management mod
Post by: elkingrey on July 13, 2010, 06:53:52 PM
YAHOOOOO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!   ;D

I kept fiddling with my display.template.php with no luck. So I just restored my backed up copy of it, then redid the mod, and now my posts are back and the mod works!!! Thank you guys for the help! You have no idea how much I appreciate it! Weeee!!!!
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on July 13, 2010, 07:25:57 PM
Quote from: elkingrey on July 13, 2010, 06:53:52 PM
YAHOOOOO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!   ;D

I kept fiddling with my display.template.php with no luck. So I just restored my backed up copy of it, then redid the mod, and now my posts are back and the mod works!!! Thank you guys for the help! You have no idea how much I appreciate it! Weeee!!!!

Glad to hear it was solved, checking any files that the mod edits would have been the next step. Good call kindred, saved some time
Title: Re: Ad Management mod
Post by: elkingrey on July 13, 2010, 08:10:10 PM
Well, now that the celebrations with that victory are finished, there are still some problems. Namely, I am not able to get my skyscraper ads to work. Nothing happens when I post them. There is no noticeable difference or errors, just nothing. Any advice?
Title: Re: Ad Management mod
Post by: Kindred on July 13, 2010, 08:11:21 PM
probably more incorrectly added code... (??)
Title: Re: Ad Management mod
Post by: elkingrey on July 13, 2010, 08:19:12 PM
Quote from: Kindred on July 13, 2010, 08:11:21 PM
probably more incorrectly added code... (??)

Do you have any idea which file is responsible for that?
Title: Re: Ad Management mod
Post by: Kindred on July 13, 2010, 08:24:06 PM
where is the skyscraper supposed to appear?
Title: Re: Ad Management mod
Post by: elkingrey on July 13, 2010, 08:30:26 PM
Quote from: Kindred on July 13, 2010, 08:24:06 PM
where is the skyscraper supposed to appear?

I actually don't know. I'm not sure if I am suppose to adjust the width of the forum to allow for space, or if it automatically adjusts itself for the tower ad. But it doesn't work on the right or left hand side for me.
Title: Re: Ad Management mod
Post by: Kindred on July 13, 2010, 11:16:00 PM
ah. the edits are probably in index.template.php then...
Title: Re: Ad Management mod
Post by: elkingrey on July 14, 2010, 12:58:53 AM
Quote from: Kindred on July 13, 2010, 11:16:00 PM
ah. the edits are probably in index.template.php then...

Okay, so once you mentioned the index.template.php, I had to ask myself, which one? The default or theme? Then I realized that the one I edited was the default, not the theme. So, as I was going through and editing the theme's index.template.php file, I noticed something else. When you get to the part where it tells you to find </td> I went through the whole file only to see there are like a dozen </td> tags. Which one does it want me to insert the new code in after?
Title: Re: Ad Management mod
Post by: elkingrey on July 14, 2010, 01:23:16 AM
Never mind. I switched to me default theme and found out that the ads worked there, so I knew that I must have done it right when I did it the first time. So, when I went back to redo it in the theme index.template.php, I put the new code after the very first </td> that came from the last edit. Anyways. Solved.
Title: Re: Ad Management mod
Post by: malu_vashi on July 16, 2010, 12:52:57 PM
SAME ADD DISPLY TWO TIME ,
I USE 1.1.11

HELP PLZ,
Title: Re: Ad Management mod
Post by: vbgamer45 on July 16, 2010, 12:54:53 PM
Edit manually mod installed twice.
Title: Re: Ad Management mod
Post by: malu_vashi on July 16, 2010, 01:26:58 PM
Quote from: vbgamer45 on July 16, 2010, 12:54:53 PM
Edit manually mod installed twice.

HOW plz, how
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on July 16, 2010, 01:28:21 PM
Uninstall the mod, then look for duplicates using the parse mod feature on the mod site.
Title: Re: Ad Management mod
Post by: cicka on July 16, 2010, 01:28:37 PM
Quote from: malu_vashi on July 16, 2010, 01:26:58 PM
Quote from: vbgamer45 on July 16, 2010, 12:54:53 PM
Edit manually mod installed twice.

HOW plz, how

Check all the templates that the ad mod edits and remove one block of code as you will have it defined twice. Use the parser located under the download link to see what code it adds.
Title: Re: Ad Management mod
Post by: derby on July 17, 2010, 09:01:44 PM
please my ads is not showing on the bottom of my site...and in post page..but showing on other part....
Title: Re: Ad Management mod
Post by: shaad on July 18, 2010, 03:27:34 AM
hi..
i am using SMF 2.0 RC3 and installed ad management, it installed without any error but ads are not showing  :o

someone please help..
Title: Re: Ad Management mod
Post by: tareko on July 18, 2010, 05:29:16 AM
Quote from: tareko on July 04, 2010, 02:56:03 PM
That 15 dollar installation service you got going, how many themes does it cover?

I guess you dont need new business. I will take mine elsewhere then.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 18, 2010, 10:25:51 AM
Correct not really it covers only one theme.
Title: Re: Ad Management mod
Post by: luuuciano on July 20, 2010, 09:17:15 AM
Hi!
I am using Ad Management mod + openx... because I need to show banners in the smf forum, and the wordpress section of a site....

Someone knows an alternative to openx, with zones, advertizers, etc? Openx is killing the server, and buggy, bloat, etc... :(
Title: Re: Ad Management mod
Post by: Midnitelove on July 21, 2010, 11:26:52 AM
Hello, I'm currently using 1.1.11, I keep getting this message when I try to upload the mod.

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.


   Execute Code     install.php     
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/Subs.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test failed
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
6.    Execute Modification    ./Themes/default/Display.template.php    Test successful
7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
8.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
9.    Extract File    ./Sources/Ads.php    
10.    Extract File    ./Sources/LoadAds.php    
11.    Extract File    ./Themes/default/Ads.template.php    
12.    Extract File    ./Themes/default/languages/Ads.english.php    
13.    Extract File    ./Themes/default/languages/Ads.english-utf8.php


Any suggestions?
Title: Re: Ad Management mod
Post by: vbgamer45 on July 21, 2010, 11:33:25 AM
Install then make the edits that failed for index.template.php manually use the modsite to get the manual install instructions
Title: Re: Ad Management mod
Post by: Midnitelove on July 21, 2010, 03:09:09 PM
Quote from: vbgamer45 on July 21, 2010, 11:33:25 AM
Install then make the edits that failed for index.template.php manually use the modsite to get the manual install instructions



The problem is I don't know how to make edits, where to past codes, etc. I'm totally new at this. Every time I to play around,  my theme gets altered. I tried manually uninstalling Ajax chat and now my forum is full screen like the default and the smf logo is back at the top. Prior to this I had uninstalled sidespark though the package manager because I couldn't figure out how to get it to work. (I hadn't read your response yet) I then installed Ajax to see if it would be an easier install. It wasn't.... Soooo, when I got back in here and read your response I wanted to reinstall sidespark... even though I uninstalled it it still shows up in my cpanel..

Whew, I'm so sorry for this long rant. It's just that to a newbie telling me to edit codes doesn't help because I can't for the life of me figure out where and how to do it.

It's the same with pasting codes in the templates. When I tried this with other mods I totally mess up. Sigh.. I know this isn't your arena. I just need a wee bit more help on the where and how.. TIA

Forgot to add, yes I do read the manuals for all my mods.. It just doesn't help because I'm lacking the basics. I understand a bit of basic HTML from working my blog, but this is a total different animal. When I go in my admin panel and go to edit themes, I get 5 different sections, This is the point where I'm lost. :(




Sorry again, lol!!! no I'm not crazy. ;D I'm just posting in several threads and got mixed up. I'm referring to sidespark because I was thinking I was responding in that thread. I still have the same issue none the less, with this mod also. On the where and how to edit..
Title: Re: Ad Management mod
Post by: Bigguy on July 21, 2010, 05:10:41 PM
One hint Midnitelove, get your self a good php editor...Do Not Use Notepad to do edits.
Title: Re: Ad Management mod
Post by: Midnitelove on July 21, 2010, 05:33:00 PM
Quote from: Bigguy on July 21, 2010, 05:10:41 PM
One hint Midnitelove, get your self a good php editor...Do Not Use Notepad to do edits.



Thanks, can you recommend a good (free) one and where do I install
Title: Re: Ad Management mod
Post by: Kindred on July 21, 2010, 05:38:55 PM
notepad++  or conText
Title: Re: Ad Management mod
Post by: Midnitelove on July 21, 2010, 05:49:02 PM
Quote from: Kindred on July 21, 2010, 05:38:55 PM
notepad++  or conText

Thanks so much! I'll def. try one of those. I guess what I'm also trying to pull out everybody is once I download it where do I go from there for adjusting mods. Like this one? How do I edit? where do I place the edited code, etc... I'm a super fast learner, If someone could just point me to a tutorial.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on July 21, 2010, 05:50:50 PM
I use NuSphere PhpED, its great, spots any parse errors you may cause too, pretty sure many others do too though.

Just look at the code that is in their, look at opening and closing statements :)
Title: Re: Ad Management mod
Post by: Midnitelove on July 21, 2010, 07:42:02 PM
Quote from: ♪ JohnCcCcCc ♫ on July 21, 2010, 05:50:50 PM
I use NuSphere PhpED, its great, spots any parse errors you may cause too, pretty sure many others do too though.

Just look at the code that is in their, look at opening and closing statements :)



Thank but I already installed notepad++. Sorry to keep repeating myself, but what next? How do I actually edit the php? Like how do I get the file to notepad++? How do I edit? What do I do with the code after I edit? I just need to be pointed in the right direction, I'll figure out the rest if I could just get a tut. on the subject. I totally appreciate the suggestions given but they are foreign to me If I have no idea what to do.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on July 21, 2010, 08:15:40 PM
You may want to consider starting a new topic, in SMF coding discussion (http://www.simplemachines.org/community/index.php?board=60.0) since this topic is for the ad management mod support

You will get more help their than here :)
Title: Re: Ad Management mod
Post by: Midnitelove on July 21, 2010, 08:59:25 PM
Quote from: ♪ JohnCcCcCc ♫ on July 21, 2010, 08:15:40 PM
You may want to consider starting a new topic, in SMF coding discussion (http://www.simplemachines.org/community/index.php?board=60.0) since this topic is for the ad management mod support

You will get more help their than here :)


Thanks!!!
Title: Re: Ad Management mod
Post by: kashmiri on July 22, 2010, 10:53:51 AM
hi guys...i want to knw why in my website i see 2web banners from same ad ?
can some1 tell me how to fix it ?
Title: Re: Ad Management mod
Post by: kashmiri on July 22, 2010, 01:01:00 PM
can some help me plz......
my wbesite is iphonefreak.org
Title: Re: Ad Management mod
Post by: derby on July 25, 2010, 03:26:16 PM
Please can someone tell me where to edit for me to input ads inside post
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on July 25, 2010, 03:29:03 PM
Quote from: derby on July 25, 2010, 03:26:16 PM
Please can someone tell me where to edit for me to input ads inside post

I don't believe this mod does that, unless its been updated recently.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 25, 2010, 03:46:15 PM
You can make ads look like posts. But otherwise ads inside post are part of my Ad Seller Pro mod
Title: Re: Ad Management mod
Post by: derby on July 25, 2010, 03:55:51 PM
Quote from: vbgamer45 on July 25, 2010, 03:46:15 PM
You can make ads look like posts. But otherwise ads inside post are part of my Ad Seller Pro mod
I can make ads look like posts via the ads management mod!becos i have tryed it on my site it seems not to be working
Title: Re: Ad Management mod
Post by: vbgamer45 on July 25, 2010, 03:56:30 PM
How doesn't it work?
Title: Re: Ad Management mod
Post by: derby on July 25, 2010, 04:11:44 PM
Quote from: vbgamer45 on July 25, 2010, 03:56:30 PM
How doesn't it work?
i have tick it,but it is not showing
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on July 25, 2010, 04:18:47 PM
Their is another mod on the mod site which adds ads inside of posts you know..
Title: Re: Ad Management mod
Post by: vbgamer45 on July 25, 2010, 04:19:32 PM
Quote from: derby on July 25, 2010, 04:11:44 PM
Quote from: vbgamer45 on July 25, 2010, 03:56:30 PM
How doesn't it work?
i have tick it,but it is not showing
Are you using a custom theme??
Title: Re: Ad Management mod
Post by: derby on July 25, 2010, 04:50:12 PM
Quote from: vbgamer45 on July 25, 2010, 04:19:32 PM
Quote from: derby on July 25, 2010, 04:11:44 PM
Quote from: vbgamer45 on July 25, 2010, 03:56:30 PM
How doesn't it work?
i have tick it,but it is not showing
Are you using a custom theme??
no i use the default theme...u can check it on my signature
Title: Re: Ad Management mod
Post by: vbgamer45 on July 25, 2010, 04:52:44 PM
I can see it fine for me I see the ad as a post under "DerbHotJobs" as a guest.
If you are an admin check that you don't have ads disabled for admin
Title: Re: Ad Management mod
Post by: derby on July 26, 2010, 02:56:53 PM
Quote from: ♪ JohnCcCcCc ♫ on July 25, 2010, 04:18:47 PM
Their is another mod on the mod site which adds ads inside of posts you know..
lemme have the name or link plz
Title: Re: Ad Management mod
Post by: miDnIghtEr20C on July 28, 2010, 09:39:14 PM
hey guys... i just got google adsense,.. and can't wait to get it up on my forums... but where do i put the new code on my boards?   i have 1.1.11.. i tried to do this mod.. but this is what i get.. an error...

Quote1.     Execute Code     install.php     
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/Subs.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test failed
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
6.    Execute Modification    ./Themes/default/Display.template.php    Test successful
7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
8.    Execute Modification    ./Sources/ManagePermissions.php    Test successful

any idea why that would fail?    any help on where to put the file would help me so much.    thanks a lot guys.    my site is www.showtimeforfree.com     again.. thanks for any help.  :)
Title: Re: Ad Management mod
Post by: Kindred on July 28, 2010, 10:23:41 PM
doesn't anyone bother to READ the threads any more?  This question has been answered in each and every mod support thread, sometimes several dozen times.

file failed means that something has changed the code the auto installer is looking for and it can not auto install for that file. You will have to manually alter that file.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on July 28, 2010, 10:35:01 PM
Quote from: Kindred on July 28, 2010, 10:23:41 PM
doesn't anyone bother to READ the threads any more?  This question has been answered in each and every mod support thread, sometimes several dozen times.

file failed means that something has changed the code the auto installer is looking for and it can not auto install for that file. You will have to manually alter that file.
Some people don't understand, and do you expect someone to read though 277 pages..
Title: Re: Ad Management mod
Post by: Kindred on July 28, 2010, 10:44:36 PM
yes....  or use search.

Title: Re: Ad Management mod
Post by: miDnIghtEr20C on July 29, 2010, 02:49:24 AM
ouch!    sorry.. i thought i'd just ask instead of going through the whole 277 pages.. but thanks for the tip on something is different.    hopefully  i can find how to put it in manually.

anyways... sorry to upset you.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on July 29, 2010, 12:51:06 PM
Quote from: miDnIghtEr20C on July 29, 2010, 02:49:24 AM
ouch!    sorry.. i thought i'd just ask instead of going through the whole 277 pages.. but thanks for the tip on something is different.    hopefully  i can find how to put it in manually.

anyways... sorry to upset you.

Don't worry about that, I hate when people just say that all the time.. (thy could at least find the post(s) themselves and put a link, if its so "easy")

Just go to the mod site where you downloaded the mod, then click parse, now look at the tests that failed, and those edits you will have to do manually, in the find part, look for a "similar" code, because obviously the mod packager could not find it so your not either, it will be a partial part of if, check to make sure that's the only instance of the partial code you searched for, once it is you can do the operation manually, whether that be add after, add before, or replace.
Title: Re: Ad Management mod
Post by: samjay on July 29, 2010, 03:32:12 PM
i want to add ads on inferno theme but it seems to be ad management mod not working with inferno theme how can i do that and when i create a ad in ad mod it become doubled i mean same ad with double topics and when i try to modify both are modified how can i solve this ? please help!
Title: Re: Ad Management mod
Post by: Kindred on July 29, 2010, 05:21:13 PM
sounds like you 1- double installed and need to manually remove the doubled code from your source and template files...   and 2) need to manually install the mod into your custom theme(s)
Title: Re: Ad Management mod
Post by: samjay on July 30, 2010, 03:06:28 AM
thanks for u r reply  . i used my ad mod backup its done the trick!  :) O:)
Title: Re: Ad Management mod
Post by: dveldt on July 30, 2010, 01:49:04 PM
Okay, I must be going nuts here. I've tried every which way to get this mod to install. I'm running 1.1.11 with all the upgrades. When I try the package installer, it just takes me to a blank screen and does nothing. So I manually installed all of the code and if I try to run install.php it tries to open index.php. I've checked my database and all of the tables are created, I'm not getting any errors on the forum from the code I added, but yet I'm not getting any menu options for the ads. I'm new at this and I've searched every which way on this thread, so short of reading all 272 pages... Help? Thanks.
Title: Re: Ad Management mod
Post by: miDnIghtEr20C on July 31, 2010, 02:25:07 AM
Quote from: johncccccc on July 29, 2010, 12:51:06 PM
Quote from: miDnIghtEr20C on July 29, 2010, 02:49:24 AM
ouch!    sorry.. i thought i'd just ask instead of going through the whole 277 pages.. but thanks for the tip on something is different.    hopefully  i can find how to put it in manually.

anyways... sorry to upset you.

Don't worry about that, I hate when people just say that all the time.. (thy could at least find the post(s) themselves and put a link, if its so "easy")

Just go to the mod site where you downloaded the mod, then click parse, now look at the tests that failed, and those edits you will have to do manually, in the find part, look for a "similar" code, because obviously the mod packager could not find it so your not either, it will be a partial part of if, check to make sure that's the only instance of the partial code you searched for, once it is you can do the operation manually, whether that be add after, add before, or replace.
thanks.... did it,.. and seems to be working perfect.      thanks again.
Title: Re: Ad Management mod
Post by: wickedstangs on August 01, 2010, 01:56:28 PM
Can someone give me a hand installing this. I am using one Crips Templates and it looks nothing like the code edits that are posted.

Thanks
www.rcing.net
Title: Re: Ad Management mod
Post by: Zidane5555 on August 03, 2010, 12:10:45 PM
Hi there,

I've installed Ad Management for my 2.0 RC3 forum and I've added a google ad sense banner at the top of every page. However on the home page/index, the banner is under the forum statistics at the top, they overlap, but on everyother page, it is fine because there is no writting at the top.

Pictures to help you see what I mean:

http://img299.imageshack.us/img299/7709/56686477.jpg
http://img835.imageshack.us/img835/1046/39597743.jpg

So how can I make it so that there is space between the forum statistics at the top and the banner. I want both there, just that I don't want them overlapping.
Title: Re: Ad Management mod
Post by: Zidane5555 on August 04, 2010, 11:37:43 PM
^^ Any help  :-\ ??
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 04, 2010, 11:58:38 PM
Quote from: Zidane5555 on August 04, 2010, 11:37:43 PM
^^ Any help  :-\ ??

after your ad code, add a few;

<br />

to the end of the ad, it should move anything below it down.
Title: Re: Ad Management mod
Post by: IceXaos on August 05, 2010, 06:54:07 AM
I already tried asking, so I'm just copying.  This is on the default theme, 2.0 RC3.

I know I'm probably going to get told to post on their 'official thread', but they never seem to help out.  What I'm trying to fix is, when I put on up on the right-hand side (or left), it will cause problems with the images, shoutbox, code boxes, etc. due to their size trying to take 100% rather than what is left.  I know how to resize all of that, but it's not what I'd like to do.  Is there a way to use this, or make my own sidebar, that won't cause the problems?  I would like the code boxes and what-not to resize with the forums still, and the sidebar's width can change at any time, meaning I would have to change every px# after everything I add, or just have them really small.

It works fine on the index, searching for threads, but within the threads there's a lot that will screw with it, and on the index the only thing that messes it up is the shoutbox when someone types a message that goes past the edge.  What it seems to be doing with the shoutbox and codebox is preventing the words from going down to the next line, so they will just continue on and push the sidebar way off the screen, and stretch the forums over there as well.

Link To Ad MOD : http://custom.simplemachines.org/mods/index.php?mod=255

Thanks for any help.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 05, 2010, 11:50:30 AM
A screenshot or two of the problem maybe?
Title: Re: Ad Management mod
Post by: Kindred on August 05, 2010, 12:20:22 PM
why are you using PX rather than % anyway?
Title: Re: Ad Management mod
Post by: Zidane5555 on August 05, 2010, 01:41:35 PM
Quote from: johncccccc on August 04, 2010, 11:58:38 PM
Quote from: Zidane5555 on August 04, 2010, 11:37:43 PM
^^ Any help  :-\ ??

after your ad code, add a few;

<br />

to the end of the ad, it should move anything below it down.

That did exactly the job

Thanks a lot :)
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 05, 2010, 01:44:47 PM
Quote from: Zidane5555 on August 05, 2010, 01:41:35 PM
Quote from: johncccccc on August 04, 2010, 11:58:38 PM
Quote from: Zidane5555 on August 04, 2010, 11:37:43 PM
^^ Any help  :-\ ??

after your ad code, add a few;

<br />

to the end of the ad, it should move anything below it down.

That did exactly the job

Thanks a lot :)

Your welcome :)
Title: Re: Ad Management mod
Post by: de5151 on August 06, 2010, 08:12:01 AM
Is there any way to "stack" ads down the right or left side of a forum so I can display, say, five differents ads all at the same time?
Title: Re: Ad Management mod
Post by: onafets on August 06, 2010, 10:16:12 AM
After installing it, my site is not working

Parse error: syntax error, unexpected $end in /home/mhd-01/www.sport-notizie.com/htdocs/forum/Sources/Subs.php on line 4242

Could you please help me? thank you
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 06, 2010, 12:39:23 PM
Quote from: de5151 on August 06, 2010, 08:12:01 AM
Is there any way to "stack" ads down the right or left side of a forum so I can display, say, five differents ads all at the same time?
Use the same ad form to add all those ads, they should get stacked one below the other by default

Quote from: onafets on August 06, 2010, 10:16:12 AM
After installing it, my site is not working

Parse error: syntax error, unexpected $end in /home/mhd-01/www.sport-notizie.com/htdocs/forum/Sources/Subs.php on line 4242

Could you please help me? thank you

Attach your Subs.php file so it can be fixed
Title: Re: Ad Management mod
Post by: onafets on August 06, 2010, 01:11:48 PM
Quote from: johncccccc on August 06, 2010, 12:39:23 PM
Quote from: de5151 on August 06, 2010, 08:12:01 AM
Is there any way to "stack" ads down the right or left side of a forum so I can display, say, five differents ads all at the same time?
Use the same ad form to add all those ads, they should get stacked one below the other by default

Quote from: onafets on August 06, 2010, 10:16:12 AM
After installing it, my site is not working

Parse error: syntax error, unexpected $end in /home/mhd-01/www.sport-notizie.com/htdocs/forum/Sources/Subs.php on line 4242

Could you please help me? thank you

Attach your Subs.php file so it can be fixed

here it is, thank you
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 06, 2010, 01:21:20 PM
A lot of your subs.php file is missing, I will work on it, if you have not installed any mods, I suggest a new subs.php file, if this is the only mod you have installed, I suggest the same with the manual edits to this file for this mod.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 06, 2010, 01:33:23 PM
I have added the missing part at the end of the file, however, if you had mods which made edits after that part, you will have some issues with them, this should get your forum going though
Title: Re: Ad Management mod
Post by: onafets on August 06, 2010, 01:56:51 PM
Quote from: johncccccc on August 06, 2010, 01:33:23 PM
I have added the missing part at the end of the file, however, if you had mods which made edits after that part, you will have some issues with them, this should get your forum going though

thank you but it still not works

Parse error: syntax error, unexpected $end, expecting ')' in /home/mhd-01/www.sport-notizie.com/htdocs/forum/Sources/Load.php on line 2621
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 06, 2010, 04:25:12 PM
You forum is full or PHP files with parse errors, that parse error is in Load.php (in Sources) attach that one.
Title: Re: Ad Management mod
Post by: de5151 on August 06, 2010, 06:35:33 PM
QuoteUse the same ad form to add all those ads, they should get stacked one below the other by default

When I do that, only one ad at a time is shown.  It rotates through the ads if the page is refreshed.  I was wanting to show all five or so ads at once, stacked one above another.

Is this possible?
Title: Re: Ad Management mod
Post by: vbgamer45 on August 06, 2010, 11:08:06 PM
Not currently possible you would have to use custom ad code and make a table
Title: Re: Ad Management mod
Post by: darkprinz on August 07, 2010, 02:18:17 PM
Hey friends

Got one serious doubt ... Am new to PHP so please forgive and help me even if  feel the question is dumb ...

I have an smf forum installed with 'My Lee theme' set as overall theme .. I have done little appearance change to the theme ... So i want to stick to this theme rather than core or default theme ..

but when i try to install Ad management mod or any mod for instance .. there are instructions like i need to change some code in default/subfolder etc..Which means defalt theme ... If am going to do all the code change wrt to default theme how will it get installed for my actual theme used ???

This is hindering my progress from instlaling mods .. please clear my doubt  :-[ :-[
Title: Re: Ad Management mod
Post by: Kindred on August 07, 2010, 04:01:39 PM
I assume that you are running on smf 1.1.11?  If so, then yes, changes are only done to the default theme (automatically). Other themes will have to be changed manually. This is true for ANY mod on 1.1.11 and on some mods even on 2.0.

The number of changes required in the custom theme depend on which files the theme defines (versus which ones are used from the default)
Title: Re: Ad Management mod
Post by: darkprinz on August 08, 2010, 12:36:54 AM
Quote from: Kindred on August 07, 2010, 04:01:39 PM
I assume that you are running on smf 1.1.11?  If so, then yes, changes are only done to the default theme (automatically). Other themes will have to be changed manually. This is true for ANY mod on 1.1.11 and on some mods even on 2.0.

The number of changes required in the custom theme depend on which files the theme defines (versus which ones are used from the default)

Thanks Kindred for the reply ,

Iam using Smf 2 RC 3 , is the condition same for this release too ??

And As u said ... In most of the mods, including AD management mod ... The instructions contains files to be edited as defalt/boardindextemplate.php
But my custm theme folder doesnot have files like these !!! How am i to modify it manually if that type of files are not there ???!!!  :(

Please help mate  :)
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 08, 2010, 12:40:43 AM
If your using SMF 2 xx you can choose + "Install in other themes", if the files pass then it will install it into that theme for you
Title: Re: Ad Management mod
Post by: darkprinz on August 08, 2010, 01:35:15 AM
Quote from: JohnCcCcCc on August 08, 2010, 12:40:43 AM
If your using SMF 2 xx you can choose + "Install in other themes", if the files pass then it will install it into that theme for you

Oh ok will then try it out and tell u ppl .. thanks
Title: Re: Ad Management mod
Post by: waqarhassan on August 08, 2010, 02:03:50 AM
i installed it on my forum this is very good thing you can change permission for all user very nice i am thanks to developer of this mod thanks again
Title: Re: Ad Management mod
Post by: darkprinz on August 08, 2010, 04:21:45 AM
I tried as  ppl suggested ...

I installed
AD mod in default theme  and in additional options installed it in my custom theme ...It was stated succesful too ...

After that i tried to add a ad unit ... now in the place where ad should be there i get this php error lines

Parse error: syntax error, unexpected '<' in /home/hiamyc/public_html/Sources/Load.php(2083) : eval()'d code(329) : eval()'d code on line 1  [/b]

What could be the problem ??  :-[
Title: Re: Ad Management mod
Post by: darkprinz on August 08, 2010, 08:14:05 AM
any one please help me  :-\
Title: Re: Ad Management mod
Post by: GarfieldP on August 08, 2010, 08:29:31 AM
wait at least 24 hours man! ::)
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 08, 2010, 11:43:27 AM
Seems their is a parse error in Load.php according to that error

attach it
Title: Re: Ad Management mod
Post by: Kindred on August 08, 2010, 07:26:40 PM
john, see the EVAL statement. That means that the error is probably NOT in load.php.

Darkprinz, please go into your server settings in admin and click the checkbox for turning OFF the eval statemments.

Also, if the template file is not present in the custom theme, then the system uses the one in the default theme directory (which is why many themes are nothing except index.template.php, css and image files)

As for what happened....  it looks like the mod did not install cleanly (no kidding, right)
You may have to manually review the edits to confirm which files were edited where...
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 08, 2010, 07:29:46 PM
Quote from: Kindred on August 08, 2010, 07:26:40 PM
john, see the EVAL statement. That means that the error is probably NOT in load.php.

Still, a look at that line should help track it down lol
Title: Re: Ad Management mod
Post by: Kindred on August 08, 2010, 09:48:06 PM
john...   No. it will not. EVAL has very little relation (if any) to the actual error. Often the eval error appears as the last line of the file.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 08, 2010, 09:57:25 PM
Quote from: Kindred on August 08, 2010, 09:48:06 PM
john...   No. it will not. EVAL has very little relation (if any) to the actual error. Often the eval error appears as the last line of the file.

So approaching the error, where do you look then, 1st place?
Title: Re: Ad Management mod
Post by: crustybum on August 09, 2010, 05:34:41 AM
I have had some problems with this (just a small one)  where everything is duplicated twice, i can see it on my index template, but every time i try to remove the duplicate code it messes up my forum, i dont know what it is i am doing(or not) (luckily i saved original) if i post my index up could someone have a look ...please?

Chris
Title: Re: Ad Management mod
Post by: Hj Ahmad Rasyid Hj Ismail on August 09, 2010, 07:23:09 AM
Please refer to the mod page, tick mod release, select smf version you use and click parse just below it. You will get instructions how the mod is installed. Do the reverse of that to remove the code from each modified files.
Title: Re: Ad Management mod
Post by: Kindred on August 09, 2010, 08:20:10 AM
Quote from: JohnCcCcCc on August 08, 2010, 09:57:25 PM
Quote from: Kindred on August 08, 2010, 09:48:06 PM
john...   No. it will not. EVAL has very little relation (if any) to the actual error. Often the eval error appears as the last line of the file.

So approaching the error, where do you look then, 1st place?

you have to disable the eval statement. There is a mod for 1.1.x and it is part of the admin features in 2.0
Title: Re: Ad Management mod
Post by: king999 on August 10, 2010, 04:46:35 AM
I m using dizner studio themes so how can i install this mod in those theme i faced problems when i install.
Title: Re: Ad Management mod
Post by: Kindred on August 10, 2010, 06:52:34 PM
manually make the code changes in your custom theme
Title: Re: Ad Management mod
Post by: vbgamer45 on August 11, 2010, 02:06:55 PM
Generally what I do is either use the mod site manual install instructions or a package parser website and then see where the codes.
Title: Re: Ad Management mod
Post by: samjay on August 13, 2010, 09:03:21 AM
Quote from: king999 on August 10, 2010, 04:46:35 AM
I m using dizner studio themes so how can i install this mod in those theme i faced problems when i install.
i got the same problem with my dizner studio theme see below link this will help ! ;)

http://www.dzinerstudio.com/index.php?topic=5140.msg37326#msg37326

Title: Re: Ad Management mod
Post by: vbgamer45 on August 13, 2010, 09:26:57 AM
That topic has install instructions right inside it.
Title: Re: Ad Management mod
Post by: Biology Forums on August 13, 2010, 10:55:05 PM
Hi I successfully installed this mod on my website and configured all the adsense ads according to how I wanted it. However, the ads are not being displayed. The installation went perfectly and I am using the "Default" theme... w w w. BIOLOGY-FORUMS dot com is the domain. Is there anything else I can do so that it starts working? This is a new domain, but I don't think that has anything to do with the adsense policy because it doesn't go against it.

Is there more to the configuration process?
Title: Re: Ad Management mod
Post by: vbgamer45 on August 14, 2010, 01:22:56 AM
A new domain may take a while for adsense to display. Just also check under permissions that all groups can see ads
Title: Re: Ad Management mod
Post by: Biology Forums on August 14, 2010, 10:45:36 AM
I did that and all are able to see it. I don't know why it's not showing, installation went smooth, the setup also

:(
Title: Re: Ad Management mod
Post by: vbgamer45 on August 14, 2010, 07:35:20 PM
Try a custom banner or script code instead of adsense and see if it works or not.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 14, 2010, 07:42:38 PM
You could type anything in their.

"This is a test to see if my ad system works"
Title: Re: Ad Management mod
Post by: wangx44 on August 20, 2010, 01:25:43 AM
I tried installing the mod and got these errors.

*     4.     Execute Modification     ./Themes/default/index.template.php     Test failed
      1.    Replace    ./Themes/default/index.template.php    Test failed

*     6.     Execute Modification     ./Themes/default/Display.template.php     Test failed
      1.    Add After    ./Themes/default/Display.template.php    Test failed

Plus these errors under the 'Install in Other Themes' option.

          Execute Modification     ./Themes/inferno_20rc3/index.template.php     Test failed
      1.    Replace    ./Themes/inferno_20rc3/index.template.php    Test failed
      2.    Add After    ./Themes/inferno_20rc3/index.template.php    Test failed
      3.    Add After    ./Themes/inferno_20rc3/index.template.php    Test failed
      4.    Add After    ./Themes/inferno_20rc3/index.template.php    Test failed
      5.    Add Before    ./Themes/inferno_20rc3/index.template.php    Test failed
Title: Re: Ad Management mod
Post by: crustybum on August 20, 2010, 06:08:34 AM
Great mod BTW, i can get this to work on all boards except 1! really strange....am i missing something? in the config i put in all the board numbers i.e. 2,3,4,5,6,7,8 etc.....but it wont show on 4!

Chris
Title: Re: Ad Management mod
Post by: vbgamer45 on August 20, 2010, 09:02:01 AM
Quote from: wangx44 on August 20, 2010, 01:25:43 AM
I tried installing the mod and got these errors.

*     4.     Execute Modification     ./Themes/default/index.template.php     Test failed
      1.    Replace    ./Themes/default/index.template.php    Test failed

*     6.     Execute Modification     ./Themes/default/Display.template.php     Test failed
      1.    Add After    ./Themes/default/Display.template.php    Test failed

Plus these errors under the 'Install in Other Themes' option.

          Execute Modification     ./Themes/inferno_20rc3/index.template.php     Test failed
      1.    Replace    ./Themes/inferno_20rc3/index.template.php    Test failed
      2.    Add After    ./Themes/inferno_20rc3/index.template.php    Test failed
      3.    Add After    ./Themes/inferno_20rc3/index.template.php    Test failed
      4.    Add After    ./Themes/inferno_20rc3/index.template.php    Test failed
      5.    Add Before    ./Themes/inferno_20rc3/index.template.php    Test failed
You will need to make the changes manually for those edits mostly like another mod edited the same areas which is causing the conflict
Title: Re: Ad Management mod
Post by: slider11111 on August 23, 2010, 02:42:41 PM
I am having a problem All the ads have a red X or the other small box althou all the images show up. There are no additional pictures that should be there? They don.t show up in Mozilla but do in IE. I was told Mozilla will hide somthing that's broken but I.E. shows them.   See screen shot.

(http://i402.photobucket.com/albums/pp107/slider11111/Screen%20Shots/Capture.jpg)

this is the code for the Sheep Ad.


<a  href='https://albinovest.com/'><img src href="http://s402.photobucket.com/albums/pp107/slider11111/Ads/?action=view&current=huntfishnwcom-ad-1.gif" target="_blank"><img src="http://i402.photobucket.com/albums/pp107/slider11111/Ads/huntfishnwcom-ad-1.gif" border="0" alt="huntfishnw.com"></a>
Title: Re: Ad Management mod
Post by: vbgamer45 on August 23, 2010, 03:14:51 PM
What code do you have entered?
Title: Re: Ad Management mod
Post by: glennk on August 23, 2010, 03:50:29 PM
I have recent install of 2rc3. No mods installed. I get parse error with ad managment mod. Could you please advise on what to look for to rectify this

1.     Execute Code     install.php     
   2.    Execute Modification    install.xml    Modification parse error
   3.    Execute Modification    install.xml    Modification parse error
   
Title: Re: Ad Management mod
Post by: vbgamer45 on August 23, 2010, 04:00:34 PM
I have seen that occur with file permission issue. I would check all the file permissions are correct on all files/folder for your forum.
Title: Re: Ad Management mod
Post by: glennk on August 23, 2010, 04:27:19 PM
Ive sorted it. needed to make a temp directory in packages.

Now I have a new problem. I have installed the mod, but cant find the settings for it in my admin panel.
Title: Re: Ad Management mod
Post by: vbgamer45 on August 23, 2010, 04:33:57 PM
Do you have a blank spot? Check your language settings if so.
Title: Re: Ad Management mod
Post by: slider11111 on August 23, 2010, 04:36:19 PM
I put the code below the screen shot.
Title: Re: Ad Management mod
Post by: glennk on August 23, 2010, 04:38:25 PM
no blank spot. But no mention of the ad managment mod in the configuration area. What am I checking the languages for please ?
Title: Re: Ad Management mod
Post by: glennk on August 23, 2010, 04:42:40 PM
(http://i24.photobucket.com/albums/c5/big_cod/2010/no-ads.jpg)
Title: Re: Ad Management mod
Post by: vbgamer45 on August 23, 2010, 05:29:07 PM
Quote from: slider11111 on August 23, 2010, 04:36:19 PM
I put the code below the screen shot.
Bad code
http://s402.photobucket.com/albums/pp107/slider11111/Ads/?action=view&current=huntfishnwcom-ad-1.gif
Is a source to a website not to the image itself
Title: Re: Ad Management mod
Post by: slider11111 on August 23, 2010, 05:35:39 PM
I unistaled the mod then deleted it then reinstalled it. Now when i make an ad it places two ads in the edit ad section and puts two ads on the page ? I uninstalled the mod again then deleted it and I reinstalled it and now I get three ads?
Title: Re: Ad Management mod
Post by: vbgamer45 on August 23, 2010, 05:37:29 PM
Looks like the mod did not uninstall you need to follow the manually install instructions to remove the duplicate code added
Title: Re: Ad Management mod
Post by: glennk on August 23, 2010, 07:49:09 PM
Hi VBGAMER are you able to help me please
Title: Re: Ad Management mod
Post by: vbgamer45 on August 23, 2010, 07:56:04 PM
I dont' believe its under modifications setttings. Check that the mod actually modified the admin.php file in the sources for the ad mod. It should have its own section.
Title: Re: Ad Management mod
Post by: glennk on August 24, 2010, 02:41:17 PM
I cant see any code for the mod in admin.php what is the code im looking for ?
Title: Re: Ad Management mod
Post by: glennk on August 24, 2010, 02:54:25 PM
I tried navigating to the url for the admod area and got this message

Issue with the Ad Mod
LoadAds.php is missing/corrupt from your sources directory. Please make sure that it uploaded properly. The Ad mod won't be able to function properly. If you are having issues, please visit www.smfads.com!
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 24, 2010, 02:59:39 PM
Please don't bump your support request before 24 hours..

Have you tried to reupload LoadAds.php manually from the package?
Title: Re: Ad Management mod
Post by: glennk on August 24, 2010, 04:08:52 PM
It is present and looks ok. I reuploaded but the error persists. In ftp it says its owned by apache apache. Is this correct ?
Title: Re: Ad Management mod
Post by: vbgamer45 on August 24, 2010, 04:13:35 PM
Yeah that is fine. I would double check the install to see if the install took at all.
It seems like only portions were installed check the manual install instructions and see if all the files where edited.
Title: Re: Ad Management mod
Post by: _pi on August 24, 2010, 04:44:48 PM
sorry to ask that, but i also have double entries in admin(index.php?action=admod)
currently i got only 2 ads, but both are displayed twice.
this topic is very long, so its hard to find the solution.
i use smf 1.1.11.
how to fix that?

i already went the hard way to remove all your code by hand and then installed again (also manual editing was required, because my test forum is heavy tweaked)

thanks!
Title: Re: Ad Management mod
Post by: dWhite on August 24, 2010, 04:46:54 PM
Cool thanks. I use this mod on my upcoming advertising forum. :)
Title: Re: Ad Management mod
Post by: vbgamer45 on August 24, 2010, 04:49:16 PM
Quote from: _pi on August 24, 2010, 04:44:48 PM
sorry to ask that, but i also have double entries in admin(index.php?action=admod)
currently i got only 2 ads, but both are displayed twice.
this topic is very long, so its hard to find the solution.
i use smf 1.1.11.
how to fix that?

i already went the hard way to remove all your code by hand and then installed again (also manual editing was required, because my test forum is heavy tweaked)

thanks!
If you have duplicate ads or duplicate entried for ad mod in admin center.
That means the mod was installed twice and needs to be removed manually using the manual install instructions on the site.
Title: Re: Ad Management mod
Post by: _pi on August 24, 2010, 05:04:34 PM
Quote from: vbgamer45 on August 24, 2010, 04:49:16 PM
Quote from: _pi on August 24, 2010, 04:44:48 PM
sorry to ask that, but i also have double entries in admin(index.php?action=admod)
currently i got only 2 ads, but both are displayed twice.
this topic is very long, so its hard to find the solution.
i use smf 1.1.11.
how to fix that?

i already went the hard way to remove all your code by hand and then installed again (also manual editing was required, because my test forum is heavy tweaked)

thanks!
If you have duplicate ads or duplicate entried for ad mod in admin center.
That means the mod was installed twice and needs to be removed manually using the manual install instructions on the site.

i already did that. thats why i ask.
which part of your scripts is listing the ads in admin? please point me the right place, so that i can check.
Title: Re: Ad Management mod
Post by: Kindred on August 24, 2010, 06:08:27 PM
well, if you go through the mod parser, you can figure it out...
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 24, 2010, 06:18:42 PM
If your talking about the 2 entries for the configuration area..
Look for
Code (index.php) Select

'admod' => array('Ads.php', 'Ads'),

and
Code (subs.php) Select

'edit_addmod' => '<a href="' . $scripturl . '?action=admod">' . $txt['ad_management'] . '</a>',


see if its their twice, Note the Ads.php, that's the configuration area I believe.

I would generally look for everything that this mod changes/adds and see if anything is their twice one file at a time.
Title: Re: Ad Management mod
Post by: _pi on August 24, 2010, 06:47:44 PM
Quote from: Kindred on August 24, 2010, 06:08:27 PM
well, if you go through the mod parser, you can figure it out...

thats really not a helpful reply.
Title: Re: Ad Management mod
Post by: _pi on August 24, 2010, 06:50:09 PM
Quote from: JohnCcCcCc on August 24, 2010, 06:18:42 PM
If your talking about the 2 entries for the configuration area..
Look for
Code (index.php) Select

      'admod' => array('Ads.php', 'Ads'),

and
Code (subs.php) Select

            'edit_addmod' => '<a href="' . $scripturl . '?action=admod">' . $txt['ad_management'] . '</a>',


see if its their twice, Note the Ads.php, that's the configuration area I believe.

I would generally look for everything that this mod changes/adds and see if anything is their twice one file at a time.

thanks, i have both only once.
Title: Re: Ad Management mod
Post by: Kindred on August 24, 2010, 06:50:55 PM
?  whyever is it not?  Because I expect you to do some work on your own rather than handing you answers on a platter?  These questions are the main reason that we added the parser into the mod site.
Title: Re: Ad Management mod
Post by: _pi on August 24, 2010, 07:11:29 PM
Quote from: Kindred on August 24, 2010, 06:50:55 PM
?  whyever is it not?  Because I expect you to do some work on your own rather than handing you answers on a platter?  These questions are the main reason that we added the parser into the mod site.

when lecturing makes you happy, then you made your point. but other than that your remark doesn't help me.
Title: Re: Ad Management mod
Post by: Kindred on August 24, 2010, 07:23:24 PM
_pi,

yes, it does.  Rather than review your files, or hand you an answer, which may solve this one issue, but does you no good in the future or for any other problems, I pointed you to the location where you can get the answer (and handle similar questions in the future)

You know the old saw - give a man a fish and he eats for a day, teach him how to fish and he eats for a lifetime.
Title: Re: Ad Management mod
Post by: _pi on August 24, 2010, 07:53:10 PM
Quote from: Kindred on August 24, 2010, 07:23:24 PM
_pi,

yes, it does.  Rather than review your files, or hand you an answer, which may solve this one issue, but does you no good in the future or for any other problems, I pointed you to the location where you can get the answer (and handle similar questions in the future)

You know the old saw - give a man a fish and he eats for a day, teach him how to fish and he eats for a lifetime.

no my friend. this is the Ad Management mod support thread. i asked my questions and you step in with useless info.
i already removed all code by hand and then installed again. that took me some time. and since i don't understand the logic for displaying ads in admin right now, i asked here. your message i do understand that asking here is not allowed.
Title: Re: Ad Management mod
Post by: Kindred on August 24, 2010, 08:46:55 PM
you asked, but the answer is in the code that I pointed you to, so my information was not useless.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 24, 2010, 09:25:41 PM
Their are only 6 files modified with this mod, it should not be too hard to remove it "completely". then re-install the mod.

If your having so much trouble removing the mod manually so it can be re installed, you can attach them here and I will explain any parts you missed.

On the other hand, Kindred is right, you should try to learn the code rather than have it done for you, it will be better for you in the long run. Also you can request support here freely as that's what this topic is for.

So if you attach your files here I will point out what (if anything) your missing, this way you can get things done and see the error in your ways ;)
Title: Re: Ad Management mod
Post by: gbsothere on August 25, 2010, 01:07:15 PM
I'm helping a member install this on his custom theme (for 1.1.11).

Would someone take a look at this custom index.template.php (attached) and tell me where, exactly, to place this bit of code?  (I have the others sorted.)  It's the "find" string that's throwing me.

Find:
</td> 


Add After:
';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo '



Comparing this to default's template, I'm just not sure about the best place for this.  (It's Reference 1111, if that even matters.)


Thanks.   ;)
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 25, 2010, 01:10:44 PM
This would be the ad in the welcome area with the user information.

The way I find out custom ads, is to get the found line in default, and check which function that part is in, then go to that function for the custom theme too, look carefully at the code following the globals and go down until you see similarities in the code
Title: Re: Ad Management mod
Post by: gbsothere on August 25, 2010, 01:20:03 PM
Quote from: JohnCcCcCc on August 25, 2010, 01:10:44 PM
This would be the ad in the welcome area with the user information.

The way I find out custom ads, is to get the found line in default, and check which function that part is in, then go to that function for the custom theme too, look carefully at the code following the globals and go down until you see similarities in the code


I was trying that and found myself in the upshrink, but then it veered off into something a bit odd.  *grin*  (Actually, what I'm trying to do is to avoid a template parse error, since it's someone else's forum.)  I suppose I could install this and the theme on one of my test boards, but I hate to do that, since my test board is already overladen with everyone else's themes and mods.   :D



Edit:   What do you think about just before the random news, John? 
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 25, 2010, 01:28:02 PM
Well I will attempt to make the edit, I will make sure their is not a parse error :)

But I am right in assuming this is the ad in the user information area?
Title: Re: Ad Management mod
Post by: gbsothere on August 25, 2010, 01:33:23 PM
Quote from: JohnCcCcCc on August 25, 2010, 01:28:02 PM
Well I will attempt to make the edit, I will make sure their is not a parse error :)

But I am right in assuming this is the ad in the user information area?



It does seem to be.  I ran the "find string" on default's template and it landed in this block of code:

</form>';
}

echo '
</td>
</tr>

</table>
</td>
</tr>
</table>';

echo '
<table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', ' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>';

// Show a random news item? (or you could pick one from news_lines...)



So I'm assuming this is the general area, but this custom theme is throwing with its "try and guess" layout.   :D
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 25, 2010, 01:37:06 PM
I was looking right before the news I just got the code, doing that you would have to remove that last echo however

Its that or before search, If I'm correct, which I think I am, that ad would be floated right, so it could be placed in a few places to work correctly.


Try the news one 1st here is what it should look like.


                     //Welcome Ads
                     if (function_exists("show_welcomeAds"))
                     {
                        $ads = show_welcomeAds();
                        if(!empty($ads))
                        {
                           echo '<td class="windowbg2">';
                           if($ads['type']==0)
                              echo $ads['content'];
                           else
                              eval($ads['content']);
                           echo '</td>';
                        }
                        unset($ads);
                     }
                          // Show a random news item? (or you could pick one from news_lines...)


Try that, I believe its parse error free

HOLD up on this, let me look at the code you got their, ok, I guess give it a shot then
Title: Re: Ad Management mod
Post by: gbsothere on August 25, 2010, 01:45:27 PM
No template parse!  You are a gentleman and a scholar, sir.   :D

Not being familiar with the mod, I'm not sure what I'm looking for, so I'll have to click around to see if it's enabled, but no template parse error, so I'm a happy camper. 

Thanks!   ;)
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on August 25, 2010, 01:48:52 PM
Be sure to post back, their are several other places which may fit the edit :)
Title: Re: Ad Management mod
Post by: gbsothere on August 25, 2010, 01:58:06 PM
Quote from: JohnCcCcCc on August 25, 2010, 01:48:52 PM
Be sure to post back, their are several other places which may fit the edit :)

I will.  I have to hear back from him, first; his ad (ad config) has a path for a directory and an image that doesn't exist, so I can't tell anything by looking.    :)   I'll let you know, though.


EDIT:  I think that did the trick, John.  Thanks, again.   :)
Title: Re: Ad Management mod
Post by: frantic on August 26, 2010, 01:29:28 PM
Hello, I'm using the Mobile_alt theme from crip and their is one template change that i just can't find. Its this one

QuoteFind[Select]    
                               <div id="content_section"><div class="frame">
      <div id="main_content_section">';

Add After[Select]    
                               if (function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
   {
      //Tower left Ads
      $ads = show_towerleftAds();
      if(!empty($ads))
         echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td    width="100%" valign="top">';

      unset($ads);
      //Tower Right Ads
      $ads = show_towerrightAds();   
      if(!empty($ads))
         echo '<table><tr><td width="100%" valign="top">';
      unset($ads);
   }
The only code that resemsbles that is
   <div class="navigate_section">
                                or
                 <div id="footer_section">

Their is nothing in my index.template.php file for the code i'm looking for that contains Frame, or Main_content, or Main_content_section.  I tired looking for anything that i could use to try the code but couldn't find anything.  What can i do to get tower ads outside my forum body?

Our Site:  www.gadgetank.com
SMF:  2.0Rc3
Title: Re: Ad Management mod
Post by: vbgamer45 on August 26, 2010, 02:04:07 PM
That code would go at the end of template_body_above in rc3
Title: Re: Ad Management mod
Post by: frantic on August 26, 2010, 03:26:04 PM
thanks vbgamer45! :)
Title: Re: Ad Management mod
Post by: vbgamer45 on August 26, 2010, 03:49:50 PM
Glad you got it!
Title: Re: Ad Management mod
Post by: slider11111 on August 26, 2010, 07:45:22 PM
I loaded the Mod and it double installed? How do I make the Copyright text half the size? It's currently twice the size of SMF? Also what portion of the Text is required to stay there?
Title: Re: Ad Management mod
Post by: vbgamer45 on September 02, 2010, 08:55:07 AM
There is a built in feature to hide ads for admins. You can also disable ads for other membergroups using permissions
Title: Re: Ad Management mod
Post by: OnlineFunCorner on September 02, 2010, 10:20:45 AM
Lets Suppose I Am Admin Of My Forum
And
I Get Google Adsense And Put In My Forum
--
As You Know Their Are Two Common Ads As CPC (Cost Per Click) & CPM (Cost Per Mille/Impression)
I Have No Permission To Click On My Ads
I Have Also No Permission Of Excessive Pages Or Ads Impressions
--
As An Admin If I Hide Ads For My Self I Will Not See Ads And No Chance Of Accidental Clicks
Also If I Hide Ads For Other MemberGruops Like Global Moderators In Permissions They Also Will Not Have A Chance Of Accidental Clicks
--
But Besides Clicks Their Is Another Term Called Impressions Relative To CPM
As By Hiding Ads I Will Prevent From Accidental Clicks
But
Can I Also I Prevent From Excessive Impressions
As If In Normal Conditions When Ads Are Displayed To Me If I Daily Make 500+ Page Views (Google Can Ban Account To Invalid Impressions)
But
What If I Disable Ads For Admin/My Self & I Daily Make 500+ Page Views
Is That Count In Invalid Or Excessive Impressions (Will Google Count This Invalid Impressions)
But Actually Ads Are Disable For Me.
-
In Short
What Is The Objective/Purpose Or Benefit Of Hiding Ads For Admin?
What Is The Objective/Purpose Or Benefit Of Hiding Ads For Other MemberGroups?
Is That Save Admin From Invalid Click & Impressions By Himself.
--
Please Also Describe These

- Disable all ads if you are an admin
- Disable all ads on a global scale

What Are The Needs Of Them And Their Use?
--
Please Read All And Reply In Detail
Please
Title: Re: Ad Management mod
Post by: Kindred on September 02, 2010, 10:38:37 AM
please stop multiple posting. If you have an addition to your previous message and there has been no response, the use the MODIFY button and add your additional comments into the existing post.
Title: Re: Ad Management mod
Post by: OnlineFunCorner on September 02, 2010, 10:55:13 AM
Quote from: Kindred on September 02, 2010, 10:38:37 AM
please stop multiple posting. If you have an addition to your previous message and there has been no response, the use the MODIFY button and add your additional comments into the existing post.
Sorry
Thanks For Mentioning
I Will Take Care Of It Next Time!
Title: Re: Ad Management mod
Post by: AZMazda3 on September 02, 2010, 09:05:27 PM
Ok previously the Ad Manager was working fine, thought it would be good to update it to the latest version from 2.3 something to 2.6.3.2 so I uninstalled the older version. (Probably a bad idea, I can reload the backed up forum but I'd reather not) Uninstalled fine. Went to install 2.6.3.2 and now got a ton of "test failed" messages. Now what? Manual edits?

Type Action Description
1. Execute Code install.php 
2. Execute Modification ./index.php Test successful
  1. Add After ./index.php Test successful
  2. Add After ./index.php Test successful
  3. Add After ./index.php Test successful

3. Execute Modification ./Sources/Admin.php Test successful
  1. Add After ./Sources/Admin.php Test successful
  2. Add After ./Sources/Admin.php Test successful

4. Execute Modification ./Themes/default/index.template.php Test failed
  1. Replace ./Themes/default/index.template.php Test successful
  2. Add After ./Themes/default/index.template.php Test failed
  3. Add After ./Themes/default/index.template.php Test successful
  4. Add After ./Themes/default/index.template.php Test failed
  5. Add Before ./Themes/default/index.template.php Test failed

5. Execute Modification ./Themes/default/BoardIndex.template.php Test failed
  1. Add Before ./Themes/default/BoardIndex.template.php Test successful
  2. Add After ./Themes/default/BoardIndex.template.php Test failed

6. Execute Modification ./Themes/default/Display.template.php Test failed
  1. Add After ./Themes/default/Display.template.php Test successful
  2. Replace ./Themes/default/Display.template.php Test successful
  3. Replace ./Themes/default/Display.template.php Test failed

7. Execute Modification ./Themes/default/MessageIndex.template.php Test failed
  1. Add After ./Themes/default/MessageIndex.template.php Test successful
  2. Add After ./Themes/default/MessageIndex.template.php Test failed

8. Execute Modification ./Sources/ManagePermissions.php Test successful
  1. Add After ./Sources/ManagePermissions.php Test successful

9. Extract File ./Sources/Ads.php 
10. Extract File ./Sources/LoadAds.php 
11. Extract File ./Themes/default/Ads.template.php 
12. Extract File ./Themes/default/languages/Ads.english.php 
13. Extract File ./Themes/default/languages/Ads.english-utf8.php 

Install in Other Themes
To use this modification in themes other than the default, the package manager needs to make additional changes to the other themes. If you'd like to install this modification in the other themes, please select these themes below. 
   Classic YaBB SE Theme 
   Execute Modification ./Themes/classic/index.template.php Test failed
  1. Replace ./Themes/classic/index.template.php Test successful
  2. Add After ./Themes/classic/index.template.php Test failed
  3. Add After ./Themes/classic/index.template.php Test successful
  4. Add After ./Themes/classic/index.template.php Test failed
  5. Add Before ./Themes/classic/index.template.php Test failed

   Execute Modification ./Themes/classic/BoardIndex.template.php Test failed
  1. Add Before ./Themes/classic/BoardIndex.template.php Test failed
  2. Add After ./Themes/classic/BoardIndex.template.php Test failed

   Execute Modification ./Themes/classic/Display.template.php Test failed
  1. Add After ./Themes/classic/Display.template.php Test failed
  2. Replace ./Themes/classic/Display.template.php Test failed
  3. Replace ./Themes/classic/Display.template.php Test failed

   Execute Modification ./Themes/classic/MessageIndex.template.php Test failed
  1. Add After ./Themes/classic/MessageIndex.template.php Test successful
  2. Add After ./Themes/classic/MessageIndex.template.php Test failed

   Babylon Theme 
   Execute Modification ./Themes/babylon/index.template.php Test failed
  1. Replace ./Themes/babylon/index.template.php Test successful
  2. Add After ./Themes/babylon/index.template.php Test failed
  3. Add After ./Themes/babylon/index.template.php Test successful
  4. Add After ./Themes/babylon/index.template.php Test failed
  5. Add Before ./Themes/babylon/index.template.php Test failed

   Execute Modification ./Themes/babylon/BoardIndex.template.php Test failed
  1. Add Before ./Themes/babylon/BoardIndex.template.php Test failed
  2. Add After ./Themes/babylon/BoardIndex.template.php Test failed

   Execute Modification ./Themes/babylon/Display.template.php Test failed
  1. Add After ./Themes/babylon/Display.template.php Test failed
  2. Replace ./Themes/babylon/Display.template.php Test successful
  3. Replace ./Themes/babylon/Display.template.php Test failed

   Execute Modification ./Themes/babylon/MessageIndex.template.php Test failed
  1. Add After ./Themes/babylon/MessageIndex.template.php Test successful
  2. Add After ./Themes/babylon/MessageIndex.template.php Test failed

   Deep Red v1.3 
   Execute Modification ./Themes/Deep_Red_2009_v1-3/index.template.php Test failed
  1. Replace ./Themes/Deep_Red_2009_v1-3/index.template.php Test successful
  2. Add After ./Themes/Deep_Red_2009_v1-3/index.template.php Test failed
  3. Add After ./Themes/Deep_Red_2009_v1-3/index.template.php Test successful
  4. Add After ./Themes/Deep_Red_2009_v1-3/index.template.php Test failed
  5. Add Before ./Themes/Deep_Red_2009_v1-3/index.template.php Test failed

   Execute Modification ./Themes/Deep_Red_2009_v1-3/BoardIndex.template.php Test failed
  1. Add Before ./Themes/Deep_Red_2009_v1-3/BoardIndex.template.php Test successful
  2. Add After ./Themes/Deep_Red_2009_v1-3/BoardIndex.template.php Test failed

   Night Blue 
   Execute Modification ./Themes/nightblue20/index.template.php Test failed
  1. Replace ./Themes/nightblue20/index.template.php Test successful
  2. Add After ./Themes/nightblue20/index.template.php Test failed
  3. Add After ./Themes/nightblue20/index.template.php Test successful
  4. Add After ./Themes/nightblue20/index.template.php Test failed
  5. Add Before ./Themes/nightblue20/index.template.php Test failed

   Execute Modification ./Themes/nightblue20/BoardIndex.template.php Test failed
  1. Add Before ./Themes/nightblue20/BoardIndex.template.php Test successful
  2. Add After ./Themes/nightblue20/BoardIndex.template.php Test failed

   Execute Modification ./Themes/nightblue20/Display.template.php Test failed
  1. Add After ./Themes/nightblue20/Display.template.php Test failed
  2. Replace ./Themes/nightblue20/Display.template.php Test successful
  3. Replace ./Themes/nightblue20/Display.template.php Test failed

   Mavi Dus 
   Execute Modification ./Themes/mavidus/index.template.php Test failed
  1. Replace ./Themes/mavidus/index.template.php Test successful
  2. Add After ./Themes/mavidus/index.template.php Test failed
  3. Add After ./Themes/mavidus/index.template.php Test failed
  4. Add After ./Themes/mavidus/index.template.php Test failed
  5. Add Before ./Themes/mavidus/index.template.php Test failed

   Execute Modification ./Themes/mavidus/BoardIndex.template.php Test failed
  1. Add Before ./Themes/mavidus/BoardIndex.template.php Test failed
  2. Add After ./Themes/mavidus/BoardIndex.template.php Test failed

   Execute Modification ./Themes/mavidus/Display.template.php Test failed
  1. Add After ./Themes/mavidus/Display.template.php Test successful
  2. Replace ./Themes/mavidus/Display.template.php Test successful
  3. Replace ./Themes/mavidus/Display.template.php Test failed

   Execute Modification ./Themes/mavidus/MessageIndex.template.php Test failed
  1. Add After ./Themes/mavidus/MessageIndex.template.php Test successful
  2. Add After ./Themes/mavidus/MessageIndex.template.php Test failed

   MegaPolis 
   Execute Modification ./Themes/MegaPolis/index.template.php Test failed
  1. Replace ./Themes/MegaPolis/index.template.php Test successful
  2. Add After ./Themes/MegaPolis/index.template.php Test failed
  3. Add After ./Themes/MegaPolis/index.template.php Test failed
  4. Add After ./Themes/MegaPolis/index.template.php Test failed
  5. Add Before ./Themes/MegaPolis/index.template.php Test failed

   Execute Modification ./Themes/MegaPolis/BoardIndex.template.php Test failed
  1. Add Before ./Themes/MegaPolis/BoardIndex.template.php Test failed
  2. Add After ./Themes/MegaPolis/BoardIndex.template.php Test failed

   Execute Modification ./Themes/MegaPolis/Display.template.php Test failed
  1. Add After ./Themes/MegaPolis/Display.template.php Test successful
  2. Replace ./Themes/MegaPolis/Display.template.php Test successful
  3. Replace ./Themes/MegaPolis/Display.template.php Test failed

   Adorfa Multi Color 
   Execute Modification ./Themes/AdorfaMC114/index.template.php Test failed
  1. Replace ./Themes/AdorfaMC114/index.template.php Test successful
  2. Add After ./Themes/AdorfaMC114/index.template.php Test failed
  3. Add After ./Themes/AdorfaMC114/index.template.php Test successful
  4. Add After ./Themes/AdorfaMC114/index.template.php Test failed
  5. Add Before ./Themes/AdorfaMC114/index.template.php Test failed

   Execute Modification ./Themes/AdorfaMC114/BoardIndex.template.php Test failed
  1. Add Before ./Themes/AdorfaMC114/BoardIndex.template.php Test failed
  2. Add After ./Themes/AdorfaMC114/BoardIndex.template.php Test failed

   Execute Modification ./Themes/AdorfaMC114/Display.template.php Test failed
  1. Add After ./Themes/AdorfaMC114/Display.template.php Test successful
  2. Replace ./Themes/AdorfaMC114/Display.template.php Test successful
  3. Replace ./Themes/AdorfaMC114/Display.template.php Test failed

   bisdakworld_silver 
   Execute Modification ./Themes/bisdakworld_silver/index.template.php Test failed
  1. Replace ./Themes/bisdakworld_silver/index.template.php Test successful
  2. Add After ./Themes/bisdakworld_silver/index.template.php Test failed
  3. Add After ./Themes/bisdakworld_silver/index.template.php Test successful
  4. Add After ./Themes/bisdakworld_silver/index.template.php Test failed
  5. Add Before ./Themes/bisdakworld_silver/index.template.php Test failed

   Nice_silver 
   Execute Modification ./Themes/nice_silver/index.template.php Test failed
  1. Replace ./Themes/nice_silver/index.template.php Test successful
  2. Add After ./Themes/nice_silver/index.template.php Test failed
  3. Add After ./Themes/nice_silver/index.template.php Test successful
  4. Add After ./Themes/nice_silver/index.template.php Test failed
  5. Add Before ./Themes/nice_silver/index.template.php Test failed

   Execute Modification ./Themes/nice_silver/BoardIndex.template.php Test failed
  1. Add Before ./Themes/nice_silver/BoardIndex.template.php Test failed
  2. Add After ./Themes/nice_silver/BoardIndex.template.php Test failed



Title: Re: Ad Management mod
Post by: vbgamer45 on September 02, 2010, 11:24:23 PM
Are you using all those themes? If not just add the code for the spots that fail on package manager install.
Title: Re: Ad Management mod
Post by: vbgamer45 on September 03, 2010, 12:52:45 AM
Just uncheck Enable Ads under Admin -> Permissions then modify each group and remove the ads permission for admins/mods


Or you can add an entry in the host file if you are scared about accidental clicks but really if you are not clicking once a day or something you are fine.
Title: Re: Ad Management mod
Post by: OnlineFunCorner on September 03, 2010, 01:39:44 AM
You Are Not Getting My Point
I already Disable ads for myself as Admin
I Can not see ads myself
---
Question is am I safe from invalid clicks               And Invalid Impressions Now After Disable Ads For Myself
Title: Re: Ad Management mod
Post by: Kindred on September 03, 2010, 10:01:23 AM
???

ummm... if you can not see the ad, and can not click on it...  doesn't that pretty much mean that you are not getting invalid clicks or impressions?

Your posting style is VERY confusing. I assume that English is not your primary language?
Title: Re: Ad Management mod
Post by: OnlineFunCorner on September 03, 2010, 10:14:30 AM
Thanks
Next Time I Will Not Confuse Anyone!
Title: Re: Ad Management mod
Post by: AZMazda3 on September 03, 2010, 05:47:13 PM
Quote from: vbgamer45 on September 02, 2010, 11:24:23 PM
Are you using all those themes? If not just add the code for the spots that fail on package manager install.

No only using 3 themes really by we recently disabled that feature for members as we have been updating the site and pushed them back to the default theme. So my next question is sould I be able to copy the file from an archive and upload it?
Title: Re: Ad Management mod
Post by: vbgamer45 on September 03, 2010, 07:39:59 PM
You mean copy files from a backup yeah that should work but just be warned if you had other mods installed on those files they will be overwritten.
Title: Re: Ad Management mod
Post by: ontime on September 03, 2010, 07:59:14 PM
 Hi when i add this mod it creates double   adds.
Title: Re: Ad Management mod
Post by: Kindred on September 03, 2010, 09:39:22 PM
first, why did you include the quote of the mod description and changelog? ???

second, did you even bother to search? Your questions has been answered at least a dozen times.


third, it means exactly what you think it means... you installed the mod twice. You will have to manually remove the duplicated code.
Title: Re: Ad Management mod
Post by: maihannijat on September 04, 2010, 12:15:19 AM
Hi

I tried alot to manually install this in my custom theme but not able to add code in index.template.php

I have attached my index.template.php


How to Add This code After <body> Tag
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


Here is my Body Tag code:
<body>

   <div id="wrapper">
  <div id="header">
<div id="head-l">
<div id="head-r">
  <div id="userarea">';
if ($context['user']['is_logged'])
{
echo '<b>', $txt['hello_member'], ' ', $context['user']['name'], '</b><br />';

Title: Re: Ad Management mod
Post by: AZMazda3 on September 06, 2010, 11:25:08 PM
Quote from: vbgamer45 on September 02, 2010, 11:24:23 PM
Are you using all those themes? If not just add the code for the spots that fail on package manager install.

Ok did that, but now package manager will not allow me to install it or show me the status. It's blank and I have no way to proceed.
Title: Re: Ad Management mod
Post by: xpubstargamingx on September 07, 2010, 08:45:25 AM
Looking for someone that would install this Mod for me today. I can send you my Index Template and some $$$ on PayPal. I really need this added by today since I have an advertising campaign with Facebook, Myspace, and Google starting this evening. I am expecting a lot of traffic. Please PM me if you would like to help.
Title: Re: Ad Management mod
Post by: vbgamer45 on September 07, 2010, 11:14:52 AM
Sure for $15 I can install it on any custom theme. Either send me the themes files themselves or an ftp account would work.
Title: Re: Ad Management mod
Post by: xpubstargamingx on September 07, 2010, 12:15:36 PM
Quote from: vbgamer45 on September 07, 2010, 11:14:52 AM
Sure for $15 I can install it on any custom theme. Either send me the themes files themselves or an ftp account would work.

Send me a message when you get on today. I won't have access to Messenger, but I would really like to have this Ad Mod to my forums today. I am starting an advertising campaign with Facebook, Myspace and Google. So I am expecting a lot of traffic this evening and this week while these campaigns are running. 
Title: Re: Ad Management mod
Post by: vbgamer45 on September 07, 2010, 12:34:27 PM
Got your pm on megaupload says "The file you are trying to access is temporarily unavailable." so you can't download it.
Title: Re: Ad Management mod
Post by: Biology Forums on September 07, 2010, 08:56:52 PM
Hey,

I'm using the classic theme in SMF version 1.1.11. I cannot find a resource that tells me how to manually put the skyscraper adsense code (long vertical) on the right-side of every page on the forum (I am guessing it is the index.template). I have ad management mod installed and working, but not quite. Does anyone know how to configure the classis theme coding manually to have this vertical ad on the right side (or left)?

http://www.biology-forums.com [nofollow]
Title: Re: Ad Management mod
Post by: malu_vashi on September 09, 2010, 06:28:59 AM
ad mod install three time & now i cant abel to remove i use 1.1.11 plz, help me,

her is my sice url: <link removed by K@-Pr0n>

plz, some one help
Title: Re: Ad Management mod
Post by: Kindred on September 09, 2010, 08:53:00 AM
at this point, you will either have to manually remove the triplicated code...   or just load a fresh set of forum files and start from a clean slate, and re-install the mods that you want.
Title: Re: Ad Management mod
Post by: malu_vashi on September 09, 2010, 12:01:36 PM
Quote from: Kindred on September 09, 2010, 08:53:00 AM
at this point, you will either have to manually remove the triplicated code...   or just load a fresh set of forum files and start from a clean slate, and re-install the mods that you want.

can u edit my code i am not know about how to edit,
pal, help if you can,
thanks.
Title: Re: Ad Management mod
Post by: AZMazda3 on September 09, 2010, 02:20:03 PM
Quote from: AZMazda3 on September 06, 2010, 11:25:08 PM
Quote from: vbgamer45 on September 02, 2010, 11:24:23 PM
Are you using all those themes? If not just add the code for the spots that fail on package manager install.

Ok did that, but now package manager will not allow me to install it or show me the status. It's blank and I have no way to proceed.

Any ideas? Is there a manual way to add the Ad Manager?
Title: Re: Ad Management mod
Post by: jmille44 on September 09, 2010, 03:40:46 PM
Could be a dumb question, but where is the version 2.6.3.1 release to download?  I can only find version 2.3.6.2

Thanks
Title: Re: Ad Management mod
Post by: vbgamer45 on September 10, 2010, 12:51:58 AM
No longer available only the recent version is on the mod site. Any reason why you would want an older version?
Title: Re: Ad Management mod
Post by: malu_vashi on September 10, 2010, 04:04:48 AM
Quote from: Kindred on September 09, 2010, 08:53:00 AM
at this point, you will either have to manually remove the triplicated code...   or just load a fresh set of forum files and start from a clean slate, and re-install the mods that you want.

can u edit my code i am not know about how to edit,
plz, help if you can,
thanks.
Title: Re: Ad Management mod
Post by: Kindred on September 10, 2010, 07:24:29 AM
I'm sorry... at this point, I do not have the time to do that for you.
Title: Re: Ad Management mod
Post by: jmille44 on September 10, 2010, 10:26:58 AM
Quote from: vbgamer45 on September 10, 2010, 12:51:58 AM
No longer available only the recent version is on the mod site. Any reason why you would want an older version?

You would think a 2.6 release is newer than 2.3, I was confused by how this is numbered.  I do have the most recent version then.
Thanks for clearing this up for me.

The main reason I installed this was to have an ad at the very top of my SM forum, but I can not figure out how to get this feature to work.
The ad keeps going to under the menu, and not the very top above everything else.

Is their a special setting for this or just not possible?

Thanks!
Title: Re: Ad Management mod
Post by: vbgamer45 on September 10, 2010, 10:57:05 AM
There is no setting for that by default the header ad goes under the menu. You would have to move the header code in the index.template.php to the top of the of forum.
Title: Re: Ad Management mod
Post by: crustybum on September 11, 2010, 11:50:05 AM
For some reason i cant get it to work anymore, so i tried to uninsatll it but got this: am i still ok to uninstall it? i really want it to work so that i can re install it..

   1.     Execute Modification     ./index.php     Test successful
      1.    Replace    ./index.php    Test successful
      2.    Replace    ./index.php    Test successful
      3.    Replace    ./index.php    Test successful
*    2.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Replace    ./Sources/Admin.php    Test successful
      2.    Replace    ./Sources/Admin.php    Test successful
*    3.    Execute Modification    ./Themes/default/index.template.php    Test successful
      1.    Replace    ./Themes/default/index.template.php    Test successful
      2.    Replace    ./Themes/default/index.template.php    Test successful
      3.    Replace    ./Themes/default/index.template.php    Test successful
      4.    Replace    ./Themes/default/index.template.php    Test successful
      5.    Replace    ./Themes/default/index.template.php    Test successful
*    4.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
      1.    Replace    ./Themes/default/BoardIndex.template.php    Test successful
      2.    Replace    ./Themes/default/BoardIndex.template.php    Test successful
*    5.    Execute Modification    ./Themes/default/Display.template.php    Test successful
      1.    Replace    ./Themes/default/Display.template.php    Test successful
      2.    Replace    ./Themes/default/Display.template.php    Test successful
      3.    Replace    ./Themes/default/Display.template.php    Test successful
*    6.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
      1.    Replace    ./Themes/default/MessageIndex.template.php    Test successful
      2.    Replace    ./Themes/default/MessageIndex.template.php    Test successful
*    7.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
      1.    Replace    ./Sources/ManagePermissions.php    Test failed
   8.    Delete File    ./Sources/Ads.php    
   9.    Delete File    ./Sources/LoadAds.php    
   10.    Delete File    ./Themes/default/Ads.template.php    
   11.    Delete File    ./Themes/default/languages/Ads.english.php    
   12.    Delete File    ./Themes/default/languages/Ads.english-utf8.php    
   13.    Execute Code    UnInstall.php    
Title: Re: Ad Management mod
Post by: Vichuu on September 11, 2010, 11:55:43 AM
Thanks nice mod dear
Title: Re: Ad Management mod
Post by: vbgamer45 on September 11, 2010, 12:05:20 PM
Quote from: crustybum on September 11, 2010, 11:50:05 AM
For some reason i cant get it to work anymore, so i tried to uninsatll it but got this: am i still ok to uninstall it? i really want it to work so that i can re install it..

   1.     Execute Modification     ./index.php     Test successful
      1.    Replace    ./index.php    Test successful
      2.    Replace    ./index.php    Test successful
      3.    Replace    ./index.php    Test successful
*    2.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Replace    ./Sources/Admin.php    Test successful
      2.    Replace    ./Sources/Admin.php    Test successful
*    3.    Execute Modification    ./Themes/default/index.template.php    Test successful
      1.    Replace    ./Themes/default/index.template.php    Test successful
      2.    Replace    ./Themes/default/index.template.php    Test successful
      3.    Replace    ./Themes/default/index.template.php    Test successful
      4.    Replace    ./Themes/default/index.template.php    Test successful
      5.    Replace    ./Themes/default/index.template.php    Test successful
*    4.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
      1.    Replace    ./Themes/default/BoardIndex.template.php    Test successful
      2.    Replace    ./Themes/default/BoardIndex.template.php    Test successful
*    5.    Execute Modification    ./Themes/default/Display.template.php    Test successful
      1.    Replace    ./Themes/default/Display.template.php    Test successful
      2.    Replace    ./Themes/default/Display.template.php    Test successful
      3.    Replace    ./Themes/default/Display.template.php    Test successful
*    6.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
      1.    Replace    ./Themes/default/MessageIndex.template.php    Test successful
      2.    Replace    ./Themes/default/MessageIndex.template.php    Test successful
*    7.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
      1.    Replace    ./Sources/ManagePermissions.php    Test failed
   8.    Delete File    ./Sources/Ads.php    
   9.    Delete File    ./Sources/LoadAds.php    
   10.    Delete File    ./Themes/default/Ads.template.php    
   11.    Delete File    ./Themes/default/languages/Ads.english.php    
   12.    Delete File    ./Themes/default/languages/Ads.english-utf8.php    
   13.    Execute Code    UnInstall.php    
It's ok to uninstall those can fail without big issues
Title: Re: Ad Management mod
Post by: dsanchez on September 12, 2010, 01:47:29 PM
A couple of questions:

1) In latest version is indicated "2.6.3.2" but the name of the file is "ad_mod_v2-3-6-2_SMF_v2-0.zip"

http://custom.simplemachines.org/mods/index.php?mod=255

2) Please scroll down to the bottom of this page (http://curefans.com/albums-and-songs/best-of-413-dream/). Right above  the ad is an annoying square, from a non existing image. Where can I remove that from the code?

Thank you!
Title: Re: Ad Management mod
Post by: vbgamer45 on September 12, 2010, 01:54:48 PM
1. For one that is my fault mislabled the versions.
Title: Re: Ad Management mod
Post by: AZMazda3 on September 12, 2010, 03:46:06 PM
Quote from: AZMazda3 on September 09, 2010, 02:20:03 PM
Quote from: AZMazda3 on September 06, 2010, 11:25:08 PM
Quote from: vbgamer45 on September 02, 2010, 11:24:23 PM
Are you using all those themes? If not just add the code for the spots that fail on package manager install.

Ok did that, but now package manager will not allow me to install it or show me the status. It's blank and I have no way to proceed.

Any ideas? Is there a manual way to add the Ad Manager? Perhaps I need to find another thread to get my help?
Title: Re: Ad Management mod
Post by: vbgamer45 on September 12, 2010, 06:01:54 PM
Yes you can check the mod site for manual install instructions for this mod.
Title: Re: Ad Management mod
Post by: dsanchez on September 13, 2010, 09:48:12 AM
Quote from: dsanchez on September 12, 2010, 01:47:29 PM
2) Please scroll down to the bottom of this page (http://curefans.com/albums-and-songs/best-of-413-dream/). Right above  the ad is an annoying square, from a non existing image. Where can I remove that from the code?

OK, I found the solution. This occurs in Ads displayed after the last post: A square is showed because there's no image (see attached). To get rid of this, open default/Display.template.php and find and delete or comment the following line:

<img src="', $message['icon_url'] . '" alt="" border="0" />

This line is near the if(function_exists("show_lastpostAds") && function_exists("show_posts"))

Cheers!
Title: Re: Ad Management mod
Post by: thefrugalfind on September 14, 2010, 10:52:49 AM
I have the Ad Management mod installed, and it works fine for my HTML ads. I want to add a PHP ad, and when I do, the following error shows up where the ad should be:
Parse error: syntax error, unexpected '<' in /home2/thefruh2/public_html/forums/Sources/Load.php(1733) : eval()'d code(309) : eval()'d code on line 1

Any idea how I can get this to work?

Thanks!
Title: Re: Ad Management mod
Post by: vbgamer45 on September 14, 2010, 03:58:56 PM
What code are you using
Title: Re: Ad Management mod
Post by: thefrugalfind on September 16, 2010, 11:36:12 PM
I think I figured out my problem.
I installed a plugin with wordpress that creates PHP code that cycles between HTML ads for you. I was using the PHP code from that and trying to use it on the forums... which probably won't work

<?php if (function_exists('dfrads')) { echo dfrads('4377898'); } ?>
Title: Re: Ad Management mod
Post by: AZMazda3 on September 16, 2010, 11:56:33 PM
Quote from: vbgamer45 on September 12, 2010, 06:01:54 PM
Yes you can check the mod site for manual install instructions for this mod.

Issue resolve, it was a database issue.
Title: Re: Ad Management mod
Post by: vbgamer45 on September 17, 2010, 02:26:30 PM
Glad you were able to figure it out. Yeah with manual install you also have to run the database install script
Title: Re: Ad Management mod
Post by: mjmfighter on September 18, 2010, 06:51:53 PM
I am using SMF 2.0 with the custom them darkbreak (http://www.dzinerstudio.com/index.php?action=tpmod;dl=item189)

I get these errors when trying to install it it:

       DarkBreak
     Execute Modification    ./Themes/darkbreak_20rc3/index.template.php    Test failed
     1.    Replace    ./Themes/darkbreak_20rc3/index.template.php    Test successful
     2.    Add After    ./Themes/darkbreak_20rc3/index.template.php    Test failed
     3.    Add After    ./Themes/darkbreak_20rc3/index.template.php    Test failed
     4.    Add After    ./Themes/darkbreak_20rc3/index.template.php    Test failed
     5.    Add Before    ./Themes/darkbreak_20rc3/index.template.php    Test failed


can someone please help me install this and if you need any more info, just ask.
Title: Re: Ad Management mod
Post by: dsanchez on September 19, 2010, 06:42:12 AM
Quote from: mjmfighter on September 18, 2010, 06:51:53 PM
I am using SMF 2.0 with the custom them darkbreak (http://www.dzinerstudio.com/index.php?action=tpmod;dl=item189)

you need to manually edit the changes in the file index.template.php in your custom theme

go here

http://custom.simplemachines.org/mods/index.php?mod=255

then click in the button "Parse" in the right side of the page, go to the part "./Themes/default/index.template.php" and do the changes in your file as indicated there.
Title: Re: Ad Management mod
Post by: mjmfighter on September 19, 2010, 12:47:21 PM
I did that, but i cant find out where to put it because some of the code does not exist.
Title: Re: Ad Management mod
Post by: melanieh75 on September 20, 2010, 07:12:37 PM
Hello. Whenever I try to parse the instructions for SMF 1.1.11 It says "Sorry, but this modification does not appear to be compatible with the selected version. " even though 1.1.11 is supported. I cannot seem to find manual instructions for this mod.
Anyone have them or a link to them?

Melanie
Title: Re: Ad Management mod
Post by: mjmfighter on September 20, 2010, 07:41:56 PM
melanieh75, make sure u hit the radio button next to the 1.1.x version of the mod before u parse the install instructions.
Title: Re: Ad Management mod
Post by: sonarone on September 27, 2010, 12:38:56 AM
I'm having some trouble running a banner through this interface. Does it have to be adsense code for it to work? I have a private banner that I wish to run on every page under the main menu. Would it be best to hard code it in?

This is the code I'm trying to install:

<img src="<http://www.gundamaustralia.com/forum/images/image001.jpg>" alt="<Hobbylink Japan>" width="<468>" height="<60>" usemap="#map" />
<map name="map" id="">
<area shape="rect" coords="0,0,<468>,<60>" href="<http://www.hlj.com/top/Gun>" alt="" />
</map>


Can anyone point me in the right direction please? I am a bit of a newb.

Thanks!
Title: Re: Ad Management mod
Post by: king kratos on September 29, 2010, 12:29:08 PM
Ok, I have tried to read through all of these posts, but there are just too many!

I am trying to make it so that registered users have less adds than guests and premium (donating) users have less adds than registered users. I have tried using the permission (both checked and unchecked), but it is not working.

What am I doing wrong?

Kratos
Title: Re: Ad Management mod
Post by: kizito on September 30, 2010, 08:25:16 AM
I've been here for more than an hour, I've seen the features of this mod but i can't see how to get it, please i am new here any help?
Title: Re: Ad Management mod
Post by: Kindred on September 30, 2010, 09:52:34 AM
ther eis a link to the download page in the first post of this thread... you could also go to the customize > Mods site and search for ad management...

you then use the package manager in your SMF installation to upload and install the mod.
Title: Re: Ad Management mod
Post by: coolfx350 on October 01, 2010, 09:17:14 AM
Is there anyway to put in a condition say

If there are 5 posts in the topics, then I want to add an ad after the first post?  Otherwise, don't put the ad.
Title: Re: Ad Management mod
Post by: Kindred on October 01, 2010, 09:49:45 AM
of course there IS a way....   however, you would have to code it yourself.
Title: Re: Ad Management mod
Post by: sonarone on October 02, 2010, 04:37:08 AM
Fixed. Problem was with my HTML code. Thanks for your help VBG.
Title: Re: Ad Management mod
Post by: PraveerD on October 03, 2010, 11:27:10 AM
Hello all,
            I want to install AD Management MOD for my forum running SMF 2 RC3. I tried installing it via the package manager but I was getting some errors. So the only option left for me now is to install it manually. But I have never ever installed a MOD manually. Can anyone please guide me step by step on how to proceed. I have done the edits mentioned, now what do I do next. Please guide.


Regards
Praveer
Title: Re: Ad Management mod
Post by: Kindred on October 03, 2010, 01:36:18 PM
the manual install instructions are available on the mod download page.
Title: Re: Ad Management mod
Post by: PraveerD on October 03, 2010, 08:16:45 PM
I have done the edits mentioned. Now how to proceed further.

1 more question. The theme edit mentioned there /Themes/default/ so do we need to make these edits in the default theme or the theme we are currently using. Please clarify my doubts.

Praveer
Title: Re: Ad Management mod
Post by: Kindred on October 03, 2010, 09:11:08 PM
both
Title: Re: Ad Management mod
Post by: PraveerD on October 04, 2010, 12:28:45 AM
I have done the edits mentioned. Now what to do next.
Title: Re: Ad Management mod
Post by: Kindred on October 04, 2010, 07:24:22 AM
if you have done it all, then the mod is installed. go to the adin, configure it and you're done
Title: Re: Ad Management mod
Post by: PraveerD on October 04, 2010, 09:35:49 AM
Last question. Sorry for bothering you so much.

When I am installing the mod with package manager, its showing test failed. So I am not continuing with the installation. So should I continue and after installation make the edits?

Regards
Praveer
Title: Re: Ad Management mod
Post by: Kindred on October 04, 2010, 09:53:15 AM
I thought that you said you made all the edits?

If not, then yes... continue with the installation despite the failed notice and then make the necessary manual edits in the "failed" files.
Title: Re: Ad Management mod
Post by: PraveerD on October 04, 2010, 09:59:12 AM
Thanks a lot.
Title: Re: Ad Management mod
Post by: king kratos on October 04, 2010, 07:01:25 PM
So, if even one member group allows the ads to be displayed, then a user will see them?

Example, I have a global mod who is also a premium member. Premium members are not supposed to see adds from the Ad Management Mod, but instead only one ad across the top of my forum that is hand coded so all users see it. Global mods do still see all ads. This user is still seeing all ads, even though he is a premium member.

Is this the way it is supposed to happen?

Kratos
Title: Re: Ad Management mod
Post by: Kindred on October 04, 2010, 07:06:38 PM
yes... permissions in SMF are inclusive, not exclusive.
Title: Re: Ad Management mod
Post by: hartiberlin on October 05, 2010, 10:26:52 PM
Seems the current admod 2.6.2 has problems with the new
SMF 2.0RC3 DEV version:

smf_2-0-dev20100913_install.tar.gz

It gives the following error during installation in the default theme:




Install Mod
Please remember to always make regular backups of your sources and database before installing mods, especially beta versions.
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Installations actions for "Ad Managment"
Installing this package will perform the following actions:
      Type    Action    Description
   1.    Execute Code    install.php    
*    2.    Execute Modification    ./index.php    Test successful
      1.    Add After    ./index.php    Test successful
      2.    Add After    ./index.php    Test successful
      3.    Add After    ./index.php    Test successful
*    3.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Add After    ./Sources/Admin.php    Test successful
      2.    Add After    ./Sources/Admin.php    Test successful
*    4.    Execute Modification    ./Themes/default/index.template.php    Test successful
      1.    Replace    ./Themes/default/index.template.php    Test successful
      2.    Add After    ./Themes/default/index.template.php    Test successful
      3.    Add After    ./Themes/default/index.template.php    Test successful
      4.    Add After    ./Themes/default/index.template.php    Test successful
      5.    Add Before    ./Themes/default/index.template.php    Test successful
*    5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
      1.    Add Before    ./Themes/default/BoardIndex.template.php    Test successful
      2.    Add After    ./Themes/default/BoardIndex.template.php    Test successful
*    6.    Execute Modification    ./Themes/default/Display.template.php    Test successful
      1.    Add After    ./Themes/default/Display.template.php    Test successful
      2.    Replace    ./Themes/default/Display.template.php    Test successful
      3.    Replace    ./Themes/default/Display.template.php    Test successful
*    7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test failed
      1.    Add After    ./Themes/default/MessageIndex.template.php    Test successful
      2.    Add After    ./Themes/default/MessageIndex.template.php    Test failed
*    8.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
      1.    Add After    ./Sources/ManagePermissions.php    Test successful
   9.    Extract File    ./Sources/Ads.php    
   10.    Extract File    ./Sources/LoadAds.php    
   11.    Extract File    ./Themes/default/Ads.template.php    
   12.    Extract File    ./Themes/default/languages/Ads.english.php    
   13.    Extract File    ./Themes/default/languages/Ads.english-utf8.php
Title: Re: Ad Management mod
Post by: vbgamer45 on October 06, 2010, 01:06:58 PM
I see two failures but at this time I can not support Dev editions but will support the final versions/RC's that come out.
Title: Re: Ad Management mod
Post by: Kindred on October 06, 2010, 01:20:05 PM
BTW hartiberlin,

When you downloaded the dev version, you were given notice that no support would be given for installs of those dev versions, because they are constantly in flux.
Title: Re: Ad Management mod
Post by: ToeJam on October 08, 2010, 01:46:39 PM
Hi I'm trying to manually install this mod into a 2.0 rc3 environment using the 'Helios' theme.  I've created a backup of all the files that require manual edit.  i do fine finding the references in the manual install instructions until I get to those for /Theme/Defalut/  files.  I believe I need to make my changes in /Theme/Helios/xxxx.php(s).  The problem is that I can't find any of the strings listed in the 'find:' text examples.  Makes sense that they are different and may not contain the same literals.  Am I stuck now and can't use it?  Or are there equivalent blocks of text within those files where I can 'add after'?  Not even sure if that's safe or not, based on how different the files are?
Title: Re: Ad Management mod
Post by: David8 on October 09, 2010, 02:01:11 PM
Cannot make specific board placement work!

I have installed v 2.6.3.2 into a SMF RC3 board using the default theme.  I have added several 468x60 banner ads and they show up fine where I want them.  My problem occurs when I try to place an ad on a specific board by putting the board number into the box to specify a specific board.  If I put in a board number, the ad just disappears everywhere.  If I clear the box, it comes back.

Any advice on this problem?

David8
Title: Re: Ad Management mod
Post by: glennk on October 09, 2010, 05:25:41 PM
keep getting this error :

LoadAds.php is missing/corrupt

But it is not missing or corrupt.
Title: Re: Ad Management mod
Post by: vbgamer45 on October 09, 2010, 08:54:03 PM
Did you manually install it? Make sure you have $sourcedir as a global
Title: Re: Ad Management mod
Post by: glennk on October 10, 2010, 05:49:31 AM
hi There what is $source directory and how do I make it global. Im just working through a manual install and it seems to be working. Have you any ideas why the package didnt update all the indivdual files using the package manager ? Its frustrating having to do a manual install when your not so good with code.

Thanks again - Glenn
Title: Re: Ad Management mod
Post by: rhondaklewis on October 11, 2010, 12:15:03 PM
Hi, I just added an ad but It is not showing up. I also don't know if it is php or html. This is what part of the code looks like:
<a href="http://peerfly.com
Title: Re: Ad Management mod
Post by: David8 on October 11, 2010, 01:42:09 PM
Is anyone else having the problem I reported above with placing an ad onto a specific board?  When I try the ad just disappears.
Title: Re: Ad Management mod
Post by: crustybum on October 15, 2010, 06:27:19 AM
Am i ok to uninstall these with these errors? (slightly different to last post)


1.     Execute Modification     ./index.php     Test failed
      1.    Replace    ./index.php    Test failed
      2.    Replace    ./index.php    Test successful
      3.    Replace    ./index.php    Test successful
*    2.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Replace    ./Sources/Admin.php    Test successful
      2.    Replace    ./Sources/Admin.php    Test successful
*    3.    Execute Modification    ./Themes/default/index.template.php    Test successful
      1.    Replace    ./Themes/default/index.template.php    Test successful
      2.    Replace    ./Themes/default/index.template.php    Test successful
      3.    Replace    ./Themes/default/index.template.php    Test successful
      4.    Replace    ./Themes/default/index.template.php    Test successful
      5.    Replace    ./Themes/default/index.template.php    Test successful
*    4.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
      1.    Replace    ./Themes/default/BoardIndex.template.php    Test successful
      2.    Replace    ./Themes/default/BoardIndex.template.php    Test successful
*    5.    Execute Modification    ./Themes/default/Display.template.php    Test successful
      1.    Replace    ./Themes/default/Display.template.php    Test successful
      2.    Replace    ./Themes/default/Display.template.php    Test successful
      3.    Replace    ./Themes/default/Display.template.php    Test successful
*    6.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
      1.    Replace    ./Themes/default/MessageIndex.template.php    Test successful
      2.    Replace    ./Themes/default/MessageIndex.template.php    Test successful
*    7.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
      1.    Replace    ./Sources/ManagePermissions.php    Test failed
   8.    Delete File    ./Sources/Ads.php    
   9.    Delete File    ./Sources/LoadAds.php    
   10.    Delete File    ./Themes/default/Ads.template.php    
   11.    Delete File    ./Themes/default/languages/Ads.english.php    
   12.    Delete File    ./Themes/default/languages/Ads.english-utf8.php    
   13.    Execute Code    UnInstall.php    
Title: Re: Ad Management mod
Post by: Kindred on October 15, 2010, 09:19:01 AM
no... it means that you will have to manually remove the code that the mod installed/changed for those files.
Title: Re: Ad Management mod
Post by: Alex P. on October 16, 2010, 01:05:33 AM
Hi VB gamer, I love this mod, but I have a question.

I actually use the service that you advertise in the footer when the mod is installed, but I was wondering if I could cut that part of the fotter out and just leave the SMFAds link. (I'm looking to remove the link to CAF)

Thanks for a reply~
Title: Re: Ad Management mod
Post by: vbgamer45 on October 17, 2010, 12:37:37 PM
Maybe send me a pm.
Title: Re: Ad Management mod
Post by: crustybum on October 18, 2010, 05:10:54 AM
Quote from: Kindred on October 15, 2010, 09:19:01 AM
no... it means that you will have to manually remove the code that the mod installed/changed for those files.

ok, what do i have to do to get it to work then?

Chris
Title: Re: Ad Management mod
Post by: Kindred on October 18, 2010, 07:37:10 AM
Quote from: Kindred on October 15, 2010, 09:19:01 AM
it means that you will have to manually remove the code that the mod installed/changed for those files.
Title: Re: Ad Management mod
Post by: morokat on October 20, 2010, 08:51:36 AM
i'm was test create Ad Management in my forum i'm create only 1 but why its show tow?(double)

(http://img821.imageshack.us/img821/2026/tow.png)
Title: Re: Ad Management mod
Post by: DanteOz on October 24, 2010, 07:20:02 AM
Hi, I'm new to this, plz may I know how to install it on smf v1.1.11
Title: Re: Ad Management mod
Post by: cicka on October 24, 2010, 09:46:59 AM
Quote from: DanteOz on October 24, 2010, 07:20:02 AM
Hi, I'm new to this, plz may I know how to install it on smf v1.1.11

Hi. You can install it at the Package Manager at the Admin Panel.
Title: Re: Ad Management mod
Post by: mojosplurr on October 24, 2010, 01:18:08 PM
I'm having trouble getting the TOWER ads to display properly, I am using the OVERVIEW dark theme from Dzine.

If I place the tower code, right after template_menu, I get a parse error, and I manage to fix that somehow by putting echo '

but the ads completely butcher and squeeze the forum into the center.

I want the ads outside in the light grey area. Thanks in advance

demo.dzinerstudio.com/smf2/index.php

Title: Re: Ad Management mod
Post by: crustybum on October 27, 2010, 05:18:04 AM
For some time now i have had this installed on 1.11 but it installed twice (default theme, i have legt it as it is in only one section) i cant seem to to see the duplicate code :-\ can someone point me where to look..and what to look for?

Thanks
Title: Re: Ad Management mod
Post by: crustybum on October 27, 2010, 05:57:29 AM
Its ok...sorted!
Title: Re: Ad Management mod
Post by: king999 on October 30, 2010, 11:47:46 AM
How to install this mod in dark break www.dzinerstudio.com
Help me to solve it.
I m not able to install that mod.
Title: Re: Ad Management mod
Post by: TheMortician4 on October 30, 2010, 01:43:46 PM
Hey guys, newbie here...

Before I begin let me clarify the setup we are running

SMF ver. 1.1.11
Simple Portal 2.3.2

Mod Name Version

1. AjaxChat Integration 3.2.1
2. Aeva ~ Auto-Embed Video & Audio 6.9.99
3. Hide SMF Version 1.0.3c 
4. Custom_Greeting_Depending_on_Time 1.0
5. EmailValidator 1.0 
6. Additional Membergroups on Profile 1.0 
7. Guests Cursor 1.0 
8. Tagging System 1.1.1 
9. Karma Buttons 1.1
10. New_pm 2.0.1 2009
11. Random_Quote 1.2.2
12. SMF Gallery Lite 2.0.5 
13. SMFShop 3.1.1 
14. SMF Arcade 2.0.18
15. SMF 1.0.19 / 1.1.11 Update 1.0 
16. Separate Sticky and Normal Topic 1.0 
17. Simple Award System 2.1
18. User Attachment Quota 1.3.1 
19. SMF File Manager 2.1.3 
20. Remove MySQL, PHP & W3C images to minimize footer size 1.2
21. New In Topic View 1.1
22. PageDropdown 1.0 
23. PSN GamerCard BBC 1.1 
24. Quick Upload 2.1 
25. Topic Ratings 1.03 
26. SimplePortal 2.3.2 
27. Spam Me Not Mod 1.02
28. Xbox LIVE GamerTag BBC 1.0 
29. SA FBConnect 0.2 
30. Treasury 1.04 
31. Downloads System 1.3.4.2
32. Advanced Reputation System 1.8.1 
33. Redirect Banned Users 1.1 
34. SteamProfile Ajax Mod 1.0
35. GoDaddy Analytics Code 1.0
36. Fix Session Verification for Polls 1.0
37. Auto Refresh Who Index 1.0
38. SMF Archive 2.0
39. Hide SMF Version 1.0.6
40. RSS Feed Poster 2.3
41. Unique Hit Counter 1.0 
42. Amazon Search 1.1
43. Amazon MP3 1.1
44. Amazon DVD 1.0
45. Version Emulate Dropdown 1.1
46. Ad Managment 2.3.6.1 [ Apply Mod ] [ List Files ] [ Delete ]


I have downloaded this mod 3 times and still get this same error every time we try to install it:

   Type    Action    Description
1.    Execute Code    install.php    
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/Subs.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
6.    Execute Modification    ./Themes/default/Display.template.php    Test failed
7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
8.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
9.    Extract File    ./Sources/Ads.php    
10.    Extract File    ./Sources/LoadAds.php    
11.    Extract File    ./Themes/default/Ads.template.php    
12.    Extract File    ./Themes/default/languages/Ads.english.php    
13.    Extract File    ./Themes/default/languages/Ads.english-utf8.php


What is the problem, and how do I correct this to get the system working and fully functional. Let me again emphasize that I am a newbie and have little if any coding ability...


Thanks for your quick reply
Title: Re: Ad Management mod
Post by: mojosplurr on October 30, 2010, 03:29:59 PM
Quote from: mojosplurr on October 24, 2010, 01:18:08 PM
I'm having trouble getting the TOWER ads to display properly, I am using the OVERVIEW dark theme from Dzine.

If I place the tower code, right after template_menu, I get a parse error, and I manage to fix that somehow by putting echo '

but the ads completely butcher and squeeze the forum into the center.

I want the ads outside in the light grey area. Thanks in advance

demo.dzinerstudio.com/smf2/index.php

Still having this problem, can anyone help me with this please?
Title: Re: Ad Management mod
Post by: FireDitto on November 04, 2010, 04:06:10 AM
Trying to Install on RC4, and I get these on Install testing thingy;

   Type   Action   Description
1.   Execute Code   install.php   
   2.   Execute Modification   ./index.php   Test successful
   3.   Execute Modification   ./Sources/Admin.php   Test successful
   4.   Execute Modification   ./Themes/default/index.template.php   Test failed
   1.   Replace   ./Themes/default/index.template.php   Test successful
   2.   Add After   ./Themes/default/index.template.php   Test successful
   3.   Add After   ./Themes/default/index.template.php   Test successful
   4.   Add After   ./Themes/default/index.template.php   Test successful
   5.   Add Before   ./Themes/default/index.template.php   Test failed
   5.   Execute Modification   ./Themes/default/BoardIndex.template.php   Test successful
   6.   Execute Modification   ./Themes/default/Display.template.php   Test successful
   7.   Execute Modification   ./Themes/default/MessageIndex.template.php   Test failed
   1.   Add After   ./Themes/default/MessageIndex.template.php   Test successful
   2.   Add After   ./Themes/default/MessageIndex.template.php   Test failed
   8.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
9.   Extract File   ./Sources/Ads.php   
10.   Extract File   ./Sources/LoadAds.php   
11.   Extract File   ./Themes/default/Ads.template.php   
12.   Extract File   ./Themes/default/languages/Ads.english.php   
13.   Extract File   ./Themes/default/languages/Ads.english-utf8.php
Title: Re: Ad Management mod
Post by: vbgamer45 on November 04, 2010, 01:20:32 PM
Make sure you have redownload the latest version from the mod site. Have tested it on a clean RC4
Title: Re: Ad Management mod
Post by: TheMortician4 on November 05, 2010, 02:01:08 PM
Quote from: vbgamer45 on November 04, 2010, 01:20:32 PM
Make sure you have redownload the latest version from the mod site. Have tested it on a clean RC4

Thgis is what I got again....


Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    install.php    
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/Subs.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
6.    Execute Modification    ./Themes/default/Display.template.php    Test failed
7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
8.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
9.    Extract File    ./Sources/Ads.php    
10.    Extract File    ./Sources/LoadAds.php    
11.    Extract File    ./Themes/default/Ads.template.php    
12.    Extract File    ./Themes/default/languages/Ads.english.php    
13.    Extract File    ./Themes/default/languages/Ads.english-utf8.php
Title: Re: Ad Management mod
Post by: vbgamer45 on November 06, 2010, 11:09:33 PM
On RC4? If so do you have other mods installed?
Title: Re: Ad Management mod
Post by: TheMortician4 on November 07, 2010, 01:04:02 PM
Quote from: TheMortician4 on November 05, 2010, 02:01:08 PM
Quote from: vbgamer45 on November 04, 2010, 01:20:32 PM
Make sure you have redownload the latest version from the mod site. Have tested it on a clean RC4

This is what I got again....


Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    install.php    
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/Subs.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
6.    Execute Modification    ./Themes/default/Display.template.php    Test failed
7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
8.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
9.    Extract File    ./Sources/Ads.php    
10.    Extract File    ./Sources/LoadAds.php    
11.    Extract File    ./Themes/default/Ads.template.php    
12.    Extract File    ./Themes/default/languages/Ads.english.php    
13.    Extract File    ./Themes/default/languages/Ads.english-utf8.php

I am running 1.1.11 and Simple Portal 2.3.3
Title: Re: Ad Management mod
Post by: vbgamer45 on November 07, 2010, 02:14:05 PM
You will have to make those changes manually. Install ad management. Then from the modsite download the manual install instructions and then follow the changes on those  files that failed.
Title: Re: Ad Management mod
Post by: TheMortician4 on November 07, 2010, 03:51:32 PM
Quote from: vbgamer45 on November 07, 2010, 02:14:05 PM
You will have to make those changes manually. Install ad management. Then from the modsite download the manual install instructions and then follow the changes on those  files that failed.

Okay, I will give it a try and let you know how I make out, Thanks VB
Title: Re: Ad Management mod
Post by: Owdy on November 08, 2010, 02:21:22 AM
That "Ads within posts look like actual posts" is broken. It doesnt show topic icon or subject. RC4
Title: Re: Ad Management mod
Post by: vbgamer45 on November 08, 2010, 12:36:14 PM
Will check that out and work on a fix.
Title: Re: Ad Management mod
Post by: vbgamer45 on November 08, 2010, 08:29:17 PM
Quote from: Owdy on November 08, 2010, 02:21:22 AM
That "Ads within posts look like actual posts" is broken. It doesnt show topic icon or subject. RC4
Version 2.6.3.4 Nov 8, 2010
!Fixed bug with ads as post for last post.
+SMF 2.0 RC4 support

To fix uninstall then reinstall the modification. Strange bug somehow the message variable lost scope so now just storing it ahead of time.
Title: Re: Ad Management mod
Post by: Truja on November 08, 2010, 09:42:06 PM
the mod 2.6.3.4 dont work too on Rc4  :-[
i cant install.
Title: Re: Ad Management mod
Post by: vbgamer45 on November 08, 2010, 09:57:09 PM
What happens? What message are you getting? I have it installed on RC4.
Title: Re: Ad Management mod
Post by: Owdy on November 09, 2010, 12:27:40 AM
Quote from: vbgamer45 on November 08, 2010, 08:29:17 PM
Quote from: Owdy on November 08, 2010, 02:21:22 AM
That "Ads within posts look like actual posts" is broken. It doesnt show topic icon or subject. RC4
Version 2.6.3.4 Nov 8, 2010
!Fixed bug with ads as post for last post.
+SMF 2.0 RC4 support

To fix uninstall then reinstall the modification. Strange bug somehow the message variable lost scope so now just storing it ahead of time.
Thank you. :)
Title: Re: Ad Management mod
Post by: Truja on November 09, 2010, 12:45:36 PM
Quote from: vbgamer45 on November 08, 2010, 09:57:09 PM
What happens? What message are you getting? I have it installed on RC4.

i show this

Title: Re: Ad Management mod
Post by: vbgamer45 on November 09, 2010, 01:05:42 PM
That's ok to ignore. Unless you are trying to install it on the core theme in that case you will need to install it manually.
The mod will work fine on the default theme.
Title: Re: Ad Management mod
Post by: TheMortician4 on November 09, 2010, 04:04:36 PM
Quote from: vbgamer45 on November 09, 2010, 01:05:42 PM
That's ok to ignore. Unless you are trying to install it on the core theme in that case you will need to install it manually.
The mod will work fine on the default theme.

Ahhh, that is my default theme...!!! Then I do have to do it manually then
Title: Re: Ad Management mod
Post by: MaXiForum.cz on November 09, 2010, 04:08:46 PM
Yes, you must...
Title: Re: Ad Management mod
Post by: gisfreak on November 10, 2010, 03:52:09 AM
Quote from: vbgamer45 on November 08, 2010, 08:29:17 PM
Quote from: Owdy on November 08, 2010, 02:21:22 AM
That "Ads within posts look like actual posts" is broken. It doesnt show topic icon or subject. RC4
Version 2.6.3.4 Nov 8, 2010
!Fixed bug with ads as post for last post.
+SMF 2.0 RC4 support

To fix uninstall then reinstall the modification. Strange bug somehow the message variable lost scope so now just storing it ahead of time.


this version only for SMF verson 2 . right ?

since i cannot parse it for manual install, and version for 1.1.x seems stuck on 2.6.3.1, too bad  :(
Title: Re: Ad Management mod
Post by: vbgamer45 on November 10, 2010, 09:50:16 AM
I only change the version number if there has been updates to the files 1.1.x works fine
Title: Re: Ad Management mod
Post by: Eudemon on November 10, 2010, 02:28:01 PM
if i put <center>ad code</center> when show ad under menu
it resulted an white line across the page, below ads
how do i fix this? see attachment "whiteline"

also i want create a semi little space between the ad and the menu
how should i edit the code, see attachement "belowmenu"

thx


nvm problem solved
Title: Re: Ad Management mod
Post by: klra on November 14, 2010, 01:02:48 PM
I installed a new theme and the Ads are not showing up. (SMF ver 1.1.12)

I found that the new index.php was missing the smfads info-

Do I need to copy the the info from the working index.php file and add it to the new theme?

Or is there more that will be necessary?

If someone has a link to the necessary edits, I'd appreciate it- (I can't find it).

Thanks
Title: Re: Ad Management mod
Post by: vbgamer45 on November 14, 2010, 01:12:09 PM
Check modsite for manually install infomration.
Title: Re: Ad Management mod
Post by: klra on November 14, 2010, 01:22:19 PM
I looked at the edits and the new theme's index.php file does not even have the same info.

it says...

<?php

// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;

?>


The ads are working fine on the standard themes.
Title: Re: Ad Management mod
Post by: klra on November 14, 2010, 01:27:18 PM
the Theme name is AF316

http://custom.simplemachines.org/themes/index.php?lemma=614
Title: Re: Ad Management mod
Post by: vbgamer45 on November 14, 2010, 02:00:20 PM
Just do template edits you don't need to do source edits.
Title: Re: Ad Management mod
Post by: klra on November 14, 2010, 02:05:47 PM
to just the new theme's index.template.php ?

what about the other files?

Title: Re: Ad Management mod
Post by: vbgamer45 on November 14, 2010, 02:20:40 PM
If your theme has other files then you need to make changes to them too.
Title: Re: Ad Management mod
Post by: klra on November 14, 2010, 03:06:45 PM
Ok, I'm still a bit confused because the ./index.php looks nothing like the example on the edits page.

The only other files in the theme are-

index.php
index.template.php
style.css
theme_info.xml

In the Languages file-

Settings.english.php
Title: Re: Ad Management mod
Post by: Kindred on November 14, 2010, 04:00:00 PM
why is there an index.php?   index.php should be in the ROOT directory.

the files that you need ot edit in your theme would be *.template.php files and/or CSS files.
Title: Re: Ad Management mod
Post by: klra on November 14, 2010, 04:02:32 PM
like I said, the files listed are the ones on the server - (and the forum is functioning fine).

What to do?
Title: Re: Ad Management mod
Post by: klra on November 14, 2010, 04:04:24 PM
in fact, there are 3 themes installed-

default, a default varient and the one I am using ( that isn't showing the ads).

All 3 themes have a index.php file.
Title: Re: Ad Management mod
Post by: Kindred on November 14, 2010, 05:42:20 PM
that is just a placeholder in case someone tries to access the directory directly.

the only index.php that you would need to edit is in the forum root...
Title: Re: Ad Management mod
Post by: klra on November 14, 2010, 06:12:50 PM
oK, the Ads work on my other themes, so why would I need to edit the main index.php file?

The ads don't appear in the current theme only.
Title: Re: Ad Management mod
Post by: maihannijat on November 16, 2010, 11:19:12 AM
Where I have done wrong adding this code to my custom theme and getting following error

Template Parse Error!
There was a problem loading the /Themes/orange-lt119v2/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.



Attached is index.template.php if anyone could look into it.

smf 1.1.12
www.chaptersworld.com/forum/
Title: Re: Ad Management mod
Post by: vbgamer45 on November 16, 2010, 01:56:59 PM
Fixed attached
Title: Re: Ad Management mod
Post by: maihannijat on November 16, 2010, 08:56:51 PM
Thank you.

It works fine now.

Above index.template.php is clean version of orange-lt119v2 theme If anyone need it.
Title: Re: Ad Management mod
Post by: akashbc on November 18, 2010, 08:40:48 AM
I am finding some problems while installing.
The following were the errors.. :



Execute Modification   ./Themes/Sunshine/index.template.php   Test failed
      1.   Replace   ./Themes/Sunshine/index.template.php   Test successful
      2.   Replace   ./Themes/Sunshine/index.template.php   Test failed
      3.   Replace   ./Themes/Sunshine/index.template.php   Test failed
      4.   Replace   ./Themes/Sunshine/index.template.php   Test failed
      5.   Replace   ./Themes/Sunshine/index.template.php   Test failed

Execute Modification   ./Themes/Sunshine/BoardIndex.template.php   Test failed

2.   Replace   ./Themes/Sunshine/BoardIndex.template.php   Test failed



What do i do??
Title: Re: Ad Management mod
Post by: Kindred on November 18, 2010, 10:25:23 AM
sounds like your sushine theme is different enough from the curve/default that the auto installed can't find the code to modify.  You'll have to go in and manually edit the files, with some human assumption on where the correct location is.
Title: Re: Ad Management mod
Post by: akashbc on November 18, 2010, 10:44:40 AM
Quote from: Kindred on November 18, 2010, 10:25:23 AM
sounds like your sushine theme is different enough from the curve/default that the auto installed can't find the code to modify.  You'll have to go in and manually edit the files, with some human assumption on where the correct location is.

Nope ,,there is no code to find manually ,they are not their in the files,
Also when i tried to install it in core theme also ,it shows same errors,
Exactly i am using rc 3 theme "sunshine" in rc4 smf software..

What do i do?
Title: Re: Ad Management mod
Post by: Kindred on November 18, 2010, 10:47:11 AM
what do you mean "there is no code to find manually"?

If those files exist, then there is code in those files...    if it is too different from the curve/default theme, then you may have to use some human assumption on where to place the added code for this mod
Title: Re: Ad Management mod
Post by: akashbc on November 18, 2010, 10:49:36 AM
Quote from: Kindred on November 18, 2010, 10:47:11 AM
what do you mean "there is no code to find manually"?

If those files exist, then there is code in those files...    if it is too different from the curve/default theme, then you may have to use some human assumption on where to place the added code for this mod

Can you please be friend?
I am not  well at that..so ,errors will occur if i place it in wrong areas...  :(
Title: Re: Ad Management mod
Post by: Kindred on November 18, 2010, 11:30:16 AM
I am not being unfriendly.

maybe, if you attach your index.template.php, someone can edit it for you...
Title: Re: Ad Management mod
Post by: akashbc on November 18, 2010, 11:58:23 AM
Here are my attachments,please edit these files in it:


Execute Modification   ./Themes/Sunshine/index.template.php   Test failed
      1.   Replace   ./Themes/Sunshine/index.template.php   Test successful
      2.   Replace   ./Themes/Sunshine/index.template.php   Test failed
      3.   Replace   ./Themes/Sunshine/index.template.php   Test failed
      4.   Replace   ./Themes/Sunshine/index.template.php   Test failed
      5.   Replace   ./Themes/Sunshine/index.template.php   Test failed

Execute Modification   ./Themes/Sunshine/BoardIndex.template.php   Test failed

2.   Replace   ./Themes/Sunshine/BoardIndex.template.php   Test failed


Thank you so much :)
Title: Re: Ad Management mod
Post by: PLAYBOY on November 18, 2010, 12:52:41 PM
I have a custom theme and ads didint appear after installation so i spent the last 2 hours looking for an answer everywhere. I tried to manually edit the custom theme index.template.php but thas not possible because the codes are different and everytime i try it gives me parse error. For example it says FIND

<body>';


But there none. There is < body > but when i add the code after, it gives me parse error.
Same with the other codes. How can i make this mod work in my theme?

1.1.12
Title: Re: Ad Management mod
Post by: PLAYBOY on November 18, 2010, 03:46:49 PM
Quote from: maihannijat on September 04, 2010, 12:15:19 AM
Hi

I tried alot to manually install this in my custom theme but not able to add code in index.template.php

I have attached my index.template.php


How to Add This code After <body> Tag
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


Here is my Body Tag code:
<body>

   <div id="wrapper">
  <div id="header">
<div id="head-l">
<div id="head-r">
  <div id="userarea">';
if ($context['user']['is_logged'])
{
echo '<b>', $txt['hello_member'], ' ', $context['user']['name'], '</b><br />';



I am facing the same problem except mine is 1.1.12
How can i edit this one?

It gives parse error.
Title: Re: Ad Management mod
Post by: MattH41 on November 20, 2010, 03:40:04 PM
I'm having a major problem on my site http://altmarket.net

The Ad Management Mod is not respecting the enable ad permission.

Instead it is just showing the ad to everyone. How can I fix this?
Title: Re: Ad Management mod
Post by: kartheekb on November 21, 2010, 12:05:08 AM
When i am trying to install getting some errors...

I am using SMF 2.0 rc4, soft cartoon theme.

When i am trying to upload showing errors on broard.index.template & index.template.php

here are the screen shots....

Test fail error image
http://img193.imageshack.us/img193/269/capturedlp.jpg

Showing Code To Modify.
http://img197.imageshack.us/img197/1017/capture2ui.jpg

and

http://img508.imageshack.us/img508/8316/capture3s.jpg

Hope i will get a solution. Thanks in Advance.

Files attached;
Title: Re: Ad Management mod
Post by: MattH41 on November 21, 2010, 12:18:02 AM
Quote from: kartheekb on November 21, 2010, 12:05:08 AM
When i am trying to install getting some errors...

I am using SMF 2.0 rc4, soft cartoon theme.

When i am trying to upload showing errors on broard.index.template & index.template.php

here are the screen shots....

Test fail error image
http://img193.imageshack.us/img193/269/capturedlp.jpg

Showing Code To Modify.
http://img197.imageshack.us/img197/1017/capture2ui.jpg

and

http://img508.imageshack.us/img508/8316/capture3s.jpg

Hope i will get a solution. Thanks in Advance.

The solution is to make the manual edits to your theme that it indicates.
Title: Re: Ad Management mod
Post by: PLAYBOY on November 21, 2010, 01:13:38 AM
I cant make manual edits to my theme. Same here...


Quote from: PLAYBOY on November 18, 2010, 03:46:49 PM
Quote from: maihannijat on September 04, 2010, 12:15:19 AM
Hi

I tried alot to manually install this in my custom theme but not able to add code in index.template.php

I have attached my index.template.php


How to Add This code After <body> Tag
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


Here is my Body Tag code:
<body>

   <div id="wrapper">
  <div id="header">
<div id="head-l">
<div id="head-r">
  <div id="userarea">';
if ($context['user']['is_logged'])
{
echo '<b>', $txt['hello_member'], ' ', $context['user']['name'], '</b><br />';



I am facing the same problem except mine is 1.1.12
How can i edit this one?

It gives parse error.
Title: Re: Ad Management mod
Post by: akashbc on November 21, 2010, 01:24:12 AM
Quote

The solution is to make the manual edits to your theme that it indicates.

Can you help me matt?

I also face the same problem as  kartheekb face..Can you edit the files for me..If you can ,please dit the files in my previous post with attachments..

Please??


Thanks in advance :)
Title: Re: Ad Management mod
Post by: kartheekb on November 21, 2010, 03:28:00 AM
Quote from: MattH41 on November 21, 2010, 12:18:02 AM
Quote from: kartheekb on November 21, 2010, 12:05:08 AM
When i am trying to install getting some errors...

I am using SMF 2.0 rc4, soft cartoon theme.

When i am trying to upload showing errors on broard.index.template & index.template.php

here are the screen shots....

Test fail error image
http://img193.imageshack.us/img193/269/capturedlp.jpg

Showing Code To Modify.
http://img197.imageshack.us/img197/1017/capture2ui.jpg

and

http://img508.imageshack.us/img508/8316/capture3s.jpg

Hope i will get a solution. Thanks in Advance.

The solution is to make the manual edits to your theme that it indicates.


I have tryed, But what its showing to "find". it is not in that file .
Title: Re: Ad Management mod
Post by: MattH41 on November 21, 2010, 07:54:04 AM
Quote from: PLAYBOY on November 18, 2010, 03:46:49 PM
Quote from: maihannijat on September 04, 2010, 12:15:19 AM
Hi

I tried alot to manually install this in my custom theme but not able to add code in index.template.php

I have attached my index.template.php


How to Add This code After <body> Tag
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


Here is my Body Tag code:
<body>

   <div id="wrapper">
  <div id="header">
<div id="head-l">
<div id="head-r">
  <div id="userarea">';
if ($context['user']['is_logged'])
{
echo '<b>', $txt['hello_member'], ' ', $context['user']['name'], '</b><br />';



I am facing the same problem except mine is 1.1.12
How can i edit this one?

It gives parse error.

Without looking at your whole file, it looks like you need:

Replace

<body>


With:

<body>';
//Display ads on the top of the page
   if (function_exists("show_topofpageAds"))
   {
      $ads = show_topofpageAds();   
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);   
      unset($ads);
   }
echo'

Title: Re: Ad Management mod
Post by: Brutto on November 21, 2010, 02:48:40 PM
Database error:

SQL logic error or missing database
near "NOT": syntax error
File: /home/saldusfo/public_html/smf/Packages/temp/install.php
Line: 51

P.S. RC4 + SQLite
Title: Re: Ad Management mod
Post by: vbgamer45 on November 21, 2010, 04:54:34 PM
Are you using MySQL?
Title: Re: Ad Management mod
Post by: MattH41 on November 21, 2010, 09:41:40 PM
Quote from: MattH41 on November 20, 2010, 03:40:04 PM
I'm having a major problem on my site http://altmarket.net

The Ad Management Mod is not respecting the enable ad permission.

Instead it is just showing the ad to everyone. How can I fix this?

VB, any reason why this mod isn't respecting the enable ad permission and is instead just showing ads to everyone?
Title: Re: Ad Management mod
Post by: vbgamer45 on November 21, 2010, 09:42:35 PM
Are you setting it under Permissions -> Modify each group there should be a permission there.
Title: Re: Ad Management mod
Post by: MattH41 on November 21, 2010, 10:31:15 PM
Yes. I have it set to show for guests and regular members, but I have it disabled for global moderators and sponsors.

However, it shows for every group regardless of their permission setting.
Title: Re: Ad Management mod
Post by: akashbc on November 21, 2010, 10:52:24 PM
Quote from: vbgamer45 on November 21, 2010, 09:42:35 PM
Are you setting it under Permissions -> Modify each group there should be a permission there.

Please help me?
Please help me to place some codes manually with some human guesses.If i put it in wrong way then it will cause some errors :(
Title: Re: Ad Management mod
Post by: vbgamer45 on November 22, 2010, 12:34:06 AM
Use modsite for manual install instructions
Title: Re: Ad Management mod
Post by: kartheekb on November 22, 2010, 12:41:04 AM
Quote from: kartheekb on November 21, 2010, 12:05:08 AM
When i am trying to install getting some errors...

I am using SMF 2.0 rc4, soft cartoon theme.

When i am trying to upload showing errors on broard.index.template & index.template.php

here are the screen shots....

Test fail error image
http://img193.imageshack.us/img193/269/capturedlp.jpg

Showing Code To Modify.
http://img197.imageshack.us/img197/1017/capture2ui.jpg

and

http://img508.imageshack.us/img508/8316/capture3s.jpg

Hope i will get a solution. Thanks in Advance.

Files attached;

Sorry For Bumping.. Can u plz tell me the solution.. i have attached the files what they are showing to modufy.
Title: Re: Ad Management mod
Post by: vbgamer45 on November 22, 2010, 12:42:47 AM
Install package then use modsite to get manual install instructions and do the edits that failed.
Title: Re: Ad Management mod
Post by: akashbc on November 22, 2010, 01:35:38 AM
Quote from: vbgamer45 on November 22, 2010, 12:42:47 AM
Install package then use modsite to get manual install instructions and do the edits that failed.

Where is the mod site?
I need human guesses to place manually?..So what do i do?
Title: Re: Ad Management mod
Post by: Blade_Runner on November 22, 2010, 05:30:28 AM
My Google AdSense ads does not show up when using with Google Chrome. How can I fix that? Any advice is greatly appreciated.
Title: Re: Ad Management mod
Post by: PLAYBOY on November 22, 2010, 09:58:37 PM
Quote from: MattH41 on November 21, 2010, 07:54:04 AM
Quote from: PLAYBOY on November 18, 2010, 03:46:49 PM
Quote from: maihannijat on September 04, 2010, 12:15:19 AM
Hi

I tried alot to manually install this in my custom theme but not able to add code in index.template.php

I have attached my index.template.php


How to Add This code After <body> Tag
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


Here is my Body Tag code:
<body>

   <div id="wrapper">
  <div id="header">
<div id="head-l">
<div id="head-r">
  <div id="userarea">';
if ($context['user']['is_logged'])
{
echo '<b>', $txt['hello_member'], ' ', $context['user']['name'], '</b><br />';



I am facing the same problem except mine is 1.1.12
How can i edit this one?

It gives parse error.

Without looking at your whole file, it looks like you need:

Replace

<body>


With:

<body>';
//Display ads on the top of the page
   if (function_exists("show_topofpageAds"))
   {
      $ads = show_topofpageAds();   
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);   
      unset($ads);
   }
echo'



I think what you said solved the problem. I ll let you know if it didnt. Thank you very much.
Title: Re: Ad Management mod
Post by: xseaplus on November 23, 2010, 11:39:05 AM
Mod is not working for custom theme RC4.
Manuel modifications cant be done because cant find requested codes to change...
Anyone help?
Title: Re: Ad Management mod
Post by: vbgamer45 on November 23, 2010, 05:23:46 PM
What I do in that case is look for code that similar or similar layout areas in the theme that's the only way it can be done.
Title: Re: Ad Management mod
Post by: MattH41 on November 23, 2010, 08:32:42 PM
VB, any ideas as to where I should look as to why the mod is ignoring the 'enable ads' permission and just showing to everyone?

I checked my database to make sure there weren't any entries to the gmod and sponsor groups. There isn't, but they're still seeing ads.

Looking through all the theme edits, etc., it looks like its all installed correctly.
Title: Re: Ad Management mod
Post by: vbgamer45 on November 23, 2010, 09:53:46 PM
I would need to check it out that would be the first reported instance for me. Just to be sure what SMF version?
Title: Re: Ad Management mod
Post by: MattH41 on November 23, 2010, 09:57:13 PM
2.0RC4...

And oddly. When I run the same files on my local WAMP server, everything is okay. When I run them on my webhost, that's when it breaks.

It's like it's global moderator and sponsor group are inheriting the permission from the regular members group even though it shouldn't.


EDIT: You can ignore this now. After playing for a while I was able to find a solution. I enabled 'deny permissions' on my forum and the specifically denied the ad permission for the groups I didn't want to see it. Seems to have resolved my problem.
Title: Re: Ad Management mod
Post by: akashbc on November 23, 2010, 09:58:49 PM
Quote from: vbgamer45 on November 23, 2010, 09:53:46 PM
I would need to check it out that would be the first reported instance for me. Just to be sure what SMF version?
Please help me ,Can you please add some codes manually by guessing ??

Please??
Title: Re: Ad Management mod
Post by: PLAYBOY on November 23, 2010, 11:48:28 PM
No. Actually that didint work eighter. I just need to find a good way to put this mode into pdx-dx theme fully working. You cant manually install because codes dont match.

1.1.12
Title: Re: Ad Management mod
Post by: 321Hosted.com on November 27, 2010, 04:18:26 PM
I cannot install this mod because it returns an error that says"

You cannot download or install new packages because the Packages directory or one of the files in it are not writable!


I went and chmoded all the files you suggested earlier in this thread, but I still get that message.

Can you give me some advice as to what to try next please?
Title: Re: Ad Management mod
Post by: vbgamer45 on November 27, 2010, 04:19:34 PM
Check that in your packages folder you a folder called temp and is writable
Title: Re: Ad Management mod
Post by: 321Hosted.com on November 27, 2010, 04:21:50 PM
Tahnks, that did it!
Title: Re: Ad Management mod
Post by: 321Hosted.com on November 27, 2010, 04:24:05 PM
Well, I thought it did. When I go to the list of installed packages, its not there. And there is no settings for it anywhere?
Title: Re: Ad Management mod
Post by: The Domain Shop on November 28, 2010, 01:00:26 PM
This fails extremely bad on Rc4

Quote
Execute Modification    ./Themes/core/index.template.php    Test failed
1.    Replace    ./Themes/core/index.template.php    Test successful
2.    Add After    ./Themes/core/index.template.php    Test failed
3.    Add After    ./Themes/core/index.template.php    Test successful
4.    Add After    ./Themes/core/index.template.php    Test failed
5.    Add Before    ./Themes/core/index.template.php    Test failed
Execute Modification    ./Themes/core/BoardIndex.template.php    Test failed
1.    Add Before    ./Themes/core/BoardIndex.template.php    Test successful
2.    Add After    ./Themes/core/BoardIndex.template.php    Test failed
Execute Modification    ./Themes/core/Display.template.php    Test failed
1.    Add After    ./Themes/core/Display.template.php    Test successful
2.    Replace    ./Themes/core/Display.template.php    Test successful
3.    Replace    ./Themes/core/Display.template.php    Test failed
Execute Modification    ./Themes/core/MessageIndex.template.php    Test successful
1.    Add After    ./Themes/core/MessageIndex.template.php    Test successful
Gamer Blue
Execute Modification    ./Themes/Gamer_Blue_2/index.template.php    Test failed
1.    Replace    ./Themes/Gamer_Blue_2/index.template.php    Test successful
2.    Add After    ./Themes/Gamer_Blue_2/index.template.php    Test failed
3.    Add After    ./Themes/Gamer_Blue_2/index.template.php    Test failed
4.    Add After    ./Themes/Gamer_Blue_2/index.template.php    Test failed
5.    Add Before    ./Themes/Gamer_Blue_2/index.template.php    Test failed
Execute Modification    ./Themes/Gamer_Blue_2/BoardIndex.template.php    Test failed
1.    Add Before    ./Themes/Gamer_Blue_2/BoardIndex.template.php    Test successful
2.    Add After    ./Themes/Gamer_Blue_2/BoardIndex.template.php    Test failed
Execute Modification    ./Themes/Gamer_Blue_2/Display.template.php    Test successful
1.    Add After    ./Themes/Gamer_Blue_2/Display.template.php    Test successful
2.    Replace    ./Themes/Gamer_Blue_2/Display.template.php    Test successful
3.    Replace    ./Themes/Gamer_Blue_2/Display.template.php    Test successful
Fresh v.2
Execute Modification    ./Themes/Fresh_v2_RC4/index.template.php    Test successful
1.    Replace    ./Themes/Fresh_v2_RC4/index.template.php    Test successful
2.    Add After    ./Themes/Fresh_v2_RC4/index.template.php    Test successful
3.    Add After    ./Themes/Fresh_v2_RC4/index.template.php    Test successful
4.    Add After    ./Themes/Fresh_v2_RC4/index.template.php    Test successful
5.    Add Before    ./Themes/Fresh_v2_RC4/index.template.php    Test successful
Execute Modification    ./Themes/Fresh_v2_RC4/BoardIndex.template.php    Test failed
1.    Add Before    ./Themes/Fresh_v2_RC4/BoardIndex.template.php    Test successful
2.    Add After    ./Themes/Fresh_v2_RC4/BoardIndex.template.php    Test failed
Execute Modification    ./Themes/Fresh_v2_RC4/Display.template.php    Test successful
1.    Add After    ./Themes/Fresh_v2_RC4/Display.template.php    Test successful
2.    Replace    ./Themes/Fresh_v2_RC4/Display.template.php    Test successful
3.    Replace    ./Themes/Fresh_v2_RC4/Display.template.php    Test successful
Title: Re: Ad Management mod
Post by: Illori on November 28, 2010, 01:43:54 PM
do you have other mods installed? do any of them have mods in those files?
Title: Re: Ad Management mod
Post by: vbgamer45 on November 28, 2010, 02:02:49 PM
You are using the non default themes so you will need to modify those files manually
Title: Re: Ad Management mod
Post by: Kindred on November 28, 2010, 04:21:30 PM
to expand a  little bit:   core is no longer the default theme with 2.0....    curve is now the default, and core is sufficiently different so the standard curve edits will not work.
Title: Re: Ad Management mod
Post by: keefe on November 29, 2010, 04:49:41 AM
Hello guys,

I just placed a Google ad unit on my board using this mod but can't seem to centralize the ad unit. Its currently aligned to the left but I want it in the centre. I've tried everything (I think) I know... CSS etc. But no luck so far.

Any ideas??
Title: Re: Ad Management mod
Post by: vbgamer45 on November 29, 2010, 06:06:24 PM
Just put a center tag around it or a div tag with align=center
Title: Re: Ad Management mod
Post by: The Domain Shop on November 30, 2010, 10:47:31 AM
Quote from: vbgamer45 on November 28, 2010, 02:02:49 PM
You are using the non default themes so you will need to modify those files manually

I think i will give this mod a miss then, if i have learned anything about smf its not quite a simple has its made out to be when it comes to installing mods i have also learned manually editing the templates as a bad affect when you come to add more mods and sometimes even removing them....so sorry but no thanks not this time anyway...
Title: Re: Ad Management mod
Post by: Aarking on December 01, 2010, 01:25:16 PM
it installed fine after a long run :).. but now there is no "Ad management" option as stated on first page.. >:(
Title: Re: Ad Management mod
Post by: Ciler on December 01, 2010, 02:25:06 PM
I tested installation of this mod on 2.0 RC4 with theme X Mas (temporarily theme) and Black Rain versie 2. For both themes tests failed! So I was unable to install this perfect mod...

Please can you fix it?
Title: Re: Ad Management mod
Post by: Kindred on December 01, 2010, 02:58:34 PM
fix what?

the mod is not guaranteed to install in any theme other than default....   2.0 TRIES to add it to the other themes, but often you will still have to manually make some edits if those themes are different enough from the default.
Title: Re: Ad Management mod
Post by: Ciler on December 01, 2010, 03:01:02 PM
Quote from: Kindred on December 01, 2010, 02:58:34 PM
fix what?

the mod is not guaranteed to install in any theme other than default....   2.0 TRIES to add it to the other themes, but often you will still have to manually make some edits if those themes are different enough from the default.

OK clear but how do I know what edits in what php files?
Title: Re: Ad Management mod
Post by: Kindred on December 01, 2010, 03:11:45 PM
when the script can't do the auto edit, it shows you what it tried to do...   you have to use human inuition to find the similar code in the file
Title: Re: Ad Management mod
Post by: MoreBloodWine on December 01, 2010, 10:06:35 PM
I don't lnow is this is an adsense thing or a mod thing but I have the mod set to show display adds between every 3,6,9,12 posts but ad the ad shows up fine for the first 3 but the 4th is blank... what gives ?

http://www.eojmarket.com/index.php?topic=1496.0
Title: Re: Ad Management mod
Post by: Kindred on December 01, 2010, 10:08:08 PM
is your adsense account set to limit the number of ads that appear on a single page?
Title: Re: Ad Management mod
Post by: MoreBloodWine on December 01, 2010, 10:11:10 PM
Quote from: Kindred on December 01, 2010, 10:08:08 PM
is your adsense account set to limit the number of ads that appear on a single page?
I didnt even know there was such a setting... where might I look for this setting in my adsens account ?

Edit: This is somewhat of a feature request but would it be possible to code a tickable option that will let you hide adds from admins / site owner ?

Alot of places frown on you clicking your own ads and soemtimes you might click by accident, so this would be a nice feature to add so you dont click your own ads by mistake because you can't see them to click them.
Title: Re: Ad Management mod
Post by: Kindred on December 02, 2010, 12:24:35 AM
hmmmm.... I swear I saw that setting when I set up my adsense account, but I can't find it now...
Title: Re: Ad Management mod
Post by: MoreBloodWine on December 02, 2010, 02:16:57 AM
Quote from: Kindred on December 02, 2010, 12:24:35 AM
hmmmm.... I swear I saw that setting when I set up my adsense account, but I can't find it now...
Well, assuming the settings real lemme know when you gind it ;-p
Title: Re: Ad Management mod
Post by: vbgamer45 on December 02, 2010, 12:26:27 PM
Also beware adsense limits how many units of a certain type are displaced on a page or if they run out of ads to display they will go blank as well.
Title: Re: Ad Management mod
Post by: boazor on December 04, 2010, 02:56:47 PM
hello

i install the Ad management and its ok i think
its only install on the default but when i try to install it on the core or other
i dont find the right thing to fix on the index.template.php
when i was sure i find i got site error .

any idea how i can install it on inferno theme or on the cure ?
i just didn't find the right line in the files 
Title: Re: Ad Management mod
Post by: Jesna on December 05, 2010, 02:24:28 AM
If I remember correct Google will only allow 3 ads on a single page.

/Jakob
Title: Re: Ad Management mod
Post by: samueliyinbo on December 05, 2010, 03:02:31 AM
Hello Please I need help, I installed the mod on my smf 1.1.11 and it works fine with Google Adsense but I want to place banner ads that I created which are in .jpg format. I uploaded the image to my webhost and then created a new ad with the mod but it didn't show. It seems I am only successful when I place the google adsense code but not banner images I created. Please how do i go about this. Thanks
Title: Re: Ad Management mod
Post by: DSK-Googler on December 05, 2010, 09:29:46 AM
i  hv done the manual install method for smf2.0 Rc4

of this mod
http://custom.simplemachines.org/mods/index.php?mod=255

i edited all the php files specified in the instruction
after that what i have to do
Title: Re: Ad Management mod
Post by: Illori on December 05, 2010, 09:47:52 AM
go into the admin panel and add your code and configure where you want the ads to show.
Title: Re: Ad Management mod
Post by: DSK-Googler on December 05, 2010, 09:50:22 AM
i cant understand
tell me clearly where i hv to paste the code
Title: Re: Ad Management mod
Post by: samueliyinbo on December 05, 2010, 08:51:24 PM
Thanks , it works. I had to upload the image to a directory on my webhost . I then created a layout table using my dreamweaver and then pointed the source of the picture to the directory on my webhost that has my image. I then copied the entire table code from dreamweaver and pasted it on a new ad section and it worked , thanks
Title: Re: Ad Management mod
Post by: Ozfishkeepers on December 06, 2010, 09:57:16 AM
Wow busy thread hope you still look at this thread.

I added your mod tonight on my forum latest version installed fine but then could not find where it was to edit the banners ect???

Do you think this maybe a host issue or ????

Many thanks for your time and help

OFK
Title: Re: Ad Management mod
Post by: vbgamer45 on December 06, 2010, 10:36:11 AM
It should add a section called ad management mod in the admin area.
Title: Re: Ad Management mod
Post by: FredSanford on December 06, 2010, 08:00:26 PM
There is no "Ad Management" option in the admin configuration section after installing on SMF 2 RC4

need help :'(
Title: Re: Ad Management mod
Post by: vbgamer45 on December 06, 2010, 08:11:29 PM
Try a manual install sounds like it did not install
Title: Re: Ad Management mod
Post by: philchen on December 08, 2010, 06:15:11 PM
O.K., I am a newbie to SMF and obviously to Ad Management, but I am not completely stupid.

I installed Ad Management mod V2-3-6-1 on to my new SMF Message Board.  I have had to learn a lot about SMF in the last couple of days, so I probably had to delete and reinstall Ad Management twice.  When I finally got my board working the way I wanted to, I put in some ads and was surprised to find that Ad Management displays exact duplicates of the banner and html ads.

So I have spent the entire day trying to resolve this problem.  The SMF Ads Support Forum was useless; just a lot of people asking, in fact begging for help with no one, repeat - no one, listening to their cries for help.  I finally stumble into this place and it seems like Nirvana, there are actually people willing to share their knowledge so that helpless souls such as me can find some solace.

The advice I seem to hear is that the duplicate posting of Ads results from code being replicated by the inadvertent reinstalling of Ad Management. The solution, so it seems, is to manually delete certain files and then reinstall Ad Management.  So trusting soul that I am, I carefully deleted the offending files from the sites for my board, went back to my message board and uninstalled Ad Management and then deleted it using the package manager.

   1.  readme.txt (2031 bytes)
   2. Ads.php (12681 bytes)
   3. Ads.english.php (11789 bytes)
   4. Ads.english-utf8.php (11789 bytes)
   5. Ads.template.php (25664 bytes)
   6. install.php (2378 bytes)
   7. install.xml (12138 bytes)
   8. LoadAds.php (8937 bytes)
   9. package-info.xml (1145 bytes)

I then went back and reloaded the zipped package and reinstalled Ad Mangement.

The result?

I now have all my ads in triplicate.   :'(

I need help.  Anyone willing to tell me the secret?
Title: Re: Ad Management mod
Post by: Kindred on December 08, 2010, 06:18:54 PM
deleting the FILES won't do any good... it is doubling and now tripling your ads because the code changes within the existing smf files were now done 3 times.

The only way to correct this, at this point is to either manually remove the triplicated code or to install a clean set of forum files form the large upgrade package (thus removing any mods that you have installed)
Title: Re: Ad Management mod
Post by: philchen on December 08, 2010, 06:22:08 PM
Quote from: Kindred on December 08, 2010, 06:18:54 PM
deleting the FILES won't do any good... it is doubling and now tripling your ads because the code changes within the existing smf files were now done 3 times.

The only way to correct this, at this point is to either manually remove the triplicated code or to install a clean set of forum files form the large upgrade package (thus removing any mods that you have installed)

Thank you for that quick response.  Will reloading the forum destroy all the posts from my membership?  We just went through a fatal crash using a phpBB3 board.
Title: Re: Ad Management mod
Post by: Kindred on December 08, 2010, 06:30:14 PM
no. the posts and members are all stored in the database. reloading fresh files will just reset your forum display to the default install (i.e. no mods). Even the mod DATA will be preserved and will be used the next time you re-install the mod...
Title: Re: Ad Management mod
Post by: philchen on December 08, 2010, 06:36:24 PM
Kindred,

Thank you very much.  this is the clearest explanation that I have ever received on a support form.

Phil
Title: Re: Ad Management mod
Post by: philchen on December 08, 2010, 06:45:18 PM
Hi Kindred,

I tried to install the "large upgrade" package, but my package manager is saying that it is not installable.  Is this because I have SMF 1.1.12 already installed?
Title: Re: Ad Management mod
Post by: Illori on December 08, 2010, 06:54:38 PM
you dont install it with the package manager, upload the files to your server and replace what is there.
Title: Re: Ad Management mod
Post by: philchen on December 08, 2010, 06:58:13 PM
Quote from: Illori on December 08, 2010, 06:54:38 PM
you dont install it with the package manager, upload the files to your server and replace what is there.

Got it.  Thanks a lot for the quick responses.  I will try that first thing in the morning.

You guys are great.

Phil
Title: Re: Ad Management mod
Post by: philchen on December 09, 2010, 04:25:09 AM
Quote from: Illori on December 08, 2010, 06:54:38 PM
you dont install it with the package manager, upload the files to your server and replace what is there.

Good Morning,

I just ran this procedure, i.e., used Filezilla to upload all the SMF large package upgrade files on to my server.  Re-Applied the Ad Management packaged and I get the double ads back.  What should I do next?

I appreciate the help.  It is very logical, but I still have the problem.

Phil
Title: Re: Ad Management mod
Post by: Illori on December 09, 2010, 05:48:20 AM
can we have a link to your forum where you have double ads? have you tried to configure where the ads show up in the admin panel?
Title: Re: Ad Management mod
Post by: philchen on December 09, 2010, 08:50:58 AM
Quote from: Illori on December 09, 2010, 05:48:20 AM
can we have a link to your forum where you have double ads? have you tried to configure where the ads show up in the admin panel?

Hi,

Yes, I do configure the ads in the admin panel.  the site is http://spssmessageboard.com (http://spssmessageboard.com)

Thank you for your help.

Phil
Title: Re: Ad Management mod
Post by: Illori on December 09, 2010, 09:10:58 AM
did you put your code in more then one time in the space provided for the ad code?
Title: Re: Ad Management mod
Post by: philchen on December 09, 2010, 10:19:34 AM
Quote from: Illori on December 09, 2010, 09:10:58 AM
did you put your code in more then one time in the space provided for the ad code?

No, just once.  If I add another file, it will post two ads for it as well.
Title: Re: Ad Management mod
Post by: philchen on December 09, 2010, 04:22:10 PM
Double Posting of Ads:

I may have fixed it by going back and reactivating the old .php (the ones with the "~" and renaming current .php's as old.  I didn't get all of them, but enough to get rid of the double posts in most areas.

Thanks for the help and patience.

This is what I did:

This may not help everyone, but I did the following and it seemed to work.  On the presumption that loading the Ad Management program twice would have changed certain files, I carefully examined my file directories, one at a time.

I found that certain ".php" files were duplicated.  In other words "XXX.php" was immediately followed by a file labeled "XXX.php~".

I assumed that the "XXX.php~" was an earlier file that did not contain the code that caused the ads to post twice.  So I did the following:

1. Changed the current file "XXX.php" to "XXX-old.php"  which makes it a non-recognizable file, and
2. Changed the earlier file "XXX.php~" to "XXX.php" by removing the "~".

By doing this for every file in all the directories, I restored the functionality of Ad Management so that it only posts one ad per ad inputted.

CAVEAT: I am not a php guru or, for that matter, that good at any of this stuff. I learned to compute on a Burroughs 5500 in 1965 and did most of my work on a Log-Log DeciTrig Slide Rule.  So this may be dumb luck that it worked and may not work for everyone.  On the other hand if you see the same combination of ".php" files in your file directory, you might want to give it a try.  Do not erase the files you mark with "-old" as you may need them in the future or to restore functionality if my fix doesn't work.

I appreciate the help that you have given me.

Phil
Title: Re: Ad Management mod
Post by: radioz on December 10, 2010, 03:25:20 AM
Hi!

I installed this add on (the V2 RC-4 version) to Transistorized (dot) com where I have a very new RC-4 installation that seems to work fine.  I was confused the first time to see many errors (Reply #5807 on: November 28, 2010, 01:00:26 PM) so I did deleted the program download (under Browse Packages > Modification Packages) and downloaded it a second time.  That didn't change anything so I installed it.  I don't THINK that there was but one installation (99.9%).

From a user standpoint, everything looks fine.  I can use all of the panels to load ads and the reports look fine.  I am using AdSense code that I use on my primary site which works fine there.  The ads are supposed to be 468x60 and are suppose to appear under the menu and at the bottom of each page.  Alas, my problem is that no ads or anything else appears.  It isn't causing any problems.  It is just as if there was no code ad on at all.

Any help is appreciated.

Thanks!

Jon Hall
Title: Re: Ad Management mod
Post by: philchen on December 10, 2010, 06:54:15 AM
Quote from: radioz on December 10, 2010, 03:25:20 AM
Hi!

I installed this add on (the V2 RC-4 version) to Transistorized (dot) com where I have a very new RC-4 installation that seems to work fine.  I was confused the first time to see many errors (Reply #5807 on: November 28, 2010, 01:00:26 PM) so I did deleted the program download (under Browse Packages > Modification Packages) and downloaded it a second time.  That didn't change anything so I installed it.  I don't THINK that there was but one installation (99.9%).

From a user standpoint, everything looks fine.  I can use all of the panels to load ads and the reports look fine.  I am using AdSense code that I use on my primary site which works fine there.  The ads are supposed to be 468x60 and are suppose to appear under the menu and at the bottom of each page.  Alas, my problem is that no ads or anything else appears.  It isn't causing any problems.  It is just as if there was no code ad on at all.

Any help is appreciated.

Thanks!

Jon Hall

Jon,

I know this is a stupid question, but did you give each ad a name?  Have you checked that the ad was correctly added to the list?

Phil
Title: Re: Ad Management mod
Post by: maihannijat on December 10, 2010, 08:01:26 AM
Almost done installing this in custom Theme.

But only one code is left to insert it in index.template.php, I have tried but don't know where this code falls.

Here is the code:
';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo '







And attached is my index.template.php


Thanks in Advance.
Title: Re: Ad Management mod
Post by: candyspan6 on December 10, 2010, 02:07:43 PM
I'm trying to add my first add by using the advertisemers code, and placing it in the "content" box, but nothing is happening. Can anyone please help me out with this, it's my last and final hurdle before building the community. Also, I use the "plusGray" theme - this same code works perfectly on my other sites, so that shouldn't be an issue.

Any help is greatly appreciated!

Title: Re: Ad Management mod
Post by: radioz on December 11, 2010, 02:20:54 AM
QuoteJon,

I know this is a stupid question, but did you give each ad a name?  Have you checked that the ad was correctly added to the list?

Phil

Thanks for the reply Phil!

I now know what my problem is.  The Ad Management program is only installed on the default, Curve template.  I am using a simple copy of that theme with the only mods being an externally  linked, graphical logo image.  The ads do come up in the curve theme but not with my copy of it.

Is it necessary to manually install ads ons to ANY template other template or is there a way around that potentially disastrous (for me anyway) method?   I tried making a second base template from the current Curve (with the Ad Management add on) but only the base theme copied.  I've temporarily moved my (as of now) limited mods to the Curve theme but that could eventually be a bad idea, I think.  At the moment, just a tiny bit of code is different and it is easy to move but that may change with time.

I had a question about formatting but found that all that I had to do was to enter thesvript code wrapped in an HTML table to make it work fine!

This is a very cool program, to be sure!

Thanks!

Jon
Title: Re: Ad Management mod
Post by: Illori on December 11, 2010, 06:24:12 AM
in smf 2.0 it will attempt to apply changes to themes to the custom themes, but only if you check the correct box, otherwise you have to manually apply those changes to the theme files.
Title: Re: Ad Management mod
Post by: radioz on December 12, 2010, 05:40:05 AM
Where is the box?  Installing this program manually seems miserable though.  I've almost mucked the whole thing just working with the header!  I am now doing the potentially unwise thing of using the default as the template.  It might be asking too much (really!) but a pop-up or some other warning device might be a good idea.

I plan to quickly set up one related forum and would like to do it right and then may come back to this one.  I could probably just copy over the code from the forum to be as this add on is the only complex thing that I have added. 

This is very nice software and this add on is a very nice addition!

Thanks!

Jon Hall
http://www.transistorized.com
Title: Re: Ad Management mod
Post by: Kindred on December 12, 2010, 09:24:05 AM
why is it unwise to use the default theme?


what do you think should have a pop-up warning?

your post is very confusing, since you don't actually give any information...
Title: Re: Ad Management mod
Post by: candyspan6 on December 12, 2010, 11:14:54 AM
Hello Kindred, could you or one of the wise, all knowing helpers help me out installing this mod. Nothing seems to be working, I've tried installing it in both the default theme and my customized theme to no avail. Add before, add after, what does it all mean? I'm pretty computer savvy, although it's not my full time gig. So a bit more computer knowledge is probably needed for a potential work-around, or something... I'm using 1.11 and I downloaded the correct ad management mod version.

Are there things I need to look out for, or common mistakes people seem to make when installing this modification? It seems like there are people having a lot of issues with it, but there must be some common mistake we're all making.

Any help is greatly appreciated!
Title: Re: Ad Management mod
Post by: Kindred on December 12, 2010, 01:25:36 PM
add before, add after are indicators that explain just what to do...   add this code before the other code or after the other code (or replace the other code)
Title: Re: Ad Management mod
Post by: PLAYBOY on December 14, 2010, 04:34:27 PM
I wish there was an option to put the ads on places in galleries too.
Title: Re: Ad Management mod
Post by: Clueless One on December 17, 2010, 02:24:40 PM
hmmm...I am trying to install through the package manager and am getting

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

I am using version 1.1.12 and am installing ad mod version 2.3.6.4

I have 2.3.6.1 on another board which installed and ran just fine...thoughts?
Title: Re: Ad Management mod
Post by: vbgamer45 on December 17, 2010, 03:42:51 PM
Make sure you grabbed the right version one is for SMF 2 and other SMF 1.1.x
Title: Re: Ad Management mod
Post by: Clueless One on December 17, 2010, 04:10:26 PM
yup, sent back and got the right one....derrrpp

thanks!
Title: Re: Ad Management mod
Post by: vbgamer45 on December 17, 2010, 04:25:01 PM
Glad you got it figured out.
Title: Re: Ad Management mod
Post by: DanteOz on December 17, 2010, 04:45:34 PM
Where can I get v2.6.3.4? cos I went to download page I saw v2.3.6.1 & v2.3.6.4
Title: Re: Ad Management mod
Post by: vbgamer45 on December 17, 2010, 05:22:22 PM
That was a mis lablel v2.6.3.4 is really v2.3.6.4
Title: Re: Ad Management mod
Post by: thecomputertips on December 19, 2010, 05:46:33 PM
im having trouble getting this to work on my forum, im using default theme and Google Adsense. i have no trouble with the mod installation is just when i add my Adsense code and wait 10mins my ads wont show up, if i highlight the page i can see there a box there but nothing is showing up.
Title: Re: Ad Management mod
Post by: PLAYBOY on December 19, 2010, 07:51:08 PM
Quote from: thecomputertips on December 19, 2010, 05:46:33 PM
im having trouble getting this to work on my forum, im using default theme and Google Adsense. i have no trouble with the mod installation is just when i add my Adsense code and wait 10mins my ads wont show up, if i highlight the page i can see there a box there but nothing is showing up.

Where and how do you add your adsense code in the gallery?
I need to do it too on my 1.1.12
Title: Re: Ad Management mod
Post by: vbgamer45 on December 19, 2010, 08:42:00 PM
If SMF Gallery in the gallery.template.php just search in that file where you want it to show.
Title: Re: Ad Management mod
Post by: thecomputertips on December 20, 2010, 08:33:26 AM
that not what im having problem is the fact the ads wont show up at all
Title: Re: Ad Management mod
Post by: vbgamer45 on December 20, 2010, 12:33:30 PM
Make sure you put them in an html block
Title: Re: Ad Management mod
Post by: thecomputertips on December 21, 2010, 08:21:57 AM
it is an Html block is just not showing up, i checked the permission and is enable for everyone i also made sure that the box that says admin dont see ads isnt checked.
so im not sure what the problem is.
Title: Re: Ad Management mod
Post by: smtek on December 21, 2010, 08:55:09 AM
I am using ad management but when i check show on
-the board index
-buttom of the page

but ads are showed only in the homepage not at the buttom... I do not use the default theme that is smf core theme....

site url is:http://smtek.co.cc
Title: Re: Ad Management mod
Post by: vbgamer45 on December 21, 2010, 12:40:13 PM
Make sure you applied the theme edits to your custom theme core too
Title: Re: Ad Management mod
Post by: jjkillian on December 21, 2010, 12:41:32 PM
I have read through quite a bit of this thread and only saw one post that relates to my issue.  I am trying to display a google adsense right 120x600 skyscraper ad.  I am getting the same image src box that someone else got with the "last post" image src= issue.  I cannot find the code for this.

I am using DaY Relax Theme, not sure which ad version I am using (I cannot find where to get this information within admin, it is not under credits), I am using SMF 2.0 RC2. 

Here is the site in question.....scroll down for the skyscraper ad displaying at the bottom left.

energyauditortalk.org

I tried adding this to the css for a fix and it is not helping.

I went into the index.css and added:

.skyscraper
{
display: inline;
float: right;
}

Thanks in advance.
Title: Re: Ad Management mod
Post by: uzomaeze on December 21, 2010, 07:02:01 PM
I don't know if i've been blocked to start a new topic, but i have a pressing issue on hand,

After adding the admod for my ads section on my forum egusiland.com
refering to this link http://custom.simplemachines.org/mods/index.php?action=parse

But in getting to check my website I got a fatal error while visiting one of the topics

Template Parse Error!

There was a problem loading the //Themes/babylon/Display.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected '<'

I don't know what I did but I think I need some help here, what may be wrong, or what did I do wrong this is what that boards theme looks like.



function template_main()
{
   global $context, $settings, $options, $txt, $scripturl, $modSettings;

     // Show the anchor for the top and for the first message.  If the first message is new, say so.
   echo '
<a name="top"></a>
<a name="msg', $context['first_message'], '"></a>', $context['first_new_message'] ? '<a name="new"></a>' : '';

   // Show the linktree as well as the "Who's Viewing" information.
   echo '
<table width="100%" cellpadding="3" cellspacing="0">
   <tr>
      <td valign="bottom">', theme_linktree(), '</td>';
   if (!empty($settings['display_who_viewing']))
   {
      echo '
      <td align="center" class="smalltext">';

      // Show just numbers...?
      if ($settings['display_who_viewing'] == 1)
         echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt[19];
      // Or show the actual people viewing the topic?
      else
         echo empty($context['view_members_list']) ? '0 ' . $txt[19] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) or $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');

      // Now show how many guests are here too.
      echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '</td>';
   }

   // Show the previous/next links.
   echo '
      <td valign="bottom" align="', !$context['right_to_left'] ? 'right' : 'left', '" class="smalltext">
         <span class="nav">', $context['previous_next'], '</span>
      </td>
   </tr>
</table>';

   // Is this topic also a poll?
   if ($context['is_poll'])
   {
      echo '
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="margin-bottom: 2ex;">
   <tr class="titlebg">
      <td colspan="2" valign="middle" style="padding-left: 6px;">
         <img src="', $settings['images_url'], '/topic/', $context['poll']['is_locked'] ? 'normal_poll_locked' : 'normal_poll', '.gif" alt="" align="top" /> ', $txt['smf43'], '
      </td>
   </tr>
   <tr class="windowbg">
      <td width="5%" valign="top"><b>', $txt['smf21'], ':</b></td>
      <td>
         ', $context['poll']['question'];
      if (!empty($context['poll']['expire_time']))
         echo '
         &nbsp;(', ($context['poll']['is_expired'] ? $txt['poll_expired_on'] : $txt['poll_expires_on']), ': ', $context['poll']['expire_time'], ')';

      // Are they not allowed to vote but allowed to view the options?
      if ($context['poll']['show_results'] || !$context['allow_vote'])
      {
         echo '
         <table>
            <tr>
               <td style="padding-top: 2ex;">
                  <table border="0" cellpadding="0" cellspacing="0">';

         // Show each option with its corresponding percentage bar.
         foreach ($context['poll']['options'] as $option)
            echo '
                     <tr>
                        <td style="padding-right: 2ex;', $option['voted_this'] ? 'font-weight: bold;' : '', '">', $option['option'], '</td>', $context['allow_poll_view'] ? '
                        <td nowrap="nowrap">' . $option['bar'] . ' ' . $option['votes'] . ' (' . $option['percent'] . '%)</td>' : '', '
                     </tr>';

         echo '
                  </table>
               </td>
               <td valign="bottom" style="padding-left: 15px;">';

         // If they are allowed to revote - show them a link!
         if ($context['allow_change_vote'])
            echo '
                  <a href="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], ';sesc=', $context['session_id'], '">', $txt['poll_change_vote'], '</a><br />';

         // If we're viewing the results... maybe we want to go back and vote?
         if ($context['poll']['show_results'] && $context['allow_vote'])
            echo '
                  <a href="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], '">', $txt['poll_return_vote'], '</a><br />';

         // If they're allowed to lock the poll, show a link!
         if ($context['poll']['lock'])
            echo '
                  <a href="', $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', !$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b'], '</a><br />';

         // If they're allowed to edit the poll... guess what... show a link!
         if ($context['poll']['edit'])
            echo '
                  <a href="', $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';

         echo '
               </td>
            </tr>', $context['allow_poll_view'] ? '
            <tr>
               <td colspan="2"><b>' . $txt['smf24'] . ': ' . $context['poll']['total_votes'] . '</b></td>
            </tr>' : '', '
         </table><br />';
      }
      // They are allowed to vote!  Go to it!
      else
      {
         echo '
         <form action="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], '" method="post" accept-charset="', $context['character_set'], '" style="margin: 0px;">
            <table>
               <tr>
                  <td colspan="2">';

         // Show a warning if they are allowed more than one option.
         if ($context['poll']['allowed_warning'])
            echo '
                     ', $context['poll']['allowed_warning'], '
                  </td>
               </tr><tr>
                  <td>';

         // Show each option with its button - a radio likely.
         foreach ($context['poll']['options'] as $option)
            echo '
                     <label for="', $option['id'], '">', $option['vote_button'], ' ', $option['option'], '</label><br />';

         echo '
                  </td>
                  <td valign="bottom" style="padding-left: 15px;">';

         // Allowed to view the results? (without voting!)
         if ($context['allow_poll_view'])
            echo '
                     <a href="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], ';viewResults">', $txt['smf29'], '</a><br />';

         // Show a link for locking the poll as well...
         if ($context['poll']['lock'])
            echo '
                     <a href="', $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', (!$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b']), '</a><br />';

         // Want to edit it?  Click right here......
         if ($context['poll']['edit'])
            echo '
                     <a href="', $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';

         echo '
                  </td>
               </tr><tr>
                  <td colspan="2"><input type="submit" value="', $txt['smf23'], '" /></td>
               </tr>
            </table>
            <input type="hidden" name="sc" value="', $context['session_id'], '" />
         </form>';
      }

      echo '
      </td>
   </tr>
</table>';
   }

   // Does this topic have some events linked to it?
   if (!empty($context['linked_calendar_events']))
   {
         echo '
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="margin-bottom: 2ex;">
   <tr class="titlebg">
      <td colspan="2" valign="middle" align="left" style="padding-left: 6px;">
         ', $txt['calendar_linked_events'], '
      </td>
   </tr>
   <tr class="windowbg">
      <td width="5%" valign="top">
         <ul>';
   foreach ($context['linked_calendar_events'] as $event)
   {
      echo '
            <li>
               ', ($event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: red;">*</a> ' : ''), '<b>', $event['title'], '</b>: ', $event['start_date'], ($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : ''), '
            </li>';
   }
   echo '
         </ul>
      </td>
   </tr>
</table>';
   }

   // Show the page index... "Pages: [1]".
   echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-bottom: 1ex;">
   <tr>
      <td class="catbg" width="100%" height="35">
         <table cellpadding="3" cellspacing="0" width="100%">
            <tr>
               <td>
                  <b>', $txt[139], ':</b> ', $context['page_index'];

   // Show a "go down" link?
   if (!empty($modSettings['topbottomEnable']))
      echo $context['menu_separator'], '<a href="#bot">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/go_down.gif" alt="' . $txt['topbottom5'] . '" border="0" align="top" />' : $txt['topbottom5'], '</a>';

   echo '
               </td>
               <td align="', !$context['right_to_left'] ? 'right' : 'left', '" style="font-size: smaller;">';

   $buttonArray = array();
   if ($context['can_reply'])
      $buttonArray[] = '<a href="' . $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]) . '</a>';
   if ($context['can_mark_notify'])
      $buttonArray[] = '<a href="' . $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/notify.gif" alt="' . $txt[131] . '" border="0" />' : $txt[131]) . '</a>';

   // This is a special case; if they can see mark unread, put it at the top... otherwise show add poll.
   if ($context['user']['is_logged'] && $settings['show_mark_read'])
      $buttonArray[] = '<a href="' . $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/markunread.gif" alt="' . $txt['mark_unread'] . '" border="0" />' : $txt['mark_unread']) . '</a>';
   elseif ($context['can_add_poll'])
      $buttonArray[] = '<a href="' . $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/addpoll.gif" alt="' . $txt['add_poll'] . '" border="0" />' : $txt['add_poll']) . '</a>';

   if ($context['can_send_topic'])
      $buttonArray[] = '<a href="' . $scripturl . '?action=sendtopic;topic=' . $context['current_topic'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/sendtopic.gif" alt="' . $txt[707] . '" border="0" />' : $txt[707]) . '</a>';
   $buttonArray[] = '<a href="' . $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0" target="_blank">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/print.gif" alt="' . $txt[465] . '" border="0" />' : $txt[465]) . '</a>';

   echo implode($context['menu_separator'], $buttonArray);

   echo '</td>
            </tr>
         </table>
      </td>
   </tr>
</table>';

   // Show the topic information - icon, subject, etc.
   echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="border-bottom: 0;">
   <tr class="titlebg">
      <td valign="middle" width="15%" style="padding-left: 6px;">
         <img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" alt="" align="middle" /> ', $txt[29], '
      </td>
      <td valign="middle" width="85%" style="padding-left: 6px;" id="top_subject">
         ', $txt[118], ': ', $context['subject'], ' &nbsp;(', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')
      </td>
   </tr>
</table>';

//   if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $context['can_remove_post'])
      echo '
<form action="', $scripturl, '?action=quickmod2;topic=', $context['current_topic'], '.', $context['start'], '" method="post" name="quickModForm" accept-charset="', $context['character_set'], '" id="quickModForm" style="margin: 0;" onsubmit="return in_edit_mode == 1 ? modify_save(\'' . $context['session_id'] . '\') : confirm(\'' . $txt['quickmod_confirm'] . '\');">';

   echo '
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="bordercolor">';

   // Get all the messages...
   while ($message = $context['get_message']())
   {

   //Ad Counter
   $adcounter =0;
   // Get all the messages...
   while ($message = $context['get_message']())
   {
      $adcounter++;
      echo '
   <tr><td style="padding: 1px 1px 0 1px;">';

      // Show the message anchor and a "new" anchor if this message is new.
      if ($message['id'] != $context['first_message'])
         echo '
      <a name="msg', $message['id'], '"></a>', $message['first_new'] ? '<a name="new"></a>' : '';

      echo '
      <table width="100%" cellpadding="3" cellspacing="0" border="0">
         <tr><td class="', $message['alternate'] == 0 ? 'windowbg' : 'windowbg2', '">';

      // Show information about the poster of this message.
      echo '
            <table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
               <tr>
                  <td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
                     <b>', $message['member']['link'], '</b>
                     <div class="smalltext">';

      // Show the member's custom title, if they have one.
      if (isset($message['member']['title']) && $message['member']['title'] != '')
         echo '
                        ', $message['member']['title'], '<br />';

      // Show the member's primary group (like 'Administrator') if they have one.
      if (isset($message['member']['group']) && $message['member']['group'] != '')
         echo '
                        ', $message['member']['group'], '<br />';

      // Don't show these things for guests.
      if (!$message['member']['is_guest'])
      {
         // Show the post group if and only if they have no other group or the option is on, and they are in a post group.
         if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
            echo '
                        ', $message['member']['post_group'], '<br />';
         echo '
                        ', $message['member']['group_stars'], '<br />';

         // Is karma display enabled?  Total or +/-?
         if ($modSettings['karmaMode'] == '1')
            echo '
                        <br />
                        ', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
         elseif ($modSettings['karmaMode'] == '2')
            echo '
                        <br />
                        ', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '<br />';

         // Is this user allowed to modify this member's karma?
         if ($message['member']['karma']['allow'])
            echo '
                        <a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
                        <a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a><br />';

         // Show online and offline buttons?
         if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
            echo '
                        ', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" align="middle" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '<br /><br />';

         // Show the member's gender icon?
         if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
            echo '
                        ', $txt[231], ': ', $message['member']['gender']['image'], '<br />';

         // Show how many posts they have made.
         echo '
                        ', $txt[26], ': ', $message['member']['posts'], '<br />
                        <br />';

         // Show avatars, images, etc.?
         if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
            echo '
                        <div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';

         // Show their personal text?
         if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
            echo '
                        ', $message['member']['blurb'], '<br />
                        <br />';

         // This shows the popular messaging icons.
         echo '
                        ', $message['member']['icq']['link'], '
                        ', $message['member']['msn']['link'], '
                        ', $message['member']['aim']['link'], '
                        ', $message['member']['yim']['link'], '<br />';

         // Show the profile, website, email address, and personal message buttons.
         if ($settings['show_profile_buttons'])
         {
            // Don't show the profile button if you're not allowed to view the profile.
            if ($message['member']['can_view_profile'])
               echo '
                        <a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';

            // Don't show an icon if they haven't specified a website.
            if ($message['member']['website']['url'] != '')
               echo '
                        <a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $txt[515] . '" border="0" />' : $txt[515]), '</a>';

            // Don't show the email address if they want it hidden.
            if (empty($message['member']['hide_email']))
               echo '
                        <a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

            // Since we know this person isn't a guest, you *can* message them.
            if ($context['can_send_pm'])
               echo '
                        <a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
         }
      }
      // Otherwise, show the guest's email.
      elseif (empty($message['member']['hide_email']))
         echo '
                        <br />
                        <br />
                        <a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

      // Done with the information about the poster... on to the post itself.
      echo '
                     </div>
                  </td>
                  <td valign="top" width="85%" height="100%">
                     <table width="100%" border="0"><tr>
                        <td valign="middle"><a href="', $message['href'], '"><img src="', $message['icon_url'] . '" alt="" border="0" /></a></td>
                        <td valign="middle">
                           <div style="font-weight: bold;" id="subject_', $message['id'], '">
                              <a href="', $message['href'], '">', $message['subject'], '</a>
                           </div>';

      // If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
      echo '
                           <div class="smalltext">« <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' »</div></td>
                        <td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" nowrap="nowrap" style="font-size: smaller;">';

      // Can they reply?  Have they turned on quick reply?
      if ($context['can_reply'] && !empty($options['display_quick_reply']))
         echo '
                           <a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '" onclick="doQuote(', $message['id'], ', \'', $context['session_id'], '\'); return false;">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/quote.gif" alt="' . $txt[145] . '" border="0" />' : $txt[145]), '</a>';
      // So... quick reply is off, but they *can* reply?
      elseif ($context['can_reply'])
         echo '
                           <a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/quote.gif" alt="' . $txt[145] . '" border="0" />' : $txt[145]), '</a>';

      // Can the user modify the contents of this post?
      if ($message['can_modify'])
         echo '
                           <a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/modify.gif" alt="' . $txt[66] . '" border="0" />' : $txt[17]), '</a>';

      // How about... even... remove it entirely?!
      if ($message['can_remove'])
         echo '
                           <a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt[154], '?\');">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/delete.gif" alt="' . $txt[121] . '" border="0" />' : $txt[31]), '</a>';

      // What about splitting it off the rest of the topic?
      if ($context['can_split'])
         echo '
                           <a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/split.gif" alt="' . $txt['smf251'] . '" border="0" />' : $txt['smf251']), '</a>';

      // Show a checkbox for quick moderation?
      if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $message['can_remove'])
         echo '
                           <input type="checkbox" name="msgs[]" value="', $message['id'], '" class="check" onclick="document.getElementById(\'quickmodSubmit\').style.display = \'\';" />';

      // Show the post itself, finally!
      echo '
                        </td>
                     </tr></table>
                     <hr width="100%" size="1" class="hrcolor" />
                     <div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] ? '
                     <img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' . $message['id'] . '" style="cursor: pointer;" onclick="modify_msg(\'' . $message['id'] . '\', \'' . $context['session_id'] . '\')" />' : '' , '
                  </td>
               </tr>';

      // Now for the attachments, signature, ip logged, etc...
      echo '
               <tr>
                  <td valign="bottom" class="smalltext" width="85%">
                     <table width="100%" border="0" style="table-layout: fixed;"><tr>
                        <td colspan="2" class="smalltext" width="100%">';

      // Assuming there are attachments...
      if (!empty($message['attachment']))
      {
         echo '
                           <hr width="100%" size="1" class="hrcolor" />
                           <div style="overflow: auto; width: 100%;">';
         foreach ($message['attachment'] as $attachment)
         {
            if ($attachment['is_image'])
            {
               if ($attachment['thumbnail']['has_thumb'])
                  echo '
                           <a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />';
               else
                  echo '
                           <img src="' . $attachment['href'] . ';image" alt="" width="' . $attachment['width'] . '" height="' . $attachment['height'] . '" border="0" /><br />';
            }
            echo '
                              <a href="' . $attachment['href'] . '"><img src="' . $settings['images_url'] . '/icons/clip.gif" align="middle" alt="*" border="0" />&nbsp;' . $attachment['name'] . '</a> (', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';
         }

         echo '
                           </div>';
      }

      echo '
                        </td>
                     </tr><tr>
                        <td valign="bottom" class="smalltext" id="modified_', $message['id'], '">';

      // Show "« Last Edit: Time by Person »" if this post was edited.
      if ($settings['show_modify'] && !empty($message['modified']['name']))
         echo '
                           « <i>', $txt[211], ': ', $message['modified']['time'], ' ', $txt[525], ' ', $message['modified']['name'], '</i> »';

      echo '
                        </td>
                        <td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">';

      // Maybe they want to report this post to the moderator(s)?
      if ($context['can_report_moderator'])
         echo '
                           <a href="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '">', $txt['rtm1'], '</a> &nbsp;';
      echo '
                           <img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />';

      // Show the IP to this user for this post - because you can moderate?
      if ($context['can_moderate_forum'] && !empty($message['member']['ip']))
         echo '
                           <a href="', $scripturl, '?action=trackip;searchip=', $message['member']['ip'], '">', $message['member']['ip'], '</a> <a href="', $scripturl, '?action=helpadmin;help=see_admin_ip" onclick="return reqWin(this.href);" class="help">(?)</a>';
      // Or, should we show it because this is you?
      elseif ($message['can_see_ip'])
         echo '
                           <a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $message['member']['ip'], '</a>';
      // Okay, are you at least logged in?  Then we can show something about why IPs are logged...
      elseif (!$context['user']['is_guest'])
         echo '
                           <a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $txt[511], '</a>';
      // Otherwise, you see NOTHING!
      else
         echo '
                           ', $txt[511];

      echo '
                        </td>
                     </tr></table>';

      // Show the member's signature?
      if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
         echo '
                     <hr width="100%" size="1" class="hrcolor" />
                     <div class="signature">', $message['member']['signature'], '</div>';

      echo '
                  </td>
               </tr>
            </table>
         </td></tr>
      </table>
   </td></tr>';
   }
   </td></tr>';
if (function_exists("show_posts"))
{
   if ($adpost = show_posts($adcounter))
   {
      if($modSettings['ads_lookLikePosts'])
      {
         echo '

   <tr><td style="padding: 1px 1px 0 1px;">
      <table width="100%" cellpadding="3" cellspacing="0" border="0">
         <tr><td class="windowbg3">
            <table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
               <tr>
                  <td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
                     <b>', $context['forum_name'], '</b>
                     <div class="smalltext">
                     </div>
                  </td>
                  <td valign="top" width="85%" height="100%">
                     <table width="100%" border="0"><tr>
                        <td valign="middle"><img src="', $message['icon_url'] . '" alt="" border="0" /></td>
                        <td valign="middle">
Title: Re: Ad Management mod
Post by: uzomaeze on December 21, 2010, 07:09:29 PM
something funny just happened now, the theme changed when i clicked on change theme view or something, this is not what I bargained for !
Title: Re: Ad Management mod
Post by: Kindred on December 21, 2010, 07:45:51 PM
OMG... please learn to use code tags (and why are you posting your whole file like that?)

Also, don't double post...   

lastly... your explanation seems to be muddled. You have a template parse error. So you have to fix the theme/template file. In the mean time, you are using a different theme which works?
Title: Re: Ad Management mod
Post by: uzomaeze on December 21, 2010, 08:22:13 PM
@ kindred am so sorry, not used to posting using code tags, I just wanted to be sure on what am doing, I added the ad mods and got into trouble, if i'm making any mistake Kindred are you saying that the error is coming from else where and which of the template file are you refering to ?
What must I do to fix this error ?
Need to know what need to be done since am not a programmer
thanks
Title: Re: Ad Management mod
Post by: radioz on December 22, 2010, 05:12:17 AM
Hi!

I have tried with two forums to install this on the copy of the default Curve theme.  The second time, I am absolutely sure that the 'copy' theme was selected as the default.  Both times, the Ad Management mod installed in the base default theme.

I have made mirrors of all of the mods that I have made on both my desired default them and the main curve theme that I am using.  It, and this mode work well but I am still concerned about future software updates.  Again, so far I am changing both themes for graphical changes, etc bu the Ad Management mod causes me to use the default Curve template that still seems a little unwise, long term.

If there is a way to install this mod in my Curve copy, I'd prefer to do that.

The mod is very nice, to be clear!

Thanks!

Jon Hall

http://www.transistorized.com (ftp://www.transistorized.com)
http://www.antiqueradio.net (ftp://www.antiqueradio.net) 
Title: Re: Ad Management mod
Post by: Kindred on December 22, 2010, 09:49:19 AM
*ALL* mods will install into the default (for 2.0 - Curve) theme (i.e. the one in the Themes/default directory)
Always.

on 2.0, there will be checkboxes at the bottom of the actions/files list which allows you to apply the mod to additional themes.
Title: Re: Ad Management mod
Post by: thecomputertips on December 22, 2010, 12:22:45 PM
still no one been able to tell me why my ads wont show up i made sure is html, made sure admin dont see ads isnt checked, i copy the adsense code correctly and still been 2 days and no ads
Title: Re: Ad Management mod
Post by: Kindred on December 22, 2010, 12:27:29 PM
paste (in code tags) the exact code which you are trying to use?
Title: Re: Ad Management mod
Post by: radioz on December 23, 2010, 01:06:52 AM
Still need this info if anyone has the answer!

Quote*ALL* mods will install into the default (for 2.0 - Curve) theme (i.e. the one in the Themes/default directory)
Always.

on 2.0, there will be checkboxes at the bottom of the actions/files list which allows you to apply the mod to additional themes.

This makes a lot of sense.  Where is the 'actions/files list' though?

Thanks!
Title: Re: Ad Management mod
Post by: Kindred on December 23, 2010, 02:26:09 AM
when you try to install the mod and it tells you what files will be edited
Title: Re: Ad Management mod
Post by: Kindred on December 23, 2010, 09:01:23 AM
ummmmm....   Dante:

Ad Management mod
Title: Re: Ad Management mod
Post by: thecomputertips on December 23, 2010, 10:43:12 AM
this is the code im trying to use

<script type="text/javascript"><!--
google_ad_client = "ca-pub-2780952364161808";
/* Forum add 1 */
google_ad_slot = "3937993638";
google_ad_width = 468;
google_ad_height = 60;
//--></script>

<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Title: Re: Ad Management mod
Post by: Kindred on December 23, 2010, 11:03:39 AM
and you paste that, with no extra spaces or anything into the ad manager?
Title: Re: Ad Management mod
Post by: thecomputertips on December 23, 2010, 11:07:56 AM
Yup i pasted that with no extra spaces and  didnt edit anything in the code
Title: Re: Ad Management mod
Post by: J.G on December 24, 2010, 01:57:21 PM
I have installed this mod on one of my test forums, and the ads don't seem to be appearing - I am using SMF 1.1.12 and  OutlineOmega as the theme. The theme was slightly edited, but the edits were only swapping images around, the code is pretty much the same as the original.

Are there any suggestions as to why this might not be working for me?
Title: Re: Ad Management mod
Post by: Kindred on December 24, 2010, 03:23:29 PM
did you manually edit the custom theme's template file(s)?
Title: Re: Ad Management mod
Post by: merc123 on December 27, 2010, 04:51:11 PM
I too am having an issue with Google AdSense code not working.  It's not even in the source code so it's not being inserted into the forum. 

I'm using  2.0 RC 3 with default theme. 

<script type="text/javascript"><!--
google_ad_client = "pub-6397760773415280";
/* BMR Forum - Main Top Ad */
google_ad_slot = "7089700014";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Title: Re: Ad Management mod
Post by: merc123 on December 27, 2010, 04:56:33 PM
I got it working.  I uninstalled it (did not delete the ads) then reinstalled and it worked. 
Title: Re: Ad Management mod
Post by: Idiotji on December 29, 2010, 04:56:26 AM
test unsuccessful in silentwave theme by dziner studio.
Also manually codes are not finding.
Plz help me
Title: Re: Ad Management mod
Post by: NanoSector on December 29, 2010, 05:02:11 AM
Quote from: Idiotji on December 29, 2010, 04:56:26 AM
test unsuccessful in silentwave theme by dziner studio.
Also manually codes are not finding.
Plz help me
Manually perform the edits.
Title: Re: Ad Management mod
Post by: Idiotji on December 29, 2010, 05:17:22 AM
Quote from: Simple Series team on December 29, 2010, 05:02:11 AM
Quote from: Idiotji on December 29, 2010, 04:56:26 AM
test unsuccessful in silentwave theme by dziner studio.
Also manually codes are not finding.
Plz help me
Manually perform the edits.
But code are not getting.
While parsing i am not foinding some codes especialy for silentwave theme only by dziner studio.
Now what to do.
All prob is in my index.template.php of my theme
Title: Re: Ad Management mod
Post by: NanoSector on December 29, 2010, 05:34:21 AM
Quote from: Idiotji on December 29, 2010, 05:17:22 AM
Quote from: Simple Series team on December 29, 2010, 05:02:11 AM
Quote from: Idiotji on December 29, 2010, 04:56:26 AM
test unsuccessful in silentwave theme by dziner studio.
Also manually codes are not finding.
Plz help me
Manually perform the edits.
But code are not getting.
While parsing i am not foinding some codes especialy for silentwave theme only by dziner studio.
Now what to do.
All prob is in my index.template.php of my theme
Try finding a piece of the erroring code, and apply the other code in there.
Title: Re: Ad Management mod
Post by: Idiotji on December 29, 2010, 05:58:03 AM
see this bro <div id="content_section"><div class="frame">
<div id="main_content_section">';

this code is nowhere in the index.template.php now what to do one or two more are there which are not finding
Title: Re: Ad Management mod
Post by: NanoSector on December 29, 2010, 06:09:56 AM
Quote from: Idiotji on December 29, 2010, 05:58:03 AM
see this bro <div id="content_section"><div class="frame">
<div id="main_content_section">';

this code is nowhere in the index.template.php now what to do one or two more are there which are not finding
Hmm... Post the code that's erroring (all of it, including what's needing to be changed), and post your index.template.php.
Title: Re: Ad Management mod
Post by: Idiotji on December 29, 2010, 06:19:16 AM
ok bro here is index.template.php
Make it for ad management comaptible bro.
Thanks
Title: Re: Ad Management mod
Post by: NanoSector on December 29, 2010, 07:41:26 AM
Quote from: Idiotji on December 29, 2010, 06:19:16 AM
ok bro here is index.template.php
Make it for ad management comaptible bro.
Thanks
I'll do it later today since I'm now posting from my iPod.
Title: Re: Ad Management mod
Post by: NanoSector on December 29, 2010, 11:11:33 AM
Try this.

I only couldn't make the last edit.

Find:
echo'
</div>
</div></div>

That was the part I couldn't find.

Should work fine though.
Title: Re: Ad Management mod
Post by: Idiotji on December 30, 2010, 02:23:51 AM
oops Not working bro error on line 268
Title: Re: Ad Management mod
Post by: NanoSector on December 30, 2010, 08:24:55 AM
Quote from: Idiotji on December 30, 2010, 02:23:51 AM
oops Not working bro error on line 268
Hmmm... let me try again.
Title: Re: Ad Management mod
Post by: NanoSector on December 30, 2010, 08:27:02 AM
Dooes...THIS work?
Title: Re: Ad Management mod
Post by: Imso on January 01, 2011, 04:33:31 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: Ad Management mod
Post by: NanoSector on January 01, 2011, 05:15:31 PM
Quote from: Imso on January 01, 2011, 04:33:31 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
[lame joke]lol, that's not what I asked xD[/lame joke]

What version are you using?
Title: Re: Ad Management mod
Post by: dsantana on January 02, 2011, 05:55:43 PM
I get the following error when I click on the app. I have been using this mod successfully for a while but I think another mod tweaked something?
Any ideas?

An Error Has Occurred!
Unable to load the 'Ads' template.
Title: Re: Ad Management mod
Post by: impreza on January 03, 2011, 01:09:20 AM
I use the mod works great
Title: Re: Ad Management mod
Post by: MahjChad on January 05, 2011, 02:56:33 PM
Is there any way to get this to work on the RC4 Core theme? A guide would be nice, I modified the files with no luck.
Title: Re: Ad Management mod
Post by: NanoSector on January 05, 2011, 05:39:50 PM
Quote from: MahjChad on January 05, 2011, 02:56:33 PM
Is there any way to get this to work on the RC4 Core theme? A guide would be nice, I modified the files with no luck.
Why would you even want the Core theme?

Anyhow, the code most likely isn't compatible.
Title: Re: Ad Management mod
Post by: apc896 on January 06, 2011, 09:07:31 PM
Hi I'm new to SMF and web developing in general.... im stuck please help....

Im running smf 1.11.12, default theme and installed ad management mod perfectly. However, it just leaves a space for the ad and nothing shows up when I put in my Goggle adsense code. BUT, it works fine with the adbrite code.

Please advise on the adsense.

thank you very much for your time
Title: Re: Ad Management mod
Post by: tectonny on January 07, 2011, 07:14:05 PM
It is possible to place permission announcement, visitors see "an announcement" group members only see "announcement 2"and so on? How does the Simple Ads ...
Title: Re: Ad Management mod
Post by: eric1234 on January 10, 2011, 12:45:22 AM
I am using anime heaven theme which is from http://www.smfpersonal.net/  that powered with SMF 2.0 RC 4

I found that certain ads was not showing up , such as i want ads show up in the bottom of every page and also ads that show just after the main menu bar.  I has checked it with the default theme and it work well in default theme.

In my old forum which is powered with SMF 1.0 , i am able to put all the ads correctly and all the ads show at the top and also at the bottom of every page.


And my test site ,

www.animeinfo.co.cc/forums

since i install simpleads and found that i has to uninstall ads management mods before i can use it, then i uninstall it. After that i was unable to access the forum again. It keep on said

An Error Has Occurred!
Unable to load the 'Ads' template.

Help me solve my problem please.
Title: Re: Ad Management mod
Post by: forfun on January 13, 2011, 08:15:21 AM
What should I do?  I am trying to install version: 2.6.4  for SMF RC3, and I get the below errors.
See attached image.
Please help
Thanks
Title: Re: Ad Management mod
Post by: Kindred on January 13, 2011, 11:16:26 AM
you will have to manually apply the mod changes to those specific files/locations.
Title: Re: Ad Management mod
Post by: forfun on January 13, 2011, 04:04:51 PM
Quote from: Kindred on January 13, 2011, 11:16:26 AM
you will have to manually apply the mod changes to those specific files/locations.
Thanks much for the response!
Unless you have more details instruction, should I just copy the"add after" code, and manually paste into the error file?
Please give me a little more details.
Title: Re: Ad Management mod
Post by: Kindred on January 13, 2011, 04:37:18 PM
answered in every mod thread ever made... several dozen times

http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Ad Management mod
Post by: forfun on January 15, 2011, 06:24:37 PM
Thanks!
Title: Re: Ad Management mod
Post by: snyperthugs on January 18, 2011, 03:53:11 PM
OK I tried to manual install it but it tells me to look for lines that dont exist in my theme so I am lost.    I cannot find    
Quotetemplate_menu();
In my theme, I found something similar but everytime I add the code after that I get an error on my whole site
Title: Re: Ad Management mod
Post by: sviridovt on January 18, 2011, 07:45:51 PM
this was maybe asked before, but how do I make one user group not see ads
Title: Re: Ad Management mod
Post by: fresh iz ere on January 18, 2011, 09:17:33 PM
Works amazingly, great work!
Title: Re: Ad Management mod
Post by: vbgamer45 on January 18, 2011, 10:09:18 PM
Quote from: sviridovt on January 18, 2011, 07:45:51 PM
this was maybe asked before, but how do I make one user group not see ads
There is a permission under permissions to enable ad's/disable ads for a group
Title: Re: Ad Management mod
Post by: radioz on January 19, 2011, 05:46:33 AM
Hi!

I entered my primary website's header complete with .css <style> information using the Ad Modification Mod.  This forum (http://antiqueradio.net (http://antiqueradio.net)) is related to that site but is on a different domain name.  This seemed to work with the exception that the Simple Portal right column with recent posts and recent topics, etc. squishing things as the Simple Portal column no longer aligned with the rest of the board index but was aligned with the header instead.  I then increased the minimum width for the forum in the index.css code.  A footer related to the header worked fine until whatever point my problem developed.

My problem is that now, the only portion of the Ad Modification Mod that is working on the forum is the section for the top board index area where that head is.  Whatever I enter there works.  No other ad areas that I have tried will display any longer.  Oddly, ALL ads DO display in the window that displays when you are looking at the index.css code.  I am not sure at what point the problem developed as I was concentrating on that header only.  I changed that minimum number from 780px to 968px (related to my main site) and then back again and changed one color in the .css code.  All of those changes functioned as expected.  I also have a parallel forum that I have been building.  I copied it's .css to the 'broken' forum and NO changes were noted at all (except that font color changed)!

My question is 'is there anything that comes to mind that may be the problem'?  I looked at installing the mod but there are several errors noted and when I tried, a block came up that 'guaranteed failure' plus I am not sure that is the problem.  The forum is not in use yet so I could uninstall the entire it but that will obviated several hours of (replicable) work.  I just figured that I would for ideas ask prior to reinstallation of the forum.

The last question that I have is 'would your ez Portal offer an aligned top board index for a long ad header' and is there any way to get the header to the TOP of the forum (the Ad Modification Mod didn't work in the 'top of the forum' mode at any point for this header)?

Thanks!
Title: Re: Ad Management mod
Post by: mrtarkhan on January 19, 2011, 07:09:51 AM
don't have persian language ?

i can translate it to persian and attach it here.

for tomarow
Title: Re: Ad Management mod
Post by: snyperthugs on January 19, 2011, 10:14:09 AM
I am installing the Ad Management mod on SMF 1.1.12 on FerryTemaV2 Theme. I got all the code manually installed buy cannot install the the code on Themes/FerryTemav2/Index.Template.php

The stuff they tell me to look for does not exist. I tried so many different things, and yes I backed up the original. If somebody could help me I would greatly appreciate it alot. I spent all day on this one code. And there is no other mods installed yet

Attached is the original.

Thank You in advance for anybody that trys to help
Title: Re: Ad Management mod
Post by: radioz on January 20, 2011, 12:24:32 AM
I went through all of the maintenance functions and no change in my 'missing' ad status occurred and no errors were found.  I then started looking through files on the uninstall page with special notice to the ones marked as failed.  After I found the board index file changes, looked at them, and then closed them, my ads reappeared.,  I have no clue as to what happened.  No changes were made that I am aware of.  My install is working now although I am afraid to try placing that header code again although it is sitting in my files with no display positions selected.   Odd.
Title: Re: Ad Management mod
Post by: Jeet Chowdhury on January 20, 2011, 02:52:20 AM
how to enable this mod in back n black and other themes?


and how to expand always quick reply area?
Title: Re: Ad Management mod
Post by: Arantor on January 20, 2011, 03:41:23 AM
Quote from: Jeet Chowdhury on January 20, 2011, 02:52:20 AM
how to enable this mod in back n black and other themes?

Manually edit the theme.

Quote
and how to expand always quick reply area?

This has been covered so many times in both the 1.1.x and 2.x support board - please use the search function.
Title: Re: Ad Management mod
Post by: Jeet Chowdhury on January 20, 2011, 04:38:54 AM
what i put in search keyword?? "how to expand quick reply forever"????

and what to edit in theme code. thanks in adv.
Title: Re: Ad Management mod
Post by: Arantor on January 20, 2011, 04:51:08 AM
Quotewhat i put in search keyword?? "how to expand quick reply forever"?

'quick reply on by default' should find it.

I don't know what theme code you need to edit it, I don't use this mod or the theme you mention. The mod's maintainer will install it for you for $15 if I remember right.
Title: Re: Ad Management mod
Post by: cezars on January 20, 2011, 08:41:05 AM
Apply Filter: Only show the error messages of this URL
http://forum.leet.ro/index.php?action=admin;area=packages;sa=install2;package=ad_mod_v2-3-6-4_SMF_v2-0.zip;pid=0
Apply Filter: Only show the errors with the same message
2: gzwrite(): supplied argument is not a valid stream resource
Apply Filter: Only show the errors from this file
File: /var/www/htdocs/leet/Sources/Subs-Package.php
Line: 2775

Apply Filter: Only show the error messages of this URL
http://forum.leet.ro/index.php?action=admin;area=packages;sa=install2;package=ad_mod_v2-3-6-4_SMF_v2-0.zip;pid=0
Apply Filter: Only show the errors with the same message
512: package_flush_cache(): some files are still not writable
Apply Filter: Only show the errors from this file
File: /var/www/htdocs/leet/Sources/Subs-Package.php
Line: 2499

Apply Filter: Only show the error messages of this URL
http://forum.leet.ro/index.php?action=admin;area=packages;sa=install2;package=ad_mod_v2-3-6-4_SMF_v2-0.zip;pid=0
Apply Filter: Only show the errors with the same message
2: fopen(/var/www/htdocs/leet/Sources/Ads.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Apply Filter: Only show the errors from this file
File: /var/www/htdocs/leet/Sources/Subs-Package.php
Line: 2495

Apply Filter: Only show the error messages of this URL
http://forum.leet.ro/index.php?action=admin;area=packages;sa=install2;package=ad_mod_v2-3-6-4_SMF_v2-0.zip;pid=0
Apply Filter: Only show the errors with the same message
2: copy(/var/www/htdocs/leet/Themes/default/languages/Ads.english-utf8.php) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied
Apply Filter: Only show the errors from this file
File: /var/www/htdocs/leet/Sources/Subs-Package.php
Line: 1380

Apply Filter: Only show the error messages of this URL
http://forum.leet.ro/index.php?action=admin;area=packages;sa=install2;package=ad_mod_v2-3-6-4_SMF_v2-0.zip;pid=0
Apply Filter: Only show the errors with the same message
2: copy(/var/www/htdocs/leet/Themes/default/languages/Ads.english.php) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied
Apply Filter: Only show the errors from this file
File: /var/www/htdocs/leet/Sources/Subs-Package.php
Line: 1380
Apply Filter: Only show the error messages of this URL
http://forum.leet.ro/index.php?action=admin;area=packages;sa=install2;package=ad_mod_v2-3-6-4_SMF_v2-0.zip;pid=0
Apply Filter: Only show the errors with the same message
2: gzclose(): supplied argument is not a valid stream resource
Apply Filter: Only show the errors from this file
File: /var/www/htdocs/leet/Sources/Subs-Package.php
Line: 2789

there are many liles like this one this is just one of them this is from error logs some help will be welcome
Title: Re: Ad Management mod
Post by: snyperthugs on January 20, 2011, 09:20:25 AM
I'll try again  :'( . I am installing the Ad Management mod on SMF 1.1.12 on FerryTemaV2 Theme. I got all the code manually installed buy cannot install the the code on Themes/FerryTemav2/Index.Template.php

The stuff they tell me to look for does not exist. I tried so many different things, and yes I backed up the original. If somebody could help me I would greatly appreciate it alot. I spent all day on this one code. And there is no other mods installed yet

Attached is the original.

Thank You in advance for anybody that trys to help
Title: Re: Ad Management mod
Post by: Jeet Chowdhury on January 20, 2011, 11:27:14 AM
i want to add ad mod for

Core Theme (2.0 RC4) theme

and

Back n Black (2.0 RC4)



here is link.

which file to edit? and where?
Title: Re: Ad Management mod
Post by: Jeet Chowdhury on January 20, 2011, 12:24:23 PM
plz reply....
Title: Re: Ad Management mod
Post by: Kindred on January 20, 2011, 12:25:22 PM
do not bump your posts.   especially not after only 1 hour
Title: Re: Ad Management mod
Post by: Jeet Chowdhury on January 20, 2011, 02:18:42 PM
ok bro. atleast tell me how to add this mod in http://www.simplemachines.org/community/index.php?topic=328365.0 theme. actualism theme.
Title: Re: Ad Management mod
Post by: petb on January 23, 2011, 09:32:57 AM
Hello,

2.6.3.4 and earlier Version does not show Ads in Firefox, in all Positions like IE did.
I use the default Theme.

One Example:
From the Main Page, i click an Board then i see the topics in the board, the child boards and so on,
but i cant see Ads in FF but all works fine in IE.
........
After clicking to went to an Board, i see the ads under the child boards in IE
They where inserted from the Mod in this Area: (MY_AD)
</div> MY_AD
<div class="pagesection">

But at the same Positon in Firefox is see only:

</div>
<div class="pagesection">
And so i cant se the Ad in Firefox....

This happend to all Ads i want to see in this Location.

So the Forum does not deliver the ADs on this Page to FF but to IE.

Cann someone give me an Hint to fix this manually ?

I guess that this could happend because the Forum handles IE and FF Output different and the Mod does not depend to that and only insert the AD in the IE Section ?
Title: Re: Ad Management mod
Post by: petb on January 24, 2011, 04:48:26 AM
For Testing i inserted some echo´s in the "MessageIndex.template.php" at the Position where the Ads under Chilkd boards are inserted by the Function of the Mod.



</div>'; //Display Ads on the Message index
if (function_exists("show_underchildren"))
{
$ads = show_underchildren();
if(!empty($ads)){
echo "ads is filled with data ";
if($ads['type']==0) {
echo $ads['content'];
echo "ADDTYPE 0 ";
}else{
eval($ads['content']);
echo "ADDTYPE !0 ";
}
}else{ echo"ads was empty ";}
unset($ads);
echo " CHILD Func end";
}


And the Results are:
For IE and Opera: "ads is filled with data ahaaaaADDTYPE 0 CHILD Func end"
That means everything is working fine and the AD Content "ahaaaa" is displayed .

But in Firefox i see only my Outputs: ads was empty CHILD Func end
That means that, if Firefox was used, the  function show_underchildren() in

//Display Ads on the Message index
if (function_exists("show_underchildren"))
{
$ads = show_underchildren();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

gives no data to "$ads".


Anyone can give me a Hint how to investigate, in which Direction to search for the Error  ?
Title: Re: Ad Management mod
Post by: vbgamer45 on January 24, 2011, 10:13:18 AM
That does not make sense to me since that is php code that is run on the server and not client side code so not sure how they would be different for other browsers.
Title: Re: Ad Management mod
Post by: petb on January 24, 2011, 10:43:32 AM
Just because it is Server based and not Client, i am wondering too.
I am with your Mind, but i have tested it on another PC with FF and got the same Problem.

FF doesnt show the AD under the childboards but IE works fine.
The Function doesnt Return the Adcode.

Maybe the Handling of the Adcode before it will be delivered by show_underchildren() could be affected by an Browsergate ?

Title: Re: Ad Management mod
Post by: vbgamer45 on January 24, 2011, 10:44:48 AM
I would view the source of the page on each browser maybe the code is shown but hidden depending on the browser
Title: Re: Ad Management mod
Post by: petb on January 24, 2011, 10:58:25 AM
Now found something,
maybe it has to do with the Handling in ShowAds() ?
Maybe because i am a Adminstrator.
If i am logged out,
the FF also shows the Ads under the Childboards.

In the Settings i have "Disable ads for admins" not marked.

Logged in as Admin i can see all Adds, but not the ADs on Pages with Child boards. (I believe... all ads are not shown on this page if being an Admin)
......
Yes, verified, it depends on being Admin.

In LoadAds.php in the function showAds($type)

//Did we find any ads?
if(!empty($displayAds) || !empty($displayBoardAds))

both Conditions are false if logged in as Admin.
So there will be no Ad Displayd for Admin....but only in under_children
Title: Re: Ad Management mod
Post by: m1993 on January 25, 2011, 04:00:43 PM
It this works on Smf RC4?
Title: Re: Ad Management mod
Post by: Spoogs on January 25, 2011, 04:06:37 PM
the title does say RC4 support
Title: Re: Ad Management mod
Post by: m1993 on January 28, 2011, 10:14:20 PM
It doest show the ads on the home page only between posts.
How do i make them to show the banners on the home page?
Im using the Smf RC4
Title: Re: Ad Management mod
Post by: vbgamer45 on January 29, 2011, 11:43:04 AM
Are you using a custom theme if so you need to make the edits to the theme as well.
Title: Re: Ad Management mod
Post by: m1993 on January 29, 2011, 11:57:57 AM
Quote from: vbgamer45 on January 29, 2011, 11:43:04 AM
Are you using a custom theme if so you need to make the edits to the theme as well.
Yes, im using a theme called Day Relax
What should i do?
Title: Re: Ad Management mod
Post by: vbgamer45 on January 29, 2011, 12:01:37 PM
Get the manual install instructions either from the mod site or a package parser and use that information for the theme edits to install on your custom theme.
Title: Re: Ad Management mod
Post by: m1993 on January 29, 2011, 12:08:35 PM
Quote from: vbgamer45 on January 29, 2011, 12:01:37 PM
Get the manual install instructions either from the mod site or a package parser and use that information for the theme edits to install on your custom theme.
Here? http://www.smfads.com/forums/index.php?topic=1930.0#post_ref8
It is the same if im using the Smf 2.0 RC4?
Title: Re: Ad Management mod
Post by: vbgamer45 on January 29, 2011, 12:17:54 PM
No its different
Upload package to http://resourcez.biz/PackageParser/
And do theme edits.
Title: Re: Ad Management mod
Post by: gareth78 on February 04, 2011, 04:53:44 AM
Hi

I have your mod and love it. My main problem is I want to display a Leaderboard on every page in the top centre, which is simple, except for on one specific board.

I can of course tell make it display on all boards, apart from that one, by adding the board numbers, except, I also have an Arcade and want the banners running through that, which I'd presume would no longer have ads.

If you can help it would be appreciated!

Thanks

Edit: Also, how can I prevent ads in the admin area of the ad manager without checking, "Disable Ads for Admins" please? (I'd like to see my ads, but don't want to get in trouble with google for displaying them where the spiders can't go!)
Title: Re: Ad Management mod
Post by: vbgamer45 on February 04, 2011, 11:04:22 AM
Those two requests would require custom code to either check to ingore that specific board and to disable admins in action=admin
Title: Re: Ad Management mod
Post by: priceform on February 04, 2011, 12:47:45 PM
Hi

It works great except it doubles up on the banners. It may be easier if you have a look here hxxp:www.priceform.com/forum/index.php. You will see 2 banners when I only want 1.

Any ideas?

Thanks  ;D
Title: Re: Ad Management mod
Post by: gareth78 on February 04, 2011, 05:34:12 PM
Quote from: vbgamer45 on February 04, 2011, 11:04:22 AM
Those two requests would require custom code to either check to ingore that specific board and to disable admins in action=admin

Thanks for your reply, I appreciate it. It's certainly more than I expected! I'll chuck a donation your way. (I would buy Pro, but as I use my own ad server, it'd be complete overkill and place unnecessary load on the forum.)

Out of curiosity, if you don't mind answering, what happens if I have Ads set up to "Display ads on every page right below the menu" and then add another ad just for the boards off limit from Google? How does the Ad Management mod decide, which to display please?

I've tried it and the ad with the specific board seems to win out everytime, can you confirm this will always be the case, as in does specifying a board win out over a sitewide placement?

Thanks (I'm sure I could have said that in quite a few less words and it's probably been asked elsewhere. :) )
Title: Re: Ad Management mod
Post by: m1993 on February 05, 2011, 05:11:37 PM
Quote from: vbgamer45 on January 29, 2011, 12:17:54 PM
No its different
Upload package to http://resourcez.biz/PackageParser/
And do theme edits.
When i upload the package it appears this
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 523: parser error : Opening and ending tag mismatch: search line 507 and add in /home/gmtaws/public_html/resourcez/PackageParser/index.php on line 450

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ]]></add> in /home/gmtaws/public_html/resourcez/PackageParser/index.php on line 450

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /home/gmtaws/public_html/resourcez/PackageParser/index.php on line 450

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/gmtaws/public_html/resourcez/PackageParser/index.php:450 Stack trace: #0 /home/gmtaws/public_html/resourcez/PackageParser/index.php(450): SimpleXMLElement->__construct('<modification x...') #1 /home/gmtaws/public_html/resourcez/PackageParser/index.php(419): parseModificationXML('/tmp/installrc4...', Object(SimpleXMLElement), 'theme') #2 /home/gmtaws/public_html/resourcez/PackageParser/index.php(94): parsePackageInfoXML('/tmp/package-in...', 'install', 'theme') #3 /home/gmtaws/public_html/resourcez/PackageParser/index.php(779): parseArchive() #4 {main} thrown in /home/gmtaws/public_html/resourcez/PackageParser/index.php on line 450
Title: Re: Ad Management mod
Post by: DEEPSNUYB on February 06, 2011, 04:00:35 AM
I am using a clean install of RC4 and SMF4iPhone.  SMF4iPhone stopped working after I installed this mod. Can you check their coding and make you mod compatible?  I'm not asking for ads to show under the iPhone theme.  Just need the iPhone theme working.
Title: Re: Ad Management mod
Post by: vbgamer45 on February 06, 2011, 06:51:27 PM
New update for SMF 2.0.x

Version 3.0 Feb 6, 2011
+New version released for SMF 2.0.x uses template layers for index.template.php edits instead should help getting ad management working on custom themes easier!
Title: Re: Ad Management mod
Post by: N3RVE on February 06, 2011, 07:20:55 PM
Awesome! Installed on my client's custom theme with one click. Great work ;)

-[n3rve]
Title: Re: Ad Management mod
Post by: vbgamer45 on February 06, 2011, 07:22:06 PM
Yeah hopefully reduces support time and should work with most custom themes since they all are mostly just index.template.php edits.
Title: Re: Ad Management mod
Post by: Arantor on February 06, 2011, 07:23:20 PM
It's very rare that I have anything complimentary to say but for once I'll admit this is nice to see.
Title: Re: Ad Management mod
Post by: Blade_Runner on February 07, 2011, 05:42:03 AM
Thanks for this great mod.
I am wondering why my Google ads appears and disappears randomly. Is it due to Google?
Title: Re: Ad Management mod
Post by: vbgamer45 on February 07, 2011, 10:08:16 AM
Yes it is due to google.
Title: Re: Ad Management mod
Post by: Blade_Runner on February 07, 2011, 11:57:52 AM
Quote from: vbgamer45 on February 07, 2011, 10:08:16 AM
Yes it is due to google.

Thanks for the clarification. Maybe you should state it in the installation notes.
Title: Re: Ad Management mod
Post by: vbgamer45 on February 07, 2011, 01:03:45 PM
Maybe not really something the mod does.
Title: Re: Ad Management mod
Post by: tbk22 on February 08, 2011, 04:56:25 AM
I have had this MOD for a long time but it allways had some install issues...

NOw I updated everything to RC4 included this mod and Im getting duplicated ads below the menu

Can you help me with this?  Im pretty sure thats duplicated code somewhere... But where exactly?

Title: Re: Ad Management mod
Post by: havenone on February 08, 2011, 04:55:22 PM
When I installed the new version yesterday on v2.0 RC4 I'm getting duplicated entries of all my current ads under the edit menu and when I add a new ad I also get duplicates.

I deleted the old version of ad management which did not make any difference.

Title: Re: Ad Management mod
Post by: mark48 on February 08, 2011, 05:16:28 PM
hi thanks for the great mod

i tried to install a top left and top right banner

when i do this with "Display ads on every page as a tower on the left and right side" the board is pushed to the right because the banners cover the first board (pls check the image below)
(http://img715.imageshack.us/img715/250/bannersjp.jpg)

when i try this with "Display ads on every page right below the menu" there is only an option to have a left banner

is there a way to make a top left and top right banner below the menu?

thanks for your help and support


Title: Re: Ad Management mod
Post by: vbgamer45 on February 08, 2011, 05:24:09 PM
I can't see image.
Title: Re: Ad Management mod
Post by: tbk22 on February 08, 2011, 05:47:32 PM
Quote from: havenone on February 08, 2011, 04:55:22 PM
When I installed the new version yesterday on v2.0 RC4 I'm getting duplicated entries of all my current ads under the edit menu and when I add a new ad I also get duplicates.

I deleted the old version of ad management which did not make any difference.

Same here as I stated above

Can you please help?
Title: Re: Ad Management mod
Post by: mark48 on February 08, 2011, 05:51:11 PM
thanks for the fast reply

i hope  this is better

(http://img25.imageshack.us/img25/6715/bannersee.jpg)

http://img25.imageshack.us/img25/6715/bannersee.jpg
Title: Re: Ad Management mod
Post by: Illori on February 08, 2011, 05:53:38 PM
your ad is not a tower add that is why you are having a problem.
Title: Re: Ad Management mod
Post by: mark48 on February 08, 2011, 05:59:51 PM
thank you,   yes i know its not tower ads but   i am just trying all possibilities to get 2 banners next to each other under the menu

can this be done?

Title: Re: Ad Management mod
Post by: Illori on February 08, 2011, 06:02:48 PM
that would require changes to the placement of the ads which is not directly supported by this mod or how it is coded.
Title: Re: Ad Management mod
Post by: vbgamer45 on February 09, 2011, 12:06:01 AM
You can use a custom html table maybe but you will need make sure your banners fit right
Title: Re: Ad Management mod
Post by: DownloadPs3 on February 11, 2011, 01:33:48 AM
Is it possible to have the ads centered instead of off to the left?
Title: Re: Ad Management mod
Post by: vbgamer45 on February 11, 2011, 01:35:36 AM
You can use center html tags in your html code to do that
Title: Re: Ad Management mod
Post by: DownloadPs3 on February 11, 2011, 02:01:26 AM
Quote from: vbgamer45 on February 11, 2011, 01:35:36 AM
You can use center html tags in your html code to do that

How do you do that?

And i tried to make a banner ad it was the biggest one that displayed 460x60-banner (the one im using now is sorta small) and it wouldnt display
Title: Re: Ad Management mod
Post by: mark48 on February 14, 2011, 03:56:02 PM
Quote from: vbgamer45 on February 09, 2011, 12:06:01 AM
You can use a custom html table maybe but you will need make sure your banners fit right

thanks,  unfortunately i have no idea how to do that

would this be available in the pro version or would it be possible to add it ?

Title: Re: Ad Management mod
Post by: henrik1782 on February 17, 2011, 05:26:11 PM
Hi...

To center the adds do this:

1. Copy code from google or whatever.
2. Paste it to ad manager
3. In from of the code ad this: <div align=center>
4. In the end of the code ad this: </div>

For alignment you can use left, center, right.
Title: Re: Ad Management mod
Post by: DownloadPs3 on February 18, 2011, 10:24:22 PM
Quote from: henrik1782 on February 17, 2011, 05:26:11 PM
Hi...

To center the adds do this:

1. Copy code from google or whatever.
2. Paste it to ad manager
3. In from of the code ad this: <div align=center>
4. In the end of the code ad this: </div>

For alignment you can use left, center, right.

Thank you i have it working
Title: Re: Ad Management mod
Post by: henrik1782 on February 19, 2011, 07:48:46 AM
Quote from: mark48 on February 08, 2011, 05:59:51 PM
thank you,   yes i know its not tower ads but   i am just trying all possibilities to get 2 banners next to each other under the menu

can this be done?



Try his

[table]
[tr]
[td] fiste add code [/td]
[td] second add code [/td]
[/tr]
[/table]


I have not testet it so let us know how it works.
Title: Re: Ad Management mod
Post by: vbgamer45 on February 19, 2011, 03:24:12 PM
I am not sure if bbc code works might be html only
Title: Re: Ad Management mod
Post by: henrik1782 on February 20, 2011, 06:30:34 AM
For html use this.

<table>
<tr>
<td>fiste add code</td>
<td>second add code</td>
</tr>
</table>
Title: Re: Ad Management mod
Post by: reinner on February 21, 2011, 09:55:29 AM
I don't know if I can post it in here but I am posting it anyways. Please let me know if this is not allowed so I can edit it.

Here we go, I tried to register in smfhack forum but I am getting this error
"Your details match those of a known spammer, therefore you have been disallowed registration. "

I wanted to register so I could asked some questions since I wanted to buy a Pro license for my forum.

Obviously I can't buy it from here or can I?

Please let me know or point me to the right direction.

Best Regards,
Title: Re: Ad Management mod
Post by: king999 on February 22, 2011, 03:48:23 AM
I want ads in center how to do that.
Title: Re: Ad Management mod
Post by: henrik1782 on February 22, 2011, 05:58:10 AM
Quote from: henrik1782 on February 17, 2011, 05:26:11 PM
Hi...

To center the adds do this:

1. Copy code from google or whatever.
2. Paste it to ad manager
3. In from of the code ad this: <div align=center>
4. In the end of the code ad this: </div>

For alignment you can use left, center, right.
Title: Re: Ad Management mod
Post by: mark48 on February 22, 2011, 05:01:14 PM
hi hendrik1782,  yes thanks it worked but i would like to show the banners from the mod so they can rotate

can anyone tell me the part of the code in the mod that shows the banners below the menu?

Title: Re: Ad Management mod
Post by: vbgamer45 on February 24, 2011, 01:04:24 PM
Quote from: reinner on February 21, 2011, 09:55:29 AM
I don't know if I can post it in here but I am posting it anyways. Please let me know if this is not allowed so I can edit it.

Here we go, I tried to register in smfhack forum but I am getting this error
"Your details match those of a known spammer, therefore you have been disallowed registration. "

I wanted to register so I could asked some questions since I wanted to buy a Pro license for my forum.

Obviously I can't buy it from here or can I?

Please let me know or point me to the right direction.

Best Regards,

Send me a pm I can create an account for you.

You need to check the box on registration to say you are not a spammer.
Title: Re: Ad Management mod
Post by: comedorsamus on February 27, 2011, 09:37:27 PM
Wow, this mod is giving me life right now.

Works perfectly, thanks! I'll try to make a donation after I buy the Nintendo 3DS in march, lol.

Let's get them clicking on those ads baby!
Title: Re: Ad Management mod
Post by: vbgamer45 on February 27, 2011, 09:50:56 PM
Glad you enjoy the mod thanks for your support!
Title: Re: Ad Management mod
Post by: markav2 on March 01, 2011, 09:16:40 AM
Updated to Ad Management mod 2.3.6.1 and now I have two listings for every ad in my "edit ads". If I delete one and it deletes both. Done some searching around in the files it had modified and I cannot seem to find anything that jumps out at me.

Any ideas?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 01, 2011, 10:33:16 AM
What SMF version?
Title: Re: Ad Management mod
Post by: markav2 on March 01, 2011, 10:45:58 AM
SMF 1.1.13
Title: Re: Ad Management mod
Post by: Storman™ on March 01, 2011, 06:21:50 PM
Doing a manual install with this mod and for some reason install.php just isn't running for me for some reason.

Anyone know the sql query thats required ? Had a look in install.php but there seems to be a few things going on and my coding skills aren't too hot !  :(

Cheers  :)
Title: Re: Ad Management mod
Post by: LOLwut on March 01, 2011, 06:47:18 PM
Sorry if this has already been addressed but I don't seem to have an "Add Ad" button. I am running .13 and have tiny portal installed.
Title: Re: Ad Management mod
Post by: quebo on March 02, 2011, 05:14:52 PM
I'm encountering problems with RC5 and Ad Management mod 3 when MSN bot is crawling my site, no other ip-adresses are logged with errors ... :

http://www.***.**/smf/index.php?action=dlattach;attach=986;type=avatar2: Invalid argument supplied for foreach()Bestand: /home/**/domains/***/public_html/smf/Sources/LoadAds.php
Line: 29
and
Undefined index: template_layers
File: /home/**/domains/***/public_html/smf/Sources/LoadAds.php
Line: 27
and
Undefined index: default_theme_url
File: /home/**/domains/***/public_html/smf/Sources/Load.php
Line: 1942
and
Undefined index: theme_url
File: /home/**/domains/***/public_html/smf/Sources/Load.php
Regel: 1941

Very weird problem, is there anybody who could help me out ?

Thanks in advance!
Title: Re: Ad Management mod
Post by: maryStela on March 03, 2011, 11:50:29 AM
hello
I installed ad management 2.3.6.1 on smf 1.1.13
I do not see any changes on the forum admin panell
Title: Re: Ad Management mod
Post by: vbgamer45 on March 03, 2011, 05:26:21 PM
Should be a section called ad manager make sure the language you are using english as the default language.
Title: Re: Ad Management mod
Post by: maryStela on March 04, 2011, 11:54:47 AM
hi, no I'm not using english.... so this might be the problem.
I do not remember now, how do I get bak to english?
thanks
Title: Re: Ad Management mod
Post by: vbgamer45 on March 04, 2011, 01:08:43 PM
Admin -> Server Settings
Title: Re: Ad Management mod
Post by: cavem5 on March 05, 2011, 11:54:55 AM
Currently have hundreds of these, and related, errors:

http://mysite.com/index.php?action=dlattach;attach=236;type=avatar [nofollow]
8: Undefined index: template_layers
File: /home/cavem5/public_html/Sources/LoadAds.php

http://mysite.com/index.php?action=dlattach;attach=236;type=avatar [nofollow]
8: Undefined index: default_theme_url
File: /home/cavem5/public_html/Sources/Load.php
Title: Re: Ad Management mod
Post by: Glasso on March 05, 2011, 12:02:16 PM
Quote from: quebo on March 02, 2011, 05:14:52 PM
I'm encountering problems with RC5 and Ad Management mod 3 when MSN bot is crawling my site, no other ip-adresses are logged with errors ... :

http://www.***.**/smf/index.php?action=dlattach;attach=986;type=avatar2: Invalid argument supplied for foreach()Bestand: /home/**/domains/***/public_html/smf/Sources/LoadAds.php
Line: 29
and
Undefined index: template_layers
File: /home/**/domains/***/public_html/smf/Sources/LoadAds.php
Line: 27
and
Undefined index: default_theme_url
File: /home/**/domains/***/public_html/smf/Sources/Load.php
Line: 1942
and
Undefined index: theme_url
File: /home/**/domains/***/public_html/smf/Sources/Load.php
Regel: 1941

Very weird problem, is there anybody who could help me out ?

Thanks in advance!


Quote from: cavem5 on March 05, 2011, 11:54:55 AM
Currently have hundreds of these, and related, errors:

http://mysite.com/index.php?action=dlattach;attach=236;type=avatar [nofollow]
8: Undefined index: template_layers
File: /home/cavem5/public_html/Sources/LoadAds.php

http://mysite.com/index.php?action=dlattach;attach=236;type=avatar [nofollow]
8: Undefined index: default_theme_url
File: /home/cavem5/public_html/Sources/Load.php

quebo & cavem5,

This worked for me for the same problems, you might test & try it at your own risk.

From http://simpleportal.net/index.php?topic=4232.0

index.php - replace

// Attachments don't require the entire theme to be loaded.
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'dlattach' && (!empty($modSettings['allow_guestAccess']) && $user_info['is_guest']))
detectBrowser();
// Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)
else
loadTheme();


with:

// Attachments don't require the entire theme to be loaded.
/*if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'dlattach' && (!empty($modSettings['allow_guestAccess']) && $user_info['is_guest']))
detectBrowser();
// Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)
else*/
loadTheme();



Title: Re: Ad Management mod
Post by: cavem5 on March 05, 2011, 12:33:05 PM
Thanks, giving it a try
Title: Re: Ad Management mod
Post by: quebo on March 05, 2011, 05:14:28 PM
@ŋlasso: thanks, that seems to work!!
Title: Re: Ad Management mod
Post by: SC RaceFan on March 05, 2011, 05:14:54 PM
Can some one help me with these errors. I was told my question belongs here. These errors seem to only be on guest and I have had no users complain.  I am new at this and not very sure of my self at this point
Oh, I'm running 2.0RC5
with these packages

1. Header Addon 1.0 [ Uninstall ]
2. Dog Avatars 1.0 [ Uninstall ]
3. Cats Avatars 1.1.2 [ Uninstall ]
4. Dance 1.0 [ Uninstall ]
5. Car Avatar Pack V1.0 1.0 [ Uninstall ]
6. Ad Managment 3.0 [ Uninstall ]
7. Porcelan Animals Avatars 1.0



Errors

Guest
66.249.72.140   
    Today at 04:08:33 PM
0edf889248d422c82d3d79f4c5a06891
Type of error: General 
http://*****.com/forum/index.php?action=dlattach;attach=3;type=avatar2 [nofollow] [nofollow]: Invalid argument supplied for foreach()File: /home/*****/public_html/forum/Sources/LoadAds.php
Line: 29 
   Guest
66.249.72.140   
    Today at 04:08:33 PM
0edf889248d422c82d3d79f4c5a06891
Type of error: Undefined 
http://*****.com/forum/index.php?action=dlattach;attach=3;type=avatar8 [nofollow] [nofollow]: Undefined index: template_layersFile: /home/*****/public_html/forum/Sources/LoadAds.php
Line: 27 
Title: Re: Ad Management mod
Post by: vbgamer45 on March 05, 2011, 08:00:03 PM
Posted an update to fix that issue.
Title: Re: Ad Management mod
Post by: Blade_Runner on March 05, 2011, 10:43:43 PM
Quote from: vbgamer45 on March 05, 2011, 08:00:03 PM
Posted an update to fix that issue.

The update doesn't fix the problem.

Guest
74.79.104.37   
http://modcarclub.com/forums/index.php?action=dlattach;topic=161.0;attach=2617;image
2: Invalid argument supplied for foreach()
File: /home/xxx/public_html/modcarclub.com/forums/Sources/LoadAds.php
Line: 30

Guest
74.79.104.37   
http://modcarclub.com/forums/index.php?action=dlattach;topic=161.0;attach=2617;image
2: Invalid argument supplied for foreach()
File: /home/xxx/public_html/modcarclub.com/forums/Sources/Load.php
Line: 1890

Title: Re: Ad Management mod
Post by: vbgamer45 on March 05, 2011, 10:47:07 PM
Try again posted another update
Title: Re: Ad Management mod
Post by: Blade_Runner on March 06, 2011, 08:34:59 AM
Still have the same problem for guests. Got a few hundred errors in a few minutes.

http://modcarclub.com/forums/index.php?action=dlattach;topic=824.0;attach=4568
8: Undefined index: default_theme_url
File: /home/xxx/public_html/modcarclub.com/forums/Sources/Load.php
Line: 2018

http://modcarclub.com/forums/index.php?action=dlattach;topic=824.0;attach=4568
8: Undefined index: theme_url
File: /home/xxx/public_html/modcarclub.com/forums/Sources/Load.php
Line: 2017

http://modcarclub.com/forums/index.php?action=dlattach;topic=824.0;attach=4568
8: Undefined index: default_theme_url
File: /home/xxx/public_html/modcarclub.com/forums/Sources/Load.php
Line: 2012

http://modcarclub.com/forums/index.php?action=dlattach;topic=824.0;attach=4568
8: Undefined index: default_theme_url
File: /home/xxx/public_html/modcarclub.com/forums/Sources/Load.php
Line: 2011

http://modcarclub.com/forums/index.php?action=dlattach;topic=824.0;attach=4568
8: Undefined index: theme_url
File: /home/xxx/public_html/modcarclub.com/forums/Sources/Load.php
Line: 2000

http://modcarclub.com/forums/index.php?action=dlattach;topic=824.0;attach=4568
8: Undefined index: theme_url
File: /home/xxx/public_html/modcarclub.com/forums/Sources/Load.php
Line: 1999

http://modcarclub.com/forums/index.php?action=dlattach;topic=824.0;attach=4569
8: Undefined index: default_theme_url
File: /home/xxx/public_html/modcarclub.com/forums/Sources/Load.php
Line: 2018

http://modcarclub.com/forums/index.php?action=dlattach;topic=824.0;attach=4568
8: Undefined index: theme_url
File: /home/xxx/public_html/modcarclub.com/forums/Sources/Load.php
Line: 1990
Title: Re: Ad Management mod
Post by: vbgamer45 on March 06, 2011, 09:38:37 AM
Those errors are not related to ad management mod.
Title: Re: Ad Management mod
Post by: Arantor on March 06, 2011, 09:40:53 AM
Except that other members have reported the same errors and the only thing in common is the Ad Management mod. Is there any check made to ensure that you're actually on a page that's going to display ads before adding to the template layers?
Title: Re: Ad Management mod
Post by: Blade_Runner on March 06, 2011, 10:18:37 AM
Quote from: vbgamer45 on March 06, 2011, 09:38:37 AM
Those errors are not related to ad management mod.

Error is gone when I uninstall it.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 06, 2011, 10:20:55 AM
Posted an update to skip on processing for attachments should fix some possible undefined errors.
Title: Re: Ad Management mod
Post by: Blade_Runner on March 06, 2011, 10:28:38 AM
Latest c version doesn't fix the problem.

http://modcarclub.com/forums/index.php?action=dlattach;topic=845.0;attach=4638;image
8: Undefined index: default_theme_url
File: /home/xxx/public_html/modcarclub.com/forums/Sources/Load.php
Line: 2018
Title: Re: Ad Management mod
Post by: vbgamer45 on March 06, 2011, 10:47:57 AM
Out of ideas for now will look at later next week.
Title: Re: Ad Management mod
Post by: petb on March 09, 2011, 04:30:32 PM
Quote from: Blade_Runner on March 06, 2011, 10:28:38 AM
Latest c version doesn't fix the problem.

http://modcarclub.com/forums/index.php?action=dlattach;topic=845.0;attach=4638;image
8: Undefined index: default_theme_url
File: /home/xxx/public_html/modcarclub.com/forums/Sources/Load.php
Line: 2018
Got the same Problem with the same Results.
Only Guests produces the Errors.
And only if the Mod ist installed.

And if the Mod is installed on another System the Errors happend too.

Title: Re: Ad Management mod
Post by: Mayhem30 on March 11, 2011, 01:58:24 AM
The MySQL query you use in this mod for SMF 1.1.x is not optimized - and does not make use of the PRIMARY index at all.

When I did a "EXPLAIN", Your query uses "filesort" (which happens to be the worst).

(http://i53.tinypic.com/2ry0neg.png)

I recommend you changing the query in (Sources/LoadAds.php) to :

$query = db_query("
SELECT *
FROM {$db_prefix}ads
WHERE ADS_ID > 0", __FILE__, __LINE__);


Using the code above, makes full use of the PRIMARY index  - and no more 'filesort'. :)

(http://i52.tinypic.com/1zqwmmd.png)
Title: Re: Ad Management mod
Post by: vbgamer45 on March 11, 2011, 10:52:23 AM
Updated removed the order by.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 11, 2011, 10:54:44 AM
Done removed the order by part and updated.

Other part that might update next is for the loadads to use caching functions to reduce sql query calls if you have caching enabled.
Title: Re: Ad Management mod
Post by: wlchase on March 11, 2011, 11:17:12 AM
Can I install the update (3.0.1) over 2.3.6.1 with no problems, or should I uninstall first?

Love the mod, BTW!
Bill
Title: Re: Ad Management mod
Post by: Arantor on March 11, 2011, 11:31:47 AM
Uninstall first.
Title: Re: Ad Management mod
Post by: wlchase on March 11, 2011, 12:28:14 PM
I won't lose my current ad configuration?
Title: Re: Ad Management mod
Post by: Arantor on March 11, 2011, 12:28:37 PM
No, it's still in the database.
Title: Re: Ad Management mod
Post by: Mayhem30 on March 11, 2011, 02:00:05 PM
You missed a part of the query in your latest update.

In order to use the PRIMARY key, the query should be "SELECT * FROM {$db_prefix}ads WHERE ADS_ID > 0"



Your "SELECT * FROM {$db_prefix}ads" in the latest update still produces :

(http://i53.tinypic.com/2ry0neg.png)
Title: Re: Ad Management mod
Post by: vbgamer45 on March 11, 2011, 02:22:44 PM
That's strange surprised it would do a filesort without anything in the where clause will look at it later.
Title: Re: Ad Management mod
Post by: Arantor on March 11, 2011, 02:25:11 PM
MySQL is optimising the query a particular way: without a WHERE, it's going to tablescan it because it has no index that is suitable, and if there isn't an ORDER BY, SMF may add its own in (and failing that, MySQL may order by primary key in lieu of not being given an explicit order), so it's doing it all on disk to minimise reads. It isn't actually that surprising if you get down into the internals of MySQL.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 11, 2011, 02:27:26 PM
Hmmm maybe start doing that will all my queries now if that is true
Title: Re: Ad Management mod
Post by: Mayhem30 on March 11, 2011, 02:45:31 PM
If you put the word "EXPLAIN" in front of your queries, it will show you exactly how it's going to handle things. That way you can try different methods and see which works best.

This is a basic breakdown of what "EXPLAIN" will show you (found this on google).

table : shows us which table the output is about (for when you join many tables in the query)

type :  is an important one - it tells us which type of join is being used. From best to worst the types are: system, const, eq_ref, ref, range, index, all

possible_keys : Shows which possible indexes apply to this table.
key : and which one is actually used.
key_len : give us the length of the key used. The shorter that better.
ref : Tells us which column, or a constant, is used.
rows : Number of rows mysql believes it must examine to get the data.
extra : Extra info - the bad ones to see here are "using temporary" and "using filesort".
Title: Re: Ad Management mod
Post by: Pedro1234 on March 12, 2011, 06:03:47 AM
Hi Folks, just a quick question. I have uploaded the ad mod but i have no ad management in my admin menu. My language is English so i know that i will have to make the code changes for my specific custom theme. I simply dont know what to put in where.

Can anyone help with what code i need to put in the theme and where??

My theme is sm-tema v2

thanks a heap..

Pedro
Title: Re: Ad Management mod
Post by: vbgamer45 on March 12, 2011, 09:59:10 AM
What SMF version?

Check the manual install options for your SMF version
Title: Re: Ad Management mod
Post by: BizBink on March 12, 2011, 11:44:27 AM
So I have a slight prob and it's that I need this mod to only show ads on one theme (destopk version) and to display another different ad for another theme (mobile theme)

How would I do this, thanks in advance
Title: Re: Ad Management mod
Post by: vbgamer45 on March 12, 2011, 12:00:45 PM
You would follow the manual install steps for theme part on your custom theme to make it appear correctly.
Title: Re: Ad Management mod
Post by: BizBink on March 12, 2011, 12:07:08 PM
It never installed it onto the mobile theme though... Also I'm not so great at php (just started learning it a month ago)
Title: Re: Ad Management mod
Post by: Kindred on March 12, 2011, 06:45:44 PM
however, as far as I know, there is no way to make it show one ad for one theme and another for a different theme
Title: Re: Ad Management mod
Post by: An0nymousHelper on March 12, 2011, 08:33:12 PM
Hi, is there a way for me to get my banner ad that goes right under the menu to be centered? Because right now it's on the far left and just looks very out of place. How would I re-position this? Any help is well appreciated! Thanks!

Edit: I'm on 1.1.13 if that makes a difference...
Title: Re: Ad Management mod
Post by: vbgamer45 on March 12, 2011, 10:28:26 PM
If your using html you can use a center tag around your banner code <center></center>
Title: Re: Ad Management mod
Post by: BizBink on March 13, 2011, 12:52:07 PM
Quote from: Kindred on March 12, 2011, 06:45:44 PM
however, as far as I know, there is no way to make it show one ad for one theme and another for a different theme

so theres no possible way of making it so it is like that... what if i have it so it displays one ad for the desktop theme and another ad for th mobile theme

anyway of doing that
Title: Re: Ad Management mod
Post by: Kindred on March 13, 2011, 01:18:10 PM
Not as designed
Title: Re: Ad Management mod
Post by: ohhhdear on March 13, 2011, 03:06:39 PM
I've tried to upload this (Ad Management)  a couple of times.

I have 1.1.13
Using Core Default Theme

It says: "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."
Title: Re: Ad Management mod
Post by: vbgamer45 on March 13, 2011, 03:37:09 PM
What zip file are you using make sure you are using the one for SMF 1.1.x
Title: Re: Ad Management mod
Post by: Pedro1234 on March 14, 2011, 06:47:49 AM
Quote from: vbgamer45 on March 12, 2011, 09:59:10 AM
What SMF version?

Check the manual install options for your SMF version

Hi,

i tried adding all the code as required here:

http://custom.simplemachines.org/mods/index.php?action=parse

however i couldn't find much of the code required to have an addition put on, after a long long time searching through the files...i triple checked that i was checking in the right files...any ideas?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 14, 2011, 02:13:30 PM
For custom themes it will be different but you should be able to find similar areas of code to enter into.
Title: Re: Ad Management mod
Post by: ohhhdear on March 14, 2011, 09:01:12 PM
Quote from: vbgamer45 on March 13, 2011, 03:37:09 PM
What zip file are you using make sure you are using the one for SMF 1.1.x

The 1st time I used the one at the bottom.

So, now I used the zip at the top and look what it says now--
I don't have a clue what to do.

Here's what it says:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Installation Readme
Ad Management Mod
Support site: www.smfads.com

----------
This mod will display ads on various parts of your forum on the default theme in SMF Version 1.1
---------
Version 2.3.1 June 09, 2009
- Added Ads.english-utf8.php file
- Updated error in install.php

Version 2.3 Jan 11, 2007
- New setting: Disable ads for admins
- New setting: Disable reports(one less query)
- New setting: Disable all ads
- New setting: Ability to make post ads not look like posts.
- Added the ability to display ads between categories
- Added the ability to display ads after the last post
- Added the ability to display ads under child boards
- Fixed issues about not finding functions(caused forums to crash)


Version 2.0 Jun 13, 2006
- Enabled per board ads
- Ability to add multiple ads
- HTML/PHP style ads
- Ad reports
- Disabled ads in certain sections of the admin panel
- Many more minor improvments

Version 1.5 Mar 19, 2006
- Fixed an issue with the xml
- Added the ability to display ads on top of the menu on every page
- Added help files
- Revised some of the code in previous versions.

Version 1.4.1 Feb 8, 2006
- Fixed an issue when installing on a forum that has TinyPortal installed

Version 1.4 Feb 2, 2006
- Added the ability to disable ads according to their membergroup.

Version 1.3 Feb 1, 2006
- Updated database settings so that they wont be removed on re-installation.
- Added the ability to display ads on the bottom of every page.
- Added the ability to display an ad after the first post. (Idea courtesy Joomlaspan)

Version 1.2 Jan 30, 2006
- Offically released on simplemachines.org. No offical changes from previous version.


Version 1.0 Jan 5, 2006
- Not publicly released.
- Displayed ads only under the menu bar.

Install Actions
Installations actions for "Ad Managment":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    install.php    
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/Subs.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test failed
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
6.    Execute Modification    ./Themes/default/Display.template.php    Test successful
7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
8.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
9.    Extract File    ./Sources/Ads.php    
10.    Extract File    ./Sources/LoadAds.php    
11.    Extract File    ./Themes/default/Ads.template.php    
12.    Extract File    ./Themes/default/languages/Ads.english.php    
13.    Extract File    ./Themes/default/languages/Ads.english-utf8.php
Title: Re: Ad Management mod
Post by: Kindred on March 14, 2011, 09:12:25 PM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Ad Management mod
Post by: ohhhdear on March 14, 2011, 09:22:08 PM
Thanks for the link, but I am still confused.

I don't know what to do.  I have very limited technical skills.

I only have 4 mods installed and one won't allow me to uninstall it (comic avatar)-- so maybe that is the problem with the Ad Management Mod?
Title: Re: Ad Management mod
Post by: Jennifer P Guman on March 15, 2011, 02:04:03 AM
I had installed ad management and decided to remove it. For some reason when it was removed, the link stayed at the bottom of the page.  Ad management was still listed on my sidebar for admin (even though it wasn't listed anymore under packages and modifications where it has options for deleting and installing). If I click on it, though, it takes me to an error page.

I signed out, signed back in, reinstalled ad management (because it was STILL there, the links that didn't work), and now I have two links at the bottom of the page, and when I put ads up now, I get two...everything is duplicated. I have two ad management mods installed, even though only one is listed. Two ads show up in each spot, two links at the bottom of the page, and if I delete/uninstall it, one still remains. When I click on ad management after removing the mod (because it still remains on the sidebar) I get an error page, so in order to use an ad mod, I have to have it in twice, and everything show up twice, two credit links at the bottom, etc.

My site is http://girl-talk-forum.com [nofollow]...the two 468 ads are still on top (even though I only add it in once, everything is duplicated)

Is there any way to fix this?
Title: Re: Ad Management mod
Post by: Jennifer P Guman on March 15, 2011, 02:32:00 AM
This mod has a lot of bugs! Your links are on the bottom of my site in duplicate even though I deleted it...what is wrong with this mod??
Title: Re: Ad Management mod
Post by: Pedro1234 on March 15, 2011, 05:16:26 AM
Quote from: vbgamer45 on March 14, 2011, 02:13:30 PM
For custom themes it will be different but you should be able to find similar areas of code to enter into.

Hey folks,

I took a couple of hours, but I added the necessary codes in the parse in the right places within my website and moved the relevant mod files into the relevant folders. I still have no ad management in my admin menu! I triple checked this version was compatible with my version (1.1.13) but i am at a loss. I took a lot of time to make sure i added the code right ...Can't figure out what else i have to do. I am assuming i have missed a step somewhere .....Any ideas?
Title: Re: Ad Management mod
Post by: Pedro1234 on March 15, 2011, 05:20:19 AM
I didnt use package manager by the way, i downloaded the files to my PC and then put them in my website files with my host, does this even make a difference?
Title: Re: Ad Management mod
Post by: Kindred on March 15, 2011, 07:27:11 AM
Pedro,

why did you not use the package manager?

Did you apply *ALL* changes to the code in the existing Sources and Themes files, in addition to adding the new files and adding the db tables? Are you using English? (do note that English utf-8 is different from English). Also note that on 1.1.x, you have to manually add the mod changes into any theme other than the default.
Did you even bother reading any of the previous messages in this thread which already ask and probably answer all of your questions?

Jennifer,
You will probably have to manually uninstall the mod, since you seem to have installed it twice.
When you say you "deleted: it, did you actually UNINSTALL first or did you just click "delete"? (because delete does not remove the mod, it just deletes the mod file from the package directory)
Title: Re: Ad Management mod
Post by: Jennifer P Guman on March 15, 2011, 10:01:36 AM
KIndred, I clicked uninstall, then delete, and under configuration it was still listed, and the links were still at the bottom.

I thought I did something wrong, so I reinstalled it, and suddenly I had two of everything. I uninstalled it, and deleted it a second time (I thought that would make it all go) and now it's still listed under configuration (if I click it I'm redirected to an error page) and I have a bunch of links at the bottom, but it's not listed under downoaded packages anymore.

How do I manually uninstall...in the cpanel? Do I call the host? Can I do it from the site?
Title: Re: Ad Management mod
Post by: Kindred on March 15, 2011, 10:35:05 AM
you will have to manually edit the files to remove the code...

go to the mod download page, select your version of SMF where it says, Manual Install Instructions for SMF and click "parse".

Then do those instructions in reverse (i.e. if it says, "Add", then look for that code and remove it. If it says "replace", then look for that code and put the original code back)
Title: Re: Ad Management mod
Post by: Jennifer P Guman on March 15, 2011, 11:51:48 AM
I just tried this, and the response I get is: Sorry, but this modification does not appear to be compatible with the selected version.

even though 1.1.13 is listed as compatible, so it won't even give me instructions.
Title: Re: Ad Management mod
Post by: Jennifer P Guman on March 15, 2011, 11:52:50 AM
I'm trying to change things in the cpanel
Title: Re: Ad Management mod
Post by: Kindred on March 15, 2011, 12:14:08 PM
I am an SMF team member...
Unfortunately, at this time, I don't have the bandwidth to do the edits for you. :( Sorry...

as for the "parse" - make sure that the RADIO button is set to ad_mod_v3.0.1_SMF_v1-1-x.zip, select 1.1.13 in the dropdown and then click parse...   it worked for me just now
Title: Re: Ad Management mod
Post by: NanoSector on March 15, 2011, 01:13:37 PM
Quote from: Kindred on March 15, 2011, 12:14:08 PM
I am an SMF team member...
Unfortunately, at this time, I don't have the bandwidth to do the edits for you. :( Sorry...

as for the "parse" - make sure that the RADIO button is set to ad_mod_v3.0.1_SMF_v1-1-x.zip, select 1.1.13 in the dropdown and then click parse...   it worked for me just now
Not 1.1.3, 1.1.13 ::)
Title: Re: Ad Management mod
Post by: Kindred on March 15, 2011, 01:48:37 PM
dunno what you're talking about... :P
Title: Re: Ad Management mod
Post by: NanoSector on March 15, 2011, 03:18:59 PM
Quote from: Kindred on March 15, 2011, 01:48:37 PM
dunno what you're talking about... :P
Haha, lol, you sneaky one ::)
Title: Re: Ad Management mod
Post by: Pedro1234 on March 16, 2011, 04:29:51 AM
Quote from: Kindred on March 15, 2011, 07:27:11 AM
Pedro,

why did you not use the package manager?

Did you apply *ALL* changes to the code in the existing Sources and Themes files, in addition to adding the new files and adding the db tables? Are you using English? (do note that English utf-8 is different from English). Also note that on 1.1.x, you have to manually add the mod changes into any theme other than the default.
Did you even bother reading any of the previous messages in this thread which already ask and probably answer all of your questions?

Hi kindred,

i didnt use package manager because in the Download Packages tab of my admin, it will not connect to package server for some reason - all the right details are in there, it just wont work - i simply get a blank white page  :-\

You may have struck on the reason....i altered the codes in the 'default' theme not the theme i am using. I didn't know about that with 1.1x, was just following the instructions in the parse step by step (i am new to this!)- i will adjust codes in my custom theme files instead as see if it works.....as far as adding database tables, i dont think i did that actually, i just went through the parse and did the FILE EDITS and FILE OPERATIONS and thought that was all i had to do (sorry once again, very new to this!)

Am using English...not English-utf8

i did a search of the topic here but couldnt find the relevant stuff sorry..
Title: Re: Ad Management mod
Post by: Pedro1234 on March 16, 2011, 05:08:54 AM
i adjusted the index.template/php files in my custom theme, the same as i did incorrectly to the default theme.... and it still does not work
Title: Re: Ad Management mod
Post by: Pedro1234 on March 16, 2011, 05:26:48 AM
I have a sneaking suspicion i may not have added the codes correctly - i basically just did a cut and paste job. Do i need to add echos and things like that as well, and if so how do you do that?
Title: Re: Ad Management mod
Post by: LOLwut on March 16, 2011, 09:49:57 PM
Is there anyway I can direct the installation to the theme I am using and NOT the default one?
Title: Re: Ad Management mod
Post by: Arantor on March 16, 2011, 09:58:13 PM
In 1.1.x, no. In 2.0, see the 'Install in other themes' area in the lower end of the install page.
Title: Re: Ad Management mod
Post by: Clickout on March 17, 2011, 01:15:22 AM
it will be good if there is an option to show ads in wap mode
Title: Re: Ad Management mod
Post by: vbgamer45 on March 17, 2011, 01:20:35 AM
Wap mode requires special wap coded ads. I have it in ad seller pro but not in ad management.
Title: Re: Ad Management mod
Post by: Clickout on March 17, 2011, 02:35:36 AM
oh.. so it won't appear in the free version.
admanagement mod is so cool, thanks for making it free.
Title: Re: Ad Management mod
Post by: Pedro1234 on March 20, 2011, 07:18:37 AM
Quote from: Pedro1234 on March 16, 2011, 04:29:51 AM
Quote from: Kindred on March 15, 2011, 07:27:11 AM
Pedro,

why did you not use the package manager?

Did you apply *ALL* changes to the code in the existing Sources and Themes files, in addition to adding the new files and adding the db tables? Are you using English? (do note that English utf-8 is different from English). Also note that on 1.1.x, you have to manually add the mod changes into any theme other than the default.
Did you even bother reading any of the previous messages in this thread which already ask and probably answer all of your questions?

Hi kindred,

i didnt use package manager because in the Download Packages tab of my admin, it will not connect to package server for some reason - all the right details are in there, it just wont work - i simply get a blank white page  :-\

You may have struck on the reason....i altered the codes in the 'default' theme not the theme i am using. I didn't know about that with 1.1x, was just following the instructions in the parse step by step (i am new to this!)- i will adjust codes in my custom theme files instead as see if it works.....as far as adding database tables, i dont think i did that actually, i just went through the parse and did the FILE EDITS and FILE OPERATIONS and thought that was all i had to do (sorry once again, very new to this!)

Am using English...not English-utf8

i did a search of the topic here but couldnt find the relevant stuff sorry..


Any ideas for this problem?
Title: Re: Ad Management mod
Post by: babyxdeja on March 20, 2011, 11:57:33 PM
When I'm on certain themes on my site @ http://www.babyxdeja.co.cc/index.php

At the bottom where the copyright stuff is at, the ads mod links/text is overlapping the SMF copyright text/links.

Anyway to change that so its not overlapped?

I'm using SMF 2 RC5
Title: Re: Ad Management mod
Post by: babyxdeja on March 24, 2011, 02:03:01 AM
bump  O:)
Title: Re: Ad Management mod
Post by: GZ06 on March 24, 2011, 03:42:23 AM
Hi,

Ad Management mod V 2.3 for smf 1.1.11 mod is working on my web, but for admins only. THERE IS NO BUTTON to turn it on for other users in Admin panel groups permissions. IT WAS THERE. But looks that something wrong and this button disappeared. I moved forum to English, then to Russian, then again to English.. No result. Trying now to uninstall this mod. ERROR during the uninstall in ./Sources/ManagePermissions.php. So I'm not able even to reinstall it. Mod works only for admins. So, I have request to you:
PLS help to manually grant permissions  using editors for files (in what file and what need to check/change) to show banners to all other groups total OR help to uninstall it, so I will be able to install this mod again.

hope for your help.
Title: Re: Ad Management mod
Post by: spiros on March 24, 2011, 07:00:51 AM
How do I position an ad within the post, top left aligned, with text wrapping?
Title: Re: Ad Management mod
Post by: GZ06 on March 24, 2011, 01:06:58 PM
as well related to my post above, the parser on http://custom.simplemachines.org/mods/index.php?mod=255 is for version 3. I had installed ver 2.3
and I'm not able now to make something.
Title: Re: Ad Management mod
Post by: GZ06 on March 24, 2011, 04:23:24 PM
OK guys. I fixed it. Special thanks to Bigguy
Title: Re: Ad Management mod
Post by: spiros on March 26, 2011, 09:04:55 AM
I've done a fresh install on an RC5 forum, it installed without errors, but it just does not display ads. I checked the Permissions and they are OK.


http://www.nonsmokersclub.com/forum/index.php (http://www.nonsmokersclub.com/forum/index.php)
Title: Re: Ad Management mod
Post by: vbgamer45 on March 26, 2011, 10:06:03 AM
Do you see the adcode when you view the source of the page.
Also check under Admin -> Permissions
Title: Re: Ad Management mod
Post by: spiros on March 26, 2011, 10:33:18 AM

Edit: I found it. I had the core theme on, not the default, so it did not install OK on core.

Yes, permissions are checked. I do not see the adcode when checking the source of the page.


This is an upgrade from 1.1.3. The old tables were backed up. When I tried changing the names of new ads to a name and ADS_ID of the old ad, it sort of worked, displaying ads only in a handful of positions:

Display ads on message index
Display ads on the bottom of the page   
Display ads on every page as a tower on the left side   
Display ads on every page as a tower on the right side   

but no way to display within posts, categories, after last post, on post page.

Now, it shows an ad only for "Display ads on every page right below the menu" although in "Display ads within posts" I have 1 (I tried with 1,3 too). I also tested with having only one ad and only "Display ads within posts" enabled with 1. Does not display ad code in source in this case.
Title: Re: Ad Management mod
Post by: sona67 on March 28, 2011, 11:39:27 AM
SMF version: SMF ver. 1.1.13
Default Forum Language: English UTF8
Theme name and version: SMF default
Browser Name and Version: tried on IE8/Firefox, and Chrome

When I go to Admin panel-> Generate Reports -> Group Permissions

I have uninstalled the mod and manually removed all the codes (because the un-installation of the mod is not working)

I removed/edit the codes on the PHP pages listed on the Mod page (http://custom.simplemachines.org/mods/index.php?mod=255) to get back the original codes, but  I still see there's a Permission on ad_manageperm (attached picture).

Where-else can I look at, and remove the codes (i.e. ad_manageperm )?
Title: Re: Ad Management mod
Post by: AllanD on March 28, 2011, 01:19:40 PM
is there any way to show the ads on just the board index.
When you click on the option display at bottom of page it displays on all the pages at teh bottom
i really only wanted to on the main page
Title: Re: Ad Management mod
Post by: babyxdeja on March 28, 2011, 10:17:38 PM
Quote from: babyxdeja on March 20, 2011, 11:57:33 PM
When I'm on certain themes on my site @ http://www.babyxdeja.co.cc/index.php

At the bottom where the copyright stuff is at, the ads mod links/text is overlapping the SMF copyright text/links.

Anyway to change that so its not overlapped?

I'm using SMF 2 RC5

Anyone know about this?
Title: Re: Ad Management mod
Post by: AllanD on March 30, 2011, 01:44:43 PM
Quote from: CrazieGrafix on March 28, 2011, 01:19:40 PM
is there any way to show the ads on just the board index.
When you click on the option display at bottom of page it displays on all the pages at teh bottom
i really only wanted to on the main page

can anyone help out with this
Title: Re: Ad Management mod
Post by: vbgamer45 on March 30, 2011, 01:53:32 PM
Are you using a custom theme or default?
Title: Re: Ad Management mod
Post by: AllanD on March 30, 2011, 01:59:27 PM
custom sir
Title: Re: Ad Management mod
Post by: vbgamer45 on March 30, 2011, 02:00:42 PM
Have you modified your custom theme to include the admanagement edits?
Title: Re: Ad Management mod
Post by: AllanD on March 30, 2011, 02:03:38 PM
no they worked on install
Title: Re: Ad Management mod
Post by: sona67 on March 30, 2011, 02:56:51 PM
Any answers for this?

http://www.simplemachines.org/community/index.php?topic=68632.msg3001549#msg3001549

The installation and un-installation of the mod had failed for me. The mod doesn't work for me at all. Is there anyone I can remove this last code, as reference in the above link?
Title: Re: Ad Management mod
Post by: slider11111 on March 30, 2011, 03:46:29 PM
Is there a rotating code for this Mod? So I could just have say 10 banner ads below the menu and they would change automatically and also be linked?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 30, 2011, 03:47:36 PM
You might be able to do that with javascript or php code to do rotating banners.
Title: Re: Ad Management mod
Post by: grenfox on March 30, 2011, 09:35:01 PM
Hi i´m getting a error under the installation.
Execute Modification   ./Themes/default/index.template.php   Test failed

And i understand it bec i have a diffrent theme. But i don't understand what i'm gonna change.
I have read the post in this forum. but i can't get the help i need.

I have v1.1.13 and i'm using the theme bahar v2.
Title: Re: Ad Management mod
Post by: slider11111 on April 01, 2011, 07:16:26 PM
I am perplexed. I installed a flash banner ad. It works fine in IE but the ad size is changed and does not work at all in Opera,Chrome or Firefox. What is going on?
Title: Re: Ad Management mod
Post by: vbgamer45 on April 01, 2011, 09:15:55 PM
What does the banner code look like when view you the page.
Title: Re: Ad Management mod
Post by: slider11111 on April 02, 2011, 01:30:18 AM
After I tried everything to no avail I used the code sent with the add. It worked with everything EXCEPT IE. I used a free Flash code generator and all Browsers work now.
Title: Re: Ad Management mod
Post by: vbgamer45 on April 02, 2011, 01:31:08 AM
Glad you were able to find a way to get it to work.
Title: Re: Ad Management mod
Post by: desibees on April 03, 2011, 09:46:37 PM
hey.
How do you add an add here? I added the code but its not exactly adding it at this specific location.

(http://img132.imageshack.us/img132/3429/23683677.png)

oh and...

how do i add a vertical add on the right UNDER my sidebar? I tryed it and its pushing my sidebar in the centre and adding on the right.

Please help, thanks
Title: Re: Ad Management mod
Post by: desibees on April 03, 2011, 10:19:04 PM
Quote from: duder673 on June 28, 2009, 03:04:53 AM
Quote from: Bigguy on June 26, 2009, 12:01:02 AM
Look at your permission settings for each group. :)

That only let's me enable ads.

It doesn't allow me to format them how I want them for every membergroup.

Registered users: I want to have limited ads (1 per board for registered users)
Guest users:  3 on the index, and 1 on each board plus under the last post for the guests.

The problem is, I can only see a way to allow them(all) for one group or to not allow them(all) .

Exactly same question but no one replied...
Title: Re: Ad Management mod
Post by: Kindred on April 04, 2011, 07:17:38 AM
you can not do that.

The mod allows ads ON or ads OFF per membergroup. I does not allow you to show one ad for one membergroup and another for another.
Title: Re: Ad Management mod
Post by: AllanD on April 04, 2011, 01:39:41 PM
Is the any way the ads into the infocenter on the bottom?
Title: Re: Ad Management mod
Post by: DanteOz on April 04, 2011, 06:51:24 PM
Pls i want to add a square ad right after a board title on board index,  i'v seen it in other forums using ad management mod but i dont really know how to do it... and i added an ad under child boards but i cant see any ad under child boards. i'm using 2.0 rc4, pls i nid help. thnx
Title: Re: Ad Management mod
Post by: babyxdeja on April 04, 2011, 11:54:35 PM
When setting to place ads within posts, it won't work? Any ideas? I'm using RC 2 5
Title: Re: Ad Management mod
Post by: smitch6 on April 05, 2011, 09:30:38 AM
Hi
i want to remove this from my forum and clicked delete thinking it would remove it :~
i was wrong its still there and now i can't remove it

i'm using RC4 any ideas please thanks
Title: Re: Ad Management mod
Post by: Illori on April 05, 2011, 09:38:18 AM
upload the zip again to your packages folder then you will be able to preform the uninstall.
Title: Re: Ad Management mod
Post by: smitch6 on April 05, 2011, 09:43:34 AM
i tried that and it wouldn't allow it :(
Title: Re: Ad Management mod
Post by: Illori on April 05, 2011, 09:44:47 AM
would not allow it in what way?
Title: Re: Ad Management mod
Post by: smitch6 on April 05, 2011, 09:51:22 AM
says it can't upload it as it's already installed lol silly thing hey
Title: Re: Ad Management mod
Post by: Illori on April 05, 2011, 09:54:11 AM
use ftp to upload the package to your packages folder.
Title: Re: Ad Management mod
Post by: smitch6 on April 05, 2011, 10:00:59 AM
tried that and it appears in the browse list but no install or uninstall link there only list and delete

its in installed progammes and has an uninstall link there but it says can't find package
Title: Re: Ad Management mod
Post by: Illori on April 05, 2011, 10:02:43 AM
then you need to use version emulation to get it uninstalled.
Title: Re: Ad Management mod
Post by: smitch6 on April 05, 2011, 10:06:53 AM
is the advanced thing at the bottom where you convert to RC4???

if so i've tried that as well sorry to be a pain :)
Title: Re: Ad Management mod
Post by: slider11111 on April 05, 2011, 11:09:22 AM
1.1.13 using ad mod. The flash banner works but is unclickable? I imputed the URL of the swf file and the url of the site and the code was generated in a flash banner code generator. Whats wrong with the code? thanx

<center><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,5,0,175" width="600" height="70"><param name="movie" value="http://www.huntfishnw.com/primetime.swf" /><param name=FlashVars value="clickTAG=http%3A//www.primetime-outdoors.com/" /><param name="menu" value="false" /><param name="scale" value="exactfit" /><param name="AllowScriptAccess" value="always" /><embed src="http://www.huntfishnw.com/primetime.swf" FlashVars="clickTAG=http%3A//www.primetime-outdoors.com/" width="600" height="70" menu="false" scale="exactfit" AllowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></center>
Title: Re: Ad Management mod
Post by: Jimmy05 on April 06, 2011, 01:50:22 PM
Does anyone know where to remove the "SMFAds for Free Forums" from the footer?

I don't have it installed anymore and it's still there. I tried doing searches through all my php files for anything that would relate to it and I can't find it. I also did searches through these 306 pages of support and no one seems to have an answer. I did see in a different post that it's located in the index.template.php but not for me, I've tried many searches in there to find it.

Any ideas?

Thanks for any help
Title: Re: Ad Management mod
Post by: TheCodfather on April 06, 2011, 02:24:34 PM
when i parse the package for my smf version i get the file edits unfortunatly some of the edits , i cant find the code that i need to look for ?

has smf rc5 got different index.template.php to what the package parser is suggesting to edit ?
Title: Re: Ad Management mod
Post by: vbgamer45 on April 06, 2011, 02:34:18 PM
It depends on your index.template.php of yoru theme with SMF 2.0 it should be making fewer edits I think only one to the index.template.php
Title: Re: Ad Management mod
Post by: TheCodfather on April 06, 2011, 02:43:28 PM
so if i choose advanced change it to 2.0 i will have 1 edit only ?
Title: Re: Ad Management mod
Post by: TheCodfather on April 06, 2011, 02:44:27 PM
well when i tried on smf rc5 it had like 10 file edits and most of the edits i cannott find

1. Replace ./Themes/core/index.template.php Test successful
2. Add After ./Themes/core/index.template.php Test failed
3. Add After ./Themes/core/index.template.php Test successful
4. Add After ./Themes/core/index.template.php Test failed
5. Add Before ./Themes/core/index.template.php Test failed
Execute Modification ./Themes/core/BoardIndex.template.php Test failed
1. Add Before ./Themes/core/BoardIndex.template.php Test successful
2. Add After ./Themes/core/BoardIndex.template.php Test failed
Execute Modification ./Themes/core/Display.template.php Test failed
1. Add After ./Themes/core/Display.template.php Test successful
2. Replace ./Themes/core/Display.template.php Test successful
3. Replace ./Themes/core/Display.template.php Test failed
Execute Modification ./Themes/core/MessageIndex.template.php Test failed
1. Add After ./Themes/core/MessageIndex.template.php Test successful
2. Add After ./Themes/core/MessageIndex.template.php Test failed
Argentum2
Execute Modification ./Themes/argentum_smf20rc5/index.template.php Test failed
1. Replace ./Themes/argentum_smf20rc5/index.template.php Test failed
2. Add After ./Themes/argentum_smf20rc5/index.template.php Test failed
3. Add After ./Themes/argentum_smf20rc5/index.template.php Test failed
4. Add After ./Themes/argentum_smf20rc5/index.template.php Test failed
5. Add Before ./Themes/argentum_smf20rc5/index.template.php Test failed
Execute Modification ./Themes/argentum_smf20rc5/BoardIndex.template.php Test failed
1. Add Before ./Themes/argentum_smf20rc5/BoardIndex.template.php Test failed
2. Add After ./Themes/argentum_smf20rc5/BoardIndex.template.php Test failed
Execute Modification ./Themes/argentum_smf20rc5/Display.template.php Test failed
1. Add After ./Themes/argentum_smf20rc5/Display.template.php Test successful
2. Replace ./Themes/argentum_smf20rc5/Display.template.php Test successful
3. Replace ./Themes/argentum_smf20rc5/Display.template.php Test failed
Execute Modification ./Themes/argentum_smf20rc5/MessageIndex.template.php Test failed
1. Add After ./Themes/argentum_smf20rc5/MessageIndex.template.php Test failed
2. Add After ./Themes/argentum_smf20rc5/MessageIndex.template.php Test failed
Title: Re: Ad Management mod
Post by: vbgamer45 on April 06, 2011, 02:46:34 PM
10 files? Or 10 edits in index.template.php I think it should be down to one edit for index.template.php in 2.0
Title: Re: Ad Management mod
Post by: TheCodfather on April 06, 2011, 02:47:16 PM
look at above post

using

Ad Managment    2.3.6.3
Title: Re: Ad Management mod
Post by: vbgamer45 on April 06, 2011, 02:53:27 PM
Used the parser on http://custom.simplemachines.org/mods/index.php?mod=255
For the 2.0 version and see no edits for index.template.php
Title: Re: Ad Management mod
Post by: TheCodfather on April 06, 2011, 02:54:51 PM
well i just parsed it and loads came up ?

and im getting them install errors there is loads shame i wanted to use this mod. but carnt find the edits its asking me to make as i carnt find them
Title: Re: Ad Management mod
Post by: vbgamer45 on April 06, 2011, 02:56:00 PM
Are you selecting "ad_mod_v3.0_SMF_v2-0.zip"
Title: Re: Ad Management mod
Post by: TheCodfather on April 06, 2011, 02:57:11 PM
yes with smf rc5 as thats what im running
Title: Re: Ad Management mod
Post by: Kindred on April 06, 2011, 02:57:52 PM
he's trying to edit the CORE theme, not the default theme.

Core is, essentially a 1.1.x theme that has sort-of been updated to 2.0.    It's not a good 2.0 theme.... IMO, it should not be used with 2.0 because it is less web-compliant.
Title: Re: Ad Management mod
Post by: TheCodfather on April 06, 2011, 03:05:22 PM
there is also these errors

1. Execute Code install.php
* 2. Execute Modification ./index.php Test successful
* 3. Execute Modification ./Sources/Admin.php Test successful
* 4. Execute Modification ./Themes/default/index.template.php Test successful
* 5. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
* 6. Execute Modification ./Themes/default/Display.template.php Test successful
* 7. Execute Modification ./Themes/default/MessageIndex.template.php Test failed
1. Add After ./Themes/default/MessageIndex.template.php Test successful
2. Add After ./Themes/default/MessageIndex.template.php Test failed
* 8. Execute Modification ./Sources/ManagePermissions.php Test successful
9. Extract File ./Sources/Ads.php
10. Extract File ./Sources/LoadAds.php
11. Extract File ./Themes/default/Ads.template.php
12. Extract File ./Themes/default/languages/Ads.english.php
13. Extract File ./Themes/default/languages/Ads.english-utf8.php
Title: Re: Ad Management mod
Post by: TheCodfather on April 06, 2011, 03:05:53 PM
to many errors for me shame as i wanted this mod.
Title: Re: Ad Management mod
Post by: Kindred on April 06, 2011, 03:35:40 PM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Ad Management mod
Post by: TheCodfather on April 06, 2011, 04:56:20 PM
yes i checked your link dont want to install with so many errors, as i say i tried to find the edits but lots were missing or i could not find were i had to add before replace etc
Title: Re: Ad Management mod
Post by: Jimmy05 on April 07, 2011, 02:52:38 PM
QuoteDoes anyone know where to remove the "SMFAds for Free Forums" from the footer?

I don't have it installed anymore and it's still there. I tried doing searches through all my php files for anything that would relate to it and I can't find it. I also did searches through these 306 pages of support and no one seems to have an answer. I did see in a different post that it's located in the index.template.php but not for me, I've tried many searches in there to find it.

Anyone? I have nothing against this mod, but I flat out don't use it anymore and can't figure out why it's still there  :-\
Title: Re: Ad Management mod
Post by: vbgamer45 on April 07, 2011, 02:53:49 PM
Attach your QueryString.php
Title: Re: Ad Management mod
Post by: desibees on April 07, 2011, 04:08:48 PM
i wana remove it too, please post the solution?
Title: Re: Ad Management mod
Post by: vbgamer45 on April 07, 2011, 04:10:29 PM
You can only remove if you are not using the mod otherwise you need copyright removal one time purchase.
Title: Re: Ad Management mod
Post by: desibees on April 07, 2011, 04:34:05 PM
im not using the mod
Title: Re: Ad Management mod
Post by: Jimmy05 on April 07, 2011, 05:30:19 PM
Attaching the QueryString.php
Title: Re: Ad Management mod
Post by: vbgamer45 on April 07, 2011, 05:32:11 PM
Hmm don't see in that file will need to check when I get home.
Title: Re: Ad Management mod
Post by: desibees on April 07, 2011, 05:35:08 PM
k and what file do u want us to attach?
Title: Re: Ad Management mod
Post by: Jimmy05 on April 07, 2011, 05:38:25 PM
Quote from: vbgamer45 on April 07, 2011, 05:32:11 PM
Hmm don't see in that file will need to check when I get home.

Ok, thanks a lot!
Title: Re: Ad Management mod
Post by: Kindred on April 07, 2011, 07:49:30 PM
Quote from: desibees on April 07, 2011, 04:34:05 PM
im not using the mod


SO, desibees, are you saying that you uninstalled the mod but the copyright for the mod still remains?
(I actually am hesitant to believe you, based on your request to remove copyrights in other mod threads)
Title: Re: Ad Management mod
Post by: Arantor on April 07, 2011, 07:50:07 PM
Quote from: Kindred on April 07, 2011, 07:49:30 PM
SO, desibees, are you saying that you uninstalled the mod but the copyright for the mod still remains?
(I actually am hesitant to believe you, based on your request to remove copyrights in other mod threads)

I'm not, there are multiple threads about it in the 1.x Support board.
Title: Re: Ad Management mod
Post by: vbgamer45 on April 07, 2011, 07:55:52 PM
Quote from: Jimmy05 on April 07, 2011, 05:30:19 PM
Attaching the QueryString.php
For 2.0 it makes the edit in that file but I don't' see it in there.
Also it used to add to index.template.php but that is no longer case if you are using a new version of ad management mod.
Title: Re: Ad Management mod
Post by: desibees on April 07, 2011, 08:05:47 PM
I don't understand the reason to lie lol..
The reason you saw my other post about removing copyrights is because im trying to make my footer look cleaner.
and if you saw my topic and read it properly, i asked like 3 times if it is illegal to remove it.
Obviously I care... so I will not lie and remove it illegally. xD

Anyways, I got someone doing all the edits for me and he will remove that copyright for me, so i don't need to know the solution.

(http://img192.imageshack.us/img192/562/unledx.png)

^^ The reason i don't use this mod is because it won't let me place ads at certain places.
and it won't let me edit the settings for member groups separately.
Title: Re: Ad Management mod
Post by: Jimmy05 on April 08, 2011, 12:00:48 AM
Quote from: vbgamer45 on April 07, 2011, 07:55:52 PM
Quote from: Jimmy05 on April 07, 2011, 05:30:19 PM
Attaching the QueryString.php
For 2.0 it makes the edit in that file but I don't' see it in there.
Also it used to add to index.template.php but that is no longer case if you are using a new version of ad management mod.
Hmm... Where else should I look? My site uses strictly a custom theme that Bloc did for me. What would be the code to do a search for?
Title: Re: Ad Management mod
Post by: vbgamer45 on April 08, 2011, 12:15:45 AM
SMFADS i would try that
Title: Re: Ad Management mod
Post by: Jimmy05 on April 08, 2011, 02:47:01 AM
I do a search through my whole Community folder for that, uppercase, lowercase... nothing comes up. But yet, it's there in my forum
Title: Re: Ad Management mod
Post by: vbgamer45 on April 08, 2011, 11:00:10 AM
search smfads.com and you might not be in the correct forum install check that you are in the right path? I didn't find the copyright code in the Querystring file you attached either.
Title: Re: Ad Management mod
Post by: Jimmy05 on April 08, 2011, 03:29:42 PM
I found it, my php editor program is all messed up and wasn't finding things like it should. I really appreciate you giving me the time to help!

Love your mods btw!
Title: Re: Ad Management mod
Post by: vbgamer45 on April 08, 2011, 03:35:58 PM
Glad you were able  to get the issue resolved.
Title: Re: Ad Management mod
Post by: DanteOz on April 08, 2011, 09:41:07 PM
Pls i want to add a square ad right after a board title on board index, how do i do it? i'm using 2.0 rc4, pls i nid help. thnx
Title: Re: Ad Management mod
Post by: slider11111 on April 10, 2011, 11:46:08 PM
1.1.13 using ad mod. The flash banner works but is unclickable? I imputed the URL of the swf file and the url of the site and the code was generated in a flash banner code generator. Whats wrong with the code? Or is it the Mod? thanx


<center><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,5,0,175" width="600" height="70"><param name="movie" value="http://www.huntfishnw.com/primetime.swf" /><param name=FlashVars value="clickTAG=http%3A//www.primetime-outdoors.com/" /><param name="menu" value="false" /><param name="scale" value="exactfit" /><param name="AllowScriptAccess" value="always" /><embed src="http://www.huntfishnw.com/primetime.swf" FlashVars="clickTAG=http%3A//www.primetime-outdoors.com/" width="600" height="70" menu="false" scale="exactfit" AllowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></center>



--edit-- please use CODE tags.
Title: Re: Ad Management mod
Post by: desibees on April 11, 2011, 04:10:08 PM
Hey. Help out please!!!!
Im trying to put ads INSIDE the header, I see many people do it.. welll... how do you do it?
Title: Re: Ad Management mod
Post by: jeanineh on April 11, 2011, 07:55:57 PM
GOOGLE ADS SHOWING TWICE?

Ok, first off I did see another thread for this on a 'search entire site' but it was almost 3 years old and when I started to post to it it mentioned about starting a new thread so I tried that in the 1.1.13 support board but was told to come here since I added the mod?

My google ads show twice on the index page but can't get them to show up on the other pages? It mentioned in that thread something about checking/editing those files to see if some are there twice, but I'm not sure exactly where I go to do this? I looked at the files in the Package for the Ads but couldn't see where anything was added twice so is there another place to look? Like the Edit Theme - index.template.php, etc? Any help would be appreciated....Thanks and I have the 1.1.13 Hasan Theme board.
Title: Re: Ad Management mod
Post by: desibees on April 11, 2011, 08:39:00 PM
Hi Vbgamer!,
I deleted the ad management (for multiple reasons), but my copyright thingy "SMFAds for Free Forums" didn't go away. Could you help me remove it? Which file do you want me to attach?
Thnx a ton!
Title: Re: Ad Management mod
Post by: lionel.a on April 16, 2011, 02:48:42 AM
Hello everybody !

I had the same problem, but I succeed.
I tried to install it from the admin menu.
I often open modifications in a new tab, in order to get the possibility to see past pages.

When I got the error messages, I stopped. I went to the page http://custom.simplemachines.org/mods/index.php?mod=255 and on the right, I chose parsing for Manual Install Instructions for SMF 2.0 RC5

There, I modify by hand all suggestions except those which were in green at the installation test page.
After that, there were also some modifications in red (fail) which were not written on the manual install instruction page. I open the details by clicking on the "pen and paper icon" on the left of the description list. I correct it by hand, but only those in red, because those in green were going to be done by the installation programm.

When I am ready, I check again that nothing has changed by reloading the page (it is normal if some you have corrected are still in red). Then I click on the installation button.
Title: Re: Ad Management mod
Post by: smitch6 on April 17, 2011, 03:02:32 AM
please, please can someone help me un-install this

i have tried all the usual suggestions and it just won't go :~

i have learnt never click delete if you want to un-install something lol
Title: Re: Ad Management mod
Post by: petb on April 19, 2011, 05:39:21 PM
Hello,

i am using the latest Version for 2.0 RC5.

I place an add in one Board "right below under the Menue"
The Add containes only a little html table with two fields.
It was displayed and everything was fine.
But just when i placed an Topic in this Board, the Firfefox 4 does not show this Add anymore.

IE, Opera, and so on, still display the Add.
Firefox 3,X display this Add also.

If i delete the Topic, Firefox 4 will display the Add again until somene post a Topic.


And in the Past, Firefox 3 does not display Adds under Child Boards, but Opera and IE displayd the Adds under Childboards.
(As i described here http://www.simplemachines.org/community/index.php?topic=68632.msg2925109#msg2925109 )

So there are two Things:

a.) Older Problem, dont know if this was fixed ?
Firefox 3.x dont Display Adds under Child Boards

b.) Still Active Problem,
Firefox 4 dont Display Adds "right below the Menu" and on other Positions, when the Board was not Empty.

PetB
Title: Re: Ad Management mod
Post by: MarkoKg on April 19, 2011, 05:41:26 PM
Hello there.

I have a problem with baners after category, that doesnt work, nothing is showing and i have code entered in admin panel.

File attached.

Smf 2.0RC5
I have pretty urls mod it doesnt matter?
Title: Re: Ad Management mod
Post by: MoreBloodWine on April 24, 2011, 03:22:02 PM
Hey VB, was wondering if you could please do me a solid. I'm trying to install the SMF 2.0 (3.0.0) version of this mod on my site but it's failing on the BlackRain v2 theme that I'm using, and get this... it's even failing on the core theme for the exact same files as seen in the attached pic. Any way, I was wondering if you could please check out the BlackRain v2 theme and maybe make me a custom edited mod that you can attach here that I can then use on it (BlackRain v2). I can and do hand edits all the time, and sure, sometimes I mess em up but I'd like to be able to un-install this mod if needed without leaving code behind.

I tried to even look for the edits before but couldn't find I think it was one or two of em.

Thx !
Title: Re: Ad Management mod
Post by: MarkoKg on April 26, 2011, 05:19:27 AM
Hey, actually my banner between category is showing only to logged in members, but not for guests. I dont have an idea why that is.
Here is code in BoardIndex.template, that i belive is regarding this banner:
echo '<tbody><tr><td colspan="5">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>

I cant see why it is showing only to logged in members?
Title: Re: Ad Management mod
Post by: maihannijat on April 26, 2011, 05:23:33 AM
Almost done with installing this Ad Mod with Greenday theme but couldn't configured following code.

Couldn't insert this code in index.template.php

';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo '



I attached both boardindex.template.php and index.template.php  , please have a look If I done this correctly.

Many Thanks
Title: Re: Ad Management mod
Post by: NanoSector on April 27, 2011, 12:37:48 PM
Friendly support bump :)
Title: Re: Ad Management mod
Post by: fishntales on April 28, 2011, 08:33:47 AM
G'day folks I am running SMF 1.1.13 with UnRelatived theme by, Crip. I was using an older version of Ad management, I uninstalled the older version and installed the new one all went ok until I went to put up my ads and insteed of a single ad two ads came up at once. I thought some thing must have gone wrong with either the uninstall or install so I unstalled the mod again and installed it again. Guess what not I get three of the same ad come up. I also changed back to the standard theme and no change can someone please help I would like to get this mod working again.


Thanks Mossy
Title: Re: Ad Management mod
Post by: Kindred on April 28, 2011, 09:13:26 AM
each time you uninstalled, it sounds like it did not completely uninstall (you probably got some errors but told it to go ahead anyway)

At this point, there is no automatic fix.
You will have to manually go through all of the files affected by the mod (see the mod parse tool on the mod download page) and remove the duplicated and triplicated code.
Title: Re: Ad Management mod
Post by: kat on April 28, 2011, 09:21:35 AM
You might want to read this, to see how much phun that'll be...

http://www.simplemachines.org/community/index.php?topic=429293.msg3026612#msg3026612
Title: Re: Ad Management mod
Post by: fishntales on April 28, 2011, 10:02:58 AM
Thank you I shall do that thanks for your advice.


Mossy
Title: Re: Ad Management mod
Post by: aquascape on May 01, 2011, 02:55:35 AM
Just installed the ad management for my RC5 forum. I use photobucket to save a banner image. When people click how can I direct link to the url of the banner instead of link to photobucket album
Title: Re: Ad Management mod
Post by: NanoSector on May 01, 2011, 06:03:34 PM
AFAIK not possible with PhotoBucket.
Title: Re: Ad Management mod
Post by: sawz on May 02, 2011, 09:16:29 PM
Quote from: Yoshi2889 on May 01, 2011, 06:03:34 PM
AFAIK not possible with PhotoBucket.

(http://i97.photobucket.com/albums/l237/sawz/calendar.gif) (http://sawz.com)

really? the above image is from photobucket and is linked to my site.
Title: Re: Ad Management mod
Post by: Kindred on May 02, 2011, 09:50:52 PM
that's an image linked in a post... you want to use photobucket in an ad location?
Title: Re: Ad Management mod
Post by: sawz on May 02, 2011, 10:12:44 PM
Quote from: Kindred on May 02, 2011, 09:50:52 PM
that's an image linked in a post... you want to use photobucket in an ad location?

use html. whats the difference?

<a href="http://www.sawz.com/"><img src="http://i97.photobucket.com/albums/l237/sawz/calendar.gif"></a>
Title: Re: Ad Management mod
Post by: NanoSector on May 03, 2011, 04:27:27 AM
Quote from: sawz on May 02, 2011, 09:16:29 PM
Quote from: Yoshi2889 on May 01, 2011, 06:03:34 PM
AFAIK not possible with PhotoBucket.

(http://i97.photobucket.com/albums/l237/sawz/calendar.gif) (http://sawz.com)

really? the above image is from photobucket and is linked to my site.
I said "AFAIK".

But really, you don't use a **** service like that to upload images for ads...
Title: Re: Ad Management mod
Post by: sawz on May 03, 2011, 06:33:04 AM
Quote from: Yoshi2889 on May 03, 2011, 04:27:27 AM
Quote from: sawz on May 02, 2011, 09:16:29 PM
Quote from: Yoshi2889 on May 01, 2011, 06:03:34 PM
AFAIK not possible with PhotoBucket.

(http://i97.photobucket.com/albums/l237/sawz/calendar.gif) (http://sawz.com)

really? the above image is from photobucket and is linked to my site.
I said "AFAIK".

But really, you don't use a **** service like that to upload images for ads...


well now you know. and i've seen loads of users using photobucket or something similar to serve up their banners.
Title: Re: Ad Management mod
Post by: NanoSector on May 03, 2011, 07:03:37 AM
Quote from: sawz on May 03, 2011, 06:33:04 AM
and i've seen loads of users using photobucket or something similar to serve up their banners.
That's not an ad....
Title: Re: Ad Management mod
Post by: Kindred on May 03, 2011, 07:30:04 AM
my comment basically asked that same question....   photobucket is a good place to load a pic for posting in a thread on a site which you don't own.

However, if you own the site, why bother? you can dd the pic to your own site/server directly...   and photobucket will get upset if the pic is loaded on EVERY page load, like an advert is.
Title: Re: Ad Management mod
Post by: NanoSector on May 03, 2011, 07:57:25 AM
Quote from: Kindred on May 03, 2011, 07:30:04 AM
my comment basically asked that same question....   photobucket is a good place to load a pic for posting in a thread on a site which you don't own.

However, if you own the site, why bother? you can dd the pic to your own site/server directly...   and photobucket will get upset if the pic is loaded on EVERY page load, like an advert is.
^

And what if your picture is removed by them? Gone, your ad.
Title: Re: Ad Management mod
Post by: slider11111 on May 03, 2011, 11:03:21 AM
I went in the admin panel to update an Ad and it doesn't show up in edit? I tried refreshing and used a different browser but the same thing? The Ad is still on the Forum and works. Also the last Ad that does show in edit is cut off. It should say Rotating Banner but only says Rotating B and there is not a modify to click on? I attached a screen shot.
Title: Re: Ad Management mod
Post by: fishntales on May 04, 2011, 03:54:27 AM
Hi everybody I am having a problem with Admanagent301 for 1.1.13 with a crip theme called UnRelatived113. The mod works good except it does not show ads on the bottom or the left and right towers. The mod works on the standard theme but not on the new theme.

Mossy
Title: Re: Ad Management mod
Post by: sawz on May 04, 2011, 06:21:25 AM
Quote from: Yoshi2889 on May 03, 2011, 07:03:37 AM
Quote from: sawz on May 03, 2011, 06:33:04 AM
and i've seen loads of users using photobucket or something similar to serve up their banners.
That's not an ad....

ad banner, post in a forum, it doesn't matter. people still do it all the time.

and when their image disappears, they'll figure it out.

its pretty simple.
Title: Re: Ad Management mod
Post by: sawz on May 04, 2011, 06:22:47 AM
Quote from: fishntales on May 04, 2011, 03:54:27 AM
Hi everybody I am having a problem with Admanagent301 for 1.1.13 with a crip theme called UnRelatived113. The mod works good except it does not show ads on the bottom or the left and right towers. The mod works on the standard theme but not on the new theme.

Mossy

custom themes require additional editing. in that theme theres a file called index.template.php that will need your attention if you want those ad placements to show.
Title: Re: Ad Management mod
Post by: fishntales on May 04, 2011, 06:34:12 AM
Thank you I will have a look although I do not know much about code.



Mossy
Title: Re: Ad Management mod
Post by: Jesna on May 05, 2011, 01:29:56 AM
Great mod :)

How do I put the "Display ads on every page right below the menu" to show a bit further upwards? (see picture)

/Jakob
Title: Re: Ad Management mod
Post by: sawz on May 05, 2011, 06:12:32 AM
it will always be below the menu, you can raise it up by placing a line break or 2 after the code.  these are line breaks:

<br /><br />
Title: Re: Ad Management mod
Post by: slider11111 on May 05, 2011, 11:42:32 AM
Anyone?
Title: Re: Ad Management mod
Post by: Jesna on May 05, 2011, 01:41:07 PM
Hi saws

If you see my picture, the ads is under breadcrumbs and not under the menu. I want it to be where the red arrow is.

/Jakob
Title: Re: Ad Management mod
Post by: sawz on May 05, 2011, 03:02:53 PM
Quote from: Jesna on May 05, 2011, 01:41:07 PM
Hi saws

If you see my picture, the ads is under breadcrumbs and not under the menu. I want it to be where the red arrow is.

/Jakob

i hadn't noticed that. when the mod installed it should of been beneath the menu. is that a custom theme?
Title: Re: Ad Management mod
Post by: Jesna on May 06, 2011, 01:01:37 AM
Nope its the default version

Can I find the code somewhere in a file and then just put it just under the menu?
Title: Re: Ad Management mod
Post by: sawz on May 06, 2011, 04:12:46 PM
Quote from: Jesna on May 06, 2011, 01:01:37 AM
Nope its the default version

Can I find the code somewhere in a file and then just put it just under the menu?

according to the install docs, the ad code for that area is supposed to go after template_menu();

Quote from: slider11111 on May 05, 2011, 11:42:32 AM
Anyone?

i could suggest just removing that entry from the database.
Title: Re: Ad Management mod
Post by: Jesna on May 07, 2011, 12:28:11 AM
QuoteCan I find the code somewhere in a file and then just put it just under the menu?

Is that in the display.template?

/Jakob
Title: Re: Ad Management mod
Post by: fishntales on May 07, 2011, 04:18:28 AM
G'day Guy's I am using 1.1.13 with a Crip theme (UnRelatived113). I am having a problem with admanagement with the ads not showing on the bottom of the page or the left or right tower but they work everywhere else. I know nothing about code but I have installed and uninstalled many times and it still does not work. It does work properly on the standard smf theme so I am guessing it is the theme. Can anyone help me with this problem please.


Mossy
Title: Re: Ad Management mod
Post by: luvhandle on May 09, 2011, 11:15:37 AM
I notice the Ads don't always show up. Another disturbing find is that the area where the ads are supposed to show isn't even there, I would there would be an empty space and there isn't. It seems as if this Mod App doesn't detect an AdSense ad coming through it won't function.
Title: Re: Ad Management mod
Post by: luuuciano on May 11, 2011, 03:38:43 PM
mmmmm, wich is the code that shows Tower Right ads?

Because I have it dupes (I add 1 html code, and then it shows twice...)

I have tried looking for tower, or right (I remember comments like that in previous versions)
Title: Re: Ad Management mod
Post by: InfoStrides on May 13, 2011, 07:22:38 PM
Hello, I need help here. The option below when selected supposed to show under menu but it is showing under link tree. You can see it on http://www.theinfostrides.com (http://www.theinfostrides.com)

QuoteDisplay ads on every page right below the menu

What can I do to correct the code?

Thank you.
Title: Re: Ad Management mod
Post by: briggz5d on May 14, 2011, 06:18:09 AM
I really enjoyed this mode when i was using smf 1.1.13  recently upgraded to smf 2.0 RC5 and now PISSED at the amount of footer links i have. Ad mod did not add a footer Link back in version 1.1.13
Now i got

SMF forum default copyright footer,
My theme copyright footer,
Ad mod Footer
simple portal copyright footer
my own personal copyright

Who would take a website with 5 / 6 footer links serious? like WTF c'mon guys find an alternative to make users Link back to you, that footer crowding ain't cool, and got me looking for ad management alternatives.
- End of Rant -
Title: Re: Ad Management mod
Post by: slider11111 on May 15, 2011, 08:26:07 PM
Sawz What do you mean?  i could suggest just removing that entry from the database.
Title: Re: Ad Management mod
Post by: fishntales on May 17, 2011, 03:11:20 AM
I have tried taking out the duplicates  on both left and right towers etc and it still does not work. I have gone back to the original theme (core theme) and the ad management works fine but not with the Crip theme (UnRelatived113). If you need to get into my forum to look around please let me know and I will send you what you need to get in.


Mossy
Title: Re: Ad Management mod
Post by: bucharest on May 20, 2011, 02:13:32 AM
What code should be added to the google ad script so the ads show in the forum?
Title: Re: Ad Management mod
Post by: mischievousx3 on May 21, 2011, 08:11:17 PM
I've recently installed this mod, but I'm getting this error on my forum now:

Table 'amnpg_forum.forumads' doesn't exist
File: /home/allmerknoplay/AllMerk-NoPlay.com/forum/Sources/LoadAds.php
Line: 51

and someone said it should automatically add the table to the database..please help. Thank you.
Title: Re: Ad Management mod
Post by: petb on May 26, 2011, 04:33:27 PM
Quote from: petb on April 19, 2011, 05:39:21 PM
Hello,

i am using the latest Version for 2.0 RC5.

I place an add in one Board "right below under the Menue"
The Add containes only a little html table with two fields.
It was displayed and everything was fine.
But just when i placed an Topic in this Board, the Firfefox 4 does not show this Add anymore.

IE, Opera, and so on, still display the Add.
Firefox 3,X display this Add also.

If i delete the Topic, Firefox 4 will display the Add again until somene post a Topic.


And in the Past, Firefox 3 does not display Adds under Child Boards, but Opera and IE displayd the Adds under Childboards.
(As i described here http://www.simplemachines.org/community/index.php?topic=68632.msg2925109#msg2925109 )

So there are two Things:

a.) Older Problem, dont know if this was fixed ?
Firefox 3.x dont Display Adds under Child Boards

b.) Still Active Problem,
Firefox 4 dont Display Adds "right below the Menu" and on other Positions, when the Board was not Empty.

PetB

The Problem still occurs on.

Using Version. 3.0.1 in RC5
Title: Re: Ad Management mod
Post by: vbgamer45 on May 27, 2011, 10:23:26 AM
Quote from: mischievousx3 on May 21, 2011, 08:11:17 PM
I've recently installed this mod, but I'm getting this error on my forum now:

Table 'amnpg_forum.forumads' doesn't exist
File: /home/allmerknoplay/AllMerk-NoPlay.com/forum/Sources/LoadAds.php
Line: 51

and someone said it should automatically add the table to the database..please help. Thank you.
Copy the install php file to root directory of your board and run via the browser to install the tables.
Title: Re: Ad Management mod
Post by: coolfx350 on May 31, 2011, 08:14:51 AM
I have a question:

I put a 160 X 600 ad unit on the "Display ads on every page as a tower on the right side".

But now people are complaining that the ads loads only after everything else (the whole page_ finished loading so it kind of make the page shift to the left side, which is really annoying.



Title: Re: Ad Management mod
Post by: slider11111 on June 06, 2011, 11:53:37 PM
I also cannot add an Ad now. I am able to start a new Ad fill it out and when I click on add it disappears?
Title: Re: Ad Management mod
Post by: albertramsbottom on June 09, 2011, 04:41:11 AM
Is this compatile with 1.1.13

As when i go to the instructions it says it is not.  Which instructions shall I follow

Many thanks
Title: Re: Ad Management mod
Post by: luuuciano on June 09, 2011, 12:13:44 PM
well... I had tower right code dupes (when I was just adding 1 time in the admin)... now I realize that it is adding the same add below and up linktree... no idea why... and I have deactivated it! really odd
:(

will uninstall and harcode a bit, ejejej
Title: Re: Ad Management mod
Post by: vbgamer45 on June 11, 2011, 07:47:38 PM
Updated for SMF 2.0
Title: Re: Ad Management mod
Post by: AllanD on June 14, 2011, 01:35:30 PM
Would anyone happen to have a code whether php or html to make the ads used in this mod random.
Title: Re: Ad Management mod
Post by: Kindred on June 14, 2011, 01:49:04 PM
http://php.net/manual/en/function.array-rand.php

place each advert as a single object in the array.


<?php
$input 
= array(
"Advert1_code"
"Advert2_code"
"Advert3_code"
);
$rand_keys array_rand($input1);
echo 
$input[$rand_keys[0]] . "\n";
?>


Title: Re: Ad Management mod
Post by: AllanD on June 14, 2011, 02:01:17 PM
ok but I'm not good at coding so where would the image and link go and how could i center this.
Title: Re: Ad Management mod
Post by: Kindred on June 14, 2011, 02:04:46 PM
they would go into the section I listed as Advert1_code, Advert2_code, etc....
Title: Re: Ad Management mod
Post by: AllanD on June 14, 2011, 02:10:08 PM
I guess what i was trying to find out is what code would i use in those sections.
Title: Re: Ad Management mod
Post by: Kindred on June 14, 2011, 02:14:41 PM
whatever your advert code is....   I don't know what you are using for your advertisement code...
Title: Re: Ad Management mod
Post by: carbonize on June 14, 2011, 02:29:35 PM
Display ads on every page right below the menu is displaying them below the breadcrumbs as well now I have updated to the final of 2.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 14, 2011, 02:35:31 PM
That is the intended behavior now with 2.0 since that is the only to show them without file edits.
Title: Re: Ad Management mod
Post by: carbonize on June 14, 2011, 02:38:05 PM
That's a pain. Doesn't look as good that way.
Title: Re: Ad Management mod
Post by: paramudduck on June 16, 2011, 12:35:27 AM
OK I'm an idiot. I updated my forum to 2.0 from 2.0 RC5. The mod was working great on RC5 using the Concrete theme. After the update no ad manager showing and no ads.

The mod list shows Ad manager as installed but when I try to uninstall it I get errors for every step under the default list.

Checked using Curve and still no Ad manager showing.

Any help phrased in a manner understandable by an old fart will be greatly appreciated. Others will be appreciated as well but may not be understood.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 16, 2011, 12:43:35 AM
Uninstall it on 2.0 even if it fails. Then goto mod site and redownload ad management for 2.0 and install it.
Title: Re: Ad Management mod
Post by: paramudduck on June 16, 2011, 12:59:29 AM
Thanks! The control center is showing now. Now to wait and see if Googles ads pop up in a bit.
Title: Re: Ad Management mod
Post by: actgym on June 16, 2011, 01:35:11 AM
Hi Everyone
Im having problems with Ad Management and the Lagusta theme on SMF2.0.
I have installed the latest version of Ad management

I was able to add an Ad in the bottom of my forum with no problems but I am having problems adding ads to the top.
I have added simple html that will centre the image

<body bgcolor="black">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center" valign="middle"><img src="http://www.actgymscene.com.au/smf/Themes/lagusta_20rc5/images/upload/bannertest.jpg" width="50%" height="50%" /></td>
  </tr>
</table>

and ticked "Display ads on every page right below the menu" and "Display ads on every page on the top of the page"

But it does not appear at the top for any of these 2 places

Like I said, same HTML but by ticking "Display ads on the bottom of the page" works fine.


Any hints or coding changes I need to make?

UPDATE:
Dont worry its my fault..not too sure what i did but its all working fine now!?!?!? sorry for the post
I will make another post about positioning of ads soon

Title: Re: Ad Management mod
Post by: paramudduck on June 16, 2011, 02:13:45 AM
Will the newest version of the mod work on a RC3 forum?

Edit tried it and got this:

7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test failed
      1.    Add After    ./Themes/default/MessageIndex.template.php    Test successful
      2.    Replace    ./Themes/default/MessageIndex.template.php    Test failed

This is using the Curve theme. Different forum from the question a few posts above.
Title: Re: Ad Management mod
Post by: Lolafish on June 18, 2011, 02:58:46 PM
Last night tried to install Ad Managment 3.0.1  on my newly upgraded to 2.0 Gold forum.  Here's what happened:

1. Execute Code install.php 
2. Execute Modification ./index.php Test successful    
1. Add After ./index.php Test successful    
2. Add After ./index.php Test successful    
3. Add After ./index.php Test successful  
3. Execute Modification ./Sources/Admin.php Test successful    
1. Add After ./Sources/Admin.php Test successful  
2. Add After ./Sources/Admin.php Test successful  
4. Execute Modification ./Sources/QueryString.php Test successful  
1. Replace ./Sources/QueryString.php Test successful  
5. Execute Modification ./Themes/default/BoardIndex.template.php Test successful    
1. Add Before ./Themes/default/BoardIndex.template.php Test successful    
2. Add After ./Themes/default/BoardIndex.template.php Test successful  
6. Execute Modification ./Themes/default/Display.template.php Test successful    
1. Add After ./Themes/default/Display.template.php Test successful    
2. Replace ./Themes/default/Display.template.php Test successful  
3. Replace ./Themes/default/Display.template.php Test successful  
7. Execute Modification ./Themes/default/MessageIndex.template.php Test successful    
1. Add After ./Themes/default/MessageIndex.template.php Test successful    
2. Replace ./Themes/default/MessageIndex.template.php Test successful  
8. Execute Modification ./Sources/ManagePermissions.php Test successful  
1. Add After ./Sources/ManagePermissions.php Test successful  
9. Extract File ./Sources/Ads.php 
10. Extract File ./Sources/LoadAds.php 
11. Extract File ./Themes/default/Ads.template.php 
12. Extract File ./Themes/default/languages/Ads.english.php 
13. Extract File ./Themes/default/languages/Ads.english-utf8.php

Install in Other Themes

Core Theme 

   Execute Modification ./Themes/core/BoardIndex.template.php Test failed     
1. Add Before ./Themes/core/BoardIndex.template.php Test successful  
2. Add After ./Themes/core/BoardIndex.template.php Test failed   
   Execute Modification ./Themes/core/Display.template.php Test failed     
1. Add After ./Themes/core/Display.template.php Test successful    
2. Replace ./Themes/core/Display.template.php Test successful    
3. Replace ./Themes/core/Display.template.php Test failed   
   Execute Modification ./Themes/core/MessageIndex.template.php Test failed     
1. Add After ./Themes/core/MessageIndex.template.php Test successful    
2. Replace ./Themes/core/MessageIndex.template.php Test failed   

Urban  (my theme)

Execute Modification ./Themes/urban_20/BoardIndex.template.php Test failed     
1. Add Before ./Themes/urban_20/BoardIndex.template.php Test successful   
2. Add After ./Themes/urban_20/BoardIndex.template.php Test failed   
   Execute Modification ./Themes/urban_20/MessageIndex.template.php Test successful  
1. Add After ./Themes/urban_20/MessageIndex.template.php Test successful  
2. Replace ./Themes/urban_20/MessageIndex.template.php Test successful  


Do I have to do some custom edits or something? Is it because of my theme?
Title: Re: Ad Management mod
Post by: vbgamer45 on June 18, 2011, 10:08:44 PM
You will need to do a couple custom edits to your boardindex.template.php for your theme but otherwise you can proceed with the install.
Title: Re: Ad Management mod
Post by: PLAYBOY on June 19, 2011, 01:36:30 PM
I just upgraded 1.x to 2.0 and it didint install on my new 2.0 It says its not compatible with this version.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 19, 2011, 06:22:36 PM
Redownload ad management make sure you grab 2.0 version from mod site.
Title: Re: Ad Management mod
Post by: Bob Mueller on June 19, 2011, 06:27:22 PM
Quote from: vbgamer45 on June 18, 2011, 10:08:44 PM
You will need to do a couple custom edits to your boardindex.template.php for your theme but otherwise you can proceed with the install.
I had the same errors, using Core. Should we let all the edits that passed be done automatically? Then we'll just have to make manually the edits that failed?

Thanks,
Title: Re: Ad Management mod
Post by: vbgamer45 on June 19, 2011, 06:49:10 PM
Yes that's what I would do.
Title: Re: Ad Management mod
Post by: Bob Mueller on June 19, 2011, 06:50:49 PM
Thanks - I appreciate your work.
Title: Re: Ad Management mod
Post by: Bob Mueller on June 19, 2011, 07:39:12 PM
Rats.

Tried to install this and make the manual edits, but was unable to find the indicated code for ./Themes/core/BoardIndex.template.php. I couldn't find "tbody class="divider" anywhere in the file. I haven't made any other manual edits to the file, but I wonder if any of my other mods have?

Currently running these mods:
1.    Ad Managment    3.0.1    
2.    Simple Twitter    1.0    
3.    SimplePortal    2.3.3    
4.    RSS Feed Poster    3.0.2a    
5.    6 Custom buttons / tabs with Sub Menus (4)    0.5    
6.    Welcome Topic Mod    2.1    
7.    Pretty URLs    1.0RC5.1
8.    Google Analytics Code    1.4
9.    Stop Spammer    2.3.9

I was also getting several parse errors, but I assume they were due to the edits I didn't make.

QuoteTop ad /forum/index.php:: Parse error: syntax error, unexpected '<' in /home/raven/public_html/mwf/forum/Sources/Load.php(2170) : eval()'d code(598) : eval()'d code on line 1

Ad after last post: Parse error: syntax error, unexpected '<' in /home/raven/public_html/mwf/forum/Sources/Load.php(2170) : eval()'d code(810) : eval()'d code on line 1

Bottom ad on /forum/index.php:
Parse error: syntax error, unexpected '<' in /home/raven/public_html/mwf/forum/Sources/Load.php(2170) : eval()'d code(641) : eval()'d code on line 1

Suggestions?
Title: Re: Ad Management mod
Post by: actgym on June 20, 2011, 02:12:23 AM
Quote from: carbonize on June 14, 2011, 02:29:35 PM
Display ads on every page right below the menu is displaying them below the breadcrumbs as well now I have updated to the final of 2.

I have this exact same problem now. Is there a way we can change the placement of this ad location?
Title: Re: Ad Management mod
Post by: PLAYBOY on June 20, 2011, 05:28:24 AM
Quote from: vbgamer45 on June 19, 2011, 06:22:36 PM
Redownload ad management make sure you grab 2.0 version from mod site.

You r right. Its good now. Thx.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 20, 2011, 02:11:43 PM
Glad you got it working
Title: Re: Ad Management mod
Post by: PLAYBOY on June 22, 2011, 01:05:50 PM
This mod doesnt work on mineral 2.0 theme. I have done the manual edits but it just doesnt show any ads at all.
What can i do?
Title: Re: Ad Management mod
Post by: vbgamer45 on June 22, 2011, 01:15:10 PM
Recheck edits that is the main thing that I would do.
Title: Re: Ad Management mod
Post by: RoamPT on June 22, 2011, 10:57:18 PM
I get a few errors when im trying to install this MOD:

2.    Add After    ./Themes/core/BoardIndex.template.php    Test failed
3.    Replace    ./Themes/core/Display.template.php    Test failed
2.    Replace    ./Themes/core/MessageIndex.template.php    Test failed
2.    Add After    ./Themes/newbalance_20rc5b/BoardIndex.template.php    Test failed

The mods i'm using are:

1.    Users Online Today    1.6.0    [ Uninstall ] [ List Files ] [ Delete ]
2.    Gamer IDs    1.1    [ Uninstall ] [ List Files ] [ Delete ]
3.    SA Facebook    2.0 RC Rev21    [ Uninstall ] [ List Files ] [ Delete ]
4.    SimplePortal    2.3.3    [ Uninstall ] [ List Files ] [ Delete ]
5.    Ad Managment    3.0.1    [ Install Mod ] [ List Files ] [ Delete ]
6.    Registered Links    3.0    [ Uninstall ] [ List Files ] [ Delete ]
7.    More Spiders    1.2    [ Uninstall ] [ List Files ] [ Delete ]

What do u think it is?
Title: Re: Ad Management mod
Post by: slider11111 on June 23, 2011, 10:25:24 AM
Where would I find the folder that has my ad codes in it? I cannot access the codes through the admin panel because some ads don't show up there?
Title: Re: Ad Management mod
Post by: Kindred on June 23, 2011, 10:41:47 AM
as far as I know, the ads are stored in the database, not as files.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 23, 2011, 01:12:57 PM
Yes stored in databases.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on June 23, 2011, 01:15:35 PM
Thanks for this, its working great.

I would like to know if there is any way to use SSI on my website to load specific ads that are stored in the database. I would like this so the reports area will log the hits for ads on my page also.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 23, 2011, 01:16:54 PM
We do not have any SSI code for ad management yet.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on June 23, 2011, 01:18:57 PM
Yet...

Plans for adding it then? :)

Is there any way I can use an include or something similar to load a specific ad from another outside of smf page?
Title: Re: Ad Management mod
Post by: vbgamer45 on June 23, 2011, 01:19:46 PM
No idea I am so backlogged with projects I wouldn't count on it.
Title: Re: Ad Management mod
Post by: RoamPT on June 23, 2011, 06:49:55 PM
Quote from: RoamPT on June 22, 2011, 10:57:18 PM
I get a few errors when im trying to install this MOD:

2.    Add After    ./Themes/core/BoardIndex.template.php    Test failed
3.    Replace    ./Themes/core/Display.template.php    Test failed
2.    Replace    ./Themes/core/MessageIndex.template.php    Test failed
2.    Add After    ./Themes/newbalance_20rc5b/BoardIndex.template.php    Test failed

The mods i'm using are:

1.    Users Online Today    1.6.0    [ Uninstall ] [ List Files ] [ Delete ]
2.    Gamer IDs    1.1    [ Uninstall ] [ List Files ] [ Delete ]
3.    SA Facebook    2.0 RC Rev21    [ Uninstall ] [ List Files ] [ Delete ]
4.    SimplePortal    2.3.3    [ Uninstall ] [ List Files ] [ Delete ]
5.    Ad Managment    3.0.1    [ Install Mod ] [ List Files ] [ Delete ]
6.    Registered Links    3.0    [ Uninstall ] [ List Files ] [ Delete ]
7.    More Spiders    1.2    [ Uninstall ] [ List Files ] [ Delete ]

What do u think it is?

Can someone tell me something about this?
Title: Re: Ad Management mod
Post by: Kindred on June 23, 2011, 08:12:49 PM
read the wiki.../.
Title: Re: Ad Management mod
Post by: RoamPT on June 24, 2011, 12:45:16 AM
Which wiki buddy? Could you link me?
Title: Re: Ad Management mod
Post by: Illori on June 24, 2011, 05:34:31 AM
http://wiki.simplemachines.org/
Title: Re: Ad Management mod
Post by: Kindred on June 24, 2011, 07:44:03 AM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Ad Management mod
Post by: PLAYBOY on June 24, 2011, 01:27:58 PM
Quote from: vbgamer45 on June 22, 2011, 01:15:10 PM
Recheck edits that is the main thing that I would do.

Do you mean i should do manual edits to all the files in my theme?
I editted only the errors it gave during installation.

What do you think i should edit exactly? Because it doesnt show any ads except one banner on boards page.
Title: Re: Ad Management mod
Post by: quebo on June 25, 2011, 12:43:51 PM
is there a way to propose a new feature ?
I'd like to see the possibilty to check which usergroups can see the ads in which boards ... thinking about guests which i'd like to show more ads ...
Thx. For now i'll need to do it manually in the code.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 26, 2011, 12:19:50 AM
I have that in Ad Seller Pro yeah i generally use the is_guest mod statement to show more ads to guests then members.
Title: Re: Ad Management mod
Post by: PLAYBOY on June 26, 2011, 01:36:35 AM
Can anybody tell me how can i make this mod work in Mineral Theme?
It just doesnt work at all and the theme writer told me to tell the mod writer.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 26, 2011, 04:36:08 PM
What files does it fail on? And SMF version
Title: Re: Ad Management mod
Post by: PLAYBOY on June 26, 2011, 05:30:01 PM
Quote from: vbgamer45 on June 26, 2011, 04:36:08 PM
What files does it fail on? And SMF version

During the installation, only the MessageIndex.template.php
but it doesnt show any ads (home page, or anything except one banner on top of boards page)

I dont understand how come it doesnt fail on index.template.php and home page php file but it still doesnt show the ads.

smf 2.0

Title: Re: Ad Management mod
Post by: vbgamer45 on June 26, 2011, 08:08:51 PM
What kind of ads do you have setup? Do you have them enabled in what locations?
Title: Re: Ad Management mod
Post by: PLAYBOY on June 26, 2011, 08:18:53 PM
I actually just took care of it and found out that i should click on the checkbox for my theme when i INSTALL A MOD :)
Problem solved :)
Title: Re: Ad Management mod
Post by: vbgamer45 on June 26, 2011, 08:21:25 PM
Glad you got it working!
Title: Re: Ad Management mod
Post by: Richardgm on June 26, 2011, 08:49:40 PM
When I set ads to display at the bottom of the page, it "breaks" the layout like this:

Any idea why? It happens in IE 8, and Safari.
Title: Re: Ad Management mod
Post by: ~Speed on June 27, 2011, 11:14:45 AM
Hello :)

just upgraded to SMF 2.0 and installed your Ad management mod 3.0.1.
Template default.

The needed link for the mod is not showing in Configuration; I also checked elsewhere, to no avail.
I must be missing something obvious.

Can anyone help, please?

tnx
s
Title: Re: Ad Management mod
Post by: vbgamer45 on June 27, 2011, 01:07:07 PM
Quote from: sureshot007 on June 27, 2011, 01:05:02 PM
I just installed SMF and Ad Management 3.0.1.   Everything works except users with Chrome - when they try to click the login button, it automatically goes to the link that is associated with the ad that is currently showing.  Great for sponsors, not so good for users trying to use my board.
Will check it out.
Title: Re: Ad Management mod
Post by: sureshot007 on June 27, 2011, 01:09:01 PM
Quote from: vbgamer45 on June 27, 2011, 01:07:07 PM
Quote from: sureshot007 on June 27, 2011, 01:05:02 PM
I just installed SMF and Ad Management 3.0.1.   Everything works except users with Chrome - when they try to click the login button, it automatically goes to the link that is associated with the ad that is currently showing.  Great for sponsors, not so good for users trying to use my board.
Will check it out.

I just deleted my post in the time you took to reply.  I found my error (I had been staring at for a week).  I forgot to close the link tag in the html, but for some reason all the other browsers ignored it.  Chrome decided to turn the rest of the page into one giant link though.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 27, 2011, 07:19:56 PM
Glad you got it figured out doubled checked the code in case thanks though for the update.
Title: Re: Ad Management mod
Post by: ~Speed on June 28, 2011, 02:49:38 AM
Quote from: vbgamer45 on June 27, 2011, 07:19:56 PM
Glad you got it figured out doubled checked the code in case thanks though for the update.

vbgamer45, can you share you opinion on this, please:

just upgraded to SMF 2.0 and installed your Ad management mod 3.0.1.
Template default.

The needed link for the mod is not showing in Configuration; I also checked elsewhere, to no avail.
I must be missing something obvious.

tnx
s
Title: Re: Ad Management mod
Post by: vbgamer45 on June 28, 2011, 01:02:56 PM
Copy the text in themes/default/languages/modifications.english.php  to themes/yourtheme/languages/modifications.english.php

Then clear your cache in SMF 2.0 forum maintenance.
Title: Re: Ad Management mod
Post by: ~Speed on June 29, 2011, 12:39:30 PM
Quote from: vbgamer45 on June 28, 2011, 01:02:56 PM
Copy the text in themes/default/languages/modifications.english.php  to themes/yourtheme/languages/modifications.english.php

Then clear your cache in SMF 2.0 forum maintenance.

Thank you for your reply.

Did what you suggested, the problem persists.

In any case, the modificstions.english.php is empty (apart from <?php  // Version: 2.0; Modifications ?>) and the theme used is the default one.

Some additional detail, maybe it will help:
I installed the Paypaldonations mod as well, it doesnt show anywhere either.

What the hack is wrong, I wonder.
;(

s.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 29, 2011, 12:45:22 PM
Yes you did to copy the text modificstions.english.php  should not be empty
Title: Re: Ad Management mod
Post by: ~Speed on June 29, 2011, 02:51:24 PM
Quote from: vbgamer45 on June 29, 2011, 12:45:22 PM
modificstions.english.php  should not be empty

You don't say.
:)

Oh well, thank you for your extensive help, sir.

s.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on June 29, 2011, 09:44:00 PM
Thanks for the mod, I just discovered that guests are not seeing any ads, at all *figures out why impressions were less than page views*


I am using SMF 2.0 latest, the theme is called "The Killing".

Any Ideas?
Title: Re: Ad Management mod
Post by: vbgamer45 on June 30, 2011, 09:03:26 AM
Admin -> Permissions modify each group and give them Enable Ads permission.
Title: Re: Ad Management mod
Post by: ɔɔɔɔɔɔuɥoɾ on June 30, 2011, 12:13:08 PM
I should have checked, lol.
I don't remember this mod ever using the permission area, its been a long time...

Thanks.
Title: Re: Ad Management mod
Post by: Farmacija on June 30, 2011, 05:50:54 PM
I got problems with view pages in Chrome (see attach for screenshot).

It looks like right ad panel floating and it should stay fixed on right.

In other browser everything is ok, i presume that problem is in this part of code

<table><tr><td valign="top"><a href="http://murad.rs"><img src="http://www.farmaceuti.com/img/murad4.jpg" alt="murad akne"></a><center><p><font size="3">Zelite <blink>istu</blink> ovakvu <a href="mailto:xxx"><u><b>reklamu?</b></u></a></font></p></center></td>


<td width="100%" valign="top"><table><tr><td width="100%" valign="top">
<div style="float: right; margin-right: 0.5em; margin-top: -1.5em;">


I make space where previous table tag isn't closed as it should be so after </td> i got <td width ...><table>...
Title: Re: Ad Management mod
Post by: Kindred on June 30, 2011, 05:59:08 PM
I do not believe that it is valid markup to place a div within a table/td... especially not a div with the float parameter
Title: Re: Ad Management mod
Post by: Farmacija on July 01, 2011, 06:12:50 AM
I just add this in ad management through admin panel
<a href="http://murad.rs"><img src="http://www.farmaceuti.com/img/murad4.jpg" alt="murad akne"></a><center><p><font size="3">Zelite <blink>istu</blink> ovakvu <a href="mailto:xxx"><u><b>reklamu?</b></u></a></font></p></center>
Title: Re: Ad Management mod
Post by: slider11111 on July 02, 2011, 10:27:09 AM
I just installed RC5 2.0 on my Forum. I downloaded Ad Management 2.01 v 2 and up loaded it to my forum. I am not familiar with RC5 and this is the first Mod I have tried to install. On the top box item 2-8 show Test Successful. How ever in the bottom box I have numerous Test Fails. See attachment. I have tried downloading the ad management zip file and uploading it twice with the same results? Is it OK to install like it is? Thanx for any help
Title: Re: Ad Management mod
Post by: Robert. on July 02, 2011, 10:28:56 AM
This mod might not be able to work on core. Should not be any problem as long as you don't use Core. ;)
Title: Re: Ad Management mod
Post by: slider11111 on July 02, 2011, 10:52:47 AM
I should have added I use the default theme. So I am OK to install as is?
Title: Re: Ad Management mod
Post by: vbgamer45 on July 02, 2011, 10:57:14 AM
Yes you are fine.
Title: Re: Ad Management mod
Post by: slider11111 on July 02, 2011, 11:07:50 AM
Thanks  8)
Title: Re: Ad Management mod
Post by: slider11111 on July 02, 2011, 11:44:27 AM
I upgraded my forum from 1.14 to RC5 2.0 I had this same problem with 1.14. After I installed the Mod my old ads were listed. My rotating Banner works but the Modify radio button is missing (see attachment) and no way to access it? My ad in the Welcome area does not display.  It works everywhere else. It always worked in the Welcome area before? And the Flash Banner popped up for a minute and now does not display at all? And it is not in the edit list. I added a new Primetime Ad but it won't show up anywhere on the Forum. One thing I just notice is a Modify radio button is in line with the name in the edit but does not work. It must be my missing rotation banner button?
Title: Re: Ad Management mod
Post by: SD-X on July 04, 2011, 12:00:19 PM
Just a note, the 3.0.1 version for SMF 2.x on the Download page says the file name is only 3.0, whereas the SMF 1.1.x version states 3.0.1. I'd recommend fixing that to prevent confusion as the SMF 2.x version is actually 3.0.1 despite the misnumbered file name. ;)
Title: Re: Ad Management mod
Post by: Farmacija on July 06, 2011, 04:14:12 PM
vbgamer, do you have suggestion for solution for this problem with div float right in Chrome?
Title: Re: Ad Management mod
Post by: vbgamer45 on July 06, 2011, 04:15:44 PM
What's the issue
Title: Re: Ad Management mod
Post by: Farmacija on July 06, 2011, 05:09:44 PM
11th post above.

Right div is floating through forum and decrease size of it, including posts. There is problem just with Chrome, with Firefox and IE everything is fine.
Title: Re: Ad Management mod
Post by: Kindred on July 06, 2011, 05:13:50 PM
Don't use chrome?
Title: Re: Ad Management mod
Post by: SD-X on July 06, 2011, 05:14:34 PM
Quote from: Kindred on July 06, 2011, 05:13:50 PM
Don't use chrome?
That's a horrible answer. Seriously, you should know better... :P
Title: Re: Ad Management mod
Post by: Kindred on July 06, 2011, 05:58:14 PM
it's a perfectly good answer...   chrome is ALMOST as bad as IE... FF is the only browser. :P
Title: Re: Ad Management mod
Post by: SD-X on July 06, 2011, 06:01:53 PM
Quote from: Kindred on July 06, 2011, 05:58:14 PM
it's a perfectly good answer...   chrome is ALMOST as bad as IE... FF is the only browser. :P
Your browser opinion is not the browser opinion of every user on the planet.
Title: Re: Ad Management mod
Post by: Kindred on July 06, 2011, 06:10:13 PM
lol, but it should be.  O:)
Title: Re: Ad Management mod
Post by: tabletsdroid on July 07, 2011, 10:49:04 AM
I have Uninstalled and deleted Ad Management mod 3.0 - Unfortunately it did not do a clean uninstall correctly, it has left some little gremlins behind in the form of a link at the bottom of my forum 'SMFAds for Free Forums'

I would very much like to remove this link at its sucking the seo juices out of my site....arrrrgh I will leave you with this quote from Bram stokers Dracula

"As the Count leaned over me and his hands touched me... a horrible feeling of nausea came over me, which, do what I would, I could not conceal."
- Bram Stoker
Title: Re: Ad Management mod
Post by: Kindred on July 07, 2011, 11:08:37 AM
sucking the seo juices out of your site?  Really?


While I admit that the copyright update should be removed when the mod is removed, having it there or not will have no effect on your site's Search engine results.

BTW: Check your theme's index.template.php - search for "copyright" (there are a few references, but you should see the smf copyright function plus this other one if you keep searching)
Title: Re: Ad Management mod
Post by: tabletsdroid on July 07, 2011, 11:09:54 AM
Kindred, thanks so much for your help. Perhaps a little less flame next time ? thanks!
Title: Re: Ad Management mod
Post by: Kindred on July 07, 2011, 11:14:01 AM
huh? ???

I didn't flame you in any way, shape or form...
I also told you where to look to fix it.
Title: Re: Ad Management mod
Post by: tabletsdroid on July 07, 2011, 11:17:38 AM
Kindred, you always seem to pop up with your opinion, which is always correct, very black and white and 2 dimensional..... at exactly the right time! even if your opinion was not asked for!

have you ever considered the fact that your not always right?
Title: Re: Ad Management mod
Post by: Kindred on July 07, 2011, 11:32:33 AM
nope...   :P
I'm always right, except when my wife disagrees.

Seriously though, I don't quite see the problem. 
"even if your opinion was not asked for"
(well, by posting in a public forum of which I am an extremely active participant, you are asking for my (or anyone else's) comment. If you only want a comment from one person, use PM or email)


Did you look in index.template.php?
(you also did not indicate which version of SMF you were using)
However, if you are using SMF 2.0, I can correct myself at this point, since I just looked it up - look in sources/querystring.php
search for "smfads"


and as for me being right (or wrong) - I assume that you were talking about my comment on your lack of understanding on how Search Engines work? If so, I'm not wrong, in this case.
Title: Re: Ad Management mod
Post by: tabletsdroid on July 07, 2011, 11:40:11 AM
another wild goose chase
Title: Re: Ad Management mod
Post by: Kindred on July 07, 2011, 11:43:22 AM
???

another wild goose chase?

Are you running SMF 2.0?
If so, then the code which inserts the SMF ads copyright is added to the file Sources/QueryString.php



// SMF ADS
$buffer = preg_replace('~(, Simple Machines LLC</a>)~', ', Simple Machines LLC</a><br /><span class="smalltext"><a href="http://www.smfads.com" target="_blank">SMFAds</a> for <a href="http://www.createaforum.com" title="Forum Hosting">Free Forums</a></span>', $buffer);
$buffer = preg_replace('~(class="new_win">Simple Machines</a>)~', 'class="new_win">Simple Machines</a><br /><span class="smalltext"><a href="http://www.smfads.com" target="_blank">SMFAds</a> for <a href="http://www.createaforum.com" title="Forum Hosting">Free Forums</a></span>', $buffer);

// End SMF ADS


Look at the mod parser on the mod site and you can see for yourself.


if you are running 1.1.x, look in /Themes/default/index.template.php as I first told you.
Title: Re: Ad Management mod
Post by: SD-X on July 07, 2011, 11:51:51 AM
Alright, come on you two, break it up. I don't want to get notified via email to this topic over you two arguing about your opinions that aren't even relevant to the topic at hand ;)
Title: Re: Ad Management mod
Post by: eyesite on July 08, 2011, 04:07:52 PM
I did a custom install using the parse method since I am using custom theme. Everything went smoothly EXCEPT the Google ads only show on the home page. All the other pages have a grey area taking the place where  the ads should appear.
Does anyone have a good idea how to fix this?
I am using this theme: DS-Natural designed by DzinerStudio
SMF 2.0 final release and Ad Management mod 3.0
Site is eyesite dot com
Thanks.
Title: Re: Ad Management mod
Post by: Amrizkhan on July 09, 2011, 12:12:40 PM
Sir How to install ad management to my smf 2.0 forum

im can't edit the files manual

http://custom.simplemachines.org/mods/index.php?action=parse

plz help me
Title: Re: Ad Management mod
Post by: Kathleen Chute on July 09, 2011, 03:11:38 PM
I Have 2.0 Gold,
I have Downloaded the Recent Version,
I tried to install This Today,
These were My Issues. I haven't clicked anything to install
Can you please tell me , How to Get this to Work, thanks for your Help .
Kathleen
Title: Re: Ad Management mod
Post by: Rickard on July 11, 2011, 04:40:52 AM
When running SMF 1 "Display ads on the bottom of the page" the ads always show up emidiatly below the actual forum stuff + answer buttons.
In SMF 2.0 the ads i want to display on the bottom of the page displayes below the bottom part of ads in left and right column (if the are higher then the "forum table".
The adverts are not at all as visible as before.
(Tried both displaying ads in left/right columns in portal, or via ad management mod, same result)

Is there any way to fix this?
Title: Re: Ad Management mod
Post by: peter44 on July 11, 2011, 08:54:52 AM
How do you centre the ads, they just go to the left.


Regards peter
Title: Re: Ad Management mod
Post by: vbgamer45 on July 11, 2011, 01:01:39 PM
Use a center html tag around your ad code.
Title: Re: Ad Management mod
Post by: peter44 on July 11, 2011, 01:46:16 PM
What would that be please

Regards peter
Title: Re: Ad Management mod
Post by: vbgamer45 on July 11, 2011, 01:57:09 PM
Example

<center>adhere</center>
Title: Re: Ad Management mod
Post by: Powerbob on July 11, 2011, 11:54:02 PM
Quote from: Kathleen Chute on July 09, 2011, 03:11:38 PM
I Have 2.0 Gold,
I have Downloaded the Recent Version,
I tried to install This Today,
These were My Issues. I haven't clicked anything to install
Can you please tell me , How to Get this to Work, thanks for your Help .
Kathleen


By the look of it another mod is interfering. The only way would be to do a manual install.
Title: Re: Ad Management mod
Post by: npiccoli on July 12, 2011, 12:28:17 AM
Hi guys. I am kind of new to editing my forum so you will have to bare with my stupidity.

I have installed this mod successfully, but I am having trouble getting my Google AdSense code to work properly. It seems the modification won't allow the <script> HTML tag. I'm not exactly sure, but does somebody else know of a way to get Google AdSense to function properly with this mod? I'm running the latest version of SMF 2.0.

Regards,
npiccoli

EDIT: I was able to determine the problem was in the code. Google was generating invalid codes and therefore they weren't working at all. The problem has been solved!
Title: Re: Ad Management mod
Post by: vbgamer45 on July 12, 2011, 01:16:42 PM
Glad you got it working
Title: Re: Ad Management mod
Post by: Kat9119 on July 13, 2011, 01:22:45 PM
Ok, so I've had version 2.3  installed for over a year...all the sudden in the last week or two ads would never load. Then they did, and now sometimes if you go into an area with the ads they take forever to load (as you can see it trying to load in the status bar) but then they never load. Today they seem to load fine.

Just curious if this is a known issue all the sudden or if it could be google, or if an update is needed or what. I'd rather not upgrade if I don't have to, I have way too many other things to deal with. I'm running 1.1.14
Title: Re: Ad Management mod
Post by: Kindred on July 13, 2011, 01:23:45 PM
problems with the ads are due to problems with the ad providers....
Title: Re: Ad Management mod
Post by: SD-X on July 13, 2011, 01:25:06 PM
Not only that, but if you are running an old version and you're having compatibility issues with 1.1.14 then you need to update to a version made specifically for it. There's a reason why they make new ones ;)
Title: Re: Ad Management mod
Post by: Kat9119 on July 13, 2011, 08:01:59 PM
I've had no issues until the last week or so, and I've been running 1.1.14 since it came out and had no issues before, so I assumed it was Google. But I was just wondering if anyone else is having these issues..
Title: Re: Ad Management mod
Post by: npiccoli on July 13, 2011, 10:09:01 PM
Quote from: Kat9119 on July 13, 2011, 08:01:59 PM
I've had no issues until the last week or so, and I've been running 1.1.14 since it came out and had no issues before, so I assumed it was Google. But I was just wondering if anyone else is having these issues..

It could of been something with your forum's hosting. I know sometimes this happens to a friend of mine's forum too, while using Google AdSense. It hasn't happened to me since I got them working. It was most likely a connection issue which resolved itself over time.
Title: Re: Ad Management mod
Post by: imaxorz on July 16, 2011, 11:48:50 PM
I installed Ad Management 3.0.1 after upgrading to SMF 2.0 however I can't seem to find the any of the Ad Management options anywhere in the menu.

Am I missing something?
Title: Re: Ad Management mod
Post by: Jintan on July 17, 2011, 06:51:51 PM
I admit being pretty challenged by this stuff, but didn't realize Mods would ad their own advertising to the forum. And I may have missed where this stated it was going to do that. Is there a rule about Mods, related to this? I surely appreciate the Adsense help, but this isn't worth the trade off.

QuoteSorry, the copyright must be in the template.
Please notify this forum's administrator that this site is missing the copyright message for SMF so they can rectify the situation. Display of copyright is a legal requirement. For more information on this please visit the Simple Machines website.
Not sure why this message is appearing? Take a look at some common causes.

I will putz around and eventually figure out how to remove this SMFAds for Free Forums footer, but admit a sense of naive faith that Mods were done by folks either being helpful, or establishing a resume of their skills. And not just another spammer.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 17, 2011, 10:12:06 PM
We paid copyright removal as an option.
Title: Re: Ad Management mod
Post by: npiccoli on July 17, 2011, 10:55:16 PM
Quote from: Jintan on July 17, 2011, 06:51:51 PM
I admit being pretty challenged by this stuff, but didn't realize Mods would ad their own advertising to the forum. And I may have missed where this stated it was going to do that. Is there a rule about Mods, related to this? I surely appreciate the Adsense help, but this isn't worth the trade off.

QuoteSorry, the copyright must be in the template.
Please notify this forum's administrator that this site is missing the copyright message for SMF so they can rectify the situation. Display of copyright is a legal requirement. For more information on this please visit the Simple Machines website.
Not sure why this message is appearing? Take a look at some common causes.

I will putz around and eventually figure out how to remove this SMFAds for Free Forums footer, but admit a sense of naive faith that Mods were done by folks either being helpful, or establishing a resume of their skills. And not just another spammer.

You could always create a feature documentation page and list the feature (or modification) authors. This would help prevent any legal action being taken against you.
Title: Re: Ad Management mod
Post by: Kindred on July 17, 2011, 11:52:29 PM
Actually, no...  Removing or even moving the copyright to a separate page is a violation.
Title: Re: Ad Management mod
Post by: Jintan on July 18, 2011, 12:37:58 PM
QuoteWe paid copyright removal as an option.

Not sure I understand what that says.

Not trying to mess with the actual SMF copyright info. But it just caused the error. For now, I just replaced the spam with Have a Great Day, and links back to the forum, until I figure out how to remove the entry without causing problems.

Since there is nothing that informs an SMF user that this Mod sticks it's spam links in the footer, what stops more aggressive mod spamming from occurring?
Title: Re: Ad Management mod
Post by: Illori on July 18, 2011, 12:41:21 PM
you are not allowed to remove any copyright without approval, and as such your post has been edited to remove the method you describe.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 18, 2011, 12:46:59 PM
Quote from: Jintan on July 18, 2011, 12:37:58 PM
QuoteWe paid copyright removal as an option.

Not sure I understand what that says.

Not trying to mess with the actual SMF copyright info. But it just caused the error. For now, I just replaced the spam with Have a Great Day, and links back to the forum, until I figure out how to remove the entry without causing problems.

Since there is nothing that informs an SMF user that this Mod sticks it's spam links in the footer, what stops more aggressive mod spamming from occurring?
I suggest you remove the mod. There are other mods if you wish disrepect me by removing the link. Either remove the mod or I will be forced to take it to next step.
Title: Re: Ad Management mod
Post by: Jintan on July 18, 2011, 01:00:16 PM
I am not aware of the next step, but if changing this violates some rule, of course I will remove the Mod. I mean no disrespect by the change I made. As I have said, I thought there were SMF rules governing Mods, had no idea they can include spam links, and had this Mod said that in advance, I wouldn't have installed it.

I would appreciate a link to the Mod "rules", if someone has that handy. Just to come up to speed on what I can expect when using Mods.
Title: Re: Ad Management mod
Post by: Illori on July 18, 2011, 01:10:07 PM
it is a rule set by the mod authors not smf, if the author allows copyright removal that is up to them. rules set for smf are not the same as rules for mods.
Title: Re: Ad Management mod
Post by: Jintan on July 18, 2011, 07:08:57 PM
I have removed the Mod.

I took the time to locate and read up on some of this, so see what all is involved. And understand this odd (to me) issue of copyrights. SMFAds is allowed to ad that, and is allowed to charge $50 to remove it.  I have yet to grasp exactly what a Copyright includes, or is limited to. This link:

http://www.createaforum.com

Would seem to have nothing to do with the Mod, or it's author's copyright. That's a redirect link ad.

---------------

As for what's in the Description right now:

QuoteAd Management mod V 2.3

We also have Ad Seller Pro found at http://www.smfhacks.com/ad-seller-pro.php

QuoteCustomization Descriptions

All descriptions must contain an English description of the customization. If you include descriptions in any other languages, you must put them after the English description. The description should fully explain the functionality or changes it makes. The content of the description must be directly related to explaining, demonstrating, or supporting the customization. No unrelated material (for example: ads or 'sponsor' links) is permitted.

May have a bit of a question of validity. A paid version has nothing to do with this SMF Mod.

But all this also says my earlier request that Mods that do this include that in the Description doesn't fly, since they are copyrights.

But enough IMHO, and Enough. I am sure I have been dropped off one or two Christmas card lists in doing this, and no need to pester things further. I get around to it, I will follow the existing steps to add the code changes, should I want to continue Google's ads.
Title: Re: Ad Management mod
Post by: Jojie on July 24, 2011, 02:07:43 AM
I am having problems with this mod as well since upgrading to smf 2.0. The ads won't show up. ..... I did download the new version of the mod uninstall the old one and re-install the new one.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 24, 2011, 10:20:10 AM
Quote from: Jojie on July 24, 2011, 02:07:43 AM
I am having problems with this mod as well since upgrading to smf 2.0. The ads won't show up. ..... I did download the new version of the mod uninstall the old one and re-install the new one.
Check permissions and what type of ad
Title: Re: Ad Management mod
Post by: desibees on July 26, 2011, 02:13:10 AM
Quote from: Aleksi "Lex" Kilpinen on July 26, 2011, 01:56:01 AM
The second line is added by a mod, and without knowing exactly how that mod does it we can only guess..
You might want to ask the mod author if they'd allow you to modify the copyright, and if they could help you to do it in a way that they approve.

Could you give me permission for this please?

--

QuoteHi,

My copyright currently looks like the way it is in the attached image.
Could someone please look at the attached index.template.php and index.php and make the copyright into 1 straight line?
If any other file is required, please ask
Please and thank you.

Thanks

Edit: I tried 1 mod (new style footer) and it messed everything up. Everything disappeared and I didn't have backup either. So I would like someone to help me manually, please.
Title: Re: Ad Management mod
Post by: dooodle on July 28, 2011, 04:27:46 AM
Beloved friends,
I am using SMF version: 2.0 and ad management mod version 3.0. The mod works fine for me, and my query is. When I use skyscraper kind of ads on the sides, I get only one ad for the first post and the space remains empty for the remaining posts without any ads.

When I copy the skyscraper ads (in the content of the mod part) say around  three times, the space is filled three times, but the problem is this appears in the message index extending longer than the message index, hope I have not confused you.

Any help is appreciated to sort out this issue.
Title: Re: Ad Management mod
Post by: Kindred on July 28, 2011, 07:47:23 AM
Well of course it doe that.   That is displaying EXACTLY as intended. If the code isin there once, the ad displays once, regardless of the page length. If the code is in there three times, it displays three times...  And yes, for a shorter page, this will push down the footer, because it has to display all three...      What behavior did you expect? .???
Title: Re: Ad Management mod
Post by: dooodle on July 28, 2011, 08:42:31 AM
Sorry to say I expected that there would be some option to auto adjust, now its clear there is no such option. thank you brother.....
Title: Re: Ad Management mod
Post by: Kat9119 on July 29, 2011, 12:46:36 PM
Quote from: Kat9119 on July 13, 2011, 01:22:45 PM
Ok, so I've had version 2.3  installed for over a year...all the sudden in the last week or two ads would never load. Then they did, and now sometimes if you go into an area with the ads they take forever to load (as you can see it trying to load in the status bar) but then they never load. Today they seem to load fine.

Just curious if this is a known issue all the sudden or if it could be google, or if an update is needed or what. I'd rather not upgrade if I don't have to, I have way too many other things to deal with. I'm running 1.1.14

I just wanted to update this, and say I notice its happening with ALL ads, not just google. But Sideshow Collectibles & Amazon...so basically ALL ads displayed with this mod...

Someone mentioned that it could be the hosting...do you know what hosting company your friend had issues with? I'm using HostGator
Title: Re: Ad Management mod
Post by: TheChief60 on July 29, 2011, 12:48:05 PM
In 2.0RC3, Ad Management would put "Display ads on every page right below the menu" directly below the menu.

Now, with the upgrade to 2.0GOLD, it's placing it lower, under a <hr> and the forum nav links. Others have reported this...is there a fix yet?

It is reported on page 310 of this thread. Thx in advance for your help.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 29, 2011, 12:48:41 PM
That is where it is shown now in 2.0
Title: Re: Ad Management mod
Post by: Kindred on July 29, 2011, 02:30:33 PM
it's not "broken", so there is no "fix"....   it got moved because of the changes to the templates...
Title: Re: Ad Management mod
Post by: rmvalues on July 30, 2011, 01:15:43 AM
when i tried install, i got this test failed
(http://capture.png)

when i continue the install process, this error happened :

Database Error
ERROR: syntax error at or near "NOT"
LINE 2: CREATE TABLE IF NOT EXISTS forum_smf_ads (
^
File: /home/www/rmvalues.com/forum/Packages/temp/install.php
Line: 51

========================

i run smf 2.0
database pgsql
original theme
mod installed : google plus to post / Google: Adsense for Search and Custom Search Integration V1.2 - Works with RC3! / Facebook and Twitter Sharer

thank you.
Title: Re: Ad Management mod
Post by: Topman on July 30, 2011, 05:04:13 AM
I want to do two things:

1) I want to be able to display more than one ad in a location for example the welcome area.
I have tried putting twosets of html ad code in the add ad box but this only puts one above the other.  I woudl like them side by side.

2) Is there anyway of changing the positions of the ads?  Welcome area start from right, under menu start from left.  can they be set to be centarlly located?
Title: Re: Ad Management mod
Post by: vbgamer45 on July 30, 2011, 06:07:55 PM
Quote from: rmvalues on July 30, 2011, 01:15:43 AM
when i tried install, i got this test failed
(http://capture.png)

when i continue the install process, this error happened :

Database Error
ERROR: syntax error at or near "NOT"
LINE 2: CREATE TABLE IF NOT EXISTS forum_smf_ads (
^
File: /home/www/rmvalues.com/forum/Packages/temp/install.php
Line: 51

========================

i run smf 2.0
database pgsql
original theme
mod installed : google plus to post / Google: Adsense for Search and Custom Search Integration V1.2 - Works with RC3! / Facebook and Twitter Sharer

thank you.
psql not supported
Title: Re: Ad Management mod
Post by: vbgamer45 on July 30, 2011, 06:11:45 PM
Quote from: topman on July 30, 2011, 05:04:13 AM
I want to do two things:

1) I want to be able to display more than one ad in a location for example the welcome area.
I have tried putting twosets of html ad code in the add ad box but this only puts one above the other.  I woudl like them side by side.

2) Is there anyway of changing the positions of the ads?  Welcome area start from right, under menu start from left.  can they be set to be centarlly located?

1. You can do using html code to form a table to have them side by side or underneath

2. If you modify the template edits themselves you can move them around where you need them to be.
Title: Re: Ad Management mod
Post by: luuuciano on July 30, 2011, 11:43:35 PM
Quote from: topman on July 30, 2011, 05:04:13 AM
I want to do two things:

1) I want to be able to display more than one ad in a location for example the welcome area.
I have tried putting twosets of html ad code in the add ad box but this only puts one above the other.  I woudl like them side by side.

2) Is there anyway of changing the positions of the ads?  Welcome area start from right, under menu start from left.  can they be set to be centarlly located?

css is your friend
div, float, left right, text-align center, etc
Title: Re: Ad Management mod
Post by: imaxorz on July 31, 2011, 05:05:40 AM
I installed Ad Management 3.0.1 after upgrading to SMF 2.0 however I can't seem to find the any of the Ad Management options anywhere in the menu.

Am I missing something?
Title: Re: Ad Management mod
Post by: Pentaxian on July 31, 2011, 07:09:30 AM
Two separate items.
1. I can't register at www.smfads.com. I fill in or leave open all the required fields, agree with the conditions and when I click on Register: nothing happens.

2. One week ago I installed version 3.0.1 on my 2.0 SMF forum. Installation OK, no problems. Placing ads, no problem. Enabled ads everywhere. Then made a new member group with paid subscriptions. Goal was to offer a ad free subscription, so ads enabler ticked off for this group. SMF gives these members now this new member group as primary group and their original, post based member group, as secondary group. They see still ads, I presume on basis of their post based group. The ads are placed within topics as second post.
Am I doing something wrong or more to the point: is there a solution to make this member group ad free?
Title: Re: Ad Management mod
Post by: Pentaxian on August 02, 2011, 04:50:10 AM
Everybody away for holiday?
Title: Re: Ad Management mod
Post by: TheChief60 on August 02, 2011, 11:54:10 AM
Quote from: vbgamer45 on July 29, 2011, 12:48:41 PM
That is where it is shown now in 2.0
Ok, thanks for the reply.
Title: Re: Ad Management mod
Post by: AllanD on August 03, 2011, 12:42:25 PM
I have a quick question/problem.
For some reason on the bottom of the index board it has 2 smf ads copyright link.How can i remove 1 of them?
http;//mympz.com
Title: Re: Ad Management mod
Post by: vbgamer45 on August 03, 2011, 01:00:09 PM
What SMF version i think they are in Sources/QueryString.php
Title: Re: Ad Management mod
Post by: AllanD on August 03, 2011, 01:01:39 PM
sorry 2.0 final it was working fine until i editted something in the index.css then it doubled.
Title: Re: Ad Management mod
Post by: AllanD on August 05, 2011, 01:11:22 PM
vb how would i be able to fix this.
Title: Re: Ad Management mod
Post by: vbgamer45 on August 05, 2011, 02:09:10 PM
Attach that file and I can check it out.
Title: Re: Ad Management mod
Post by: Pentaxian on August 05, 2011, 03:15:21 PM
Quote from: Pentaxian on July 31, 2011, 07:09:30 AMOne week ago I installed version 3.0.1 on my 2.0 SMF forum. Installation OK, no problems. Placing ads, no problem. Enabled ads everywhere. Then made a new member group with paid subscriptions. Goal was to offer a ad free subscription, so ads enabler ticked off for this group. SMF gives these members now this new member group as primary group and their original, post based member group, as secondary group. They see still ads, I presume on basis of their post based group. The ads are placed within topics as second post.
Am I doing something wrong or more to the point: is there a solution to make this member group ad free?

VB, can you help me out with this? Please!
Title: Re: Ad Management mod
Post by: AllanD on August 05, 2011, 03:17:10 PM
Thank you i attached it.
Title: Re: Ad Management mod
Post by: vbgamer45 on August 05, 2011, 03:20:08 PM
Attached fixed file.
Title: Re: Ad Management mod
Post by: AllanD on August 05, 2011, 03:40:32 PM
worked great thank you very much.
Title: Re: Ad Management mod
Post by: vbgamer45 on August 05, 2011, 03:46:12 PM
Glad to help
Title: Re: Ad Management mod
Post by: tamasir on August 05, 2011, 04:37:38 PM
Where can I portray it in order for the guests to be allowed to see the advertisements?
Thanks....
Title: Re: Ad Management mod
Post by: vbgamer45 on August 05, 2011, 04:40:20 PM
Under -> Admin Permissions -> Modify Guests group
Then check "Enable Ads"
Title: Re: Ad Management mod
Post by: Pentaxian on August 06, 2011, 04:55:31 AM
VB, can you tell me why you don't react on my question? Am I barking up the wrong tree?
Title: Re: Ad Management mod
Post by: tamasir on August 06, 2011, 06:04:00 AM
Quote from: vbgamer45 on August 05, 2011, 04:40:20 PM
Under -> Admin Permissions -> Modify Guests group
Then check "Enable Ads"
Thanks...


QuoteThe simplemachines.org site/Ad Management/  Advertisement:
A what kind of code should generate this?

(http://www.tinyportal.eu/forum/img/Ad_Management_mod.png)

Help...
tamasir~
Title: Re: Ad Management mod
Post by: vbgamer45 on August 06, 2011, 09:47:19 AM
Quote from: Pentaxian on August 06, 2011, 04:55:31 AM
VB, can you tell me why you don't react on my question? Am I barking up the wrong tree?
The mod maybe not support post level groups.
Title: Re: Ad Management mod
Post by: Pentaxian on August 07, 2011, 07:24:14 AM
The problem is that SMF has three (kind of) member groups: primary, secondary and post based. On a new clean 2.0 forum there are no secondary groups, only 3 primary groups (Administrator, Global Moderator and moderator). There are 5 levels post based groups. In my forum I created a new primary member group, called Forums supporter, and made that member group not showing ads. Everybody in that member group however is also always still member of a post based group. This double membership results in showing Ads where one group says No Ads and the other says Ads.

Is there a way that the post based membership doesn't make the ads visible? Like it goes for the admins? For them their post based count doesn't mess up the ad free status.
Title: Re: Ad Management mod
Post by: vbgamer45 on August 07, 2011, 09:15:05 PM
Not at this time does not check post based groups
Title: Re: Ad Management mod
Post by: melaniebund on August 08, 2011, 07:34:42 AM
i would like to add a banner ad...
In the content field added the path to image would like to display (...forum/Themes/classic/images/headerbanner.png), which should then link (cant find where to link) to the main site where the forum is part of - nothing appears?
ANY HELP?
thanks
melanie
Title: Re: Ad Management mod
Post by: Kindred on August 08, 2011, 09:02:40 AM
You need to build a standard htmlsection for the advert...     I.e. Using link and imgtags
Title: Re: Ad Management mod
Post by: tamasir on August 08, 2011, 11:51:39 AM
Quote from: tamasir on August 06, 2011, 06:04:00 AM

QuoteThe simplemachines.org site/Ad Management/  Advertisement:
A what kind of code should generate this?

(http://www.tinyportal.eu/forum/img/Ad_Management_mod.png)

Help...
tamasir~


Help me ...Mi the code and where it is necessary to place it in.
Thanks...
Title: Re: Ad Management mod
Post by: vbgamer45 on August 08, 2011, 12:02:51 PM
That is just html code.
Title: Re: Ad Management mod
Post by: JBSRodrigues on August 08, 2011, 04:08:33 PM
Hi people!
I'm using a modified version of Overview (basically changed the colours ) and I want to install the Ad Management mod, but it seems to give some errors during the instalation tests; here's the report:

Code: [Select]
1.   Executar código   install.php   
   2.   Executar modificação   ./index.php   Teste bem sucedido
   3.   Executar modificação   ./Sources/Admin.php   Teste bem sucedido
   4.   Executar modificação   ./Sources/QueryString.php   Teste bem sucedido
   5.   Executar modificação   ./Themes/default/BoardIndex.template.php   Teste bem sucedido
   6.   Executar modificação   ./Themes/default/Display.template.php   Teste bem sucedido
   7.   Executar modificação   ./Themes/default/MessageIndex.template.php   Teste falhado
   1.   Adicionar Depois   ./Themes/default/MessageIndex.template.php   Teste falhado
   2.   Substituir   ./Themes/default/MessageIndex.template.php   Teste bem sucedido
   8.   Executar modificação   ./Sources/ManagePermissions.php   Teste bem sucedido
9.   Extrair Ficheiro   ./Sources/Ads.php   
10.   Extrair Ficheiro   ./Sources/LoadAds.php   
11.   Extrair Ficheiro   ./Themes/default/Ads.template.php   
12.   Extrair Ficheiro   ./Themes/default/languages/Ads.english.php   
13.   Extrair Ficheiro   ./Themes/default/languages/Ads.english-utf8.php   
Instalar nos Outros Temas
Para usar esta modificação em temas diferentes do "Default", o gestor de pacotes necessita de fazer alterações aos outros temas. Se deseja instalar esta modificação nos outros temas, por favor seleccione-os em baixo.
    Core Theme
   Executar modificação   ./Themes/core/BoardIndex.template.php   Teste falhado
   1.   Adicionar Antes   ./Themes/core/BoardIndex.template.php   Teste bem sucedido
   2.   Adicionar Depois   ./Themes/core/BoardIndex.template.php   Teste falhado
   Executar modificação   ./Themes/core/Display.template.php   Teste falhado
   1.   Adicionar Depois   ./Themes/core/Display.template.php   Teste bem sucedido
   2.   Substituir   ./Themes/core/Display.template.php   Teste bem sucedido
   3.   Substituir   ./Themes/core/Display.template.php   Teste falhado
   Executar modificação   ./Themes/core/MessageIndex.template.php   Teste falhado
   1.   Adicionar Depois   ./Themes/core/MessageIndex.template.php   Teste bem sucedido
   2.   Substituir   ./Themes/core/MessageIndex.template.php   Teste falhado

What seems to be the problem, mates?

PS: I currently have installed these mods in this SMF 2.0 forum:
1.   Activity in Profile    1.1     
2.   Reason For Editing Mod    2.3.2     
3.   SMF Multi Quote    1.1.3     
4.   Ad Managment    3.0.1   NOT INSTALLED
5.   Add GooglePlus to Posts    1.0     
6.   Additional Home page Title | S-Ace    3.3 
7.   Google Analytics Code    1.4     
8.   Justify BBCode    2.3.2     
9.   Member Color Link    3.1     
10.   Move Topic Notification    1.2     
11.   CSS Message Boxes    1.1     
12.   Yet Another Global Announcements Mod    2.7.4
13.   Active Members In Topic    1.8     
14.   Custom Copyright    1.0.2     
15.   Inline Hover Spoiler    1.5 
16.   Pretty URLs    1.0RC5.2     
17.   H1 Tags in link tree    1.1     
18.   SimplePortal    2.3.3 


Thanks people.
Title: Re: Ad Management mod
Post by: Kindred on August 08, 2011, 04:35:20 PM
You will have to manually install the mod into the errored files.  See the wiki for more detailed explanations.
Title: Re: Ad Management mod
Post by: tamasir on August 08, 2011, 05:21:02 PM
Quote from: vbgamer45 on August 08, 2011, 12:02:51 PM
That is just html code.
Thank you. The code works.
tamasir~
Title: Re: Ad Management mod
Post by: LegendaryPancake on August 10, 2011, 06:29:54 PM
Alright, so I'm trying to center the ad that's at the bottom of my page, but I've looked through my index.template.php file, and I can't seem to find the ad code anywhere in there. I'm using the BR Finale theme. Could anyone help me out here?
Title: Re: Ad Management mod
Post by: Kindred on August 10, 2011, 07:19:45 PM
You would add the center tag in the ad code section, not in your template.
Title: Re: Ad Management mod
Post by: LegendaryPancake on August 10, 2011, 07:24:43 PM
Ah, worked perfectly. Thanks.
Title: Re: Ad Management mod
Post by: andyac on August 11, 2011, 03:23:43 PM
i cant install this mod on 2.0. why?
Title: Re: Ad Management mod
Post by: vbgamer45 on August 11, 2011, 03:33:16 PM
Don't know whats the error?
Title: Re: Ad Management mod
Post by: andyac on August 11, 2011, 04:03:41 PM
Installations actions for "Ad Managment" :
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: Ad Management mod
Post by: vbgamer45 on August 11, 2011, 04:05:14 PM
Download:    ad_mod_v3.0_SMF_v2-0.zip
Title: Re: Ad Management mod
Post by: andyac on August 11, 2011, 04:07:09 PM
i tried both ;[  any ideas what it could be?
Title: Re: Ad Management mod
Post by: vbgamer45 on August 11, 2011, 04:14:15 PM
Make sure u have 2.0 final
Title: Re: Ad Management mod
Post by: andyac on August 11, 2011, 04:14:37 PM
how do i check?
Title: Re: Ad Management mod
Post by: moguns on August 23, 2011, 10:27:20 PM
I thought about purchasing the copyright removal however after read it I was wondering if I can also pay to have it removed from code as well. I know it says this but I thought I would ask..
________________________
Copyright Removal for Modifications at SMFHacks.com
Information:
Allows you to remove the copyright html links to (http://www.smfhacks.com) from .template.php for the modification
Valid for a single instance/install of the modification
Copyright information must remain in the code.
Useful if you are running a business or professional site and to keep users on your forum
Title: Re: Ad Management mod
Post by: vbgamer45 on August 23, 2011, 11:08:53 PM
The copyright removal includes the links added into the footer of your forum so you can remove of those with that.
Title: Re: Ad Management mod
Post by: Thunderdownunder on August 24, 2011, 02:16:22 AM
Hi my techo tried to install Ad Management on my newly updated 2.0 with the following result

QuoteFor the Ad management mod, on that last screen it shows:
Core Theme Execute Modification ./Themes/core/BoardIndex.template.php
Test failed


1.
Add Before
./Themes/core/BoardIndex.template.php
Test
successful


2.
Add After
./Themes/core/BoardIndex.template.php
Test failed
Execute Modification ./Themes/core/Display.template.php Test failed


1.
Add After
./Themes/core/Display.template.php
Test
successful


2.
Replace
./Themes/core/Display.template.php
Test
successful


3.
Replace
./Themes/core/Display.template.php
Test failed
Execute Modification ./Themes/core/MessageIndex.template.php Test
failed


1.
Add After
./Themes/core/MessageIndex.template.php
Test
successful


2.
Replace
./Themes/core/MessageIndex.template.php
Test failed


Any advice ??



cheers
Title: Re: Ad Management mod
Post by: vbgamer45 on August 24, 2011, 07:58:19 AM
First are you using the core theme? If not then skip it.
Title: Re: Ad Management mod
Post by: Thunderdownunder on August 24, 2011, 08:38:52 AM
QuoteFirst are you using the core theme? If not then skip it.

Um ........ I believe I'm using the core theme.
QuoteSMF Default Theme - Curve
Am using the following mods:
* SMF Shoutbox
*  Admin Memberlist Reg date
* Last active on memberlist


Comments ?


Title: Re: Ad Management mod
Post by: vbgamer45 on August 24, 2011, 09:29:27 AM
Curve is not the core theme so you do not need to do anything
Title: Re: Ad Management mod
Post by: Thunderdownunder on August 24, 2011, 12:35:35 PM
QuoteCurve is not the core theme so you do not need to do anything

Um ..... I'm sorry but I don't understand your comment about not having to do anything. Is the error problem to be disregarded ?? Do I go ahead with the installation ??

cheers
Title: Re: Ad Management mod
Post by: vbgamer45 on August 24, 2011, 12:45:23 PM
Yes go ahead with the install ignore the file failures for core.
Title: Re: Ad Management mod
Post by: lrodri7418 on August 29, 2011, 06:05:00 PM
Hi vbgamer45

I have insert the following code and it does not display anything...do u know why? thankx

<a
href="<a id=tempLinkable>http://affiliates.advertisingstars.com/t/url.php/cid/761/sid/409"><img</a>
src="<a id=tempLinkable>http://affiliates.advertisingstars.com/t/image.php/cid/761/sid/409"</a>;
style="height:90px; width:728px;
border:none;"  /></a>
Title: Re: Ad Management mod
Post by: Kindred on August 30, 2011, 08:58:39 AM
Because that is not valid html at all.....
Title: Re: Ad Management mod
Post by: yourwealth on September 03, 2011, 10:38:20 AM
great mod. I know you can add ad codes like adsense (can you add adhitz also?) what I would like to know is if you can sell banner impression and sponsor ads at various places and forum categories?
Title: Re: Ad Management mod
Post by: vbgamer45 on September 03, 2011, 01:15:04 PM
For selling impressions/banners I have a more advanced version with paypal integration called Ad Seller Pro found at
http://www.smfhacks.com/ad-seller-pro.php
Title: Re: Ad Management mod
Post by: Motorhead on September 04, 2011, 07:08:12 AM
This isn't exclusive to this mod but I've tried to install a couple of mods in last week and they have thrown up errors on the install test.
The errors all occur in the additional theme I want to install in.
Problem is the additional theme is the one Im using :)

It seems that the Find and Replace or Add After doesn't work because the line being looked for doesn't exisit.
So even a manual install can't be done, at least not without knowing where or what to put

I have 2 themes Curve and Core, Core is the one I use and can't install all mods to.


Quote<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';

Not found in Boardindex.template

similar situation with display.templateand messageindex.template
Title: Re: Ad Management mod
Post by: Bigguy on September 04, 2011, 09:16:38 PM
Sometimes looking for just part of the code instead of all of it is the best way to locate where to put mod code in custom themes.
Title: Re: Ad Management mod
Post by: Motorhead on September 05, 2011, 12:06:18 PM
:( tried that even looking for single words nothing :(

Title: Re: Ad Management mod
Post by: vbgamer45 on September 05, 2011, 01:45:14 PM
Look at the code for SMF 1.1.x that is the core theme used in the theme changes.
Title: Re: Ad Management mod
Post by: aamjad2001 on September 05, 2011, 08:04:49 PM
Ad Management mod 3.0 not working with the core theme in smf 2.0.

please update the mod as soon as possible or smf team are requested to correct the core theme.
Title: Re: Ad Management mod
Post by: vbgamer45 on September 05, 2011, 08:48:44 PM
Currently only supports the default theme.
Title: Re: Ad Management mod
Post by: Le0ne on September 06, 2011, 09:32:45 AM
Does anyone know how to fix right side? I'm using Alaca theme, SMF 2.0.

edit: Don't even work on default themes...

(http://ubuntuone.com/p/1GW7/)
Title: Re: Ad Management mod
Post by: Kindred on September 06, 2011, 12:03:51 PM
fix what?   That looks correct
Title: Re: Ad Management mod
Post by: Le0ne on September 07, 2011, 08:47:41 AM
It's not correct. Look at the right side. Do you see huge white space from the right border of the banner to the right border of the page?
Title: Re: Ad Management mod
Post by: gomzy on September 09, 2011, 03:28:32 AM
please help me, i cannot install this module , i have completed all steps
Title: Re: Ad Management mod
Post by: vbgamer45 on September 10, 2011, 07:46:38 PM
Quote from: gomzy on September 09, 2011, 03:28:32 AM
please help me, i cannot install this module , i have completed all steps
What happens?
Title: Re: Ad Management mod
Post by: Siirist on September 11, 2011, 10:19:20 AM
Okay,

So it installed perfect in default only.
I got the "ad" to be clickable.
But I can't get pics to show up like you do.
Here's the code:


<a href=http://www.animaltales1.com/?Click=614 target=_blank> (I deleted the quotes for posting here)
This is where you can buy stuffed bears at a really good price.
<img src="avatars/MPB-1.jpg"  width="91" height="103" alt="Not working"></a>
</a>
They start at $9.95 and go up from there.
Shipping is separate.

If you like, I can send a Username and password with Admin permissions to my TEST FORUM.

Thanks in advance,
Cloud
Title: Re: Ad Management mod
Post by: vbgamer45 on September 11, 2011, 12:28:01 PM
Enter the full image url instead of
avatars/MPB-1.jpg
Title: Re: Ad Management mod
Post by: Siirist on September 11, 2011, 12:42:38 PM
Quote from: vbgamer45 on September 11, 2011, 12:28:01 PM
Enter the full image url instead of
avatars/MPB-1.jpg

Works perfectly!!   ;D

Now I just have to figure out how to write a good add and all the switches that are available from the mod.  :P

Thanks again.
Be Well,
Cloud
Title: Re: Ad Management mod
Post by: Derof on September 14, 2011, 05:40:16 AM
I found a bug, advertising in posts are inserted with the same ID as the last post. This generates XHTML validation errors, for example:

QuoteLine 230, Column 19: ID "subject_711" already defined

<h5 id="subject_711">

An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

QuoteLine 234, Column 20: ID "msg_711_quick_mod" already defined

<div id="msg_711_quick_mod"></div>

An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).
Title: Re: Ad Management mod
Post by: Maxtor on September 14, 2011, 06:01:47 PM
my ads doesnt show inside posts.
can you check the attachments.

edit: fixed it!
Title: Re: Ad Management mod
Post by: Biology Forums on September 18, 2011, 10:21:30 PM
While this is a good mod, I think most problems would be solved had they installed Tiny Portal or something similar instead. This just adds plenty of coding.
Title: Re: Ad Management mod
Post by: PSM on September 19, 2011, 03:40:20 PM
I would like to make a few minor changes to where the ads are placed on my site but can't locate the code that does this.  Can anyone point me in the right direction?  I'm basically looking to move the ads below the site navigation instead of directly above it, or possibly add/remove breaks before or after since the placement looks a little weird on my page.  Other than that, it's working very well.  Thanks for the mod!
Title: Re: Ad Management mod
Post by: bburg5 on September 20, 2011, 08:56:19 PM
I continue to try adapting my code, but continue to get Template Parse errors...

Below is the index.template.php file if you would be willing to look it over and see where my error is.

Thanks for the help!!!
Title: Re: Ad Management mod
Post by: PSM on September 21, 2011, 11:26:49 AM
EDIT:  Nevermind I found the answer to the question I asked in this post under the Permissions settings.

Still looking for an answer to my previous question (last post on page 320).  I would like to add a break between the menu and my ads that are displayed right under the menu but can't find where the code is located.  Any help?
Title: Re: Ad Management mod
Post by: bburg5 on September 21, 2011, 07:20:18 PM
I am not an experienced coder as I am just still learning, but could you just add a <br /> above the existing code to move it down... This code would ass a line break... might work...
Title: Re: Ad Management mod
Post by: luuuciano on September 21, 2011, 07:57:22 PM
in your index.css file search this:

/* The navigation list (i.e. linktree) */
.navigate_section
{
   padding: 0.5em;
   margin: 0 0 0 0;
}

try using something like
margin: 0 0 50px 0;

or the amount of px you need there
Title: Re: Ad Management mod
Post by: beagle-01 on September 22, 2011, 07:38:07 AM
I try to download the dutch files for this mod.
To do that I go to the linked forum and cliv-ck on register.
Then I fill in all the questions and at the bottom I want to click on the button = register.
than I have no action at All. and I'm unable to register.
I have tried it with Safari  5.1  and with Firefox 6.02with the same result. 

I don't find a ilk on the forum to a webmeister !!

What Do I wrong ??  or how can I download the dutch files for this mod.
Title: Re: Ad Management mod
Post by: PSM on September 22, 2011, 08:30:56 AM
Quote from: luuuciano on September 21, 2011, 07:57:22 PM
in your index.css file search this:

/* The navigation list (i.e. linktree) */
.navigate_section
{
   padding: 0.5em;
   margin: 0 0 0 0;
}

try using something like
margin: 0 0 50px 0;

or the amount of px you need there

Where do I locate the index.css file?  I can't seem to find one anywhere.  After a Google search, it appears there is supposed to be one in the /Themes/[your theme]/css... but I do not have a "css" folder in any of my theme folders.  There are plenty of index.php files and there are style.css files, but no index.css.

Thanks for your help!
Title: Re: Ad Management mod
Post by: luuuciano on September 22, 2011, 03:29:34 PM
PSM give more information, like the url to your forum....
Title: Re: Ad Management mod
Post by: PSM on September 22, 2011, 03:47:56 PM
Quote from: luuuciano on September 22, 2011, 03:29:34 PM
PSM give more information, like the url to your forum....

http://www.streetsofct.com

I'm using the Black theme based on the Classic theme.
Title: Re: Ad Management mod
Post by: Illori on September 22, 2011, 03:50:25 PM
1.1.1* uses style.css not index.css which should be in your themes folder.
Title: Re: Ad Management mod
Post by: luuuciano on September 23, 2011, 12:24:30 PM
I have no idea about 1.1x themes, but you may search for
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
(the table that contains the navigation menu)
and change it to
<table cellpadding="0" cellspacing="0" border="0" style="margin: 0 0 15px 10px;">

being that top right bottom left margins
Title: Re: Ad Management mod
Post by: PSM on September 23, 2011, 12:53:29 PM
Quote from: luuuciano on September 23, 2011, 12:24:30 PM
I have no idea about 1.1x themes, but you may search for
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
(the table that contains the navigation menu)
and change it to
<table cellpadding="0" cellspacing="0" border="0" style="margin: 0 0 15px 10px;">

being that top right bottom left margins

Hmmm, there's nothing with that code in either of my style.css files.  I'm really at a loss here.  I imagine there has to be a file somewhere that just specifies the basic layout of the page, correct?
Title: Re: Ad Management mod
Post by: luuuciano on September 23, 2011, 01:23:09 PM
index.template.php
Title: Re: Ad Management mod
Post by: PSM on September 23, 2011, 01:47:44 PM
This is ridiculous.  How can it possibly be this difficult to add a simple space between my menu and the ad that displays directly below it?
Title: Re: Ad Management mod
Post by: vbgamer45 on September 23, 2011, 03:45:11 PM
You can try adding a <br> tag above or below the ad code.
Title: Re: Ad Management mod
Post by: PSM on September 23, 2011, 03:55:35 PM
I've attached my index.template.php file and my style.css file for anyone who would like to look through it and tell me what I need to do to add this break.  I feel like an idiot for not being able to figure this out.
Title: Re: Ad Management mod
Post by: Gunpoint on September 24, 2011, 10:02:10 AM
Help, I installed this mod on my smf 2.0 and it shows me  (An Error Has Occurred! Unable to load the 'Ads' template), what can i do
Title: Re: Ad Management mod
Post by: Gunpoint on September 24, 2011, 01:17:53 PM
I have don it, smiply put the file back to its themes folder,
Title: Re: Ad Management mod
Post by: spiros on September 30, 2011, 07:41:08 PM
I had the mod installed in SMF1.1, upgraded to 2 (Now 2.0.1) but then I could not uninstall it although it was not functioning anymore. Then I try to manually install it but run into some errors:

1. When accessing forum I would get an HTTP 500 (Internal Server Error)
So I used the old index.php file and the error dissapeared.

2. When accessing the mod from admin I now get an HTTP 500 (Internal Server Error). I even tried deleting the ads tables and manually installing from the install.php file (although that did not seem easy, is there some pure SQL for this to run in phpmyadmin? I tried running the install.php from the browser but gave me same error.)
Title: Re: Ad Management mod
Post by: vbgamer45 on September 30, 2011, 08:03:14 PM
Do you have access to apache server logs I would try checking that for any related errors
Title: Re: Ad Management mod
Post by: spiros on September 30, 2011, 08:14:29 PM
I checked the Error Log from CP; nothing relevant there. Do you have SQL code to paste in phpmyadmin for the mod?
Title: Re: Ad Management mod
Post by: vbgamer45 on September 30, 2011, 09:51:08 PM

CREATE TABLE IF NOT EXISTS smf_ads (
ADS_ID mediumint(8) unsigned NOT NULL auto_increment,
NAME tinytext NOT NULL,
CONTENT text NOT NULL,
BOARDS tinytext,
POSTS tinytext,
CATEGORY tinytext,
HITS mediumint(8) NOT NULL default '0',
TYPE smallint(4) NOT NULL default '0',
show_index smallint(4) NOT NULL default '0',
show_board smallint(4) NOT NULL default '0',
show_threadindex smallint(4) NOT NULL default '0',
show_lastpost smallint(4) NOT NULL default '0',
show_thread smallint(4) NOT NULL default '0',
show_bottom smallint(4) NOT NULL default '0',
show_welcome smallint(4) NOT NULL default '0',
show_topofpage smallint(4) NOT NULL default '0',
show_towerright smallint(4) NOT NULL default '0',
show_towerleft smallint(4) NOT NULL default '0',
show_betweencategories smallint(4) NOT NULL default '0',
show_underchildren smallint(4) NOT NULL default '0',
PRIMARY KEY (ADS_ID)
);


CREATE TABLE IF NOT EXISTS smf_ads_settings (
  variable tinytext NOT NULL,
  value text NOT NULL,
  PRIMARY KEY (variable(30))
);

INSERT IGNORE INTO smf_settings
(variable, value)
VALUES ('ads_displayAdsAdmin', '0'),
('ads_updateReports', '0'),
('ads_quickDisable', '0'),
('ads_lookLikePosts', '1')
Title: Re: Ad Management mod
Post by: spiros on October 01, 2011, 04:37:52 AM
Issue persists...
Title: Re: Ad Management mod
Post by: vbgamer45 on October 01, 2011, 10:12:22 AM
Might be a file permission issue. Try with the installer first to change file permissions.
Title: Re: Ad Management mod
Post by: spiros on October 01, 2011, 10:29:46 AM
I cannot install it via installer as it is already installed. And I cannot uninstall either.
Title: Re: Ad Management mod
Post by: vbgamer45 on October 01, 2011, 10:57:03 AM
Try resetting all file permissions on the files could have lost permission via the package manager.
Title: Re: Ad Management mod
Post by: beagle-01 on October 01, 2011, 11:02:32 AM
some-one -can answer my previous posted question?

I repeat :
I try to download the dutch files for this mod.
To do that I go to the linked forum and cliv-ck on register.
Then I fill in all the questions and at the bottom I want to click on the button = register.
than I have no action at All. and I'm unable to register.
I have tried it with Safari  5.1  and with Firefox 6.02with the same result. 

I don't find a ilk on the forum to a webmeister !!

What Do I wrong ??  or how can I download the dutch files for this mod.
Title: Re: Ad Management mod
Post by: spiros on October 01, 2011, 11:09:30 AM
Quote from: vbgamer45 on October 01, 2011, 10:57:03 AM
Try resetting all file permissions on the files could have lost permission via the package manager.

Thanks. I currently have 644 on the files in /sources affected by the mod. Should I change these and to what? I tried 744 but nothing changed.
Title: Re: Ad Management mod
Post by: vbgamer45 on October 01, 2011, 11:11:23 AM
Quote from: beagle-01 on October 01, 2011, 11:02:32 AM
some-one -can answer my previous posted question?

I repeat :
I try to download the dutch files for this mod.
To do that I go to the linked forum and cliv-ck on register.
Then I fill in all the questions and at the bottom I want to click on the button = register.
than I have no action at All. and I'm unable to register.
I have tried it with Safari  5.1  and with Firefox 6.02with the same result. 

I don't find a ilk on the forum to a webmeister !!

What Do I wrong ??  or how can I download the dutch files for this mod.
Sounds like a registration issue not related to this mod since it does not change the register.template file

Quote from: spiros on October 01, 2011, 11:09:30 AM
Quote from: vbgamer45 on October 01, 2011, 10:57:03 AM
Try resetting all file permissions on the files could have lost permission via the package manager.

Thanks. I currently have 644 on the files in /sources affected by the mod. Should I change these and to what?
Try 755
Title: Re: Ad Management mod
Post by: beagle-01 on October 01, 2011, 11:16:27 AM
on the first posting --->  http://www.simplemachines.org/community/index.php?topic=68632.0

I click on the link there:

Ad Management mod V 2.3
Language Files
http://www.smfads.com/forums/index.php?board=11.0

so I think it is really related to this mod.

If I can not registter,  I like to find out a way how I can download the Dutch files voor the Ad mangement.
Title: Re: Ad Management mod
Post by: spiros on October 01, 2011, 11:18:08 AM
Quote from: vbgamer45 on October 01, 2011, 11:11:23 AM
Try 755

Tried, also tried 777. No change.
Title: Re: Ad Management mod
Post by: vbgamer45 on October 01, 2011, 12:02:28 PM
Not sure what else it could be the only way to find out would be the apache server logs to maybe provide a trace for the issue on internal server error.
Title: Re: Ad Management mod
Post by: Jue on October 03, 2011, 07:34:49 PM
Adverts don't appear for guests, any idea why?
Title: Re: Ad Management mod
Post by: vbgamer45 on October 04, 2011, 01:23:28 PM
Under Admin -> Permissions
Title: Re: Ad Management mod
Post by: Jue on October 04, 2011, 01:31:50 PM
I've just, around 5 minutes ago found that!

Thanks anyway, lol.
Title: Re: Ad Management mod
Post by: donjazzy on October 06, 2011, 05:05:59 PM
Please how can I remove the copyright of this mod. I don't show ad on my site but someone advice I install this so I can easily do what I want to. Well if there is no way to remove the copyright, I may uninstall the mod. Thank you
Title: Re: Ad Management mod
Post by: vbgamer45 on October 06, 2011, 05:09:57 PM
To order copyright removal: http://www.smfhacks.com/copyright_removal.php
Title: Re: Ad Management mod
Post by: vbgamer45 on October 06, 2011, 05:21:31 PM
After you order if need help attach your sources/querystring.php file
Title: Re: Ad Management mod
Post by: Gunpoint on October 09, 2011, 09:02:59 PM
Your mod doesnt work on my theme, it gives me install error. what can i do, please i need it
Title: Re: Ad Management mod
Post by: vbgamer45 on October 09, 2011, 09:13:20 PM
You will need to do a manual install on the part that it fails in your theme.
Title: Re: Ad Management mod
Post by: spiros on October 10, 2011, 03:17:39 PM
I think if it could censor ads (in order to comply with adsense guidelines for certain topics) something like this mod would be very useful if implemented here.
http://custom.simplemachines.org/mods/index.php?mod=3161
Title: Re: Ad Management mod
Post by: vbgamer45 on October 10, 2011, 03:33:48 PM
I can do that I did on my forums.
Title: Re: Ad Management mod
Post by: spiros on October 10, 2011, 03:55:50 PM
Yep, I think many people would be most grateful; including myself :)
Title: Re: Ad Management mod
Post by: vbgamer45 on October 10, 2011, 03:57:27 PM
Should it work like if bad word don't show the ad?
Title: Re: Ad Management mod
Post by: spiros on October 10, 2011, 04:05:20 PM
I think this is one way of doing automatically. However, it would be good if one could enter topic ids too because it could just be that a link is offending, etc.

These are the Google Adsense content guidelines:

Sites with Google ads may not include or link to:

Pornography, adult or mature content
Violent content
Content related to racial intolerance or advocacy against any individual, group or organisation
Excessive profanity
Hacking/cracking content
Gambling or casino-related content
Illicit drugs and drug paraphernalia content
Sales of beer or hard alcohol
Sales of tobacco or tobacco-related products
Sales of prescription drugs
Sales of weapons or ammunition (e.g. firearms, firearm components, fighting knives, stun guns)
Sales of products that are replicas or imitations of designer or other goods
Sales or distribution of coursework or student essays
Content regarding programs which compensate users for clicking ads or offers, performing searches, surfing websites or reading emails
Any other content that is illegal, promotes illegal activity or infringes on the legal rights of others
https://www.google.com/adsense/support/bin/answer.py?answer=48182
Title: Re: Ad Management mod
Post by: Gunpoint on October 10, 2011, 07:17:37 PM
how can the edits for your mod be done, on my smf 2.0.1
Argentum theme
Title: Re: Ad Management mod
Post by: vbgamer45 on October 10, 2011, 08:55:41 PM
Use the manual install instructions on mod site apply to your themes template.php files and make the edits to your theme.
Title: Re: Ad Management mod
Post by: RSC17 on October 18, 2011, 05:21:29 PM
When I add an single advertisement it is duplicated. When I delete one, it deletes both. Anyone have this problem or know how to fix it?

Thank you.
Title: Re: Ad Management mod
Post by: vbgamer45 on October 18, 2011, 05:31:05 PM
Sounds like code was installed twice get the manually install instructions for the mod and remove the duplicate code from the files that the mod installed to.
Title: Re: Ad Management mod
Post by: robbiebm77 on October 21, 2011, 01:21:55 AM
so i installed the ad management mod and i put in the html of my google adsense. Now on my site, it is just blank where the ads are supposed to be. Theres just a big white blank space. If you dont really understand why im sayin, can someone look at my site teenbabble.net and u will see wat i mean. thank you.
Title: Re: Ad Management mod
Post by: Gunpoint on October 21, 2011, 03:23:18 AM
for google you are asked to wait for 10 mins before the ads come up. Or are u using a custom theme. then you need to manually edit the theme. but if white boxes are showing i think you just have to wait for some time. the will come up.....


please Can i add google search codeusing this mod please
Title: Re: Ad Management mod
Post by: poojim on October 21, 2011, 03:57:09 AM
Test failed for core theme:
BoardIndex.template.php
Display.template.php
MessageIndex.template.php


Test failed for my own theme:
Display.template.php



Should I install or do some other things?
Title: Re: Ad Management mod
Post by: Kindred on October 21, 2011, 06:59:23 AM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Ad Management mod
Post by: bburg5 on October 21, 2011, 06:51:43 PM
Quote from: bburg5 on September 20, 2011, 08:56:19 PM
I continue to try adapting my code, but continue to get Template Parse errors...

Below is the index.template.php file if you would be willing to look it over and see where my error is.

Thanks for the help!!!

Anyone willing to look over code to see why I keep getting parse errors? I have since restored old code without ads. file in original post

Thanks
Title: Re: Ad Management mod
Post by: acsieben on October 29, 2011, 12:51:26 PM
Quote from: Kindred on October 21, 2011, 06:59:23 AM
http://wiki.simplemachines.org/smf/Error_in_mod_installation

This is happening with a 2.0.1 clean install as well, which is strange...
Title: Re: Ad Management mod
Post by: vbgamer45 on October 29, 2011, 02:29:30 PM
Might be a permissions issue if not try doing a manual install
Title: Re: Ad Management mod
Post by: Gunpoint on October 29, 2011, 06:15:18 PM
Please i want to add an "Ad" on the first post of a topic by the right using this mod, how can i do that
Title: Re: Ad Management mod
Post by: vbgamer45 on October 30, 2011, 02:11:02 PM
There should be an location in the first post of topic in settings
Title: Re: Ad Management mod
Post by: luuuciano on October 30, 2011, 02:12:44 PM
And try adding somewhere in your html ad code
style="float:right;"
Title: Re: Ad Management mod
Post by: Gunpoint on November 01, 2011, 04:23:15 AM
okay, the setting of Ad management when i want to edit ads, it shows, show ads in Post. but when i put 1, it show is on the first post, not the topic, how can i make it show on the topic instead.
Title: Re: Ad Management mod
Post by: dumindu89 on November 01, 2011, 05:15:05 AM
Quote from: poojim on October 21, 2011, 03:57:09 AM
Test failed for core theme:
BoardIndex.template.php
Display.template.php
MessageIndex.template.php


Test failed for my own theme:
Display.template.php



Should I install or do some other things?

Me too have this problem. My default theme is "MyTheme". But I installed it in a testing board though I noticed these test failed messages and added some ads using this ad management modification. It worked properly. My question is will it cause problems in upagrading SMF and ad management mod or when I installing another mods in my live board?
Title: Re: Ad Management mod
Post by: jerm on November 06, 2011, 10:32:47 PM
I'm writing just to say I miss you.
Title: Re: Ad Management mod
Post by: luuuciano on November 08, 2011, 06:14:02 PM
that's love
Title: Re: Ad Management mod
Post by: robbiebm77 on November 12, 2011, 02:56:14 PM
so im using chitika and I put up ads via ad management mod, but I am pretty sure when people are clicking on the ads, its not registering. Has anyone else had this problem using this mod? Thanks.
Title: Re: Ad Management mod
Post by: smitch6 on November 14, 2011, 02:36:52 PM
Hi
Just started using this mod today and managed to get a couple of ads up and running
but they aren't sitting right?
i got them centred by wrapping the code with center like this

<a href=http://www.christianhosting.org.uk/?Click=614 target=_blank>
<center><img src=http://www.christianstogether.co.uk/betaimages/hosting.png div style="float;"> </a></center>

(" removed for clarity)

if you look at the pic how can i make the ads sit in the centre pls :)

Title: Re: Ad Management mod
Post by: Kindred on November 14, 2011, 02:41:07 PM
wow...   that is some screwed up code...


<center><a href="http://www.christianhosting.org.uk/?Click=614" target=_blank><img src="http://www.christianstogether.co.uk/betaimages/hosting.png" /></a></center>
Title: Re: Ad Management mod
Post by: smitch6 on November 14, 2011, 02:47:42 PM
rofl
i made it myself can't you tell lol
but it works sort of :)

all help gratefully eccepted :)
Title: Re: Ad Management mod
Post by: luuuciano on November 14, 2011, 02:51:17 PM
I see it centered... can you be more specific?
Title: Re: Ad Management mod
Post by: smitch6 on November 14, 2011, 02:52:16 PM
its at the bottom so too far down
can it be lifted up a bit? :)
Title: Re: Ad Management mod
Post by: luuuciano on November 14, 2011, 10:47:18 PM
So... you  mean vertical centering?
just add a <br> or two
or a padding-bottom: something; / margin-bottom: something; if you prefer to use CSS (to the right html tag)
Title: Re: Ad Management mod
Post by: smitch6 on November 15, 2011, 12:53:57 AM
ok
as you can see i'm not the best with code lol :)
if someone could show me a nicer example of my mess lol

thanks :)
Title: Re: Ad Management mod
Post by: wormss on November 20, 2011, 02:42:08 PM
How can i change forum name in ad after first post to something else ?
I want to put there image.
Title: Re: Ad Management mod
Post by: vbgamer45 on November 20, 2011, 05:06:21 PM
Forum name? Not understanding
Title: Re: Ad Management mod
Post by: wormss on November 22, 2011, 01:44:28 PM
I mean this:
(http://iv.pl/images/07640734262947545067.jpg)

I want to give there avatar/image instead of my smf forum title.
Title: Re: Ad Management mod
Post by: vbgamer45 on November 22, 2011, 02:03:05 PM
Ah i think that is changed in the display.template for your theme.
Title: Re: Ad Management mod
Post by: smitch6 on November 22, 2011, 02:13:15 PM
anyone got any suggestions on a better code for me pls :)
so it can sit central etc
(see previous post)
Title: Re: Ad Management mod
Post by: Kindred on November 22, 2011, 02:36:30 PM
Quote from: Kindred on November 14, 2011, 02:41:07 PM

<center><a href="http://www.christianhosting.org.uk/?Click=614" target=_blank><img src="http://www.christianstogether.co.uk/betaimages/hosting.png" /></a></center>

Title: Re: Ad Management mod
Post by: smitch6 on November 22, 2011, 02:42:51 PM
thanks :)
any idea how to move it up slightly so it's sitting more central?
i tried adding a <br> like below but it didn't work
<center><a href=hxxp://www.christianhosting.org.uk/?Click=614" target=_blank><img src=hxxp://www.christianstogether.co.uk/betaimages/hosting.png" /></a><br></center>
Title: Re: Ad Management mod
Post by: Kindred on November 22, 2011, 02:55:04 PM


<div style="vertical-align:middle;padding-bottom:20px;"><center><a href="http://www.christianhosting.org.uk/?Click=614" target=_blank><img src="http://www.christianstogether.co.uk/betaimages/hosting.png" /></a></center></div>

Title: Re: Ad Management mod
Post by: smitch6 on November 22, 2011, 03:31:21 PM
Thanks Kindred it works a treat :)
Title: Re: Ad Management mod
Post by: forumite on December 28, 2011, 03:25:14 PM
I'm unable to get ads to display in the user welcome area, although they display just fine in other selected areas. I'm using SMF 2.0.2 (default theme) and Ad Management V3.0.1.

TIA for any help.
Title: Re: Ad Management mod
Post by: vbgamer45 on December 28, 2011, 03:34:29 PM
Will look into it.
Title: Re: Ad Management mod
Post by: forumite on December 28, 2011, 03:38:13 PM
Thanks.
Title: Re: Ad Management mod
Post by: humbleworld on December 30, 2011, 09:03:55 PM
I  can't install the MOD version 3.0.1 on SMF version 2.0.2 which is the latest. I tried installing MOD's 3.0 and it works. Why the discrepancy here? I am using the default theme when I installed the latest version of ad mod but still it did not work.
Title: Re: Ad Management mod
Post by: vbgamer45 on December 30, 2011, 09:04:27 PM
What error message do you get?
Title: Re: Ad Management mod
Post by: humbleworld on December 30, 2011, 10:31:24 PM
Quote from: vbgamer45 on December 30, 2011, 09:04:27 PM
What error message do you get?

It says the package is corrupted or is not compatible with the current version of SMF.
Title: Re: Ad Management mod
Post by: luuuciano on December 30, 2011, 11:01:46 PM
You may try emulating 2.0.1 or any previous version
Title: Re: Ad Management mod
Post by: humbleworld on December 31, 2011, 02:34:24 AM
How can emulation be done? I'm new to that kind of process.
Title: Re: Ad Management mod
Post by: humbleworld on December 31, 2011, 03:01:54 AM
Dear vbgamer45,
I have been unsuccessful in installing this mod. However, I wish to put an Adsense code after the first post of every topic. How can I manually do this? I guess this can be done in display.template.php but I don't know what code to input and where exactly.

Thanks in advance for your help. Happy New Year!
Title: Re: Ad Management mod
Post by: BaghdadGhost on December 31, 2011, 05:11:18 PM
my problem is related to ads managements mod installing on custom theme with simple portal. here is the problem.


if you parse the mod the second changes to boardindex.template.php is


<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';



add after



echo '<tbody><tr><td colspan="4">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>';



at the time of installing ads mod I was not able to locate the find, therefore I predicted and compared boardindex custom with default boardindex

attached is my boardindex.template file. please take a look at it and see where the above code should be.

for more info about the problem and its effect to SP please visit

http://www.simplemachines.org/community/index.php?topic=227599.msg3236889#msg3236889


thanks
Title: Re: Ad Management mod
Post by: ApplianceJunk on January 01, 2012, 12:41:56 AM
Quote from: humbleworld on December 31, 2011, 02:34:24 AM
How can emulation be done? I'm new to that kind of process.

http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn%27t_work_in_my_SMF_version
Title: Re: Ad Management mod
Post by: sadaam on January 01, 2012, 11:29:52 AM
dear, i used smf 2.0.2 and installed a ad mod 3.0 but problem is this mod not displayed ads at core theme and also coustom themes...what to do..? help me bro....
Title: Re: Ad Management mod
Post by: vbgamer45 on January 01, 2012, 02:09:09 PM
Quote from: sadaam on January 01, 2012, 11:29:52 AM
dear, i used smf 2.0.2 and installed a ad mod 3.0 but problem is this mod not displayed ads at core theme and also coustom themes...what to do..? help me bro....
Uninstall. When installing check options to install on other themes.
Title: Re: Ad Management mod
Post by: BaghdadGhost on January 01, 2012, 02:25:01 PM
happy new year all,


vb can you please take a look at my boardindex and paste see where you can put the code above without messing up SP


thanks
Title: Re: Ad Management mod
Post by: sadaam on January 03, 2012, 09:41:32 AM
Dear, i used smf 2.0.2 and try to install ad mod v3.0.1 but in costom , & core theme ad not displayed by ad mode what to do..? i use Greyscale theme .

ads are not displaying both core and coustam theme.

plz help me brother....       
Title: Re: Ad Management mod
Post by: vbgamer45 on January 03, 2012, 09:45:34 AM
You will need to edit those themes manually and make the changes required for ad mod.
Title: Re: Ad Management mod
Post by: sadaam on January 03, 2012, 09:50:27 AM
i already manually edit core and cousom themes but reasult is nothing..... help me plz brother
Title: Re: Ad Management mod
Post by: vbgamer45 on January 03, 2012, 12:14:32 PM
Any errors in error log?
Title: Re: Ad Management mod
Post by: forumite on January 03, 2012, 12:15:43 PM
Quote from: vbgamer45Will look into it.

Just curious if you had a chance to check this out (i.e. ads don't show in the User Welcome area, but show elsewhere). TIA.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 03, 2012, 12:21:21 PM
Haven't looked at it yet.
Title: Re: Ad Management mod
Post by: sadaam on January 03, 2012, 01:19:53 PM
ads not displaing in custom and also in core theme is the biggest error....plz do some thing....
Title: Re: Ad Management mod
Post by: Kindred on January 03, 2012, 01:35:36 PM
Sadaam,

If the ads ARE displaying in the default/curve theme but NOT displaying in the core or other alternative themes, then you obviously have NOT performed the correct code changes to your theme's template files. You will have to manually apply changes to the necessary files in each individual theme.

If they are not displaying in ANY theme, then the mod was not fully installed and you'll have to manually apply the changes to the files that were missed.
Title: Re: Ad Management mod
Post by: BaghdadGhost on January 03, 2012, 01:58:58 PM
Quote from: BaghdadGhost on December 31, 2011, 05:11:18 PM
my problem is related to ads managements mod installing on custom theme with simple portal. here is the problem.


if you parse the mod the second changes to boardindex.template.php is


<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';



add after



echo '<tbody><tr><td colspan="4">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>';



at the time of installing ads mod I was not able to locate the find, therefore I predicted and compared boardindex custom with default boardindex

attached is my boardindex.template file. please take a look at it and see where the above code should be.

for more info about the problem and its effect to SP please visit

http://www.simplemachines.org/community/index.php?topic=227599.msg3236889#msg3236889


thanks

can someone help adding this code to the display file?

thanks
Title: Re: Ad Management mod
Post by: sadaam on January 03, 2012, 02:07:40 PM
in bordindex.templet.php file i m unable to find this
Quote<tbody class="divider">
            <tr>
               <td colspan="4"></td>
            </tr>
         </tbody>';

and also ads not displaing core & coustam & deafult curve theme also.

i tried every possible thing....but ads not displaying as wrote above..

i m serious... not joking....ok.
Title: Re: Ad Management mod
Post by: sadaam on January 03, 2012, 04:05:01 PM
hurrey....hurrey...hurrey.... i solved this problem my self..

very happy  i m.... ;D ;D ;D ;D ;D ;D ;D ;) ;) ;) ;) ;) :) :) :) :) :) :)


if any one face this problem again just PM me...

i m very very happy now... i solved this problem now my ads appeared very well at core,  coustam and deafult curve theme too...

:D :D :D :D :D :D :D :D :) :) :) :) :) :) :) :)
Title: Re: Ad Management mod
Post by: BaghdadGhost on January 03, 2012, 04:08:19 PM
why dont you mention how did you solve it here so everyone in the future benefit from it in case you will be busy in the future to answer a PM
Title: Re: Ad Management mod
Post by: sadaam on January 03, 2012, 04:31:39 PM
have u face a  same problem too...?

http://www.bluedevilcustoms.com/community/index.php/page,page787.html

use  this and make it ur self brother... and be happy.... cheers..!!
Title: Re: Ad Management mod
Post by: Illori on January 03, 2012, 04:33:31 PM
you know the mod site has a package parser on each and every page that has a mod on it?
Title: Re: Ad Management mod
Post by: BaghdadGhost on January 03, 2012, 04:36:36 PM
and that's what I thought also and used the parser he provided and it shows the same step, no changes and the problem is still the same.

Saddam can you just put where did you put this code


echo '<tbody><tr><td colspan="4">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>';


as I can not find

<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';


in the boardindex.template.php of custom theme
Title: Re: Ad Management mod
Post by: sadaam on January 03, 2012, 04:40:11 PM
i found that one is better...

http://www.bluedevilcustoms.com/community/index.php/page,page787.html (http://www.bluedevilcustoms.com/community/index.php/page,page787.html)

thanks Illory for guide me and helping me many times..... Happy new year 2012 to Specially u and all smf communitu users, helpers and support team.... thanks a lot to all of u...
Title: Re: Ad Management mod
Post by: BaghdadGhost on January 03, 2012, 04:41:54 PM
Quote from: sadaam on January 03, 2012, 04:40:11 PM
i found that one is better...

http://www.bluedevilcustoms.com/community/index.php/page,page787.html (http://www.bluedevilcustoms.com/community/index.php/page,page787.html)

thanks Illory for guide me and helping me many times..... Happy new year 2012 to Specially u and all smf communitu users, helpers and support team.... thanks a lot to all of u...

again I used this one you provided and its the same. I CAN NOT FIND

<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';


IN MY COSTUM THEME!
Title: Re: Ad Management mod
Post by: sadaam on January 03, 2012, 04:46:11 PM
Quote<tbody class="divider">
            <tr>
               <td colspan="4"></td>
            </tr>
         </tbody>';

i also cannot find this code

just take simple step...1. uninstall ad management mode

2. unistall all costom themes.

3. then install ad manag ment mod at deafual curve theme

4.then install ur desired coustom theme..& parse...

and the problem is solved...
simple...


did not try to find that code
Quote<tbody class="divider">
            <tr>
               <td colspan="4"></td>
            </tr>
         </tbody>';
Title: Re: Ad Management mod
Post by: Illori on January 03, 2012, 04:47:35 PM
that should not have an affect, and if you install your theme after the mod will not apply its changes to that themes files if it can find the places, given you are running 2.0.
Title: Re: Ad Management mod
Post by: BaghdadGhost on January 03, 2012, 04:48:22 PM
Quote from: sadaam on January 03, 2012, 04:46:11 PM
Quote<tbody class="divider">
            <tr>
               <td colspan="4"></td>
            </tr>
         </tbody>';

i also cannot find this code

just take simple step...1. uninstall ad management mode

2. unistall all costom themes.

3. then install ad manag ment mod at deafual curve theme

4.then install ur desired coustom theme..

and the problem is solved...
simple...

dude this is wrong.. you think it is working but trust me it not working like that. you will find out in the future when you try to put ads between categories or somewhere else.

Title: Re: Ad Management mod
Post by: BaghdadGhost on January 03, 2012, 04:52:56 PM
by the way, I just took a look at you site and at some point I think you have double codes installed for this mod as I see duplication of mod rights at the bottom of your page.

Title: Re: Ad Management mod
Post by: sadaam on January 03, 2012, 04:53:54 PM
look at my forum i m creating... after parseing....

http://www.mobicentral.info/index.php

u have to parse

but that code i trying to find many times but i can't...
just take a look at my forum with coustam theme...
Title: Re: Ad Management mod
Post by: BaghdadGhost on January 03, 2012, 05:03:02 PM
that's why you and me need to be patient until the mod author comes back from the xmas vacation and help us  ;D

in the future if you want to start from scratch you have to:

1. install smf

2. install your custom theme. since you are a beginner I think it would be better for you if you chose a default theme based custom theme in order to avoid many changes to files while installing mods

3. start backup every step you take installing or uninstalling.


Title: Re: Ad Management mod
Post by: sadaam on January 03, 2012, 05:09:02 PM
my problem is solved... if want to solv then parse that one and without find that code just install ... cheers..!!!

see this http://www.mobicentral.info

i make a permission to guest can see ads...
just take a look once...
Title: Re: Ad Management mod
Post by: BaghdadGhost on January 03, 2012, 05:12:45 PM
this is not the only think this mod does. if you just want to put ads under the menu use global header and footer. easy and better for you.

Title: Re: Ad Management mod
Post by: BaghdadGhost on January 03, 2012, 05:21:02 PM
wrong cuz mod installation does effect other files than theme ones. it also inserts codes in many location like source files, main index file and/or ssi.


well I am just trying to clear the view for you.


for me I will just wait for vbgammer or anyone of the coder to help me.


thank and see you in the future back here in this thread.


Title: Re: Ad Management mod
Post by: Get Pumped Saltwater on January 03, 2012, 06:05:52 PM
Ok, I have uploaded the file.. but havent installed it yet. This is a pic of what tested good and what didnt..

I am running a custom theme.

I'm asking ahead of time because I have had a few bad experiences in the past few days where after installing and cannot uninstall after finding the mod doesn't work or whatever...

With what you see can you tell me if I should check mark the box for "core" or just click install?

Also, does it matter if I don't see my "custom" theme listed in the install test?

Thanks, Lance
Title: Re: Ad Management mod
Post by: BaghdadGhost on January 03, 2012, 06:13:33 PM
do you use the core theme?


if you dont then dont click the box and ignore all these errors

what is your custom theme?
Title: Re: Ad Management mod
Post by: Get Pumped Saltwater on January 03, 2012, 06:16:25 PM
no I dont use the Core Theme

Just a Custom Theme.. My designer set up for me..
Title: Re: Ad Management mod
Post by: BaghdadGhost on January 03, 2012, 06:21:01 PM
Quote from: Get Pumped Saltwater on January 03, 2012, 06:16:25 PM
no I dont use the Core Theme

Just a Custom Theme.. My designer set up for me..

since you dont use it then ignore the errors and dont click the box for core. you also want to ask your designer to modify the theme for you

the files to modify are

BoardIndex.template.php

Display.template.php

MessageIndex.template.php

if you dont find any of these dont worry as the custom theme is using the default theme files.


Title: Re: Ad Management mod
Post by: humbleworld on January 05, 2012, 03:11:38 AM
Hi Vbgamer45, I installed this MOD in another forum site of mine. I place the ad every after the first post. Now I would like the title of the forum removed from the ad. I chose that the ad would look like a post itself. But I just want the title of the forum disappear so that what it appears is just the Ad.

Please, how shall I edit it?
Title: Re: Ad Management mod
Post by: shruggin on January 05, 2012, 01:23:24 PM
I have Ad Management v. 2.3 on SMF 2.0.2. I have one ad and the settings are set for HTML and to show up on every page. Everything seems fine until you try and reply to a post topic. Then it seems that the link extends down the page (way past the actual ad image) so if you click on the page anywhere around the post reply box, you are taken to the link that is for the ad. Any ideas on how to make it stop doing this?

Title: Re: Ad Management mod
Post by: Kindred on January 05, 2012, 01:57:20 PM
sounds like you have a problem in the ad code that you inserted....   check that all of your link tags are closed.
Title: Re: Ad Management mod
Post by: shruggin on January 05, 2012, 02:03:11 PM
Exactly it! Thanks for the reminder to look for the simple solution. I thought I had them all but when I looked again I found that one was missing.
Title: Re: Ad Management mod
Post by: BaghdadGhost on January 05, 2012, 02:31:29 PM
Quote from: BaghdadGhost on December 31, 2011, 05:11:18 PM
my problem is related to ads managements mod installing on custom theme with simple portal. here is the problem.


if you parse the mod the second changes to boardindex.template.php is


<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';



add after



echo '<tbody><tr><td colspan="4">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>';



at the time of installing ads mod I was not able to locate the find, therefore I predicted and compared boardindex custom with default boardindex

attached is my boardindex.template file. please take a look at it and see where the above code should be.

for more info about the problem and its effect to SP please visit

http://www.simplemachines.org/community/index.php?topic=227599.msg3236889#msg3236889


thanks

can someone help me with my problem please.


thanks
Title: Re: Ad Management mod
Post by: Get Pumped Saltwater on January 07, 2012, 06:28:59 PM
Mod is installed... But every ad HTML that I put in the "Contents Box" will not show on the forum... Anywhere.. I click add and go to the forum to find it and nothing... Doesn't even look like I did anything.. No extra spaces or nothing..

Trying to put this on or near my footer..

<html>
<head>
<title>Tapatalk-Button-Small</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (Tapatalk-Button-Small.gif) -->
<img src="Tapatalk-Button-Small.gif" width="150" height="50" alt="">
<!-- End ImageReady Slices -->
</body>
</html>

Supposed to look like this: (http://s.reefcentral.com/forums/images/logo/Tapatalk-Button-Small.png)


Custom Theme
2.0.1 SMF

Suggestions Please..

Thanks, Lance
Title: Re: Ad Management mod
Post by: vbgamer45 on January 07, 2012, 07:19:50 PM
Just put <img src="Tapatalk-Button-Small.gif" width="150" height="50" alt="">
And then use an absolute path to the gif file.
Title: Re: Ad Management mod
Post by: sadaam on January 08, 2012, 04:23:35 AM
Quote<tbody class="divider">
            <tr>
               <td colspan="4"></td>
            </tr>
         </tbody>';

frm where ti find this code at    ./Themes/core/BoardIndex.template.php

plz discribe..it is a very big problem and a new challenge 4 smf 2.0.2 users...in    ./Themes/core/BoardIndex.template.php file....

:'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'(
Title: Re: Ad Management mod
Post by: Get Pumped Saltwater on January 08, 2012, 11:46:53 AM
Quote from: vbgamer45 on January 07, 2012, 07:19:50 PM
Just put <img src="Tapatalk-Button-Small.gif" width="150" height="50" alt="">
And then use an absolute path to the gif file.

But, why wont my code work?

I have more ad's to put up, but there all in code.. So whats up with the mod?

Does anyone have an html code for me to test this mod.. I haven't seen any of my ads work with this mod.. Its pretty useless so far.
Title: Re: Ad Management mod
Post by: Get Pumped Saltwater on January 08, 2012, 11:54:23 AM
I got it to work...

<!-- TapaTalk Icon-->
<div align="center">
        <a href="http://www.tapatalk.com" target="_blank"><img src="http://s.reefcentral.com/forums/images/logo/Tapatalk-Button-Small.png"></a></p>
                <div class="smallfont">

                        TapaTalk Enabled</p>
                </div>
</div>
<!-- End TapaTalk Icon -->

Title: Re: Ad Management mod
Post by: vbgamer45 on January 08, 2012, 12:54:06 PM
Glad you got it working.
Title: Re: Ad Management mod
Post by: Get Pumped Saltwater on January 08, 2012, 12:56:51 PM
Quote from: vbgamer45 on January 08, 2012, 12:54:06 PM
Glad you got it working.

I got that one working because I just copyed the location on the forum I got it from...

Im trying to add my own ad and still no joy..

<img src="http://www.getpumpedsaltwater.com/forum/Themes/2011/images/tbrc_393x60-1.gif" border="0">

Not working..
Title: Re: Ad Management mod
Post by: Get Pumped Saltwater on January 08, 2012, 01:07:21 PM
ok.. so what do I need todo to make this pic work?

Title: Re: Ad Management mod
Post by: Gadget Boy on January 13, 2012, 07:50:59 AM
i have some problem with the forum and so i uninstalled this mod and deleted the files "Sources", "Packages" and "Themes" and re-uploaded and now its showing me the prob "An Error Has Occurred! Unable to load the 'Ads' template." whenever i open the forum and cant go to admin panel or anywhere
My forum- http://forum.symbian-developers.net/

please help me, i dont wanna loose everything :(
Title: Re: Ad Management mod
Post by: BaghdadGhost on January 13, 2012, 07:56:22 AM
I think you did many unnecessary changes. sounds like a lot of changes. your comment is not clear. try to explain from the beginning what happen step by step starting from when the forum was working fine and you decided to install the mod.

Title: Re: Ad Management mod
Post by: Gadget Boy on January 13, 2012, 09:17:54 AM
the forum showed error saying that "load.php" had some problem, then i reuploaded "load.php" and it was working fine and then i uninstalled all the mods that i have installed and all the themes, at this time the forum was working fine until then i thought to reupload the forum files and so i deleted the files "Sources", "Packages" and "Themes" and re-uploaded them and now its showing me the prob "An Error Has Occurred! Unable to load the 'Ads' template."

i hope i have explained well :)
Title: Re: Ad Management mod
Post by: Kindred on January 13, 2012, 09:45:40 AM
If you want to remove all mods, then re-upload the files from the large upgrade package and turn OFF custom themes (or remove the edits made to custom themes)

If you just want to remove ONE mod, then you should either run the uninstall or manually remove the code changes.
What you did is almost guaranteed to screw things up.

Title: Re: Ad Management mod
Post by: Gadget Boy on January 13, 2012, 10:03:37 AM
now what to do :(
Title: Re: Ad Management mod
Post by: Illori on January 13, 2012, 10:06:11 AM
maybe Installed a mod? Broke your forum? No backup? This might help. (http://www.simplemachines.org/community/index.php?topic=400356.0) can help you
Title: Re: Ad Management mod
Post by: chelseaphil on January 14, 2012, 08:37:48 AM
I have been using this mod for a few years and it is great.  But now I am running out of banner space.  Is there anyway that an additional banner can be added alongside the existing ones. arboleas.co.uk/forum to see what I have now.  Any help appreciated. Phil
Title: Re: Ad Management mod
Post by: luuuciano on January 14, 2012, 11:27:50 AM
well, it looks like you have place for two banners in each row... just add some css styles to float them, one left, one rigth

btw... your members do not get annoyed by so many banners? its amazing... you will have more banners than real content
Title: Re: Ad Management mod
Post by: fullmoonya on January 14, 2012, 10:39:14 PM
sir vbgamer, im having a problem in displaying ads in the boards. it seems that it does not do anything. in other parts too it doesn't do a thing. i tried to fix it but cant find the root of problem in the board. does it have a problem in the mod that i installed? because i installed the mod named started by column in my forum.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 14, 2012, 10:50:36 PM
If you are using a custom theme make sure the mod is installed on that custom theme as well.
Title: Re: Ad Management mod
Post by: fullmoonya on January 14, 2012, 10:53:33 PM
Quote from: vbgamer45 on January 14, 2012, 10:50:36 PM
If you are using a custom theme make sure the mod is installed on that custom theme as well.
i'm using default theme of smf 2.0.2. some parts are working fine. but the other parts seems to not showing the ads.
Title: Re: Ad Management mod
Post by: chelseaphil on January 15, 2012, 04:52:54 AM
Quote from: luuuciano on January 14, 2012, 11:27:50 AM
well, it looks like you have place for two banners in each row... just add some css styles to float them, one left, one rigth

btw... your members do not get annoyed by so many banners? its amazing... you will have more banners than real content


Not sure how to do that. CSS is not my thing. As to number of banners, yeah there are a few. But when we keep getting local businesses asking to have a banner it is hard to say no. But we have just about reached the limit.
Title: Re: Ad Management mod
Post by: luuuciano on January 15, 2012, 06:07:46 PM
You may try DFP https://www.google.com/dfp/
And think a shared place/s for banner... they will rotate over there, and located on the same positions at your % needed to be, etc... more equality on them then
Title: Re: Ad Management mod
Post by: rootuid on January 15, 2012, 06:36:43 PM
Hi,
I get the following. Why is it failing for "Install in Other Themes". I have two themes, core and default.  Thanks.




Install Mod
Please remember to always make regular backups of your sources and database before installing mods, especially beta versions.
Installations actions for "Ad Managment"
Installing this package will perform the following actions:
      Type    Action    Description
   1.    Execute Code    install.php    
*    2.    Execute Modification    ./index.php    Test successful
*    3.    Execute Modification    ./Sources/Admin.php    Test successful
*    4.    Execute Modification    ./Sources/QueryString.php    Test successful
*    5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
*    6.    Execute Modification    ./Themes/default/Display.template.php    Test successful
*    7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
*    8.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
   9.    Extract File    ./Sources/Ads.php    
   10.    Extract File    ./Sources/LoadAds.php    
   11.    Extract File    ./Themes/default/Ads.template.php    
   12.    Extract File    ./Themes/default/languages/Ads.english.php    
   13.    Extract File    ./Themes/default/languages/Ads.english-utf8.php    

Install in Other Themes
To use this modification in themes other than the default, the package manager needs to make additional changes to the other themes. If you'd like to install this modification in the other themes, please select these themes below.
      Core Theme
      Execute Modification    ./Themes/core/BoardIndex.template.php    Test failed
      1.    Add Before    ./Themes/core/BoardIndex.template.php    Test successful
      2.    Add After    ./Themes/core/BoardIndex.template.php    Test failed
      Execute Modification    ./Themes/core/Display.template.php    Test failed
      1.    Add After    ./Themes/core/Display.template.php    Test successful
      2.    Replace    ./Themes/core/Display.template.php    Test successful
      3.    Replace    ./Themes/core/Display.template.php    Test failed
      Execute Modification    ./Themes/core/MessageIndex.template.php    Test failed
      1.    Add After    ./Themes/core/MessageIndex.template.php    Test successful
      2.    Replace    ./Themes/core/MessageIndex.template.php    Test failed
Title: Re: Ad Management mod
Post by: vbgamer45 on January 15, 2012, 07:09:59 PM
The mod only supports the default theme. For other themes they have to be manually installed on them to work correctly.
Title: Re: Ad Management mod
Post by: BaghdadGhost on January 15, 2012, 09:31:17 PM
Quote from: BaghdadGhost on December 31, 2011, 05:11:18 PM
my problem is related to ads managements mod installing on custom theme with simple portal. here is the problem.


if you parse the mod the second changes to boardindex.template.php is


<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';



add after



echo '<tbody><tr><td colspan="4">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>';



at the time of installing ads mod I was not able to locate the find, therefore I predicted and compared boardindex custom with default boardindex

attached is my boardindex.template file. please take a look at it and see where the above code should be.

for more info about the problem and its effect to SP please visit

http://www.simplemachines.org/community/index.php?topic=227599.msg3236889#msg3236889


thanks

vb,

I did all changes except this one I need you help with.

thanks
Title: Re: Ad Management mod
Post by: rootuid on January 16, 2012, 03:20:37 AM
Quote from: vbgamer45 on January 15, 2012, 07:09:59 PM
The mod only supports the default theme. For other themes they have to be manually installed on them to work correctly.
Thanks for your reply.
MY Overall forum default: SMF DEFAULT CURVE
I have two other themes installed. If I remove the other themes I shouldn't get this warning right ?
Title: Re: Ad Management mod
Post by: rootuid on January 16, 2012, 05:22:30 AM
I removed the other themes and everything works fine. Thanks.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 16, 2012, 01:11:09 PM
Glad you have it working.
Title: Re: Ad Management mod
Post by: fullmoonya on January 16, 2012, 10:15:04 PM
mine is still not showing ads in some part of my forum. i install again my smf2.0.1 and updated to 2.0.2. i didnt install other theme there. what seems to be the problem? :/
Title: Re: Ad Management mod
Post by: vbgamer45 on January 16, 2012, 11:53:07 PM
Default theme?
Do you give each membergroup permission to view ads?
Title: Re: Ad Management mod
Post by: fullmoonya on January 17, 2012, 12:42:40 AM
Quote from: vbgamer45 on January 16, 2012, 11:53:07 PM
Default theme?
Do you give each membergroup permission to view ads?

for admin permission is enabled. it shows ads in some parts but in other parts it doesnt display any ads.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 17, 2012, 12:44:08 AM
Are you using default theme?
Title: Re: Ad Management mod
Post by: fullmoonya on January 17, 2012, 01:11:29 AM
Quote from: vbgamer45 on January 17, 2012, 12:44:08 AM
Are you using default theme?
yes sir, im using default theme. the only problem is ads are not showing in the boards.

EDIT:

okay sir, forget about my previous problem. i'll just change my question.

how can i set pemission in some specific ads? like i only want regular members can see this ads or only the membergroup i created can see the ads? what codes should i put in that?

EDIT2:

no need for this problem to be solve. i figured out now how. :)
Title: Re: Ad Management mod
Post by: backend on January 23, 2012, 04:46:09 PM
I have a simple non-technical question before I install this mod:

for those that have installed this on their forum, has your Adsense earnings generally gone up?

THANK YOU
Title: Re: Ad Management mod
Post by: vbgamer45 on January 23, 2012, 04:48:48 PM
Well it depends on your placements and how you are using them. The more placements you have generally the more chances for higher click rates.
Title: Re: Ad Management mod
Post by: Kindred on January 23, 2012, 05:15:30 PM
on the other hand... the more ads you have, the more it annoys your users.
Title: Re: Ad Management mod
Post by: fullmoonya on January 23, 2012, 09:47:55 PM
not really like that. it depends on the ads you want to put. it will be really annoying if its a pop up a framebraker or sliding ads that blocks some part of your forums.
Title: Re: Ad Management mod
Post by: Altzone on February 01, 2012, 08:30:07 PM
Hi
Apologies if this is not the right section to ask.
I'm using the SMFADS plugin to display a leaderboard banner ad on my site:
http://www.eevblog.com/forum [nofollow]
But I'd like to move this ad from below the menu bar, to the blank unused section in the middle of the screen above the menu bar, between the users profile/login info on the left and the search bar on the right. (I guess that's the "header" section?)
Is this possible in some way? With another ad plugin, or even custom code mods?

Thanks
Dave.
Title: Re: Ad Management mod
Post by: vbgamer45 on February 01, 2012, 09:18:25 PM
Should be possible to move I think so SMF 2.0 uses layers do depends where layers inject header code
Title: Re: Ad Management mod
Post by: smitch6 on February 06, 2012, 05:28:18 AM
can this or any other ad mod automatically rotate the ads?
so the change every few seconds without refreshing the page pls?
Title: Re: Ad Management mod
Post by: smitch6 on February 06, 2012, 05:55:16 AM
also i have an ad for 123reg and no matter what i do i can't get it to sit central it;'s always to the left

is there a simple way to make the ads sit central pls?
Title: Re: Ad Management mod
Post by: Kindred on February 06, 2012, 07:39:15 AM
<center> </center>
Title: Re: Ad Management mod
Post by: smitch6 on February 06, 2012, 07:57:37 AM
tried the centre tags it didn't work?????
Title: Re: Ad Management mod
Post by: RSC17 on February 06, 2012, 07:02:20 PM
It won't let me install this mod.

I get this:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

This is what I have installed...

1.     Adk Portal2.0    
2.    Member Color Link    3.1    
3.    Yet Another Global Announcements Mod 2.7.4    
4.    SMF Multi Quote    1.1.3    
5.    View Voters at Polls    1.0    
6.    SimpleColorizer    1.1    
7.    Member Color Link    3.0.8    
8.    SMF Links    2.3.2    
9.    Contact Page    3.0    
10.    KeyCAPTCHA for SMF    2.2    
11.    Enhanced PM Popup    1.0.1    
12.    VB Style Board Index    1.91    
13.    Aeva ~ Auto-Embed Video & Audio    7.2    
14.    SMF Trader System    1.6    
15.    Tapatalk SMF 2.0 RC4/RC5/Final Plugin
Title: Re: Ad Management mod
Post by: vbgamer45 on February 06, 2012, 07:11:54 PM
You will have to install it manually for the parts that failed.
Title: Re: Ad Management mod
Post by: Leemy on February 16, 2012, 02:21:45 PM
I have a skyscaper ad that displays on my default theme (SMF default) but it also shows on my mobile/iphone theme (the SMF4iphone mod and theme). How can I disable this placement for that theme? In general, how can you disable an ad for a specific theme? Thanks
Title: Re: Ad Management mod
Post by: vbgamer45 on February 16, 2012, 03:08:57 PM
You would need to check the $ID_THEME variable if matches the smf mobile theme and if it does do not show the ad
Title: Re: Ad Management mod
Post by: zeancasino on February 16, 2012, 09:08:20 PM
I install this mod (3.0.1) , I find that ...

if the users who use same Lan  log in my SMF board more than 1 user The banners is not Show

How fix this problem ?
Title: Re: Ad Management mod
Post by: vbgamer45 on February 16, 2012, 09:26:50 PM
You have to adjust permissions under SMF -> Admin -> Permissions adjust for each membergroup enable ads permission
Title: Re: Ad Management mod
Post by: zeancasino on February 16, 2012, 09:57:05 PM
Quote from: vbgamer45 on February 16, 2012, 09:26:50 PM
You have to adjust permissions under SMF -> Admin -> Permissions adjust for each membergroup enable ads permission

Where The "enable ads permission" ??
Title: Re: Ad Management mod
Post by: vbgamer45 on February 16, 2012, 10:02:11 PM
Should be under permissions when you modify a group
Title: Re: Ad Management mod
Post by: zeancasino on February 16, 2012, 10:12:38 PM
Quote from: vbgamer45 on February 16, 2012, 09:26:50 PM
You have to adjust permissions under SMF -> Admin -> Permissions adjust for each membergroup enable ads permission

OH !

I finded The "enable ads permission" already . It is below "Carry out administrative duties"

Thanks so must

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Title: Re: Ad Management mod
Post by: vbgamer45 on February 16, 2012, 10:16:05 PM
No problem glad to help
Title: Re: Ad Management mod
Post by: debbiet on February 24, 2012, 03:58:28 PM
Hello!

I've been an ad Management user for a few years, and just today, I upgraded from an older version of SMF beta to the latest version 2.0.2.

As expected, my ads were gone, and I couldn't install through the "packages" so I edited the file code manually.

I don't seem to have any issues with the google ads placement now, but I do not see the ad management settings link on the left menu column. What did I do wrong?

I uploaded all 5 files to each specified folder, but I did not do anything with the install.php file. Is that my mistake?

Please help! Thank you very much!
Title: Re: Ad Management mod
Post by: vbgamer45 on February 24, 2012, 03:59:29 PM
Missing either the link in the admin.php in the sources folder.

Or you need to clear your cache under forum maintenance to have it shown.
Title: Re: Ad Management mod
Post by: debbiet on February 24, 2012, 04:55:28 PM
Okay, thank you for responding.

I figured out the problem. For some reason, the file permissions were all messed up, not allowing anyone to "read" the uploaded ad management files.

Once they were fixed, the settings/options appeared in my left menu. Phew. Thank you very much, it appears all is well now.

I do have one more question, if you have the time.

I'm wondering if I can somehow delete the older file that is in the "packages manager" - can I physically delete it from the packages directory using FTP, or will that mess things up?

Thanks for your help, again!
Title: Re: Ad Management mod
Post by: vbgamer45 on February 24, 2012, 05:15:03 PM
Yeah you can remove older packagess that are not installed without any issues.
Title: Re: Ad Management mod
Post by: debbiet on February 24, 2012, 05:29:56 PM
Thanks!
Title: Re: Ad Management mod
Post by: vbgamer45 on February 24, 2012, 05:32:37 PM
Glad to help
Title: Re: Ad Management mod
Post by: jayc on February 27, 2012, 07:47:19 PM
I have been trying to download Ad Management mod 3.0 for over a week now (Feb 2012), when I click on the download link I get the following error message every time.

Temporarily Unavailable
Due to high stress on the server the forum is temporarily unavailable. Please try again later.

Is there an estimated date/time when the download will be available?  I also gave the SMFHacks site a try but cannot seem to even locate it there

Vegas Jay - Still alive and somewhat kicking
Title: Re: Ad Management mod
Post by: NanoSector on February 28, 2012, 10:28:38 AM
Quote from: jayc on February 27, 2012, 07:47:19 PM
I have been trying to download Ad Management mod 3.0 for over a week now (Feb 2012), when I click on the download link I get the following error message every time.

Temporarily Unavailable
Due to high stress on the server the forum is temporarily unavailable. Please try again later.

Is there an estimated date/time when the download will be available?  I also gave the SMFHacks site a try but cannot seem to even locate it there

Vegas Jay - Still alive and somewhat kicking
I can download it fine. Try again later.
Title: Re: Ad Management mod
Post by: Cool_Hand_Luke on March 01, 2012, 12:29:26 AM
After installing, I cannot see the ads in Fire Fox 10.0.2, but I can see them in IE and Chrome.  I have disabled AdBlock Plus for my site, but that didn't work. 

Any ideas?
Title: Re: Ad Management mod
Post by: luuuciano on March 01, 2012, 01:54:57 AM
Give an url to see it in action, describe where is the ad located
Title: Re: Ad Management mod
Post by: Cool_Hand_Luke on March 01, 2012, 02:01:05 AM
Quote from: luuuciano on March 01, 2012, 01:54:57 AM
Give an url to see it in action, describe where is the ad located


http://corclan.org/index.php?board=11.0

Under the Breadcrumbs.  I can see it in Chrome and IE, but not FF.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 01, 2012, 11:28:36 AM
I can see the ad in my firefox version
Title: Re: Ad Management mod
Post by: PSM on March 01, 2012, 09:46:39 PM
I've been using the Ad Management mod for a while on my 2.0.2 SMF forum and just noticed an issue.  Always had Google ads displaying at the top of every page under the menu, but tonight I tried to put a custom ad in and make it display on only certain forums at the top under the menu but it won't display.  I got the ad to display on every page if I don't list specific boards but if I put any number in the "Which boards should this ad display in" category, it doesn't display anywhere.  I've removed all other ads to make sure there's no conflict and it still won't show up in specific boards.

I will note that I'm running the Silent Wave theme but this is the first issue I've noticed with any of my mods.  I have installed the most recent version of Ad Management, as well.

Any help?
Title: Re: Ad Management mod
Post by: fullmoonya on March 02, 2012, 02:16:24 AM
Quote from: PSM on March 01, 2012, 09:46:39 PM
I've been using the Ad Management mod for a while on my 2.0.2 SMF forum and just noticed an issue.  Always had Google ads displaying at the top of every page under the menu, but tonight I tried to put a custom ad in and make it display on only certain forums at the top under the menu but it won't display.  I got the ad to display on every page if I don't list specific boards but if I put any number in the "Which boards should this ad display in" category, it doesn't display anywhere.  I've removed all other ads to make sure there's no conflict and it still won't show up in specific boards.

I will note that I'm running the Silent Wave theme but this is the first issue I've noticed with any of my mods.  I have installed the most recent version of Ad Management, as well.

Any help?
type first a text content in the textarea where you put ads in this mod then find the text you put in the ad content. if you find the text then i guess the problem is in the ads you put.
Title: Re: Ad Management mod
Post by: PSM on March 02, 2012, 08:26:30 AM
Quote from: fullmoonya on March 02, 2012, 02:16:24 AM
Quote from: PSM on March 01, 2012, 09:46:39 PM
I've been using the Ad Management mod for a while on my 2.0.2 SMF forum and just noticed an issue.  Always had Google ads displaying at the top of every page under the menu, but tonight I tried to put a custom ad in and make it display on only certain forums at the top under the menu but it won't display.  I got the ad to display on every page if I don't list specific boards but if I put any number in the "Which boards should this ad display in" category, it doesn't display anywhere.  I've removed all other ads to make sure there's no conflict and it still won't show up in specific boards.

I will note that I'm running the Silent Wave theme but this is the first issue I've noticed with any of my mods.  I have installed the most recent version of Ad Management, as well.

Any help?
type first a text content in the textarea where you put ads in this mod then find the text you put in the ad content. if you find the text then i guess the problem is in the ads you put.

I may not have explained my issue and troubleshooting so far clearly.  I can get the new ads to display, whether text or a picture-based ad I've created.  As long as I leave the "Which boards should this ad display in" category field blank, they show up properly wherever I tell them to display (top of page, bottom of page, etc).  It's only once I put a board number into this particular field that the ad stops displaying altogether.  It's almost as if once I enter a board number or numbers into this field, it just turned off the ad altogether.

Again, I can get both text and picture-based ads to display as long as I leave them on for all boards/pages across the site.  Any thoughts?

EDIT:  I'll also note that I just attempted to uninstall the package and reinstall it to make sure I'm on the most current version and there are no errors, but I received the following errors when trying to uninstall (I have not completed the uninstall as I'm waiting for advice on how to proceed):

1.   Execute Modification   ./index.php   Test successful
   2.   Execute Modification   ./Sources/Admin.php   Test failed
   1.   Replace   ./Sources/Admin.php   Test successful
   2.   Replace   ./Sources/Admin.php   Test failed
   3.   Execute Modification   ./Sources/QueryString.php   Test successful
   4.   Execute Modification   ./Themes/default/BoardIndex.template.php   Test successful
   5.   Execute Modification   ./Themes/default/Display.template.php   Test successful
   6.   Execute Modification   ./Themes/default/MessageIndex.template.php   Test successful
   7.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
8.   Delete File   ./Sources/Ads.php   
9.   Delete File   ./Sources/LoadAds.php   
10.   Delete File   ./Themes/default/Ads.template.php   
11.   Delete File   ./Themes/default/languages/Ads.english.php   
12.   Delete File   ./Themes/default/languages/Ads.english-utf8.php   
13.   Execute Code   UnInstall.php   
Title: Re: Ad Management mod
Post by: Doug Varrieur on March 02, 2012, 04:51:49 PM
Hi all, my forum has become extremely busy and it's time to monetize it http://www.fattoskinny.net/index.php I'm using 1.1.16 AND a custom theme. Before I download the package can you tell me what steps I'll need to take to make it work with the theme I'm using?

Thanks in advance
Title: Re: Ad Management mod
Post by: vbgamer45 on March 02, 2012, 05:05:33 PM
SMF 1.1.x you would have to install it manually on any of the custom template files that is mod edits but just install it normally then apply edits to your custom theme.
Title: Re: Ad Management mod
Post by: Doug Varrieur on March 03, 2012, 08:32:08 AM
OK, is there a set of instructions with the package explaining how to make those manual edits? Also, I see 2 different packages to download, which one is for my version of SMF?

Thanks in advance :)

Doug
Title: Re: Ad Management mod
Post by: vbgamer45 on March 03, 2012, 11:52:19 AM
The package should say either SMF1.1.x or SMF2.0.X in the filename manual install instructions are on the mod page.
Title: Re: Ad Management mod
Post by: Doug Varrieur on March 03, 2012, 02:07:17 PM
Downloaded the package and now it's time for the manual edits. Am I editing the files within the root folder or within the themes folder for the theme I'm using?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 03, 2012, 02:20:09 PM
Just within the theme folder for your custom theme.
Title: Re: Ad Management mod
Post by: Doug Varrieur on March 03, 2012, 03:48:56 PM
Done and up and running....Thanks!
Title: Re: Ad Management mod
Post by: vbgamer45 on March 03, 2012, 04:38:37 PM
Glad you were able to get it working
Title: Re: Ad Management mod
Post by: BaghdadGhost on March 04, 2012, 10:32:32 AM
Hi,

I noticed one thing. all sites that have this mod installed have copy rights on the bottom of their pages. why I don't have it. is it possible that part of the mod was not installed properly?

can the author tell me how to add it or guide me by PM. also what else to do to make sure the mod installed correctly?


thanks
Title: Re: Ad Management mod
Post by: Kindred on March 04, 2012, 04:54:32 PM
yes....

more specifically, it depends on what file is to be edited.
Title: Re: Ad Management mod
Post by: henry74 on March 05, 2012, 06:52:06 PM
Hi Im Trying to do something with Ad Management and I dont know if it is possible or not.  In my index page (http://www.multicopters.es)   I have a single banner, but now I need to have a banner with two different contents in loop.  I know how to do that just creating a animated gif with photoshop.  My question is how to link the different frames to different URL's.   

Is there any other simple way to do this through Ad Management ¿?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 05, 2012, 07:14:37 PM
You would need to use either a javascript or php code to do a loop that would display a random ad or in order with the right links to the site.
Title: Re: Ad Management mod
Post by: henry74 on March 05, 2012, 07:25:48 PM
thank you very much for your fast response.

I was using this simple HTML code:

<center><a href="http://www.rc-innovations.es" target="_blank"><img src="http://www.multicopters.es/imagenes/rci1.jpg" border="0" alt="concurso"></a></center>

Could you post me an example in PHP ?? I have no idea in PHP

Thank You
Title: Re: Ad Management mod
Post by: vbgamer45 on March 05, 2012, 07:26:54 PM
Search for javascript ad rotater on google
Title: Re: Ad Management mod
Post by: Illori on March 05, 2012, 07:30:37 PM
last i checked, if you had more then one ad set to use the same space it would auto-rotate for you on each page load, so an ad rotator script would not be needed.
Title: Re: Ad Management mod
Post by: henry74 on March 05, 2012, 07:52:14 PM
Quote from: vbgamer45 on March 05, 2012, 07:26:54 PM
Search for javascript ad rotater on google

Got it man, Thank you so much.
Title: Re: Ad Management mod
Post by: Cool_Hand_Luke on March 06, 2012, 08:34:39 PM
Quote from: Cool_Hand_Luke on March 01, 2012, 02:01:05 AM
Under the Breadcrumbs.  I can see it in Chrome and IE, but not FF.

I found the problem.  I had checked, Turn ads off for admins...lol...duh
Title: Re: Ad Management mod
Post by: vbgamer45 on March 06, 2012, 08:49:05 PM
Glad you were able to figure it out and get it working.
Title: Re: Ad Management mod
Post by: doggiestylesaustin on March 14, 2012, 12:37:31 AM
Okay I First want to say that I LOVE this mod and it works great and is easy to use thank you so much for creating it or buying it and keeping it going or whatever. It Rocks! 

I am having an issue and I am wondering if anyone knows of a way to fix it. I have mobile detect installed and I have the Iphone theme as the mobile default. While my site looks great with the ads the mobile version is all messed up. Is there anyway that I can make it not run ads when someone is using the mobile version or run different ads or something so they don't jack up the mobile lay out.  Does this make sense and is there an answer to this question or a trick that anyone might know. Thank you!
Title: Re: Ad Management mod
Post by: fullmoonya on March 14, 2012, 02:03:02 AM
Quote from: doggiestylesaustin on March 14, 2012, 12:37:31 AM
Okay I First want to say that I LOVE this mod and it works great and is easy to use thank you so much for creating it or buying it and keeping it going or whatever. It Rocks! 

I am having an issue and I am wondering if anyone knows of a way to fix it. I have mobile detect installed and I have the Iphone theme as the mobile default. While my site looks great with the ads the mobile version is all messed up. Is there anyway that I can make it not run ads when someone is using the mobile version or run different ads or something so they don't jack up the mobile lay out.  Does this make sense and is there an answer to this question or a trick that anyone might know. Thank you!
you mean adding additional option for putting ads in mobile theme?..
Title: Re: Ad Management mod
Post by: Kindred on March 14, 2012, 07:47:03 AM
so, just remove the code edits to the mobile theme.......
Title: Re: Ad Management mod
Post by: Doug Varrieur on March 14, 2012, 09:39:02 AM
I LOVE this mod!! after a few simple custom theme code adjustments which are very simply described...cut and paste....changes it works great. I have a question for you.

At the bottom of my forum I'd like to have a multiple text link add box with several text (link) ads and the ability to click an arrow to bring up a new grouping of text (link) ads. I hope I'm describing this correctly, please look at the forum site to see what I'm talking about;

http://www.affiliateseeking.com/forums/    In this case this forum has what I want at the top. Any advice would be greatly appreciated. THANKS
Title: Re: Ad Management mod
Post by: doggiestylesaustin on March 14, 2012, 05:50:19 PM
Quote from: Kindred on March 14, 2012, 07:47:03 AM
so, just remove the code edits to the mobile theme.......

Maybe I am wrong but I don't believe any edits where made to the mobile theme. I believe it is using the default themes templates to run or something. Is there still a way to fix it?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 14, 2012, 05:51:35 PM
New version uses layers you can check the theme id and if it matches the mobile theme id do not show ads
Title: Re: Ad Management mod
Post by: doggiestylesaustin on March 14, 2012, 05:58:15 PM
Quote from: fullmoonya on March 14, 2012, 02:03:02 AM
Quote from: doggiestylesaustin on March 14, 2012, 12:37:31 AM
Okay I First want to say that I LOVE this mod and it works great and is easy to use thank you so much for creating it or buying it and keeping it going or whatever. It Rocks! 

I am having an issue and I am wondering if anyone knows of a way to fix it. I have mobile detect installed and I have the Iphone theme as the mobile default. While my site looks great with the ads the mobile version is all messed up. Is there anyway that I can make it not run ads when someone is using the mobile version or run different ads or something so they don't jack up the mobile lay out.  Does this make sense and is there an answer to this question or a trick that anyone might know. Thank you!
you mean adding additional option for putting ads in mobile theme?..
Actually no I want to stop the ads from running on the mobile theme cause the screw up the lay out. It would be great if I could use different ads on the mobile theme that would fit the lay out but I know that would take a whole new mod. so I am asking is there away to just disable the ads from the mobile version. Thanks
Title: Re: Ad Management mod
Post by: doggiestylesaustin on March 14, 2012, 06:01:21 PM
Quote from: vbgamer45 on March 14, 2012, 05:51:35 PM
New version uses layers you can check the theme id and if it matches the mobile theme id do not show ads

Thanks I am not sure if I am savvy enough to figure this out but this gives me a direction to go in. I really appreciate the help. Thanks again
Title: Re: Ad Management mod
Post by: doggiestylesaustin on March 14, 2012, 06:41:28 PM
Okay apparently I am clueless I have been all over my site and tried to find  what you are talking about but I have no idea. I hate to be the one who is so lost but I really need a little more detail as to what you mean by the above. I don't know how to find my theme id. I know it is sad can someone please help me out here. I am sure I am missing something really simple that is the part that is killing me. Thanks.
Until then I will keep looking and trying to figure this out.
Title: Re: Ad Management mod
Post by: doggiestylesaustin on March 17, 2012, 04:02:44 AM
Quote from: doggiestylesaustin on March 14, 2012, 06:01:21 PM
Quote from: vbgamer45 on March 14, 2012, 05:51:35 PM
New version uses layers you can check the theme id and if it matches the mobile theme id do not show ads

can someone please please elaborate on what this means and how do I find the themes id? Thank you
Title: Re: Ad Management mod
Post by: vbgamer45 on March 19, 2012, 12:45:16 PM
it is $ID_THEME variable in SMF 1.1.x 2.0 not sure what it is.
Also you can test using ?theme=### in the url.
Title: Re: Ad Management mod
Post by: technical4u28 on March 21, 2012, 01:22:03 PM
Unable to load the 'Ads' template.

like this error occur how i can change
Title: Re: Ad Management mod
Post by: vbgamer45 on March 21, 2012, 01:27:14 PM
How did you install the mod?
Title: Re: Ad Management mod
Post by: Mayhem30 on March 22, 2012, 01:36:52 AM
When I enter in the following code, the ad management mod doesn't parse it correctly :

<script type="text/javascript">
var addthis_config = { ui_click: true }
var addthis_share = { templates: { twitter: '{{title}} - {{url}}' } }
</script>


It basically turns this :

Clue Secrets & Spies Episode Giveaway: http://www.pogocheats.net/forum/index.php/topic,41214.0.html#.T2q5xnDhwSw.twitter via @AddThis

Into this :

Clue Secrets & Spies Episode Giveaway - http://bit.ly/GN7sox

It cleans up the formatting quite a bit when someone tweets a post.

How do I fix this issue? The code works perfectly on my website - but not when I enter it in to the ad management mod.
Title: Re: Ad Management mod
Post by: Doug Varrieur on March 22, 2012, 08:36:58 AM
I posted this about ten days ago and never got a response, do you think you can help me?

I LOVE this mod!! after a few simple custom theme code adjustments which are very simply described...cut and paste....changes it works great. I have a question for you.

At the bottom of my forum I'd like to have a multiple text link add box with several text (link) ads and the ability to click an arrow to bring up a new grouping of text (link) ads. I hope I'm describing this correctly, please look at the forum site to see what I'm talking about;

http://www.affiliateseeking.com/forums/    In this case this forum has what I want at the top. Any advice would be greatly appreciated. THANKS
Title: Re: Ad Management mod
Post by: ZerK on March 23, 2012, 12:47:40 AM
Hey congratulations for this great MOD!

Is there any way to add ads everywhere EXCEPT in the boards that I specify... and also in the posts of those boards.
Title: Re: Ad Management mod
Post by: simon36 on March 23, 2012, 06:40:01 AM
Hi, my install fails through the package manager. Does the mod only install on the curve theme? I use the core theme. Thank you.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 23, 2012, 11:22:23 AM
Yes only installs on curve theme for 2.0 by default.
Title: Re: Ad Management mod
Post by: simon36 on March 23, 2012, 11:26:38 AM
thanks for the reply, shame though as I would have liked to use it. Not wanting to do the manual edits.
Title: Re: Ad Management mod
Post by: technical4u28 on March 25, 2012, 09:09:04 AM
Thanks friend
Title: Re: Ad Management mod
Post by: SBDave on March 27, 2012, 01:46:17 PM
Quote from: Motorhead on September 04, 2011, 07:08:12 AM
This isn't exclusive to this mod but I've tried to install a couple of mods in last week and they have thrown up errors on the install test.
The errors all occur in the additional theme I want to install in.
Problem is the additional theme is the one Im using :)

It seems that the Find and Replace or Add After doesn't work because the line being looked for doesn't exisit.
So even a manual install can't be done, at least not without knowing where or what to put

I have 2 themes Curve and Core, Core is the one I use and can't install all mods to.


Quote<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';

Not found in Boardindex.template

similar situation with display.templateand messageindex.template

I'm having this same problem. "tbody" is not found in  my custom theme's files. How do I proceed with installing this mod? Thanks!
Title: Re: Ad Management mod
Post by: vbgamer45 on March 27, 2012, 02:08:22 PM
Find it in the default theme then look for a similar area in your custom theme that is generally what I do.
Title: Re: Ad Management mod
Post by: SBDave on March 27, 2012, 02:13:59 PM
Thank you for the quick reply and for your assistance! I'll give it a try and keep ya posted.
Title: Re: Ad Management mod
Post by: SBDave on March 27, 2012, 02:48:51 PM
Ok. I was successful in modifying BoardIndex.template.php.

However, I'm running into problems with Display.template.php. The instructions ask me to replace this:

Code (find) Select

}

echo '
</form>';
echo '
</div>
<a id="lastPost"></a>';

With this:

Code (replace) Select

if (function_exists("show_posts"))
{
$messageStorage = $message;
if ($adpost = show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="poster">
<h4>', $context['forum_name'], '</h4>
</div>
<div class="postarea">
<div class="flow_hidden">
<div class="keyinfo">
<div class="messageicon">
<img src="', $message['icon_url'] . '" alt="" border="0" />
</div>
<h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>
<div class="smalltext">&#171; <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' &#187;</div>
<div id="msg_', $message['id'], '_quick_mod"></div>
</div>';

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
<ul class="reset smalltext quickbuttons">';

// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<li class="modify_button"><a>', $txt['modify'], '</a></li>';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<li class="remove_button"><a>', $txt['remove'], '</a></li>';

// What about splitting it off the rest of the topic?
if ($context['can_split'] && !empty($context['num_replies']))
echo '
<li class="split_button"><a>', $txt['split'], '</a></li>';

// Can we restore topics?
if ($context['can_restore_msg'])
echo '
<li class="restore_button"><a>', $txt['restore_message'], '</a></li>';

if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
</ul>';

echo '
</div>';


// Show the post itself, finally!
echo '
<div class="post">';

echo '
<div class="inner" id="msg_', $message['id'], '"', '>', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>
</div>';


echo '
</div>


<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
else
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>

<div align="center">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>

<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
}
}

if(function_exists("show_lastpostAds") && function_exists("show_posts"))
{
$message = $messageStorage;
if(($adpost = show_lastpostAds()) && !show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="poster">
<h4>', $context['forum_name'], '</h4>
</div>
<div class="postarea">
<div class="flow_hidden">
<div class="keyinfo">
<div class="messageicon">
<img src="', $message['icon_url'] . '" alt="" border="0" />
</div>
<h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>
<div class="smalltext">&#171; <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' &#187;</div>
<div id="msg_', $message['id'], '_quick_mod"></div>
</div>';

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
<ul class="reset smalltext quickbuttons">';

// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<li class="modify_button"><a>', $txt['modify'], '</a></li>';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<li class="remove_button"><a>', $txt['remove'], '</a></li>';

// What about splitting it off the rest of the topic?
if ($context['can_split'] && !empty($context['num_replies']))
echo '
<li class="split_button"><a>', $txt['split'], '</a></li>';

// Can we restore topics?
if ($context['can_restore_msg'])
echo '
<li class="restore_button"><a>', $txt['restore_message'], '</a></li>';

if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
</ul>';

echo '
</div>';


// Show the post itself, finally!
echo '
<div class="post">';

echo '
<div class="inner" id="msg_', $message['id'], '"', '>', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>
</div>';


echo '
</div>


<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
else
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>

<div align="center">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>

<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
}

echo '
</form>
</div>
<a id="lastPost"></a>';


I do so, but the install test still fails for Display.template.php. Any thoughts?
Title: Re: Ad Management mod
Post by: SBDave on March 27, 2012, 03:15:43 PM
Should I change my theme? Are custom "Curve" themes typically more compatible with mods?
Title: Re: Ad Management mod
Post by: Kindred on March 27, 2012, 03:42:31 PM
1- PLEASE use the code BBC tags...
2- do not serial post. If you have an edit to a post before any responses, modify your previous post.


you're going to run into that alot with Core....   core is the old 1.1.x design with only tweaks to get it running on 2.0. It does not take advantage of most of the coding improvements (like divs instead of tables) in Curve.
You don't have to use a Curve clone... but the further you get away from Curve, the more likely you are to have to figure out the manual insertion points.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 27, 2012, 04:05:15 PM
If you made the change to the Display.template already it is ok for it to fail on install.
Title: Re: Ad Management mod
Post by: simon36 on March 27, 2012, 05:24:15 PM
Could I request that you include the core theme as well as the curve theme? Thank you.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 27, 2012, 05:26:12 PM
Probably not going to happen.
Title: Re: Ad Management mod
Post by: Raju Gunnal on March 29, 2012, 02:18:14 AM
Hi All,

I am using smf forum version 2.0.2 and recently i  have approved for google adsense account. I have installed ad_mod_v3.0_SMF_v2-0 on my forum and i went to the ad management option trying to paste the code from my google adsense account, and when i click on submit i am getting the error

"Connection reset by peer
Description - Connection reset by peer"

Please find attached screenshot for reference.
This problem/issue is really irritating..  >:(  please some one have solution for it . how do i place add successfully.  :(
Title: Re: Ad Management mod
Post by: Raju Gunnal on March 29, 2012, 02:22:38 AM
am getting "connecting reset by peer" error message when i am submitting google adsense code in ad management.
Title: Re: Ad Management mod
Post by: NanoSector on March 29, 2012, 06:56:45 AM
Quote from: Raju Gunnal on March 29, 2012, 02:22:38 AM
am getting "connecting reset by peer" error message when i am submitting google adsense code in ad management.
Too less info. What code? Where'd you add the info? An example?

Also don't bump the topic within 24 hours, let alone 4 minutes.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 29, 2012, 11:42:04 AM
That might be a server issue if you are getting connection reset by peer could be mod_security I would check your server error logs.
Title: Re: Ad Management mod
Post by: italo_anonimo on March 30, 2012, 05:02:54 PM
hi, thanks for mod, i install mod, and work OK for my user administrator but my user's and the other administrator user not see banner ad... i check permission for normal user's it's ok, in the index message see the "ad post" but not see the banner....

in the localhost test it's ok, but then in the website not more see banner.... i check all, with administrator it's ok (for my user administrator)

any ideas???

maybe re-install mod?? and delete table from db?? or any table to empty???

thanks
Title: Re: Ad Management mod
Post by: Kindred on March 30, 2012, 09:02:15 PM
Permissions
Title: Re: Ad Management mod
Post by: italo_anonimo on March 31, 2012, 02:12:09 AM
permissions it's set Ok for each group, but not show ad...

and the other user administrator not see ad, only my user admin...
Title: Re: Ad Management mod
Post by: fullmoonya on April 07, 2012, 04:07:55 AM
Quote from: italo_anonimo on March 31, 2012, 02:12:09 AM
permissions it's set Ok for each group, but not show ad...

and the other user administrator not see ad, only my user admin...

maybe the code that shows the ads were not distributed to the specified files..
Title: Re: Ad Management mod
Post by: !RFAN on April 07, 2012, 04:17:47 AM
lolz
i'm getting errors on fresh install
Title: Re: Ad Management mod
Post by: NanoSector on April 07, 2012, 09:01:34 AM
Quote from: !RFAN on April 07, 2012, 04:17:47 AM
lolz
i'm getting errors on fresh install
Such as?
Title: Re: Ad Management mod
Post by: simon36 on April 07, 2012, 06:12:50 PM
Hi,

The script adds my site's url on to the beginning of the advertised url? This makes the link inactive.

So if I use this test html say to link to google


<p align="center"><a href="http://www.google.com/">Test Advert</a></p>


The script produces this


<p align="center"><a href="http://www.mysite.com/http/www.google.com/">Test Advert</a></p>


Did I get something wrong?

Thanks in advance.
Title: Re: Ad Management mod
Post by: Kindred on April 07, 2012, 07:49:26 PM
You need to have http://.   Not http/
Title: Re: Ad Management mod
Post by: simon36 on April 07, 2012, 08:04:27 PM
Quote from: Kindred on April 07, 2012, 07:49:26 PM
You need to have http://.   Not http/

Hi, the script is adding the http/ on to the correct URL

.i.e I start with http//:www.google.com/ and it changes it to

http://www.mysite.com/http/www.google.com/
Title: Re: Ad Management mod
Post by: Kindred on April 07, 2012, 08:12:40 PM
Your first bit of code is wrong... If you pasted that from the code you are using, that is the problem
Title: Re: Ad Management mod
Post by: simon36 on April 07, 2012, 08:19:09 PM
Thanks Kindred, looks like I missed something out.
Title: Re: Ad Management mod
Post by: Kindred on April 07, 2012, 10:09:10 PM
It is still wrong....
Title: Re: Ad Management mod
Post by: simon36 on April 08, 2012, 04:39:58 AM
Thanks, I had done it on iPad not the laptop and got my editing wrong...

Thanks for your help, it works now.
Title: Re: Ad Management mod
Post by: Realinfo on April 10, 2012, 11:03:13 PM
sir there is option
Which boards should this ad display in

But I need to avoid some boards not to show ads, how can I do it by this MOD............ I have 54 boards........ and I want not to put ads in 1-2 boards............. Please guide........
Title: Re: Ad Management mod
Post by: glennk on April 12, 2012, 05:34:32 PM
Hi Guys,

I recently upgraded smf to latest release and I have also installed latedt version of this mod. Sadly i see nothing within the configuration area ?? The ad management link is not visible.

Help would be really appreciated.

(http://i24.photobucket.com/albums/c5/big_cod/2012/cats.jpg)
Title: Re: Ad Management mod
Post by: vbgamer45 on April 13, 2012, 01:46:30 PM
It is not installed. Try to install again and check your file permissions.
If both not working you may need to do a manual install.
Title: Re: Ad Management mod
Post by: glennk on April 13, 2012, 02:29:45 PM
Hi it says its installed. If I try to uninstall it throws all errors.
Title: Re: Ad Management mod
Post by: vbgamer45 on April 13, 2012, 02:42:37 PM
All errors such as it fails to uninstall for every action? That can happen if it doesn't install.
Title: Re: Ad Management mod
Post by: glennk on April 13, 2012, 04:05:17 PM
Yes thats what Im seeing. Errors for every action on uninstall. How to proceed ?? should I do manual edits ?
Title: Re: Ad Management mod
Post by: vbgamer45 on April 13, 2012, 04:07:06 PM
Try fixing permissions first the a  reinstall if not then you would need to do a manual install.
Title: Re: Ad Management mod
Post by: glennk on April 13, 2012, 04:10:34 PM
Sorry to be a pain. How is it possible to try install again ? when package manager says it is already installed and wont let me uninstall ? Will deleting the mod files and starting from fresh do it ?
Title: Re: Ad Management mod
Post by: NanoSector on April 13, 2012, 04:13:04 PM
If the Package Manager tells you a mod is installed it also gives you the option to Uninstall a mod. Do that. Then install the mod again :)
Title: Re: Ad Management mod
Post by: oliviertjuhh on April 14, 2012, 09:50:39 AM
Hey guys i just installed this mod on my website: www[dot]cgs-servers[dot]com
but when i add a ad to my website it doesnt display any mod in edit ads section.
Please help!
Title: Re: Ad Management mod
Post by: dipsy on April 15, 2012, 11:05:10 AM
I had installed ad managment mod and administrators are not able to see ads by setting.
After upgrade smf 1 on smf 2, admin do not have all ads.
New install mod ad managment is perfect configure but group 1 missing this permission.

What is problem?
Title: Re: Ad Management mod
Post by: vbgamer45 on April 15, 2012, 11:45:43 AM
Check permissions
And check the settings for ad management I think there is a setting to hide ad's to admins
Title: Re: Ad Management mod
Post by: dipsy on April 15, 2012, 12:11:32 PM
Yes, I checked.
The previous install smf 1 was setting to hide ad's to admins on message page, and now the new installation in these positions can not see ads?
Title: Re: Ad Management mod
Post by: OCJ on April 16, 2012, 03:02:52 AM
SMF 2.0.2
ad_mod_v3.0_SMF_v2-0.zip (3.0.1 in package manager)

In curve theme or my custom theme all the Ad text and titles in asian characters (Japanese, Chinese), do not display. Just '? ? ? ? ? ? ? ?'

So  this is not utf-8 compliant?

I am already using asian characters on the site and the database was converted but this Ad mod destroys and Chinese and Japanese text used in Ad titles and html within Ads.

I saw some reference to language files on your site but not logged in seems like no access. If they are just admin language files it would still corrupt the Ads?
I dont want to use it in Chinese - just display Ads in asian languages correctly. Doesnt seem to be Japanese there either but I guess it could be done easily.


Title: Re: Ad Management mod
Post by: vbgamer45 on April 16, 2012, 12:17:29 PM
You may have to change some of the SMF ads database tables to uft8 to support other character sets.
Title: Re: Ad Management mod
Post by: dipsy on April 16, 2012, 01:24:36 PM
Quote from: vbgamer45 on April 15, 2012, 11:45:43 AM
Check permissions
And check the settings for ad management I think there is a setting to hide ad's to admins
Not to

Quote from: dipsy on April 15, 2012, 12:11:32 PM
Yes, I checked.
The previous installing smf 1 was setting to hide ad's to admins on message page, and now the new installation in these positions can not see ads?
What is problem here?
Title: Re: Ad Management mod
Post by: OCJ on April 16, 2012, 03:39:19 PM
QuoteYou may have to change some of the SMF ads database tables to uft8 to support other character sets.

Will give it a try, thanks.
Title: Re: Ad Management mod
Post by: vbgamer45 on April 16, 2012, 04:03:13 PM
Quote from: dipsy on April 16, 2012, 01:24:36 PM
Quote from: vbgamer45 on April 15, 2012, 11:45:43 AM
Check permissions
And check the settings for ad management I think there is a setting to hide ad's to admins
Not to

Quote from: dipsy on April 15, 2012, 12:11:32 PM
Yes, I checked.
The previous installing smf 1 was setting to hide ad's to admins on message page, and now the new installation in these positions can not see ads?
What is problem here?
Not sure only things that control is that setting and permissions would re  try setting both and set if it helps
Title: Re: Ad Management mod
Post by: dipsy on April 16, 2012, 05:40:43 PM
Quote from: vbgamer45 on April 16, 2012, 04:03:13 PM
Not sure only things that control is that setting and permissions would re  try setting both and set if it helps
Did not help

Group 1 and group 2 had on smf 1 disable ads for individual forums. Now, on smf 2 this groups can not see the ads there.
Old settings admanagement is there somewhere in the database. How to fix this?   :(
Title: Re: Ad Management mod
Post by: vbgamer45 on April 16, 2012, 05:47:21 PM
maybe try uninstall and reinstall?
Title: Re: Ad Management mod
Post by: dipsy on April 16, 2012, 05:53:56 PM
I tried but it did not help  :-\
Title: Re: Ad Management mod
Post by: dipsy on April 18, 2012, 09:48:55 AM
Quote from: dipsy on April 16, 2012, 05:53:56 PM
I tried but it did not help  :-\
Solution?
Title: Re: Ad Management mod
Post by: vbgamer45 on April 18, 2012, 11:21:06 AM
Can't think of anything else sorry.
Title: Re: Ad Management mod
Post by: dipsy on April 18, 2012, 11:30:24 AM
do you know where it is written enable ads and disable ads in DB on smf1? that you may have in the database can edit it?
obvious that the adjustment to the DB of the old installation?
Title: Re: Ad Management mod
Post by: vbgamer45 on April 18, 2012, 11:49:06 AM
All settings for ad management would be in in the smf_settings table in the database.
Title: Re: Ad Management mod
Post by: dipsy on April 18, 2012, 01:18:37 PM
No settings.
find the permissions that restrict ads these groups. I do not know which tables in the db it regulates. Idea?
Title: Re: Ad Management mod
Post by: vbgamer45 on April 18, 2012, 01:19:21 PM
Would be in the smf_permissions table but that table is an odd one.
Title: Re: Ad Management mod
Post by: dipsy on April 18, 2012, 01:27:36 PM
In smf_permissions all groups have add_deny=1 ...   it's default..
I do not have any more ideas  :(
Title: Re: Ad Management mod
Post by: LexusFTW on April 24, 2012, 03:33:40 PM
I was having trouble with adsense not counting my page views.  I uninstalled (with errors) ad management and reinstalled.  The problem with adsense is fixed but there are two "SMFAds for Free Forums" advertisements on the bottom of my forums tulsastreetcars.com

I can't find the .php to remove one of them.

Also, on another note, I can't get ads to show up after posts but I'm not really worried about it.  I just want to clean up the bottom of the forum for now. Any help?
Title: Re: Ad Management mod
Post by: kat on April 24, 2012, 03:41:48 PM
I don't think you're "allowed" to remove those ads, mate.

I believe the mod author runs the free forums, too.  :-\
Title: Re: Ad Management mod
Post by: LexusFTW on April 24, 2012, 03:51:29 PM
Quote from: K@ on April 24, 2012, 03:41:48 PM
I don't think you're "allowed" to remove those ads, mate.

I believe the mod author runs the free forums, too.  :-\

I don't want to remove both.  I would like to remove one :)
Title: Re: Ad Management mod
Post by: kat on April 24, 2012, 03:56:02 PM
Ah. I suspect you'll find a double line in index.template.php, then.

Possibly. ;)
Title: Re: Ad Management mod
Post by: NanoSector on April 24, 2012, 04:14:54 PM
Or Subs.php in theme_copyright()... ;)
Title: Re: Ad Management mod
Post by: kat on April 24, 2012, 04:17:07 PM
Or that. ;)
Title: Re: Ad Management mod
Post by: LexusFTW on April 24, 2012, 04:32:50 PM
I feel like a dunce.  I've checked index.template.php in my theme folder and the line isn't there.  I found subs.php in the sources folder.  I can't find the line anywhere...
Title: Re: Ad Management mod
Post by: kat on April 24, 2012, 04:38:42 PM
Looking at the parser, it might be in /Sources/QueryString.php


// SMF ADS
$buffer = preg_replace('~(, Simple Machines LLC</a>)~', ', Simple Machines LLC</a><br /><span class="smalltext"><a href="http://www.smfads.com" target="_blank">SMFAds</a> for <a href="http://www.createaforum.com" title="Forum Hosting">Free Forums</a></span>', $buffer);
$buffer = preg_replace('~(class="new_win">Simple Machines</a>)~', 'class="new_win">Simple Machines</a><br /><span class="smalltext"><a href="http://www.smfads.com" target="_blank">SMFAds</a> for <a href="http://www.createaforum.com" title="Forum Hosting">Free Forums</a></span>', $buffer);

// End SMF ADS

Title: Re: Ad Management mod
Post by: Kindred on April 24, 2012, 04:42:11 PM
per the license of the mod, you can not remove either one of those... (yes, he actually has two links that he adds, it's not a double install)
Title: Re: Ad Management mod
Post by: LexusFTW on April 24, 2012, 04:49:28 PM
Quote from: K@ on April 24, 2012, 04:38:42 PM
Looking at the parser, it might be in /Sources/QueryString.php


// SMF ADS
$buffer = preg_replace('~(, Simple Machines LLC</a>)~', ', Simple Machines LLC</a><br /><span class="smalltext"><a href="http://www.smfads.com" target="_blank">SMFAds</a> for <a href="http://www.createaforum.com" title="Forum Hosting">Free Forums</a></span>', $buffer);
$buffer = preg_replace('~(class="new_win">Simple Machines</a>)~', 'class="new_win">Simple Machines</a><br /><span class="smalltext"><a href="http://www.smfads.com" target="_blank">SMFAds</a> for <a href="http://www.createaforum.com" title="Forum Hosting">Free Forums</a></span>', $buffer);

// End SMF ADS


That was it!! THANKS!!
Title: Re: Ad Management mod
Post by: LexusFTW on April 24, 2012, 04:52:30 PM
Quote from: Kindred on April 24, 2012, 04:42:11 PM
per the license of the mod, you can not remove either one of those... (yes, he actually has two links that he adds, it's not a double install)

There was only one this morning before I uninstalled and reinstalled.
Title: Re: Ad Management mod
Post by: jaisi on April 24, 2012, 07:26:14 PM
i wann to install this mod but i'am getting this Error in my costum theme New Look

New Look

http://******/index.php?/topic,68.msg12686.html
: Unknown column 'b.thank_you_post_enable' in 'field list'
File: /home/nepalmas/public_html/Sources/Load.php
Line: 642
: Unknown column 'b.thank_you_post_enable' in 'field list'

File: /home/nepalmas/public_html/Sources/Load.php
Line: 642

/home/*****/public_html/Themes/New_Look_2-0/MessageIndex.template.php (main sub template - eval?)


       Execute Modification   ./Themes/New_Look_2-0/BoardIndex.template.php   Test failed
      1.   Add Before   ./Themes/New_Look_2-0/BoardIndex.template.php   Test successful
      2.   Add After   ./Themes/New_Look_2-0/BoardIndex.template.php   Test failed

       Execute Modification   ./Themes/New_Look_2-0/Display.template.php   Test failed
      1.   Add After   ./Themes/New_Look_2-0/Display.template.php   Test successful
      2.   Replace   ./Themes/New_Look_2-0/Display.template.php   Test successful
      3.   Replace   ./Themes/New_Look_2-0/Display.template.php   Test failed

       Execute Modification   ./Themes/New_Look_2-0/MessageIndex.template.php   Test failed
      1.   Add After   ./Themes/New_Look_2-0/MessageIndex.template.php   Test successful
      2.   Replace   ./Themes/New_Look_2-0/MessageIndex.template.php   Test failed


my Forum Version is 2.0
Title: Re: Ad Management mod
Post by: Kindred on April 24, 2012, 08:55:10 PM
1- it looks like some sort of thankyou mod was only partially installed, thus causing the errors.
2- eval statements do no good. Turn off eval and then you're know the actual location of the error.
3- http://wiki.simplemachines.org/smf/Error_in_mod_installation (read the manual?)
Title: Re: Ad Management mod
Post by: jaisi on April 25, 2012, 02:51:22 PM
how to turn  off Eval ??  can guide me ??
Title: Re: Ad Management mod
Post by: NanoSector on April 25, 2012, 03:18:31 PM
Quote from: jaisi on April 25, 2012, 02:51:22 PM
how to turn  off Eval ??  can guide me ??
Admin > Configuration > Server Settings > Disable evaluation of templates :)
Title: Re: Ad Management mod
Post by: jaisi on April 25, 2012, 04:05:30 PM
THanks and  done now but still ads is not showing so please suggest me now. and still Error showing here is that Error code

Apply Filter: Only show the error messages of this URL
http://*****.com/index.php?PHPSESSID=0bb382abcdd33d5a764301f2ae3cb35c
Apply Filter: Only show the errors with the same message
8: Undefined variable: normalbar
Apply Filter: Only show the errors from this file
File: /home/*****/public_html/Themes/New_Look_2-0/MessageIndex.template.php

Apply Filter: Only show the error messages of this URL
http://****/index.php?PHPSESSID=0bb382abcdd33d5a764301f2ae3cb35c
Apply Filter: Only show the errors with the same message
8: Undefined variable: stickybar
Apply Filter: Only show the errors from this file
File: /home/****/public_html/Themes/New_Look_2-0/MessageIndex.template.php
Line: 240
Title: Re: Ad Management mod
Post by: Kindred on April 25, 2012, 04:09:18 PM
Sorry, but those errors have nothing at all to do with the ad management mod. Those are all related to OTHER mods.
I suggest that you ask in the support topics for those mods and get them all working before you try to fix something with this mod which may be broken because of another mod's problems.

However... permissions are usually the problem when ads don't show.
Title: Re: Ad Management mod
Post by: jaisi on April 25, 2012, 04:13:21 PM
yes i have checked all permission and working fine with another theme like
Light Theme (2.0) SMF Default Theme - Curve (2.0) only not working  in New Look theme (2.0) so please suggest me.
Title: Re: Ad Management mod
Post by: Kindred on April 25, 2012, 04:15:59 PM
well, if it is working in one theme and not another, then that tells you the problem right there....   the edits did not get made for that theme.  You will have to manually apply the edits to any theme in which it is not working.
Title: Re: Ad Management mod
Post by: jaisi on April 25, 2012, 04:23:31 PM
ok can u tell me how to manually Edit this mod ?? in my New Look Theme.
Title: Re: Ad Management mod
Post by: Kindred on April 25, 2012, 04:44:51 PM
http://wiki.simplemachines.org/smf/Manual_installation_of_mods
Title: Re: Ad Management mod
Post by: jaisi on April 25, 2012, 06:47:44 PM
THanks
Title: Re: Ad Management mod
Post by: Austin G on April 30, 2012, 08:45:23 PM
I can not get ads to disable for usergroups. I only have "Enable Ads" selected on regular members and guests. But it will show up for everyone (except admins if using the "hide for admins" setting). I would really like to get this working so that we can remove ads for paid members. I would be happy just to add more usergroups to the "hide for admins" setting.
Title: Re: Ad Management mod
Post by: Realinfo on May 05, 2012, 10:08:00 PM
Quote from: Austin G on April 30, 2012, 08:45:23 PM
I can not get ads to disable for usergroups. I only have "Enable Ads" selected on regular members and guests. But it will show up for everyone (except admins if using the "hide for admins" setting). I would really like to get this working so that we can remove ads for paid members. I would be happy just to add more usergroups to the "hide for admins" setting.

I have very same issue........... is there any solution................
Title: Re: Ad Management mod
Post by: Soulmaster on May 06, 2012, 01:11:22 PM
i think tis is the 100.000 time that this question is ask but..... i can't find it so ... in my theme even in de default theme

<tbody class="divider">
            <tr>
               <td colspan="4"></td>
            </tr>
         </tbody>';

can't be find... is there a solution?
Title: Re: Ad Management mod
Post by: vbgamer45 on May 06, 2012, 01:46:48 PM
Make sure you are checking the right .xml file there are mutiple one so make sure you have the right one for your SMF verison.
Title: Re: Ad Management mod
Post by: smitch6 on May 06, 2012, 03:04:48 PM
Hi i have this mod on my forum.
is there a feature which allows it to allow the ads to automatically rotate pls?

thanks
Title: Re: Ad Management mod
Post by: Kindred on May 06, 2012, 07:10:50 PM
No... You would need to use your own script to do that
Title: Re: Ad Management mod
Post by: Farmacija on May 06, 2012, 08:25:48 PM
Quote from: forumite on December 28, 2011, 03:25:14 PM
I'm unable to get ads to display in the user welcome area, although they display just fine in other selected areas. I'm using SMF 2.0.2 (default theme) and Ad Management V3.0.1.

TIA for any help.

I was able to show ads in welcome user area by following instructions in this post here -> http://www.simplemachines.org/community/index.php?topic=68632.msg2759992#msg2759992
Title: Re: Ad Management mod
Post by: beau1943 on May 08, 2012, 04:35:29 PM
I am having a strange problems.......I am running 1.16 and when I added the ad management mod 3 it adds any ad 3 times..........like 3 google adds right below each other in the same spot.........you can check it out at http://usworldgolf.com

Please help
Ray
Title: Re: Ad Management mod
Post by: Kindred on May 08, 2012, 04:46:14 PM
you installed it three times....  you will have to remove the double and triple code from the smf source files manually.
Title: Re: Ad Management mod
Post by: beau1943 on May 08, 2012, 04:48:24 PM
which php file would this be.........can you give me a path.........thanks
Title: Re: Ad Management mod
Post by: Kindred on May 08, 2012, 04:57:52 PM
you'll have to look through every file that the mod edits and remove the extra code in multiple locations.
Title: Re: Ad Management mod
Post by: beau1943 on May 08, 2012, 05:19:57 PM
I don't see any extra code on the pages I searched
Title: Re: Ad Management mod
Post by: Kindred on May 08, 2012, 07:46:40 PM
Not the pages....    In the php source and template files
Title: Re: Ad Management mod
Post by: Realinfo on May 11, 2012, 10:35:03 PM
Quote from: maihannijat on December 10, 2010, 08:01:26 AM
Almost done installing this in custom Theme.

But only one code is left to insert it in index.template.php, I have tried but don't know where this code falls.

Here is the code:
';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo '







And attached is my index.template.php


Thanks in Advance.



By this way

echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}

//Welcome Ads
                     if (function_exists("show_welcomeAds"))
                     {
                        $ads = show_welcomeAds();
                        if(!empty($ads))
                        {
                           echo '<td class="windowbg2">';
                           if($ads['type']==0)
                              echo $ads['content'];
                           else
                              eval($ads['content']);
                           echo '</td>';
                        }
                        unset($ads);
                     }

echo '



I able to get ads in welcome area............. 2.0.2 Default theme thanks.
Title: Re: Ad Management mod
Post by: NikShiP on May 12, 2012, 05:13:49 PM
I added the ad and my forum width reduced..

What wrong m i doing? :(
Title: Re: Ad Management mod
Post by: vbgamer45 on May 12, 2012, 05:24:37 PM
Link?
Title: Re: Ad Management mod
Post by: NikShiP on May 12, 2012, 05:34:17 PM
Quote from: vbgamer45 on May 12, 2012, 05:24:37 PM
Link?
I uninstalled the mod..
Revived the forum

www.gizmolord.net

Forum width is set to be 1250 px n it was reduced to 1250-768=482px
768px is the width of the ad.
m trying to integrate google addsense

Please guide me.. :)
Title: Re: Ad Management mod
Post by: SMFHacks.com Team on May 12, 2012, 05:57:22 PM
Not sure can't see what was wrong since it is no longer running.
Title: Re: Ad Management mod
Post by: Realinfo on May 12, 2012, 11:30:38 PM
I need to have ads inside first post, as possible in GoogAd Mod http://custom.simplemachines.org/mods/index.php?mod=2565

But I want to do by this Ad Management mod in 2.0.2 Deafult theme............. as in Ad Management mod I can put ads in some particular boards........... Please help.................
Title: Re: Ad Management mod
Post by: NanoSector on May 13, 2012, 05:58:45 AM
Hi Realinfo!

Can you attach your theme's Display.template.php in your next post, please?
Title: Re: Ad Management mod
Post by: Realinfo on May 13, 2012, 11:01:24 AM
Quote from: Yoshi2889 on May 13, 2012, 05:58:45 AM
Hi Realinfo!

Can you attach your theme's Display.template.php in your next post, please?

This is my Display.template.php.........  how you can help?
Title: Re: Ad Management mod
Post by: Khurram Abbasi on May 16, 2012, 04:25:08 AM
Quote from: Khurram Abbasi on May 16, 2012, 02:29:47 AM
QuoteHello,

We are contacting you because we noticed that the database 'database_com' is generating large queries. This causes issues with both server performance and the disk space. It is against our Terms of Service due to this we have suspended website and CGI functionality of your account. To revoke the suspension, you need to look into this database and take necessary steps.

I have pasted the SMF application is generating queries as show below.
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_log_activity
UPDATE smf_sessions
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_sessions
INSERT INTO smf_log_errors(`id_member`, `log_time`, `ip`, `url`, `message`, `session`, `error_type`, `file`, `line`)
UPDATE smf_topics
UPDATE smf_log_activity
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_sessions
INSERT INTO smf_log_errors(`id_member`, `log_time`, `ip`, `url`, `message`, `session`, `error_type`, `file`, `line`)
INSERT INTO smf_log_errors(`id_member`, `log_time`, `ip`, `url`, `message`, `session`, `error_type`, `file`, `line`)
UPDATE smf_topics
UPDATE smf_log_activity
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_sessions
UPDATE smf_log_activity
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_sessions
UPDATE smf_log_online
INSERT INTO smf_log_errors(`id_member`, `log_time`, `ip`, `url`, `message`, `session`, `error_type`, `file`, `line`)
UPDATE smf_log_activity
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_sessions

If you have any further questions, please update the Support Console.

Sincerely,

Adella Kelly
Support Specialist


i use ipage.com hosting , please tell me what to do with database so that dont suspend my site ,

thanks


Quote from: Storman on May 16, 2012, 04:00:45 AM
Looks like the Ad Management mod is responsible.

Do you have anything in your error log ? Also, do you have the latest version of this mod installed ?

Of course, uninstall the mod and your issue will go away, or maybe post your issue in the mod's topic (http://www.simplemachines.org/community/index.php?topic=68632.0) and see what the author says.
Title: Re: Ad Management mod
Post by: vbgamer45 on May 16, 2012, 11:07:25 AM
Turn on cachcing and make sure you are not having a lot of errors in the error log for SMF.
Title: Re: Ad Management mod
Post by: Khurram Abbasi on May 17, 2012, 01:08:30 AM
QuoteDelma Karl: This query is not getting updated in table 'smf_ads' . Hence generates an error log and gets updated in table 'smf_log_errors'. This results filling up heavy records in the table. At present, the table 'smf_log_errors' has more than 4,50000 of records.
QuoteDelma Karl: Also, We can't check your database for errors or anything. The application may be outdated so some spammers may be there, we can't check your entire forum. Hence, you need to contact your developer about the issue.


this is i told by ipage support , 
Title: Re: Ad Management mod
Post by: Khurram Abbasi on May 17, 2012, 01:09:53 AM
Quote from: vbgamer45 on May 16, 2012, 11:07:25 AM
Turn on cachcing and make sure you are not having a lot of errors in the error log for SMF.

and how to do this , how to empty error log automatically

Title: Re: Ad Management mod
Post by: SMFHacks.com Team on May 17, 2012, 01:14:00 AM
There is a setting to disable error logging under edit features and options i think.
Title: Re: Ad Management mod
Post by: Khurram Abbasi on May 17, 2012, 03:29:02 AM
i disable the error log , and now its looks ok to me


admin -> security and moderation -> uncheck enable error logging
Title: Re: Ad Management mod
Post by: NanoSector on May 21, 2012, 03:29:53 PM
I don't recommend you to disable your error log though, it may still gain valuable information about your forum's status. Although if you are getting crazy by what is reported better leave it off :P

Also @realinfo: Haven't got time to look into this, sorry, I'll keep this on my to-do list.
Title: Re: Ad Management mod
Post by: dooie on May 21, 2012, 09:34:10 PM
I have Ad Management Ver. 2.3 installed but the one place I want the ads I can not get working. I want the ads placed in the welcome user area. I am using version 2.0.2 and am running the default theme - Curve.

What do I need to do to get my ads in the Welcome User area?

Cheers.
Title: Re: Ad Management mod
Post by: akbora on May 22, 2012, 03:19:37 PM
Simpleads mod of Sinan is installed in my forum. Also I want to install this ad management mod. Is it  possible that? Thanks
Title: Re: Ad Management mod
Post by: Arantor on May 22, 2012, 04:09:49 PM
Quote from: akbora on May 22, 2012, 03:19:37 PM
Simpleads mod of Sinan is installed in my forum. Also I want to install this ad management mod. Is it  possible that? Thanks

They both do the same job, why would you install both together?
Title: Re: Ad Management mod
Post by: akbora on May 22, 2012, 07:10:08 PM
Quote from: Arantor on May 22, 2012, 04:09:49 PM
Quote from: akbora on May 22, 2012, 03:19:37 PM
Simpleads mod of Sinan is installed in my forum. Also I want to install this ad management mod. Is it  possible that? Thanks

They both do the same job, why would you install both together?
Yes you're right that both have same job but for example ad management accepts php or html, include different areas in forum, but simpleads has expired day and time, (only html) that is job is same but method of application is different
Title: Re: Ad Management mod
Post by: Arantor on May 22, 2012, 07:29:53 PM
And they won't work together! Fairly sure that SimpleAds can do anything this can do.
Title: Re: Ad Management mod
Post by: mybiafraland on May 22, 2012, 11:09:43 PM
i got Unable to load the 'Ads' template. after uninstalling it from the admin panel how do i get access to my admin panel again>>>>>> pls can't do anything on my site again
Title: Re: Ad Management mod
Post by: SMFHacks.com Team on May 23, 2012, 11:44:22 AM
@liveencylopedia - make sure that the edits were removed. You'll want to do the reverse of Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0).
Title: Re: Ad Management mod
Post by: merlinatia on May 27, 2012, 11:46:20 AM
Can someone tell me how the funny can i remove these ads words down of my site ?I removed this mod but it is still doins his ads at my site.  :'(
Title: Re: Ad Management mod
Post by: TheListener on May 27, 2012, 11:47:51 AM
Quote from: merlinatia on May 27, 2012, 11:46:20 AM
Can someone tell me how the funny can i remove these ads words down of my site ?I removed this mod but it is still doins his ads at my site.  :'(

Did you uninstall the mod fully?

Any errors in your error log?

Title: Re: Ad Management mod
Post by: merlinatia on May 27, 2012, 11:55:23 AM
Quote from: Old Fossil on May 27, 2012, 11:47:51 AM
Quote from: merlinatia on May 27, 2012, 11:46:20 AM
Can someone tell me how the funny can i remove these ads words down of my site ?I removed this mod but it is still doins his ads at my site.  :'(

Did you uninstall the mod fully?

Any errors in your error log?

yes uninstall mod correctly without errors

then i thought if install again then uninstall again maybe this time it  will remove but nothing happened

i checked iindex.template file couldnt find anycode for deleting these ads words from my site
Title: Re: Ad Management mod
Post by: TheListener on May 27, 2012, 12:06:23 PM
You may have to go through the files using the mods parser.
Title: Re: Ad Management mod
Post by: merlinatia on May 27, 2012, 12:35:06 PM
Jesus why modders do not add simple removing tools their mods or do not doing good scripting.I just so pissed of i just read about 40 angry people comments like me how do i uninstall that smfads words from my site ?but no resolution except building new site.

good work.
Title: Re: Ad Management mod
Post by: TheListener on May 27, 2012, 12:41:26 PM
Firstly complaints will get you nowhere.

I have given you the solution so there is no need to rebuild your forum.

Using the mods parser all you have to do is manually check each file and remove any code related to the mod.

Title: Re: Ad Management mod
Post by: Kindred on May 27, 2012, 01:54:35 PM
And just for the record - most of the time, mods DO correctly uninstall quite simply using the package manager. So your complaints are regarding a specific issue which is not an issue that most other people seem to have

You also don't indicate what you mean by
Quote from: merlinatia on May 27, 2012, 11:46:20 AM
Can someone tell me how the funny can i remove these ads words down of my site ?I removed this mod but it is still doins his ads at my site.  :'(

Since this mod actually has nothing, at all, to do with google adwords (unless YOU added googe adwords to your site in the code block of this mod)

or are you talking about the smf ads link in the footer?  If so, then following the manual uninstall instructions will correctly remove that as well.
Title: Re: Ad Management mod
Post by: WebLair on June 01, 2012, 10:20:01 PM
I installed this on my 2.02 SMF about two weeks ago. I am essentially using a copy of the default curve theme with some css changes and about a dozen mods.

However i cannot see "ads" i can however see the space created for them, and that they have had around 5000+ hits. i have uninstalled  and reinstalled the mod no change and no errors. I have removed my ads and mad new ads to get fresh code but no change.

I cannot find an answer for this problem. it is being used on two domains.
http://social.ozgamernetwork.com
http://competitive.ozgamernetwork.com



Title: Re: Ad Management mod
Post by: SMFHacks.com Team on June 01, 2012, 10:37:35 PM
What type of ads did you add custom code? banner what?
Title: Re: Ad Management mod
Post by: WebLair on June 01, 2012, 10:57:22 PM
I have not messed with the code that Google adsense gave me. I have been using the various skyscraper ads and putting them in the right side tower position including the child boards option. I have also been putting them in as the html option, not php.

As a test i put horizontal banner (full size) as "after last post" only a short while ago, not showing anything yet.
Title: Re: Ad Management mod
Post by: SMFHacks.com Team on June 01, 2012, 11:08:43 PM
Code looks fine. Maybe since it is new code you have a waiting period on it for it to appear.
Or it sees content on your site it does not like.
Title: Re: Ad Management mod
Post by: WebLair on June 02, 2012, 03:12:38 AM
Ads on my phpbb site were fine, it's silly that i can't see what bots are on my forum, at least that way i could see if google bot was coming and doing it's job. I don't see how it counts 5000 hits but google is not putting anything there yet. 2 weeks should be plenty. There is also no "content" that would be disallowed. Guess time will tell.
Title: Re: Ad Management mod
Post by: ApplianceJunk on June 03, 2012, 08:03:08 AM
You can s
Quote from: WebLair on June 02, 2012, 03:12:38 AM
Ads on my phpbb site were fine, it's silly that i can't see what bots are on my forum, at least that way i could see if google bot was coming and doing it's job. I don't see how it counts 5000 hits but google is not putting anything there yet. 2 weeks should be plenty. There is also no "content" that would be disallowed. Guess time will tell.

You can see what bots have visited your forum, but that's another topic. ;)
It should only take a few minutes for new google ads to show up after they have been created.
Title: Re: Ad Management mod
Post by: desichat on June 14, 2012, 02:57:48 AM
i have installed smf mod ad_mod_v3.0_SMF_v2-0 on my smf forum 2.02 but still google ads is not showing on my forum. kindly guide me how to resolve the issue.
Title: Re: Ad Management mod
Post by: SMFHacks.com Team on June 14, 2012, 09:54:12 AM
Quote from: desichat on June 14, 2012, 02:57:48 AM
i have installed smf mod ad_mod_v3.0_SMF_v2-0 on my smf forum 2.02 but still google ads is not showing on my forum. kindly guide me how to resolve the issue.
Do normal ads work?
Google has a waiting time for ads to appear. Try entering a background color for your ad if no ad is open for that spot and see if it appears.
Title: Re: Ad Management mod
Post by: chinclub on June 16, 2012, 04:39:48 PM
I just added this to my site and the ads don't work.  I checked all of the code twice.  I am trying to add a basic html banner.  I tried every check box available for the ad to see if any of them work but nothing.  I also checked to be sure that disable ads wasn't checked in the settings section but it isn't.
The only thing I did notice is that the links to SMF at the bottom of the page are all overlapping now.  I went back and checked all of the code and can't find any errors.

http://www.chinchillaclub.com/forum/index.php
Title: Re: Ad Management mod
Post by: chinclub on June 16, 2012, 04:53:37 PM
Ok, If I only check show add at the top of every page OR show ad at the bottom of every page it works.  But if i only want the ad on certain pages nothing else works.
Title: Re: Ad Management mod
Post by: oOTrentOo on June 16, 2012, 11:10:20 PM
It says an error occurred when I tried to install it.
Something about a missing database or something. Anyone know what this is about?
Title: Re: Ad Management mod
Post by: oOTrentOo on June 16, 2012, 11:13:08 PM
Quote from: Brutto on November 21, 2010, 02:48:40 PM
Database error:

SQL logic error or missing database
near "NOT": syntax error
File: /home/saldusfo/public_html/smf/Packages/temp/install.php
Line: 51

P.S. RC4 + SQLite

YES! This is exactly the same problem I have. Any ideas how to fix this?
Title: Re: Ad Management mod
Post by: vbgamer45 on June 17, 2012, 12:45:30 AM
Does not support SQLite only MySQL.
Title: Re: Ad Management mod
Post by: SoSad on June 18, 2012, 11:27:51 PM
Can I add two(2) right skycraper ads? I tried by only 1 will show.   :(
Title: Re: Ad Management mod
Post by: SMFHacks.com Team on June 18, 2012, 11:28:49 PM
How about doing a custom code and place in html table to get the same affect.
Title: Re: Ad Management mod
Post by: iain sherriff on June 29, 2012, 03:57:29 AM
I added this yesterday (2.0.2 with Crip's Anecdota) and it installed perfectly without fault  :)

However When I added my banner script (from a commercail ad provider who I dont want to name as yet! ) my users started getting bombarded with spam links (not sure if you'd call them pop ups.......when you closed a page there was another left behind it) for gambling sites etc.
Now I assume these were left by the people placing Ads with my Ad provider..................is that right ?
In which case they are not checking on who they use.

Does anyone else get this problem ?

I have removed the Ad script (leaving Ad Management in place) and they have stopped.

thanks  :o

(just had more feedback. some users on Chrome without java switched on didnt see the banners bu STILL got the gambling popups. I am right thinking that this must be from the Ad provider's script NOT from the people placing that Ads ?)
Title: Re: Ad Management mod
Post by: vbgamer45 on June 29, 2012, 10:45:36 AM
It looks like it would be a probably with the ad provider or your forum is infected with a virus.
Title: Re: Ad Management mod
Post by: iain sherriff on June 29, 2012, 11:17:14 AM
thanks for the reply.
as they have stopped now I have removed the Ad script but left everything else as is does that show that it IS the provider ?
Title: Re: Ad Management mod
Post by: Kat9119 on June 30, 2012, 12:06:14 PM
This installs fine other then the template files. I'm using "Core" with some mods installed and minor edits. The three template files fail mainly due to the "replace" codes. I don't have those in my files.

I've searched through this thread, and it looks like a lot of people have had issues with this with not much help other then told to compare files from the Core theme and Default theme. So I downloaded and installed WinMerge, I tried to add the code where I thought they'd be, which probably was "ok" but then the "replace" codes stumped me. When I tried to place them where I thought they went, it gave me an error.

I've attached the three template files in hopes that someone can help me. Doesn't seem like a huge edit and someone who knows what they are doing I would think could edit this very quickly. This is much much much appreciated. If I wasn't thousands of dollars in debut with medical bills I'd  pay you for your help  8)

I have a live event going on on my forum on the 13th and this forum needs to be updated and live about a week before that to install and tweak things I can't on my computer. So please help if you can, I'm ready to tear my hair out!  :-\
Title: Re: Ad Management mod
Post by: iain sherriff on June 30, 2012, 10:12:53 PM
I have to do this too. Im surprised no one has posted the relevant bits yet....
Title: Re: Ad Management mod
Post by: Kat9119 on June 30, 2012, 11:55:02 PM
Quote from: iain sherriff on June 30, 2012, 10:12:53 PM
I have to do this too. Im surprised no one has posted the relevant bits yet....

It makes sense that they couldn't do it for every theme, but doesn't Core come with SMF? therefore I think it would be an all around edit that everyone using Core could use. I really really need this mod installed :(
Title: Re: Ad Management mod
Post by: Matthew K. on June 30, 2012, 11:57:50 PM
Eventually I'll get around to updating this modification and allow global theme support without having to touch any template files. However, until then, you'll need to complete the manual edits on the theme.

Not sure that I have time within the next week to manually tweak it in for you.
Title: Re: Ad Management mod
Post by: Kat9119 on July 01, 2012, 12:11:04 AM
Quote from: Labradoodle-360 on June 30, 2012, 11:57:50 PM
Eventually I'll get around to updating this modification and allow global theme support without having to touch any template files. However, until then, you'll need to complete the manual edits on the theme.

Not sure that I have time within the next week to manually tweak it in for you.

Ok, well, its not a rush rush for me, I'd "like" it up by the 13th, but obviously if it can't be done it can't be, and I have no idea what I'm doing with it lmao. So, if you can help me out in the near future that would be awesome :) My site can still go up without it for now. But those files attached above might change in that time if I install other things.
Title: Re: Ad Management mod
Post by: iain sherriff on July 01, 2012, 07:19:08 AM
I cant guarantee this will work but it's what I am going to try  8)
I found the Parser and got this


Logo
Package Parser
[I'm ready for IPv6, are you?]
email twitter GooglePlus GitHub

    Forum
    GIT
    Password Generator
    PackageParser
    Pastebin
    SMF PacMan

General Package Information
This is general information about the package, such as the package ID and name.
Package ID: jeremy:ads
Package name: Ad Managment
Package version: 3.0.1
Package type: modification

Installation instructions for SMF versions: 2.0-2.99.99, 2.0 RC4,2.0 RC5
Note: If a file does not exist in your theme, it doesn't matter (as the file from the Default theme will be used).
In file Themes/[your theme]/BoardIndex.template.php
Find:

// Show some statistics if stat info is off.



Add before:


//Display ads on the board index
if (function_exists("show_boardAds"))
{
$ads = show_boardAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}





Find:

<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';



Add after:


echo '<tbody><tr><td colspan="4">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>';





In file Themes/[your theme]/Display.template.php
Find:

// Show the anchor for the top and for the first message. If the first message is new, say so.



Add after:


//Display ads on the thread page
if (function_exists("show_threadAds"))
{
$ads = show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

$messageStorage = '';
}





Find:

// Get all the messages...
while ($message = $context['get_message']())
{



Replace with:

//Ad Counter
$adcounter =0;
// Get all the messages...
while ($message = $context['get_message']())
{
$adcounter++;




Find:

}

echo '
</form>
</div>
<a id="lastPost"></a>';




Replace with:


if (function_exists("show_posts"))
{
$messageStorage = $message;
if ($adpost = show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="poster">
<h4>', $context['forum_name'], '</h4>
</div>
<div class="postarea">
<div class="flow_hidden">
<div class="keyinfo">
<div class="messageicon">
<img src="', $message['icon_url'] . '" alt="" border="0" />
</div>
<h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>
<div class="smalltext">&#171; <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' &#187;</div>
<div id="msg_', $message['id'], '_quick_mod"></div>
</div>';

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
<ul class="reset smalltext quickbuttons">';

// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<li class="modify_button"><a>', $txt['modify'], '</a></li>';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<li class="remove_button"><a>', $txt['remove'], '</a></li>';

// What about splitting it off the rest of the topic?
if ($context['can_split'] && !empty($context['num_replies']))
echo '
<li class="split_button"><a>', $txt['split'], '</a></li>';

// Can we restore topics?
if ($context['can_restore_msg'])
echo '
<li class="restore_button"><a>', $txt['restore_message'], '</a></li>';

if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
</ul>';

echo '
</div>';


// Show the post itself, finally!
echo '
<div class="post">';

echo '
<div class="inner" id="msg_', $message['id'], '"', '>', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>
</div>';


echo '
</div>


<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
else
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>

<div align="center">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>

<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
}
}

if(function_exists("show_lastpostAds") && function_exists("show_posts"))
{
$message = $messageStorage;
if(($adpost = show_lastpostAds()) && !show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="poster">
<h4>', $context['forum_name'], '</h4>
</div>
<div class="postarea">
<div class="flow_hidden">
<div class="keyinfo">
<div class="messageicon">
<img src="', $message['icon_url'] . '" alt="" border="0" />
</div>
<h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>
<div class="smalltext">&#171; <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' &#187;</div>
<div id="msg_', $message['id'], '_quick_mod"></div>
</div>';

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
<ul class="reset smalltext quickbuttons">';

// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<li class="modify_button"><a>', $txt['modify'], '</a></li>';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<li class="remove_button"><a>', $txt['remove'], '</a></li>';

// What about splitting it off the rest of the topic?
if ($context['can_split'] && !empty($context['num_replies']))
echo '
<li class="split_button"><a>', $txt['split'], '</a></li>';

// Can we restore topics?
if ($context['can_restore_msg'])
echo '
<li class="restore_button"><a>', $txt['restore_message'], '</a></li>';

if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
</ul>';

echo '
</div>';


// Show the post itself, finally!
echo '
<div class="post">';

echo '
<div class="inner" id="msg_', $message['id'], '"', '>', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>
</div>';


echo '
</div>


<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
else
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>

<div align="center">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>

<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
}

echo '
</form>
</div>
<a id="lastPost"></a>';






In file Themes/[your theme]/MessageIndex.template.php
Find:

global $context, $settings, $options, $scripturl, $modSettings, $txt;



Add after:


//Display Ads on the Message index
if (function_exists("show_threadindexAds"))
{
$ads = show_threadindexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}





Find:

echo '
</tbody>
</table>
</div>
</div>';



Replace with:

echo '
</tbody>
</table>
</div>
</div>';
//Display Ads on the Message index
if (function_exists("show_underchildren"))
{
$ads = show_underchildren();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}





SMF Package Parser, by Daniel15.
Wordpress Theme by ThemeZee

SleePyCode uses WordPress and Simple Machines | Page created in 1.774 seconds with 12 queries.
SleePyCode.com is hosted on Linode
Loading...


Title: Re: Ad Management mod
Post by: Kindred on July 01, 2012, 09:39:59 AM
iain sherriff,

those instructions are on the mod download page as well, under "Manual Install Instructions for SMF " [CHOOSE YOUR VERSION]


the problem that others are complaining about is that the mod installs only into the curve (default) theme (which is typical of most mods)
but because "core" has significantly different coding from curve, the install instructions are not just "cut and paste" between themes.
Title: Re: Ad Management mod
Post by: iain sherriff on July 01, 2012, 12:16:13 PM
right, thanks
So with mine (Anecdota) I may not find the exact lines quoted.
Becomes a trial and error thing then I guess. Well if I find the right places I will post it.
Maybe part of the "problem" is that the mod is so popular thus creating a HUGE thread that people (myself included  O:) ) dont spend the time checking through other than with search.

All part of the fun  8) 8)
Title: Re: Ad Management mod
Post by: was1f on July 01, 2012, 01:25:41 PM
I Want Know THere Is Any Option TO Add Banner Add On The Center Of The Header. .

Here Is Screen Short I Want This Banner in Center Please help. .


Thanks.

(http://s8.postimage.org/i88lew5hd/add.jpg) (http://postimage.org/image/i88lew5hd/)
Title: Re: Ad Management mod
Post by: NanoSector on July 01, 2012, 01:38:51 PM
Quote from: was1f on July 01, 2012, 01:25:41 PM
I Want Know THere Is Any Option TO Add Banner Add On The Center Of The Header. .

Here Is Screen Short I Want This Banner in Center Please help. .


Thanks.

(http://s8.postimage.org/i88lew5hd/add.jpg) (http://postimage.org/image/i88lew5hd/)
If you are using BBCode, try using the [center] tag.

If you are using HTML (which I think you are), wrap the other HTML like this:
<div align="center">
Other HTML here
</div>


Could be invalid but it works.
Title: Re: Ad Management mod
Post by: Matthew K. on July 02, 2012, 02:04:36 AM
The align attribute isn't valid XHTML, you should know that. Rather use text-align or margins. Assuming it's inside of SMF (which it is, in this case) you can use the centertext class.

<div class="centertext">
Other HTML Here.
</div>

centertext is defined as:
.centertext
{
text-align: center;
margin-left: auto;
margin-right: auto;
}

Which covers all the browsers.
Title: Re: Ad Management mod
Post by: iain sherriff on July 02, 2012, 03:44:19 PM
Quote from: Labradoodle-360 on July 02, 2012, 02:04:36 AM
The align attribute isn't valid XHTML, you should know that. Rather use text-align or margins. Assuming it's inside of SMF (which it is, in this case) you can use the centertext class.

<div class="centertext">
Other HTML Here.
</div>

centertext is defined as:
.centertext
{
text-align: center;
margin-left: auto;
margin-right: auto;
}

Which covers all the browsers.

does the .centertext bit go in index.css ?
in curve or in the custom template ?
and where in the file does it go ?


thanks  :)
Title: Re: Ad Management mod
Post by: Matthew K. on July 03, 2012, 03:59:04 AM
No...I was saying it's already a part of SMF. And just showing you what it's defined as.
Title: Re: Ad Management mod
Post by: iain sherriff on July 03, 2012, 05:10:47 AM

thanks
Title: Re: Ad Management mod
Post by: iain sherriff on July 06, 2012, 06:04:58 AM
Just for info........
I have smf 2.0.2 with mods
Users online today
Activity bar
Ohara Youtb embed
Tapatalk
and use Crip's Anecdota theme.

Ad Management works perfectly as installed with the excetion of the code (below) for the welcome area. I made no other code alterations to the custom theme to make Ad Management work.  :)



Quote from: ɔɔɔɔɔɔuɥoɾ on August 25, 2010, 01:37:06 PM
I was looking right before the news I just got the code, doing that you would have to remove that last echo however

Its that or before search, If I'm correct, which I think I am, that ad would be floated right, so it could be placed in a few places to work correctly.


Try the news one 1st here is what it should look like.


                     //Welcome Ads
                     if (function_exists("show_welcomeAds"))
                     {
                        $ads = show_welcomeAds();
                        if(!empty($ads))
                        {
                           echo '<td class="windowbg2">';
                           if($ads['type']==0)
                              echo $ads['content'];
                           else
                              eval($ads['content']);
                           echo '</td>';
                        }
                        unset($ads);
                     }
                          // Show a random news item? (or you could pick one from news_lines...)


Try that, I believe its parse error free

HOLD up on this, let me look at the code you got their, ok, I guess give it a shot then
Title: Re: Ad Management mod
Post by: WasdMan on July 08, 2012, 05:02:01 AM
Slight modification, the following results were achieved:

Before:
(http://smf-portal.hu/Download/Topicfaq/reklam_elotte.png)

Then:
(http://smf-portal.hu/Download/Topicfaq/reklam_utana.png)

Resolve to open the Themes / default / Display.template.php and find the file:

Look for:
if (function_exists("show_posts"))
{
$messageStorage = $message;
if ($adpost = show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="poster">
<h4>', $context['forum_name'], '</h4>
</div>
<div class="postarea">
<div class="flow_hidden">
<div class="keyinfo">
<div class="messageicon">
<img src="', $message['icon_url'] . '" alt="" border="0" />
</div>
<h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>
<div class="smalltext">&#171; <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' &#187;</div>
<div id="msg_', $message['id'], '_quick_mod"></div>
</div>';

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
<ul class="reset smalltext quickbuttons">';

// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<li class="modify_button"><a>', $txt['modify'], '</a></li>';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<li class="remove_button"><a>', $txt['remove'], '</a></li>';

// What about splitting it off the rest of the topic?
if ($context['can_split'] && !empty($context['num_replies']))
echo '
<li class="split_button"><a>', $txt['split'], '</a></li>';

// Can we restore topics?
if ($context['can_restore_msg'])
echo '
<li class="restore_button"><a>', $txt['restore_message'], '</a></li>';

if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
</ul>';

echo '
</div>';


// Show the post itself, finally!
echo '
<div class="post">';

echo '
<div class="inner" id="msg_', $message['id'], '"', '>', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>
</div>';


echo '
</div>


<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
else
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>

<div align="center">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>

<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
}
}

if(function_exists("show_lastpostAds") && function_exists("show_posts"))
{
$message = $messageStorage;
if(($adpost = show_lastpostAds()) && !show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="poster">
<h4>', $context['forum_name'], '</h4>
</div>
<div class="postarea">
<div class="flow_hidden">
<div class="keyinfo">
<div class="messageicon">
<img src="', $message['icon_url'] . '" alt="" border="0" />
</div>
<h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>
<div class="smalltext">&#171; <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' &#187;</div>
<div id="msg_', $message['id'], '_quick_mod"></div>
</div>';

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
<ul class="reset smalltext quickbuttons">';

// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<li class="modify_button"><a>', $txt['modify'], '</a></li>';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<li class="remove_button"><a>', $txt['remove'], '</a></li>';

// What about splitting it off the rest of the topic?
if ($context['can_split'] && !empty($context['num_replies']))
echo '
<li class="split_button"><a>', $txt['split'], '</a></li>';

// Can we restore topics?
if ($context['can_restore_msg'])
echo '
<li class="restore_button"><a>', $txt['restore_message'], '</a></li>';

if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
</ul>';

echo '
</div>';


// Show the post itself, finally!
echo '
<div class="post">';

echo '
<div class="inner" id="msg_', $message['id'], '"', '>', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>
</div>';


echo '
</div>


<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
else
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>

<div align="center">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>

<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
}

echo '
</form>
</div>
<a id="lastPost"></a>';


Replace this:
if (function_exists("show_posts"))
{
$messageStorage = $message;
if ($adpost = show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>

<div class="postarea2">
<div class="flow_hidden2">
<div class="keyinfo">

</div>';



echo '
</div>';


// Show the post itself, finally!
echo '
<div class="post">';

echo '
<div class="inner2" id="msg_', $message['id'], '"', '>', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>
</div>';


echo '
</div>


<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
else
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>

<div align="center">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>

<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
}
}

if(function_exists("show_lastpostAds") && function_exists("show_posts"))
{
$message = $messageStorage;
if(($adpost = show_lastpostAds()) && !show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="poster">
<h4>', $context['forum_reklam'], '</h4>
</div>
<div class="postarea">
<div class="flow_hidden">
<div class="keyinfo">
<div class="messageicon">
<img src="', $message['icon_url'] . '" alt="" border="0" />
</div>
<h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>
<div class="smalltext">&#171; <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' &#187;</div>
<div id="msg_', $message['id'], '_quick_mod"></div>
</div>';

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
<ul class="reset smalltext quickbuttons">';

// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<li class="modify_button"><a>', $txt['modify'], '</a></li>';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<li class="remove_button"><a>', $txt['remove'], '</a></li>';

// What about splitting it off the rest of the topic?
if ($context['can_split'] && !empty($context['num_replies']))
echo '
<li class="split_button"><a>', $txt['split'], '</a></li>';

// Can we restore topics?
if ($context['can_restore_msg'])
echo '
<li class="restore_button"><a>', $txt['restore_message'], '</a></li>';

if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
</ul>';

echo '
</div>';


// Show the post itself, finally!
echo '
<div class="post">';

echo '
<div class="inner" id="msg_', $message['id'], '"', '>', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>
</div>';


echo '
</div>


<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
else
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>

<div align="center">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>

<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
}

echo '
</form>
</div>
<a id="lastPost"></a>';


That's not disturbing in the messages and links to many key icon. Remains the only advertising.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 08, 2012, 10:22:08 AM
Looks good WasdMan thanks for the tip!
Title: Re: Ad Management mod
Post by: TeresaMiller on July 19, 2012, 10:12:20 AM
For some reason, the Ad Management mod is now showing my ads doubled.

I had a left tower, and a right tower to be shown on each page. It's showing the left tower twice, side by side and the same on the left.

What is the cause, and how can I fix it?
Title: Re: Ad Management mod
Post by: Matthew K. on July 19, 2012, 10:18:06 AM
It's most likely that the template function is being called twice in index.template.php probably.
Title: Re: Ad Management mod
Post by: TeresaMiller on July 19, 2012, 10:25:10 AM
Quote from: Labradoodle-360 on July 19, 2012, 10:18:06 AM
It's most likely that the template function is being called twice in index.template.php probably.

So how do I find and fix that?
Title: Re: Ad Management mod
Post by: Matthew K. on July 19, 2012, 11:15:20 AM
Remove one call to the template function ;)
Title: Re: Ad Management mod
Post by: Kindred on July 19, 2012, 11:38:17 AM
more specifically, you will have to use the mod parser, find the duplicated code (and I suspect more code was duplciated than the bit showing the error) and then manually remove it.
Title: Re: Ad Management mod
Post by: TeresaMiller on July 19, 2012, 11:42:55 AM
You're both talking above my head.  :-[

I need more specific instructions, because I have no idea what a mod parser is.
Title: Re: Ad Management mod
Post by: Matthew K. on July 19, 2012, 11:49:39 AM
Go ahead and attach your themes index.template.php and I'll help you.
Title: Re: Ad Management mod
Post by: TeresaMiller on July 19, 2012, 07:19:19 PM
Here it is, and thank you!

Teresa
Title: Re: Ad Management mod
Post by: TeresaMiller on July 19, 2012, 07:22:57 PM
Oh, wait, I think I attached the wrong one. You said the themes template, not the ads template.

Here is the themes one.
Title: Re: Ad Management mod
Post by: NiceCarvings on July 21, 2012, 02:07:13 AM
Hi there.

I really like this mod. There is a great chance I will get the pro version down th eline. For now, is there a way to change the position of after last post slightly?

I have attached a screenshot of where  I would like to put it.   :)
Title: Re: Ad Management mod
Post by: Matthew K. on July 21, 2012, 03:21:28 AM
It's definitely possible.
Title: Re: Ad Management mod
Post by: NiceCarvings on July 21, 2012, 02:15:52 PM
Quote from: Labradoodle-360 on July 21, 2012, 03:21:28 AM
It's definitely possible.

Wow you have a lot of cool mods! I will have to get snow for sure come holiday season.  :)


Ok so now is anyone willing to help me relocate that ad position?
Title: Re: Ad Management mod
Post by: zuul123123 on July 27, 2012, 06:17:09 PM
I'm having serious problems with this mod. When I go to install it, I run into some "test failed" results, like so (http://i.imgur.com/qS8hR.png)

Then when I do install it, I use this as the settings (http://i.imgur.com/lkOhr.png), am I doing something wrong, because then I get this error on the posts, (http://i.imgur.com/EBRxF.png)

Then I try and uninstall it and I get this, which blocks off the entire board! (http://i.imgur.com/zjBN2.png)
Title: Re: Ad Management mod
Post by: SMFHacks.com Team on July 27, 2012, 07:12:49 PM
The install looks ok no errors only errors on the extra theme called core.
Title: Re: Ad Management mod
Post by: zuul123123 on July 27, 2012, 08:05:47 PM
Okay, I am using the default theme, so why is it giving me that error?
Title: Re: Ad Management mod
Post by: Kat9119 on July 28, 2012, 01:18:55 AM
Quote from: Kat9119 on June 30, 2012, 12:06:14 PM
This installs fine other then the template files. I'm using "Core" with some mods installed and minor edits. The three template files fail mainly due to the "replace" codes. I don't have those in my files.

I've searched through this thread, and it looks like a lot of people have had issues with this with not much help other then told to compare files from the Core theme and Default theme. So I downloaded and installed WinMerge, I tried to add the code where I thought they'd be, which probably was "ok" but then the "replace" codes stumped me. When I tried to place them where I thought they went, it gave me an error.

I've attached the three template files in hopes that someone can help me. Doesn't seem like a huge edit and someone who knows what they are doing I would think could edit this very quickly. This is much much much appreciated. If I wasn't thousands of dollars in debut with medical bills I'd  pay you for your help  8)

I have a live event going on on my forum on the 13th and this forum needs to be updated and live about a week before that to install and tweak things I can't on my computer. So please help if you can, I'm ready to tear my hair out!  :-\

Trying to see if anyone still wants to help me on this sometime within the next couple weeks. My forum still is not live...keep missing the date due to being sick. But I'd appreciate help with it once it is live...as then I can give correct finalized files for the help.
Title: Re: Ad Management mod
Post by: mladja037 on August 01, 2012, 04:19:42 PM
Please help install error in two files:

Display.template
Board.Index.template

Please integrate the code... :(

BOARD.INDEX

echo '<tbody><tr><td colspan="4">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>';





DISPLAY.INDEX Replace

if (function_exists("show_posts"))
{
$messageStorage = $message;
if ($adpost = show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="poster">
<h4>', $context['forum_name'], '</h4>
</div>
<div class="postarea">
<div class="flow_hidden">
<div class="keyinfo">
<div class="messageicon">
<img src="', $message['icon_url'] . '" alt="" border="0" />
</div>
<h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>
<div class="smalltext">&#171; <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' &#187;</div>
<div id="msg_', $message['id'], '_quick_mod"></div>
</div>';

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
<ul class="reset smalltext quickbuttons">';

// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<li class="modify_button"><a>', $txt['modify'], '</a></li>';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<li class="remove_button"><a>', $txt['remove'], '</a></li>';

// What about splitting it off the rest of the topic?
if ($context['can_split'] && !empty($context['num_replies']))
echo '
<li class="split_button"><a>', $txt['split'], '</a></li>';

// Can we restore topics?
if ($context['can_restore_msg'])
echo '
<li class="restore_button"><a>', $txt['restore_message'], '</a></li>';

if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
</ul>';

echo '
</div>';


// Show the post itself, finally!
echo '
<div class="post">';

echo '
<div class="inner" id="msg_', $message['id'], '"', '>', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>
</div>';


echo '
</div>


<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
else
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>

<div align="center">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>

<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
}
}

if(function_exists("show_lastpostAds") && function_exists("show_posts"))
{
$message = $messageStorage;
if(($adpost = show_lastpostAds()) && !show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="poster">
<h4>', $context['forum_name'], '</h4>
</div>
<div class="postarea">
<div class="flow_hidden">
<div class="keyinfo">
<div class="messageicon">
<img src="', $message['icon_url'] . '" alt="" border="0" />
</div>
<h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>
<div class="smalltext">&#171; <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' &#187;</div>
<div id="msg_', $message['id'], '_quick_mod"></div>
</div>';

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
<ul class="reset smalltext quickbuttons">';

// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<li class="modify_button"><a>', $txt['modify'], '</a></li>';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<li class="remove_button"><a>', $txt['remove'], '</a></li>';

// What about splitting it off the rest of the topic?
if ($context['can_split'] && !empty($context['num_replies']))
echo '
<li class="split_button"><a>', $txt['split'], '</a></li>';

// Can we restore topics?
if ($context['can_restore_msg'])
echo '
<li class="restore_button"><a>', $txt['restore_message'], '</a></li>';

if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
</ul>';

echo '
</div>';


// Show the post itself, finally!
echo '
<div class="post">';

echo '
<div class="inner" id="msg_', $message['id'], '"', '>', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>
</div>';


echo '
</div>


<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
else
echo '
<div class="windowbg">
<span class="topslice"><span></span></span>

<div align="center">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>

<span class="botslice"><span></span></span>
</div>
<hr class="post_separator" />
';
}
}

echo '
</form>
</div>
<a id="lastPost"></a>';
Title: Re: Ad Management mod
Post by: arcadecontrols on August 02, 2012, 10:41:51 AM
I'm having an issue with this mod on my 2.02 forum. I'm attempting to use a Google ad. However, when I paste the contents of the Google ad into the ad text box (set to HTML mode), it goes awry. It pastes the entire ad block fine, and I set the various other parameters and hit save. However, when I go back to modify the ad, the ad text box is truncated towards the end. This of course messes up the forum as well as the ad not displaying.

I've attempted it with two different Google ads copy/pasted from the Google Adsense site. This happens whether I am using the default SMS 2.02 theme, or the Yabb_SE_Classic theme.

Here is the text I'm pasting into the box:


<script type="text/javascript"><!--
google_ad_client = "ca-pub-xxxxxxxxxxxxxxxx";
/* Forum-Graphical */
google_ad_slot = "7740891865";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


(I have replaced my specific ad client # with x's here obviously, but I am pasting it unaltered in the ad box)

When I go back to look at it after it's saved, it truncates in the second to last line, so that it ends at: "src="http://pagead2.goog"

The exact spot of truncation varies somewhat depending on what ad I put in there, but it's always in the second to last line, and the last ending </script> line is always missing as well.

Without knowing what's happening behind the scenes, it's acting very much as if there is a limit to the # of characters that can be put in the ad box.

Any help? As I'm sure you often hear, if I can get this working I'm very likely to want to buy the pro version. I'm reluctant to jump up to the pro version however until I can test out the free one first.

Appreciate any help - thanks!
Title: Re: Ad Management mod
Post by: AMWebby on August 07, 2012, 11:08:37 AM
I think this is a cool mod and am on the verge of upgrading to the pro version. However I've come across a bug. I've searched this topic but can find no mention of it.

I have certain groups on my forum (and admins) set not to see ads. However, for those groups the New Post and Go Up/Go Down buttons no longer work. I'm guessing because they are anchor links and the anchor is inside a display: none element if that group can't see ads.

The New Post and Go Up/Go Down buttons work fine for those who can see ads so I'm fairly sure my hypothesis is correct but wanted to see if anyone else had encountered this (and a fix) before I start digging.

Edit: Mark this as solved. I just found out it is unrelated to this mod. I run my forum inside a Joomla wrapper and I had altered it from fixed height to 100%. It seems that was enough to short-circuit the anchor links.
Title: Re: Ad Management mod
Post by: KRISHNA0007 on August 07, 2012, 03:24:56 PM
thanks for this awesome mod
Title: Re: Ad Management mod
Post by: Matthew K. on August 08, 2012, 11:27:07 AM
Quote from: AMWebby on August 07, 2012, 11:08:37 AM
I think this is a cool mod and am on the verge of upgrading to the pro version. However I've come across a bug. I've searched this topic but can find no mention of it.

I have certain groups on my forum (and admins) set not to see ads. However, for those groups the New Post and Go Up/Go Down buttons no longer work. I'm guessing because they are anchor links and the anchor is inside a display: none element if that group can't see ads.

The New Post and Go Up/Go Down buttons work fine for those who can see ads so I'm fairly sure my hypothesis is correct but wanted to see if anyone else had encountered this (and a fix) before I start digging.

Edit: Mark this as solved. I just found out it is unrelated to this mod. I run my forum inside a Joomla wrapper and I had altered it from fixed height to 100%. It seems that was enough to short-circuit the anchor links.
Sorry for a late reply here. Glad you figured it out :) I was ready to help you fix it, though.

Quote from: KRISHNA0007 on August 07, 2012, 03:24:56 PM
thanks for this awesome mod
Glad you like it!
Title: Re: Ad Management mod
Post by: LOLwut on August 12, 2012, 10:32:47 AM
Hey, I had the mod on my site a LONG time ago and it worked great. But now when I add, an add, it will not show up. its strange because when I type in a random line of text, that will show, but not when I select a vertical ad from google.

Any Ideas as to what could be causing this?
Title: Re: Ad Management mod
Post by: vbgamer45 on August 12, 2012, 11:06:43 AM
Google takes a while to appear so will be blank for a while if it is a new ad block/new site for google.
Title: Re: Ad Management mod
Post by: AMWebby on August 12, 2012, 05:53:43 PM
Quote from: Labradoodle-360 on August 08, 2012, 11:27:07 AM
Sorry for a late reply here. Glad you figured it out :) I was ready to help you fix it, though.
Hope you can help me with this then.

I'm trying to display the ads on my Joomla website with a module using the following code:


<?php
require_once("./forum/SSI.php");

include_once(
"./forum/Sources/LoadAds.php");

$ads show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

?>



I cribbed this from an earlier post but it doesn't seem to display anything and doesn't throw up any errors. Any idea what I'm doing wrong?
Title: Re: Ad Management mod
Post by: Matthew K. on August 12, 2012, 07:37:44 PM
There's nothing I can do without testing it to debug it, sorry.
Title: Re: Ad Management mod
Post by: airtetdotin on August 18, 2012, 02:31:41 AM
Quote from: Realinfo on May 05, 2012, 10:08:00 PM
Quote from: Austin G on April 30, 2012, 08:45:23 PM
I can not get ads to disable for usergroups. I only have "Enable Ads" selected on regular members and guests. But it will show up for everyone (except admins if using the "hide for admins" setting). I would really like to get this working so that we can remove ads for paid members. I would be happy just to add more usergroups to the "hide for admins" setting.

I have very same issue........... is there any solution................
you have installed
but i have facing these problem

   Type    Action    Description
   1.    Execute Code    install.php    
*    2.    Execute Modification    ./index.php    Test successful
*    3.    Execute Modification    ./Sources/Admin.php    Test successful
*    4.    Execute Modification    ./Sources/QueryString.php    Test successful
*    5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
*    6.    Execute Modification    ./Themes/default/Display.template.php    Test successful
*    7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
*    8.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
   9.    Extract File    ./Sources/Ads.php    
   10.    Extract File    ./Sources/LoadAds.php    
   11.    Extract File    ./Themes/default/Ads.template.php    
   12.    Extract File    ./Themes/default/languages/Ads.english.php    
   13.    Extract File    ./Themes/default/languages/Ads.english-utf8.php    

Install in Other Themes
To use this modification in themes other than the default, the package manager needs to make additional changes to the other themes. If you'd like to install this modification in the other themes, please select these themes below.
      Core Theme
      Execute Modification    ./Themes/core/BoardIndex.template.php    Test failed
      1.    Add Before    ./Themes/core/BoardIndex.template.php    Test successful
      2.    Add After    ./Themes/core/BoardIndex.template.php    Test failed
      Execute Modification    ./Themes/core/Display.template.php    Test failed
      1.    Add After    ./Themes/core/Display.template.php    Test successful
      2.    Replace    ./Themes/core/Display.template.php    Test successful
      3.    Replace    ./Themes/core/Display.template.php    Test failed
      Execute Modification    ./Themes/core/MessageIndex.template.php    Test failed
      1.    Add After    ./Themes/core/MessageIndex.template.php    Test successful
      2.    Replace    ./Themes/core/MessageIndex.template.php    Test failed

When i installed error message
SQL logic error or missing database
near "NOT": syntax error
File: /home/a5716416/public_html/Packages/temp/install.php
Line: 51
Title: Re: Ad Management mod
Post by: vbgamer45 on August 18, 2012, 10:20:35 AM
Are you using MySQL currently the mod only supports that database type.
Title: Re: Ad Management mod
Post by: jayman2 on August 19, 2012, 07:43:53 PM
I've been trying to install ad management into my smf v2.0.2 forum.  I'm using the Urban theme and I'm not having any luck.  I ran the install.php file from my root directory, then when I go to phpmyadmin, the only entries that I see for the mod is smf_ads and smf_ads_settings.  Shouldn't there be more entries? 

I know this mod will work on the Urban theme because I visited a forum running smf 2.0.2 with the Urban theme and he had ads all over the place.  Are there many people having any luck with this?
Title: Re: Ad Management mod
Post by: Blackburn on August 19, 2012, 08:06:16 PM
thank you ;)
Title: Re: Ad Management mod
Post by: jayman2 on August 20, 2012, 08:06:54 AM
Can anyone help me?

Quote from: jayman2 on August 19, 2012, 07:43:53 PM
I've been trying to install ad management into my smf v2.0.2 forum.  I'm using the Urban theme and I'm not having any luck.  I ran the install.php file from my root directory, then when I go to phpmyadmin, the only entries that I see for the mod is smf_ads and smf_ads_settings.  Shouldn't there be more entries? 

I know this mod will work on the Urban theme because I visited a forum running smf 2.0.2 with the Urban theme and he had ads all over the place.  Are there many people having any luck with this?
OK... I've got it to the point now, where I can display ads in my forums areas, but only as LIVE LINKS, they don't pull the ad image.   I get box outlines the shape of the ad with a small red x in the upper left-hand corner, and a link to the ad.   I can get the ads to appear in the correct positions that I select in the ads setup, but only as LINKS.  I can even just type in html code and that displays also.  How do I get the ad images to show up?  I feel like I'm so close.
Title: Re: Ad Management mod
Post by: mrintech on August 20, 2012, 11:34:44 AM
Thanks a ton for this MOD :)

I just started using it and it works like a charm :)

Thanks a lot again :)
Title: Re: Ad Management mod
Post by: Texan78 on August 20, 2012, 12:40:26 PM
Hello,

I have this mod installed and I have had it installed for months and no problems out of it at all. I just have a minor tweak I want to make so I can manage the location of Ads better.

If you look at the screenshot, you will noticed circled in red is where the Mod places the ad if you have it selected for "Display ads on every page on the top of the page". I would like to move that bit of code that displays those Ads to where the Banner Ad is currently placed. I have that ad hard coded in my index.template.php for the Banner. I would like to control my ads from the Mod, but I would like it to place them where the current banner is at.

Traced back through the manual edits and nothing referring to code for the index.template.php file that adds that code to the very top. So where would I find that code so I can move it to where I want it or is that done with a hook? If so, where could I find it?

(http://www.mesquiteweather.net/wxconnection/screenshots/ads.png)

-Thanks!
Title: Re: Ad Management mod
Post by: Kindred on August 20, 2012, 11:12:28 PM
Use HTML center tags...
Title: Re: Ad Management mod
Post by: Texan78 on August 20, 2012, 11:41:53 PM
Quote from: Kindred on August 20, 2012, 11:12:28 PM
Use HTML center tags...

Those are Deprecated tags, instead do.

<div style="text-align:center">INSERT GOOGLE CODE HERE</div>
Title: Re: Ad Management mod
Post by: mrintech on August 21, 2012, 10:38:09 AM
Quote from: khyamay on August 21, 2012, 08:21:47 AM
Quote from: Texan78 on August 20, 2012, 11:41:53 PM
Quote from: Kindred on August 20, 2012, 11:12:28 PM
Use HTML center tags...

Those are Deprecated tags, instead do.

<div style="text-align:center">INSERT GOOGLE CODE HERE</div>

i am using ad management mod and the code u mention can only be used when manually inserting the ad right??

It will work everywhere. Just put the tags above and below the Ad code in Ad Management Page :)

I used following and it works like a charm:

<center>
.
.
GOOGLE ADSENSE CODE
.
.
</center>
<br></br>

:)
Title: Re: Ad Management mod
Post by: jayman2 on August 21, 2012, 10:59:06 AM
Can anyone help me?

    I've been trying to install ad management into my smf v2.0.2 forum.  I'm using the Urban theme and I'm not having any luck.  I ran the install.php file from my root directory, then when I go to phpmyadmin, the only entries that I see for the mod is smf_ads and smf_ads_settings.  Shouldn't there be more entries?

    I know this mod will work on the Urban theme because I visited a forum running smf 2.0.2 with the Urban theme and he had ads all over the place.  Are there many people having any luck with this?

PS:
OK... I've got it to the point now, where I can display ads in my forums areas, but only as LIVE LINKS, they don't pull the ad image.   I get box outlines the shape of the ad with a small red x in the upper left-hand corner, and a link to the ad.   I can get the ads to appear in the correct positions that I select in the ads setup, but only as LINKS.  I can even just type in html code and that displays also.  How do I get the ad images to show up?  I feel like I'm so close.
Title: Re: Ad Management mod
Post by: Texan78 on August 21, 2012, 11:50:52 AM
Quote from: mrintech on August 21, 2012, 10:38:09 AM
I used following and it works like a charm:

<center>
.
.
GOOGLE ADSENSE CODE
.
.
</center>
<br></br>

:)

Keep in mind using the <center> tag is a depreciated tag and might not rendered correctly in some users browsers. It would be recommended to use the div tags with inline styling as it is more HTML compliant.

Title: Re: Ad Management mod
Post by: Texan78 on August 21, 2012, 11:53:05 AM
Does anyone know or have any information regarding this issue?

http://www.simplemachines.org/community/index.php?topic=68632.msg3393202#msg3393202

-Thanks
Title: Re: Ad Management mod
Post by: mrintech on August 21, 2012, 11:57:25 AM
Quote from: Texan78 on August 21, 2012, 11:50:52 AM
Quote from: mrintech on August 21, 2012, 10:38:09 AM
I used following and it works like a charm:

<center>
.
.
GOOGLE ADSENSE CODE
.
.
</center>
<br></br>

:)

Keep in mind using the <center> tag is a depreciated tag and might not rendered correctly in some users browsers. It would be recommended to use the div tags with inline styling as it is more HTML compliant.

Thanks. I will do the changes


(http://www.katzy.dsl.pipex.com/Smileys/thanks3.gif)
Title: Re: Ad Management mod
Post by: Texan78 on August 21, 2012, 01:47:24 PM
Quote from: mrintech on August 21, 2012, 11:57:25 AM
Quote from: Texan78 on August 21, 2012, 11:50:52 AM
Quote from: mrintech on August 21, 2012, 10:38:09 AM
I used following and it works like a charm:

<center>
.
.
GOOGLE ADSENSE CODE
.
.
</center>
<br></br>

:)

Keep in mind using the <center> tag is a depreciated tag and might not rendered correctly in some users browsers. It would be recommended to use the div tags with inline styling as it is more HTML compliant.

Thanks. I will do the changes


(http://www.katzy.dsl.pipex.com/Smileys/thanks3.gif)

I noticed you are also using a <br> tag. If you are going to use it it should be <br /> and not </br> as it can upset some vaildators.

In your case you actually don't even need to use that tag since it is kind of being used out of context per say. While it works yes, a better option would be to do this...

<div style="text-align:center; padding-bottom:12px">INSERT GOOGLE CODE HERE</div>

Then just adjust the padding_bottom number to your liking for the amount of spacing you are needing. It is a much cleaner and efficient way.  ;D

Hope that helps some.
Title: Re: Ad Management mod
Post by: mrintech on August 21, 2012, 03:23:06 PM
Quote from: Texan78 on August 21, 2012, 01:47:24 PM

I noticed you are also using a <br> tag. If you are going to use it it should be <br /> and not </br> as it can upset some vaildators.

In your case you actually don't even need to use that tag since it is kind of being used out of context per say. While it works yes, a better option would be to do this...

<div style="text-align:center; padding-bottom:12px">INSERT GOOGLE CODE HERE</div>

Then just adjust the padding_bottom number to your liking for the amount of spacing you are needing. It is a much cleaner and efficient way.  ;D

Hope that helps some.

Thanks a lot, I will do this tomorrow as my first priority :)

(http://www.katzy.dsl.pipex.com/Smileys/thanks3.gif)
Title: Re: Ad Management mod
Post by: Texan78 on August 21, 2012, 11:55:38 PM
Ok in Themes/default/Ads.template.php I found the hook that is used to for the Ad at the very top of the page. I put it in my index.template file where my existing AdSense is so I can control it where I need it and it works great.

Now the only thing I need that I can't find is here the exisiting code is in the top so I can remove it?

Anyone know what template the code is so I can remove it from the top?

function template_adsheaders_above()
{
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

}



-Thanks!
Title: Re: Ad Management mod
Post by: jayman2 on August 22, 2012, 09:04:29 PM
I've been setting up the ad management mod to run on my v2.0.2 forum using the Urban theme.  I've got it running now, but the problem is it will only display .png ads, not .gif.   My forum has quite a few mods installed and I'm thinking that something has been changed so I can't display .gif ads.  Is there somewhere in there that I can change or add something to make it accept gifs?

Thanks in advance.
Title: Re: Ad Management mod
Post by: Realinfo on August 25, 2012, 01:17:31 AM
why we can't have Ad Management mod
with
SimpleAds
http://custom.simplemachines.org/mods/index.php?mod=2557
Title: Re: Ad Management mod
Post by: crobbe on August 25, 2012, 01:41:59 PM
I'm having a bit of trouble with this mod (bug?).

I want to put some Google Adsensecode in "Display ads after categories" = 1 but the advertisement do not show.

However, when I choose "after categories" = 2 it works just fine.

Advice please.
Title: Re: Ad Management mod
Post by: vikashsingh on August 27, 2012, 02:56:23 AM
I think
Anyone use this yet?

I'd like to see a working example.

Thanks
Title: Re: Ad Management mod
Post by: wolfo on September 02, 2012, 12:18:48 PM
hello

wot the problem hier :)

(http://img824.imageshack.us/img824/5426/unbenanntwrs.png)
Title: Re: Ad Management mod
Post by: Kindred on September 02, 2012, 02:05:16 PM
Answer is in the wiki, and has also been answered multiple times in every mod thread
Title: Re: Ad Management mod
Post by: mrnuke on October 01, 2012, 09:48:02 PM
I accidentally deleted the code from one of my ads I was testing. Where is that data stored? I have a few days old backup and I'd rather not have to start fro scratch again.

Thanks
Title: Re: Ad Management mod
Post by: vbgamer45 on October 01, 2012, 09:55:07 PM
I believe it is stored in the ad management database tables.
Title: Re: Ad Management mod
Post by: mrnuke on October 01, 2012, 10:12:17 PM
Quote from: vbgamer45 on October 01, 2012, 09:55:07 PM
I believe it is stored in the ad management database tables.

Dang I was afraid of that. That means it's gone.. :-(
Title: Re: Ad Management mod
Post by: vbgamer45 on October 01, 2012, 10:57:41 PM
You didn't backup the whole database? If you did it should be in there.
Title: Re: Ad Management mod
Post by: HecticZA on October 17, 2012, 08:32:41 AM
Hi guys, I have very little experience or knowledge installing these mods.
I understand that I must install certain code manually.
When I do I do that?
Before I attempt to  install the mod(It indicates a lot of test failures) or do I install the mod and then add the code manually?

Title: Re: Ad Management mod
Post by: Kindred on October 17, 2012, 08:43:29 AM
either....
Title: Re: Ad Management mod
Post by: HecticZA on October 17, 2012, 09:00:16 AM
Quote from: Kindred on October 17, 2012, 08:43:29 AM
either....
Thank you for the speedy reply.
Expected to get flamed for that seemingly stupid question.
:)
Title: Re: Ad Management mod
Post by: Kindred on October 17, 2012, 09:19:08 AM
it's actually not such a stupid question.... :)

I posted previously from my phone. Let me be more clear now that I am on an actual keyboard.
It is often easier to do the edits BEFORE you complete the (marked as failed) installation, because the edits that you need to make are all listed there...   if you do it afterwards, you have to keep track of which edits to make to which files (and which edits were already done by the automatic installer).

However, as long as all edits are made in the end, it can be done in any order.
Title: Re: Ad Management mod
Post by: Silvershark78 on October 18, 2012, 08:16:13 PM
OK I have been digging through this a little bit and the coding is way over my head. the only coding I understand is how to change the color of text in an html line...lol. I think this is one of those topics that has "been answered many times"
But I don't understand the coding stuff. Can I just click all the boxes and hope it works...lol

here is what I get. Please be gental because I don't understand any of the stuff on previous pages and there are almost 350 pages in this topic

(http://i1261.photobucket.com/albums/ii585/silvershark78/aptestfailed.png)
Title: Re: Ad Management mod
Post by: Arantor on October 18, 2012, 08:20:03 PM
What the mod is saying is that it's trying to edit the files of the 'Core' theme and that it can't. But you're not using the Core theme - you're using a different theme, so you can safely ignore that part.
Title: Re: Ad Management mod
Post by: Silvershark78 on October 18, 2012, 08:21:44 PM
OK so just to be certain, what you mean is, ignore the failed tests and just click install
Title: Re: Ad Management mod
Post by: Arantor on October 18, 2012, 08:34:23 PM
Assuming that there are no other failed tests, and that you're definitely not using the Core theme (and no-one else is), then yes, you can ignore it.
Title: Re: Ad Management mod
Post by: Silvershark78 on October 18, 2012, 08:52:40 PM
thank you
Title: Re: Ad Management mod
Post by: loplo on October 20, 2012, 02:29:57 PM
Hey guys.
It seems I've got some problems installing this mod.
I'm trying to install it manually, but I can't find some pieces of code to replace.
I can't find the following part in ./Themes/core/BoardIndex.template.php
<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';
Title: Re: Ad Management mod
Post by: Shadowing on October 28, 2012, 03:34:16 PM
Hey guys for what i read on the first post on this thread. ad management mod is added for english by default

so i dont need to download the package? if so where is the link to download the package.

If i dont have to download the package then I dont see any header option under the adminstration panel :(

I'm using 2.0.2

Thanks
Title: Re: Ad Management mod
Post by: SMFHacks.com Team on October 28, 2012, 04:45:23 PM
Make sure you are using english and not english utf8
Title: Re: Ad Management mod
Post by: Shadowing on October 28, 2012, 05:28:47 PM
I found the direct link to the package

that should be in the first post incase someone finds this thread before the ad_mod forum/site
Title: Re: Ad Management mod
Post by: Shadowing on October 28, 2012, 05:42:27 PM
I read im suppose to beable to go to server settings and see if im using utf8 or not. but there is nothing in server settings that says it


Edit: nevermind i found it. it was moved to its own tab apparently
Title: Re: Ad Management mod
Post by: Shadowing on October 28, 2012, 06:02:25 PM
Quote from: SMFHacks.com Team on October 28, 2012, 04:45:23 PM
Make sure you are using english and not english utf8


syas im using ISO-8859-1
Title: Re: Ad Management mod
Post by: vbgamer45 on October 28, 2012, 09:15:36 PM
Check under Server Settings for default language
Title: Re: Ad Management mod
Post by: kr5323 on October 30, 2012, 10:13:18 AM
I have installed smf 2.02, default theme and ad management latest version.

The advertising mod shows me everywhere except in the welcome user area. I used search but can not find solution.


Can you help?


Thanks.
Title: Re: Ad Management mod
Post by: loplo on October 30, 2012, 02:36:34 PM
How the hell have you been able to install it? I've tried on a clean install, and I wasn't able to install it.
Title: Re: Ad Management mod
Post by: Kindred on October 30, 2012, 03:19:23 PM
kr5323,
did you have any errors/failures on install?   Like maybe in index.template.php for your theme?

loplo,
I have installed it just fine on not only a clean installation, but an installation with 20+ other mods...
Title: Re: Ad Management mod
Post by: kr5323 on October 30, 2012, 04:10:34 PM
Quote from: Kindred on October 30, 2012, 03:19:23 PM
kr5323,
did you have any errors/failures on install?   Like maybe in index.template.php for your theme?

No error in the installation.

The problem is that advertising does not work in the "wellcome userarea".



Thanks.
Title: Re: Ad Management mod
Post by: loplo on October 30, 2012, 04:11:29 PM
Kindred I've tried again and still no joy.
BoardIndex.template.php, Display.template.php and MessageIndex.template.php are not my friends.

kr5323, no error in the installation sounds too good.
Title: Re: Ad Management mod
Post by: Kindred on October 30, 2012, 04:21:15 PM
kr5323, I understood your problem the first time. repeating it won't help anything...
The only reason I can see that it would not work in that area is if the code was not correctly added to that section of index.template.php in which ever theme you are using.

--edit- I was partially correct. As it turns out, the issue is in the mod itself... and you need to start using search, kr5323. If you search this thread you might find read http://www.simplemachines.org/community/index.php?topic=68632.msg3329090#msg3329090



loplo, if you are getting those errors, then you are not using a clean installation. pretty simple...
it just means that you'll have to manually edit those files in the called out sections.
Title: Re: Ad Management mod
Post by: loplo on October 30, 2012, 04:34:34 PM
I've just reinstalled SMF on my test domain and I still can't install it.
Are there any tricks to install it?
I've tried to edit the files, but can't find the sections.
Title: Re: Ad Management mod
Post by: Kindred on October 30, 2012, 04:40:50 PM
you can't find the sections in the DEFAULT theme template files?  Unlikely at best...
Title: Re: Ad Management mod
Post by: loplo on October 30, 2012, 04:52:15 PM
Let's take the first error:
Add After   ./Themes/core/BoardIndex.template.php   Test failed
The code says:
after this:
<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';


add this: echo '<tbody><tr><td colspan="4">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>';


I'm looking just for <tbody class="divider"> and can't find it in any place. I'm using notepad++.
Tried searching just for "divider", still no joy.
Title: Re: Ad Management mod
Post by: kr5323 on October 30, 2012, 04:58:29 PM
Quote from: Kindred on October 30, 2012, 04:21:15 PM
kr5323, I understood your problem the first time. repeating it won't help anything...
The only reason I can see that it would not work in that area is if the code was not correctly added to that section of index.template.php in which ever theme you are using.

--edit- I was partially correct. As it turns out, the issue is in the mod itself... and you need to start using search, kr5323. If you search this thread you might find read http://www.simplemachines.org/community/index.php?topic=68632.msg3329090#msg3329090



loplo, if you are getting those errors, then you are not using a clean installation. pretty simple...
it just means that you'll have to manually edit those files in the called out sections.

Is this the solutions??


In what file must include the code? ¿index.template.php? ¿Where?


Thanks.


PD1: I searched before asking, but I did not understand that this post was the solution.
PD2: I use theme default.
PD3: Sorry for my english.
Title: Re: Ad Management mod
Post by: vbgamer45 on October 30, 2012, 06:30:40 PM
Quote from: loplo on October 30, 2012, 04:52:15 PM
Let's take the first error:
Add After   ./Themes/core/BoardIndex.template.php   Test failed
The code says:
after this:
<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';


add this: echo '<tbody><tr><td colspan="4">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>';


I'm looking just for <tbody class="divider"> and can't find it in any place. I'm using notepad++.
Tried searching just for "divider", still no joy.

What I would do is look in the default theme and see where it is placed.

Then look for a similar area of code in your custom theme you are using.
Title: Re: Ad Management mod
Post by: Kindred on October 30, 2012, 07:52:39 PM
or just forget about that error and delete the core theme entirely. It's an outdated theme...


kr5323,
per this: http://www.simplemachines.org/community/index.php?topic=68632.msg2759992#msg2759992
the code goes in index.template.php just above the existing: // Show a random news item
Title: Re: Ad Management mod
Post by: loplo on October 31, 2012, 04:14:23 PM
Thanks guys. I thought that without a successful install into the core theme, this mod can't work. Damn, I've spent so many days trying to figure out where those pieces of code belong :)
Title: Re: Ad Management mod
Post by: techguy on November 07, 2012, 10:47:56 AM
Quote from: Arantor on May 22, 2012, 07:29:53 PM
And they won't work together! Fairly sure that SimpleAds can do anything this can do.
Hi all,
i am new to SMF and just installed ad management mod, the mod is fantastic and very easy to use.
i have a working account with snowtion, when i add a ad, i select a location for it to be displayed, but after saving it, there are 2 adds displayed for teh same add.

for example, i created 1 add, named abc and clicked on saved, after that when i go to edit tab, there are 2 adds of teh same name, i mean by adding 1 ad, 2nd is autocreated, because of which the adds are also coming douoble.

i created a new add again and selected the option to show in the left area, when i go to home page, there are 2 colums of teh same add on left side
Title: Re: Ad Management mod
Post by: Kindred on November 07, 2012, 10:51:17 AM
sounds like you double installed the mod...   I think you will have to manually edit the files to remove the duplicated code.
Title: Re: Ad Management mod
Post by: HecticZA on November 10, 2012, 08:06:14 AM
Little background info:
I'm using SMF V2.02. Templates are on V2.0 (not sure when or why I did this. I tried to reinstall 2.02, but it did not upgrade the templates., but did remove all my mod installations. I reinstalled the mods and now the Ads display double. I've read that I need to delete the double entry and will get to to that asap.
I'm using a Gt5 them by Akhyne as default theme.
Files have been manually parsed as per instructions for V2.02.
File permissions - 600

I've tested this offline via XAMP and it seems to work fine.

My problem and questions:

The ads do not display as I want them to on my live forum.

The following does work:
The left and right tower2 does compress post and text, but I haven't played around with it to much.

The following does not work:


The attached pics indicated the errors, before I did the manual parsing.
The attached php, are the files I edited.
I hope I've provided enough and more importantly, the relevant information.

I would really appreciate some help.

Thank you
:)

Edit:
I'm receiving  Bad gateway errors, so not sure what is going on and have removed the attachments. Will try to load them 1 by 1 when this messages has been posted.
Struggling with my line atm and I'm not sure if I'm allowed to upload .PHP files.[/list]
Title: Re: Ad Management mod
Post by: techguy on November 11, 2012, 09:39:09 AM
Quote from: techguy on November 07, 2012, 10:47:56 AM
Quote from: Arantor on May 22, 2012, 07:29:53 PM
And they won't work together! Fairly sure that SimpleAds can do anything this can do.
Hi all,
i am new to SMF and just installed ad management mod, the mod is fantastic and very easy to use.
i have a working account with snowtion, when i add a ad, i select a location for it to be displayed, but after saving it, there are 2 adds displayed for teh same add.

for example, i created 1 add, named abc and clicked on saved, after that when i go to edit tab, there are 2 adds of teh same name, i mean by adding 1 ad, 2nd is autocreated, because of which the adds are also coming douoble.

i created a new add again and selected the option to show in the left area, when i go to home page, there are 2 colums of teh same add on left side

How can I do that
Title: Re: Ad Management mod
Post by: HecticZA on November 13, 2012, 10:09:13 AM
Quote from: HecticZA on November 10, 2012, 08:06:14 AM
    Hi guys & girls.
    :)

    Knowledge level: Noob

    I tried to stay away from asking to much questions, but as you can see I'm back.

Little background info:
I'm using SMF V2.02. Templates are on V2.0 (not sure when or why I did this. I tried to reinstall 2.02, but it did not upgrade the templates., but did remove all my mod installations. I reinstalled the mods and now the Ads display double. I've read that I need to delete the double entry and will get to to that asap.
I'm using a Gt5 them by Akhyne as default theme.
Files have been manually parsed as per instructions for V2.02.
File permissions - 600

I've tested this offline via XAMP and it seems to work fine.

My problem and questions:

The ads do not display as I want them to on my live forum.

The following does work:

  • Which boards should this ad display in
  • Display ads on every page right below the menu
  • Every page under Menu
  • Display ads on every page on the top of the page
  • Display ads on the bottom of the page
  • Display ads on every page as a tower on the left side
  • Display ads on every page as a tower on the right side
The left and right tower2 does compress post and text, but I haven't played around with it to much.

The following does not work:

  • Display ads within posts
  • Display ads after categories
  • Display ads on board index
  • Display ads on message index
  • Display ads on the post page
  • Display ads after the last post
  • Display ads in the welcome user area (Not really sure where this is, but could find nothing.)
  • Display ads under child boards
Sorry for the bump, but any advise or help maybe?
The attached pics indicated the errors, before I did the manual parsing.
The attached php, are the files I edited.
I hope I've provided enough and more importantly, the relevant information.

I would really appreciate some help.

Thank you
:)

Edit:
I'm receiving  Bad gateway errors, so not sure what is going on and have removed the attachments. Will try to load them 1 by 1 when this messages has been posted.
Struggling with my line atm and I'm not sure if I'm allowed to upload .PHP files.[/list]
Title: Re: Ad Management mod
Post by: saosangmo on November 13, 2012, 12:07:57 PM
Thank for your nice mod.
I have installed this mod successfully but now I want to change the position every top of page. Could you tell me some information which I can customize with my theme.
many thanks
Title: Re: Ad Management mod
Post by: kennethm on November 15, 2012, 01:01:14 PM
ad mod gives you an option of placing an ad in the welcome area, so exactly where is the welcome area?
Title: Re: Ad Management mod
Post by: vbgamer45 on November 15, 2012, 03:32:06 PM
In the top right corner near the date/time search/userbox on the default theme.
Title: Re: Ad Management mod
Post by: kennethm on November 18, 2012, 03:24:28 AM
i have 20 different boards on my forum, if i just want an ad in any ONE of those boards do i just enter the board # in the box that asks which board you want the ads to display in? So if i wanted an ad in board #18 i would just enter 18? And if i wanted it in boards 18,19,20 I would just enter those numbers? Is that correct the way im understand this? thanks!
Title: Re: Ad Management mod
Post by: kennethm on November 19, 2012, 01:12:36 PM
hello anyone here?
Title: Re: Ad Management mod
Post by: Shambles on November 19, 2012, 01:18:01 PM
Why not just try it and see?
Title: Re: Ad Management mod
Post by: techguy on November 20, 2012, 09:09:31 AM
How to position Ads.
I mean, left, right, top, bottom, ...
Title: Re: Ad Management mod
Post by: vbgamer45 on November 28, 2012, 04:58:48 PM
Quote from: techguy on November 20, 2012, 09:09:31 AM
How to position Ads.
I mean, left, right, top, bottom, ...
Center the ad or using thead placement locations.

Otherwise you can use html to position the html
Title: Re: Ad Management mod
Post by: jeff2081 on December 03, 2012, 09:12:12 PM
Is anyone having problems with the ads suddenly stopped working and not showing? My ads has been working for years and just recently (been a month since I realized) that my ads are not showing at all. They seem like the space is taken up wherever they go, but the actual ads do not appear at all to me or any of my members. I am running 2.0 smf and the lates smfads. I did not change or install anything new on my site within the last year or so.
Title: Re: Ad Management mod
Post by: vbgamer45 on December 03, 2012, 09:40:41 PM
What type of ads?

So you see the space but no ads?
Title: Re: Ad Management mod
Post by: jeff2081 on December 03, 2012, 09:46:41 PM
Quote from: vbgamer45 on December 03, 2012, 09:40:41 PM
What type of ads?

So you see the space but no ads?

I use google ads only.

Yes, I can see the space it takes up like where it should be; but it does not show up. I only use google ads.
Title: Re: Ad Management mod
Post by: vbgamer45 on December 03, 2012, 09:51:28 PM
That could be the problem google may not like the content on the site/page or google blocked the domain.
Title: Re: Ad Management mod
Post by: jeff2081 on December 03, 2012, 09:59:30 PM
Quote from: vbgamer45 on December 03, 2012, 09:51:28 PM
That could be the problem google may not like the content on the site/page or google blocked the domain.

I will check with google. I had previously checked and the ads themselves are still active. My account is still in good standing. Usually if something like that does happen, I will get a notice or something similar. I will check back and let you know.
Title: Re: Ad Management mod
Post by: rickmastfan67 on December 17, 2012, 03:31:48 AM
I'm just curious, but has anybody gotten this to properly work with the "Core" theme in 2.0.x?  Before anybody says to "uninstall" the Core theme, we are currently using a color mod of that theme for our forums, but it isn't heavily modified from the original and just has minor tweaks to it.  Any help would be appreciated.  Thanks.
Title: Re: Ad Management mod
Post by: vbgamer45 on December 17, 2012, 11:35:03 AM
Yes there are a couple who have gotten it to work just requires manual edits to the core theme to work correctly.
Title: Re: Ad Management mod
Post by: SD-X on December 17, 2012, 01:46:01 PM
Hopefully this will be the last time I have to spam the forums today! ;D

Is this mod fully compatible with SMF 2.0.3?
Title: Re: Ad Management mod
Post by: Kindred on December 17, 2012, 01:56:52 PM
SugarD,
you need to a) calm down and b) try it...   most mods will have no appreciable difference between 2.0.0 and 2.0.3
Title: Re: Ad Management mod
Post by: SD-X on December 17, 2012, 01:58:21 PM
Quote from: Kindred on December 17, 2012, 01:56:52 PM
SugarD,
you need to a) calm down and b) try it...   most mods will have no appreciable difference between 2.0.0 and 2.0.3
Quote from: SugarD-x on December 17, 2012, 01:57:36 PM
I'm completely calm. I'm just seeing if anyone else has had any issues before I upgrade. I have a lot of mods installed on a live forum that can't be down for a long period of time.
:P
Title: Re: Ad Management mod
Post by: Kindred on December 17, 2012, 02:02:40 PM
I have 60+ mods installed on one site that upgraded with the security patch/package.

No problems
Title: Re: Ad Management mod
Post by: SD-X on December 17, 2012, 02:05:29 PM
Quote from: Kindred on December 17, 2012, 02:02:40 PM
I have 60+ mods installed on one site that upgraded with the security patch/package.

No problems
Although I know the changes are probably minimal at best, I just worry about uninstalling everything and reinstalling again only to find out one mod breaks everything. ;D

I probably also should check what changed in SSI.php to be sure nothing breaks my forum. D:
Title: Re: Ad Management mod
Post by: Kindred on December 17, 2012, 02:07:43 PM
why do you need to uninstall anything?   The 2.0.3 update patch installs just like any other mod!

I updated 5 sites in under 10 mins
Title: Re: Ad Management mod
Post by: SD-X on December 17, 2012, 02:11:34 PM
Quote from: Kindred on December 17, 2012, 02:07:43 PM
why do you need to uninstall anything?   The 2.0.3 update patch installs just like any other mod!

I updated 5 sites in under 10 mins
File changes can affect mods which install into sections of code that get edited by the package. Although these small updates don't affect most mods, I've seen it happen many times in the past. In cases like this on live forums, it's better safe than sorry. :)
Title: Re: Ad Management mod
Post by: Kindred on December 17, 2012, 02:28:20 PM
as I said...   I updated 5 forums - all of them with mods, some with ALOT of mods - and had no issues at all, using the package patch.
Title: Re: Ad Management mod
Post by: SD-X on December 17, 2012, 02:30:08 PM
Quote from: Kindred on December 17, 2012, 02:28:20 PM
as I said...   I updated 5 forums - all of them with mods, some with ALOT of mods - and had no issues at all, using the package patch.
Did you have this mod installed on any of them?
Title: Re: Ad Management mod
Post by: Kindred on December 17, 2012, 02:39:44 PM
this specific one? no, I don't think so. I disagree with the excessive links that it adds.... however, take a backup and then try the installation yourself rather than leaving your forum in an outdated version.
Title: Re: Ad Management mod
Post by: kennethm on December 20, 2012, 11:22:28 PM
REPOST FROM 2x support
_________________________________________________________________________

I can put ads anywhere the ad mod allows you to with any probs, EXCEPT the welcome user area

I tick that box same as any other, but no ad appears there. I assume the welcome area is around the search box area? Or the general upper  right side on the page? Like on this smf page theres an Online Manual ad (image) which is what i assume is the welcome user area.

ok im using the top menu mod, which shouldnt have anything to do with it i would think AND i have a banner ad on the index page which is right under the menu bar. I havent played around with it yet, but if a large banner (72 px tall X 700px wide) under the menu bar, will an ad not appear in the welcome area?
Title: Re: Ad Management mod
Post by: kennethm on December 23, 2012, 03:04:39 AM
anyone?
Title: Re: Ad Management mod
Post by: kennethm on December 26, 2012, 03:16:43 PM
no support for a popular mod?
Title: Re: Ad Management mod
Post by: vbgamer45 on December 26, 2012, 03:29:19 PM
I would follow the manual install instructions and make sure you have the edits.
Title: Re: Ad Management mod
Post by: MRM4 on December 27, 2012, 04:47:52 PM
I'm using 1.1.16 and have been using Ad Management for over a year. Great mod. Is there anyway to place two ads on one page? Right now, I just have one ad per page. Thanks.
Title: Re: Ad Management mod
Post by: vbgamer45 on December 27, 2012, 04:51:56 PM
You could use tables with custom code to show multiple ads in one ad area/location.
Title: Re: Ad Management mod
Post by: winsoft on December 28, 2012, 01:46:23 PM
What is the credit removal fee for the ad management mod?

Thank you

Quote from: vbgamer45 on December 26, 2012, 03:29:19 PM
I would follow the manual install instructions and make sure you have the edits.
Title: Re: Ad Management mod
Post by: vbgamer45 on December 28, 2012, 01:50:23 PM
$10 one time
http://www.smfhacks.com/copyright_removal.php
Title: Re: Ad Management mod
Post by: wood hoarder on December 28, 2012, 08:32:16 PM
How do I easily install ad manage mod on smf version 2..0.3 I do not know how to code? Is a manual install the only way?  All I get is this error: The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: Ad Management mod
Post by: SD-X on December 28, 2012, 08:57:02 PM
Quote from: wood hoarder on December 28, 2012, 08:32:16 PM
How do I easily install ad manage mod on smf version 2..0.3 I do not know how to code? Is a manual install the only way?  All I get is this error: The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Try redownloading it, and then upload it via your Package Manager again. It should be working fine in SMF 2.0.3. Make sure you are also getting the SMF 2.x version, and not the SMF 1.x one.
Title: Re: Ad Management mod
Post by: wood hoarder on December 28, 2012, 11:31:21 PM
okay will give it a try thx
Title: Re: Ad Management mod
Post by: SD-X on December 28, 2012, 11:42:32 PM
Quote from: wood hoarder on December 28, 2012, 11:31:21 PM
okay will give it a try thx
No problem. :)
Title: Re: Ad Management mod
Post by: 28renton on January 06, 2013, 09:52:55 PM
Using Epic theme.  SMF 2.0.3  Mod ad_mod_v3.0_SMF_v2-0.zip.  When I try to install the mod, under "Install in Other Themes" I'm seeing a lot of fails.  Not to mention I don't see the Epic theme in "Install in Other Themes", I only see "Core".
Title: Re: Ad Management mod
Post by: Kindred on January 06, 2013, 11:29:55 PM
the mod many not affect the template files which the epic theme uses...

as for the failures...  you probably have other mods affecting the target code.
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Ad Management mod
Post by: vbgamer45 on January 06, 2013, 11:36:49 PM
Yeah in that case if you are using a custom theme. Still install but make the changes manually to the theme.
Just look similiar areas of code in location/structure when applying manual edits a custom theme.
Title: Re: Ad Management mod
Post by: OFRD_GRL on January 07, 2013, 11:35:27 AM
I had 2.0.2 and it worked fine.
I upgraded to 2.0.3 and am getting errors trying to reinstall it.

1.   Execute Code   install.php   
   2.   Execute Modification   ./index.php   Test successful
   3.   Execute Modification   ./Sources/Admin.php   Test successful
   4.   Execute Modification   ./Sources/QueryString.php   Test successful
   5.   Execute Modification   ./Themes/default/BoardIndex.template.php   Test successful
   6.   Execute Modification   ./Themes/default/Display.template.php   Test successful
   7.   Execute Modification   ./Themes/default/MessageIndex.template.php   Test successful
   8.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
9.   Extract File   ./Sources/Ads.php   
10.   Extract File   ./Sources/LoadAds.php   
11.   Extract File   ./Themes/default/Ads.template.php   
12.   Extract File   ./Themes/default/languages/Ads.english.php   
13.   Extract File   ./Themes/default/languages/Ads.english-utf8.php   
Install in Other Themes
To use this modification in themes other than the default, the package manager needs to make additional changes to the other themes. If you'd like to install this modification in the other themes, please select these themes below.
    Core Theme
   Execute Modification   ./Themes/core/BoardIndex.template.php   Test failed
   1.   Add Before   ./Themes/core/BoardIndex.template.php   Test successful
   2.   Add After   ./Themes/core/BoardIndex.template.php   Test failed
   Execute Modification   ./Themes/core/Display.template.php   Test failed
   1.   Add After   ./Themes/core/Display.template.php   Test successful
   2.   Replace   ./Themes/core/Display.template.php   Test successful
   3.   Replace   ./Themes/core/Display.template.php   Test failed
   Execute Modification   ./Themes/core/MessageIndex.template.php   Test failed
   1.   Add After   ./Themes/core/MessageIndex.template.php   Test successful
   2.   Replace   ./Themes/core/MessageIndex.template.php   Test failed
Title: Re: Ad Management mod
Post by: vbgamer45 on January 07, 2013, 11:44:36 AM
Are you using the Core Theme? If not you can ignore those errors.
Title: Re: Ad Management mod
Post by: OFRD_GRL on January 07, 2013, 11:45:21 AM
I am using the default theme.
Thanks a million!
Title: Re: Ad Management mod
Post by: vbgamer45 on January 07, 2013, 11:45:55 AM
Then you are set to go Glad to help.
Title: Re: Ad Management mod
Post by: Kindred on January 07, 2013, 11:48:46 AM
as a note, slightly off topic from the mod itself...

Why did you uninstall the mod to do the 2.0.2 -? 2.0.3 upgrade?  You should have been able to apply the security patch as a package without affecting any mods.
Title: Re: Ad Management mod
Post by: AllanD on January 09, 2013, 10:14:40 AM
Not sure if this is the right place to ask, but is it possible to add a tag cloud in this mod, of url's I want added? Hope that makes since.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 09, 2013, 10:53:50 AM
Quote from: AllanD on January 09, 2013, 10:14:40 AM
Not sure if this is the right place to ask, but is it possible to add a tag cloud in this mod, of url's I want added? Hope that makes since.

You could write your own custom php or html code and that can be used as a tag cloud
Title: Re: Ad Management mod
Post by: AllanD on January 09, 2013, 11:10:11 AM
do you happen to know where I could perhaps find a code?
Title: Re: Ad Management mod
Post by: vbgamer45 on January 09, 2013, 11:29:53 AM
I would do like a google search for tag cloud
Title: Re: Ad Management mod
Post by: AllanD on January 09, 2013, 12:29:28 PM
thanks, but every time I try I get generators and not something I could edit in the coding.
Title: Re: Ad Management mod
Post by: mamadmankan on January 11, 2013, 02:51:40 AM
ok ive been trying to add this mod to my website/forum

so i got this

QuoteCore Theme
   Execute Modification   ./Themes/core/BoardIndex.template.php   Test failed
   1.   Add Before   ./Themes/core/BoardIndex.template.php   Test successful
   2.   Add After   ./Themes/core/BoardIndex.template.php   Test failed
   Execute Modification   ./Themes/core/Display.template.php   Test failed
   1.   Add After   ./Themes/core/Display.template.php   Test successful
   2.   Replace   ./Themes/core/Display.template.php   Test successful
   3.   Replace   ./Themes/core/Display.template.php   Test failed
   Execute Modification   ./Themes/core/MessageIndex.template.php   Test failed
   1.   Add After   ./Themes/core/MessageIndex.template.php   Test successful
   2.   Replace   ./Themes/core/MessageIndex.template.php   Test failed


so i went into this

Quote2.   Add After   ./Themes/core/BoardIndex.template.php   Test failed

found this

Code: (Find) [Select]
<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';



Code: (Add After) [Select]

echo '<tbody><tr><td colspan="4">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>';


but i couldnt find the first part

<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';


i couldnt find that any idea how i can find it ? or help installing this
Title: Re: Ad Management mod
Post by: Kindred on January 11, 2013, 07:49:24 AM
are you even using the core theme? If not, ignore that and continue
Title: Re: Ad Management mod
Post by: villasg on January 11, 2013, 07:57:26 AM
Hi i run in my smf 1.1.17 ( greek language ) the  "Ad Managment  2.3" , need to upgrade in 3.0 ?
And if yes how  ( unistall the previus and install the new mod ? or hav a update pack ? ) .
Thanks a lot
Title: Re: Ad Management mod
Post by: Bigguy on January 11, 2013, 09:08:50 AM
I don't think there is an upgrade package for this. (I could be wrong) You will probably have to uninstall it then re-install the new version IF it is compatible with your SMF version.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 11, 2013, 10:25:06 AM
If going from 2.3 to 3.0 I would suggest an uninstall and then a new install.
Title: Re: Ad Management mod
Post by: iain sherriff on January 11, 2013, 11:51:27 AM
HI
Using default theme 2.0.3 and version 3 of the mod.
I have "enable Ads" unchecked for some membergroups but they can still see the Ads. What have I missed /

thanks
Title: Re: Ad Management mod
Post by: mamadmankan on January 11, 2013, 01:55:21 PM
Quote from: Kindred on January 11, 2013, 07:49:24 AM
are you even using the core theme? If not, ignore that and continue

whats the core themes ?
Title: Re: Ad Management mod
Post by: SD-X on January 11, 2013, 02:02:31 PM
Quote from: mamadmankan on January 11, 2013, 01:55:21 PM
Quote from: Kindred on January 11, 2013, 07:49:24 AM
are you even using the core theme? If not, ignore that and continue

whats the core themes ?
The core theme is the default one that comes with SMF itself.
Title: Re: Ad Management mod
Post by: Arantor on January 11, 2013, 02:04:35 PM
QuoteThe core theme is the default one that comes with SMF itself.

Um, no, no it isn't.

SMF 2.0 comes with two themes, one called Curve, one called Core. The one called Curve is the default theme.
Title: Re: Ad Management mod
Post by: Kindred on January 11, 2013, 02:05:44 PM
Sugar...
the Core theme comes with SMF but is only the default for 1.1.x
Curve is the default for 2.0.x
Most people never use core with 2.0.x because it is outdated (it uses many many tables instead of divs, etc)
Title: Re: Ad Management mod
Post by: SD-X on January 11, 2013, 02:31:13 PM
Quote from: Kindred on January 11, 2013, 02:05:44 PM
Sugar...
the Core theme comes with SMF but is only the default for 1.1.x
Curve is the default for 2.0.x
Most people never use core with 2.0.x because it is outdated (it uses many many tables instead of divs, etc)
A lot of people call Curve "default" and "core" even today. I also never said a version. I said SMF. :P
Title: Re: Ad Management mod
Post by: iain sherriff on January 11, 2013, 08:57:52 PM
Hi again.
I have changed over to Ad seller Pro and that controls membergroups fine..........not sure, maybe Ad Managment doesnt anyway ?

Anyway It works well now
Title: Re: Ad Management mod
Post by: mamadmankan on January 12, 2013, 10:23:52 PM
Quote from: mamadmankan on January 11, 2013, 02:51:40 AM
ok ive been trying to add this mod to my website/forum

so i got this

QuoteCore Theme
   Execute Modification   ./Themes/core/BoardIndex.template.php   Test failed
   1.   Add Before   ./Themes/core/BoardIndex.template.php   Test successful
   2.   Add After   ./Themes/core/BoardIndex.template.php   Test failed
   Execute Modification   ./Themes/core/Display.template.php   Test failed
   1.   Add After   ./Themes/core/Display.template.php   Test successful
   2.   Replace   ./Themes/core/Display.template.php   Test successful
   3.   Replace   ./Themes/core/Display.template.php   Test failed
   Execute Modification   ./Themes/core/MessageIndex.template.php   Test failed
   1.   Add After   ./Themes/core/MessageIndex.template.php   Test successful
   2.   Replace   ./Themes/core/MessageIndex.template.php   Test failed


so i went into this

Quote2.   Add After   ./Themes/core/BoardIndex.template.php   Test failed

found this

Code: (Find) [Select]
<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';



Code: (Add After) [Select]

echo '<tbody><tr><td colspan="4">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>';


but i couldnt find the first part

<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';


i couldnt find that any idea how i can find it ? or help installing this

can i please get support on this

can someone help me ?? the code doesnt exist in the PHP if i even try to edit it ??

any help
Title: Re: Ad Management mod
Post by: vbgamer45 on January 12, 2013, 11:01:35 PM
What I do is look at the default theme find where that code is at. Then look at the custom theme and make a similiar edit in the same region.
Title: Re: Ad Management mod
Post by: mamadmankan on January 13, 2013, 10:32:03 PM
Quote from: vbgamer45 on January 12, 2013, 11:01:35 PM
What I do is look at the default theme find where that code is at. Then look at the custom theme and make a similiar edit in the same region.

well i cant find the code in that theme ?? i dont understand sorry

1.) so right now i have my installed theme that i want the custom theme
2.)i tried to install this mod in my custom theme
3.) i tried to install this mode and in some PHP files i dont find the code or it says the code doesnt exist ......???

please help
Title: Re: Ad Management mod
Post by: vbgamer45 on January 14, 2013, 12:38:55 PM
You have to find a similar area.
I do also offer a paid theme install service as well
Title: Re: Ad Management mod
Post by: python01 on January 14, 2013, 03:05:46 PM
I am fairly new to the SMF and this is the first mod that I am trying to install.
Since I am not using the default template I have tried to do manual installation. Once all the files were modified I got error message saying that the proper table in my database is missing. Can someone provide information what columns have to be set up in the table?
Or any other way to create that table?
Walter.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 14, 2013, 03:15:27 PM
For custom themes. First do the complete install and use the option to install on all themes.

Then for any failures try to install on that server.
Title: Re: Ad Management mod
Post by: python01 on January 15, 2013, 10:08:47 PM
Where is the option to install on all themes? Dont see the theme I am using in that section.
I am using MysticJade theme by DzinerStudio and this theme is not even listed in the "Install in other themes" section.
I also peeked into /themes/mysticjade_20a directory and I did not see any directories matching the ones in the manual installation instructions for this mod, what should be my next step?
Title: Re: Ad Management mod
Post by: vbgamer45 on January 15, 2013, 10:22:21 PM
Only on original install time when using SMF 2.0
otherwise you have to do it manually
Title: Re: Ad Management mod
Post by: python01 on January 15, 2013, 11:13:49 PM
Like I said before the files/directories in the custom theme folder do not match the ones specified in manual installation instructions. Is there any way to find out how to adapt these instructions to the mysticjade theme by DzinerStudio which I am using? Or has anyone attempted to install this mod on this theme and can share some knowledge?
Title: Re: Ad Management mod
Post by: vbgamer45 on January 15, 2013, 11:18:46 PM
You only need to modify the files that exist in the themes folder for the custom theme that we are installing on the default theme.
Title: Re: Ad Management mod
Post by: python01 on January 15, 2013, 11:48:53 PM
vbgamer, I really appreciate your input.
Just to make sure I understand everything correctly here is exactly what I see in the www.mysite.com/Themes/mysticjade_20a:
css (folder)
images (folders)
languages (folder)
scripts (folder)
index.php
index.template.php
license.txt
Settings.template.php
theme_info.xml

The way I understand last post, since there are no 'Sources' or 'Themes/Default' directory the changes would have to be done in index.php file only?

Just want to get it right and thanks again for your support.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 15, 2013, 11:56:34 PM
Only change the index.template.php and make the edits to that file.
Title: Re: Ad Management mod
Post by: Kindred on January 16, 2013, 12:01:04 AM
Ummm... Python, the sources directory is under the forum root. That directory is not a theme directory. Also, the index file to be edited will always be the file in the forum root, thhe other index files in other directories are just there to force a redirect in case someone tries to access a directory directly...

The template files which are edited under the default themes directory will also have to be edited in any and all custom themes...  If the template files exist in your theme. If they don't, then the theme uses the default templates.
Title: Re: Ad Management mod
Post by: MoreBloodWine on January 18, 2013, 11:25:17 PM
I backed out all my mods, even went as far as getting a fresh copy of the custom theme but I keep ending up with the same errors when trying to install this mod. Funny thing is, I'm getting the same displayed errors/failed tests for the core theme. Any thoughts, really would love to use this mod... use to back in the days of 1.1 without error.
Title: Re: Ad Management mod
Post by: Kindred on January 18, 2013, 11:44:19 PM
That is because the black rain theme is horrendously coded....    almost NO mods which need to make template edits will succeed with black rain.
(in other words, it's a problem with the theme, not the mod)
Title: Re: Ad Management mod
Post by: MoreBloodWine on January 19, 2013, 12:19:02 AM
Quote from: Kindred on January 18, 2013, 11:44:19 PM
That is because the black rain theme is horrendously coded....    almost NO mods which need to make template edits will succeed with black rain.
(in other words, it's a problem with the theme, not the mod)
Well, it's one of crips and I've always had good luck with it since this is the first mod I have ever ran in to issues with, That said, I also said I get the same errors on the ame files with the core theme so would that be horrendously coded as well ?
Title: Re: Ad Management mod
Post by: Kindred on January 19, 2013, 01:26:11 AM
In terms of modern coding practices.. yup.

Core dates back to 1.1.x and is coded with tables instead of divs, so most of the core won't match up to the default/curve - wich (just like black rain) will require manual edits
Title: Re: Ad Management mod
Post by: MoreBloodWine on January 19, 2013, 01:59:54 AM
Quote from: Kindred on January 19, 2013, 01:26:11 AM
In terms of modern coding practices.. yup.

Core dates back to 1.1.x and is coded with tables instead of divs, so most of the core won't match up to the default/curve - wich (just like black rain) will require manual edits
Well, guess that's what I'm gonna have to try then lol

Maybe I'll take a stab at editing the install files first though so I can install / remove it via he package manager if I need to back it out for other mods or somethin.

Issue though will be finding the appropriate lines since that's the current issue lol

Thx.
Title: Re: Ad Management mod
Post by: JoliePittOnline on January 22, 2013, 01:48:15 PM
Yeah, I had a problem with the ads not showing. When I tried to uninstall, I've got two errors and when I try to uninstall them manually, the codes required to delete were mixed up during the installation. Although, the installation didn't show any errors. The error codes that are supposed to be in themes/default/Display.template.php were inside the themes/default/MessageIndex.template.php

Dunno if it's just the installation process or something else on the mod or my custom theme.
Title: Re: Ad Management mod
Post by: Pawan on January 23, 2013, 09:31:50 AM
Ads not appearing below Menu. Instead they are appearing just below the 1st forum link below menu. Need help. I upgraded recently to SMF 2.0.3
Title: Re: Ad Management mod
Post by: vbgamer45 on January 23, 2013, 12:19:06 PM
Quote from: pawan2002 on January 23, 2013, 09:31:50 AM
Ads not appearing below Menu. Instead they are appearing just below the 1st forum link below menu. Need help. I upgraded recently to SMF 2.0.3
That is the default behavior now for 2.0 version.
Title: Re: Ad Management mod
Post by: mamadmankan on January 24, 2013, 12:04:05 AM
i installed it without core themes can someone post screenshots how  this  ad  should look like ??

Title: Re: Ad Management mod
Post by: Pawan on January 24, 2013, 10:39:21 AM
Quote from: vbgamer45 on January 23, 2013, 12:19:06 PM
Quote from: pawan2002 on January 23, 2013, 09:31:50 AM
Ads not appearing below Menu. Instead they are appearing just below the 1st forum link below menu. Need help. I upgraded recently to SMF 2.0.3
That is the default behavior now for 2.0 version.
Hope you add it in next update.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 24, 2013, 11:12:33 AM
More than likely no since there is already a placement near by.

But you can easily move it yourself in the index.template.php file
Title: Re: Ad Management mod
Post by: vitalik82 on January 27, 2013, 01:15:08 PM
Can someone tell me where is (which file) the code for the following options:

Display ads on every page right below the menu

Display ads on the bottom of the page

I could not find it in either BoardIndex.template.php or index.template.php.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 27, 2013, 02:19:50 PM
Forgot it is a little harder now to due that since we use layers which calls the template functions and those functions can only display at certain places such as before or after the template_above and template_below functions
Title: Re: Ad Management mod
Post by: seanforney on January 30, 2013, 01:09:51 AM
Need help, i just downloaded this onto my forum, and Im getting this error:

Table 'hal1302908214615.smf_ads' doesn't exist
File: D:\hosting\10410639\html\Sources\LoadAds.php
Line: 51

It will not let me do anything now?  Can anyone help?

Thank you kindly in advance.
Title: Re: Ad Management mod
Post by: Kindred on January 30, 2013, 02:43:38 AM
how did you install it?   Because however you installed, the database portion did not get created.
Title: Re: Ad Management mod
Post by: seanforney on January 30, 2013, 09:37:29 AM
I followed the instructions and used the zip file.   Is there a way to fix this or a quick fix?
Title: Re: Ad Management mod
Post by: Kindred on January 30, 2013, 05:56:02 PM
you followed the instructions?


That did not answer my question.
Did you use the package manager to install the mod or did you install it manually by editing the php files yourself?
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on February 02, 2013, 10:35:18 PM
Quote from: seanforney on January 30, 2013, 01:09:51 AM
Need help, i just downloaded this onto my forum, and Im getting this error:

Table 'hal1302908214615.smf_ads' doesn't exist
File: D:\hosting\10410639\html\Sources\LoadAds.php
Line: 51

It will not let me do anything now?  Can anyone help?

Thank you kindly in advance.

just guessing but could try going to line 51 of indicated file and remove the "D:" on the front of that url
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on February 02, 2013, 10:41:37 PM
I've just noticed a problem with certain ads not displaying within posts like they were doing before and can't seem to figure out what the trouble is, the Google ones and Facebook ones work fine, but any manually set & locally stored images will not display
Title: Re: Ad Management mod
Post by: vbgamer45 on February 02, 2013, 11:40:27 PM
Do you have a link to the area where it is not working? I would like to see a manual banner placement.
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on February 02, 2013, 11:58:04 PM
Quote from: vbgamer45 on February 02, 2013, 11:40:27 PM
Do you have a link to the area where it is not working? I would like to see a manual banner placement.

there are suppose to be locally stored img banners displayed on replies 2,3,4 of this thread, it was working before

http://www.gracecentered.com/christian_forums/chat-with-moderators/liking-a-post-or-thread/ (http://www.gracecentered.com/christian_forums/chat-with-moderators/liking-a-post-or-thread/)

It would be really handy to have a small "preview" of the ad display while editing or adding
Title: Re: Ad Management mod
Post by: vbgamer45 on February 03, 2013, 12:23:15 AM
Your ad image url is wrong you have
http://www.GraceCentered.com/public_html/old-images/heaven_ad.gif
Should be
http://www.GraceCentered.com/old-images/heaven_ad.gif
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on February 03, 2013, 01:08:33 AM
Quote from: vbgamer45 on February 03, 2013, 12:23:15 AM
Your ad image url is wrong you have
http://www.GraceCentered.com/public_html/old-images/heaven_ad.gif
Should be
http://www.GraceCentered.com/old-images/heaven_ad.gif

Ok, changing the url worked for getting the image to display for that one, now look at this thread and see that there are a few more posts than the other one so I can show you that there is still a problem somewhere whether my fault or yours, the ad we just edited shows up on reply #4 where the admin setting is for post number 5, so your telling me that the original post is post #1?

Title: Re: Ad Management mod
Post by: vbgamer45 on February 03, 2013, 01:14:34 AM
I only see one blank spot now and it is a google ad. That can occur if there are no more ads that google wants to show for that content and or you have too many of the same element type for google.
Title: Re: Ad Management mod
Post by: Westwegoman on February 13, 2013, 05:51:46 AM
Is it possible to make only the ad show up between post without showing the forum name and the other buttons such as quote, modify, remove and split topic?

Thanks in advance.


Nevermind...

Just noticed that there is a setting for this :o
Title: Re: Ad Management mod
Post by: vbgamer45 on February 13, 2013, 10:45:39 PM
Good to know I forgot about that setting!
Title: Re: Ad Management mod
Post by: chereneb on February 27, 2013, 02:42:41 AM
Can somebody please help me with the code to add .swf file?
Title: Re: Ad Management mod
Post by: SD-X on February 27, 2013, 02:50:25 AM
Quote from: chereneb on February 27, 2013, 02:42:41 AM
Can somebody please help me with the code to add .swf file?
I believe you can use basic HTML in the ad code box.
Title: Re: Ad Management mod
Post by: chereneb on February 27, 2013, 02:53:16 AM
And what is that code? Where can I find it?
Title: Re: Ad Management mod
Post by: SD-X on February 27, 2013, 03:05:46 AM
Quote from: chereneb on February 27, 2013, 02:53:16 AM
And what is that code? Where can I find it?
Try searching online for "display flash objects with HTML". Here is one example:
http://www.tizag.com/flashTutorial/flashhtmlcode.php
Title: Re: Ad Management mod
Post by: atticuk on February 28, 2013, 06:23:34 PM
I had this mod installed on an earlier version of smf and it worked great. I've since up graded to version 2.0.4. Looking on the downloads it says that it is compatible with version 2.0.4 but when I click on the parse button it shows that: Sorry, but this modification does not appear to be compatible with the selected version.

Is there a zip file available that can be downloaded which will allow the 'Package Manager' to install it? If not are there plans to have this available soon?
Title: Re: Ad Management mod
Post by: vbgamer45 on February 28, 2013, 06:31:11 PM
Make sure you download the 2.0 version of the mod on the mod site it should work for all SMF 2.0.x versions
Title: Re: Ad Management mod
Post by: SD-X on February 28, 2013, 08:49:01 PM
Quote from: atticuk on February 28, 2013, 06:23:34 PM
I had this mod installed on an earlier version of smf and it worked great. I've since up graded to version 2.0.4. Looking on the downloads it says that it is compatible with version 2.0.4 but when I click on the parse button it shows that: Sorry, but this modification does not appear to be compatible with the selected version.

Is there a zip file available that can be downloaded which will allow the 'Package Manager' to install it? If not are there plans to have this available soon?
The file will upload fine into the Package Manager, and install into SMF 2.0.4 through it perfectly. If you are having issues, your downloaded copy of the package may be corrupt, or you have mods on your forum that are conflicting with it.
Title: Re: Ad Management mod
Post by: atticuk on March 01, 2013, 11:17:08 AM
Quote from: vbgamer45 on February 28, 2013, 06:31:11 PM
Make sure you download the 2.0 version of the mod on the mod site it should work for all SMF 2.0.x versions

Thanks for your replies. I went to what I think is the site to download version 2.0.x and I can't see where the ad management mod is? Would you post a link please?
Title: Re: Ad Management mod
Post by: Kindred on March 01, 2013, 11:27:02 AM
first post in this thread. ...
Title: Re: Ad Management mod
Post by: SD-X on March 01, 2013, 02:13:07 PM
Quote from: Kindred on March 01, 2013, 11:27:02 AM
first post in this thread. ...
It seems someone has oddly removed it.

Either way, for future users:
http://custom.simplemachines.org/mods/index.php?mod=255

That is the link to it. The version you want to download for SMF 2.x is the one currently called "ad_mod_v3.0_SMF_v2-0.zip". Be aware that although the filename claims it is version 3.0, it is actually version 3.0.1, just like the SMF 1.x version.
Title: Re: Ad Management mod
Post by: MoreBloodWine on March 01, 2013, 08:07:59 PM
Is this a feature you would consider coding in to this mod ?

http://custom.simplemachines.org/mods/index.php?mod=1216
Title: Re: Ad Management mod
Post by: SD-X on March 01, 2013, 10:02:31 PM
Quote from: MoreBloodWine on March 01, 2013, 08:07:59 PM
Is this a feature you would consider coding in to this mod ?

http://custom.simplemachines.org/mods/index.php?mod=1216
Technically the Ad Management mod just displays ads that you create, so this should already be possible either through code that is placed alongside the displaying mechanism's code, or through separate modifications to your forum.

It is a pretty cool idea, though!
Title: Re: Ad Management mod
Post by: MoreBloodWine on March 01, 2013, 10:20:50 PM
Quote from: SugarD-x on March 01, 2013, 10:02:31 PM
Quote from: MoreBloodWine on March 01, 2013, 08:07:59 PM
Is this a feature you would consider coding in to this mod ?

http://custom.simplemachines.org/mods/index.php?mod=1216
Technically the Ad Management mod just displays ads that you create, so this should already be possible either through code that is placed alongside the displaying mechanism's code, or through separate modifications to your forum.

It is a pretty cool idea, though!
So maybe aside from a diff modification you mean trying to just add the section targeting code in with the ad code itself ?

Either way it like you said is a cool idea.
Title: Re: Ad Management mod
Post by: SD-X on March 01, 2013, 11:05:30 PM
Quote from: MoreBloodWine on March 01, 2013, 10:20:50 PM
Quote from: SugarD-x on March 01, 2013, 10:02:31 PM
Quote from: MoreBloodWine on March 01, 2013, 08:07:59 PM
Is this a feature you would consider coding in to this mod ?

http://custom.simplemachines.org/mods/index.php?mod=1216
Technically the Ad Management mod just displays ads that you create, so this should already be possible either through code that is placed alongside the displaying mechanism's code, or through separate modifications to your forum.

It is a pretty cool idea, though!
So maybe aside from a diff modification you mean trying to just add the section targeting code in with the ad code itself ?

Either way it like you said is a cool idea.
Exactly. I haven't used the mod or it's code myself, so I'm not sure how compatible it is with this mod...but it's always worth a try! :)
Title: Re: Ad Management mod
Post by: MoreBloodWine on March 01, 2013, 11:22:01 PM
Well maybe when one of the authors comes on they can shed some light on this sbecause section targeting is something I'd like to use with my adsense code and from what I read. Google recomends section targeting.
Title: Re: Ad Management mod
Post by: rudeman on March 02, 2013, 02:05:19 PM
its not working with latest smf , i am getting this error

Installations actions for "Ad Managment"
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

here is my forum http://goo.gl/rRMlH

Title: Re: Ad Management mod
Post by: MoreBloodWine on March 02, 2013, 02:32:41 PM
Quote from: rudeman on March 02, 2013, 02:05:19 PM
its not working with latest smf , i am getting this error

Installations actions for "Ad Managment"
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

here is my forum http://goo.gl/rRMlH
I just installed this last night on a 2.0.4 forum so you must have gotten a corrupt download or something.
Title: Re: Ad Management mod
Post by: SD-X on March 02, 2013, 02:33:34 PM
Quote from: rudeman on March 02, 2013, 02:05:19 PM
its not working with latest smf , i am getting this error

Installations actions for "Ad Managment"
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

here is my forum http://goo.gl/rRMlH
Re-download the package again. It works with the latest version just fine.
Title: Re: Ad Management mod
Post by: atticuk on March 03, 2013, 10:52:27 AM
I downloaded the ad_mod_v3.0_SMF_v2-0.zip  and uploaded it to my test site which is (dir003). It loaded but the failed results were as follows:

(http://i833.photobucket.com/albums/zz258/diglis/screenprintoffailedinstall01.jpg)

You will notice that although I uploaded the Ad management mod to my test (dir003) it shows that it's going into my live site (dir001)

Also the 'Curve theme' is the one I'm using which is the lastest smf theme, and not the core theme.

Where am I going wrong?
Title: Re: Ad Management mod
Post by: Arantor on March 03, 2013, 10:55:33 AM
All it's saying is that it couldn't make the changes to the old core theme. If you're not using it, it doesn't really matter.

As for 'live' vs 'test', clearly your test site has some of the configuration of the live site in it.
Title: Re: Ad Management mod
Post by: SD-X on March 03, 2013, 07:14:10 PM
You grabbed the SMF 1.0 package, but you're using SMF 2.0. You need the other one. ;)

Edit: Nevermind. Seems you edited your post to change the version number later on. Disregard this.
Title: Re: Ad Management mod
Post by: atticuk on March 04, 2013, 06:19:50 PM
Quote from: Arantor on March 03, 2013, 10:55:33 AM

As for 'live' vs 'test', clearly your test site has some of the configuration of the live site in it.

You hit the nail on the head. I installed a fresh smf forum, uploaded the Ad management mod and it worked fine. Then I populated it with my live forum sql with all the members, posts and structure. Installing the sql broke the forum!

I don't want to lose the members, messages or the structure so I have to find a way to transfer my live sql to my test site somehow.

QuoteYou grabbed the SMF 1.0 package, but you're using SMF 2.0. You need the other one

Edit: Never mind. Seems you edited your post to change the version number later on. Disregard this.

Yes I did SugarD-x, sorry for that. I had copied and pasted the wrong information.
Title: Re: Ad Management mod
Post by: Kindred on March 04, 2013, 07:49:32 PM
you can't just copy the sql tables without making some modification. there are urls and paths stored in the database...   so, when you make a test site, you have to correct all of the settings.

However....   if it's a test site, what does it matter if all of you users and messages form the live site make it down there? it's a test site.....   use general test data
Title: Re: Ad Management mod
Post by: atticuk on March 05, 2013, 06:03:23 PM
Quote from: Kindred on March 04, 2013, 07:49:32 PM

However....   if it's a test site, what does it matter if all of you users and messages form the live site make it down there? it's a test site.....   use general test data

I'm using the test site as an intermediary site so that I can make the test site live when all is working well. I do understand that the url's and paths are not the same until I change them using the settings in the Admin section. I have one other test site where I test and don't bother with paths and urls.

Thanks for your input.
Title: Re: Ad Management mod
Post by: rudeman on March 06, 2013, 02:41:36 PM
i am facing a problem , i have placed ads and the problem is it is not visible to members and some other groups , how to make it visible to all the members and all users on forum
Title: Re: Ad Management mod
Post by: SD-X on March 06, 2013, 07:56:44 PM
Quote from: rudeman on March 06, 2013, 02:41:36 PM
i am facing a problem , i have placed ads and the problem is it is not visible to members and some other groups , how to make it visible to all the members and all users on forum
Each membergroup needs to have it enabled in their General Permissions. You also need to make sure ads are not disabled in the mod's settings itself.
Title: Re: Ad Management mod
Post by: rudeman on March 07, 2013, 02:32:32 AM
i think i have checked all settings  , can you tell me once again what has to be done  ? and from where if have to enable the changes ,
i can also edit in database directly if required so you can tell me any way you have to do so .
Title: Re: Ad Management mod
Post by: SD-X on March 07, 2013, 03:44:24 AM
Quote from: rudeman on March 07, 2013, 02:32:32 AM
i think i have checked all settings  , can you tell me once again what has to be done  ? and from where if have to enable the changes ,
i can also edit in database directly if required so you can tell me any way you have to do so .
Edit your membergroups and make sure all of them have the option of displaying ads turned on. Then access the Ad Management mod's settings from the Admin section, and make sure it's settings doesn't have "Disable Ads" selected.
Title: Re: Ad Management mod
Post by: python01 on March 18, 2013, 11:06:26 PM
Quote from: vbgamer45 on January 15, 2013, 11:56:34 PM
Only change the index.template.php and make the edits to that file.
I have been busy with other stuff and this mod got pushed off but I want to finish it hopefully.
You have said that index.template.php should be modified but in the instructions for manual install of this mod such file is not mentioned.
The instructions do mention BoardIndex.template.php and MessageIndex.template.php, which changes should I manually apply to the index.template.php file?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 18, 2013, 11:09:47 PM
I forgot I changed the mo not to make many edits if any to the index.template.php

On the mod site use the parse mod function for your SMF version and find similiar edits in your files and make the changes there.
Title: Re: Ad Management mod
Post by: Woolsey on March 23, 2013, 08:18:50 PM
Installed Ad Management Mod on SMF 2.0.4 and now SMF site isn't working.
I get "Database Error" as page name. The page says:

Table 'MYUSERNAME_smfn1.smf_ads' doesn't exist
File: /home/MYUSERNAME/public_html/Talk/Sources/LoadAds.php
Line: 51

The file "LoadAds.php" is a file that came with the mod. I made NO edits to it.

Any Help PLEASE....
Title: Re: Ad Management mod
Post by: vbgamer45 on March 23, 2013, 09:28:50 PM
Copy the install script from the zip upload it to your forum and run it though the browser.
Title: Re: Ad Management mod
Post by: Woolsey on March 24, 2013, 11:50:14 AM
OK - Just started using SMF. Downloaded SMF 2.0.4 and worked fine. Found the Ad Management Mod and ran into trouble (My Fault - Script is GREAT!).

I was trying to manually install each file. I downloaded mod zip to my desktop. Unzipped onto my desktop. Made ALL the DANG edits in "Script Editor" myself & tried to install each file MANUALLY with Filezilla. WHAT WAS I THINKING??? Well... It didn't work!

I ended up deleting ALL the SMF files on my hosting site and my desktop. I kept the original unedited downloaded Ad Management Mod zip. I did a fresh SMF install onto my hosting site and started from scratch. I logged into my new SMF site. I then clicked the "Admin" tab. I found the "Package Manager." I then clicked the "Downloaded" tab. I then found "Package To Upload" and click "choose file." I uploaded the zipped Mod file (Ad_Mod_v3). I had to press install, it did ALL the rest, and EVERYTHING is working perfect now.

Thanks for the help. Sorry for the long reply. Hopefully this post helps someone else here too.
Title: Re: Ad Management mod
Post by: OCJ on March 24, 2013, 12:12:42 PM
I guess this is in the pro version but... a good place for ads would be in the column for the poster of topics/replies - mostly a wasted space column in boards.

If people have a portal its a bit overkill on left and right columns. Will it post ads in YOUR portal columns by default?
Title: Re: Ad Management mod
Post by: python01 on March 25, 2013, 11:46:43 AM
Quote from: vbgamer45 on March 18, 2013, 11:09:47 PM
I forgot I changed the mo not to make many edits if any to the index.template.php

On the mod site use the parse mod function for your SMF version and find similiar edits in your files and make the changes there.

Which files should I look through though? Any particular directory or all files in the installation?
Sorry I have so many questions but I have never done it before and don't want to mess up my installation.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 25, 2013, 11:53:42 AM
I belive there
Quote from: igirisjin on March 24, 2013, 12:12:42 PM
I guess this is in the pro version but... a good place for ads would be in the column for the poster of topics/replies - mostly a wasted space column in boards.

If people have a portal its a bit overkill on left and right columns. Will it post ads in YOUR portal columns by default?
Hmm never thought about that what type of ad would go there?
Title: Re: Ad Management mod
Post by: OCJ on March 31, 2013, 04:35:31 AM
Under the poster info on the left the column is quite wide. On my site at total width about 1,100pix that column is the same as say, your left and right Ad columns, and my portal column set about 225.

There is plenty of space there for small image, text, links.

I havent started commercial Ads yet - soon hopefully, but you can see on the front page a few friends sites I gave a portal block style Ad. . Lower down the page on in the left column:
http://outdoorclubjapan.com/

Another idea for your left and right columns would be to have an option for more than 1 Ad (I guess thats the pro version). On some long posts there is a big empty space there. I know on some it is small but...

Title: Re: Ad Management mod
Post by: Rushant on March 31, 2013, 10:22:50 AM
we are using    "            Ad Management mod  "  under this mode we using following google adsence ads script code .but the ads are shown on some pages , please tell us the solution if I want to show the ads on all pages
otherwise please tell us any other mode in which this type of problem may not be happened


google adsence ads script code


<script type="text/javascript"><!--
google_ad_client = "ca-pub-5752265162430082";
/* 728x90, created 10/20/11 */
google_ad_slot = "2514576813";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
Title: Re: Ad Management mod
Post by: vbgamer45 on March 31, 2013, 01:19:19 PM
Quote from: Rushant on March 31, 2013, 10:22:50 AM
we are using    "            Ad Management mod  "  under this mode we using following google adsence ads script code .but the ads are shown on some pages , please tell us the solution if I want to show the ads on all pages
otherwise please tell us any other mode in which this type of problem may not be happened


google adsence ads script code


<script type="text/javascript"><!--
google_ad_client = "ca-pub-5752265162430082";
/* 728x90, created 10/20/11 */
google_ad_slot = "2514576813";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>


It's up to google they may or may not show ads on the page depending on the content.
Title: Re: Ad Management mod
Post by: winsoft on April 01, 2013, 12:21:50 PM
it's great mod but it takes time to load the sidebar ads.

why can't it load at the same as the forum.
Title: Re: Ad Management mod
Post by: vbgamer45 on April 01, 2013, 12:23:22 PM
Quote from: winsoft on April 01, 2013, 12:21:50 PM
it's great mod but it takes time to load the sidebar ads.

why can't it load at the same as the forum.
Could be the ad code itself might be slow loading.
Title: Re: Ad Management mod
Post by: SMFHacks.com Team on April 17, 2013, 10:49:15 PM
New update!
Version 3.1
+New easy copyright removal purchase system added!
Title: Re: Ad Management mod
Post by: impreza on April 18, 2013, 04:02:43 AM
Is that all changed in the modification
Title: Re: Ad Management mod
Post by: vbgamer45 on April 18, 2013, 09:01:15 AM
Mostly yes that is the main thing that changed.
Title: Re: Ad Management mod
Post by: NeedIt on April 23, 2013, 01:56:51 PM
A couple of quick questions:

1.  Would anyone be willing to provide a live and living example of the Ad Mod out on the web?  Or is this actual forum an example of that?

2.  The support page said that you can put either html or PHP in the ad mod.  What about Amazon Affiliate ads with or without images?  I assume the answer is 'yes' but just want to double check.
Title: Re: Ad Management mod
Post by: vbgamer45 on April 23, 2013, 01:59:05 PM
1. http://www.smfads.com the forum uses the ad management mod.

2. Yes you can enter as html code and it will work.
Title: Re: Ad Management mod
Post by: NeedIt on April 23, 2013, 02:09:47 PM
Let's just say you implement the Ad Mod and you have an issue and want to rollback.  Is that easy to do?  Or would you have to restore from backup?

Also, does the Ad Mod actually alter the database itself, i.e. would I need to do a backup of the database immediately before installation?
Title: Re: Ad Management mod
Post by: Kindred on April 23, 2013, 02:11:14 PM
ypu should always backup files and database before any mod.

IIRC, yes, the mod stores the ad code in a new table in the database

as for uinstalling - it depends what additional mods you have applied in the time since installing this one. Every time you add more code, there is the chance for an overlap
Title: Re: Ad Management mod
Post by: NeedIt on April 23, 2013, 02:27:57 PM
And my impression from reading is that if you don't put any code into one of the ad sections, then it just displays the forum as it was before, right?

For example, if I don't use the tower, then no none will ever know the difference, i.e. there's no blank space, etc.?
Title: Re: Ad Management mod
Post by: Kindred on April 23, 2013, 02:33:09 PM
correct
Title: Re: Ad Management mod
Post by: NeedIt on April 23, 2013, 02:34:29 PM
nice...
Title: Re: Ad Management mod
Post by: NeedIt on May 17, 2013, 02:29:15 PM
Question:

I just installed the ad mod and have gotten it to work with simple Amazon Affiliate ads, so thx!  But I want to put something like this into my sky tower on the right:

<a href="http://www.myadvertiser.com" target="_blank"><img src="nameofpic.jpg" height="600" width="160"></a>

I ftp'd nameofpic.jpg into the forum folder, but nothing displayed.

What am I doing wrong?  Was that the wrong location for the pic?  Or are the dimensions of the image wrong?

Any help is much appreciated.
Title: Re: Ad Management mod
Post by: Kindred on May 17, 2013, 02:32:13 PM
use the full url to the image
Title: Re: Ad Management mod
Post by: NeedIt on May 17, 2013, 02:35:08 PM
Quote from: Kindred on May 17, 2013, 02:32:13 PM
use the full url to the image

Oh brother.  Should have thought of that - thx...
Title: Re: Ad Management mod
Post by: matritte on May 26, 2013, 07:25:48 PM
Hey guys. I am running 1.18 with Ad Management mod, and when I place my adsense code into the "content" box it doesn't show up. According to Google, a blank space should show up while they crawl my site. I tried everything like enabling ads for admins, switching to the default them, etc.

Does anyone have an idea why it wouldn't show up?
Title: Re: Ad Management mod
Post by: vbgamer45 on May 26, 2013, 07:44:36 PM
For new sites it takes a while a couple days at least normally.
Title: Re: Ad Management mod
Post by: matritte on May 26, 2013, 07:49:23 PM
Quote from: vbgamer45 on May 26, 2013, 07:44:36 PM
For new sites it takes a while a couple days at least normally.

Oh okay. I did see that, but they said I'd see blank ads until the real ones are placed, and I don't see any placeholders or blanks.
Title: Re: Ad Management mod
Post by: vbgamer45 on May 26, 2013, 11:06:10 PM
Well it should be empty space depending on your ad settings
Title: Re: Ad Management mod
Post by: matritte on May 26, 2013, 11:14:25 PM
Quote from: vbgamer45 on May 26, 2013, 11:06:10 PM
Well it should be empty space depending on your ad settings

That's what I thought, so something is wrong.

Are there any settings in the Mod that would effect them not showing up?
Title: Re: Ad Management mod
Post by: vbgamer45 on May 26, 2013, 11:47:36 PM
The only thing that affects is the ads permission in each membergroup and I think there is a setting to hide adds from admins
Title: Re: Ad Management mod
Post by: matritte on May 27, 2013, 04:16:20 PM
Damn.

Does anyone know where in the Babylon Theme code I'd the AdSense script if I want a banner? I tried googling it and found 10 different answers and none worked.

This mod only works with the default theme, correct? Does the pro version work with Babylon?
Title: Re: Ad Management mod
Post by: SD-X on May 27, 2013, 04:31:24 PM
Quote from: vbgamer45 on May 26, 2013, 11:47:36 PM
...I think there is a setting to hide ads from admins
There is.

Quote from: matritte on May 27, 2013, 04:16:20 PM
This mod only works with the default theme, correct? Does the pro version work with Babylon?
It gives you the option to install it into other themes. Install it via the Package Manager.
Title: Re: Ad Management mod
Post by: matritte on May 27, 2013, 04:41:42 PM
Quote from: SugarD-x on May 27, 2013, 04:31:24 PM
It gives you the option to install it into other themes. Install it via the Package Manager.

I'm using version 1.18, so in this version, and with the free mod, it gives the option to install into other themes?

I uninstalled and tried reinstalling via package manager, and it says it's installing into the default theme (test successful). There isn't an option to change that or install into other themes. Or did you mean the pro version gives those options?
Title: Re: Ad Management mod
Post by: Arantor on May 27, 2013, 04:42:39 PM
SMF 1.1.18 does not have that capability, only SMF 2.0.x does.
Title: Re: Ad Management mod
Post by: vbgamer45 on May 27, 2013, 08:09:29 PM
For SMF 1.1.x you will have to install the theme edits manually on your custom theme.
Title: Re: Ad Management mod
Post by: matritte on May 27, 2013, 08:17:45 PM
Quote from: vbgamer45 on May 27, 2013, 08:09:29 PM
For SMF 1.1.x you will have to install the theme edits manually on your custom theme.

That's what I thought, and there aren't any good instructions online (they're all old and for earlier versions).

Is it a pain to upgrade to 2.0? Maybe that's the best option.
Title: Re: Ad Management mod
Post by: vbgamer45 on May 27, 2013, 08:22:56 PM
I have a package parser that you can upload the package to
http://www.smfhacks.com/smf-package-parser.html

And it will give you the manually install instructions theme edits needed
Title: Re: Ad Management mod
Post by: matritte on May 29, 2013, 11:25:17 PM
Quote from: vbgamer45 on May 27, 2013, 08:22:56 PM
I have a package parser that you can upload the package to
http://www.smfhacks.com/smf-package-parser.html

And it will give you the manually install instructions theme edits needed

Cool, thanks, I am trying it now.

It says find </td> -- how is one to know which /td they're talking about?
Title: Re: Ad Management mod
Post by: vbgamer45 on May 29, 2013, 11:28:42 PM
I would look in the default theme and find the same lin in that file then make an edit simliar in your custom theme in a similiar area.
Title: Re: Ad Management mod
Post by: matritte on May 29, 2013, 11:39:24 PM
Quote from: vbgamer45 on May 29, 2013, 11:28:42 PM
I would look in the default theme and find the same lin in that file then make an edit simliar in your custom theme in a similiar area.

That's what I was doing, but it says "find </td>", and there are literally hundreds of them in this file.

Damn.

Anyone want to code this for a fee? Contact me with what you'd charge. Or maybe just what you'd charge to convert my site to 2.0. Thanks.
Title: Re: Ad Management mod
Post by: cretaceous on June 06, 2013, 06:29:54 AM
Is it possible for me to add an image uploader?
I'm an experienced web dev but not good with SMF or the ad manager mod.
I can make a directory for ad images and upload to it - but the people I'm doing the forum for can't use FTP - too technical.

Or maybe there's a separate image upload mod for admins? (I can't find it if so)
Title: Re: Ad Management mod
Post by: vbgamer45 on June 06, 2013, 11:42:20 AM
I do not have an image uploader in ad management mod but I do have it Ad Seller Pro i believe http://www.smfhacks.com/ad-seller-pro.php
Title: Re: Ad Management mod
Post by: cretaceous on June 07, 2013, 07:44:57 AM
Is it possible to show all ads one above the other when using option:
"Display ads on every page as a tower on the right sideright"  I  only get a single ad, which is picked at random

I can see where to remove the random selecter, but where should I amend the display function so I can make it do a "foreach" on the ads array?

Title: Re: Ad Management mod
Post by: Scareface on June 10, 2013, 06:11:01 AM
Which file do I have to edit to change the way the ads are displayed in between the posts ?
Title: Re: Ad Management mod
Post by: vbgamer45 on June 10, 2013, 07:10:20 AM
It would be in your themes Display.template.php file
Title: Re: Ad Management mod
Post by: CBG on June 26, 2013, 08:56:56 AM
Hi,

Has anyone got an example I can see of this mod?
Title: Re: Ad Management mod
Post by: vbgamer45 on June 26, 2013, 09:31:20 AM
Check out http://www.smfads.com
Title: Re: Ad Management mod
Post by: WasdMan on June 29, 2013, 03:33:43 PM
Hello!

My amendment was not included in the next release be?

http://www.simplemachines.org/community/index.php?topic=68632.msg3368235#msg3368235
Title: Re: Ad Management mod
Post by: vbgamer45 on June 29, 2013, 03:57:41 PM
Some people want it to match/blend maybe for higher CTR rates.
Title: Re: Ad Management mod
Post by: PenelopeQ on July 10, 2013, 08:33:47 PM
SMF 2.0.4
I got a failure when I tried to install this mod.
Here is my list of mods.
Mod NameVersion
1Register At Post View v.1.11.1
2Board Notification Mod1.2.2
3Personal Messages to Membergroups1.4.3
4Drafts1.1.1
5Bad Behavior mod1.5.17
6Join Reason1.3
7Default_Membergroup1.0.1
8Gender on Memberlist1.5
9Anti-Spam Links1.0.1
10Stop Spammer2.3.9
11SMF 2.0.4 Update1
12Topic & Board Note1.0.3
13SMF 2.0.2 Update1
14Last Active On MemberList1.4
15Move Old Topics1.3.8
16SMF 2.0.3 Update1
Here is the table of what failed and what succeeded.
TypeActionDescription
1Execute Codeinstall.php
2Execute Modification./index.phpTest successful
1Add After./index.phpTest successful
2Add After./index.phpTest successful
3Add After./index.phpTest successful
3Execute Modification./Sources/Admin.phpTest successful
1Add After./Sources/Admin.phpTest successful
2Add After./Sources/Admin.phpTest successful
4Execute Modification./Sources/QueryString.phpTest successful
1Replace./Sources/QueryString.phpTest successful
2Add Before./Sources/QueryString.phpTest successful
5Execute Modification./Themes/default/BoardIndex.template.phpTest successful
1Add Before./Themes/default/BoardIndex.template.phpTest successful
2Add After./Themes/default/BoardIndex.template.phpTest successful
6Execute Modification./Themes/default/Display.template.phpTest successful
1Add After./Themes/default/Display.template.phpTest successful
2Replace./Themes/default/Display.template.phpTest successful
3Replace./Themes/default/Display.template.phpTest successful
7Execute Modification./Themes/default/MessageIndex.template.phpTest failed
1Add After./Themes/default/MessageIndex.template.phpTest failed
2Replace./Themes/default/MessageIndex.template.phpTest successful
8Execute Modification./Sources/ManagePermissions.phpTest successful
1Add After./Sources/ManagePermissions.phpTest successful
9Extract File./Sources/Ads.php
10Extract File./Sources/LoadAds.php
11Extract File./Themes/default/Ads.template.php
12Extract File./Themes/default/languages/Ads.english.php
13Extract File./Themes/default/languages/Ads.english-utf8.php
Title: Re: Ad Management mod
Post by: TheListener on July 10, 2013, 08:40:25 PM
You would need to use the mods parser to manually edit the files which state Test Failed.
Title: Re: Ad Management mod
Post by: PenelopeQ on July 10, 2013, 09:02:56 PM
Quote from: Old Fossil on July 10, 2013, 08:40:25 PMYou would need to use the mods parser to manually edit the files which state Test Failed.
Okay.
How do i sue the parser--I know that there is a parser selection in the download, but I'm not sure what to do with it.
AND...what do I need to change/revise?
Title: Re: Ad Management mod
Post by: TheListener on July 10, 2013, 09:11:14 PM
Are you saying you have never had to manually edit a file before?

See the attachment? Look where the arrow points.

This is the parse button which you need to click.

Not seen it before? ALL mods have this feature.

The files which stated Test Failed are what you are looking for.

Use notepad## and make sure you backup first.
Title: Re: Ad Management mod
Post by: Kindred on July 10, 2013, 10:19:13 PM
Actually, fossil, it's even easier.
When you install the mod, there are little icons next to each failure that tells you specifically what edit and code failed.  There is even a wiki article on it... :p
Title: Re: Ad Management mod
Post by: PenelopeQ on July 10, 2013, 11:21:31 PM
Quote from: Old Fossil on July 10, 2013, 09:11:14 PM
Are you saying you have never had to manually edit a file before?

See the attachment? Look where the arrow points.

This is the parse button which you need to click.

Not seen it before? ALL mods have this feature.
As I said...
Quote from: PenelopeQ on July 10, 2013, 09:02:56 PM
How do i use the parser--I know that there is a parser selection in the download, but I'm not sure what to do with it.
I have manually edited files, but not with the parser and I have been told what in the files need changing--replace x with y.

I also know which files to change due to the test failed designation, but an image of the location of the parser tells me what I already knew.
I know there is a parser.
I know to edit the files that failed.
I do not know  how the parser functions. Clicking it just opens a long list of all the files and I can find the files to change--but then what...
The list that shows what files failed also gives me something to open that says find and lists code and then says add after and lists code--just like in the parser. Are the what to change instruction here the same as in the parser.
If so, what does the parser do? Does it simply tell a person what to change/add? I guess I don't understand it's purpose since my own system also did that.
So now I know what to change/add.
Are these something I should add by going to my cpanel and then finding the message.template.php file in my default themes folder and editing it there, or should I open it from the backup I made just before I tried to install the mod and then ftp it or upload it through cpanel?
Title: Re: Ad Management mod
Post by: Kindred on July 10, 2013, 11:33:02 PM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Ad Management mod
Post by: PenelopeQ on July 11, 2013, 01:03:51 AM
Thanks, that was helpful.
I edited the file, but I got the same failures with those little icons telling me to change the same things. Maybe I didn't save it properly?
I just edited it in directly from my file manager in cpanel using the edit button.
Title: Re: Ad Management mod
Post by: Kindred on July 11, 2013, 07:36:58 AM
I don't think you fully read the wiki article.

You do the changes that need to be made...   and You do the installation, ignoring the failures.

doing the manual changes will NOT make the errors go away...   Something has already modified the code in those areas and the auto-installer will not be able to successfully apply the mod to those spots. That is why you MANUALLY changed the code. After you have made the manual changes, you IGNORE the failures, because you just did those changes anyway -- and you let the auto-installer do the rest of the updates for the mod.
Title: Re: Ad Management mod
Post by: FullyCreative on July 17, 2013, 07:34:14 AM
Hi All,

I've added the Ad management mod without any problems, and have 2 adverts displaying upon the forum just fine.

Can anyone please tell me how I can track the number of clicks the adverts are getting by Google Analytics?!
I've been searching for 2 days and have yet to work out how to do this.

Hope someone on here could please walk me through the process of doing this!

Thank you, Charlie
Title: Re: Ad Management mod
Post by: vbgamer45 on July 17, 2013, 08:40:30 AM
What type of ads are they? Are they custom code from an provider such as adsense etc?
Title: Re: Ad Management mod
Post by: FullyCreative on July 17, 2013, 09:03:04 AM
Quote from: vbgamer45 on July 17, 2013, 08:40:30 AM
What type of ads are they? Are they custom code from an provider such as adsense etc?

Hi VBGamer,

Thanks for the fast response.
They are just a hosted image with a website link attached.
For example:
<a href="http://www.clickbackup.co.uk">
<img src="http://www.webplusdesigner.com/Adverts/120x240%20ClickBackup%20Ad.png" border="2" />
</a>

Nothing fancy just a simple banner advert graphic.
Hope this helps, if you require any further information please let me know.

Thanks,
Title: Re: Ad Management mod
Post by: vbgamer45 on July 17, 2013, 09:11:38 AM
That can't be tracked by google analytics well since they are leaving the site.
I do have AdSeller Pro which can do tracking for clicks/view of ads for banners that you upload and text ads you create using it.
Title: Re: Ad Management mod
Post by: FullyCreative on July 17, 2013, 09:19:01 AM
Quote from: vbgamer45 on July 17, 2013, 09:11:38 AM
That can't be tracked by google analytics well since they are leaving the site.
I do have AdSeller Pro which can do tracking for clicks/view of ads for banners that you upload and text ads you create using it.

Hi VBGamers.

Okay. Now how would other websites go about tracking adverts upon their site?
I am reluctant to pay for the AdSeller Pro due to I haven't any income coming in from any adverts so it is a bit of a risk.

Are their any other mod's that can track this?
Everyone cannot solely rely on paying to track ad click, can they?

Thank you for your support, Charlie
Title: Re: Ad Management mod
Post by: vbgamer45 on July 17, 2013, 09:25:04 AM
Other sites do the same way they have scripts that track the links they mask the url then redirect over to the ad site.
A workaround is you can use a url shorther for advertiser link and most of those places have an area to track clicks like bit.ly
Title: Re: Ad Management mod
Post by: FullyCreative on July 17, 2013, 09:30:27 AM
Hi VBGamer,

So instead of having it as:
<a href="hxxp:www.clickbackup.co.uk [nonactive]">
<img src="hxxp:www.webplusdesigner.com/Adverts/120x240%20ClickBackup%20Ad.png [nonactive]" border="2" />
</a>

I should have it as:
<a href="http://bit.ly/11Wv3kj">
<img src="hxxp:www.webplusdesigner.com/Adverts/120x240%20ClickBackup%20Ad.png" border="2" />
</a>


And monitor the clickthroughs through bitly?
Is that what you mean?

Thank you, Charlie
Title: Re: Ad Management mod
Post by: vbgamer45 on July 17, 2013, 09:45:24 AM
Yes make sure you have that enabled in bitly and create an account there to keep track
Title: Re: Ad Management mod
Post by: S Mac on August 03, 2013, 06:33:39 AM
Hi - I tried to install the v2.0 ad mod to my forum (SMF 2.0.4) and got a scary message saying that I'd better not install as all the tests had been unsuccessful. I'm using a modified curve theme (I used colorizeit). Not sure what else you need to know. Here's my forum: http://tinyurl.com/d8awp3m

Thanks
Title: Re: Ad Management mod
Post by: Kindred on August 03, 2013, 07:18:02 AM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Ad Management mod
Post by: naimnatnod on August 08, 2013, 08:11:48 PM
Hi, I am a newbie here but got my wmf 2.0.4 up and running since last Friday.  I just installed your mod for SMF 2.0 and once I click upload, the screen went blank.  I ftp and look under /Packages and there was ad_mod_v3.0_SMF_v2-0a.zip.  I could not browse or install the package because the screen will go blank.

I had to manually delete the zip file then I will get my "Package Manager" page back.

I need help.

Thank you,

Andy

Title: Re: Ad Management mod
Post by: Kindred on August 08, 2013, 08:24:10 PM
Deleting the zip file will NOT uninstall the mod.


Are you, by any chance using hosting from hosting24 or 000webhost?
http://wiki.simplemachines.org/smf/What_the_white_screen_of_death_means_when_accessing_admin_or_package_installs
Title: Re: Ad Management mod
Post by: naimnatnod on August 08, 2013, 08:33:47 PM
Yes, I am now using the www.000webhost.com for my testing setup the SMF.  I just moved my site to iPage.com.

I don't know about programing and I don't want to mess up with the one on iPage.com so I am testing with 000webhost.com

Thanks,

Andy
Title: Re: Ad Management mod
Post by: Kindred on August 08, 2013, 08:37:01 PM
read the link.
Title: Re: Ad Management mod
Post by: TheListener on August 08, 2013, 08:37:19 PM
QuoteI just moved my site to iPage.com.

Two hosts whom should be avoided by miles.
Title: Re: Ad Management mod
Post by: naimnatnod on August 08, 2013, 08:41:41 PM
Does it mean I made a bad choice and it'll never work?

Quote from: Grumpy Old Sod on August 08, 2013, 08:37:19 PM
QuoteI just moved my site to iPage.com.

Two hosts whom should be avoided by miles.
Title: Re: Ad Management mod
Post by: aerolite on August 13, 2013, 10:59:19 AM
I have successfully installed the package ad_mod_v3.0_SMF_v2-0a.zip. Unfortunately, I don't see the settings for it

"Go into the Admin panel of SMF and under the Configuration heading click on Ad Management then click on Add Ads"

I don't see Add Ads under Configuraton tab.

Title: Re: Ad Management mod
Post by: vbgamer45 on August 13, 2013, 11:41:34 AM
Do you see ad management?
Title: Re: Ad Management mod
Post by: wolfetundra on August 21, 2013, 05:22:00 PM
I am running 2.0.5 ( avoiding updating ).
Per the instructions of installing, it says;

./Themes/core/BoardIndex.template.php
Find
<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';


Problem is, there's not a single part of this code that exists within BoardIndex.template.php.
Assistance?
Title: Re: Ad Management mod
Post by: TheListener on August 21, 2013, 05:24:17 PM
@wolfetundra

Do you use the Core theme?
Title: Re: Ad Management mod
Post by: wolfetundra on August 21, 2013, 05:45:47 PM
No. But if I install without installing to the Core theme, I get errors;

Parse error: syntax error, unexpected '<' in /home/site/public_html/Sources/Load.php(2159) : eval()'d code(593) : eval()'d code on line 1

Parse error: syntax error, unexpected '<' in /home/site/public_html/Sources/Load.php(2159) : eval()'d code(26) : eval()'d code on line 1


I don't know what's causing it. It worked fine just last week. I did a fresh install and as soon as I installed this mod, I got these errors. When I uninstall the mod, the errors go away.
Title: Re: Ad Management mod
Post by: TheListener on August 21, 2013, 05:50:59 PM
Can you go into admin > configuration > server settings > general and tick the disable eval box please.

Empty the error log then report the new error message.

Normally if the core theme is not used then it is best to ignore the theme errors.
Title: Re: Ad Management mod
Post by: wolfetundra on August 21, 2013, 06:14:34 PM
I followed your instructions, and now I get;

Parse error: syntax error, unexpected '<' in /home/site/public_html/Themes/default/Ads.template.php(593) : eval()'d code on line 1

Parse error: syntax error, unexpected '<' in /home/site/public_html/Themes/Bad_Company_3_2/BoardIndex.template.php(26) : eval()'d code on line 1


BadCompany is the current theme.
Title: Re: Ad Management mod
Post by: TheListener on August 21, 2013, 06:18:41 PM
OK so now you would have to open each file (using notepad++)

Using the code bbc tag (the #) please post the error line along with the 5 lines above and below it.

/me is no code genius
Title: Re: Ad Management mod
Post by: vbgamer45 on August 21, 2013, 06:36:10 PM
Also make sure you have valid php code if you are using a php ad block. Otherwise stick just html ad blocks to post your javascript/html inside
Title: Re: Ad Management mod
Post by: NIAB on August 27, 2013, 05:56:38 AM
How do I add adsense to this ? When I try, I just get the following

Code (D:) Select

Parse error: syntax error, unexpected $end in /home/domain/public_html/forum/Themes/default/Display.template.php(840) : eval()'d code on line 10
Title: Re: Ad Management mod
Post by: vbgamer45 on August 27, 2013, 10:41:01 AM
Are you adding it as php code? If so just add as html code instead
Title: Re: Ad Management mod
Post by: azirion on September 02, 2013, 01:16:48 PM
Hi

Im trying to install this mod and I have some Test Failure messages. I know how to edit the files. I know how to search and replace or add. But the problem is that the Test Failure message is because it couldnt find a specific code on the php file so it could not proceed.

Now, if I want to manually add this new code, how can I know were to insert it? Can you help me with this please?

Here are the 3 files where the code is gone:

On the /Themes/core/BoardIndex.template.php file, cant find:
<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';


On the /Themes/core/Display.template.php file, can´t find:
}

echo '
</form>
</div>
<a id="lastPost"></a>';


And on the /Themes/core/MessageIndex.template.php file, can´t find:
echo '
</tbody>
</table>
</div>
</div>';


Any ideas?
Title: Re: Ad Management mod
Post by: vbgamer45 on September 02, 2013, 02:21:50 PM
If you can't find the code. What I do in that case is look at the default theme and see where that code is located at.
Then look for a similar area in the theme you are editing.
Title: Re: Ad Management mod
Post by: azirion on September 02, 2013, 04:21:00 PM
Excellent idea, thanks for the tip  ;)
Title: Re: Ad Management mod
Post by: vbgamer45 on September 02, 2013, 06:53:08 PM
Glad to help
Title: Re: Ad Management mod
Post by: azirion on September 03, 2013, 12:37:40 AM
Well I did what you said, but somewhere on the process I messed up... and the forum crashed  :-\

Lucky me I had backed up the 3 files so I just copied them back and uninstalled the mod.

So I'm in square one again  :(
Title: Re: Ad Management mod
Post by: Apllicmz on September 07, 2013, 09:20:43 AM
Update portuguese files
attach



Title: Re: Ad Management mod
Post by: vbgamer45 on September 07, 2013, 08:28:39 PM
Thanks for the translation
Title: Re: Ad Management mod
Post by: Lovejist on September 10, 2013, 06:28:09 AM
I recently downloaded the ad management mode 3.1 for the current vertion of smf. I havse succeeded in placing banner ads with it and it is all fine.

However, I would like to know how I can place the multiple banners by the side of the page, each standing on the top of another or below the another. The one block banner I placed by the side is almost hanging on the page. I will also want to place the top and bottom banners side by side.
Thanks
Title: Re: Ad Management mod
Post by: vbgamer45 on September 10, 2013, 08:01:07 AM
You can use an html table to make ad's side by side.
Title: Re: Ad Management mod
Post by: Lovejist on September 10, 2013, 08:13:34 AM
Thanks for this. Please I am a newbie in the use of html. Could you show me an example.

Thanks.
Title: Re: Ad Management mod
Post by: vbgamer45 on September 10, 2013, 08:18:17 AM
Example:


<table>
<tr>
<td>
Banner ADD code here one
</td>
<td>
banner add code here #2
</td>
</tr>
</table>
Title: Re: Ad Management mod
Post by: Lovejist on September 10, 2013, 09:00:57 AM
Thanks for this. The code you gave me worked for placing ads side by side. what code will I use for placing ads in a row? I want to demarcate ads with borders.

Thanks
Title: Re: Ad Management mod
Post by: vbgamer45 on September 10, 2013, 10:46:08 AM
Multiple row example

<table>
<tr>
<td>
Banner ADD code here one
</td>
</tr>
<tr>
<td>
banner add code here #2
</td>
</tr>
</table>
Title: Re: Ad Management mod
Post by: Lovejist on September 11, 2013, 06:22:31 AM
Thanks a lot for this. I still have another issue. The first banner I placed by the right corner of my site is hanging. I want to be able to push it downwards. You can have a look at http://www.lovejist.com to see what I mean.

Thanks
Title: Re: Ad Management mod
Post by: vbgamer45 on September 11, 2013, 10:53:30 AM
You can put <br> tags to move it down at the top of the code for that area.
Title: Re: Ad Management mod
Post by: Lovejist on September 11, 2013, 04:57:39 PM
I added <br> but it didn't move.
Title: Re: Ad Management mod
Post by: von COLLINZO on September 22, 2013, 08:29:00 AM
I installed this mod yesterday and got this errors....

Fatal error : Call to undefined function template_ad_position() in /home/xxxxxxx/public_html/ Sources /Load.php(2284) : eval()'d code on line 310


and

Fatal error : Call to undefined function update_ad_impressions() in /home/xxxxxx/public_html/Sources/Subs.php on line 2856


my website www.guruszone.net
Title: Re: Ad Management mod
Post by: vbgamer45 on September 22, 2013, 08:55:47 AM
Are you sure you installed Ad Management and not another mod"? I am not seeing those functions in my ad system
Title: Re: Ad Management mod
Post by: von COLLINZO on September 22, 2013, 02:50:21 PM
Quote from: vbgamer45 on September 22, 2013, 08:55:47 AM
Are you sure you installed Ad Management and not another mod"? I am not seeing those functions in my ad system

I think you are right somehow....coz I previously installed SimpleAds and it crashed my forum...then I uninstalled it manually....maybe some of the code modifications still exist...lemme check
Title: Re: Ad Management mod
Post by: vbgamer45 on September 22, 2013, 02:58:53 PM
That would make sense.
Title: Re: Ad Management mod
Post by: von COLLINZO on September 22, 2013, 04:17:13 PM
Quote from: vbgamer45 on September 22, 2013, 02:58:53 PM
That would make sense.
you guessed right bro... the errors were caused by SimpleAds mod which I previously installed....

I visited the support thread but it seems dead....so, I've been able to fix the errors in Subs.php but tried also to fix Load.php to no success....

I removed

update_ad_impressions()

from Subs.php to get it fixed....

I then searched for

template_ad_position()

in Load.php so I can remove it, but found nothing....

I know this is not the support thread of SimpleAds mod, but if I can help here, I'd be really grateful....
Title: Re: Ad Management mod
Post by: NanoSector on September 22, 2013, 04:30:36 PM
Try searching without that last bracket. So leave the function open.
Title: Re: Ad Management mod
Post by: von COLLINZO on September 22, 2013, 05:05:54 PM
Quote from: Yoshi on September 22, 2013, 04:30:36 PM
Try searching without that last bracket. So leave the function open.
thanks for dropping-by....I just tried that but got no results....

or, should I attach the file here?
Title: Re: Ad Management mod
Post by: von COLLINZO on September 22, 2013, 05:32:19 PM
thanks @vbgamer45 and Yoshi for coming to my aid....

I just fixed it successfully by editing all the files modified by SimpleAds mod....using the Parse option for 2.0.5....

now I can fully utilize Ad Management mod....thanks alot
Title: Re: Ad Management mod
Post by: taysys on September 22, 2013, 05:34:58 PM
I am just testing an upgrade from smf v1.x to v2.0.5.  The upgrade went smooth.

I started implementing mods that I have running on my active v1.1.18 site. One mod is Ad Management v2.3 and it runs very well on v1.1.18.

The version I have installed is the latest 3.1 for smf 2.0 and I am running into some inconsistencies that I hope you can help me with.

Simple tests with just an icon using HTML have shown the following setting do not work:
Board Index (not sure where this supposed to show)
Welcome area
Right Tower on every page: sometimes show and then disappears. Sometimes drilling down through a board the icon is there. I can back up and do the process again and the icon will be there. If I use the navigation links to back up, the icon may or may not appear.

I hate to say "sometimes" or "may or may not" to a programmer, being one myself it drives me crazy when I hear it from a customer... sorry, but this selection is extremely inconsistent.

I tested the same with the left tower and it works just fine.

Let me know what I might be doing wrong and I'll get it changed.

Thanks in advance.
Bob
Title: Re: Ad Management mod
Post by: vbgamer45 on September 22, 2013, 05:36:37 PM
It depends a lot on the theme you are using. If you are using the default theme it shoudl appear it all spots if it is a custom theme all the edits need to be there in order to function correctly.
Title: Re: Ad Management mod
Post by: taysys on September 22, 2013, 05:39:58 PM
I have left everything default.  I verified the default theme is being used.
Title: Re: Ad Management mod
Post by: taysys on September 22, 2013, 07:26:35 PM
A lot more testing revealed that it seems to be browser dependent.  Most of my work has been in Fire Fox.  They seem to display in IE and chrome but have to flush the cache or reload the page lot to get the changes to appear. I did get FF to display but again after several page reloads.

I guess we're OK... just different.

Thanks for the reply.
Title: Re: Ad Management mod
Post by: AllanD on September 30, 2013, 07:55:59 PM
I searched everywhere, How can I add this to the bottom of every page above the breadcrumb?
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on September 30, 2013, 08:08:21 PM
Quote from: AllanD on September 30, 2013, 07:55:59 PM
I searched everywhere, How can I add this to the bottom of every page above the breadcrumb?

Easy option setting while you are adding a advert in the admin settings
Title: Re: Ad Management mod
Post by: AllanD on September 30, 2013, 08:40:23 PM
Just added the ad from google so probably not showing yet. Than you
Title: Re: Ad Management mod
Post by: vbgamer45 on October 01, 2013, 11:12:11 AM
Yes takes a while for google adsense to appear on new sites.
Title: Re: Ad Management mod
Post by: Celebhdforum on October 03, 2013, 12:02:37 PM
Great mod

It works very well for my site but i have one question, i might be doing something wrong but the adds will only display for members logged in and not guest??

any advise
Title: Re: Ad Management mod
Post by: vbgamer45 on October 03, 2013, 12:05:54 PM
Make sure you enable ad's for guest. Under Admin -> Permissions -> Membergroups -> Guests -> Enable ads
Title: Re: Ad Management mod
Post by: gavrilo on October 04, 2013, 02:39:35 PM
Can I add my flash banner with Ad Management between categories like  this http://www.simplemachines.org/community/index.php?action=dlattach;topic=511823.0;attach=224710;image ?

And if it is possible how to..

Title: Re: Ad Management mod
Post by: vbgamer45 on October 04, 2013, 02:47:11 PM
Would require some custom tweaks to do so.
Title: Re: Ad Management mod
Post by: Kyrianchigozie on October 04, 2013, 03:30:49 PM
// i got dis wen i wanted to install ad mod latest version, will it work fine aftr instalation?
Title: Re: Ad Management mod
Post by: Kindred on October 04, 2013, 03:35:49 PM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Ad Management mod
Post by: vbgamer45 on October 04, 2013, 03:54:49 PM
If you are not using the core then it is ok. The default theme for SMF 2.0 is curve
Title: Re: Ad Management mod
Post by: Kyrianchigozie on October 04, 2013, 06:53:35 PM
k am using ecology theme
Title: Re: Ad Management mod
Post by: vbgamer45 on October 04, 2013, 09:11:43 PM
If you don't get errors on that theme when installing on other themes then you are ok.
Title: Re: Ad Management mod
Post by: MechSpecs on October 13, 2013, 11:59:52 PM
I'm assuming we can just paste our Google AdSense code in?


<script type="text/javascript"><!--
google_ad_client = "ca-pub-121212121212";
/* Main Ad */
google_ad_slot = "121212121212";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


When I paste this I just get a blank background? It could be cause the ad is new and not showing up yet or maybe there is something I am missing?

NOTE: The numbers have been replaced since that info is irrelevant to debugging.
Title: Re: Ad Management mod
Post by: vbgamer45 on October 14, 2013, 12:05:21 AM
Yes that all you need to.

That is normal adsense behavior to be blank in the beginning.
Title: Re: Ad Management mod
Post by: MechSpecs on October 14, 2013, 12:18:51 AM
Mkay, thanks for the feedback.

Hopefully Adsense will detect that the code has been added and whomever does the screening at Google can get to it over the next day or two.
Title: Re: Ad Management mod
Post by: petlv on October 19, 2013, 02:05:35 PM
Hi,
I have problems with Ad Managment v 3.0.1 running on SMF 2.0.5. It does not display ads when I enter numbers in the field "Which boards should this ad display in". I enter the digits of the boards just as described but no ads show anywhere. Then I remove the digits and ads show on every page. Can someone tell me where the problem is? I am using default SMF theme.
Title: Re: Ad Management mod
Post by: Chaoticone on October 31, 2013, 02:29:02 PM
Hello, I have a little problem. SMF 2.0.6 Ad Management 3.1a. I have an add I set to be displayed as a right tower. If I open a board that is in the general category it pushes the topics list to the left about half way of the page. The images in the tower are still sized properly but there is a wide blank area to the right of the tower. This is the only place I see this. I do not have any ads set to be displayed in those boards only. Everything else displays as it should. I'm thinking this may be a problem with the main template but I'm not sure. Disabling the add that is set to display as a right tower fixes the issue. This is the only right tower add I have. I only have a top or every page, right tower and left tower adds. I'm using a custom theme but it is the same as the default (curve) with only a few graphics changes unless one of the other mods has altered the template. I'm no programmer so it may well be my fault. Maybe my code for the tower add isn't right? But, I still do not understand how or why everything else would display correctly.

Thanks in advance for any assistance!
Title: Re: Ad Management mod
Post by: CWA on November 01, 2013, 11:06:23 PM
I have SMF 1.19  I tried to modify my custom theme with Ad Manager, and can place ads on the top of each post page, but it does not show at the top of the forum topic page.  Any help would be appreciated.  Thanks.
Title: Re: Ad Management mod
Post by: vbgamer45 on November 01, 2013, 11:11:32 PM
What I do for custom themes is compare where it is added in the default theme then make similiar changes in the similar area in the custom theme.
Title: Re: Ad Management mod
Post by: CWA on November 02, 2013, 05:55:50 PM
Quote from: vbgamer45 on November 01, 2013, 11:11:32 PM
What I do for custom themes is compare where it is added in the default theme then make similiar changes in the similar area in the custom theme.

I am trying to do that, but I cannot find the code to allow an ad to show on the forum category front page.  It will show in each post but not at the top of the title forum page.  I keep getting errors when trying to change the code.
Thanks
Title: Re: Ad Management mod
Post by: CWA on November 10, 2013, 08:49:57 PM
I am trying to install the reply in every post mod, but receive an error tell me to find $reply_button = create_button('quote.gif', 'reply_quote', 'quote', 'align="middle"'); and add     $respond_button = create_button('reply.gif', 'reply', 'reply', 'align="middle"');
before it.  The problem is that I cannot find the first code in the display in the ./Themes/default/Display.template.php file. 
Any help would be appreciated.
Title: Re: Ad Management mod
Post by: vbgamer45 on November 10, 2013, 08:52:16 PM
Make sure you are getting the install information for the correct SMF version.
Title: Re: Ad Management mod
Post by: CWA on November 11, 2013, 01:11:22 PM
I have ad management mod 3.1 for SMF 2.0.6.  My question is how can you add multiple ads and align them on each forum topic?
Title: Re: Ad Management mod
Post by: Gryzor on November 21, 2013, 04:29:52 AM
Hello!

Thanks for this wonderful mod :)

I've hit a small problem: although I'm running async ads, I got reports from my users that they don't work as such. I have an ad at the top of the index page (under the login form) and they tell me that if the ad is slow to load, although the page has completely loaded (except for the ad) the login button does not work! It only works after the ad is displayed...

Any ideas?

Thanks again!
Title: Re: Ad Management mod
Post by: vbgamer45 on November 21, 2013, 10:15:51 AM
Not sure on that. Would probably be due to the ad provider and their code.
Title: Re: Ad Management mod
Post by: Gryzor on November 21, 2013, 11:51:54 AM
Sorry, forgot to mention; I'm using Google ads, in asynchronous mode... it's weird, because it seems it's not related to the ad code - if it's loading asynchronously, and the rest of the page has indeed loaded, why would the Login button not work? Strange...

Thanks for the reply though!
Title: Re: Ad Management mod
Post by: Realinfo on November 22, 2013, 09:17:25 PM
Quote from: Realinfo on August 25, 2012, 01:17:31 AM
why we can't have Ad Management mod
with
SimpleAds
http://custom.simplemachines.org/mods/index.php?mod=2557

Bump!
Title: Re: Ad Management mod
Post by: TheListener on November 22, 2013, 09:25:57 PM
Quote from: Realinfo on November 22, 2013, 09:17:25 PM
Quote from: Realinfo on August 25, 2012, 01:17:31 AM
why we can't have Ad Management mod
with
SimpleAds
http://custom.simplemachines.org/mods/index.php?mod=2557

Bump!

You do realise these are completely different mods?

I don't use either as I display my forum adverts differently.
Title: Re: Ad Management mod
Post by: Arantor on November 22, 2013, 09:32:03 PM
You do realise this is a legitimate question?

They both have different features for handling ads, except they don't play nicely together.
Title: Re: Ad Management mod
Post by: Realinfo on November 23, 2013, 08:57:19 PM
But I need both
Ad Management mod
and
SimpleAds

and SMF needs to guide both MODS, so users can able to install both MODS in one forum
Title: Re: Ad Management mod
Post by: Arantor on November 23, 2013, 08:58:31 PM
SMF 'needs' to do nothing. Mods are absolutely nothing to do with us. It's up to the mod authors to work together, or someone else to write a new one - and this is no mean feat, good luck with that. Just because you want it doesn't mean that someone with the time and skill and energy will find the desire to make it for you.
Title: Re: Ad Management mod
Post by: Realinfo on November 23, 2013, 11:25:24 PM
When we try to install both MODS, Forum get crashed,

So SMF not care about it,

atleast there will be warning that

"don't try to install Ad Management mod
and
SimpleAds together "
Title: Re: Ad Management mod
Post by: Kindred on November 23, 2013, 11:39:37 PM
not our responsibility....

we provide a platform for the mods to be installed upon... and and place for them to be listed.
We ensure the the mods submitted will install cleanly into a base/clean installation of SMF. That's it.

Support for each mod is up to the author of that mod - and figuring out the compatibility or incompatibility of those mods is also up to the users of the mod and mod authors
Title: Re: Ad Management mod
Post by: Arantor on November 23, 2013, 11:53:42 PM
By your logic, we should be held responsible for every possible permutation of mods. Given that there are quite literally *thousands* of mods on the mod site, that means you're talking about *millions* of permutations. We're just a group of volunteers who put time in, we simply do not have the time - not even if we were to automate it - to do that kind of testing.
Title: Re: Ad Management mod
Post by: Realinfo on November 24, 2013, 12:23:33 AM
But when someone is reporting, you atleast ask MOD author to look upon the issue

Forum get crash is big issue, we all need to think about it

I'm not expert of all these thing But still I got that in Ad Management mod
and
SimpleAds there is one or two files which are with same name, and If MOD author tries then issue can be solved,
Title: Re: Ad Management mod
Post by: Arantor on November 24, 2013, 12:31:37 AM
QuoteBut when someone is reporting, you atleast ask MOD author to look upon the issue

And by posting in the thread, that's exactly what you've done. Only one of those two mods is actively maintained, of which you are posting in the thread in question.

QuoteForum get crash is big issue, we all need to think about it

So for the millions of mod combinations that aren't going to work properly, you're seriously expecting us to go through and alert possible users? No.

QuoteI'm not expert of all these thing But still I got that in Ad Management mod
and
SimpleAds there is one or two files which are with same name, and If MOD author tries then issue can be solved,

That is not our problem. That is the mod author's problem. And that's the end of it.
Title: Re: Ad Management mod
Post by: Realinfo on November 24, 2013, 01:09:58 AM
I can understand that you are not responsible , my point is if
Project Manager
SMF Master
Developer
SMF Legend
people like this ask MOD author, then may MOD author take it serious

and I have SMF from 5 years and installed more than 200 MOD even tried more than 200 MOD ( some are uninstall)   but I got problem of compatibility in these two MODS, so pint is it';s not "millions" it will be hardly in "Hundreds "

But thanks for helping, I mean replying .
Title: Re: Ad Management mod
Post by: Gryzor on November 24, 2013, 04:03:34 AM
Dude, do you realise what you're saying? In order to find those "hundreds" you need first to work through all the millions! Right now I see that there are almost 4000 mods. Do you know what the factorial of 4000 is?

Here it is:

837480668655597862295663192097288173642212340883365562793277618150008156843681339639756943760106911812558405039347598491520054437402845487063509598744
332144649516769130815648631474181302429000416487069153074558456695382359505125535766987360813145909253514789775882378885568566525390783063561833553438
012575668841447197588322034260866726855883869073547286838537102204156570742885865363639626980609799014048439776584721753854683202367131270075974500562
558105680454515181185202522510499134563234492030623144098846483665869289196418691690415856720771782893115730119917787058607862055566855827803861187127
650251465449336122852944342162055338026013917186979858631452882458562448230863723037993372113781518727563848558891511005661965852280982100021504723688
075592103551487072112350819995199974090926450328453268607820166372937353199282449745647702855586627571353072455705726161387247177018021560048836081320
021466187075656469360889782993762651114905442754405446151623849665952830713742617735224317666384198030048865648369543778290636914904550562797108409368
926939569983623638301812416780347046452381983379849129926982434795109701319342401668889128233533909146438630788094687599804702827235807839853015765295
749800232845941135186677292377034906967385850647331937012866618104699042783512403355924864231280499838197194864258540800790879378915126238186667945355
937269666164689504511914321235831864530712409790334654280464312768447356039520646723976582293361629451233845944705922218293583439060470827307250812647
855966248184163183942688750628237249115732393332756982853632724896665297054282628750603327224686131711537584784563730898403842115441966551407733232973
298310519039594223613282190905370118852052306089312057275407933031152284841534317472213515314940718414905790552945423242296744888476318240215697145170
325590324510217077413829862029613318310618757552355818052681532720878221135769874062460424414264622011194230520155140800303426789855241871670919713858
119320034473225011567978412144181069506666537994895869904206792689068421593922903168734802098819951881864367569279828892461735176656232412541720415154
551108908671403816884440723475796155612316432836869177016810552454718476794196356694888066233937770674930023143287571273128491829184313646433122564920
121901830476362853266932361108273860969570566917130419844207891297686170789415730117040360049857573455839966870242755495032670522503436991367930574008
840933338707854737147552934426980500189604371504245949844362717192164229610015394979670528684791322945000609406614933967111397838746254769826018746722
478573931844869613685733900751921301554722513388833232269161281885142011542376903326309443743469439399861885283019197438470932002233890120853920247340
517903685571464469044347253036786750480798239063017407599311480597074284438135872565626452124226568542227237858506686487724194525344071488981377259976
880383796989170803565304718158390238554088035788765891228183714100452276295934672645216422871597580493843245765709111656917748731163148900457142352266
192973794833804326469830429941400795301050929294018023904233342419247441686798460602815164893446122299079920595663642531632064597807981127436115369109
382696811920341794967001036110538642236725434969456615045640436063465684623354006166268397613993351541154814580972080393607768593398360101211137501722
913470667923973695147305482521020213680053125320155608163022294448547335998546765435237308756368461462325185233071503999223108161788027329878025678117
090634675370152497153457879584363859958592101900370942543152823478101707392735554926693405840437715704512006378446017397918987410844093948805139343102
044604874913047718896421384946221866275782223332410190157673314747435241486516091193626520848802132329821986290855400356408853818624041267081775289024
473458851633961636984249439428075193954483824800152239348626983088789907473786968427261329714144085340021021722077517698614255853503491740412339233535
487100208709047065241275615018096208275511395673658882176401414453775579321815606536562988941950103172295768984369006055074833293449845273441256499014
841946405723753929511234467494522325646964202098962172649975721553386206276192832768149955460904000381282692241258898165811756825260554124818825417758
144486003016032849004387993870373017259448993035814543390352216284829151831723562239231758903986446333030495560236727187668964463019074985207306556960
346791451128902277463912216400594282501537476959054527853375101483911591097786300546074063708808275070209791149237724510728590714163410241088218556363
682045519825391547806515410418025866729604049928132909935980562767336835740616653527684364416907896033954846741418351017421022789265890191122006039803
276338956546691287477557840702677417093142459180709036287209348446062062338251471601526380163737724635482535763464410318711937717941851526004857613234
894664950846944199327162847060770303240616950975786691188059626940848862227535484305884641431265092672237998973060277992381634781500641402812941821247
691870934219985360557363714480757727229672381057729410024384007445635960591357574007611732628834142260792119848552395927654065745282632553865693649647
797137915262234329895061565828138920415758777889726341953459201089929354907053593302151540373335732576062883944455890407084363546986677698588912154395
018327988967723111655255766375037743189627752684343343534073614916353270360697443448935037666309521170445213212015414085632137632386840541185207461947
410558124397351672294486151316096705109371089761449844737189352461346865900146658623451402312095335723612303426084551737762703926562701501130928844269
389957728599030935739252007886859105431211878202186241690243540886543835772657371624512782412973383803093500206658463095828854013688724213278588532843
312621365270903303307753522729583446225641535527476456667403831576568602085968451784594911636913669492774996616305823580747120192976337189507967368042
762199058758120461331922646768445628747115445833345975477366612160848855438466159137525682924143819390935405890001557462244208412562327447855808212404
886316103232062539191457557082140581347604648630327871100967517853395297902533548551268717913680765563041889651302804559033231239626188133829925595336
819860143745968674942447296585120068747386291324727734819773562036143098263855619200468426718407592781473079205949433788401756967838276393899784270762
534736996619689018524839840356548728564585558811971133102482736807382341956795336183408839932578002386220370470414957076555247475131786959063924445105
706575709653968483152085147885856720410951295895993139743929741705066576067358043197852504198213853448572071757624583023804121610042852561723422334777
311786358864042904740649062797321721831293460350977152361566404327051588994797788614993559448286684531665387144233211909726678293318334373567637836591
228615710601067750489997589978296712012195931229352690729382042002724463943081049147470595107342874404655683044057083423869819417723310668980551685221
533089031387985966910279998105221964517284678031561877372370822642753450879416308162984417731494348835470242621167542589436360117294777713820896022298
995506399300310614570434078291989810520835231921788237372589438240434278856995994564927293427518364626091013816207020830684203594160827871015514065481
545871165913872716518084850461938015637680979862417105653077629556042286630189566609503769503068151478023281972953522440883882577860243799645065465195
131928449612296598791224209055784111220733984847299025750098792944362690234993337386470214765645228894983839548246797763866558245166842426979912283246
437618221002395218022877960257174526716876423481280437092209865048102199944526084865411383549765016085875740174284703589360897947301918369684565866599
948586175795379538527503980172166180900207541285196781441686166460173312877325523267041259878047226439997614727307204970003577247522452434065723023026
336413220074435437955523256710908143065919061344266956215944561383029307338262586776837627771870338323576206419326796799603657782326032217508857490410
269400318830240405664320897486958320148084441549137771391567406372061722915240394049882577089869251854448275684366193455646987822292663086694852459781
136789907811321615063370891362286646635216407264979997410172548027994622524700331185219718568351950676264388469188092568104227725219897417766008812705
320560326578384021346257348061523492317971635446188071353259324319673261058657248523639740655247023171871482653755166779777130032397709366461960115870
728197453207767972490111947868016349735096087880590085899357377403470746941520117607349787696773578143302908535380726193694967355250033866884984260262
430377338529678476358953685315509132590015741881293804338788081008026048534277241265933020723981484203345311947981577442226543910609839170018125887512
145602192583082797398199109497331725547132399166500329209992149181139754593667078967714605613063136691832527116101917128624949106215613412980944674386
770556815038996121550249840665384091891081178817227240295870013418940791325366671917565097292458389732770936488894734117149988704635160102569747243208
596571649514740110425791935640616928480922670466392297816042915291446996327198855164942108432295592737740175737556063381014561746904741467013533788293
638614211215711814458110344530653364288253323295924876239581691744735791099824162872293547413418300158210550038466230460708452275782913015291068101246
815143483566667741143022376243770467710893469305026276960429211873887056244222803632524550438154966820383032651944704527268961112019251292340895621055
049808394364730233360924465220148013571036642631843210559746784659872054131404871374278209246399610312328812718640856670594550565423904072700800066152
335382274688566531959106486773046230728295992140797275898530862663869018074849231546432361733476031123770719656681219829306701122813982254040677693936
475258915791452535109690143064029166867739288274032968581915218636309424514557592629072813725138060376536971178308584573837668511364454819963635268544
824745280208302596625823950782153863453407945287870147767703440516830527091221606959837381736625652200497127168790344374274206018328479271860457180707
294133050860626115546401935865198554318043548178216464809107731805740043041811009530281755896875437246496087113306101988141505257227684423884124784965
488160892967663714671548547509507769377432585225801802252070068369931695836646182922682011378391223492299368816907816120248465363763875411733933709142
085293561181588069081522039978506561816149731281148889110200192283819954957281454692647763767825770926553718330957441666528647283321642092735771837067
341182654911361773534839364176990614059475956381646615364422973101784971137022183777768528533182318418620069400583244051994589968949569191948776561018
418164431977566170463258311024686233790273572612823751584031080954604061648380984744933050981822582888818576128886255345962351477699333416096576476075
938128548361948758890258470020688186268330530719032877802386257764787388217098512132445932829087100325129949418005797199827582020947451825346151009900
110894838449454367593306976592600404606838486111762646537357327149849858199574351159094330343796385740345822155401233233649965917521982109819429734947
127013696625126925920665745912862345128922209255059386108200674938408450470051013239412996227585034828765008346651654811116079860200911892677847543755
910813503930945926024506033746052872993201192960000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000


...and that's the number of mod combinations that would have to be checked.

Even if SMF was a commercial product there would still be NOT such a kind of support.

I'd suggest, deal with it. This is why the community is here, that's why this support forum is here, to help us figure things out. And that's about it.
Title: Re: Ad Management mod
Post by: Realinfo on November 24, 2013, 04:13:45 AM
Thanks for factorial value, But compatibility issue is not much, hardly u see it

can you give three examples with MOD names which are not compatible with each other?

in 4000 MODS u must know many, but just tell three which are not compatible with each other

Title: Re: Ad Management mod
Post by: Gryzor on November 24, 2013, 04:19:29 AM
Erm... I *really* don't see the meaning of your post.
Title: Re: Ad Management mod
Post by: Realinfo on November 24, 2013, 06:37:54 AM
Quote from: Gryzor on November 24, 2013, 04:19:29 AM
Erm... I *really* don't see the meaning of your post.

I guess u even don't know one example, ok leave it

Come to issue

Both these mods have "Ads.template.php" to "./Themes/default


If any one has this file with different file name issue can be solved, so guide how it can be possible
Title: Re: Ad Management mod
Post by: Gryzor on November 24, 2013, 06:43:53 AM
Not sure why you need an example and of what,  and as for your "come to issue" lines, I'm not sure I understand your english. If it's a conflict, feel free to go into the mod and change the filename and code yourself, it's not hard to do.
Title: Re: Ad Management mod
Post by: Realinfo on November 24, 2013, 06:55:09 AM
Quote from: Gryzor on November 24, 2013, 06:43:53 AM
Not sure why you need an example and of what,  and as for your "come to issue" lines, I'm not sure I understand your english. If it's a conflict, feel free to go into the mod and change the filename and code yourself, it's not hard to do.

1. example of MODS which u see not compatible with each other ( But leave it, it's not issue)
2. Sorry for bad English
3. I'm not that expert to change files, unless someone teach me step by step
4. According to me, Both these mods have "Ads.template.php" to "./Themes/default and that is why they can't be install in one forum
5. But experts can give solutions
Title: Re: Ad Management mod
Post by: Gryzor on November 24, 2013, 07:01:07 AM
That's an entirely different thing than asking for the SMF guys to check mods for incompatibilities with each other.

I think changing a mod would be rather trivial, change the filename of Ads.template.php and then go through the files with a text editor and change any references to "Ads.template.php" to reflect your new filename.

Never done it, so if anyone can confirm it it'd be nice, but I don't see why it wouldn't work.
Title: Re: Ad Management mod
Post by: Realinfo on November 24, 2013, 07:08:54 AM
Move the included file "Ads.php" to "./Sources".
Move the included file "LoadAds.php" to "./Sources".
Move the included file "Ads.template.php" to "./Themes/default".
Move the included file "Ads.english.php" to "./Themes/default/languages".
Move the included file "Ads.english-utf8.php" to "./Themes/default/languages".

I have to check all these files and needed to change any references to "Ads.template.php" to reflect your new filename, as u suggested,
Title: Re: Ad Management mod
Post by: Gryzor on November 24, 2013, 07:11:17 AM
Yup, if that's what the mod package has in it.
Title: Re: Ad Management mod
Post by: Realinfo on November 24, 2013, 07:19:56 AM
Ads.template.php reference is not in any of

Move the included file "Ads.php" to "./Sources".
Move the included file "LoadAds.php" to "./Sources".
Move the included file "Ads.template.php" to "./Themes/default".
Move the included file "Ads.english.php" to "./Themes/default/languages".
Move the included file "Ads.english-utf8.php" to "./Themes/default/languages".


I guess it can be in Database (mysql)
Title: Re: Ad Management mod
Post by: Kindred on November 24, 2013, 08:31:25 AM
ummmm.... no.

the references to the template file are based on and in the sources file which is determined by the functions added.

In other words, you would need to go through all the code changes added by this mod as well as the code in the new files that you listed to find the changes which you would need to make.
Title: Re: Ad Management mod
Post by: Arantor on November 24, 2013, 10:30:13 AM
Load for calls to loadTemplate('Ads') too ;)
Title: Re: Ad Management mod
Post by: luuuciano on November 26, 2013, 09:22:51 PM
Realinfo, why do you need to use both mods? missing features in one of them??
Title: Re: Ad Management mod
Post by: Realinfo on November 27, 2013, 06:48:06 AM
I want to have ads inside last post, but simpleads not doing this for me, But all other case Simpleads is awesome
Title: Re: Ad Management mod
Post by: NeedIt on November 29, 2013, 12:27:25 AM
Guys,

I am using the Paypal Ad Mgr module and all is working well usually.  However, I want to load a Paypal Donate button into the Ad Management module.  So I created the button in Paypal and I can get it load.  However, all the happens is that it loads the button but nothing happens when I click on it. 

Paypal creates this using an html <form>.  Should this work?  Any tips?
Title: Re: Ad Management mod
Post by: Arantor on November 29, 2013, 12:28:17 AM
Where exactly are you trying to put this?
Title: Re: Ad Management mod
Post by: NeedIt on November 29, 2013, 12:31:27 AM
Quote from: Arantor Beeblebrox the First on November 29, 2013, 12:28:17 AM
Where exactly are you trying to put this?

I tried to put it after post #2.
Title: Re: Ad Management mod
Post by: Arantor on November 29, 2013, 12:37:47 AM
Yeah, that's not going to work. The entire topic display is already a form, and nesting a form inside a form isn't going to work.
Title: Re: Ad Management mod
Post by: NeedIt on November 29, 2013, 12:41:49 AM
Quote from: Arantor Beeblebrox the First on November 29, 2013, 12:37:47 AM
Yeah, that's not going to work. The entire topic display is already a form, and nesting a form inside a form isn't going to work.

Noted.  Is there anywhere it will work?  I'll play around with it - just wondered if you knew of anywhere?
Title: Re: Ad Management mod
Post by: Arantor on November 29, 2013, 12:43:26 AM
<form> code should work fine anywhere it isn't already inside a form. It just so happens that the list of posts is already a form in itself for quick moderation purposes.

Any other ad spot should work just fine.
Title: Re: Ad Management mod
Post by: NeedIt on November 29, 2013, 12:44:28 AM
I found out it works right below the menu.  That might work out really well.  Thx.
Title: Re: Ad Management mod
Post by: spiros on December 01, 2013, 11:14:15 AM
There is a Wordpress plugin that hides ads on pages that could violate Google policy automatically. Perhaps this functionality would be worth adding here? It would certainly be valuable to me...

http://www.adsenseplugin.it/download/

QuoteBan
You can not display ads on pages with violent content, copyright infringement, an invitation to fraudulent clicks, etc.. Those who violate the rules, are expelled from the program forever.

Hide banner ads on pages that could violate Google policy. For more information read the terms.
Title: Re: Ad Management mod
Post by: apc on December 06, 2013, 12:45:17 PM
I have just done a straight install on SMF 1.1.19 which appears to be working only on the default theme - which I know it is supposed to.

Do I get it working on my main theme simply by modifying the theme files as per the parsed manual instructions for the default theme?

I am assuming this works under any theme?

Thanks.
Title: Re: Ad Management mod
Post by: margarett on December 06, 2013, 01:07:22 PM
Yes, it does. I've done it somewhere in the past :P
Title: Re: Ad Management mod
Post by: apc on December 07, 2013, 05:43:15 AM
My theme does not have a Display.Template.php file at all - is this usual and will it affect Ad Manager?

It is installed and seems to be working - I have looked at the source of the pages and all the Google Adsense code is there, but no ads displaying.

Thanks.
Title: Re: Ad Management mod
Post by: Kindred on December 07, 2013, 08:29:31 AM
if your theme does not have a specific template file, then the system falls back on and uses the default theme version of the file.

if the code is present on the pages, then you have issues with google itself, not with the mod.

You do know that it can sometimes take a day or two for an ad to actually become active, after you create it on google?
Title: Re: Ad Management mod
Post by: apc on December 07, 2013, 10:52:23 AM
Thanks - I realised I had my ad blocker on - a;; working great now :)

What file and code can I modify to center the ads on the page instead of being on the left side?

Title: Re: Ad Management mod
Post by: vbgamer45 on December 07, 2013, 12:19:07 PM
You can just put a <center> tag around your ad code and that should do the trick
Title: Re: Ad Management mod
Post by: Westwegoman on December 07, 2013, 10:23:52 PM
I used divs to center mine.

<div align="center">

</div>
Title: Re: Ad Management mod
Post by: apc on December 08, 2013, 01:17:47 AM
Quote from: Westwegoman on December 07, 2013, 10:23:52 PM
I used divs to center mine.

<div align="center">

</div>


Thanks - that worked great :)
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on December 08, 2013, 01:24:54 AM
Quote from: vbgamer45 on December 07, 2013, 12:19:07 PM
You can just put a <center> tag around your ad code and that should do the trick

The <center><Googlecode></center> structure works just as well...
Title: Re: Ad Management mod
Post by: jeanineh on December 13, 2013, 01:02:05 PM
I'm hoping someone can help me out here and if this has been asked before, sorry for the repeat.

I have the Clear Sky theme on two boards. The first board everything is fine with the ad mod and I've had it for over 2 years. But, I have recently switched to this one for another forum I have. I also have a home portal (for both forums). The ads with show on the top and bottom of both the home portal and the forum index but can not get the ads to show in between categories on the forum index or after post? (It seems to be the middle area with the problem) As I mentioned I don't have this problem with the first forum and they will show on the default curve theme.

I'm not very tech minded so if someone knows what might be wrong please be patient and very precise in your explanation! :)

Thanks for any help I can get.
Title: Re: Ad Management mod
Post by: Gryzor on January 15, 2014, 05:38:39 AM
How easy or hard would it be to insert some code to recognize if an ad blocker is active and then present a relevant message like they do on some sites? Does anyone know?
Title: Re: Ad Management mod
Post by: Kindred on January 19, 2014, 07:23:09 AM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Ad Management mod
Post by: ViewFromTheBoundary on January 19, 2014, 05:38:54 PM
How do you make it so guests can see the ads as at the moment I can only see the ad when I'm logged in
Title: Re: Ad Management mod
Post by: Westwegoman on January 19, 2014, 06:49:39 PM
Admin > Members > Permissions > Guests... and tick the box labled "Enable ads"
Title: Re: Ad Management mod
Post by: ViewFromTheBoundary on January 20, 2014, 05:53:39 PM
Thanks  :)
Title: Re: Ad Management mod
Post by: WCFA on February 05, 2014, 06:01:24 PM
Hi there,
have a fresh brand new install not upgrade, of 2.07. Stock theme, no other mods have ever been installed.
Get the error :
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Uninstalled and re-installed three times no luck.

Anyone have any ideas ??

Thanks
Title: Re: Ad Management mod
Post by: TheListener on February 05, 2014, 06:05:00 PM
Welcome to smf.

Have a read of the mod emulate link in my sig.

;)
Title: Re: Ad Management mod
Post by: WCFA on February 07, 2014, 04:44:35 PM
Hi there,
I ended up installing a non default theme, can I still use the idea you presented?
I used SMF like 7 years ago and stop web building . Just can't remember how I was able to install mods on upgraded theme.

Thank you for the welcome and for your help.
Title: Re: Ad Management mod
Post by: vbgamer45 on February 07, 2014, 05:28:09 PM
Yes you can we have a package parser which tells you theme edits
http://www.smfhacks.com/smf-package-parser.html
Title: Re: Ad Management mod
Post by: WCFA on February 08, 2014, 05:55:40 PM
Wow hey thanks,
I do not remember a cool tool like that saved me allot of work.

Be well


WCFA
Title: Re: Ad Management mod
Post by: WCFA on February 08, 2014, 07:03:36 PM
Could I ask one more question as silly as it may sound.

When installing the mods do you download and install it first then edit by the Parse sections ?
Or do you parse edit and then download and install the package ?

Or maybe I have it wrong ??
Title: Re: Ad Management mod
Post by: TheListener on February 08, 2014, 07:06:09 PM
Quote from: WCFA on February 08, 2014, 07:03:36 PM
Could I ask one more question as silly as it may sound.

When installing the mods do you download and install it first then edit by the Parse sections ?
Or do you parse edit and then download and install the package ?

Or maybe I have it wrong ??

As long as you backup the files then whichever way you are more comfortable with.

:)
Title: Re: Ad Management mod
Post by: sambosh on February 17, 2014, 11:53:22 AM
Here's what it says when trying to install this mod:

Execute Modification   ./Themes/core/BoardIndex.template.php   Test failed
   1.   Add Before   ./Themes/core/BoardIndex.template.php   Test successful
   2.   Add After   ./Themes/core/BoardIndex.template.php   Test failed
   Execute Modification   ./Themes/core/Display.template.php   Test failed
   1.   Add After   ./Themes/core/Display.template.php   Test successful
   2.   Replace   ./Themes/core/Display.template.php   Test successful
   3.   Replace   ./Themes/core/Display.template.php   Test failed
   Execute Modification   ./Themes/core/MessageIndex.template.php   Test failed
   1.   Add After   ./Themes/core/MessageIndex.template.php   Test successful
   2.   Replace   ./Themes/core/MessageIndex.template.php   Test failed

Should I still install?  I should tell you that my smf theme was designed custom, so the theme is not the default theme.

I really just want a mod that will place a rotating banner on top of the forum on every page.
Title: Re: Ad Management mod
Post by: WCFA on February 17, 2014, 12:01:03 PM
I am using 2.0.7  default theme no other themes installed, no errors of any kinda
even uninstalled fine, and no errors. I am using 2.0.7  default theme no other themes installed, no errors of any kinda
even uninstalled fine, and no errors.
Mod installs fine shows up in admin however no ads anywhere.
Codes are verified and tested work on test pages but not in the Forum .
it uses the <form action="https://www.paypal.com/  *******</form>
code I was trying for Paypal.
But again no errors so very hard to try and guess what may not be working.
I am probably a Newb and doing something wrong.

Thanks
Title: Re: Ad Management mod
Post by: vbgamer45 on February 18, 2014, 12:13:45 PM
Did you setup permissions right?

What type of ads? Google ads take a while to appear and depends on content.
Title: Re: Ad Management mod
Post by: Leemy on February 22, 2014, 10:14:16 PM
What's the best configuration for three ads on the main forum index? I normally have a) at menu level, b) tower on the left, and c) after last thread. However, (b) tower doesn't show up on the main forum index! How do I get that to happen.
Title: Re: Ad Management mod
Post by: sttc on February 24, 2014, 06:35:42 AM
When I try to parse the Ad Management Mod Version 3.1 to get the install instructions for SMF Version 2.0.7, it always says "
This mod is not supported with your version of SMF. " Isn't this latest version 3.1 compatible with the latest version of SMF?

Title: Re: Ad Management mod
Post by: vbgamer45 on February 24, 2014, 10:39:58 AM
Yes it is. Make sure you download the SMF 2.0.x version
Also I have my own parser at http://www.smfhacks.com/smf-package-parser.html
Title: Re: Ad Management mod
Post by: sttc on February 24, 2014, 10:57:23 AM
Quote from: vbgamer45 on February 24, 2014, 10:39:58 AM
Yes it is. Make sure you download the SMF 2.0.x version
Also I have my own parser at http://www.smfhacks.com/smf-package-parser.html

I already have SMF 2.0.7 installed on my site.

I tried your parser on the Ad Management mod 3.1 package (ad_mod_v3.1_SMF_v1-1-x.zip) with SMF 2.0.7 selected, and it gives the same message: "This mod is not supported with your version of SMF. " Parser (both yours and SMF parser) works fine on the mod 3.0 package.
Title: Re: Ad Management mod
Post by: vbgamer45 on February 24, 2014, 11:00:47 AM
You are grabbing the wrong package ad_mod_v3.1_SMF_v1-1-x.zip  is for SMF 1.0.x

You need the SMF 2 version
Title: Re: Ad Management mod
Post by: Black Tiger on March 04, 2014, 08:04:43 PM
I just installed your mod, looks great, but I wonder. I just converted to SMF 2.0.7 from vBulletin 3.8 with vba-cmps. We could have multiple tower adds on the right side.

If I want this now, I have to add multiple codes into 1 add configuration.

For example. I make a tower add on the right side from Adsense and call it google.
Now I also have a custom add, also tower add which has to come on the right side. So I add a new add, call it customname and save it.
From that moment on, neither add is to bee seen.

But when I add my custom add in the content window of the google adsense code, then both will display.
However, that's not the best way for handling this.

Is this the only method? Or are there better options? Because it would be also nice if I could create my custom add boxed within lines or something like that.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 04, 2014, 09:05:03 PM
The custom code is the best option to do that I would create a table inside the custom code then put the ad code in each row to make multiple rows.
Title: Re: Ad Management mod
Post by: Portender on March 06, 2014, 07:05:50 PM
Quote from: sttc on February 24, 2014, 06:35:42 AM
When I try to parse the Ad Management Mod Version 3.1 to get the install instructions for SMF Version 2.0.7, it always says "
This mod is not supported with your version of SMF. " Isn't this latest version 3.1 compatible with the latest version of SMF?
I am having the same problem!  >:( Did you get any way for it to work?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 06, 2014, 09:16:47 PM
Make sure you download the right version that says 2.0.x
Title: Re: Ad Management mod
Post by: Black Tiger on March 06, 2014, 09:27:16 PM
@From the other post you made.
Quote from: PortenderWhat do you mean when you said "My forum had to put some file rights correct via ftp"
There was a notice that some files or file rights (don't remember specific) had to change, on the bottom you can fill in your ftp credentials. I did, clicked install and then it worked fine.
Title: Re: Ad Management mod
Post by: Portender on March 10, 2014, 06:37:45 PM
Quote from: Black Tiger on March 06, 2014, 09:27:16 PM
@From the other post you made.
Quote from: PortenderWhat do you mean when you said "My forum had to put some file rights correct via ftp"
There was a notice that some files or file rights (don't remember specific) had to change, on the bottom you can fill in your ftp credentials. I did, clicked install and then it worked fine.
I did not see a notice about file or file rights. Only thing I see when I click install is: "The package you are trying to download or install is either corrupt or not compatible with this version of SMF." Also I am having trouble using the ftp as I am not sure what folder to ftp the MOD to and then how to execute it.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 10, 2014, 06:45:58 PM
Download the right smf version then ftp it to your packages folder in your SMF version
Title: Re: Ad Management mod
Post by: Portender on March 10, 2014, 08:00:49 PM
I just tried that and it uploads fine but it does not give me an install option.  >:(
Title: Re: Ad Management mod
Post by: vbgamer45 on March 10, 2014, 09:02:13 PM
What is your SMF version?
And what is the filename you uploaded?
Title: Re: Ad Management mod
Post by: Portender on March 10, 2014, 09:15:28 PM
I am using the newest version 2.0.7 and I made the file name the same as the package (MOD): ad_mod_v3.1_SMF_v1-1-x
Title: Re: Ad Management mod
Post by: vbgamer45 on March 10, 2014, 09:18:03 PM
You downloaded the wrong one
http://custom.simplemachines.org/mods/index.php?mod=255

Use instead
ad_mod_v3.0_SMF_v2-0a.zip
Title: Re: Ad Management mod
Post by: Portender on March 10, 2014, 09:27:29 PM
Isn't that the older version? v3.1 should be newer then v3.0  ???

Edit: WOW I am stupid! It works! Thanks a lot!  ;D
Title: Re: Ad Management mod
Post by: vbgamer45 on March 10, 2014, 09:33:09 PM
ad_mod_v3.0_SMF_v2-0a.zip  is the newest one for SMF 2.0.x
Title: Re: Ad Management mod
Post by: 2greedy on March 17, 2014, 07:22:31 AM
Is this mod still being updated? cause it doesn't work properly i can't get (Display ads in the welcome user area)
Title: Re: Ad Management mod
Post by: vbgamer45 on March 17, 2014, 08:48:00 AM
Did it install to the welcome area? Double check the file edits.
Title: Re: Ad Management mod
Post by: 2greedy on March 17, 2014, 03:51:32 PM
which parts is the welcome area? which edit's?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 17, 2014, 05:10:49 PM
You can find edits made to theme by uploading the package to http://www.smfhacks.com/smf-package-parser.html
Then check that all the edits are made to your theme.
Title: Re: Ad Management mod
Post by: 2greedy on March 17, 2014, 05:35:30 PM
ok clicked the parser on the mod page and checked all edits and everything seems to be right ?
Title: Re: Ad Management mod
Post by: Illori on March 17, 2014, 05:38:10 PM
that is because for years the welcome ad has been missing in 2.0 version. vbgamer has never added it back after it has been reported.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 17, 2014, 05:53:45 PM
Ok will look into it.
Title: Re: Ad Management mod
Post by: 2greedy on March 17, 2014, 05:59:03 PM
Quote from: vbgamer45 on March 17, 2014, 05:53:45 PM
Ok will look into it.

please do mate as we need that area, it is a good area to place ads
Title: Re: Ad Management mod
Post by: SMFHacks.com Team on March 17, 2014, 09:34:57 PM
New update for SMF 2.0.x

Version 3.2
!Fixed bug in welcome ads for SMF 2.0. Requires reinstall or code edit to index.template.php to fix.
Title: Re: Ad Management mod
Post by: 2greedy on March 18, 2014, 05:44:47 PM
Hi guy's the update has fixed the welcome area ad's on 2.0.7, how do we add ad's in the area shown?

Title: Re: Ad Management mod
Post by: rozlund on March 23, 2014, 02:49:48 PM
I am a very green newbie.  Am I understanding this right.  I have to go into my file manager on my bluehost cpanel and change all the coding to include the little snippets of script in the download.  Is that how to add this mod?  It sure is a lot of work.  Is that the only way to do this?

Thanks.
Roz
Title: Re: Ad Management mod
Post by: vbgamer45 on March 23, 2014, 03:39:32 PM
You can use SMF's package manager to install the mod automatically to all your files
Title: Re: Ad Management mod
Post by: k0der on March 26, 2014, 11:49:19 AM
does this mod don't supported  2.7 compatible.? 
it s show up error not support with mine version and corupt  file...
i;am using 2.7 version ...
Title: Re: Ad Management mod
Post by: vbgamer45 on March 26, 2014, 12:50:00 PM
It works with 2.0.7 just make sure you are using the SMF 2.0.x version.
Title: Re: Ad Management mod
Post by: desai_amogh on March 29, 2014, 07:20:01 AM
Im getting so many errors in core theme and one error in default curve thme.  can i still install this somehow ???
Title: Re: Ad Management mod
Post by: vbgamer45 on March 29, 2014, 09:24:49 AM
Are you using the core theme? If not ignore them.

For curve you can install and if you want ads on that page just modify that one file manually.
Title: Re: Ad Management mod
Post by: desai_amogh on March 29, 2014, 01:09:10 PM
quick question.. the error said

find this


echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}


and add after

// Begin Ad  management Location - Welcome Area/User Information Box

if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}

// End Ad  management Location - Welcome Area/User Information Box


I couldnt exacly find the 1st code in index.template.php.  What I found was this:

echo '
               <input type="hidden" name="hash_passwrd" value="" />
               <div class="error" style="visibility:hidden" id="quick_login">', $txt['capslock_warning'], '</div>
            </form>';
   }



And I added below code to FOLLOW the above code:


// Begin Ad  management Location - Welcome Area/User Information Box

   if (function_exists("show_welcomeAds"))
   {
      $ads = show_welcomeAds();
      if(!empty($ads))
      {
         echo '<td class="windowbg2">';
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
         echo '</td>';
      }
      unset($ads);
   }

// End Ad  management Location - Welcome Area/User Information Box



Is this correct ??  Sorry i am not a programmer..

Title: Re: Ad Management mod
Post by: vbgamer45 on March 29, 2014, 01:20:25 PM
Yes that is correct.
Title: Re: Ad Management mod
Post by: desai_amogh on March 29, 2014, 02:13:06 PM
Another, last question I have. If you check my site, www.electronicsforum.in there are too many links in the footer.  I want as many links I can remove from there (or just hide them) which are not needed as per the copyright rules (both SMF and mods). which ones can I take off?

Also if I strictly want to follow the SMF copyright rules, can I just move the links to right or left of the footer ??? 
Title: Re: Ad Management mod
Post by: vbgamer45 on March 29, 2014, 03:17:56 PM
Copyright removal options: http://www.smfhacks.com/copyright_removal.php
Title: Re: Ad Management mod
Post by: desai_amogh on March 29, 2014, 03:27:21 PM
no no.. i got me wrong.. I am not concerned about the mod links.. I dont mind the links there..

Im botherd about too many unwanted links there which do not fall under the copyright of either mod or SMF ..  which those links can i get rid of ?

lso can i shift all the footer text/links to the left or the right side ?? (without hurting the copyright ??)
Title: Re: Ad Management mod
Post by: rexall9000 on April 10, 2014, 10:52:42 PM
What a huge thread! 

Would someone be nice enough to provide a brief overview of the difference between this and the pro/paid mod?

Thanks v. much!
Title: Re: Ad Management mod
Post by: vbgamer45 on April 10, 2014, 11:34:23 PM
Paid mod allows you to sell advertising spots anybody can buy adspace on your forum for areas that allow.
And has some extra ad locations and allows easy adding of additional ad locations.
Title: Re: Ad Management mod
Post by: DoiCromoY on April 29, 2014, 01:57:53 PM
I had 1.15 forum with Ad Management 2.3.1 and was working great

Today I've updated forum to 2.0.7 and installed latest Ad Managent 3.2 but after I install it, forum is not working anymore (webpage cannot be displayed error)
Using default theme - curve
I checked and rechecked all the "parse" things 4 times. Couldn't find where I do it wrong and going crazy :D

Here are the files:
Title: Re: Ad Management mod
Post by: Kindred on April 29, 2014, 02:57:12 PM
instead of including all of those files, why don't you just tell us the ACTUAL error that is displayed and/or give the URL?
Title: Re: Ad Management mod
Post by: DoiCromoY on April 29, 2014, 03:51:11 PM
The website cannot display the page

  HTTP 500
   
Most likely causes:
•The website is under maintenance.
•The website has a programming error.
   
What you can try:

  Refresh the page. 
  Go back to the previous page. 

More information  More information   

This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.


If I replace index.php with the original one, forum is working and give this error log:



http://www.invatapoker.ro/forum/index.php?action=admin;area=logs;sa=errorlog;desc

8: Undefined index: ads_txt_copyrightremoval

File: /var/www/vhosts/invatapoker.ro/httpdocs/forum/Sources/Admin.php

URL: http://www.invatapoker.ro/forum

Thanks
Title: Re: Ad Management mod
Post by: Kindred on April 29, 2014, 05:08:41 PM
A 500 error is due to server side issues. I am betting it probably has to do with file permissions. Your host: probably does not allow 777 Chmod...
Title: Re: Ad Management mod
Post by: luuuciano on April 29, 2014, 05:32:18 PM
Check your errorlog at cpanel, or a file phperrors, or a name like that, on FTP
It will inform you whats going on
Title: Re: Ad Management mod
Post by: DoiCromoY on April 29, 2014, 07:48:15 PM
This is the error I get in log


[Tue Apr 29 23:32:27 2014] [error] [client 137.x.x.x] PHP Fatal error:  Cannot redeclare template_main() (previously declared in /var/www/vhosts/invatapoker.ro/httpdocs/forum/Sources/Load.php(2151) : eval()'d code:19) in /var/www/vhosts/invatapoker.ro/httpdocs/forum/Sources/Load.php(2151) : eval()'d code on line 273, referer: http://www.invatapoker.ro/forum/
Title: Re: Ad Management mod
Post by: Kindred on April 30, 2014, 12:20:52 AM
Which suggests that you have installed a mod twice...

Turn off eval in order to find out where the real error is occurring.
Title: Re: Ad Management mod
Post by: DoiCromoY on April 30, 2014, 03:48:19 AM
Googled how to do this but in the end I did it.

So now the error looks like this:

PHP Fatal error:  Cannot redeclare template_main() (previously declared in /var/www/vhosts/invatapoker.ro/httpdocs/forum/Themes/default/Ads.template.php:19) in /var/www/vhosts/invatapoker.ro/httpdocs/forum/Themes/default/BoardIndex.template.php on line 273

Title: Re: Ad Management mod
Post by: Kindred on April 30, 2014, 07:31:46 AM
and that would seem to clearly indicate your problem ---   The Ad mod is conflicting with the basic declaration in Boardindex.template.php -- Which seems odd... template_main should only be used in a single template file - I don't think it should be declared/used int he ad template
Title: Re: Ad Management mod
Post by: DoiCromoY on April 30, 2014, 09:15:32 AM
Thank you !!!!

Your last post made me realize that I FORGOT to replace the old files. As I said I had SMF 1.x and an older Ad mode. After update I forgot to replace the files and I had the older ads.templates.php and ads.php

Replaced with the correct version and now it';s working.
Fixed and thanks
Title: Re: Ad Management mod
Post by: vbgamer45 on April 30, 2014, 04:57:30 PM
Glad you have it working.
Title: Re: Ad Management mod
Post by: SimianSteam on May 19, 2014, 07:26:17 PM
I'm having a lot of problems trying to get this mod installed. Probably conflicts with other mods I've already got installed, but here it goes:

default/index.template.php:

Find
echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}


Add After
// Begin Ad  management Location - Welcome Area/User Information Box

if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}

// End Ad  management Location - Welcome Area/User Information Box



I don't have the first code in any form in my php file.

core/boardindex.template.php

Find
<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';


Add after
echo '<tbody><tr><td colspan="4">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>';


I don't have the first code in any form in my php file.

core/message.index.php

Find
echo '
</tbody>
</table>
</div>
</div>';


Replace with
echo '
</tbody>
</table>
</div>
</div>';
//Display Ads on the Message index
if (function_exists("show_underchildren"))
{
$ads = show_underchildren();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


I've got this instead of the first code:
echo '
</tbody>
</table>
</div>
<a id="bot"></a>';


(customtheme)/index.template.php

Find
echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}


Add after
// Begin Ad  management Location - Welcome Area/User Information Box

if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}

// End Ad  management Location - Welcome Area/User Information Box



I don't have anything resembling the first code in my php file.

I've attached the relevant php files. Please help!
Title: Re: Ad Management mod
Post by: margarett on May 19, 2014, 07:36:32 PM
Forget Core. It's really too different.

What happened to your default's index.template.php? Where's all the header? :)

You can install even with errors. You will loose Ads in the "welcome user" area but you don't have it already, so who cares? :P
Title: Re: Ad Management mod
Post by: SimianSteam on May 19, 2014, 08:05:49 PM
Quote from: margarett on May 19, 2014, 07:36:32 PM
Forget Core. It's really too different.

What happened to your default's index.template.php? Where's all the header? :)

You can install even with errors. You will loose Ads in the "welcome user" area but you don't have it already, so who cares? :P

I hacked it up to build my custom theme and probably did it wrong. I'm encountering problems already. I should've just asked someone how to make everything above the menu bar not show instead of cutting it out. Newb mistake.

Thank you!
Title: Re: Ad Management mod
Post by: webewitch on May 28, 2014, 01:18:13 PM
I cannot get the boards part to work correctly.

If I put 0 then it works on the index page.
If I leave blank it works on all pages.
So far, so good.

But if I put 0,44 or just 44 it won't display on board 44.
Am I doing something wrong?

Title: Re: Ad Management mod
Post by: SimianSteam on June 01, 2014, 10:40:03 AM
I could use some help centering my ads, please. Here's what I've currently got:

<script type="text/javascript">var p="http",d="static";if(document.location.protocol=="https:"){p+="s";d="engine";}var z=document.createElement("script");z.type="text/javascript";z.async=true;z.src=p+"://"+d+".xxxxxxxx.com/ados.js";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(z,s);</script>
<script type="text/javascript">
var ados = ados || {};
ados.run = ados.run || [];
ados.run.push(function() {
ados_add_placement(3786, 60610, "xxxxxxx", 4).setZone(67244);
ados_setDomain('engine.xxxxxxxx.com');
ados_load();
});</script>
<center>
<div id="xxxxxxx">
</center>


Unfortunately this seems to be causing issues with some IE users. I'm sure the ,<center> tags are not the proper way to do it, but it worked. At least I thought it did.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 01, 2014, 11:46:43 AM
missing open center tag see it there normally you would put the center tag around the entire javascript as well.
Title: Re: Ad Management mod
Post by: luuuciano on June 01, 2014, 12:15:02 PM
Quote from: SimianSteam on June 01, 2014, 10:40:03 AM
Unfortunately this seems to be causing issues with some IE users. I'm sure the ,<center> tags are not the proper way to do it, but it worked. At least I thought it did.

Try <div id="xxxxxxx" style="text-align:center;"> etc
Title: Re: Ad Management mod
Post by: SimianSteam on June 01, 2014, 12:39:36 PM
@vbgamer: Open Center Tag?

@luuuciano: Nope. Using that causes the entire forum to disappear. You only see the ad.
Title: Re: Ad Management mod
Post by: Arantor on June 01, 2014, 12:43:07 PM
You will need to put a </div> after it too, hence the 'etc.' part ;)
Title: Re: Ad Management mod
Post by: SimianSteam on June 01, 2014, 12:44:40 PM
Quote from: ZombieCoder on June 01, 2014, 12:43:07 PM
You will need to put a </div> after it too, hence the 'etc.' part ;)

So <div id="xxxxxxx" style="text-align:center;"> </div>?
Title: Re: Ad Management mod
Post by: Arantor on June 01, 2014, 12:45:47 PM
With the ad in the middle of that, yes.
Title: Re: Ad Management mod
Post by: SimianSteam on June 01, 2014, 12:49:51 PM
Well, it's displaying correctly on Chrome, FF, and IE10. Gonna have to wait until the member that was having issues responds before I know if it took care of the IE8 problems.

Thank you all very much!
Title: Re: Ad Management mod
Post by: Kindred on June 01, 2014, 01:55:18 PM
tell them to get rid of IE8 and use a browser that actually works.

The current generation should be using IE10, FF, Safari or Chrome
Some might still be on IE9... but if anyone is still on IE8, they should be looking at upgrading ASAP.
Title: Re: Ad Management mod
Post by: webewitch on June 06, 2014, 06:07:11 AM
QuoteAfter your ad code has been placed you come to a box that says "Which boards should this ad display in ". In this box you insert the number of the board you would like the ads to be displayed in. For example, if you have a board on your forum named "Rules" and it happens to be the first board on your forum, then clicking on it would give you a url of this:
http://www.yourwebsite.com/index.php?board=1.0
The board number is at the end of the url. So in that box should be put simply the number "1"  (no quotes). If you want to display this ad in multiple boards, you can put 1,2 (where 2 is the number of the second board) to display it in both boards 1 and 2. If you want to display your ad code on every board, simply leave this input box empty.

I can't get this to work. Is there a file I can edit manually that would make it work?
Title: Re: Ad Management mod
Post by: margarett on June 06, 2014, 07:34:21 AM
If the MOD did install properly (no errors) *AND* you chose to install in your custom theme (if you're using one) there is no reason why it shouldn't work.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 06, 2014, 12:19:33 PM
Upload the mod to http://www.smfhacks.com/smf-package-parser.html to get the manual edits.
Title: Re: Ad Management mod
Post by: Rk2910 on June 22, 2014, 10:17:49 AM
Hi All,
I just upgraded to 2.0.8, am running overviewlight_20a theme and a couple mods that are significant - Boards in Cats (columns) and Recent Forum Topics Boardindex which adds recent posts to top of board. (Actually I am running a lot of mods but the ones above affect the layout)

I want to start selling ad space on the site and want to know if this mod will work with the config I have? 
It fails as it tries to find and replace the following:
(See attachments)
I am not a programmer and have searched through several themes (default, curve and Overviewlight) in the boardindex.template.php file and can't find what the mod is looking for.
Will the paid mod work?
Title: Re: Ad Management mod
Post by: Kindred on June 22, 2014, 10:23:47 AM
see the wiki/faq artilce regarding errors during mod installation.
Title: Re: Ad Management mod
Post by: redsosis on July 12, 2014, 02:31:52 PM
Need help!

I have SMF 2.0.8 installed, and have Ad Management mod 3.2 installed from the Package Manager.
My current theme is SMF Default Theme - Curve.
Then I add an ads, with only use option "Display ads on every page on the top of the page".
After save and refresh to Home, the ads shown on the top of all pages.
But its only shown to Moderator & Guest only, did not shown to Members.
I need to know how to fix it?
Title: Re: Ad Management mod
Post by: Kindred on July 12, 2014, 03:16:13 PM
permissions
Title: Re: Ad Management mod
Post by: redsosis on July 12, 2014, 11:58:10 PM
Quote from: Kindred on July 12, 2014, 03:16:13 PM
permissions

Okay, it fixed.
Thank you very much.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 13, 2014, 12:25:53 AM
Glad you have it working.
Title: Re: Ad Management mod
Post by: babalola olasehinde on July 28, 2014, 02:53:06 PM
While trying to install this i got this error


Execute Modification    ./Themes/default/index.template.php    Test failed

                              1.    Add After    ./Themes/default/index.template.php    Test failed

the other time i tried to ignore the test failed warning and went ahead to install it that way and my forum crashed i had to restore from backup again


need solution
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on July 28, 2014, 02:56:52 PM
solution= you will have to make the edit manually in the source file
Title: Re: Ad Management mod
Post by: babalola olasehinde on July 28, 2014, 03:01:38 PM
Quote from: Bob Perry on July 28, 2014, 02:56:52 PM
solution= you will have to make the edit manually in the source file

meaning i should install it first or what pls
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on July 28, 2014, 03:05:55 PM
Quote from: babalola olasehinde on July 28, 2014, 03:01:38 PM
Quote from: Bob Perry on July 28, 2014, 02:56:52 PM
solution= you will have to make the edit manually in the source file

meaning i should install it first or what pls

yep, do you know how to look and see what/where the edit is suppose to be? its simple if you are familiar editing source, there's a little icon just left of the pre-install entries, click it

Title: Re: Ad Management mod
Post by: Rk2910 on July 28, 2014, 07:07:24 PM
It all seems easy but the installer could not find what it needed so it could insert/replace and when I went to where the code is supposed to be to manually do it, I couldn't find it either.
So then what do you do?
Title: Re: Ad Management mod
Post by: vbgamer45 on July 28, 2014, 07:15:51 PM
Look at orginal SMF files find the code then try to find simliar code in your SMF version.
Title: Re: Ad Management mod
Post by: Rk2910 on July 28, 2014, 07:20:27 PM
Worth a try, thanks  8)
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on July 28, 2014, 07:47:36 PM
Quote from: Rk2910 on July 28, 2014, 07:07:24 PM
It all seems easy but the installer could not find what it needed so it could insert/replace and when I went to where the code is supposed to be to manually do it, I couldn't find it either.
So then what do you do?

This can happen if you have some other modules that modify that file installed, the authors advice should be followed, or you can post your index.template.php file here for us to fix for you possibly, do you have other themes installed as well? those will have to be modified as well...
Title: Re: Ad Management mod
Post by: babalola olasehinde on July 29, 2014, 12:38:18 AM
i have done the edited for manual installation up till ./Sources/ManagePermissions.php but i am confuse with this final step

Code
install.php
This file should be able to execute standalone.
File Operations
Move the included file "Ads.php" to "./Sources".
Move the included file "LoadAds.php" to "./Sources".
Move the included file "Ads.template.php" to "./Themes/default".
Move the included file "Ads.english.php" to "./Themes/default/languages".
Move the included file "Ads.english-utf8.php" to "./Themes/default/languages".

Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on July 29, 2014, 12:47:31 AM
Quote from: babalola olasehinde on July 29, 2014, 12:38:18 AM
i have done the edited for manual installation up till ./Sources/ManagePermissions.php but i am confuse with this final step

Code
install.php
This file should be able to execute standalone.
File Operations
Move the included file "Ads.php" to "./Sources".
Move the included file "LoadAds.php" to "./Sources".
Move the included file "Ads.template.php" to "./Themes/default".
Move the included file "Ads.english.php" to "./Themes/default/languages".
Move the included file "Ads.english-utf8.php" to "./Themes/default/languages".



you only need to manually edit the one(s) that indicate an error in the PRE-install screen or after you proceed with normal package manager install, the UN-install listing... but be warned, if you do this several times incorrectly, you run the risk of duplicating code which compounds the amount of cursing that takes place between you and your machine, lol

Title: Re: Ad Management mod
Post by: babalola olasehinde on July 29, 2014, 01:11:38 AM
Quote from: Bob Perry on July 29, 2014, 12:47:31 AM
Quote from: babalola olasehinde on July 29, 2014, 12:38:18 AM
i have done the edited for manual installation up till ./Sources/ManagePermissions.php but i am confuse with this final step

Code
install.php
This file should be able to execute standalone.
File Operations
Move the included file "Ads.php" to "./Sources".
Move the included file "LoadAds.php" to "./Sources".
Move the included file "Ads.template.php" to "./Themes/default".
Move the included file "Ads.english.php" to "./Themes/default/languages".
Move the included file "Ads.english-utf8.php" to "./Themes/default/languages".



you only need to manually edit the one(s) that indicate an error in the PRE-install screen or after you proceed with normal package manager install, the UN-install listing... but be warned, if you do this several times incorrectly, you run the risk of duplicating code which compounds the amount of cursing that takes place between you and your machine, lol


i have absolutely everything possible to make this mod work but still showing error

i have done manual editing still now working

the other time i tried to install the mod , its shows some instation failed , i ingnored and install it and my forum crash , i had to restore from backup

now i followed all instruction yet its still showing red again

i guess i have to give up on this mod and seek alternative

Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on July 29, 2014, 01:21:35 AM
Quote from: babalola olasehinde on July 29, 2014, 01:11:38 AM

i have absolutely everything possible to make this mod work but still showing error

i have done manual editing still now working

the other time i tried to install the mod , its shows some instation failed , i ingnored and install it and my forum crash , i had to restore from backup

now i followed all instruction yet its still showing red again

i guess i have to give up on this mod and seek alternative



I did not say doing this would make those error indicators go away, the module functions perfectly well on my SMF 2.0.8 system, don't give up so easily... we are here to help, did you proceed with a package manager install even tho it indicates problems?

Title: Re: Ad Management mod
Post by: babalola olasehinde on July 29, 2014, 01:26:33 AM
Quote from: Bob Perry on July 29, 2014, 01:21:35 AM


I did not say doing this would make those error indicators go away, the module functions perfectly well on my SMF 2.0.8 system, don't give up so easily... we are here to help, did you proceed with a package manager install even tho it indicates problems?
[/quote]

immediately i saw the error using the package manager i did not proceed with installation

even my footer is now showing

SMF 2.0.8 | SMF © 2014, Simple Machines
SMFAds for Free Forums

yet i have not install this mod
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on July 29, 2014, 01:38:15 AM
if you proceed with the install, then proceed that immediately with the edits done CORRECTLY, your users may not even notice the change and you will be able to proceed with setting up the very straight forward options available in this very useful module... if you are not comfortable making syntax free edits to that file just post the source here and it'll only take a couple minutes to fix by someone here, not inclined to do so myself currently, my plate is full at present
Title: Re: Ad Management mod
Post by: babalola olasehinde on July 29, 2014, 01:44:56 AM
Quote from: Bob Perry on July 29, 2014, 01:38:15 AM
if you proceed with the install, then proceed that immediately with the edits done CORRECTLY, your users may not even notice the change and you will be able to proceed with setting up the very straight forward options available in this very useful module... if you are not comfortable making syntax free edits to that file just post the source here and it'll only take a couple minutes to fix by someone here, not inclined to do so myself currently, my plate is full at present

should i attach the following files here ?


./index.php
./Sources/Admin.php
./Sources/QueryString.php
./Themes/default/BoardIndex.template.php
./Themes/default/Display.template.php
./Themes/default/MessageIndex.template.php
./Themes/default/index.template.php
./Sources/ManagePermissions.php
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on July 29, 2014, 01:56:19 AM
Quote from: babalola olasehinde on July 29, 2014, 01:44:56 AM
Quote from: Bob Perry on July 29, 2014, 01:38:15 AM
if you proceed with the install, then proceed that immediately with the edits done CORRECTLY, your users may not even notice the change and you will be able to proceed with setting up the very straight forward options available in this very useful module... if you are not comfortable making syntax free edits to that file just post the source here and it'll only take a couple minutes to fix by someone here, not inclined to do so myself currently, my plate is full at present

should i attach the following files here ?


./index.php
./Sources/Admin.php
./Sources/QueryString.php
./Themes/default/BoardIndex.template.php
./Themes/default/Display.template.php
./Themes/default/MessageIndex.template.php
./Themes/default/index.template.php
./Sources/ManagePermissions.php

according to your first post you are only having trouble with index.template.php in the default theme, so that's the only one needed, when someone fixes it for you be sure and thank them properly and publicly...
Title: Re: Ad Management mod
Post by: babalola olasehinde on July 29, 2014, 02:00:38 AM
Quote from: Bob Perry on July 29, 2014, 01:56:19 AM


according to your first post you are only having trouble with index.template.php in the default theme, so that's the only one needed, when someone fixes it for you be sure and thank them properly and publicly...
[/quote]

that is what it suppose to be but after my first post , i was told to do it manually and i went to http://custom.simplemachines.org/mods/index.php?action=parse and follow all those instruction instead of just using the  index.template.php
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on July 29, 2014, 02:07:49 AM
Quote from: babalola olasehinde on July 29, 2014, 02:00:38 AM
Quote from: Bob Perry on July 29, 2014, 01:56:19 AM


according to your first post you are only having trouble with index.template.php in the default theme, so that's the only one needed, when someone fixes it for you be sure and thank them properly and publicly...

that is what it suppose to be but after my first post , i was told to do it manually and i went to http://custom.simplemachines.org/mods/index.php?action=parse and follow all those instruction instead of just using the  index.template.php
[/quote]

Who told you to do the whole install process manually? not I

Title: Re: Ad Management mod
Post by: Kindred on July 29, 2014, 05:55:54 AM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Ad Management mod
Post by: nuberry on July 29, 2014, 05:57:18 AM
Hi

I always try the demo or free version to see if a product will work , the free version does not work on my forum running a novo theme with smf version 2.8.
I realize that i cant expect support for a free mod and do not expect it , however I really  like what i see in your product review and consider this mod as an essential part for my forum.
So my question is - if i purchase this theme , how would i get this to work with my forum if at all possible ? Please note i am not a css expert or programmer.

My website is www.anglersdigest.co.za with links to the forum or you can go directly to www.anglersdigest.co.za/forum ( please note the site and forum is a work in progress )

Many thanks
I just hope that this mod will work with my forum

Andrew


Title: Re: Ad Management mod
Post by: Kindred on July 29, 2014, 06:00:26 AM
Well, you sort of have to provide some actual information...


"doesn't work" is not an actual error nor is it a useful report.

What exactly do you mean by " does not work on my forum running a novo theme"?
WHAT does not work?
Is there an error message? (if so, what?)
Title: Re: Ad Management mod
Post by: nuberry on July 29, 2014, 06:03:17 AM
Wow that was quick

thanks for your reply ..sorry about that
I will reinstall and copy the error that it shows me and post it here within a few minutes
thank you

Andrew
Title: Re: Ad Management mod
Post by: nuberry on July 29, 2014, 06:19:29 AM
See below


Execute Modification    ./Themes/Novo_Blue/BoardIndex.template.php    Test failed

2.    Add After    ./Themes/Novo_Blue/BoardIndex.template.php    Test failed

the following 2 were unsuccessful on the novo theme and hence my question.
If im being an idiot , i apologies , but im prettty new to forums , so please be merciful in your reply

thanks


Title: Re: Ad Management mod
Post by: babalola olasehinde on July 29, 2014, 07:32:16 AM
i have decided to use smf_2-0-8_upgrade.tar.gz and all mod was uninstall .i.e i now have a fresh file

i just install this same mod now , installation pls see screenshot below of the error
Title: Re: Ad Management mod
Post by: nuberry on July 29, 2014, 08:03:14 AM
Nothing in life is free
So If you can and  want to charge to make the correct changes i am prepared to pay but would like to know what price i am looking at
thanks
Andrew
Title: Re: Ad Management mod
Post by: Kindred on July 29, 2014, 08:43:09 AM
nuberry,

Quote from: Kindred on July 29, 2014, 05:55:54 AM
http://wiki.simplemachines.org/smf/Error_in_mod_installation

the test failed just means that your chosen theme does not use the same coding as the default theme...   You will have to find the correct spots in your custom theme's boardindex.template.php file and manually apply the mod changes.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 29, 2014, 09:14:27 AM
Quote from: nuberry on July 29, 2014, 08:03:14 AM
Nothing in life is free
So If you can and  want to charge to make the correct changes i am prepared to pay but would like to know what price i am looking at
thanks
Andrew

I can do a theme install for $15 paypal.
Title: Re: Ad Management mod
Post by: nuberry on July 29, 2014, 11:07:47 AM
VB Gamer - is this your theme ?
If so do you want me just to add the 15 dollars to the mod amount ? ( want to purchase the paid mod )

Let me know if so, then i will send you the payment for the ad mod plus installation of this mod as mentioned with the necessary changes you need to make .

Thanks
Andrew

Title: Re: Ad Management mod
Post by: vbgamer45 on July 29, 2014, 11:14:22 AM
Probably not my theme. I don't have many but I can generally add ad management to any theme. If you purchase ad seller pro I will do the ad seller install free on any one theme.
Title: Re: Ad Management mod
Post by: nuberry on July 29, 2014, 11:25:29 AM
vb how do i get your paypal account , i will gladly pay you 15 dollars ...to do the installation of this mod. 3.2
and if you could let me know what you need from me ie files ?

my email: [email protected]

as soon as i get your details for paypal , i will send you the payment
Title: Re: Ad Management mod
Post by: nuberry on July 29, 2014, 11:28:15 AM
Vb -- if you recommend the ad seller pro above this mod , i will gladly  purchase that too ..
Title: Re: Ad Management mod
Post by: vbgamer45 on July 29, 2014, 11:40:33 AM
Well AdSeller Pro I keep on updating as it is paid. Includes more ad locations to gain income, plus users can buy adspace on your forum so you can actually make money from ad packages/subscriptions, also option to revenue sharing and better stat tracking.

Sent pm with my paypal email
Title: Re: Ad Management mod
Post by: nuberry on July 29, 2014, 11:52:38 AM
Ad seller pro it is ..will confirm payment later tonight or early morning at the latest ( 6 pm here in South Africa )

thanks mate
Appreciated

Andrew
Ps. received your mail


Title: Re: Ad Management mod
Post by: vbgamer45 on July 29, 2014, 12:43:39 PM
Cool. Thanks let me know if you need anything.
Title: Re: Ad Management mod
Post by: babalola olasehinde on July 29, 2014, 04:11:59 PM
Quote from: babalola olasehinde on July 29, 2014, 07:32:16 AM
i have decided to use smf_2-0-8_upgrade.tar.gz and all mod was uninstall .i.e i now have a fresh file

i just install this same mod now , installation pls see screenshot below of the error

well thanks alot i have being able to solve this problem myself by manual edit of /index.template.php and  BoardIndex.template.php after which i then install the mod
Title: Re: Ad Management mod
Post by: vbgamer45 on July 29, 2014, 04:25:46 PM
Glad you were able to get it working.
Title: Re: Ad Management mod
Post by: Rk2910 on July 29, 2014, 08:41:21 PM
Quote from: Bob Perry on July 28, 2014, 07:47:36 PM
Quote from: Rk2910 on July 28, 2014, 07:07:24 PM
It all seems easy but the installer could not find what it needed so it could insert/replace and when I went to where the code is supposed to be to manually do it, I couldn't find it either.
So then what do you do?

This can happen if you have some other modules that modify that file installed, the authors advice should be followed, or you can post your index.template.php file here for us to fix for you possibly, do you have other themes installed as well? those will have to be modified as well...
I really appreciate whoever takes a look at this for me - thanks a lot.
I was able to fix (I think) the index.template.php - I've attached the current (before I modded) and the one I modded for your review.
Here is the (Find) code:
echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}

Here is the (Add After) code:
// Begin Ad  management Location - Welcome Area/User Information Box

if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}

// End Ad  management Location - Welcome Area/User Information Box


As for the BoardIndex.template.php
Here's the (Find) code:
<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';


And the (Add After) code:
echo '<tbody><tr><td colspan="4">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>';

I hope I got the index.template.php one right.  The other I have no clue.
BTW, I don't have other themes that this will affect.
Thanks again in advance  8)
Title: Re: Ad Management mod
Post by: Rickardo on August 22, 2014, 05:30:19 AM
Hey,

I recently installed this mod but had to uninstall due to a conflict with another mod. I removed the other mod and reinstalled Ad Management but now every time I add an ad I get a duplicate. Both in the edit ad area and two banners for the particular ad are displayed. If I remove one they are both removed!?

I've checked everything I can think of but can't find a resolution to this problem.

Can anyone help?

Thanks!
Title: Re: Ad Management mod
Post by: Kindred on August 22, 2014, 06:28:12 AM
when you uninstalled, there were appraently errors and not everything was removed.
Sor, when you reinstalled, things got added twice.

The only resolution is to go through the mod install instructions manually and find, then remove the duplicated code...
Title: Re: Ad Management mod
Post by: Rickardo on August 22, 2014, 07:08:32 AM
Oh joy!  :-[

I was afraid that would be the answer....

Thanks for the help!

Title: Re: Ad Management mod
Post by: Nodaz on August 31, 2014, 08:05:21 PM
have an issue with this mod on 1.1.9 ( installed the 3.1 package as its test ran successfully so i installed) when i refresh i get a blank screen basically, it shows navigation i can back up and go forward into the pages that are cached but if i click on any navigation it goes to a white/blank page.
What is the easiest way to resolve or remove this mod under these conditions?

Edit, i posted originally in a bit of a haste.
here to add, i haven't made a recent back up of either the database or the public folder.
Now i have some questions...
When a mod is applied, is the database affected?
I do have a backup of the Public folder from prior to the mod,
Can i still FTP in and replace the Public folder and bring the forum back?

Title: Re: Ad Management mod
Post by: vbgamer45 on August 31, 2014, 10:42:45 PM
Go to the mod's information page. And reverse the install instructions.
That can also be useful for troubleshooting.
Title: Re: Ad Management mod
Post by: Nodaz on August 31, 2014, 11:13:32 PM
i went to the install page and don't really see instructions other than a list of changes to certain .php files.
Are what you saying that i meed to go in and manually edit each of those?

EDIT:  found this post  http://www.simplemachines.org/community/index.php?topic=400356.0
Followed the instructions there on restoring the files form the SMF packages/backup folder and SUCESS !
Title: Re: Ad Management mod
Post by: vbgamer45 on August 31, 2014, 11:46:09 PM
Glad that helped. I would also check your forum error log to see there were any related errors which might have given a clue on what went wrong.
Title: Re: Ad Management mod
Post by: Nodaz on September 01, 2014, 03:28:05 PM
thanks, i checked the error log, there was one that said:

Apply Filter: Only show the errors with the same message
Could not upload package, please check directory permissions!

and it still shows tha ad mod as being installed in the package listing.
Everything seems to be working.  Doing an entire back up of database through the SMF interface.
Going to back up database via cpanel as well.
Then im going to convert this to the latest version of SMF and star new so to speak.
Title: Re: Ad Management mod
Post by: vbgamer45 on September 02, 2014, 06:12:30 PM
Cool. Let me know if you have any issues.
Title: Re: Ad Management mod
Post by: BB13 on September 09, 2014, 12:41:41 PM
Is it possible to make "Ad Managment" compatible with "Anti-Spam Links"
Title: Re: Ad Management mod
Post by: vbgamer45 on September 09, 2014, 12:56:06 PM
How is it not compatible?
Title: Re: Ad Management mod
Post by: swaggaderby on September 10, 2014, 07:55:43 AM
please i installed the mod but ads are not showing after last post i dont know if i need to edit something or so
Title: Re: Ad Management mod
Post by: vbgamer45 on September 10, 2014, 10:41:32 AM
Make sure the edits are applied to your theme if you are using a custom theme.
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on September 10, 2014, 10:49:04 AM
Quote from: swaggaderby on September 10, 2014, 07:55:43 AM
please i installed the mod but ads are not showing after last post i dont know if i need to edit something or so

You also must ensure that the script you insert into each advertisement while editing, is exactly right or they will not display, syntax errors are a ****** to diagnose if you don't know what you are looking for, must be sure to copy paste everything correctly.
Title: Re: Ad Management mod
Post by: swaggaderby on September 11, 2014, 07:10:19 PM
Quote from: vbgamer45 on September 10, 2014, 10:41:32 AM
Make sure the edits are applied to your theme if you are using a custom theme.
its not a custom theme
Title: Re: Ad Management mod
Post by: vbgamer45 on September 12, 2014, 12:41:41 AM
Make sure the edits are applied to your normal theme too then.
Title: Re: Ad Management mod
Post by: swaggaderby on September 12, 2014, 02:15:54 PM
Quote from: vbgamer45 on September 12, 2014, 12:41:41 AM
Make sure the edits are applied to your normal theme too then.
on the normal smf theme i need to edit too?if yes please where do i make the edits
Title: Re: Ad Management mod
Post by: vbgamer45 on September 12, 2014, 02:23:20 PM
Yes you can follow the package parser to make sure all the edits are in place.
Title: Re: Ad Management mod
Post by: swaggaderby on September 12, 2014, 04:40:40 PM
Quote from: vbgamer45 on September 12, 2014, 02:23:20 PM
Yes you can follow the package parser to make sure all the edits are in place.
aiit
Title: Re: Ad Management mod
Post by: vbgamer45 on September 13, 2014, 01:12:49 AM
Do you understand? If not have link on my site at http://www.smfhacks.com/smf-package-parser.html
Title: Re: Ad Management mod
Post by: Chalky on September 13, 2014, 07:33:20 AM
Quick ques:  If I have, say, Google Adsense and set the permissions so that ads are hidden from logged-in members, can the Google tracker still track my members?  In other words does denying ad permission also block the ad tracker from spying or can it spy just the same?
Title: Re: Ad Management mod
Post by: Arantor on September 13, 2014, 07:46:17 AM
If the ads are hidden by this mod, that means they're not shown to users, which means Google shouldn't be being called in the first place (so no tracking)
Title: Re: Ad Management mod
Post by: Chalky on September 13, 2014, 07:47:24 AM
(http://chalkcat.com/Smileys/fantasticsmileys/Thanx.gif)
Title: Re: Ad Management mod
Post by: frank30 on September 24, 2014, 05:48:30 AM
Hi everybody,

i have a problem with theme core : Test Failure  :(

I try to put the with hand, but it don't work (because i don't understand where upload ads file)
I put code in forum's file.

i will try again

In the file BoardIndex.template.php of Core theme, I don't see
echo '
</tbody>
<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>'


I update the file

<file name="$boarddir/index.php">
<file name="$sourcedir/Admin.php">
<file name="$sourcedir/QueryString.php">
<file name="$themedir/BoardIndex.template.php">
<file name="$themedir/Display.template.php">
<file name="$themedir/MessageIndex.template.php">
<file name="$themedir/index.template.php">
<file name="$sourcedir/ManagePermissions.php">

Ok, i open package-info.xml, i understand better :)
Title: Re: Ad Management mod
Post by: vbgamer45 on September 24, 2014, 08:09:33 AM
You can upload the package to http://www.smfhacks.com/smf-package-parser.html

If the theme doesn't have the code refer to the default theme then find about the same place in your other theme.
Title: Re: Ad Management mod
Post by: frank30 on September 24, 2014, 08:42:38 AM
Thanks a lot, i think it's okay. Only the code tbody and UTF8 probleme but it's allright.
Title: Re: Ad Management mod
Post by: vbgamer45 on September 24, 2014, 10:15:05 AM
Glad to help
Title: Re: Ad Management mod
Post by: s3cc0 on September 25, 2014, 12:22:58 PM
A very stupid question. I run a SMF 2.0.8 Forum and a WP Blog on the same domain: bitcoingarden.tk

I've been using your mod to display ads on the forum for some months and I'm more than satisfied. Is there a (simply) way to call your ad display module from wordpress ?

Title: Re: Ad Management mod
Post by: vbgamer45 on September 25, 2014, 03:44:12 PM
Not easily. That is a feature in Ad Seller Pro though http://www.smfhacks.com/ad-seller-pro.php
Title: Re: Ad Management mod
Post by: s3cc0 on September 25, 2014, 08:18:16 PM
Quote from: vbgamer45 on September 25, 2014, 03:44:12 PM
Not easily. That is a feature in Ad Seller Pro though http://www.smfhacks.com/ad-seller-pro.php

Thank you, I bookmarked the site.

Title: Re: Ad Management mod
Post by: Kleineganz on October 08, 2014, 02:00:51 PM
I've tried adding AdSense to my site manually, without success. However when I try to install this mod, I get many "test failed" errors across all my themes (including the core theme), so I am reluctant to complete the install process.

Here is a screen capture of the errors.

(http://content.screencast.com/users/Kleineganz/folders/Jing/media/a9426790-1dbe-4aaf-a367-484fc00f5556/2014-10-08_1150.png)
Title: Re: Ad Management mod
Post by: vbgamer45 on October 08, 2014, 03:53:44 PM
Is that the theme you are using or are just trying to install on all themes?
Title: Re: Ad Management mod
Post by: Kleineganz on October 08, 2014, 07:06:20 PM
Quote from: vbgamer45 on October 08, 2014, 03:53:44 PM
Is that the theme you are using or are just trying to install on all themes?
I always install mods on all themes because I let my users choose which theme they want to view (some have vision issues and different people have different preferences). Also, as you can see ... the test failed on *all* three themes.
Title: Re: Ad Management mod
Post by: vbgamer45 on October 08, 2014, 07:33:22 PM
Ok will that will require you to modify each theme unforuntaly then.
You can upload the mod to http://www.smfhacks.com/smf-package-parser.html  and get the theme edits that will need to be to each theme.
Title: Re: Ad Management mod
Post by: Kleineganz on October 08, 2014, 07:37:01 PM
Quote from: vbgamer45 on October 08, 2014, 07:33:22 PM
Ok will that will require you to modify each theme unforuntaly then.
You can upload the mod to http://www.smfhacks.com/smf-package-parser.html  and get the theme edits that will need to be to each theme.
I'm confused - why? Shouldn't it at least work with the base/core theme for SMF without modifications? It's failing on every single theme and it should work with at least the core one, right? What am I missing here?
Title: Re: Ad Management mod
Post by: vbgamer45 on October 08, 2014, 07:52:41 PM
It works with the default Curve theme. Core theme it will not work since the theme is structured differently.
Title: Re: Ad Management mod
Post by: Kleineganz on October 08, 2014, 08:17:17 PM
Well never mind. I found a way to add my AdSense code to my theme manually and it works with all my themes simultaneously.
Title: Re: Ad Management mod
Post by: vbgamer45 on October 08, 2014, 08:24:04 PM
Ok.
Title: Re: Ad Management mod
Post by: Bruno36 on October 24, 2014, 10:21:17 AM
Hello!
How to display an ad after the seventh post
(not the first post)
Title: Re: Ad Management mod
Post by: vbgamer45 on October 24, 2014, 10:34:06 AM
You would need to make a counter in the display.template.php code and then run the function call once it reaches 7
Title: Re: Ad Management mod
Post by: Bruno36 on October 24, 2014, 10:44:37 AM
Merci
Title: Re: Ad Management mod
Post by: NeedIt on October 28, 2014, 12:48:22 AM
Guys,

I have done this one time before, but I want to verify.  I downloaded the 2.0.X zip file from here:

http://custom.simplemachines.org/mods/index.php?mod=255

Now to install the admod - and my forum is currently 2.0.8 - I simply do the following, right?

"1. Backup
2. Download the most recent MOd release zip (save in a folder on your PC you can remember)
3. Admin > Package Manager > Download Package
4. Click Browse and add the Ad MOD Package, click [Upload]
5. Next page, check for any Install Errors ( if everything looks ok) Click [Install]
6. Breathe a sigh of relief for it being that simple ;)"

Sorry, my forum is pretty active and I can't afford to screw up.

Title: Re: Ad Management mod
Post by: vbgamer45 on October 28, 2014, 08:13:53 AM
Yes that is the correct procedure.
Title: Re: Ad Management mod
Post by: NeedIt on October 28, 2014, 08:55:51 AM
Thx.
Title: Re: Ad Management mod
Post by: Arantor on October 28, 2014, 08:58:00 AM
And this is why we take backups before we install things...
Title: Re: Ad Management mod
Post by: Linnea on November 10, 2014, 11:12:12 AM
Hello!

I successfully set up this mod, with ads at the top and bottom of every page.
But there is a problem, it looks like the mod is loaded half of the times, I'm using ads from different sources (adsense, juiceadv) and approximately half of the time they don't appear.

What could the problem be?

:)
Linnea
Title: Re: Ad Management mod
Post by: vbgamer45 on November 10, 2014, 12:02:27 PM
Could be a content issue. Adsense for instance only appears when it has content to display for the page.
Title: Re: Ad Management mod
Post by: larry007 on November 10, 2014, 02:04:26 PM
Can I do this

http://custom.simplemachines.org/mods/index.php?mod=2565

with the Ad managent Mod too?
Title: Re: Ad Management mod
Post by: vbgamer45 on November 10, 2014, 02:17:41 PM
This mod supports google ads built in.
Title: Re: Ad Management mod
Post by: larry007 on November 10, 2014, 02:25:06 PM
Ad Management:

Googleads display in first posting for only visitors, how?
Title: Re: Ad Management mod
Post by: vbgamer45 on November 10, 2014, 02:28:42 PM
There is an ad location for first post. For sure.
You can either use php code to do it. Or work with permissions.
Title: Re: Ad Management mod
Post by: larry007 on November 10, 2014, 02:46:34 PM
There is only a ad location between each posting.

I mean, is there a ad location inside from a posting?

(http://upic.me/i/nq/zxadg.jpg)
Title: Re: Ad Management mod
Post by: vbgamer45 on November 10, 2014, 04:07:18 PM
I thought there was. If not I do have one in AdSeller Pro
Title: Re: Ad Management mod
Post by: Linnea on November 11, 2014, 08:00:22 AM
Thank you for the suggestion vbgamer!
I tried to put some text instead of the ads and the problem is still there, the code loads like half of the time.
My forum is at capellidifata.it/forum

No wonder why the earnings dropped!
Title: Re: Ad Management mod
Post by: vbgamer45 on November 11, 2014, 09:57:44 AM
I see no google ads when I visited your site.
Make sure all membergroups have permissions to view ads under admin -> permissions
Title: Re: Ad Management mod
Post by: Linnea on November 11, 2014, 11:06:53 AM
Yes, all the membergroups have the ads enabled.
If you try to load the page like 10 times, you will see the ads appear about 4-5 times out of 10.
Title: Re: Ad Management mod
Post by: Kindred on November 11, 2014, 11:36:26 AM
that actually sounds like there is a problem between your site and google... not a problem with the mod.
Title: Re: Ad Management mod
Post by: Linnea on November 11, 2014, 03:53:05 PM
Kindred, that happens even if I just add text instead of the adsense code. The text appears every now and then and not every time the page is browsed.
Title: Re: Ad Management mod
Post by: Bruce the Shark on November 30, 2014, 11:58:30 PM
I had my ad management mod setup on another test site working perfectly. Without any issues ( Its a custom theme )
But now i've purchased a new domain name and installed all the very same mods and theme on my site,  however the ad management mod is showing installation fail errors, it appear i am now getting the following test error.
Any ideas
Title: Re: Ad Management mod
Post by: vbgamer45 on December 01, 2014, 12:07:16 AM
Other mods might have edited the theme files before ad management was installed. You can still proceed but you would need to make all edits that were marked as failed manually.
Title: Re: Ad Management mod
Post by: Bruce the Shark on December 01, 2014, 12:26:21 AM
Yes had i know this, i would have installed this first before adding other mods to the site.
To manually edit theses errors it might be out of my scope, unless i have some sort of assistance in what i need to change.
Title: Re: Ad Management mod
Post by: vbgamer45 on December 01, 2014, 12:30:33 AM
You would need to upload the mod to http://www.smfhacks.com/smf-package-parser.html and get the theme edits then find similiar areas of code in your theme to make the changes.
Title: Re: Ad Management mod
Post by: page3 on December 21, 2014, 01:48:24 PM
Hello,

I've installed this mod and can't get the ads to show. I've uninstalled and reinstalled, switched back to default theme, tried different settings, but all I accomplish is that an empty space appears where the ads should be. I've worked on this for a good 10 hours and am out of options, really.
Title: Re: Ad Management mod
Post by: margarett on December 21, 2014, 02:01:24 PM
What are you adding as an Ad? Can you give an example?
Title: Re: Ad Management mod
Post by: vbgamer45 on December 21, 2014, 02:05:10 PM
Google ads may take some time to appear that is how they work.
Also check all your membergroups have permission to view the ads.
Title: Re: Ad Management mod
Post by: page3 on December 22, 2014, 02:12:46 AM
Thanks for the replies. I'm just adding a leaderboard ad at the top and the bottom. I'm aware that google ads will take a few days to appear, but apparently, when you highlight the page, you should see the ad placeholders, and I don't see them. I do see the ad code in the page source. I'd post a link here, but it won't let me.
Title: Re: Ad Management mod
Post by: margarett on December 22, 2014, 08:13:02 AM
And if you just post a fixed text, eg, "test123", does it show?
Title: Re: Ad Management mod
Post by: Nodaz on January 07, 2015, 02:49:44 AM
just installed ad management 3.2 on an 2.0.9 board to display adsense ( as a test)
Everything seems to have installed correctly, ive added the adsense code and made the appropriate changes in the settings( including unchecking the hide ads for admins)
Just curious when i will start to see the ads appear so i can modify where they are being shown.
It seems it can take a few days?
Title: Re: Ad Management mod
Post by: vbgamer45 on January 07, 2015, 09:26:35 AM
Adsense does take a few days normally to appear on a site.
Title: Re: Ad Management mod
Post by: 420Connect.co.uk on January 11, 2015, 04:17:28 AM
Hi,

I've been using this Ad mod for a while now and haven't run into (m)any problems with it before now..

I've just emulated to be able to install this (http://custom.simplemachines.org/mods/index.php?mod=2163) - My problem began after installing it, so I began asking in the mods support thread (http://www.simplemachines.org/community/index.php?topic=342260.msg3781644#msg3781644) but I'm not sure whether it's something the Ad mod is doing or where code has been added from the other mod..

My issue is that although I don't have the boxes ticked to display ads in certain places, they are still being shown there..

~ Happy to attach any relevant files and thank you in advance for any help ~
Title: Re: Ad Management mod
Post by: vbgamer45 on January 12, 2015, 11:42:52 AM
Just attach the files of where it shouldn't appear such as display.template.php if it is a topic.
Title: Re: Ad Management mod
Post by: 420Connect.co.uk on January 12, 2015, 12:15:18 PM
Quote from: vbgamer45 on January 12, 2015, 11:42:52 AM
Just attach the files of where it shouldn't appear such as display.template.php if it is a topic.

I very much appreciate your help, vbgamer45 (thank you!)
The only place I noticed they began randomly displaying were my main page..

BoardIndex attached
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on February 06, 2015, 11:53:00 PM
Hi @VBgamer ...

Just wanted you to be aware that I'm testing 2.1 on my live site and currently have the ad mod working very well, but when the time comes you will have some performance issues to consider heavily as in my case it functions MUCH better with an ad placed in the welcome area... i also have them in posts with very little drag on resources, but if under menu there's a noticeable hit on performance...

(http://rjventure.com/images/momhumor88.png)

Title: Re: Ad Management mod
Post by: vbgamer45 on February 06, 2015, 11:58:17 PM
I am doing anything for 2.1 for while with this mod since it makes some theme edits... and 2.1 isn't finalized yet.
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on February 07, 2015, 12:04:05 AM
Quote from: vbgamer45 on February 06, 2015, 11:58:17 PM
I am doing anything for 2.1 for while with this mod since it makes some theme edits... and 2.1 isn't finalized yet.

Yep, just letting you know, something get the creative juices movin... excellent mod, thinking very seriously about getting pro version or whatever its named...
Title: Re: Ad Management mod
Post by: 420Connect.co.uk on February 08, 2015, 08:06:00 AM
Quote from: 420connect.info on January 12, 2015, 12:15:18 PM
Quote from: vbgamer45 on January 12, 2015, 11:42:52 AM
Just attach the files of where it shouldn't appear such as display.template.php if it is a topic.

I very much appreciate your help, vbgamer45 (thank you!)
The only place I noticed they began randomly displaying were my main page..

BoardIndex attached

Just refound this ;)

*friendly reminder for when you've got a minute!*


Thank you in advance
Title: Re: Ad Management mod
Post by: vbgamer45 on February 08, 2015, 02:21:39 PM
Looked at that file. Looks ok.
That file has two edits. One for ads top of the board index.
The other in between categories.
Title: Re: Ad Management mod
Post by: 420Connect.co.uk on February 08, 2015, 02:32:37 PM
I could test removing the code for in between categories as I don't use that at all..

surely that would be a temporary fix?


edit: tried this and it has worked.

incase I need to replace that code at some point

just a little note to myself:

//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
Title: Re: Ad Management mod
Post by: Nokin on February 17, 2015, 01:01:30 AM
The Mod in the subject line of this post is one that I installed but did not activate as I was using the theme: brfinale.zip before I installed this Mod. I love the theme but I got a lot of failure notices when I installed the Mod. I haven't installed a Mod before so I stopped before the activating to see if the new theme was not compatible with the Mod or if "some" failure notices were common. I am running 2.0.9 latest. I did not try the install the Mod on the default theme. Thanks. Just trying to really get this show on the road and am being very careful. I did not write down the nature of the failure notices as there were 5 or 6 of them. I do not recall any of them failing for the default curve theme core. Is this normal or did I do the right thing and come here first?
Title: Re: Ad Management mod
Post by: vbgamer45 on February 17, 2015, 01:09:01 AM
Yes that is normal to fail on a custom theme you can upload the mod to http://www.smfhacks.com/smf-package-parser.html to get the edits for a theme.
Then find similiar edits in your custom theme and make the changes were needed.
Title: Re: Ad Management mod
Post by: Nokin on February 17, 2015, 07:13:35 PM
I'll give that a go. Not sure how to go about editing the theme so I will probably be back. Thanks for taking the time to answer a newbie.
Title: Re: Ad Management mod
Post by: Nodaz on February 21, 2015, 01:14:55 PM
odd bug , trying to determine where the issue is:( posted to the adsense help forum as well)
SMF 2.0.9

Recently approved and implemented ads on an SMF forum that i run.  Everything has worked well for just under 8 weeks.  Yesterday i noticed that the ads were not appearing on the forum( though the space where the ad should be is there...) in Firefox 35.0.1 ( normally i have them turned off for forum admins through the forum software but turn them on to analyze placement and position).  There is nothing set to block them ( i have ad blocker plus as well but it is turned off for that page.)
Everything was fine one day, nothing changed and the next day they were not showing.

I checked and they appear correctly in IE and Chrome.
Is this a Firefox issue or a forum software issue?
Title: Re: Ad Management mod
Post by: vbgamer45 on February 21, 2015, 01:42:34 PM
Some ads like google adsense might not appear if they don't like the content on the page.
Check the page source to see if the ad code is there.
Title: Re: Ad Management mod
Post by: Nodaz on February 22, 2015, 02:29:15 PM
Code is present.
What is odd is that the ads appear when i look at the same page in either IE or Chrome, just not in Firefox.
Title: Re: Ad Management mod
Post by: vbgamer45 on February 22, 2015, 02:39:31 PM
You might have adblock or something similiar?
Title: Re: Ad Management mod
Post by: Nodaz on February 22, 2015, 02:41:16 PM
adblock is disabled, first thing i tried...
Title: Re: Ad Management mod
Post by: vbgamer45 on February 22, 2015, 02:55:30 PM
Hmm seems something computer related or browser related and not with the ad mod. As long as the code is shown on the page.
Title: Re: Ad Management mod
Post by: Cyber-Box on February 24, 2015, 10:45:58 AM
I have an ad I want to have appear on all pages so I checked "Display ads on every page as a tower on the left side".  Good.

I want another ad to appear on a certain board (for example board 5) so I put 5 in the "Which boards should this ad display in" textbox.  I go to board 5, but nothing shows up.  I think maybe it's because it needs to go hand in hand with one of the checkbox options so I checked "Display ads on board index" but still nothing. 
I changed it to "Display ads on message index" with same result.  BUT, if I change it to "Display ads on the post page" it shows up in the posts of that board.  If I take out the 5 and leave "Display ads on board index", then it shows up on the main board and if I leave "Display ads on message index" without the 5 it shows up on the message index of every board.

-Is there a way to set it up so it appears on the message index of a certain board only?

-Also, if two ads have the same position, is there a way to show them both up or will one override the other?

What I wanted was to show one Ad A on the left across all pages and Ad B under Ad A in message index and posts of board 5 but Ad C under Ad A in message index and posts of board 10.  (I'm reeeeeally trying to explain this as clearly as possible and have no idea if I'm accomplishing that :-\ LOL)
  (see Edit*)

Thanks in advance.

P.S. I'm using a theme so I visited that link (given in a previous post) where you check the file changes so you can manually edit.  I was able to fix the ones that didn't have the changes.  The only one I didn't was the one that mentioned the welcome user area.  I didn't change it because I couldn't find the code in the theme file nor in the original install file.  I think it's the one that had to do with welcome area and because I'm not interested in using ads there, I don't think I have to change it.

P.P.S. I'm running SMF 2.0.9 and it was a clean install (not an update)

*EDIT:  Know what?  I can work around the issue with Ad A on all the pages and then Ads B and C showing up in their own sections. 
Title: Re: Ad Management mod
Post by: vbgamer45 on February 24, 2015, 11:10:47 AM
-Is there a way to set it up so it appears on the message index of a certain board only?
No
-Also, if two ads have the same position, is there a way to show them both up or will one override the other?
I think they override/rotate
Title: Re: Ad Management mod
Post by: Nodaz on February 24, 2015, 11:12:25 AM
Quote from: Nodaz on February 21, 2015, 01:14:55 PM
odd bug , trying to determine where the issue is:( posted to the adsense help forum as well)
SMF 2.0.9

Recently approved and implemented ads on an SMF forum that i run.  Everything has worked well for just under 8 weeks.  Yesterday i noticed that the ads were not appearing on the forum( though the space where the ad should be is there...) in Firefox 35.0.1 ( normally i have them turned off for forum admins through the forum software but turn them on to analyze placement and position).  There is nothing set to block them ( i have ad blocker plus as well but it is turned off for that page.)
Everything was fine one day, nothing changed and the next day they were not showing.

I checked and they appear correctly in IE and Chrome.
Is this a Firefox issue or a forum software issue?


After starting Firefox in safe-mode( where in the ads appeared) As it turns out it was an add-on called Ghostery for privacy , more specifically settings within ghostery that were blocking google tracking and cookies.
I had dismissed an update to ghostery and it had defaulted itself back to some settings that caused the issue.
Title: Re: Ad Management mod
Post by: Cyber-Box on February 24, 2015, 11:13:27 AM
Quote from: vbgamer45 on February 24, 2015, 11:10:47 AM
-Is there a way to set it up so it appears on the message index of a certain board only?
No
-Also, if two ads have the same position, is there a way to show them both up or will one override the other?
I think they override/rotate

hehe.  Just edited my prev post.  But thanks for the reply!   :)
Title: Re: Ad Management mod
Post by: Frank T on March 16, 2015, 08:34:22 AM
Hi!
I am all new in this forum programming, but hope you will help me anyway  :o

I have installed SMF 2.0.9 and also Ad management, but I can`t make a Advertisement work, I can only se the link text to the page I want to ad, but I can´t do anything on the link, nothing happens, and no picture or anything!!!

What is wrong?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 20, 2015, 10:21:12 PM
Not sure need more information.
Title: Re: Ad Management mod
Post by: eldritch1969 on March 21, 2015, 03:11:56 AM
Can this mod have conflicts with others ? I'd like to install it, but it gives me warnings.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 21, 2015, 01:27:05 PM
Yes it could. Makes template edits. You can always install this mod manually and make the changes to your theme.
Title: Re: Ad Management mod
Post by: glennk on March 26, 2015, 02:32:56 PM
HiVBGAMER, Ive used this mod for years with no problems. Very recently a problem arose which meant Ive had to deactivate it for a while. Can you advise on how I can get it working again please. This is the error that shows on the forum - please see attachment

Title: Re: Ad Management mod
Post by: vbgamer45 on March 26, 2015, 02:49:06 PM
You can either reset the hits column to zero or change the datatype to a bigger number such as bigint(20) instead
Title: Re: Ad Management mod
Post by: coromi52 on March 27, 2015, 04:39:51 PM
Just trying to figure out how to load this mod so I can have adsense running. Any pointers? Thank you
Title: Re: Ad Management mod
Post by: Kindred on March 27, 2015, 04:46:09 PM
http://wiki.simplemachines.org/smf/SMF2.0:Package_manager
Title: Re: Ad Management mod
Post by: peterwaalker on April 30, 2015, 12:54:28 AM
I just installed the Reseller theme. Working great so far. I'm also using the Ad Management mod and I noticed that my ads in the header and footer are displaying but the in-between posts ads are no longer there. What shall do to edit.
When i tried to uninstall i found error. What shall i do?
see image below
Title: Re: Ad Management mod
Post by: vbgamer45 on April 30, 2015, 01:25:40 AM
Upload the ad package to http://www.smfhacks.com/smf-package-parser.html
And follow the theme edits and make them to your custom theme.
Title: Re: Ad Management mod
Post by: safrist on April 30, 2015, 01:52:23 AM
i have instal,,

and database error :(

:::loadads and my prefix doesnt exis
Title: Re: Ad Management mod
Post by: lepard on April 30, 2015, 02:32:27 AM
I had an old version and it was showing all ads twice. I uninstalled it, got the updated one today and it still makes all ads show up twice, it actually duplicated each ad in the ad management area if you delete one it deletes both.. Odd at best..
Title: Re: Ad Management mod
Post by: vbgamer45 on April 30, 2015, 06:25:15 AM
Upload the package to http://www.smfhacks.com/smf-package-parser.html
To find all the edits it makes then check your forum files that the edits only appear once.
Title: Re: Ad Management mod
Post by: simplebeer on April 30, 2015, 07:00:55 AM
Can i also use this mod to add ads (banners) by myself?

At content the text is "This section is for placing your ad code. You get this code from the ad company itself"

Is there a example code to add ads by myself?
Title: Re: Ad Management mod
Post by: vbgamer45 on April 30, 2015, 08:06:22 AM
Yes you can.
You would get ad code from your ad network you are using.
Title: Re: Ad Management mod
Post by: simplebeer on April 30, 2015, 09:32:08 AM
I'm sorry for the misunderstanding.

I mean, can i use it to make banners on the forum without a ad network or other company?

I have sponsors, they pay me and give me a banner in .gif or. jpg and i want to place them....
Title: Re: Ad Management mod
Post by: vbgamer45 on April 30, 2015, 09:52:14 AM
yes
Title: Re: Ad Management mod
Post by: peterwaalker on April 30, 2015, 11:27:04 AM
Quote from: vbgamer45 on April 30, 2015, 06:25:15 AM
Upload the package to http://www.smfhacks.com/smf-package-parser.html
To find all the edits it makes then check your forum files that the edits only appear once.

I have parsed the mod. I followed the parse codes to the directories and nothing is missing there.
Or should I copy something in the index.template.php of the current theme.
Title: Re: Ad Management mod
Post by: vbgamer45 on April 30, 2015, 11:28:24 AM
yes you need to alter your current theme files.
Title: Re: Ad Management mod
Post by: simplebeer on May 01, 2015, 04:47:06 PM
Quote from: vbgamer45 on April 30, 2015, 09:52:14 AM
yes

Ok, but how?  Is there a example code to add a banner myself?
Title: Re: Ad Management mod
Post by: margarett on May 01, 2015, 04:52:34 PM
You just need to host the image anywhere (in your own host or anywhere else) and then, in the "ad" configuration, put out the HTML "img" pointing to your image ;)
Title: Re: Ad Management mod
Post by: simplebeer on May 06, 2015, 04:53:46 PM
Can you give me an example, i try but i am no good into html, there will be only the text i try :-X
Title: Re: Ad Management mod
Post by: margarett on May 06, 2015, 05:26:31 PM
<img src="http://www.whatever-path-to-image.com/image.png">
Title: Re: Ad Management mod
Post by: simplebeer on May 06, 2015, 06:11:15 PM
thanks  :D

but now i try this, it isn't working  :-X

<img src="http://www.whatever-path-to-image.com/image.png" align="middle">
Title: Re: Ad Management mod
Post by: simplebeer on May 06, 2015, 06:17:08 PM
a this is working!

<center><img src=""></center>
Title: Re: Ad Management mod
Post by: simplebeer on May 06, 2015, 06:23:04 PM
i now want to try if i can do this, can anyone help me?

I think i need tot add 6 adds, with 6 diffrent codes.
I already have the middle one, but what about the rest  :o

Title: Re: Ad Management mod
Post by: simplebeer on May 11, 2015, 08:55:30 AM
Mmmm, just removed this mod because writing in html take some time and i first want to try something else.
After deintallation i get a strange layout and a feedback box in the left uppercorner, i fill in the feedback and press send, and now the forum page is blank  :o

OMG whats wrong?
Title: Re: Ad Management mod
Post by: margarett on May 11, 2015, 09:07:49 AM
The feedback and the strange layout is caused the MOD and only when you uninstall (exactly due to that feedback window). You are not required to leave a feedback but I'm sure the author appreciates you for doing it ;)

The white page is usually a PHP error and it indicates that something went sour at uninstall. Are you sure that there was no error presented to you at uninstall?
You can try to restore a backup... But the best possibility is to follow the "manual installation of MODs" reverse and make sure that all file edits were performed, for every theme!
Manual Installation of Mods (http://wiki.simplemachines.org/smf/Manual_installation_of_mods)
Title: Re: Ad Management mod
Post by: simplebeer on May 11, 2015, 09:14:55 AM
I was already doing just that and found

At line 466 in QueryString.php this was left behind, strange because i didn't see any errors, maybe i was clicking to fast  :-\

Quote// Start Ad Mod
      // You can order copyright removal! From the mod settings cheap and helps support the mod author!
      $showInfo = AdsCheckInfo();
         
          if ($showInfo == true && !isset($adCopyright))
          {
         $buffer = preg_replace('~(, Simple Machines LLC</a>)~', ', Simple Machines LLC</a><br /><span class="smalltext"><a href="http://www.smfads.com" target="_blank">SMFAds</a> for <a href="http://www.createaforum.com" title="Forum Hosting">Free Forums</a></span>', $buffer);
         $buffer = preg_replace('~(class="new_win">Simple Machines</a>)~', 'class="new_win">Simple Machines</a><br /><span class="smalltext"><a href="http://www.smfads.com" target="_blank">SMFAds</a> for <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">Free Forums</a></span>', $buffer);
         $adCopyright = 1;
      }
   // End Ad Mod

Forum is working again and i now check the rest, thanks!
Title: Re: Ad Management mod
Post by: simplebeer on May 11, 2015, 09:25:33 AM
For anyone else who has this problem, i followed the manual installation complete and din't find anything more  ;)
Title: Re: Ad Management mod
Post by: vbgamer45 on May 11, 2015, 12:54:09 PM
Glad you have it figured out.
Title: Re: Ad Management mod
Post by: venty on May 21, 2015, 03:37:11 AM
Hello,

can anyone describe what with bookmarks which items are displayed ad?!?

Thanks in advance!

BR
Venci
Title: Re: Ad Management mod
Post by: vbgamer45 on May 21, 2015, 09:35:43 AM
I don't undertstand the question. The system will show any adcode that you place in it.
Title: Re: Ad Management mod
Post by: venty on May 21, 2015, 10:30:53 AM
I understand that, but me excites me how in this position to put code circled in red?!?
Title: Re: Ad Management mod
Post by: vbgamer45 on May 21, 2015, 10:31:38 AM
Use one of the positions for the header then use center tags to make it aligned in middle.
Title: Re: Ad Management mod
Post by: venty on May 21, 2015, 11:42:51 AM
What position should I choose?
Title: Re: Ad Management mod
Post by: vbgamer45 on May 21, 2015, 11:48:58 AM
display ads right below the menu ..............
Title: Re: Ad Management mod
Post by: venty on May 21, 2015, 12:03:49 PM
I followed the instructions, but please look at the picture ...
Title: Re: Ad Management mod
Post by: vbgamer45 on May 21, 2015, 12:08:53 PM
That's right you just need to center it now. center tags for the html code around it.
Title: Re: Ad Management mod
Post by: venty on May 21, 2015, 12:21:56 PM
OK, I understand that, but the problem is that nah just below the menu, but - down...
Title: Re: Ad Management mod
Post by: MoreBloodWine on May 23, 2015, 06:48:52 PM
Not sure if anyone on the hacks team is familiar with bitcoin. but, would it be possible to on the ad seller pro version to make use of the coinbase.com api and not just paypal ?

This way people can sell ad space using bitcoin.

Ty.
Title: Re: Ad Management mod
Post by: vbgamer45 on May 23, 2015, 10:02:06 PM
Possible but would require a large investment of my time which I probably don't have.
Title: Re: Ad Management mod
Post by: MoreBloodWine on May 23, 2015, 11:33:56 PM
Quote from: vbgamer45 on May 23, 2015, 10:02:06 PM
Possible but would require a large investment of my time which I probably don't have.
Would you be willing to invest enough time just to see if you can get a rough estimate of just how much time it might take ? It wouldn't be an over night thing anyway, just something you can work on when you have a bit of time here or there etc.

Ty.
Title: Re: Ad Management mod
Post by: vbgamer45 on May 24, 2015, 09:13:06 PM
At this time no focusing on other projects at the moment I am already stretched way too thin.
Title: Re: Ad Management mod
Post by: MoreBloodWine on May 24, 2015, 10:44:13 PM
Quote from: vbgamer45 on May 24, 2015, 09:13:06 PM
At this time no focusing on other projects at the moment I am already stretched way too thin.
Fair enough, was worth asking but ya... I think, for me anyway, bitcoin acceptance in the pro version would be pretty sweet.

Here's hoping at some point it crosses your mind ;-)
Title: Re: Ad Management mod
Post by: samborabora on May 28, 2015, 04:17:44 PM
Nice mod, just installed it and bought the ad free version. Is it possible to show the ads in between random posts rather than just picking which ones?
Title: Re: Ad Management mod
Post by: vbgamer45 on May 28, 2015, 05:00:19 PM
Not at the moment.
Title: Re: Ad Management mod
Post by: Topman on June 10, 2015, 04:49:19 AM
In 1.1.21 the welcome area ad was on the right hand side.
In my 2.0.10 version, this ad is immediately below the "Show new replies to your post" and the date, which pushes it all down a bit when there is a nice space under the search bar.

How can I change this?
Title: Re: Ad Management mod
Post by: vbgamer45 on June 10, 2015, 11:30:33 AM
Modify the index.template.php that is where it is located in.
Title: Re: Ad Management mod
Post by: Topman on June 11, 2015, 12:48:26 AM
Not much help!
Index.template.php is where?  is it the one in the default files folder?
Modify what with what?
Nothing in this one that looks anything like my ad code.

Title: Re: Ad Management mod
Post by: vbgamer45 on June 11, 2015, 07:23:27 AM
In the themes/default/index.template.php file. Or you custom theme's folder. You would need to play with the code and adjust the welcome position.
Title: Re: Ad Management mod
Post by: Kindred on June 11, 2015, 09:06:25 AM
more to the point -- your specific ad code will not be in that file...    the ad manager code will be in the file and you'll have to play around with moving the ad manager calls to the various blocks
Title: Re: Ad Management mod
Post by: Topman on June 12, 2015, 12:43:26 AM
So what do I need to do with this?
// Begin Ad  management Location - Welcome Area/User Information Box

if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}

// End Ad  management Location - Welcome Area/User Information Box
[/b]

No mention of "position"  "below"or "left" or anywhere!

It would also be useful to know how to put two different ads in the same location as in this forum.
Title: Re: Ad Management mod
Post by: Kindred on June 12, 2015, 08:21:10 AM
we don't use this mod here on this forum...

but neither do we have "two different ads in the same location"



the code that you quoted indicates right in the comment which ad-box it is
... Location - Welcome Area/User Information Box


the placement is based on where - in the index.template.php code that block that you quoted gets called...
for example...
put it just before the linktree call... or just under the logo call... etc and so forth...   you will likely have to experiment with some CSS styling/placement depending....

vbgamer --   why do you not define each ad block with its own ID/class for the div?
Title: Re: Ad Management mod
Post by: Illori on June 12, 2015, 08:35:33 AM
Quote from: Kindred on June 12, 2015, 08:21:10 AM
but neither do we have "two different ads in the same location"

actually sometimes we do... the ad for the docs/wiki shows above the first linktree, so 2 ads in the same location.
Title: Re: Ad Management mod
Post by: villasg on June 13, 2015, 02:27:19 AM
Hi.
Thanks for the great mod.
I have update my forum from 1.1.21 with Ad management mod to 2.0.10 and install again the Ad mod .
In old version i have this Ad and work great :

<script language="JavaScript1.2">

var variableslide=new Array()


variableslide[0]=['http://i.imgur.com/cQxxxxx.jpg', 'http://xxxxx/Greek-Zone.php"target="_blank"target="_blank"', '']
variableslide[1]=['http://i.imgur.com/cxxxhK.jpg', 'http://xxxxxx/Greek-Zone.php"target="_blank"', '']
variableslide[2]=['http://i.imgur.com/xxxxsdhK.jpg', 'http://xxxxxx/index.php?topic=7296.0"target="_blank"', '']
variableslide[3]=['http://i.imgur.com/xxxxxdhK.jpg', 'http://www.xxxxxl.gr/"target="_blank"', '']

var slidewidth='545px'
var slideheight='125px'
var slidebgcolor='#F3F3F3'

var slidedelay=4000

var ie=document.all
var dom=document.getElementById

for (i=0;i<variableslide.length;i++){
var cacheimage=new Image()
cacheimage.src=variableslide[i][0]
}

var currentslide=0

function rotateimages(){
contentcontainer='<center>'
if (variableslide[currentslide][1]!="")
contentcontainer+='<a href="'+variableslide[currentslide][1]+'">'
contentcontainer+='<img src="'+variableslide[currentslide][0]+'" border="0" vspace="3">'
if (variableslide[currentslide][1]!="")
contentcontainer+='</a>'
contentcontainer+='</center>'
if (variableslide[currentslide][2]!="")
contentcontainer+=variableslide[currentslide][2]

if (document.layers){
crossrotateobj.document.write(contentcontainer)
crossrotateobj.document.close()
}
else if (ie||dom)
crossrotateobj.innerHTML=contentcontainer
if (currentslide==variableslide.length-1) currentslide=0
else currentslide++
setTimeout("rotateimages()",slidedelay)
}

if (ie||dom)
document.write('<div id="slidedom" style="width:'+slidewidth+';height:'+slideheight+'; background-color:'+slidebgcolor+'"></div>')

function start_slider(){
crossrotateobj=dom? document.getElementById("slidedom") : ie? document.all.slidedom : document.slidensmain.document.slidenssub
if (document.layers)
document.slidensmain.visibility="show"
rotateimages()
}

if (ie||dom)
start_slider()
else if (document.layers)
window.onload=start_slider

</script>

<ilayer id="slidensmain" width=&{slidewidth}; height=&{slideheight}; bgColor=&{slidebgcolor}; visibility=hide><layer id="slidenssub" width=&{slidewidth}; left=0 top=0></layer></ilayer>



In 2.0.10 when i put the same ad do not work and have this error :
Invalid value inserted or no type specified.
(http://i.imgur.com/BAq5T7p.png)

And the error log


Εφαρμογή φίλτρου: Εμφάνιση μηνυμάτων σφαλμάτων μόνο αυτής της διεύθυνσης URL
http://xxxxxxxforum/index.php?action=admin;area=ads;sa=add
Εφαρμογή φίλτρου: Εμφάνιση μόνο των σφαλμάτων με το ίδιο μήνυμα
Invalid value inserted or no type specified.
Function: addAds
Εφαρμογή φίλτρου: Εμφάνιση μόνο των σφαλμάτων από αυτό το αρχείο
Αρχείο: /xxxxxxx/forum/Sources/Ads.php
Γραμμή: 120
Title: Re: Ad Management mod
Post by: vbgamer45 on June 13, 2015, 09:22:01 AM
Issue with {}
i would need to make an update to fix it
Title: Re: Ad Management mod
Post by: Topman on June 15, 2015, 01:59:19 AM
Quote from: Kindred on June 12, 2015, 08:21:10 AM
we don't use this mod here on this forum...

but neither do we have "two different ads in the same location"



the code that you quoted indicates right in the comment which ad-box it is
... Location - Welcome Area/User Information Box




I cant see where it says "right" in the code.
I think the problem is because I still have SMF forums logo taking up this space being forced down there by my banner picture.
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on June 15, 2015, 02:40:40 AM
Quote from: topman on June 15, 2015, 01:59:19 AM
Quote from: Kindred on June 12, 2015, 08:21:10 AM
we don't use this mod here on this forum...

but neither do we have "two different ads in the same location"



the code that you quoted indicates right in the comment which ad-box it is
... Location - Welcome Area/User Information Box




I cant see where it says "right" in the code.
I think the problem is because I still have SMF forums logo taking up this space being forced down there by my banner picture.

I'm running SMF 2.1.0  beta1 and with a minor tweaking of where and when those {} he mentioned were it functions pretty good on my site...
Title: Re: Ad Management mod
Post by: Topman on June 15, 2015, 06:20:17 AM
Still not a great deal of help!
Title: Re: Ad Management mod
Post by: Portugal on June 23, 2015, 05:52:20 AM
Hi,

Im using a responvive theme, but now ive a problem, with this mod the ads are showed to outside of the theme, it remains the original size of ads. Well i was try diferent ways to solve that insue, but sill need help. Its possibile to include maximum and minimum size for the ads to show on places in special at places betwen topics? I solve this using the "Show ads like a post" but i need to return to normal way (without using "show as a topic").
After see on google adsense help i see that existes a possibility to use some code before the ads and it goes adapt the ads to the better size, how can i use it on this mode? I pareciate any help.´

Thanks in advance
Title: Re: Ad Management mod
Post by: vbgamer45 on June 23, 2015, 09:17:52 AM
Not at this time. There is no way to set a  min size or a maximum size ad. It is just one ad that fits all.

Google adsense has an option to place a responsive ad block you would have to get the code from google.
Title: Re: Ad Management mod
Post by: Topman on June 24, 2015, 05:32:11 AM
I've got the same issue on my android tablet.
Ads outside the forum area.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 24, 2015, 09:21:25 AM
That will happen unless your ad code is responsive.
Title: Re: Ad Management mod
Post by: Topman on June 27, 2015, 06:27:30 AM
Quote from: vbgamer45 on June 24, 2015, 09:21:25 AM
That will happen unless your ad code is responsive.

So are you suggesting using a Responsive version of adsense ad for this?
That would mean the tower was narrower!
Title: Re: Ad Management mod
Post by: vbgamer45 on June 27, 2015, 09:21:17 AM
Yes i do.
Title: Re: Ad Management mod
Post by: Topman on June 29, 2015, 03:13:38 AM
Just put a "responsive" on my Forum as "Tower on the right" and nothing is being displayed at all!
But this ad code does work on other sites/sizes/locations.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 29, 2015, 10:05:57 AM
Not sure what would cause that. The tower right is not different than any other ad block area.
Title: Re: Ad Management mod
Post by: Topman on June 30, 2015, 02:33:50 AM
It gets displayed as a horizontal banner though.
If I then use it with my old tower code the complete tower gets pushed off page.
If I don't use the responsive ad at all the tower is at least displayed on a desktop as it should.
If I set the responsive ad to the top of page it is from the left of the screen to the right handside of the forum page.
ie not central!

The instructions state:
Quote""Skyscraper" ads, you must get the appropriate code to fill in the "content" field under this tab. Horizontal ads will NOT work for vertical (Skyscraper) ads."

Which explains why this wont work for skyscraper tower ads!  vbgamer45

The Ad management mod needs work to bring it up to date in my opinion! :(
Title: Re: Ad Management mod
Post by: Topman on July 07, 2015, 03:34:07 AM
I cant even uninstall this!
It gives a warning.
Quote"At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing and have made a backup very recently. This error may be caused by a conflict between the package you are trying to install and another package you have already installed, an error in the package, a package which requires another package that you do not have installed yet or a package designed for another version of SMF."

./Sources/Admin.php
./Sources/ManagePermissions.php
By both it says "Test failed"

It really doesnt seem to be up to 2.0.10 standards. The skyscaper ad is displayed correctly in some posts and beyond the forum page in others, even on the desktop.  Only alternative is to delete it I think and add another horizontal ad.

One more strange thing, when I reinstalled the Mod after upgrading to 2.0.10, I didnt need to redo all the ad codes, they were already there. I just added the Mod and it was all as in 1.1.21
Title: Re: Ad Management mod
Post by: vbgamer45 on July 07, 2015, 10:05:36 AM
You can upload the mod to http://www.smfhacks.com/smf-package-parser.html and get the manual uninstall instructions to remove all the edits.
Title: Re: Ad Management mod
Post by: Topman on July 08, 2015, 02:36:03 AM
Quote from: vbgamer45 on July 07, 2015, 10:05:36 AM
You can upload the mod to http://www.smfhacks.com/smf-package-parser.html and get the manual uninstall instructions to remove all the edits.

Would I have to do them all or just the two files ./Sources/Admin.php and ./Sources/ManagePermissions.php

It is worth knowing the uninstall manual instructions though.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 08, 2015, 10:11:57 AM
Just the files that it failed if you did the full uninstall already.
Title: Re: Ad Management mod
Post by: Topman on July 09, 2015, 01:40:12 AM
Quote from: vbgamer45 on July 08, 2015, 10:11:57 AM
Just the files that it failed if you did the full uninstall already.

Not uninstalled anything as I was worried it would damage or destroy my forum and/or database.
Title: Re: Ad Management mod
Post by: samborabora on July 09, 2015, 04:37:48 AM
Is there a way of disabling the ads on certain themes? It's showing on my mobile theme, and I'd like it to only show on my main theme.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 09, 2015, 09:56:27 AM
No there is not.
Title: Re: Ad Management mod
Post by: Kindred on July 09, 2015, 09:58:34 AM
well...  to be clear -- there *IS* a way... but not by default.
you would have to code the conditionals directly into your template files, yourself.
Title: Re: Ad Management mod
Post by: samborabora on July 09, 2015, 01:33:49 PM
Quote from: Kindred on July 09, 2015, 09:58:34 AM
well...  to be clear -- there *IS* a way... but not by default.
you would have to code the conditionals directly into your template files, yourself.

I thought the ads were loaded via hooks? It's kinda hard to even see where the ads are going to go, since there's no modification of template files. What's the basic conditional used to discern between themes? (My mobile theme is number 5, btw)
Title: Re: Ad Management mod
Post by: Kindred on July 09, 2015, 01:35:15 PM
well, then the conditional code/logic would be in the hooks file...
Title: Re: Ad Management mod
Post by: samborabora on July 11, 2015, 08:09:42 AM
Yeah, but I can't think of how to condition for a theme, there is a variable you can use, isn't there? Provided the global is loaded...
Title: Re: Ad Management mod
Post by: vbgamer45 on July 11, 2015, 09:46:37 AM
For what SMF version?
Title: Re: Ad Management mod
Post by: samborabora on July 11, 2015, 04:49:41 PM
Quote from: vbgamer45 on July 11, 2015, 09:46:37 AM
For what SMF version?

2.0.8
Title: Re: Ad Management mod
Post by: saurabh1938 on July 18, 2015, 06:41:03 AM
Hi All,

I use Simple Portal and also using ad management Mod and responsive Ads from Google Adsense. Now the thing is The ads which are shown in between the posts are misaligned and are centrally aligned to the page and overlaps the right block, instead it should be right aligned or centrally aligned to the post block rather than a page. Attached is the screenshot to show the problem

Regards,
saurabh
Title: Re: Ad Management mod
Post by: samborabora on July 18, 2015, 06:53:23 AM
Quote from: vbgamer45 on July 11, 2015, 09:46:37 AM
For what SMF version?

Whereabouts do I put to not show on certain themes, and what variable exactly should it be?
Title: Re: Ad Management mod
Post by: vbgamer45 on July 19, 2015, 12:23:47 AM
I think you can do a conditional system using the variable $user_settings['id_theme']
And decide to show ads or not based on the theme id
Title: Re: Ad Management mod
Post by: samborabora on July 19, 2015, 06:06:44 AM
Quote from: vbgamer45 on July 19, 2015, 12:23:47 AM
I think you can do a conditional system using the variable $user_settings['id_theme']
And decide to show ads or not based on the theme id
That's the one, $user_settings['id_theme'], should I go through finding all of the little places the ad hooks into, or is there one bit (index.template?) in particular I need to condition to just take the entire ad mod out from loading on the mobile theme?
Title: Re: Ad Management mod
Post by: EmsoffLambs on July 29, 2015, 04:27:09 PM
I am having trouble with this mod. I was able to get it installed and added two ads, but they don't show up when am logged into the forum. However, if I log out and view it as a guest, or log into another account, the display. Yesterday I added two more ads (4 total) but it only shows the original two, not the two new ones. And I still cannot get it to show any when I'm logged into my regular admin account. I thought perhaps it was just showing a cached version on my browser, but I've deleted all history and still cannot see them. How can I get ALL  the ads to display on ALL accounts?
Title: Re: Ad Management mod
Post by: vbgamer45 on July 29, 2015, 04:44:30 PM
You may checked a setting in ad management mod to not show ad's to admins
Title: Re: Ad Management mod
Post by: EmsoffLambs on July 29, 2015, 07:38:45 PM
That was easy! Thank you!
Title: Re: Ad Management mod
Post by: vbgamer45 on July 29, 2015, 09:10:15 PM
Glad that helped
Title: Re: Ad Management mod
Post by: waplist on July 31, 2015, 11:11:17 AM
Hi i have installed this mod with SimpleAds mod and now its showing only this error Unable to load the 'Ads' template.

Please help me board is not working after that if i click any link its showing error.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 31, 2015, 11:13:09 AM
You shouldn't do that. Only have one ad mod installed either or but not both.
Title: Re: Ad Management mod
Post by: waplist on July 31, 2015, 11:20:46 AM
Ya but what to do now.where to upload ads.template.php
Title: Re: Ad Management mod
Post by: vbgamer45 on July 31, 2015, 11:21:34 AM
themes/default folder
Title: Re: Ad Management mod
Post by: waplist on July 31, 2015, 11:40:03 AM
It worked.i was so  :-\ :o . Thanks
Title: Re: Ad Management mod
Post by: vbgamer45 on July 31, 2015, 11:40:41 AM
Glad you have it working!
Title: Re: Ad Management mod
Post by: waplist on July 31, 2015, 11:58:05 AM
I have a feature request please add display ads by groups and ads impression counts.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 31, 2015, 11:59:32 AM
I have those features in AdSeller Pro but it is my paid addon.
Title: Re: Ad Management mod
Post by: samborabora on August 02, 2015, 03:22:49 PM
How do I hook a new ad position in? I want to put an ad in my forum header, not just the top of the topic but above the menu. Is this done in a hooks file or something? If so, how?
Title: Re: Ad Management mod
Post by: vbgamer45 on August 02, 2015, 03:24:29 PM
Arranged in the templates I believe.
Title: Re: Ad Management mod
Post by: samborabora on August 03, 2015, 06:36:46 AM
Quote from: vbgamer45 on August 02, 2015, 03:24:29 PM
Arranged in the templates I believe.

The theme templates or the ad mod templates?
Title: Re: Ad Management mod
Post by: vbgamer45 on August 03, 2015, 08:51:36 AM
The theme templates
Title: Re: Ad Management mod
Post by: samborabora on August 05, 2015, 05:43:57 PM
Well it doesn't seem to edit much in the theme templates, I assume the ad code hooks in afterwards, I just can't figure out where I could define a new placement of the ads. Literally, I just want a duplicate of the footer ads to be displayed in the SMF header for the forum.

EDIT: Okay, I just want to move the "display at top of page" ad so it isn't actually just stark at the top of the page but contained within a div so I can move it to the right position.

Edit 2: Looks like that is loaded just before or just after template_body_above?
Title: Re: Ad Management mod
Post by: vbgamer45 on August 05, 2015, 07:00:34 PM
Yeah that hook is uses the template above and below to work on all themes out of box
Title: Re: Ad Management mod
Post by: samborabora on August 06, 2015, 12:50:50 AM
Quote from: vbgamer45 on August 05, 2015, 07:00:34 PM
Yeah that hook is uses the template above and below to work on all themes out of box

Yeah, so how to do I put the ad code for that inside, say:

<div id="upper_section" class="middletext">
<div class="user">
<div id="banner"> BANNER CODE HERE</DIV>


Is there a code I can use within this div that will bring it in, or is there a way of modifying the topofpage codes whereabouts?
Title: Re: Ad Management mod
Post by: samborabora on August 07, 2015, 04:02:42 PM
Is there some kind of hook placeholder that will load the banner if I place it in my theme?
Title: Re: Ad Management mod
Post by: vbgamer45 on August 07, 2015, 04:46:14 PM
Not that i know of
Title: Re: Ad Management mod
Post by: samborabora on August 07, 2015, 06:19:12 PM
Quote from: vbgamer45 on August 07, 2015, 04:46:14 PM
Not that i know of

Okay, where and how is the banner code loaded into the theme template?
Title: Re: Ad Management mod
Post by: samborabora on August 08, 2015, 10:42:54 AM
I mean, there must be some simple way of adjusting where the banners are placed or being able to insert a new one? I've looked through all the mod files and I can't figure it out at all.
Title: Re: Ad Management mod
Post by: vbgamer45 on August 08, 2015, 11:32:20 AM
Not for the above and below ones those are tied with the template layers
Title: Re: Ad Management mod
Post by: samborabora on August 08, 2015, 02:55:08 PM
Quote from: vbgamer45 on August 08, 2015, 11:32:20 AM
Not for the above and below ones those are tied with the template layers

Yes, but if I knew how to put my own in, I could just not use the above/below code, and just make my own position for in the header. I just have no idea where the templates are or anything, or the hook or however the code is inserted into the page, it just isn't present in anywhere I can find it.
Title: Re: Ad Management mod
Post by: samborabora on August 10, 2015, 01:34:45 PM
Quote from: vbgamer45 on August 08, 2015, 11:32:20 AM
Not for the above and below ones those are tied with the template layers

vbgamer45 , can you tell me exactly how a banner ad is inserted into the template and what code I would need to look at to be able to put the banner ad code in a new part of my theme template?
Title: Re: Ad Management mod
Post by: vbgamer45 on August 10, 2015, 01:35:58 PM
I don't know off hand. It would be added to the template files.
Title: Re: Ad Management mod
Post by: samborabora on August 10, 2015, 02:43:59 PM
Quote from: vbgamer45 on August 10, 2015, 01:35:58 PM
I don't know off hand. It would be added to the template files.

The theme template files have nothing in them to do with ad management except for this:

// Begin Ad  management Location - Welcome Area/User Information Box

if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}

// End Ad  management Location - Welcome Area/User Information Box


That is all that is installed into the theme templatee, everything else must be hooks but I just cannot find anything that inserts the banner into the page?
Title: Re: Ad Management mod
Post by: Simple Machinist on August 15, 2015, 04:46:43 PM
I would like to remove this mod from my forum, but I get this error message seen in the attached screenshot. So I am not thinking it is a good idea to take a chance and remove it as I am worried it could crash my forum if I do. Any suggestions please?

Cheers..
Title: Re: Ad Management mod
Post by: margarett on August 15, 2015, 06:15:41 PM
You need to check this
Manual Installation of Mods (http://wiki.simplemachines.org/smf/Manual_installation_of_mods)

And check if you can manually reverse the missing edit to index.template.php ;)
Title: Re: Ad Management mod
Post by: Kindred on August 15, 2015, 06:59:56 PM
More specificslly....  http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Ad Management mod
Post by: Simple Machinist on August 16, 2015, 02:04:39 AM
Thank you. I am running 1.1.21 so the first link doesn't apply: http://wiki.simplemachines.org/smf/Manual_installation_of_mods

On the second link: http://wiki.simplemachines.org/smf/Error_in_mod_installation it says to first try editing the code manually in the subject file where the failure is taking place. In my case it is the ./Themes/default/index.template.php file, but I don't know which of the code to edit. It doesn't tell me in what part of the code the failure is taking place. Am I perhaps misunderstanding something here please?

Also, the reason I want to uninstall this mod is it doesn't work right. I have Ad Managment 3.0.1 installed right now (notice how the name of the mod "Managment" is also misspelled as I copied and pasted that from my list of installed packages).

There are two problems with the mod. First, it shows each of my ads that I created listed twice when I go to the Ad Management configuration tab.

Secondly, when I got to modify an ad, only two of the display options for the ads actually work on my forum. Display ads on every page right below the menu and Display ads on the bottom of the page both work, but if I enable any of the other ad display options they have no effect on my forum at all.

Then I tried to install the newer version, "ad_mod_v3.1_SMF_v1-1-x" and I get even more failures if I want to try and install the newer version. See attached screenshot.

So upgrading isn't an option either.
Title: Re: Ad Management mod
Post by: Kindred on August 16, 2015, 07:52:55 AM
right....
(why do you think that margarett's link does not apply? That link applies to ALL mods and versions)

first: it shows double ads because you have apparently installed the mod twice.
second: this might be related to the first point...  but probably, actually, means that you are using a custom theme instead of the default and that you never (manually) installed the mod into your custom theme files.

So, here's the deal...

since you have installed twice, even uninstalling won't actually remove the mod.
You are going to have to MANUALLY uninstall the mod (and that means, especially removing BOTH sets of the duplicated code) *OR* MANUALLY uninstall the duplicated portions.
Either way, margarett's link actually tells you what you need to do.
Parse the mod installation -- find the code edits -- then reverse those code edits.

If you choose to rmove the duplicate code and leave the mod itself, THEN you are going to have to do the manual installation into your custom theme.
Parse the mod installation -- find the code edits (in yoru custom theme's template files) -- do those edits to your custom theme.


Finally...  you really need to upgrade to 2.0.x. -- 1.1.x is at End of Life... there will be no further releases and support WILL be stopped when 2.1 is released.
Title: Re: Ad Management mod
Post by: samborabora on August 19, 2015, 05:09:03 PM
Quote from: Kindred on August 16, 2015, 07:52:55 AM

KIndred, do you have any idea about adding a new location for the ad code to show up? I just can't find the hooks anywhere, and the header and footer hooks seem to just hard attach themselves just under the head and just above the footer, or something.
Title: Re: Ad Management mod
Post by: Portugal on August 20, 2015, 10:44:24 AM
Hi,

I need to configure some positions to dont display any banner, its possibile to set some locations to dont show nothing at all if the resolution is under some value (on mobile).
I know i can do this if the code is from some advirtiseres but my problem consists on my own advirteses, i cant (until now) to exclude thems to be displayed on small equipments.
To minimize that i used to display the banners "as a topic" but well thats not a good solution to me. Any help i apreciated.


Thanks in advance.
Portugal
Title: Re: Ad Management mod
Post by: vbgamer45 on August 20, 2015, 10:55:06 AM
There is no resolution or mobile level setting at the moment.
Title: Re: Ad Management mod
Post by: samborabora on August 26, 2015, 02:29:28 PM
I don't really know how else to figure out how to position an ad block in a specified positioning of my choice, since the maintainers don't know and nor does anybody else? I mean, I paid the $10, it would be kinda nice just to have a little advice on what's actually creating the code in the pages, I just haven't got a clue where it's lurking, and I've dug through everything I can find. Anyone??
Title: Re: Ad Management mod
Post by: Padre gremista on September 24, 2015, 02:27:50 PM
I have a problem. The advertiser only show for admins, for members it is not showed. How repair this?
Title: Re: Ad Management mod
Post by: vbgamer45 on September 24, 2015, 02:34:19 PM
You have to enable ads for each membergroup under permissions.
Title: Re: Ad Management mod
Post by: Padre gremista on September 24, 2015, 02:43:33 PM
Quote from: vbgamer45 on September 24, 2015, 02:34:19 PM
You have to enable ads for each membergroup under permissions.

But, I can't enable why not exists the button for this in permissions.
Title: Re: Ad Management mod
Post by: vbgamer45 on September 24, 2015, 02:50:41 PM
Under Admin -> Permissions then modify each membergroup and give enable ads permission.
Title: Re: Ad Management mod
Post by: Padre gremista on September 24, 2015, 02:51:46 PM
Quote from: vbgamer45 on September 24, 2015, 02:50:41 PM
Under Admin -> Permissions then modify each membergroup and give enable ads permission.

Not exists the button in permissions.
Title: Re: Ad Management mod
Post by: vbgamer45 on September 24, 2015, 02:56:03 PM
Probably isn't installed correctly or a language file issue. There should be an area in there for permission to show ads.
Title: Re: Ad Management mod
Post by: Padre gremista on September 24, 2015, 03:19:28 PM
Quote from: vbgamer45 on September 24, 2015, 02:56:03 PM
Probably isn't installed correctly or a language file issue. There should be an area in there for permission to show ads.

Yes, happens error in instalation, file "ManagePermissions.php". How repair this?
Title: Re: Ad Management mod
Post by: vbgamer45 on September 24, 2015, 03:38:12 PM
You would need to upload package to http://www.smfhacks.com/smf-package-parser.html and try to manual install that part.
Title: Re: Ad Management mod
Post by: Padre gremista on September 24, 2015, 07:14:08 PM
Quote from: vbgamer45 on September 24, 2015, 03:38:12 PM
You would need to upload package to http://www.smfhacks.com/smf-package-parser.html and try to manual install that part.

It's works. Thank you.
Title: Re: Ad Management mod
Post by: vbgamer45 on September 24, 2015, 09:13:46 PM
Glad to help.
Title: Re: Ad Management mod
Post by: sajidicma on October 13, 2015, 11:07:03 AM
Hi,
I am using Ad Management 3.2 mod for showing adsense ads on my website: userviews.net . Currently I am showing ads on every page on top and bottom. However, I want to remove ads from login and register pages only because it seems against the terms and conditions of google. Please help with any ideas.

Title: Re: Ad Management mod
Post by: vbgamer45 on October 13, 2015, 11:07:38 AM
There is no built in way to do that. You would need to modify the code of the mod.
Title: Re: Ad Management mod
Post by: sajidicma on October 13, 2015, 11:10:15 AM
Hi,
I am using Ad Management 3.2 mod for showing adsense ads on my website: userviews.net . Currently I am showing ads on every page on top and bottom. However, I want to remove ads from login and register pages only because it seems against the terms and conditions of google. Please help with any ideas.
Modify message
Title: Re: Ad Management mod
Post by: vbgamer45 on October 13, 2015, 11:12:35 AM
Check if action = login login2 or register or register2  then if so disable showing ads. You need to know php code to do this though.
Title: Re: Ad Management mod
Post by: sajidicma on November 09, 2015, 07:07:25 AM
Can you please guide which file to edit to resolve the problem??
Title: Re: Ad Management mod
Post by: vbgamer45 on November 09, 2015, 08:46:49 AM
Sources/LoadsAds.php
Title: Re: Ad Management mod
Post by: NeedIt on December 28, 2015, 02:08:12 AM
I just did the following to a test forum with the default theme:

1.  I installed 2.0.10 SMF.
2.  I installed the latest Ad Mod.
3.  I installed the latest Responsive Curve.
4.  I added the ads that I had on my currently active forum into the test forum

What I found was that none of the Ads displayed at all.  It was as if they did not exist.

Does this make sense?  Does Responsive Curve not play well with the Ad Mod or did I screw up somehow?
Title: Re: Ad Management mod
Post by: vbgamer45 on December 28, 2015, 09:38:03 AM
Haven't tested with responsive curve. What type of ads are you adding.
Did you enable ads for membergroup under permissions?
Title: Re: Ad Management mod
Post by: Afro on January 05, 2016, 08:12:26 PM
Is it possible to allow Global Moderators to access the Ad Management mod from the admin panel?
I want a Global Moderator to be able access the ad management package from the admin area without being able to access other areas in the panel.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 05, 2016, 08:46:34 PM
No not possible.
Title: Re: Ad Management mod
Post by: Blade~ on March 29, 2016, 08:32:03 AM
I am also just trying to set this up but fails several of the tests under the core theme. I do have a different theme which passes the test, can I go ahead and install it under the different theme or have to resolve the core theme issues first?

Execute Modification    ./Themes/core/BoardIndex.template.php    Test failed
2.    Add After    ./Themes/core/BoardIndex.template.php    Test failed
Execute Modification    ./Themes/core/Display.template.php    Test failed
Replace    ./Themes/core/Display.template.php    Test failed
Execute Modification    ./Themes/core/MessageIndex.template.php    Test failed
Replace    ./Themes/core/MessageIndex.template.php    Test failed

Those are the fails, everything else is a go. I'm on v. 2.0.11

Thanks!
Title: Re: Ad Management mod
Post by: vbgamer45 on March 29, 2016, 08:53:36 AM
Yes you can. If you aren't using the core theme then it doesn't matter
Title: Re: Ad Management mod
Post by: Blade~ on March 29, 2016, 08:59:09 AM
Quote from: vbgamer45 on March 29, 2016, 08:53:36 AM
Yes you can. If you aren't using the core theme then it doesn't matter

Sweet! Thanks!
Title: Re: Ad Management mod
Post by: Blade~ on March 29, 2016, 09:14:01 AM
Well ... it's a no go. Installed successfully but the link under Admin->Config not showing. Any suggestions?

I am doing this on a test forum so we can experiment if necessary...
Title: Re: Ad Management mod
Post by: robander on May 02, 2016, 05:35:20 PM
Using SMF 2.0.11 and Ad Management 3.2 the images are not showing up. See http://www.allthingsrecovery.net

Sometimes the images show up and sometimes they do not, even if I do not change anything. Very frustrating! Anyone know whats going on? I have tried using different images .gif, jpg, etc. and it still does not work right most of the time.
Title: Re: Ad Management mod
Post by: vbgamer45 on May 02, 2016, 05:58:10 PM
Checked http://www.latinmailorderbrides.net/images/hba.jpg and that does not work
Title: Re: Ad Management mod
Post by: robander on May 02, 2016, 11:58:31 PM
Thanks for helping. I want to put my images with the site's files.

This is the code I now have in the Ad Management area to show up on all pages on the right side but it does not work. What am I doing wrong?


<center>
<body>

<a rel="nofollow" href="http://hugsrecovery.org"><img src="http://www.allthingsrecovery.net/public_html/Themes/default/images/on.png" alt="cocaine addiction" width="170" height="220" border="0" /></a>
</body>

</center>


Sorry I am new to much of this.
Title: Re: Ad Management mod
Post by: robander on May 03, 2016, 12:25:52 AM
Thanks vbgamer45. I did something to make it work but I still do not know the correct path to put my images for the site with the files. Thanks for the support.
Title: Re: Ad Management mod
Post by: Illori on May 03, 2016, 05:11:32 AM
you dont need to include public_html that is the main folder or root of your whole site.
Title: Re: Ad Management mod
Post by: Irisado on May 03, 2016, 10:36:57 AM
Merged this discussion into the appropriate mod support topic, as that's the place to ask for help with a specific mod.
Title: Re: Ad Management mod
Post by: skj on June 01, 2016, 03:42:22 AM
it not working for my theme ''inferno'' cannont be install on the theme or installed but ads not shown
Title: Re: Ad Management mod
Post by: SD-X on June 01, 2016, 08:37:00 AM
Quote from: skj on June 01, 2016, 03:42:22 AM
it not working for my theme ''inferno'' cannont be install on the theme or installed but ads not shown
You may have to skip the mod's theme code for your theme and install it manually. Some themes are coded in such a way that the mod cannot detect the appropriate place to put its own code, or if it can, it isn't always correct.
Title: Re: Ad Management mod
Post by: mossite on June 28, 2016, 07:37:59 PM
I need modification of ad management on a custom theme-paid
Title: Re: Ad Management mod
Post by: pixel375 on July 03, 2016, 05:22:02 AM
I installed this after working days on my forum... Now I can't do anything on my forum... When I open the site it just says Unable to load the 'ads_outer_above' template.

Please help me guys.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 03, 2016, 10:16:02 AM
How did you install it?
Title: Re: Ad Management mod
Post by: pixel375 on July 03, 2016, 08:23:49 PM
Quote from: vbgamer45 on July 03, 2016, 10:16:02 AM
How did you install it?

The same way you install any package, by using the package downloader/manager.
I got it off by deleting everything and redownloading all the files and themes. But still no success with the package.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 03, 2016, 09:14:59 PM
That is strange to get that.
Title: Re: Ad Management mod
Post by: pixel375 on July 03, 2016, 11:56:53 PM
yes. yes it is.
Title: Re: Ad Management mod
Post by: badon on August 09, 2016, 10:02:53 PM
I'm trying to figure out what the relationship is between Ad Management and Ad Seller Pro, but there are no screenshots for Ad Management, and the examples for Ad Seller Pro are all a broken mess:

http://www.smfads.com/forums/index.php?topic=48.0

I suspect Ad Seller Pro is based on Ad Management, so bug fixes etc for Ad Managment would also be applied to Ad Seller Pro. However, Ad Management isn't mentioned anywhere on Ad Seller Pro's webpage:

http://www.smfhacks.com/ad-seller-pro.php

It appears there's no feature comparison either, which would be expected if they shared code.

The reason why I'm interested in this relationship between the two (if it exists) is because I'm hoping for upgrade/downgrade compatibility, and I'm hoping the more-tested Ad Management mod benefits the far less tested Ad Seller Pro.
Title: Re: Ad Management mod
Post by: vbgamer45 on August 09, 2016, 11:13:29 PM
There is no shared code between ad management and adseller pro. i started adseller pro then later acquired ad management.
There is no ad transfer/upgrade to adseller pro. Ads would need to be remade.
Title: Re: Ad Management mod
Post by: badon on August 09, 2016, 11:24:23 PM
Yikes! I didn't expect that answer. So now I have to ask, which is better? :)
Title: Re: Ad Management mod
Post by: vbgamer45 on August 10, 2016, 12:55:13 AM
It depends. I am updating AdSeller Pro still. If you want to sell ads or have others buy ads or revenue sharing adseller pro is the way to go.
It has more built in ad locations options and has the option to expand to add your own custom ad locations in SMF or even outside of SMF on a website.
Title: Re: Ad Management mod
Post by: badon on August 10, 2016, 01:25:12 AM
My #1 priority is reliability. I don't need the features of Ad Seller Pro (yet). It sounds like my best course of action is to go with the one that is the most tested, which is this one, Ad Management. Thanks for the help!
Title: Re: Ad Management mod
Post by: vbgamer45 on August 10, 2016, 08:19:41 AM
They are both reliable they both do the same tasks showing ads.
Title: Re: Ad Management mod
Post by: badon on August 10, 2016, 04:39:04 PM
I had an installation failure in MessageIndex.template.php. I have attached screenshots and my MessageIndex.template.php file. I also copy-pasted the error details, and my list of installed mods.

Code: (Find) [Select]

global $context, $settings, $options, $scripturl, $modSettings, $txt;


Code: (Add After) [Select]

//Display Ads on the Message index
if (function_exists("show_threadindexAds"))
{
$ads = show_threadindexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


List of installed packages:

1.   Move Topic Default: No Redirection Post   1.0
2.   AdditionalMembergroups   1.04
3.   Add And Remove Buttons   0.4
4.   Ultimate Menu   1.0
5.   Google Analytics Code   1.5.1
6.   Simple Audio Video Embedder   3.6.2
7.   SMF 2.0.11 Update   1.0
8.   SMF 1.1.21 / 2.0.10 Update   1.0
9.   SMF 1.1.20 / 2.0.9 Update   1.0
10.   SMF 2.0.8 Update   1.0
11.   SMF 2.0.7 Update   1.0
12.   SMF 1.1.19 / 2.0.6 Update   1.0
13.   Google Translate for SMF 2.0   1.4
14.   Users Online Today   2.0.3
15.   SMF 2.0.5 Update   1.0
16.   SMF 2.0.4 Update   1.0
17.   Customize *Child Board*   2.7
18.   Stop Spammer   2.3.9
19.   SMF 2.0.3 Update   1.0

On line 15 of my MessageIndex.template.php file, I found this code that resembles the code Ad Management was attempting to change:


global $context, $settings, $options, $scripturl, $modSettings, $txt, $sourcedir;


There are no other lines in the file that are similar, so I think I've found the problem. I'm not sure which mod added $sourcedir, but I'm guessing it should be straightforward for Ad Management to fall back to finding the above line instead, to become compatible with the other mod.

I'm not sure how SMF tracks a sequence of changes like this so the mods could be uninstalled in any order without errors. I would appreciate it if you would point me in the right direction to learn more about how this situation is supposed to be handled, so maybe in the future I can fix the bugs I find instead of merely reporting them. Let me know if you need more information. Thanks in advance!
Title: Re: Ad Management mod
Post by: badon on August 10, 2016, 04:51:19 PM
Quote from: badon on August 10, 2016, 04:39:04 PM
I had an installation failure in MessageIndex.template.php. I have attached screenshots and my MessageIndex.template.php file. I also copy-pasted the error details, and my list of installed mods.

Code: (Find) [Select]

global $context, $settings, $options, $scripturl, $modSettings, $txt;


Code: (Add After) [Select]

//Display Ads on the Message index
if (function_exists("show_threadindexAds"))
{
$ads = show_threadindexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


Correct me if I'm wrong, but I don't think Ad Management is actually changing the line it's searching for. It just needs to find its position, so new code can be inserted after it. If so, then it looks to me that the fix is really easy. Instead of searching for this line:


global $context, $settings, $options, $scripturl, $modSettings, $txt;


Search for this line:


global $context, $settings, $options, $scripturl, $modSettings, $txt


Then the Ad Management code can be inserted after the line, without any further concerns, because it will match my actual line:


global $context, $settings, $options, $scripturl, $modSettings, $txt, $sourcedir;
Title: Re: Ad Management mod
Post by: vbgamer45 on August 10, 2016, 05:16:29 PM
Yes that is the case. It is just adding code after that line.
Title: Re: Ad Management mod
Post by: badon on August 10, 2016, 09:30:51 PM
OK, so how do we go about fixing this bug in the package?
Title: Re: Ad Management mod
Post by: vbgamer45 on August 10, 2016, 09:42:36 PM
It can't fix if the template is different than default or is modified by other mods.
Title: Re: Ad Management mod
Post by: Kindred on August 12, 2016, 08:23:21 AM
It is not a bug in the package.

The mod installs correctly under the default SMF theme. Any custom themes which use different coding or mods which ave changed the target code may require you to MANUALLY apply that section of edit.
Title: Re: Ad Management mod
Post by: Soulmaster on August 18, 2016, 03:35:18 AM
I've got the VVIDE Theme on my board and in index.template.php i'm missing

echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}
 

Is there a solution to fix this?
Title: Re: Ad Management mod
Post by: vbgamer45 on August 18, 2016, 08:37:29 AM
Compare it to the default theme and put the code in a similiar spot around the same area.
Title: Re: Ad Management mod
Post by: PenelopeQ on August 29, 2016, 05:31:31 PM
My webhost just migrated my account to a new server and this initially caused a database error. The host has provided what they say is a temporary fix.I  am going to paste the error message and then my hosts' explanation below.
Quote from: error messageOut of range value for column 'HITS' at row 1
File: /home/rollerco/public_html/mlcforum/Sources/LoadAds.php
Line: 301

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.11, while your database is at version 2.0.1. The above error might possibly go away if you execute the latest version of upgrade.php.
Quote from: cyberlynk support responseI believe that you are running an add-on to SMF to show adds.  Within the SMF database there is a column (a place where data is stored) called "HITS".  This counts the HITS/clicks (I believe) on the ad.  Each column is in the database has what is called a "data type".  This basically tells the database what kind of data is being stored (a date, a number, characters etc).  The mod developer choose the type "mediumint". (a medium sized integer or whole number).  The maximum value that this can store is 8388607.

On the old server we were running MySQL 5.5.  The new server is running MySQL 5.6.  In 5.5 MySQL (the database server) seems to have just ignore if you exceeded the capacity of the mediumint.  In 5.6 it's giving the 'Out of range' error.

If it's OK, the simplest solution (short term) to get you going is to simply site the "HITS" column back to zero for the ads that have hit the limit of 8388607.
Is there a more permanent solution to this problem in the newest version of the mod and if so, do I just install and it will overwrite the old--or how do I upgrade?
If not, is there some other permanent solution?

As for the upgrade.php, that may be another issue for the main SMF support board; when I tried to go to the file I got a website not found 404 error.
Title: Re: Ad Management mod
Post by: vbgamer45 on August 29, 2016, 06:16:03 PM
Try running this command on your database to fix the issue

alter table smf_ads HITS HITS BIGINT NOT NULL default '0';
Title: Re: Ad Management mod
Post by: PenelopeQ on August 29, 2016, 06:45:51 PM
Quote from: vbgamer45 on August 29, 2016, 06:16:03 PM
Try running this command on your database to fix the issue

alter table smf_ads HITS HITS BIGINT NOT NULL default '0';

Okay um...sorry to be dense, but how do I run a command on my database?
Title: Re: Ad Management mod
Post by: vbgamer45 on August 29, 2016, 07:02:56 PM
In phpmyadmin or ask your host to run in on your database.
Title: Re: Ad Management mod
Post by: PenelopeQ on August 29, 2016, 07:20:32 PM
Quote from: vbgamer45 on August 29, 2016, 07:02:56 PM
In phpmyadmin or ask your host to run in on your database.
Yes, I know that part, but what do I do once I am there?
Title: Re: Ad Management mod
Post by: Kindred on August 30, 2016, 12:06:59 AM
Run the command...   ;)
Title: Re: Ad Management mod
Post by: PenelopeQ on August 30, 2016, 12:17:44 AM
I'll rephrase.
How do I run a command in phpmyadmin?
Is there a tab I need to select that is where I run commands from?
Title: Re: Ad Management mod
Post by: Kindred on August 30, 2016, 12:25:26 AM
SQL
Title: Re: Ad Management mod
Post by: PenelopeQ on August 30, 2016, 06:20:58 PM
Okay. Got it did it and got this:
Quote#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'HITS HITS BIGINT NOT NULL default '0'' at line 1
Title: Re: Ad Management mod
Post by: vbgamer45 on August 30, 2016, 06:42:22 PM
Try

alter table smf_ads change HITS HITS BIGINT NOT NULL default '0';
Title: Re: Ad Management mod
Post by: PenelopeQ on September 01, 2016, 04:39:10 PM
Quote from: vbgamer45 on August 30, 2016, 06:42:22 PM
Try

alter table smf_ads change HITS HITS BIGINT NOT NULL default '0';

This should not be having so many problems!
You're being clear--as you know it is me. :P
I ran it and got this: 
Quote#1146 - Table 'rollerco_smf2.smf_ads' doesn't exist
I did a search for ads on the page and found these tables:
rollerc3_ads
rollerc3_ads_settings

Okay, so is that first one it--just without smf_ coming first?
The database is rollerco_smf2, but that is not how the tables are starting, they are starting with rollerc3 and the search I ran defaults to rollerco_smf2. to start the title of the table.

Can I just change that in the search query and try this?

alter table rollerc3.smf_ads change HITS HITS BIGINT NOT NULL default '0';


But since the table name is also different than waht you said, is there first a way I can check it is the correct table--something to look for in the table maybe?
Title: Re: Ad Management mod
Post by: vbgamer45 on September 01, 2016, 04:44:50 PM
You would do

alter table rollerc3_ads change HITS HITS BIGINT NOT NULL default '0';
Title: Re: Ad Management mod
Post by: PenelopeQ on September 01, 2016, 05:06:38 PM
Success!

Thank You.
Title: Re: Ad Management mod
Post by: vbgamer45 on September 01, 2016, 05:08:38 PM
Glad you having it working finally.
Title: Re: Ad Management mod
Post by: engrz on November 09, 2016, 01:58:45 AM
is there any way to place ad in between message body/post by using ad management mod?
Title: Re: Ad Management mod
Post by: vbgamer45 on November 10, 2016, 08:37:48 AM
Yes you can choose to put inside a post or after a certain number of posts.
Title: Re: Ad Management mod
Post by: Paracelsus on November 11, 2016, 11:11:40 AM
For those that would like to put a different ad-code on the same position but that is different according to the type of pages (post pages, topiclist pages, and others), here's a relatively simple hack that you put in the content (and the ad has to be PHP on Type):

if (isset($_REQUEST['topic']))
{
echo '
YOUR-HTML-AD-CODE-1
';

} else if (isset($_REQUEST['board'])) {
echo '
YOUR-HTML-AD-CODE-2
';

} else {
echo '
YOUR-HTML-AD-CODE-3
';

};


Maybe someone has a better code but this worked for me at least (I needed to have a adunit on the header and footer ads that changes whether it is in index, topiclist or post page).
Title: Re: Ad Management mod
Post by: engrz on November 15, 2016, 12:36:08 PM
Quote from: vbgamer45 on November 10, 2016, 08:37:48 AM
Yes you can choose to put inside a post or after a certain number of posts.


There is no any option to select inside a post.
Title: Re: Ad Management mod
Post by: vbgamer45 on November 15, 2016, 12:48:06 PM
I guess it is not part of this mod then.
Title: Re: Ad Management mod
Post by: andsim on February 09, 2017, 03:26:59 PM
i came across ad wont display
here r install issues and what look like
no ad showing
on smf 2.0.13
Title: Re: Ad Management mod
Post by: vbgamer45 on February 09, 2017, 03:45:46 PM
You are not using the core them so you do not have to worry about that. Continue the install.

Make sure each membergroup has permission to view ads
Also make sure under options  for ad management that you have ads enabled for admins
Title: Re: Ad Management mod
Post by: andsim on February 09, 2017, 04:05:08 PM
Quote from: vbgamer45 on February 09, 2017, 03:45:46 PM
You are not using the core them so you do not have to worry about that. Continue the install.

Make sure each membergroup has permission to view ads
Also make sure under options  for ad management that you have ads enabled for admins
gotta now it was google adsense u had to wait
Title: Re: Ad Management mod
Post by: TrackMustangsOnline on February 11, 2017, 12:44:18 PM
Hi, I migrated to a new host and installed a fresh load of SMF 2.0.13 and used my existing DB.  Many of my mods are either not working or working but showing they are not installed.  Anyway with Ad Management 3.0.1 I'm getting the following screen.  How should I proceed on this?  Do I select Execute Modification and Install or should I delete the mode and load the latest version?

Thanks for your advice.

(http://i918.photobucket.com/albums/ad21/duffinator1/Misc/Screen%20Shot%202017-02-11%20at%209.13.51%20AM_zpswia62kpr.png) (http://s918.photobucket.com/user/duffinator1/media/Misc/Screen%20Shot%202017-02-11%20at%209.13.51%20AM_zpswia62kpr.png.html)
Title: Re: Ad Management mod
Post by: vbgamer45 on February 11, 2017, 01:30:56 PM
Still install don't worry about the core theme

If GTS is your main theme you will have to make the theme edits manually.
You can upload the package to http://smfhacks.com/smf-package-parser.html and try to get manaul theme install instructions.
Title: Re: Ad Management mod
Post by: TrackMustangsOnline on February 11, 2017, 03:03:11 PM
Thanks.  I'm getting the following error message but I can't figure out why.

Out of range value for column 'HITS' at row 1
File: /var/www/trackmustangsonline.com/htdocs/Sources/LoadAds.php
Line: 298
Title: Re: Ad Management mod
Post by: vbgamer45 on February 11, 2017, 03:08:09 PM
Run this sql query on your forums database

alter table smf_ads HITS HITS BIGINT NOT NULL default '0';
Title: Re: Ad Management mod
Post by: TrackMustangsOnline on February 11, 2017, 03:15:51 PM
Thanks.  I'm making progress.
Title: Re: Ad Management mod
Post by: gccb on February 23, 2017, 08:19:41 PM
SMF version: 1.1.21
Theme: Anone

- Hi all. I recently had to reinstall a fresh version of the Anone theme due to me mucking up a file.
- Before my muck up, Ad's v3.2 was working great.
- After the Anone theme reinstall, the ad's are no longer working.
- I reinstalled Ad's v.3,2 but with no luck.
- The classic default theme shows the ad's up fine though.
- All user permissions in the SMF admin are set on to see ad's
- I'm guessing I have to manually set some permission via FTP?

Any help is much appreciated.

Thanks,
Rodney.
Title: Re: Ad Management mod
Post by: vbgamer45 on February 23, 2017, 08:55:44 PM
You have to manually install the theme edits for any custom theme.
Title: Re: Ad Management mod
Post by: gccb on February 24, 2017, 12:01:04 AM
Quote from: vbgamer45 on February 23, 2017, 08:55:44 PM
You have to manually install the theme edits for any custom theme.

:o It was working automatically in Anone before I reinstalled that theme.

Sorry to be a pain. Is there a how-to page for dummies with the manual edit instructions?

Thank you.
Rodney.
Title: Re: Ad Management mod
Post by: Kindred on February 24, 2017, 01:27:53 AM
Yes... you reinstalled the theme... which means that any modifications that had been made to that theme were undone. It is likely that you will have other mods that need manuals installation as well.
Title: Re: Ad Management mod
Post by: vbgamer45 on February 24, 2017, 01:28:37 AM
Upload the package to http://smfhacks.com/smf-package-parser.html and do the theme edits to your custom theme

Title: Re: Ad Management mod
Post by: gccb on February 24, 2017, 04:50:30 AM
Cool,

Thanks guys.  :)
Title: Re: Ad Management mod
Post by: samimikawi on March 06, 2017, 02:37:39 AM
hi guys great mode but is there a way to add a group into settings so i can disable adds not only for admin for another group also ?
Title: Re: Ad Management mod
Post by: samimikawi on March 06, 2017, 04:02:21 AM
found it sorry guys

Just like in the previous versions, you can have permissions on who is able to view the ads. By default everyone views the ads. To deny users from viewing ads, you go into Admin > Permissions > Modify (the group you want to change the permission for).
You then look for the title "Enable ads" and either disallow or allow the ad code to display.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 06, 2017, 08:58:36 AM
Glad you found it!
Title: Re: Ad Management mod
Post by: exx1976 on March 21, 2017, 07:54:35 AM
I apologize if this question has already been asked/answered, but with 381 pages in this thread, I just can't seem to find it if that's the case.


I was able to get the mod installed successfully (I think?).  It's installed, no errors, and I made the manual modifications to the theme I'm using - no errors or troubles that I can see.

I'd like to start adding advertisements now, obviously, but I have no idea what size their ads should be.

Is there a listing/chart somewhere that shows recommended ad sizes for the various ad types?

Thanks!
Title: Re: Ad Management mod
Post by: vbgamer45 on March 21, 2017, 08:34:34 AM
There is but i don't remember where it is at I had it on http://www.smfads.com/forums/index.php
Title: Re: Ad Management mod
Post by: exx1976 on March 21, 2017, 08:38:38 AM
Umm, thanks?

Do you happen to know where?  The search function doesn't work on that board, and there's a few thousand posts...
Title: Re: Ad Management mod
Post by: vbgamer45 on March 21, 2017, 08:42:42 AM
No i don't
Title: Re: Ad Management mod
Post by: exx1976 on March 21, 2017, 09:12:38 AM
But you wrote this, right?  And that's your forum, isn't it?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 21, 2017, 09:26:56 AM
No i didn't write. I took it over many years ago. You would have to search.
Title: Re: Ad Management mod
Post by: exx1976 on March 21, 2017, 09:43:30 AM
Okay, but the $10 I just paid went in your pocket, yes?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 21, 2017, 09:55:07 AM
And???
Title: Re: Ad Management mod
Post by: exx1976 on March 21, 2017, 09:56:05 AM
Nice.

I'm so glad you're hear to support your product, it's truly invaluable.
Title: Re: Ad Management mod
Post by: wildmck8 on March 22, 2017, 07:11:00 PM
Hi all, I've searched but couldn't find anything.  If I missed it, I apologize.  Like the subject says, for some reason lately my adsense ads are not showing for guests. They are only showing for logged in members.

Does anyone know why and maybe have a fix?

TIA
Title: Re: Ad Management mod
Post by: lurkalot on March 22, 2017, 07:19:47 PM
Quote from: wildmck8 on March 22, 2017, 07:11:00 PM
Hi all, I've searched but couldn't find anything.  If I missed it, I apologize.  Like the subject says, for some reason lately my adsense ads are not showing for guests. They are only showing for logged in members.

Does anyone know why and maybe have a fix?

TIA

Guessing this is a silly question, but have you checked your permissions settings?

"Permissions

Just like in the previous versions, you can have permissions on who is able to view the ads. By default everyone views the ads. To deny users from viewing ads, you go into Admin > Permissions > Modify (the group you want to change the permission for).
You then look for the title "Enable ads" and either disallow or allow the ad code to display. "
Title: Re: Ad Management mod
Post by: wildmck8 on March 22, 2017, 08:28:15 PM
Quote from: lurkalot on March 22, 2017, 07:19:47 PM
Quote from: wildmck8 on March 22, 2017, 07:11:00 PM
Hi all, I've searched but couldn't find anything.  If I missed it, I apologize.  Like the subject says, for some reason lately my adsense ads are not showing for guests. They are only showing for logged in members.

Does anyone know why and maybe have a fix?

TIA

Guessing this is a silly question, but have you checked your permissions settings?

"Permissions

Just like in the previous versions, you can have permissions on who is able to view the ads. By default everyone views the ads. To deny users from viewing ads, you go into Admin > Permissions > Modify (the group you want to change the permission for).
You then look for the title "Enable ads" and either disallow or allow the ad code to display. "

You know, I've checked that section 3 times, and until now I never noticed the "Enable ads" option.  It was unticked.  Thanks, problem solved!
Title: Re: Ad Management mod
Post by: turboguy on March 29, 2017, 01:19:45 PM
Well I have spend most of the morning playing around unsuccessfully trying to do something and have read a dozen pages or so here but since I have pulled out whatever hair I had will give up and ask.  Keep in mind the hair I pulled out was covering up a very small amount of brain matter (another way of saying I am not that bright)

So what I wanted to do was to have a stack of ads on the right side of my forum using the ad management mod

Just for reference I am running SMF 2.0.12,  Simple Portal 2.3.4 and Ad Management 3.0.1

When I first tried to add an ad to the right side of my forum I had some portal blocks there and it put the ad to the right of the portal blocks which didn't look good so I moved the portal blocks all to the left.

So now I was able to put an ad on the right side however. I was hoping to stack three ads on the right side and if I do the first one it shows fine.  If I add the second the first one disappears and only shows the second.  Is there any way I can stack these ads?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 29, 2017, 01:22:48 PM
Not at the moment. You could create a custom html with a table and have ads in the table then put that in the ad block code area.
Title: Re: Ad Management mod
Post by: turboguy on March 29, 2017, 01:32:07 PM
Thanks for the quick response.   I will give that a try.
Title: Re: Ad Management mod
Post by: turboguy on March 29, 2017, 02:04:13 PM
I did give it a try and it works great.   Thanks for the help and I have always loved this mod.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 29, 2017, 02:18:03 PM
Glad to help!
Title: Re: Ad Management mod
Post by: turboguy on April 06, 2017, 01:32:29 PM
I appreciate the help which was amazingly quick and great but unfortunately I am back with a new problem.

I have had Ad management installed for several years and have run a horizontal ad at the top and bottom of our forum.  Everything was fine.

When I posted my last problem I was trying to post basically tower ads on the left side of my forum.  I had posted about doing more than one ad and your suggestion worked great however.

For some reason it stopped the forum from working.  If someone tried to make a post on the forum instead of being able to do that when they clicked on anything it would send them to another page on our main web site.  For the moment I have removed Ad Management from the forum and the forum is working normally now but I do want to be able to run Ad Management.   Any thoughts or suggestions.

I am running SMF 2.0.12,  Simple Portal 2.3.4 and was running Ad Management 3.0.1
Title: Re: Ad Management mod
Post by: vbgamer45 on April 07, 2017, 07:07:36 PM
That would probably mean you entered bad html code post the code you used in the block.
Title: Re: Ad Management mod
Post by: Pbeer on April 25, 2017, 08:27:07 AM
Hi, I've some problem and need your help, please. For information, I'm a programmer, so I can edit PHP code.

I using this mod v.3.2 with smf v2.0.13. It's now everything installed and work find.

But my problem is I want to reposition some ads type. I tried to do it myself and already search and read many page and didn't find solution.

Ads position that I want to reposition it is:


Please guide me how can I reposition these ads. Which file do I have to work with? Thanks a lot.
Title: Re: Ad Management mod
Post by: vbgamer45 on April 25, 2017, 08:46:17 AM
You would have to take out of adsheaders_above and adsheaders_below if you want to move those ads around.
We use  template layers to setup those ads so it works on all themes
You would need to move those function to your index.template.php instead of having it that ads file.
Title: Re: Ad Management mod
Post by: Pbeer on April 25, 2017, 09:20:15 AM
Thanks for quickly reply.

But I'm not sure I understand right. Did you mean that it's only that 2 ads that can move around forum? And which file are they in?
Title: Re: Ad Management mod
Post by: vbgamer45 on April 25, 2017, 09:31:16 AM
You can really move around the ads the mod modifies the template files.
If they are in  Ads.template.php  you would have to take them out of that file and place them in your theme files if wish to move them in different spots.
Title: Re: Ad Management mod
Post by: Pbeer on April 25, 2017, 09:57:49 AM
OK, it's now on on there position. Thanks you very much.
Title: Re: Ad Management mod
Post by: tranhiep_116 on April 25, 2017, 10:12:44 AM
I install this mod but nothing happen  >:(
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on April 25, 2017, 10:48:21 AM
Quote from: tranhiep_116 on April 25, 2017, 10:12:44 AM
I install this mod but nothing happen  >:(

Have you gone into the admin settings for the mod and set up an ad?

Title: Re: Ad Management mod
Post by: KyrrTube on May 03, 2017, 11:32:26 AM
Can somebody help me fix the error in reseller theme? I fix the display.template.php but I can't do it on BoardIndex.template and index.template

Title: Re: Ad Management mod
Post by: Harvester on May 11, 2017, 06:49:30 PM
I was just told by a member that his ad blocker blocks all the banners on my tower ad space. Is there any way around this?
Title: Re: Ad Management mod
Post by: vbgamer45 on May 11, 2017, 07:05:20 PM
No there is no effective way to stop adblockers
Title: Re: Ad Management mod
Post by: Harvester on May 11, 2017, 10:51:16 PM
I dont know if this will help someone in the future but...

i figured out why my ads were being blocked by AdBlock Plus...

I had 90% of my banners in a folder on my server called "ad_images" The other 10% were in a couple other folders.
When I looked at all that AdBlocker could block (Control Shift U on AdBlocker to "open blockable items") I saw that the files that were blocked were all in the ad_images folder. I moved those to a different folder, changed my code and voila.. all resolved. All ads now show. :)

Title: Re: Ad Management mod
Post by: mysimplesite on June 09, 2017, 01:22:25 AM
Ad Management error on install. No other mods, brand new SMF board, latest Ad Management extension for latest SMF version.

Removed Package. Downloaded another, unzipped and uploaded, got same error.

Error in Package Installation:
8.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Add After    ./Themes/default/index.template.php    Test failed

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Title: Re: Ad Management mod
Post by: vbgamer45 on June 09, 2017, 08:05:30 AM
Click on that entry ti should tell you the details of what line of code it can't edit.
Title: Re: Ad Management mod
Post by: mysimplesite on June 09, 2017, 11:17:20 AM
Added code according to details. Uploaded program again with corrected file. Got same error message. Checked details and saw proper code was in place. Installed anyway.

Program seems to work fine even though final install showed error again (add code below such and such) despite code being where it should be when edit window opened in Ad Management program.

Tried some test ad code and everything worked fine. Very happy with program. Just seemed weird program would report some code needed to be added during install when code was already there. I probably did something weird. But it works.
Title: Re: Ad Management mod
Post by: mysimplesite on June 11, 2017, 01:31:10 PM
Does Ad Management function properly with 2.1 beta 3?
Title: Re: Ad Management mod
Post by: vbgamer45 on June 11, 2017, 01:50:06 PM
Not at this time.
Title: Re: Ad Management mod
Post by: andsim on June 19, 2017, 12:33:48 AM
i got this
8.Execute Modification./Themes/default/index.template.phpTest failed[/size][/font]
[/size][size=0.85em][/font][/size][/size][/font][/size][size=0.85em]1.[/size][size=0.85em]Add After[/size][size=0.85em]./Themes/default/index.template.php[/size][size=0.85em][/color]Test failed[/size][/color]

Quote
for this mod
Title: Re: Ad Management mod
Post by: vbgamer45 on June 19, 2017, 12:35:19 AM
You will need to make that change manually proceed with the install.
Title: Re: Ad Management mod
Post by: swo0p on June 26, 2017, 01:05:26 PM
Hello,

i need help with SMF 2.0.14 and Ad Management v2.3.

I've just install this mod and add Google ad sense code. Unfortunately, the ad is not showing

Any ideas to solve it?
Title: Re: Ad Management mod
Post by: vbgamer45 on June 26, 2017, 02:23:15 PM
Adsense takes time to show up on new sites. Also if they don't like the content of the page it won't show up.
Make sure you have permissions to view ads.
Title: Re: Ad Management mod
Post by: swo0p on June 27, 2017, 12:00:17 PM
@vbgamer45 thanks, but I've just put new adsense code into this mod and old one works well from template.index
Title: Re: Ad Management mod
Post by: vbgamer45 on June 27, 2017, 12:04:22 PM
Check permissions to view ads.
Title: Re: Ad Management mod
Post by: swo0p on June 27, 2017, 05:25:27 PM
Quote from: vbgamer45 on June 27, 2017, 12:04:22 PM
Check permissions to view ads.
where i can do that?
Title: Re: Ad Management mod
Post by: vbgamer45 on June 27, 2017, 05:53:54 PM
Admin -> Permissions then modify each group
Make sure they can view ads permissions
Title: Re: Ad Management mod
Post by: swo0p on June 28, 2017, 11:13:39 AM
on every gropup Enable ads is checked
Title: Re: Ad Management mod
Post by: vbgamer45 on June 28, 2017, 12:18:14 PM
Link to your site with page that has ads on them
Title: Re: Ad Management mod
Post by: swo0p on June 28, 2017, 12:35:24 PM
for example: http://forum.toyotaklub.org.pl/avensis/drgania-kierownicy-ankieta!/msg527540/#new
Title: Re: Ad Management mod
Post by: vbgamer45 on June 28, 2017, 12:40:36 PM
can't see site maintenance mode
Title: Re: Ad Management mod
Post by: swo0p on June 28, 2017, 12:47:38 PM
Quote from: vbgamer45 on June 28, 2017, 12:40:36 PM
can't see site maintenance mode
sorry ... try now :)
Title: Re: Ad Management mod
Post by: vbgamer45 on June 28, 2017, 12:51:03 PM
I see the adcode there. So the ad management mod is working.
Title: Re: Ad Management mod
Post by: swo0p on June 28, 2017, 01:00:16 PM
Quote from: vbgamer45 on June 28, 2017, 12:51:03 PM
I see the adcode there. So the ad management mod is working.
Yes, but it is few days that I added adsense code and I can't see it
Title: Re: Ad Management mod
Post by: mysimplesite on July 07, 2017, 03:56:36 PM
Anyone got this to work on ShelfLife on 2.0.14?
Title: Re: Ad Management mod
Post by: vbgamer45 on July 07, 2017, 10:20:33 PM
You can upload the mod to http://www.smfhacks.com/smf-package-parser.html then follow the theme edits.
Title: Re: Ad Management mod
Post by: SMFHacks.com Team on July 08, 2017, 12:09:12 AM
Update!

Version 3.3
Ads no longer shown on login,register,reminder pages to better comply with google adsense. If you want them appear edit LoadAds.php
Title: Re: Ad Management mod
Post by: mysimplesite on July 08, 2017, 01:40:47 PM
Quote from: vbgamer45 on July 07, 2017, 10:20:33 PM
You can upload the mod to http://www.smfhacks.com/smf-package-parser.html then follow the theme edits.

Unfortunately I run into the same problem; the find code doesn't exist in shelf life theme.

For example, the smfhacks suggests I should look in boardindex.template.php for "// Show some statistics if stat info is off.". That line doesn't exist in ShelfLife. Searching on 'stats' returned a few lines of code with stats, so I looked for where that code section started and placed the code suggested by smfhacks above it. Just got error messages about improper coding.

If anyone has gotten Ad Management to function properly on ShelfLife theme please let me know how you did it.
Thanks.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 08, 2017, 02:48:54 PM
Attach the file that says error message improper coding.
You probably need to put the code in an echo statement with 's around it.
Title: Re: Ad Management mod
Post by: swo0p on July 09, 2017, 03:41:52 PM
Quote from: vbgamer45 on June 28, 2017, 12:51:03 PM
I see the adcode there. So the ad management mod is working.
I hope so it's working, but ads still do not shows :(
Title: Re: Ad Management mod
Post by: vbgamer45 on July 09, 2017, 05:42:21 PM
you might have an ad blocker on
Title: Re: Ad Management mod
Post by: swo0p on July 10, 2017, 12:26:19 PM
Adblock is disabled on this site :(

Does it work for you?
Title: Re: Ad Management mod
Post by: vbgamer45 on July 10, 2017, 12:29:41 PM
I block google ads on my end.
Title: Re: Ad Management mod
Post by: swo0p on July 10, 2017, 12:31:44 PM
It is good idea, but can You check it, please?
Title: Re: Ad Management mod
Post by: vbgamer45 on July 10, 2017, 02:06:57 PM
I see the ads on my work computer.
Title: Re: Ad Management mod
Post by: swo0p on July 10, 2017, 02:44:00 PM
I mean ad on this site:

http://forum.toyotaklub.org.pl/index.php/topic,41191.msg581254.html#new

but not in footer. A a Toyota Klub user as a latest post

PS. Sorry for my english
Title: Re: Ad Management mod
Post by: vbgamer45 on July 10, 2017, 04:23:23 PM
I see it in footer
not in post
Title: Re: Ad Management mod
Post by: virtualdave on July 16, 2017, 02:46:54 PM
I'm getting the problem described below. I tried the suggested query using My PHP admin but it didn't fix the issue. I'm not experienced in manipulating databases did I miss something in the process?
thanks

QuoteThanks.  I'm getting the following error message but I can't figure out why.

Out of range value for column 'HITS' at row 1
File: /var/www/trackmustangsonline.com/htdocs/Sources/LoadAds.php
Line: 298

Quote from: vbgamer45 on February 11, 2017, 03:08:09 PM
Run this sql query on your forums database

alter table smf_ads HITS HITS BIGINT NOT NULL default '0';

Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on July 16, 2017, 04:04:50 PM
Quote from: virtualdave on July 16, 2017, 02:46:54 PM
I'm getting the problem described below. I tried the suggested query using My PHP admin but it didn't fix the issue. I'm not experienced in manipulating databases did I miss something in the process?
thanks

QuoteThanks.  I'm getting the following error message but I can't figure out why.

Out of range value for column 'HITS' at row 1
File: /var/www/trackmustangsonline.com/htdocs/Sources/LoadAds.php
Line: 298

When you ran that qry, what did the message say, was it successful in in resetting that field, did it say anything about changing a value?

Quote from: vbgamer45 on February 11, 2017, 03:08:09 PM
Run this sql query on your forums database

alter table smf_ads HITS HITS BIGINT NOT NULL default '0';

Title: Re: Ad Management mod
Post by: vbgamer45 on July 16, 2017, 07:05:46 PM
That query should fix it.
Title: Re: Ad Management mod
Post by: virtualdave on July 16, 2017, 07:40:01 PM
I'm probably not doing it correctly. I got no message
Title: Re: Ad Management mod
Post by: vbgamer45 on July 16, 2017, 08:07:48 PM
Make sure you are doing it on right database for your forum and right database prefix.
Title: Re: Ad Management mod
Post by: virtualdave on July 16, 2017, 08:29:33 PM
OK I did a bit of studying and tried it again with this message as a result.

Quote#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'HITS HITS BIGINT NOT NULL default '0'' at line 1
Title: Re: Ad Management mod
Post by: vbgamer45 on July 16, 2017, 08:32:07 PM
What's the exact sql query you used?
Title: Re: Ad Management mod
Post by: virtualdave on July 16, 2017, 08:34:14 PM
I copied this from the post I quoted and changed the table prefix to match mine as follows:

alter table ice_ads HITS HITS BIGINT NOT NULL default '0';
Title: Re: Ad Management mod
Post by: vbgamer45 on July 16, 2017, 08:58:26 PM
Change to
Quote
alter table ice_ads change HITS HITS BIGINT NOT NULL default '0';
Title: Re: Ad Management mod
Post by: virtualdave on July 16, 2017, 09:03:20 PM
That did the trick! thanks for your assistance.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 16, 2017, 09:40:59 PM
glad to help
Title: Re: Ad Management mod
Post by: EvcRo on August 14, 2017, 03:18:02 AM
Hello,

your mod fails on a brand new basic installed 2.0.14

the only other mod present is pretty urls


Code: (Find) [Select]

echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}

Title: Re: Ad Management mod
Post by: vbgamer45 on August 14, 2017, 08:27:50 AM
Yes that changed. Install the mod then make the edit to that line of code manuallly.
Title: Re: Ad Management mod
Post by: SMFHacks.com Team on August 15, 2017, 03:13:58 PM
Update!
Fixed so it installs cleanly on SMF 2.0.14 due to login form change.
Title: Re: Ad Management mod
Post by: wzol on August 16, 2017, 01:29:44 AM
Thank you for the update! :)

Can I set somewhere to show an ad only to guests? I suppose I need $context['user']['is_guest'] but don't know how to set it up.
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on August 16, 2017, 01:39:06 AM
Quote from: wzol on August 16, 2017, 01:29:44 AM
Thank you for the update! :)

Can I set somewhere to show an ad only to guests? I suppose I need $context['user']['is_guest'] but don't know how to set it up.

Yes, its even easier than what you thought if I read your intent correctly... you would want to go into smf admin options for setting member group permissions, if I understand your intent you need to go into the permissions for the guests group and tick the box regarding the ads module and go into all the other groups you have installed and un-tick the box for ads in those... no code editing necessary
Title: Re: Ad Management mod
Post by: wzol on August 16, 2017, 02:20:01 AM
Wow, it sounds so easy, this would be more than I wished for - unfortunately I can't find this at the group permissions. Could you help me with a screenshot about where to find this?
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on August 16, 2017, 02:26:50 AM
Quote from: wzol on August 16, 2017, 02:20:01 AM
Wow, it sounds so easy, this would be more than I wished for - unfortunately I can't find this at the group permissions. Could you help me with a screenshot about where to find this?

In your main menu do you have an option called Admin? under that menu if its set up correctly when you hover your cursor over the Admin option it should display a drop down sub-menu, in that drop down there should be one called "Permissions", that's the one you want... under that you should see a list of the member groups you have set up...

Title: Re: Ad Management mod
Post by: wzol on August 16, 2017, 04:07:47 AM
That is great, found it! Thank you very much!  :)
Title: Re: Ad Management mod
Post by: NeedIt on September 03, 2017, 12:43:32 AM
I have built a test forum that is up to SMF 2.0.13.  The PHP version is currently 5.3.29 sitting on Windows if that matters.

My next goal is to add the Ad Management module and then after that I want to try the Responsive Curve.  When all is said and done, I am hoping that everything looks good and works and then I will try it on my live forum. 

Okay, so I started with trying to add Ad Management.  I did this by downloading the zip and then clicking the Install Now that does the testing phase. Here is what I got:

1.   Execute Code   install.php   
*   2.   Execute Modification   ./index.php   Test successful
*   3.   Execute Modification   ./Sources/Admin.php   Test successful
*   4.   Execute Modification   ./Sources/QueryString.php   Test successful
*   5.   Execute Modification   ./Themes/default/BoardIndex.template.php   Test successful
*   6.   Execute Modification   ./Themes/default/Display.template.php   Test successful
*   7.   Execute Modification   ./Themes/default/MessageIndex.template.php   Test successful
*   8.   Execute Modification   ./Themes/default/index.template.php   Test successful
*   9.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
10.   Extract File   ./Sources/Ads.php   
11.   Extract File   ./Sources/LoadAds.php   
12.   Extract File   ./Themes/default/Ads.template.php   
13.   Extract File   ./Themes/default/languages/Ads.english.php   
14.   Extract File   ./Themes/default/languages/Ads.english-utf8.php

Okay, so far so good, right?  Well, the part below says this:


Install in Other Themes
To use this modification in themes other than the default, the package manager needs to make additional changes to the other themes. If you'd like to install this modification in the other themes, please select these themes below.
   Core Theme
   Execute Modification   ./Themes/core/BoardIndex.template.php   Test failed
   1.   Add Before   ./Themes/core/BoardIndex.template.php   Test successful
   2.   Add After   ./Themes/core/BoardIndex.template.php   Test failed
   Execute Modification   ./Themes/core/Display.template.php   Test failed
   1.   Add After   ./Themes/core/Display.template.php   Test successful
   2.   Replace   ./Themes/core/Display.template.php   Test successful
   3.   Replace   ./Themes/core/Display.template.php   Test failed
   Execute Modification   ./Themes/core/MessageIndex.template.php   Test failed
   1.   Add After   ./Themes/core/MessageIndex.template.php   Test successful
   2.   Replace   ./Themes/core/MessageIndex.template.php   Test failed
   Execute Modification   ./Themes/core/index.template.php   Test successful
   1.   Add After   ./Themes/core/index.template.php   Test failed (Ignore Errors)
   2.   Add After   ./Themes/core/index.template.php   Test successful

Now to be clear:  I am currently on the default theme and that produced the results above.  So am I okay to do the Ad Management mod now?  And what are the odds that I can add the Responsive Curve mod to it.

Basically, my goal is a responsive forum with the Ad Management module.
Title: Re: Ad Management mod
Post by: vbgamer45 on September 03, 2017, 08:28:43 AM
Its ok if you are just using the default theme.

You can add the responsive curve mod as well.
Title: Re: Ad Management mod
Post by: NeedIt on September 03, 2017, 10:15:18 AM
Quote from: vbgamer45 on September 03, 2017, 08:28:43 AM
Its ok if you are just using the default theme.

You can add the responsive curve mod as well.

Okay, so, if I understand the messages above, the Ad Mod is saying that it will work with anything "Curve".  I believe Curve is the default theme for SMF I'm good there.  In addition, if I add the Responsive Curve mod, I am also okay, because it is just a mod to the original theme.  Am I looking at that correctly?

Title: Re: Ad Management mod
Post by: vbgamer45 on September 03, 2017, 10:35:39 AM
Yes
Title: Re: Ad Management mod
Post by: NeedIt on September 03, 2017, 12:10:29 PM
Quote from: vbgamer45 on September 03, 2017, 10:35:39 AM
Yes

Tx!
Title: Re: Ad Management mod
Post by: NeedIt on September 05, 2017, 09:04:40 PM
Quote from: vbgamer45 on September 03, 2017, 10:35:39 AM
Yes

Hey, I didn't get a response over on the Responsive Curve Mod thread.  https://www.simplemachines.org/community/index.php?topic=535718.340

Basically, everything seemed to go great but the ads just don't display. 

Okay is there a way to hack ads into the Responsive Curve?  I just need 3-4 banners in there?  Or is there a responsive theme that I should pay for that works with Ad Management?  I just need responsive somehow some way with 3-4 ads.  I'm open to any reasonable idea.
Title: Re: Ad Management mod
Post by: vbgamer45 on September 05, 2017, 09:26:14 PM
What type of ads? are you using? And did you enable each membergroup to show ads?
Title: Re: Ad Management mod
Post by: NeedIt on September 05, 2017, 09:57:39 PM
Quote from: vbgamer45 on September 05, 2017, 09:26:14 PM
What type of ads? are you using? And did you enable each membergroup to show ads?

Ahem.  Well, that's embarrassing.  I was logged in as admin:  the ads were displaying just fine for regular members.

Thx again.
Title: Re: Ad Management mod
Post by: vbgamer45 on September 05, 2017, 09:59:58 PM
Glad it is working now.
Title: Re: Ad Management mod
Post by: engrz on September 28, 2017, 06:34:03 AM
I have forum www.engrz.org and I'm using ad management mod, I want to know the settings or option so that I want to disable ads for single board for example "Bollywood MP3" how to disable ads only for Bollywood MP3 board?
Title: Re: Ad Management mod
Post by: vbgamer45 on September 28, 2017, 09:00:33 AM
Yes you can if you want to disable a single board.
You have to edit each ad and in the "Which boards should this ad display in" setting enter the number of each board separated by comma.
Title: Re: Ad Management mod
Post by: engrz on September 28, 2017, 10:12:35 AM
Quote from: vbgamer45 on September 28, 2017, 09:00:33 AM
Yes you can if you want to disable a single board.
You have to edit each ad and in the "Which boards should this ad display in" setting enter the number of each board separated by comma.

How to know which board is this "Bollywood MP3 "? I'm using board 1,2
Title: Re: Ad Management mod
Post by: vbgamer45 on September 28, 2017, 10:16:21 AM
You have to check under admin manage boards and get the id.
Title: Re: Ad Management mod
Post by: engrz on September 28, 2017, 11:03:58 AM
Quote from: vbgamer45 on September 28, 2017, 10:16:21 AM
You have to check under admin manage boards and get the id.

Im under manage boards, but unable to find board id.

I have total 16 boards on www.engrz.org and im using 1,2,3,4,5,6,7,8,9,10,11,15,16 to show ads, but it is not skipping board 12,13,14 . and im unable to see board number or id.
Title: Re: Ad Management mod
Post by: vbgamer45 on September 28, 2017, 01:09:54 PM
you have to hover the link when you edit a board. The id is in the url.
Title: Re: Ad Management mod
Post by: engrz on September 28, 2017, 11:27:41 PM
Quote from: vbgamer45 on September 28, 2017, 01:09:54 PM
you have to hover the link when you edit a board. The id is in the url.

I have done this... Thank you for nice guidance.
Title: Re: Ad Management mod
Post by: vbgamer45 on September 28, 2017, 11:36:35 PM
glad to help
Title: Re: Ad Management mod
Post by: humbleworld on October 24, 2017, 03:21:16 AM
After I uninstall the the old version of the mod, my site had stopped working. I could no longer access it. What shall I do?
Title: Re: Ad Management mod
Post by: vbgamer45 on October 24, 2017, 08:51:57 AM
Either revert to a backup.
Or try to uninstall manually upload mod to
https://www.smfhacks.com/smf-package-parser.html
Title: Re: Ad Management mod second skyscraper
Post by: mysimplesite on October 27, 2017, 10:59:35 AM
How do I add a second skyscraper ad? I've got one, but I'd like to add another below it.
Title: Re: Ad Management mod
Post by: vbgamer45 on October 27, 2017, 11:21:57 AM
Can't really. The best you could do is use html code in the current skyscraper and make a table with two rows
Title: Re: Ad Management mod
Post by: mysimplesite on October 27, 2017, 11:50:41 AM
I can only get ads to appear at top, bottom and side.

Using 2.014, php7, VVide theme.

Tried adding ads in posts ( set post as 1, 2 as test), and ads between categories (set categories as 1,2,3). Checked Display ads on board index and tried with Help Display ads on the post page checked or with Help Display ads on message index checked.

No ads appeared. What am I doing wrong?

During install added suggested Ad Management code to Index.template.php below <input type="hidden" name="hash_passwrd" value="" /><input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form> </div>
</div>
</div></div>';
}

There were no other install error notifications.
Title: Re: Ad Management mod
Post by: vbgamer45 on October 27, 2017, 01:14:00 PM
Make sure all the edits are made to your theme upload ad management mod to https://www.smfhacks.com/smf-package-parser.html
Title: Re: Ad Management mod
Post by: mysimplesite on October 27, 2017, 01:54:21 PM
Quote from: vbgamer45 on October 27, 2017, 01:14:00 PM
Make sure all the edits are made to your theme upload ad management mod to https://www.smfhacks.com/smf-package-parser.html

Parser fails to recognize file upload.

I get the same error each time I try to upload latest version of ad management or earlier versions to parser with 2.0.14 set:
Error:

No package was uploaded. Tried uploading when registered and not registered. Same results.

Using FireFox latest version. Tried Opera and got same error message.

All ad management files attempted to be uploaded were zip format.

Note: During SMF install preflight all code was tested successful for the VVide theme except for the ' Welcome Area/User ' code which I manually added according to the instructions and coding provided.
Title: Re: Ad Management mod
Post by: lather on October 30, 2017, 11:34:06 AM
After a move to a new server I needed to do a fresh files upload and database restoration and lost all mods,
When I try to re-install Ad Management mod I get this error message:
Please help.
Title: Re: Ad Management mod
Post by: vbgamer45 on October 30, 2017, 12:07:48 PM
Proceed with install then make the changes manually to your index.template.php file
Title: Re: Ad Management mod
Post by: lather on October 30, 2017, 07:54:05 PM
THanks, I will try.
Title: Re: Ad Management mod
Post by: lather on October 31, 2017, 09:57:11 AM
What does "Add After" mean. I am not a php coder.
Title: Re: Ad Management mod
Post by: d3vcho on October 31, 2017, 09:58:37 AM
Basically, you need to place the piece of code right after the code that appears in the box.
Title: Re: Ad Management mod
Post by: lather on October 31, 2017, 07:52:21 PM
Thanks guys, it worked.
Title: Re: Ad Management mod
Post by: dsanchez on November 21, 2017, 04:55:09 PM
Any idea how to get rid of this?

8: Undefined index: meta_data_google_title_blank

it appears in my error log.
Title: Re: Ad Management mod
Post by: vbgamer45 on November 21, 2017, 04:57:14 PM
That is not from this mod
Title: Re: Ad Management mod
Post by: Maxtor on January 15, 2018, 08:02:18 PM
core theme not working
Title: Re: Ad Management mod
Post by: vbgamer45 on January 15, 2018, 08:09:49 PM
You will have to install it manually on that theme.
Title: Re: Ad Management mod
Post by: Rickard on January 16, 2018, 01:51:48 AM
If i dont use core theme, do i need to add code to those templates, i get quite a few errors in core theme, and cant fins the code serarched after at all...
Will the forum stop working if core theme not updated with this code is my real question.
I have also mowed to new sever with PHP7

I use CS manual theme, and get 2 errors there also.
Cant find the code to serach for, how do i know where to manually add the code?
Title: Re: Ad Management mod
Post by: vbgamer45 on January 16, 2018, 09:19:54 AM
Basiclly what I do I look at where the edits occur on the default theme then find a similar spot in the custom theme to add the same code.
Title: Re: Ad Management mod
Post by: Rickard on January 17, 2018, 08:41:40 AM
OK, thank you, i Think i will try to get help for this.
Title: Re: Ad Management mod
Post by: forumdraco on February 03, 2018, 08:19:42 PM
Hi,

We have a small forum but we want to display some ads from our sponsors. It will maybe like 10 ads or something like that. Is there an howto somewhere how to accomplish this with the Ad management mod, can't seem to find one. A simply rotation of the ads would be good enough.

Thank you!
Title: Re: Ad Management mod
Post by: Bob Perry of Web Presence Consulting on February 03, 2018, 08:31:56 PM
Quote from: forumdraco on February 03, 2018, 08:19:42 PM
Hi,

We have a small forum but we want to display some ads from our sponsors. It will maybe like 10 ads or something like that. Is there an howto somewhere how to accomplish this with the Ad management mod, can't seem to find one. A simply rotation of the ads would be good enough.

Thank you!

Sure is a way to do it, but you must be familiar with how to create a simple banner and link it to the url of your sponsor's website or order page... and how to do all this in HTML
Title: Re: Ad Management mod
Post by: forumdraco on February 04, 2018, 12:21:33 AM
Quote from: Bob Perry of Web Presence Consulting on February 03, 2018, 08:31:56 PM
Quote from: forumdraco on February 03, 2018, 08:19:42 PM
Hi,

We have a small forum but we want to display some ads from our sponsors. It will maybe like 10 ads or something like that. Is there an howto somewhere how to accomplish this with the Ad management mod, can't seem to find one. A simply rotation of the ads would be good enough.

Thank you!

Sure is a way to do it, but you must be familiar with how to create a simple banner and link it to the url of your sponsor's website or order page... and how to do all this in HTML

Is there a tutorial somewhere or an example?

Creating the html would't be so hard I think, but I'm not sure how the mod does the rotation? Probably a backend needs to feed the mod data?
Title: Re: Ad Management mod
Post by: vbgamer45 on February 04, 2018, 07:08:43 AM
Rotation is done by just adding multiple ads to the same spot.

With html you could make a table if you want to have stackable ads or ads that are side by side.
Title: Re: Ad Management mod
Post by: forumdraco on February 04, 2018, 11:32:02 PM
Quote from: vbgamer45 on February 04, 2018, 07:08:43 AM
Rotation is done by just adding multiple ads to the same spot.

With html you could make a table if you want to have stackable ads or ads that are side by side.

But how do I create such a 'spot', that's where I'm missing some documentation... :-/

Eg: I have different jpg's that I want to show in some kind of rotation. Or even random. Where do I put those jpg's?

Edit: nvm, think I figured it out. I just put them in a folder on the server and make a html reference to the jpg... ;-)
Title: Re: Ad Management mod
Post by: vbgamer45 on February 04, 2018, 11:45:52 PM
Glad you have it figured out.
Title: Re: Ad Management mod
Post by: Kiriakos GR on February 12, 2018, 08:38:02 AM
Does Pro version has an easy to work control panel which the user will upload JPG banner at his own server and add web links, with out him to need to own Master degree at coding ?

I am sorry but major complain of entire number of people trying to administrate SMF forum this is about great  number of tweaks for its mod, that the user cannot remember of how to undo them or change them after few weeks or months.




Title: Re: Ad Management mod
Post by: vbgamer45 on February 12, 2018, 08:52:17 AM
Yes it does have an option to uploads banners from admin area and also users have the option if you allow them to buy their own ads.
More details at https://www.smfhacks.com/ad-seller-pro.php
Title: Re: Ad Management mod
Post by: Kiriakos GR on February 12, 2018, 04:28:32 PM
Thanks, I will consider getting a license.   
Title: Re: Ad Management mod
Post by: vbgamer45 on February 12, 2018, 04:40:36 PM
Cool, yeah has some neat features I use it on my sites and you can create your own custom ad locations as well or even put them on third party sites.
Title: Re: Ad Management mod
Post by: PenelopeQ on March 19, 2018, 08:47:53 PM
I have upgraded to 2.0.15 and installed the latest version and got the same message as that from Post #7719.
The code to find is not present for both sets of edit instructions.


First Edit Instructions
Quote from: Findglobal $context, $settings, $options, $scripturl, $modSettings, $txt;
Quote from: add after//Display Ads on the Message index
   if (function_exists("show_threadindexAds"))
   {
      $ads = show_threadindexAds();
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);
   }

Second Edit Instructions
Quote from: Findecho '
            </tbody>
         </table>
      </div>
   </div>';
Quote from: Replaceecho '
            </tbody>
         </table>
      </div>
   </div>';
   //Display Ads on the Message index
   if (function_exists("show_underchildren"))
   {
      $ads = show_underchildren();
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);
   }
   

The list of my mods--installed AND uninstalled--is below.

1.   TopicStarter Mod   1.7     [ Uninstall ] [ List Files ] [ Delete ]
2.   Topic & Board Note   1.0.3   [ Install Mod ] [ List Files ] [ Delete ]
3.   SMFPacks Popup Pro Mod   1.0.3     [ Uninstall ] [ List Files ] [ Delete ]
4.   Register At Post View v.1.1   1.1     [ Uninstall ] [ List Files ] [ Delete ]
5.   Search Sent PMs   1.4   [ Install Mod ] [ List Files ] [ Delete ]
6.   Personal Messages to Membergroups   1.4.3   [ List Files ] [ Delete ]
7.   Move Old Topics   1.3.8     [ Uninstall ] [ List Files ] [ Delete ]
8.   Last Active On MemberList   1.4     [ Uninstall ] [ List Files ] [ Delete ]
9.   Join Reason   1.3     [ Uninstall ] [ List Files ] [ Delete ]
10.   Global Headers Footers   2.0.1     [ Uninstall ] [ List Files ] [ Delete ]
11.   Default_Membergroup   1.0.1     [ Uninstall ] [ List Files ] [ Delete ]
12.   Board Notification Mod   1.2.2     [ Uninstall ] [ List Files ] [ Delete ]
13.   Bad Behavior mod   1.5.17   [ Install Mod ] [ List Files ] [ Delete ]
14.   Anti-Spam Links   1.0.1     [ Uninstall ] [ List Files ] [ Delete ]
15.   Alternative Menu With Top Menu Icon & Button Remover   1.4.2     [ Uninstall ] [ List Files ] [ Delete ]
16.   Advanced Topic Prefix Mod   4.0.3     [ Uninstall ] [ List Files ] [ Delete ]
17.   Ad Managment   3.1a   [ Install Mod ] [ List Files ] [ Delete ]
18.   Gender on Memberlist   1.5   [ List Files ] [ Delete ]
19.   SMFPacks Shoutbox Pro   1.0.9   [ Install Mod ] [ List Files ] [ Delete ]
20.   SMFPacks WYSIWYG Editor   2.0.7   [ Install Mod ] [ List Files ] [ Delete ]
21.   SMFPacks Personal Conversations   1.0.3   [ Install Mod ] [ List Files ] [ Delete ]
22.   Stop Spammer   2.3.9   [ Install Mod ] [ List Files ] [ Delete ]
23.   Anti-spam by CleanTalk   2.19     [ Uninstall ] [ List Files ] [ Delete ]
24.   Forum Firewall   2.0.0     [ Uninstall ] [ List Files ] [ Delete ]
25.   Akismet Spam Blocking   2.0     [ Uninstall ] [ List Files ] [ Delete ]
26.   Ad Managment   3.3a   [ Install Mod ] [ List Files ] [ Delete ]
Title: Re: Ad Management mod
Post by: vbgamer45 on March 19, 2018, 10:16:18 PM
I recommend looking at the normal SMF install and see the code changes and then compare to your install.
Title: Re: Ad Management mod
Post by: RFD on March 25, 2018, 09:26:12 AM
added AM to a test 2.0.15 and it worked just fine.

added AM to a live 2.0.15 and only admins can see the ads, not members ... did a lot of looking and searching --- baffled on this!?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 25, 2018, 10:06:36 AM
Admin -> Permissions modify each group so they can see ads
Title: Re: Ad Management mod
Post by: RFD on March 25, 2018, 10:15:44 AM
hmmm.  in each memergroups permissions, i don't see a switch to see ads?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 25, 2018, 10:47:23 AM
"Enable ads" under "Carry out administrative duties"
Title: Re: Ad Management mod
Post by: RFD on March 25, 2018, 10:56:42 AM
Quote from: vbgamer45 on March 25, 2018, 10:47:23 AM
"Enable ads" under "Carry out administrative duties"

yep, was just about to post that i found it - thanx!  about to sign up for copyright removal, what a great mod!!!
Title: Re: Ad Management mod
Post by: vbgamer45 on March 25, 2018, 01:03:28 PM
Glad that worked!
Title: Re: Ad Management mod
Post by: delta5 on April 13, 2018, 10:39:57 AM
I am running 2.0.15 with the DeepBlue theme. Am getting install errors. Anyone have any ideas?
Title: Re: Ad Management mod
Post by: vbgamer45 on April 13, 2018, 10:48:54 AM
You will have to install it manually on your theme. You can do the normal edits but then have to edit your theme manually
Title: Re: Ad Management mod
Post by: IsaacWalker39 on April 21, 2018, 01:28:08 PM
I think more focus for different pages could help with clickkthroughs like based on categories you could set for each page you display it on. More customization on the content being displayed to target your users in a more focused way.
Title: Re: Ad Management mod
Post by: Rob Lightbody on May 02, 2018, 06:42:50 AM
Installed on 2.0.15 and working, thank you.

I'm using it as part of a campaign to motivate Guests to login!

Just a tip for anyone else - it took me a while to find the permissions setting for guests - you need to go to Members > Permissions > General Permissions >  and then switch the view to Classic - the required setting isn't visible under the Simple view.
Title: Re: Ad Management mod
Post by: vbgamer45 on May 02, 2018, 11:30:39 PM
Hmm will check out the simple view good tip
Title: Re: Ad Management mod
Post by: Sir Osis of Liver on May 29, 2018, 02:04:16 AM
Does this mod rotate ads?  Would like to display a dozen or so ads 2-3 at a time.
Title: Re: Ad Management mod
Post by: tranhiep_116 on May 29, 2018, 03:20:13 AM
oh, its probably conflicting with another mod or something
but this is nice mod
Title: Re: Ad Management mod
Post by: vbgamer45 on May 29, 2018, 08:01:47 AM
Quote from: Sir Osis of Liver on May 29, 2018, 02:04:16 AM
Does this mod rotate ads?  Would like to display a dozen or so ads 2-3 at a time.

This one does not.
Title: Re: Ad Management mod
Post by: Sir Osis of Liver on May 29, 2018, 05:52:44 PM
Does the paid version?  This forum (http://www.busconversions.com/bbs/) is running an ad manager, they have Ad Managment 2.3.6.1 in package manager, but it's listed as uninstalled.  I can code rotating ads into the header easily enough, but there wouldn't be an admin ui, and they want tracking features.
Title: Re: Ad Management mod
Post by: vbgamer45 on May 29, 2018, 06:16:14 PM
The paid version does rotate ads if multiple are assigned to the same spot.
Title: Re: Ad Management mod
Post by: Sir Osis of Liver on May 29, 2018, 06:17:50 PM
Can ads be placed in the header, between left logo and right userinfo?
Title: Re: Ad Management mod
Post by: vbgamer45 on May 29, 2018, 06:25:28 PM
Yes, and many more.
You can even make your own custom placements and placements on other websites.
Title: Re: Ad Management mod
Post by: Sir Osis of Liver on May 29, 2018, 06:32:26 PM
What does it cost?
Title: Re: Ad Management mod
Post by: vbgamer45 on May 29, 2018, 06:36:06 PM
More details can be found at https://www.smfhacks.com/ad-seller-pro.php  basiclly is an ad selling system people can buy ad space on your forum/site too
Title: Re: Ad Management mod
Post by: Sir Osis of Liver on May 29, 2018, 06:43:15 PM
Ok, I'll pass it on.  Have to do upgrade and migration first, then we'll take a look at it.

Thanks.
Title: Re: Ad Management mod
Post by: Obsydian on June 01, 2018, 12:36:13 PM
Hello!

So while I'm getting impressions (no money yet), the ads aren't showing up.  I've been checking it on browsers with incognito mode and browsers without adblock, and it appears the code is in the source of the page, but nothing shows up.

Here's a page to see:
https://www.thetarotforum.com/using-tarot/3-of-wands/msg30366/?topicseen#new

It would be under the last post, but nothing is there.

Thank you for your help!
Title: Re: Ad Management mod
Post by: vbgamer45 on June 01, 2018, 12:53:00 PM
If it is adsense it may take a couple days to appear.
Title: Re: Ad Management mod
Post by: Obsydian on June 02, 2018, 02:59:15 PM
Aha, okay I am seeing them now.

The only ones that aren't working are the ones I WANT to work, with this option...
Display ads after the last post

Those don't work and I'm unsure why.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 02, 2018, 05:14:05 PM
Are you using a custom theme? If so make sure your theme has all the edits.
Title: Re: Ad Management mod
Post by: mayheptad on June 19, 2018, 06:18:48 AM
 I am a complete beginnner here
i recently installed smf 2.0.15, and i install studio theme as well
so i  install ads management mod
         
i downloaded and upload it, and i wen i try to install it
i saw some text  that i did not understand some write test succesfull while some write test failed
  so at the bottom of the page it show me the botton to install
but before i procedd with the installation, i screenshot the error i got here so that the expert's in here can check it for me before i continue

   please check my attachment for the error
Title: Re: Ad Management mod
Post by: vbgamer45 on June 19, 2018, 08:39:12 AM
If you are not using the core theme that is ok to happen. If you are using studio you may have to make some changes manually. Proceed with the install.
Title: Re: Ad Management mod
Post by: mayheptad on June 25, 2018, 08:39:56 PM
i have replaced the line of code in the studio template
and the error is gone but what about the two errors below
please check my atachement
should i ignore it like it was written in the front of the error

Title: Re: Ad Management mod
Post by: vbgamer45 on June 25, 2018, 08:53:45 PM
Ignore install mod make changes later that's what i suggest
Title: Re: Ad Management mod
Post by: njtweb on August 11, 2018, 11:44:26 AM
Is the ad management mod no longer available? I don't have a need for the entire adseller package. I just want something easy like the adsense mod except with more placement options than that mod.
Title: Re: Ad Management mod
Post by: Arantor on August 11, 2018, 11:45:18 AM
Considering that it's linked in the first post of this topic, I'd say it is still available...
Title: Re: Ad Management mod
Post by: njtweb on August 11, 2018, 12:01:32 PM
I'm on his site and don't see anything but the adseller mod which has a bazillion different features.
Title: Re: Ad Management mod
Post by: d3vcho on August 11, 2018, 12:10:23 PM
Seems they're not offering it on their site. They have this instead; https://www.smfhacks.com/ad-seller-pro.php
Title: Re: Ad Management mod
Post by: vbgamer45 on August 11, 2018, 12:34:25 PM
Quote from: njtweb on August 11, 2018, 12:01:32 PM
I'm on his site and don't see anything but the adseller mod which has a bazillion different features.
It is still here.. https://custom.simplemachines.org/mods/index.php?mod=255

Ad Seller Pro is like ad management has more placements. But is more geared towards forums that want to sell adspace to other users or people who visit their site.
Title: Re: Ad Management mod
Post by: njtweb on August 11, 2018, 01:18:15 PM
Quote from: vbgamer45 on August 11, 2018, 12:34:25 PM
Quote from: njtweb on August 11, 2018, 12:01:32 PM
I'm on his site and don't see anything but the adseller mod which has a bazillion different features.
It is still here.. https://custom.simplemachines.org/mods/index.php?mod=255

Ad Seller Pro is like ad management has more placements. But is more geared towards forums that want to sell adspace to other users or people who visit their site.

Thank you, do you have anything on SMFhacks with screeners like the rest of your mods?
Title: Re: Ad Management mod
Post by: vbgamer45 on August 11, 2018, 01:26:01 PM
Can you explain screeners?
Title: Re: Ad Management mod
Post by: njtweb on August 11, 2018, 06:48:44 PM
Quote from: vbgamer45 on August 11, 2018, 01:26:01 PM
Can you explain screeners?

Screenshots, in the states we call the images screenshots of the admin interface. But I'm good now, Tinyportal actually allows me to place ads anywhere.
Title: Re: Ad Management mod
Post by: vbgamer45 on August 11, 2018, 07:19:13 PM
I do not have any posted for the ad management mod at this time.
Title: Re: Ad Management mod
Post by: Kindred on August 14, 2018, 04:37:57 PM
Quote from: njtweb on August 11, 2018, 06:48:44 PM
Quote from: vbgamer45 on August 11, 2018, 01:26:01 PM
Can you explain screeners?

Screenshots, in the states we call the images screenshots of the admin interface. But I'm good now, Tinyportal actually allows me to place ads anywhere.

incidentally... no we don't. :P   I'm in the US (as is vbgamer) and we've never heard the term screeners before. :D
Title: Re: Ad Management mod
Post by: Cathal on November 08, 2018, 02:53:10 PM
Is there a post explaining what changes to make in a theme
Code added but nothing showing in the page source.
Title: Re: Ad Management mod
Post by: vbgamer45 on November 08, 2018, 02:55:48 PM
I would upload the mod to the package parser at https://www.smfhacks.com/smf-package-parser.html and it will give you the theme edits.
Title: Re: Ad Management mod
Post by: Cathal on November 11, 2018, 11:51:43 AM
Quote from: vbgamer45 on November 08, 2018, 02:55:48 PM
I would upload the mod to the package parser at https://www.smfhacks.com/smf-package-parser.html and it will give you the theme edits.

Tried that site but not working, just get lots of errors
Title: Re: Ad Management mod
Post by: vbgamer45 on November 11, 2018, 11:53:21 AM
Tried the mod site?
Title: Re: Ad Management mod
Post by: SMFHacks.com Team on November 11, 2018, 01:19:31 PM
New update!

Version 3.5
+SMF 2.1 Beta 3 now supported!
Title: Re: Ad Management mod
Post by: SMFHacks.com Team on February 05, 2019, 06:30:34 PM
Added install support for SMF 2.1 RC1
Title: Re: Ad Management mod
Post by: SMFHacks.com Team on February 16, 2019, 09:54:01 PM
Update for SMF 2.1.x
+Reduced the file edits using more hooks now.
+Added icon in the admin area for ad management.
+Improved styles on edit ads page
Title: Re: Ad Management mod
Post by: Massl on February 22, 2019, 05:35:11 AM
Hi, I have a problem with "Display ads after the last post" and SMF 2.1 RC1 with default theme.
If I check this option ad is displayed in all messages, thanks.
Title: Re: Ad Management mod
Post by: vbgamer45 on February 22, 2019, 08:17:18 AM
So it's all messages in a topic not just the last one?
Title: Re: Ad Management mod
Post by: SMFHacks.com Team on February 22, 2019, 09:00:52 AM
Update for SMF 2.1
!Fixed end post ads appearing on all posts.
Title: Re: Ad Management mod
Post by: Massl on February 22, 2019, 10:39:38 AM
Thanks  ;D
Title: Re: Ad Management mod
Post by: vbgamer45 on February 22, 2019, 11:04:54 AM
Glad to help.
Title: Re: Ad Management mod
Post by: Massl on February 27, 2019, 05:26:53 AM
Hi, there is a way to add ads on every last message in topic's pages?

Thanks
Title: Re: Ad Management mod
Post by: vbgamer45 on February 27, 2019, 09:04:52 AM
Use add after last post option I believe.
Title: Re: Ad Management mod
Post by: Massl on February 27, 2019, 09:40:39 AM
If the topic has two or more pages, it will only be shown in the last one...

Edit: SMF 2.1 RC1
Title: Re: Ad Management mod
Post by: vbgamer45 on February 27, 2019, 12:36:10 PM
ok hmmm
Title: Re: Ad Management mod
Post by: SMFHacks.com Team on February 28, 2019, 11:05:17 AM
SMF 2.1 update for last post ad to show on all pages for last post.
Title: Re: Ad Management mod
Post by: Massl on March 01, 2019, 01:43:49 PM
Thanks for update  :)
I found another small layout problem with the 2.1 RC1, option "Display ads on every page right below the menu" when viewing the topic:
(https://i.postimg.cc/gxRCxK83/Screenshot.png) (https://postimg.cc/gxRCxK83)
The banner should be before "GO DOWN"
Title: Re: Ad Management mod
Post by: Massl on March 01, 2019, 03:40:06 PM
With "Display ads on board index" the banner is displayed twice...
Title: Re: Ad Management mod
Post by: SMFHacks.com Team on March 04, 2019, 03:18:47 PM
I think that should occur.
Quote from: Massl on March 01, 2019, 03:40:06 PM
With "Display ads on board index" the banner is displayed twice...
If you have both those options checked they are two different ad locations.
Title: Re: Ad Management mod
Post by: Massl on March 04, 2019, 03:34:46 PM
I have only this option checked
Title: Re: Ad Management mod
Post by: vbgamer45 on March 04, 2019, 03:52:15 PM
Please take a screenshot of your ad setup options
Title: Re: Ad Management mod
Post by: Massl on March 05, 2019, 02:43:50 AM
Seems OK with 3.5d version  :)

Now there is only "Display ads on every page right below the menu" that in the topic must go under the title
(https://i.postimg.cc/cgK3r323/ads.jpg) (https://postimg.cc/cgK3r323)
Title: Re: Ad Management mod
Post by: vbgamer45 on March 05, 2019, 09:58:11 AM
Hmm it is below menu though the ad code. I am not sure if I would do it differently just for the topic page.
Title: Re: Ad Management mod
Post by: Matthias on March 31, 2019, 10:04:18 AM
At the actual version 3.5d for SMF 2.0.15 there is a little issue in the Ads.template.php file
There's an closing </div> tag, which has never been opened. Some themes do not display the footer properly.
The error is only on the "Edit ads" section.

In Ads.template.php search for:
echo '
<div class="cat_bar">
<h3 class="catbg">', $txt['ad_management_main'] ,'</h3>
            </div>


Add after:
<div>
Title: Re: Ad Management mod
Post by: vbgamer45 on March 31, 2019, 11:14:15 AM
I am not seeing that issue.

function template_editAds()
{
global $txt, $scripturl, $settings, $adverts, $advertsEdit;

echo '
<div class="cat_bar">
<h3 class="catbg">', $txt['ad_management_main'] ,' - ', $advertsEdit['name'] ,'</h3>
            </div>
<div class="tborder">


I only see two divs and both are closed.
The div for the border is closed after the form.
Title: Re: Ad Management mod
Post by: 4everBlue on March 31, 2019, 03:39:19 PM
This mod can good work with SMF 1.1.4 ?
Title: Re: Ad Management mod
Post by: Arantor on March 31, 2019, 03:49:55 PM
You really should upgrade; at minimum you are 17 patches behind the last 1.1 release (1.1.21) and there are known security holes in 1.1 that will not be fixed.
Title: Re: Ad Management mod
Post by: Gaza07 on May 12, 2019, 12:43:17 PM
I'm having problems with the ad mod from here https://custom.simplemachines.org/mods/index.php?mod=255  V3.5c
the mod doen't show in permissions at all, it does show ads to members but not to guests below are some captures of the error that is created when accessing the permissions and,
the web hooks page,
I have tried to login to the authors site but there is a problem with the registration page and I cant create an account so I was hoping he would see this here


(https://i.postimg.cc/Tw8HBtq4/screenshot-1910.png)

(https://i.postimg.cc/TPHWPsHt/screenshot-1911.png)
Title: Re: Ad Management mod
Post by: SMFHacks.com Team on May 12, 2019, 01:37:06 PM
Quote from: Gaza07 on May 12, 2019, 12:43:17 PM
I'm having problems with the ad mod from here https://custom.simplemachines.org/mods/index.php?mod=255  V3.5c
the mod doen't show in permissions at all, it does show ads to members but not to guests below are some captures of the error that is created when accessing the permissions and,
the web hooks page,
I have tried to login to the authors site but there is a problem with the registration page and I cant create an account so I was hoping he would see this here


(https://i.postimg.cc/Tw8HBtq4/screenshot-1910.png)

(https://i.postimg.cc/TPHWPsHt/screenshot-1911.png)

Fixed in 3.5d download the latest version.
Title: Re: Ad Management mod
Post by: Gaza07 on May 12, 2019, 02:05:49 PM
Problem solved Thank You
Title: No Ad Management menu after manual installation
Post by: Kristof Nijs on May 23, 2019, 05:47:06 AM
Hello,

I tried to install the Ad Management Mod on my smf forum.
This worked well on my local computer.

On the test server this failed and I received an error message related to "package_no_phar".
That's why I tried to install the mod manually as described on the smf website.
Therefore I uploaded the modified files from my local computer to the test server, I executed the install.php script of the mod, performed a query in the forum database and uploaded some additional files.

It looks like everything went well. Unfortunately I cannot see the Ad Management Mod menus in the menus of the administration panel.

Does anyone know what the problem might be or how I can solve this?
The forum is on shared hosting, so I guess that a manual installation is the only solution.

Thanks for the responses.

With kind regards,
Kristof Nijs
Title: Re: Ad Management mod
Post by: vbgamer45 on May 23, 2019, 09:03:49 AM
phar is required in SMF 2.1 you will have to ask your host to install it.
Title: Re: Ad Management mod
Post by: Kindred on May 29, 2019, 02:43:44 PM
also, in addition to uploading the files and running the install, if you are manually adding the mod, you also have to manually edit the SMF Source the template files
Title: Re: Ad Management mod
Post by: zakallin69 on June 06, 2019, 12:07:34 PM
Don't know why this is happening but no matter where i put my pics in cpanel and root there, they doesn't show up in forum.
If i link some example picture which is already somewhere hosted everything works fine.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 06, 2019, 01:09:32 PM
If you are on https make sure the image are linked as https
Title: Re: Ad Management mod
Post by: zakallin69 on June 07, 2019, 06:47:52 AM
Quote from: vbgamer45 on June 06, 2019, 01:09:32 PM
If you are on https make sure the image are linked as https

Ok thanks, that doesn't cross my mind  ::)
Title: Re: Ad Management mod
Post by: zakallin69 on June 11, 2019, 09:21:19 AM
Uuuuh......totally burned with this....
Https redirecting done and repair_settings.php done.....no effect at all.
Tried both AdManager and Adsmanager (names maybe little wrong) but can't get them work.
I think it's maybe theme related (NightBreeze) or at least i've tried everything what i know and no clue why it's not working  :-\
Title: Re: Ad Management mod
Post by: Ranami on August 10, 2019, 11:08:58 AM
Please can someone help me out? I have this Ad management mod 3.5d installed on smf 2.0.15 and also added Google AdSense code in the box provided, however it seems Google can't seem to find the ad codes on my site.

Below is the message I'm getting from Google:

"We couldn't find the code on your site. This is because the code is either missing or incomplete, or because the URL of your site is incorrect"

My site: askagric.com

Any help in sorting this out will be much appreciated. Thanks!
Title: Re: Ad Management mod
Post by: vbgamer45 on August 10, 2019, 11:18:51 AM
Give guests permissions to view ads
Title: Re: Ad Management mod
Post by: lurkalot on August 10, 2019, 11:21:44 AM
Also noticed the AddThis share mod you are using is giving a mixed content warning.  ;)
Title: Re: Ad Management mod
Post by: Ranami on August 10, 2019, 11:39:15 AM
Quote from: vbgamer45 on August 10, 2019, 11:18:51 AM
Give guests permissions to view ads
Ok just did that. Hope it works, thanks!
Title: Re: Ad Management mod
Post by: w0lfman on August 11, 2019, 11:24:08 AM
I've suddenly noticed the same situation Ranami is experiencing.  The permissions are enabled for guests.

SMF 2.0.15 | SMF © 2017, Simple Machines
SMFAds for Free Forums
Title: Re: Ad Management mod
Post by: vbgamer45 on August 11, 2019, 12:03:55 PM
Can you logout of your forum. And check the page source code and see if you can the ad code.
Title: Re: Ad Management mod
Post by: w0lfman on August 11, 2019, 12:26:55 PM
I'm sure I can with a little guidance.  Where would the page sources be located and when you say ad code do you mean add the adsense code?
Title: Re: Ad Management mod
Post by: vbgamer45 on August 11, 2019, 12:33:00 PM
In the browser their is a view source menu link you can view it. Yes adsense code.
Title: Re: Ad Management mod
Post by: w0lfman on August 11, 2019, 12:41:01 PM
Gotcha.  I can view the source, but no indication adsense being visible.  Nothing between the <head> </head> either indicating adsense
Title: Re: Ad Management mod
Post by: vbgamer45 on August 11, 2019, 01:41:25 PM
adsense tags are not in the head tag area. It's in the body and it depends on your placements you have active.
Title: Re: Ad Management mod
Post by: w0lfman on August 11, 2019, 01:53:50 PM
i was going off the email from google that stated ... Copy and paste this code in the HTML of your site, between the <head> and </head> tags.

I thought the intent of the ad management mod was to place the code in for adsense?  If I need to place the adsense code in manually do i need to delete the MOD?  Also, if i do need to delete it where exactly does the adsense code need to be placed to get the ads to display?  Everything worked previously for a number of years and suddenly stopped, so im a little confused.

Title: Re: Ad Management mod
Post by: vbgamer45 on August 11, 2019, 08:48:34 PM
That is a different type of ad unit.  I have never used that type before and it will not work with this mod since it wants to be in the head tags. That looks like the option for google adsense to auto pick the location.I do not recommend that.
You want to use banners and choose your placements.
Title: Re: Ad Management mod
Post by: w0lfman on August 12, 2019, 10:16:27 AM
I actually prefer using the ad management mod, but not sure why it suddenly stopped working as it has for several years.   My problem is the same as what Ranami is experiencing in an earlier post.
Title: Re: Ad Management mod
Post by: vbgamer45 on August 12, 2019, 11:13:24 AM
head tag units are not supported by this mod never has been. That's what that adsense code is looking for.
Title: Re: Ad Management mod
Post by: w0lfman on August 12, 2019, 01:46:49 PM
Understand, but I have never once had to add any google code out side of the Ad Management Mod.  I've never added anything related to adsense in the head or banner. I simply take the adsense code provided and copy it to the Ad Management Mod and from there make the necessary settings changes to have them displayed on the boards of my choice.  I'm just curious why that is no longer working?  It doesnt seem to be unique to my forum considering another poster in this thread has the exact same issue.

Do i need to remove the current ad management mod and update?  Just looking for an answer on what change has been made whether it be with the MOD or Adsense. 

I notice the ads are being displayed properly on this forum, so im inclined to believe the adsense code is correct.  Has to be something with the Mod or I'm missing something in the forum code that is now required that wasnt in the past.
Title: Re: Ad Management mod
Post by: vbgamer45 on August 12, 2019, 02:14:28 PM
You are using the auto ads feature from adsense. Which this mod does not support
https://support.google.com/adsense/answer/7477845?hl=en

Title: Re: Ad Management mod
Post by: w0lfman on August 12, 2019, 04:00:24 PM
Makes no sense to me.  I created one ad in December 2014 and copied the code to the ad management mod and it has displayed them without issue until recently.  that is nearly 6 years of no problems.  i'm sorry sir, but if the ad i have created no longer works exactly what type of ad code do i need to use for the ad management mod now?
Title: Re: Ad Management mod
Post by: vbgamer45 on August 12, 2019, 04:12:04 PM
You need an ad unit. The code would look like this

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- test -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client=""
     data-ad-slot="5812831828"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>


Do not use anything that says or mentions AUTO ADS
Title: Re: Ad Management mod
Post by: w0lfman on August 12, 2019, 04:34:16 PM
Below is the ad code I have pasted into my ad management mod...


<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 468x60, created 7/29/08 -->
<ins class="adsbygoogle"
     style="display:inline-block;width:468px;height:60px"
     data-ad-client="ca-pub-9104616448167637"
     data-ad-slot="3606973821"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
Title: Re: Ad Management mod
Post by: vbgamer45 on August 12, 2019, 04:39:23 PM
That will work. Make sure the theme has edits. Also check permissions for each membergroup. And check that you are not hiding ads for admins there is a setting for that.
The adsense.png above had a different code the Autoads which can't be detected.
Title: Re: Ad Management mod
Post by: w0lfman on August 13, 2019, 03:14:16 PM
Sounds good.  I'm resubmitted to google after changes made and I'll follow up if this corrects my issue.

One last question...when you say "Make sure the theme has edits" what exactly are you referencing?  That may be one piece of the puzzle im failing to do.
Title: Re: Ad Management mod
Post by: vbgamer45 on August 13, 2019, 04:03:03 PM
If you install a new theme. You will need to install the ad management edits to that theme in order for the ads to show up  in certain spots.
Title: Re: Ad Management mod
Post by: Ranami on August 28, 2019, 06:33:51 PM
Please can this mod place ads on the smf homepage without having to place it on all pages? Thanks!
Title: Re: Ad Management mod
Post by: vbgamer45 on August 28, 2019, 07:26:42 PM
yes it can
Title: Re: Ad Management mod
Post by: Ranami on August 29, 2019, 12:07:19 AM
Quote from: vbgamer45 on August 28, 2019, 07:26:42 PM
yes it can
How can I achieve that please?
Title: Re: Ad Management mod
Post by: vbgamer45 on August 29, 2019, 12:09:02 AM
I think there is a board index spot.
Title: Re: Ad Management mod
Post by: Ranami on August 29, 2019, 12:20:40 AM
Quote from: vbgamer45 on August 29, 2019, 12:09:02 AM
I think there is a board index spot.
That option seems to display ads on the 'index' page of each board within a category where the topics within that board are listed. It doesn't display on the homepage of the website, which is what I'm asking about.
Title: Re: Ad Management mod
Post by: vbgamer45 on August 29, 2019, 01:08:23 PM
Guess there is no option then.
Title: Re: Ad Management mod
Post by: Ranami on August 29, 2019, 01:21:41 PM
Quote from: vbgamer45 on August 29, 2019, 01:08:23 PM
Guess there is no option then.
OK then, thanks all the same.
Title: Re: Ad Management mod
Post by: Pyrhel on October 23, 2019, 04:12:46 AM
Is there a way to exclude a page from "Display ads on every page ..." options?
For example, to display ads on every page right below the menu or at the bottom, except the index?
Title: Re: Ad Management mod
Post by: vbgamer45 on October 23, 2019, 08:17:03 AM
There is not you would have to manually edit the code.
Title: Re: Ad Management mod
Post by: Black Tiger on October 23, 2019, 06:46:31 PM
A forum I'm helping is still running version 3.1 of this on smf 2.0.15.
What is the best way to upgrade this? Just uninstall from the package manager and then install the newest version?

Since it says on the first page:

QuoteVersion 3.2
!Fixed bug in welcome ads for SMF 2.0. Requires reinstall or code edit to index.template.php to fix.

So just to be sure.

Also it does place ads on the bottom of pages, but not in between posts (selected to place ads as post).
I just see an empty post, which can't be editted either.
Title: Re: Ad Management mod
Post by: vbgamer45 on October 23, 2019, 07:10:21 PM
If you are using welcome ads I would suggest a uninstall/reinstall i not you can install over.
Title: Re: Ad Management mod
Post by: Black Tiger on October 23, 2019, 07:37:27 PM
No we only use ads after 1st posts and ads at bottom of the page.
Thanks!
Title: Re: Ad Management mod
Post by: muratbora on November 04, 2019, 10:39:34 AM
I used this mod for my forum, unfortunately it is not showing ads,
what is wrong?
Please see my instaltion secreenshoot at the attachment...
Title: Re: Ad Management mod
Post by: vbgamer45 on November 04, 2019, 11:18:37 AM
Check settings that admins can view ads and permissions.
Title: Re: Ad Management mod
Post by: muratbora on November 04, 2019, 11:42:27 AM
Settings is ok,
I am also logging out and trying to visit site as visitor. I can not see adsense ads. https://www.turizmtasimacilik.com/forum
Title: Re: Ad Management mod
Post by: vbgamer45 on November 04, 2019, 11:52:47 AM
I see the code it takes a few days for ads to appear view-source:https://www.turizmtasimacilik.com/forum/index.php?board=60.0
Title: Re: Ad Management mod
Post by: muratbora on November 04, 2019, 11:59:29 AM
I checked source and not see adsense code, besides this adsense code and mod placed more than 2 months ago, it is never appeared, today I just remembered to ask on forum.

Even if I wait 4 days more, it will not shown...something another problem but what!
Title: Re: Ad Management mod
Post by: vbgamer45 on November 04, 2019, 12:25:05 PM
I see the ad code
like

<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-xxxxx0" data-ad-slot="8224579650" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script type="f9b8cd94b2e458dd0425fd3d-text/javascript">
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>


Log out as guest you might have disabled ads for admins.
Title: Re: Ad Management mod
Post by: muratbora on November 06, 2019, 05:27:06 AM
Can you advice what to enter in boxes/fields opposite those sections below; No tutorial found!

Which boards should this ad display in    
Display ads within posts    
Display ads after categories
Title: Re: Ad Management mod
Post by: muratbora on November 06, 2019, 05:40:44 AM
No not blind, I see text / questions, but I have idea what to fill inside fields..
Title: Re: Ad Management mod
Post by: Tonyvic on November 06, 2019, 06:15:23 AM
Ok, I see my post has been removed ???. I also see that you added an attachment which wasn't there originally and is not what I meant.
On your double post in the 2.1 topic I added the link which gives the answer, here it is again https://www.simplemachines.org/community/index.php?topic=570405.msg4036841#msg4036841 (https://www.simplemachines.org/community/index.php?topic=570405.msg4036841#msg4036841)
Title: Re: Ad Management mod
Post by: muratbora on November 06, 2019, 06:49:24 AM
Apogolize for...I had not read carefully.
Yes fully tutorial was written inside your given url up.
Thanks
Title: Re: Ad Management mod
Post by: Tonyvic on November 06, 2019, 09:08:00 AM
Glad you got it! :)
Title: Re: Ad Management mod
Post by: Sir Osis of Liver on December 25, 2019, 11:44:47 AM
Have installed mod in 2.0.15 php 7.3.  Seems to work intermittently, today I'm able to place google ads at top and bottom, but setting right or left tower has no effect.  Is it updated for php 7.3?
Title: Re: Ad Management mod
Post by: vbgamer45 on December 25, 2019, 12:49:20 PM
haven't tested but should work on 7.3
Title: Re: Ad Management mod
Post by: AlanDewey on December 25, 2019, 04:27:30 PM
I am using SMF 2.015 and PHP 7.1.26

I can not get left or right tower either.   I assumed it is due to the theme I selected  --    vvide      so I did not give it any more thought.

I tried many of the other ad placement locations and the ones that I tried, worked and I am happy with the ad placements I have at this time, no need to fix it for me. 

I am just confirming that I experienced the same symptom as Sirosis
Title: Re: Ad Management mod
Post by: vbgamer45 on December 25, 2019, 07:27:34 PM
Did you make sure the custom theme has the edits?
Title: Re: Ad Management mod
Post by: Sir Osis of Liver on December 25, 2019, 08:48:39 PM
I've installed it in Curve, nothing doing with right/left towers.  Does forum width have to be adjusted?
Title: Re: Ad Management mod
Post by: vbgamer45 on December 26, 2019, 08:38:25 AM
Forum width shouldn't have to be.
Title: Re: Ad Management mod
Post by: Sir Osis of Liver on December 26, 2019, 02:36:39 PM
This apparently is not a unique problem.  Is there any way to make it work?  Can ads be resized, they're way to big?
Title: Re: Ad Management mod
Post by: vbgamer45 on December 26, 2019, 02:38:30 PM
I will recheck on my test site. I use it on curve on smfads.com
Title: Re: Ad Management mod
Post by: Sir Osis of Liver on December 26, 2019, 03:00:51 PM
I'm running it in php 7.1 now.  Left/right tower don't work.  Bottom ads do not display until I login, just a large blank area.  After login ads appear, and remain after logout.  Ads are way too big.  Don't see any ads at smfads.com.

Title: Re: Ad Management mod
Post by: Sir Osis of Liver on December 30, 2019, 09:47:48 PM
What's up with this mod?  It was configured to display ads bottom only, but it's displaying top and bottom, had to disable it.  Right/left towers do not work at all.  Any way to make it work?
Title: Re: Ad Management mod
Post by: spiros on January 02, 2020, 06:57:33 AM
There are two empty spaces displayed, one on top and the other below replies which are set to get the ad (using adsense code).

Is there any way to fix that?

https://www.translatum.gr/forum/index.php?topic=218935.0
Title: Re: Ad Management mod
Post by: Sir Osis of Liver on January 02, 2020, 03:43:45 PM
I had similar problems.  Do yourself a favor, delete the ad mod, use a portal to display the ads.
Title: Re: Ad Management mod
Post by: spiros on January 02, 2020, 03:46:10 PM
Sometimes they are filled with Google ads, other times not. I am guessing this is a Google issue for not collapsing them by default when no add is served:

https://support.google.com/adsense/thread/11704498?hl=en
https://support.google.com/adsense/thread/4909412?hl=en
Title: Re: Ad Management mod
Post by: Sir Osis of Liver on January 02, 2020, 03:52:31 PM
Quote
defaulting to collapsing the ad space or showing a blank space instead

Apparently it can do either, don't think you have any control over that.
Title: Re: Ad Management mod
Post by: spiros on January 02, 2020, 03:58:05 PM
Which absolutely makes no sense from a publisher/visitor point of view.
Title: Re: Ad Management mod
Post by: Sir Osis of Liver on January 02, 2020, 04:03:24 PM
No, it doesn't, but as with everything they do, Google doesn't give a crap what the site owner wants, they just want to push their ads (and trackers) wherever they want anyway they can.
Title: Re: Ad Management mod
Post by: smartmouse on March 03, 2020, 05:02:16 AM
Hello, I have tried to install this mod on SMF 2.1 and all files have "Test successful".

...but I opened all arrows and I have found some files having errors! (see the attached image)

Why these errors were hidden? ...and how to install mod without errors?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 03, 2020, 08:53:45 AM
The board index one is there to handle two different types of edits if one fails it tries the other one.
The index.template.php errors is for the welcome area which I belive no longer exsits in 2.1
Title: Re: Ad Management mod
Post by: smartmouse on March 03, 2020, 02:22:24 PM
Quote from: vbgamer45 on March 03, 2020, 08:53:45 AM
The board index one is there to handle two different types of edits if one fails it tries the other one.
The index.template.php errors is for the welcome area which I belive no longer exsits in 2.1
So I can proceed to install it, right?
Title: Re: Ad Management mod
Post by: vbgamer45 on March 03, 2020, 02:46:31 PM
Yes
Title: Re: Ad Management mod
Post by: Looking on March 05, 2020, 06:42:18 AM
Quick question: I have this an mod and another ads manager mod installed. (SMF 2.0.17)

I need to control the priority of which ad is displayed below the menu. For instance, both mods has an option to display below menu but what decides the priority of 1st and 2nd as far as loading each ad mod's data?

Usually, this would be easier with editing the template, but the hooks and options for placement seem to make it trickier.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 05, 2020, 08:59:21 AM
Nothing does for priority.

Why would you need two ad managers?
Title: Re: Ad Management mod
Post by: Looking on March 05, 2020, 09:14:22 AM
Quote from: vbgamer45 on March 05, 2020, 08:59:21 AM
Why would you need two ad managers?
One does what the other can't and vice versa.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 05, 2020, 09:16:38 AM
Such as?
Title: Re: Ad Management mod
Post by: Looking on March 05, 2020, 09:21:17 AM
Certain features and controls the board owner has preferences about.

As a side note... your mod is usually my first go to mod for clients, but some still like other things in the mix - it is just easier for them.
Title: Re: Ad Management mod
Post by: jbridges87 on May 14, 2020, 05:11:37 PM
I just tried installing this mod on my SMF forum running v2.0.17, with the Reseller theme.

Upon installation, I received a couple of errors, which I've attached. I proceeded with installation anyway, as I was installing on my test site. After install, I inserted the Google Adsense code I had, and was testing out the different ad placement settings [left tower, right tower, within boards, etc...], none of the ads were appearing.

Is there a way to get this mod to work with the Reseller theme?
Title: Re: Ad Management mod
Post by: vbgamer45 on May 14, 2020, 05:12:58 PM
Yes but involves manual edits you have to compare edits made to the default theme and find similar sections of code in the reseller theme.
Title: Re: Ad Management mod
Post by: jbridges87 on May 14, 2020, 05:22:00 PM
OK, is there any hope a noobie could get this done such as myself, or should I look for another option altogether?

How many file modifications would I be looking at?
Title: Re: Ad Management mod
Post by: vbgamer45 on May 14, 2020, 05:23:10 PM
Two failures for boardindex and display if you need those ad locations.
Title: Re: Ad Management mod
Post by: jbridges87 on May 14, 2020, 05:59:01 PM
Okay, would I just go into the php files and manually change the code myself?

For example, the failure for BoardIndex shows as following;


Code: (Find) [Select]

<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';
echo '<tbody><tr><td colspan="4">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>';


Code: (Replace) [Select]

<tbody class="divider">
            <tr>
               <td colspan="4"></td>
            </tr>
         </tbody>';



If that's the case, the failed code for the Display is showing as blank? [attached]
Title: Re: Ad Management mod
Post by: vbgamer45 on May 14, 2020, 06:20:40 PM
I would suggest uploading the mod to https://www.smfhacks.com/smf-package-parser.html and follow the edits there.
Title: Re: Ad Management mod
Post by: jbridges87 on May 14, 2020, 07:30:32 PM
I just ran the parser and manually modifed all the files that showed errors.

The homepage of the site now shows a syntax error.

(https://crown-sports.com/Images/Support%20Screenshots/Syntax%20Error.png)
Title: Re: Ad Management mod
Post by: vbgamer45 on May 14, 2020, 07:39:55 PM
There is an error in one of the files you modified. attach them here...
Title: Re: Ad Management mod
Post by: jbridges87 on May 14, 2020, 07:46:46 PM
I figured as much. Files are attached.
Thanks for taking a look.
Title: Re: Ad Management mod
Post by: vbgamer45 on May 14, 2020, 07:53:55 PM
Updated files attached
Title: Re: Ad Management mod
Post by: jbridges87 on May 14, 2020, 11:15:42 PM
I've uploaded the files, and I'm awaiting Google AdSense confirmation, but the Ad Management settings appear to be showing ad bars now, so I think it's working.

I will have to wait for my confirmation to be sure, but it looks promising.

Thanks again for the assistance!
Title: Re: Ad Management mod
Post by: humbleworld on May 20, 2020, 09:45:08 PM
I need to manually uninstall the Ad Management mod because it messed up some codes in my forum. After the manual removal, I would like to install a fresh, clean Ad Management MOD.

Any guide how to uninstall it MANUALLY? Thank you.
Title: Re: Ad Management mod
Post by: vbgamer45 on May 20, 2020, 09:51:14 PM
Upload the package to https://www.smfhacks.com/smf-package-parser.html and follow the uninstall steps
Title: Re: Ad Management mod
Post by: humbleworld on May 20, 2020, 10:48:32 PM
Quote from: vbgamer45 on May 20, 2020, 09:51:14 PM
Upload the package to https://www.smfhacks.com/smf-package-parser.html and follow the uninstall steps

Thank you very much, VbGamer45.
Title: Re: Ad Management mod
Post by: jbridges87 on June 01, 2020, 03:25:34 PM
I'm logged in as administrator, but I'm receiving a '403 Forbidden  Error' when trying to place ad content via the Ad Management mod.

I've attached a screenshot of the error.
Any ideas?
Title: Re: Ad Management mod
Post by: vbgamer45 on June 01, 2020, 03:28:57 PM
Mod_security issue

https://wiki.simplemachines.org/smf/Mod_security_-_Having_problems_with_mod_security
Title: Re: Ad Management mod
Post by: jbridges87 on June 01, 2020, 04:13:13 PM
Should the .htaccess file be placed in the public_html folder and/or the folder SMF is installed in, or does the file need to go into a specific folder? [I didn't see any mention of the location in the link]
Title: Re: Ad Management mod
Post by: vbgamer45 on June 01, 2020, 04:20:12 PM
try in the SMF Folder first.
Title: Re: Ad Management mod
Post by: jbridges87 on June 01, 2020, 09:18:37 PM
I tried the htaccess approach, but didn't have any luck.
I was able to speak with my host and they made a modification to the firewall rule, and it's working now. Thank you for that.

I was directed to input a snippet of code into the <head> and another snippet into the <body>
After inputting the code into the Ad Management mod, I viewed the page source, and I can't find a way to get the Ad Management mod to input the code into the <head>, as directed.

I tried each individual option, and then view the page source after, none of the selections put the code into the <head>.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 01, 2020, 09:19:42 PM
There is no built in function at this time to add code to the header but could be a good feature requesst.
Title: Re: Ad Management mod
Post by: jbridges87 on June 13, 2020, 03:49:57 PM
So I was recently approved for adsense, and was given a code snippet, with instructions to add that into the <head> section, but as mentioned earlier, that's not an option through the mod, so I just put the code in manually.

Then I went into the settings of the mod, and configured as desired. However, the ad code doesn't show up anywhere on the site.

I attached a screenshot of my settings.
Am I missing something?
Title: Re: Ad Management mod
Post by: shadav on June 13, 2020, 04:13:47 PM
if you were just approved it may take a bit of time before google actually starts showing ads....the other thing is to make sure you don't have an adblocker on, whitelist your site :)

I had this installed and it was working (sort of), removed it because it didn't really play well with my themes and found it easier just to edit the files manually since I only wanted it in the footer and after the first post

though I have noticed that ads do not always show....google's a pita.....
ads show fine on the site, but not always on the forum, which I believe is due to "lack of content"
Title: Re: Ad Management mod
Post by: jbridges87 on June 13, 2020, 07:43:36 PM
That could be, but I have a feeling there might be something wrong with my mod, as the Google Auto-ads were working as soon as I turned them on.

The reason I wanted to use the ad management mod was so that I could have more control over the display.
Title: Re: Ad Management mod
Post by: perfec2 on June 20, 2020, 08:35:41 AM
How can I fix this?

I installed Ad Management mod and got the error below in all threads in the forum:

Out of range value for column 'HITS' at row 1
File: /home/username/public_html/Sources/LoadAds.php
Line: 298

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.17, while your database is at version 2.0.13. The above error might possibly go away if you execute the latest version of upgrade.php.
Title: Re: Ad Management mod
Post by: vbgamer45 on June 20, 2020, 09:49:13 AM
You have an old version of the mod you need to change the hits column in the database table to a larger datatype.

alter table smf_ads HITS HITS BIGINT NOT NULL default '0'; .
Title: Re: Ad Management mod
Post by: perfec2 on June 20, 2020, 10:11:32 AM
Quote from: vbgamer45 on June 20, 2020, 09:49:13 AM
You have an old version of the mod you need to change the hits column in the database table to a larger datatype.

alter table smf_ads HITS HITS BIGINT NOT NULL default '0'; .


Please what are the steps to do this?

I went to phpmyadmin, click the database, smf_ads, structure, and change value to NULL, then clicked  save. The error still on the site.
By the way I installed version of the mod I downloaded a week back "ad_mod_v3.5_SMF_2.0_and_SMF2.1d"
Title: Re: Ad Management mod
Post by: vbgamer45 on June 20, 2020, 10:16:50 AM
You have to run that query on the database.
Title: Re: Ad Management mod
Post by: perfec2 on June 20, 2020, 10:55:24 AM
Quote from: vbgamer45 on June 20, 2020, 10:16:50 AM
You have to run that query on the database.


I went to the database >> smf_ads, Structure >> Hit>> SQL
After putting the query, click GO and got the error below after the execution:
"Static analysis:

1 errors were found during analysis.

Unrecognized alter operation. (near "" at position 0)
SQL query:

alter table smf_ads HITS HITS BIGINT NOT NULL default '0'

MySQL said: Documentation

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'HITS HITS BIGINT NOT NULL default '0'' at line 1
Title: Re: Ad Management mod
Post by: vbgamer45 on June 20, 2020, 11:04:56 AM
TRY

alter table smf_ads change HITS HITS BIGINT NOT NULL default '0';
Title: Re: Ad Management mod
Post by: perfec2 on June 20, 2020, 11:29:31 AM
Quote from: vbgamer45 on June 20, 2020, 11:04:56 AM
TRY

alter table smf_ads change HITS HITS BIGINT NOT NULL default '0';

This solved it.
Thank you very much.
Title: Re: Ad Management mod
Post by: gorbi on August 01, 2020, 02:24:09 AM
How to remove ad code from a single page? For example, http://g-news.com.ua/forum_smf/index.php?topic=14614.msg170778
Title: Re: Ad Management mod
Post by: vbgamer45 on August 01, 2020, 07:18:35 AM
You would have to write a conditional statement in php and check the ad area to show or not show the ad. That is by modifying the SMF files.
Title: Re: Ad Management mod
Post by: gorbi on August 01, 2020, 08:02:30 AM
How much will it cost to upgrade the mod?
Title: Re: Ad Management mod
Post by: gorbi on August 02, 2020, 01:49:25 AM
Make at least a blacklist of boards. Please
Title: Re: Ad Management mod
Post by: vbgamer45 on August 04, 2020, 09:42:09 AM
I would have to see what changes would be needed to make that happen. It might cheaper to upgrade to Ad Seller Pro https://www.smfhacks.com/ad-seller-pro.php. It does have options to display ads on certain boards only.  And it is newer coded/more updated
Title: Re: Ad Management mod
Post by: gorbi on August 04, 2020, 10:48:15 AM
I need to prohibit display on one board, not list all boards to display.
Title: Re: Ad Management mod
Post by: vbgamer45 on August 04, 2020, 10:53:12 AM
Can you use the "Which boards should this ad display in" setting?
Title: Re: Ad Management mod
Post by: gorbi on August 04, 2020, 11:04:23 AM
I can, but I need to list about a hundred boards
Title: Re: Ad Management mod
Post by: vbgamer45 on August 04, 2020, 11:11:24 AM
I would suggest upgrading to adseller pro. If you want I can setup a demo for you adminside.
Title: Re: Ad Management mod
Post by: Douglas on October 08, 2020, 07:07:09 AM
Goodness... when's the last time I've asked for help?! ;)

Running some ads on the posts page (between 2 and 3). On Curve, it's displaying fine, however, we're using Core as the default (fresh install of 2.0.17. Only Akismet and the Ad Management mods are installed.

I'm attaching the original Display.template.php file (Display.template.ORIG.php) and the post-modification file (Display.template.NEW.php) to this post.

BTW, the Ads Management mod installer fails the Core theme for these files:
index.template.php
BoardIndex.template.php
Display.template.php
MessageIndex.template.php

when trying to install this through the package manager. I wanted to pass that along (usually on the "AFTER" or "REPLACE" items).

Thanks, vbgamer, for any assistance you can smack me around with (HA)!
Title: Re: Ad Management mod
Post by: vbgamer45 on October 09, 2020, 04:27:16 PM
Updated file attached was missing a couple code additions to the file



Core theme is a little different so a lot of the autoapplied code may not work well with it.
Title: Re: Ad Management mod
Post by: Douglas on October 09, 2020, 06:00:44 PM
Heya, vbgamer, thank you!

DISREGARD the message below. My connection was interrupted when I tried to upload the corrected file. It's working!

Thank you, thank you!

I dropped the updated file into place (yep, renamed it, haha!) and cleared the built in cache. No ads between the 2nd and 3rd, and the 5th and 6th posts.

https://lastwordonsports.com/boards/index.php?topic=770.0

I dropped in a "DougTest" with each ad spot, so I could find that line within the source code (it's not coming through).
Title: Re: Ad Management mod
Post by: vbgamer45 on October 11, 2020, 10:57:21 PM
Ah, Glad you have it working! I was confused myself since that was the only part that was missing.
Title: Re: Ad Management mod
Post by: Douglas on October 21, 2020, 06:57:32 PM
Got a suggestion... this is actually mission critical for three sites I manage.

Need an ad spot (has to be responsive, but should support banner or box ads) in the header, which can replace the SMF logo. See attached image. :)
Title: Re: Ad Management mod
Post by: vbgamer45 on October 21, 2020, 07:30:28 PM
What I would suggest is to move this block of code from index.template.php to main logo area instaed

// Begin Ad  management Location - Welcome Area/User Information Box

if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}

// End Ad  management Location - Welcome Area/User Information Box





Responsive I guess depends more on the theme/code entered in the area.
Title: Re: Ad Management mod
Post by: Douglas on October 21, 2020, 09:04:53 PM
Not quite working...

https://bearlydoug.com/forums/

The big blue 728x90 box should've showed up at the top.  The code above is not in any of the separate (copied) theme's index.template.php files. Attaching one of the "modified" index.template.php files. Installer reported no issues.

Also equally interesting: Sidebar (160x600) is not showing up.

https://bearlydoug.com/forums/index.php?topic=2.0

I only have this set for between posts "2,3", and it's doubled up.

Running 2.1 RC3, if that makes a difference.
Title: Re: Ad Management mod
Post by: vbgamer45 on October 21, 2020, 09:13:03 PM
Attach your index.template.php file
Title: Re: Ad Management mod
Post by: Douglas on October 21, 2020, 09:33:31 PM
I did. After the fact, and after I did more updates. :)
Title: Re: Ad Management mod
Post by: Douglas on October 22, 2020, 03:24:22 AM
Just hit me that your (awesome, btw!) mod needs two additional items (probably under "Settings"):

"Before the closing </head> tag" (textarea)

"Before the closing </body> tag" (textarea)

Some ad companies (Google Ads and Google DFP are a couple) need to have things situated before the closing head and/or body tags. Yes, it could be manually added in, however, I'm trying to get away from having to manually add anything in, if possible, with the updates I'm doing.

Between the three suggestions, this should round out your Ad Management mod quite nicely (it would be nice to have a separate entry for the top banner ad, because that gives yet another spot for ads to go up on sites who are ad-revenue dependent).

FYI, I know that the three sites where I'll be using your plugin will be paying to remove the "SMFAds for Free Forums" wording at the bottom... both because it needs to be on these sites, and to also support you. (Yes, one of them is HV, btw.) :D
Title: Re: Ad Management mod
Post by: Douglas on October 24, 2020, 10:48:22 AM
Saw your reply... right now, I have the admin ad viewing option turned off, so I can see them. :)
Title: Re: Ad Management mod
Post by: Aleksi "Lex" Kilpinen on October 24, 2020, 11:10:46 AM
Quote from: Douglas on October 24, 2020, 10:48:22 AM
Saw your reply... right now, I have the admin ad viewing option turned off, so I can see them. :)
Saw my reply that I almost immediately removed? :P
Yeah, I did (eventually) figure out that it was due to something else.
Thanks though.
Title: Re: Ad Management mod
Post by: vbgamer45 on October 24, 2020, 11:22:07 AM
Quote
"Before the closing </head> tag" (textarea)

"Before the closing </body> tag" (textarea)

Some ad companies (Google Ads and Google DFP are a couple) need to have things situated before the closing head and/or body tags. Yes, it could be manually added in, however, I'm trying to get away from having to manually add anything in, if possible, with the updates I'm doing.

I like that idea. Might just be a spot to enter code in the header/footer area.
Title: Re: Ad Management mod
Post by: Douglas on October 24, 2020, 11:36:47 AM
Lex, blame SMF's notification system, haha! (Glad you got it sorted, though).

vbgamer, thank you!  Any luck with the index.template.php file I posted?
Title: Re: Ad Management mod
Post by: vbgamer45 on October 25, 2020, 04:33:31 PM
The index.template.php looks ok.

I checked your site. It seems like the placeholder ad. Is using this setting "Display ads on every page right below the menu"



Make sure the ad is using this setting "Display ads in the welcome user area"
Title: Re: Ad Management mod
Post by: Douglas on October 25, 2020, 04:59:21 PM
/me facepalms himself

I didn't even SEE that setting... but that's EXACTLY what I needed.  Thank you, vbgamer!
Title: Re: Ad Management mod
Post by: vbgamer45 on October 25, 2020, 05:26:36 PM
Glad to help
Title: Re: Ad Management mod
Post by: Douglas on October 25, 2020, 05:56:47 PM
Hopefully, you'll release a version that has the two suggestions I recommended. That's (vitally) important for me to be able to skin the sites effectively without doing a file edit. :)
Title: Re: Ad Management mod
Post by: Arantor on October 25, 2020, 05:58:52 PM
You mean "without doing a file edit I would otherwise have to manage" because most mods *are* just bundles of file edits... ;)
Title: Re: Ad Management mod
Post by: Douglas on November 16, 2020, 08:18:10 AM
Just a bit of a heads up:

On mobile devices, you should have the ability to hide ad spots (this needs to be both a setting (for minimum width) and a checkbox ("hide on mobile devices" or "Display if min width is greater than X" or something similar).

I've had to modify the Ads.template.php file to add a CSS ID to the sidebar column, so that I could hide it via CSS if the width was less than X.

@media screen and (max-width: 600px) {
#lwosTower {display: none !important;}
}


Also, under Settings, "Ads within posts look like actual posts" isn't quite working the way it should be. It should NEVER copy the poster's profile via the post above it. It should reflect the site's name (no linked bio). :)  Screenshot attached.
Title: Re: Ad Management mod
Post by: Nodaz on December 23, 2020, 12:41:32 PM
 running SMF 2.0.17 and SMF Ads 3.5d on two sites, i have issues with each.

ad-sense account is not new, these ads have been active for years though the SMF sites were not updated and i recently did a major overhaul to clean them up , reinstalled all mods after a large upgrade package was installed.
Everything is working except the ads>

I have double checked ad sense, everything is good to go "READY" and but i recopied the updated (https://) ad-sense code into the mod.

settings:
Type    HTML
Help Display ads on every page right below the menu is check marked, everything else is blank or unchecked.

under "settings:
Disable ads for admins                             unchecked
Disable Reports                                        unchecked
Disable all ads                                          unchecked
Ads within posts look like actual posts     checked

Site   "A" ZERO ads appear
Site   "B" the ads appears on the main page most of the time, never anywhere else.

i have checked from multiple devices, multiple browsers( including incognito tabs) and different WiFi and data connections, always the same.

what could be the issue?

   

Title: Re: Ad Management mod
Post by: Matthias on December 23, 2020, 01:34:29 PM
You can try to verify, if it is a Ad Management problem or something else:
Put in something like
<p>Some text</p>
instead of the Google Ad Code and check if it is displayed correctly.
For some time now, the Ad Sense Code is no longer displayed everywhere you want it. I had the same trouble.
Title: Re: Ad Management mod
Post by: vbgamer45 on December 23, 2020, 02:31:33 PM
That's what I suggested on the smfads.com site.
Title: Re: Ad Management mod
Post by: Matthias on December 23, 2020, 02:55:32 PM
Do you have a link to your suggestion?
Title: Re: Ad Management mod
Post by: vbgamer45 on December 23, 2020, 02:59:16 PM
Basically the same idea you had http://www.smfads.com/forums/index.php?topic=3231.msg10280;topicseen#msg10280 :)
Title: Re: Ad Management mod
Post by: Matthias on December 23, 2020, 03:50:10 PM
ok, i only read that now  :)

Maybe you can build a field for the Google Adsense tags into the mod. For Adsense to work, some tags must be basically inserted in the header.
I did this on some of my sites so that you can control Google advertising with the SMF groups to display or not.
Times change...
Title: Re: Ad Management mod
Post by: Nodaz on December 24, 2020, 04:50:44 PM
Quote from: Matthias on December 23, 2020, 01:34:29 PM
You can try to verify, if it is a Ad Management problem or something else:
Put in something like
<p>Some text</p>
instead of the Google Ad Code and check if it is displayed correctly.
For some time now, the Ad Sense Code is no longer displayed everywhere you want it. I had the same trouble.

alright , going to give that a try.
Title: Re: Ad Management mod
Post by: Nodaz on December 25, 2020, 11:20:31 AM
EDIT: SO i had been accessing the site through Fire Fox, i happened to just check the sites on Chrome, and all ads are being served correctly.
Opened the sites in Microsoft Edge test site serves fine, Target site , does not serve ads OR show <p>Some text</p> as inserted.


Quote from: Matthias on December 23, 2020, 03:50:10 PM
Maybe you can build a field for the Google Adsense tags into the mod. For Adsense to work, some tags must be basically inserted in the header.
I did this on some of my sites so that you can control Google advertising with the SMF groups to display or not.
Times change...
Im not sure i quite understand where to put the adsense code as you explained it.  I ma learning as i go and am not overly experienced

I added <p>Some text</p> to the adsense code on two different ( but virtually identical SMF forums installations)

Test site shows ads and <p>Some text</p> as inserted.

  Target site  still does not serve ads, but DOES show <p>Some text</p> as inserted.

BUT:
Test site only shows ads/text on index page and board index, no ads are shown on topic index page but it does show <p>Some text</p>
Target site does not show ads on index page and board index, no ads are shown on topic index page but it does show <p>Some text</p> on all three.

Adsense code is was double checked and matches what is inserted in the Mod for each page.
Title: Re: Ad Management mod
Post by: vbgamer45 on December 25, 2020, 11:43:17 AM
The some text test shows that the placements in ad management is working. To confirm your adsense code is there you can do a view source on the page in your browser and check if it is there.

Reasons adsense won't display: site is new, no content yet indexed by adsense bot to show ads, using ad blocker.

In the old days adsense used to show PSA ads if no it couldn't show ads. now adsense just shows a blank space which makes it harder to troubleshoot.
Title: Re: Ad Management mod
Post by: Nodaz on December 25, 2020, 02:37:05 PM
so placement is working then
I did a viewsource and the ad code is there an correct, ad mod and adsense have been on this site for years, though i recently recopied the code supplied by adsense and "reinstalled" it in the mod>
I do keep getting minor policy violations from adsense , the first on was for minimal content on an admin page, it went away after a week or so as i was trying to figuire out how to exclude or remove the code form that page.

It returned again breifly then idssappeared.
The two days ago i got this one:
targetsite.com/index.php?PHPSESSID=tbrbnt0d6gt87af789ibc33007&topic=4283.msg9587
Valuable Inventory: No content

Restricted demand

Dec 25th


I am wondering if ad sense is restricting ad serving.
Issue is i cannot figure out how to exclude the pages listed pr delete the ad code form that page.
Title: Re: Ad Management mod
Post by: vbgamer45 on December 25, 2020, 09:31:51 PM
Yes, i get those often as well.  Adsense does not like any content that is behind membergroup permissions if not visible to guest.
Title: Re: Ad Management mod
Post by: Nodaz on December 26, 2020, 10:30:50 AM
Quote from: vbgamer45 on December 25, 2020, 09:31:51 PM
Yes, i get those often as well.  Adsense does not like any content that is behind membergroup permissions if not visible to guest.
So just leave them be?
i was just worried that ad sense would stop serving t the site as a whole.
do you ior is there  any benefit from using auto ads( and related code)?
Title: Re: Ad Management mod
Post by: vbgamer45 on December 26, 2020, 10:38:53 AM
I am not sure what the answer is I have millions of pages I am not sure if it matters more for smaller sites.

Auto ads I don't do since the placements can appear in odd places.
Title: Re: Ad Management mod
Post by: Nodaz on December 26, 2020, 02:28:27 PM
Quote from: vbgamer45 on December 26, 2020, 10:38:53 AM
I am not sure what the answer is I have millions of pages I am not sure if it matters more for smaller sites.

Auto ads I don't do since the placements can appear in odd places.

Oh thank you, so you use this mod exclusively for ad placement on SMF.
My feeling about auto-ads was as you reinforced, that it would place ads in odd places
Title: Re: Ad Management mod
Post by: vbgamer45 on December 26, 2020, 02:52:41 PM
Yeah it's a pity. It just doesn't appear right.
Other issues with adsense you can no longer put a third party ad url if their ads don't show.
Title: Re: Ad Management mod
Post by: Nodaz on December 28, 2020, 12:12:22 PM
Quote from: vbgamer45 on December 26, 2020, 02:52:41 PM
Yeah it's a pity. It just doesn't appear right.
Other issues with adsense you can no longer put a third party ad url if their ads don't show.
Is there any other option for (adsense) ad placement?
Title: Re: Ad Management mod
Post by: vbgamer45 on December 28, 2020, 01:16:53 PM
There is not that would make a difference it in the ad showing or not.
Title: Re: Ad Management mod
Post by: Aleksi "Lex" Kilpinen on December 31, 2020, 12:37:52 PM
Ran in to a slight problem using Google auto ads with this mod (by the way, it can actually work pretty nicely over time - Google learns), the "Display ads on every page right below the menu" option will inevitably end up causing policy violations since action=login is "Valuable Inventory: No content" and there's no way to exclude an url parameter on Google.

Now, this can basically be worked around by changing the options to "Display ads on board index", "Display ads on message index", and "Display ads on the post page" - but thought I'd mention this, since Google is slowly driving people towards the auto ads, and of course the easiest way to go would be to just include the code on every page possible.
Title: Re: Ad Management mod
Post by: vbgamer45 on December 31, 2020, 12:56:50 PM
Yes,  it's a big pain for me as well. The login page/register page are easy to filter.

The harder ones are if you have private forums.  Google will just see the login page. Example would be your unreadreplies if ad is displayed there.
Title: Re: Ad Management mod
Post by: Nodaz on January 04, 2021, 04:19:31 PM
Quote from: Aleksi "Lex" Kilpinen on December 31, 2020, 12:37:52 PM
Ran in to a slight problem using Google auto ads with this mod (by the way, it can actually work pretty nicely over time - Google learns), the "Display ads on every page right below the menu" option will inevitably end up causing policy violations since action=login is "Valuable Inventory: No content" and there's no way to exclude an url parameter on Google.

Now, this can basically be worked around by changing the options to "Display ads on board index", "Display ads on message index", and "Display ads on the post page" - but thought I'd mention this, since Google is slowly driving people towards the auto ads, and of course the easiest way to go would be to just include the code on every page possible.


currently these two are sitting as policy violations. 

*targetsite*forums.com/index.php?PHPSESSID=tbrbnt0d6gt87af789ibc33007&topic=4283.msg9587 Yes Valuable Inventory: No content   Restricted demand Jan 2, 2021


*targetsite*forums.com/index.php?action=stats Yes Valuable Inventory: No content  Restricted demand  Jan 2, 2021

I did have "Display ads on every page right below the menu" checked but have changed it to what you suggest, do i need to request a review at this point or will they resolve themselves?
i do not have auto ads enabled at this juncture, mainly because you cant exclude pages with fragments and or parameters so it was moot.

Title: Re: Ad Management mod
Post by: Aleksi "Lex" Kilpinen on January 05, 2021, 09:32:44 AM
I don't believe it requires a review, because you are trying to stop showing ads - not fixing the violation to allow ads to be shown.
Title: Re: Ad Management mod
Post by: Delimavi123 on February 10, 2021, 07:22:25 AM
I'm getting an error on the mod setup. There is an error in the picture. I wonder where did I go wrong

Title: Re: Ad Management mod
Post by: vbgamer45 on February 10, 2021, 09:23:08 AM
Can you translate that for me?
Title: Re: Ad Management mod
Post by: Delimavi123 on February 10, 2021, 11:08:48 AM

Description of the error shown in the picture:
The package you are trying to download or install is corrupted or not compatible with this SMF version
Title: Re: Ad Management mod
Post by: vbgamer45 on February 10, 2021, 11:19:42 AM
Did you download  Approved    ad_mod_v3.5_SMF_2.0_and_SMF2.1d.zip?    That is for SMF 2.1
Title: Re: Ad Management mod
Post by: spiros on March 11, 2021, 07:42:10 AM
I think we discussed this many years ago. Is there some way to exclude specific topics from displaying the ads, i.e. topics that Adsense deems against its policy? It could be adding exceptions with topic ids.
Title: Re: Ad Management mod
Post by: vbgamer45 on March 11, 2021, 10:32:38 AM
There is not at this time. Yeah google is a pain about that.
Title: Re: Ad Management mod
Post by: spiros on March 11, 2021, 10:44:59 AM
I think it is vital for a forum, given that one cannot control content.
Title: Re: Ad Management mod
Post by: shadav on March 11, 2021, 11:13:16 AM
what I did, not for that purpose but...
I use tiny portal, so I hide the right side ads and placed the code into the portal's right side and then used the portal settings to limit where the ad is viewed
ie not in the admin

you could then also tell it not to display in specific boards
Title: Re: Ad Management mod
Post by: spiros on March 11, 2021, 11:15:49 AM
The problem is not specific boards (there is a setting for that in the mod), but that any board could have a flagged topic.
Title: Re: Ad Management mod
Post by: Douglas on June 05, 2021, 06:04:05 AM
Just an FYI, because you're using valign="top" and align and even width="100%" for your <td> calls, HTML validators are failing on those.

You need to switch this to use CSS, instead. Inline CSS is not the best way to handle this; you might want to consider including a separate CSS file for this.

I would also recommend starting to move away from tables and use pure CSS and divs... just my thoughts.

(Love this mod, do NOT get me wrong!)
Title: Re: Ad Management mod
Post by: vbgamer45 on June 05, 2021, 08:02:51 AM
It would be nice to move away from tables for the main columns.  I would need to hire someone for that part for the CSS to make that happen, as I am not that good with CSS layouts.
Title: Re: Ad Management mod
Post by: smartmouse on June 24, 2021, 04:13:49 AM
Hello, is possible to avoid mod to add attachments to it ads post?
I see that if the post before ads have files attached the sponsored post has the same file attached as well.
How to fix it?
Title: Re: Ad Management mod
Post by: vbgamer45 on June 24, 2021, 07:05:47 AM
Are you using the option display ads a s posts.
Title: Re: Ad Management mod
Post by: smartmouse on June 24, 2021, 09:45:14 AM
Yes, I removed it and I solved, thank you!
Title: Re: Ad Management mod
Post by: vbgamer45 on June 24, 2021, 09:53:14 AM
Glad that helped
Title: Re: Ad Management mod
Post by: Dave J on June 27, 2021, 05:49:35 AM
Hi VB,

I'm trying to get a wordsearch page (which the files for it are stored on my site) to work via your ads mod. I've managed to get a crossword added but I cannot get the html code to open the full wordsearch in the ad.
I can link to the wordsearch which then opens on another page but I wanted it embedded into the site rather than members having to go to an external page.

This is the code I'm using, which is basically the wordsearch html page.

<div style="text-align:center">
<head>
<meta charset="utf-8">
<title>Testing</title>
</head>
<body>
<h6>Testing</h6>
<h7 id = "instructions"></h7>
<h8 id = "themeIntro">The theme is: <span id = "wordTheme"></span></h8>

<button id = "newGameButton" type = "button">New Game</button>
<div id = "wordboard"></div>
<div id = "wordlist"></div>
<button id = "solveButton" type = "button">Release the sacred answers!</button>

<link rel = "stylesheet" type="text/css" href = "css/wordsearch.css">

<script src = https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js></script>

<script src = "js/wordpaths.js"></script>
<script src = "js/wordsearchcontroller.js"></script>
<script src = "js/wordsearchlogic.js"></script>
<script src = "js/wordsearchview.js"></script>

<script>
$(document).ready( function() {
new WordSearchController("#wordboard", "#wordlist", "#solveButton", "#newGameButton", "#instructions",
"#wordTheme");
})
</script>
</body>
</div>


You can see what I've got on my test site here https://www.davejohnson.co.uk/testing/index.php?action=forum

Any help is much appreciated

Dave
Title: Re: Ad Management mod
Post by: vbgamer45 on June 27, 2021, 09:03:15 AM
I am getting these files don't exist checking javascript console in browser
https://www.davejohnson.co.uk/testing/js/wordsearchlogic.js

Loading failed for the <script> with source "https://www.davejohnson.co.uk/testing/js/wordpaths.js". index.php:197:1
Loading failed for the <script> with source "https://www.davejohnson.co.uk/testing/js/wordsearchcontroller.js". index.php:198:1
Loading failed for the <script> with source "https://www.davejohnson.co.uk/testing/js/wordsearchlogic.js". index.php:199:1
Loading failed for the <script> with source "https://www.davejohnson.co.uk/testing/js/wordsearchview.js".
Title: Re: Ad Management mod
Post by: Dave J on June 27, 2021, 09:15:09 AM
Hi VB,

It should have shown

https://www.davejohnson.co.uk/testing/wordsearch/js/wordsearchlogic.js

Not sure why it gave that link

Thanks for looking at it but I have solved it now. All I needed to do was put the link in an <iframe>.

If you go to the test site now you'll see it working. All I need to do now is some cosmetic touches.

Thanks again VB

Title: Re: Ad Management mod
Post by: Douglas on July 05, 2021, 10:12:06 AM
Interesting error here... out of the box install...

Incorrect string value: '\xE2\x80\x83\x0D\x0A<...' for column 'CONTENT' at row 1
File: /home/[url=https://www.simplemachines.org/community/index.php?action=profile;u=360106]snip[/url]/Sources/Ads.php
Line: 273


Ads.php attached (as Ads.txt)

I was trying to change the positioning of this between certain posts.
Title: Re: Ad Management mod
Post by: vbgamer45 on July 05, 2021, 10:26:13 AM
Probably due the fact the table is not in utf8 format for ads
Title: Re: Ad Management mod
Post by: Douglas on July 06, 2021, 07:11:37 PM
Quote from: vbgamer45Probably due the fact the table is not in utf8 format for ads
Good catch... this should probably be changed for those of us running 2.1. ;)

yabbse_admin_info_files utf8_general_ci
yabbse_ads   latin1_swedish_ci
yabbse_ads_settings   latin1_swedish_ci
yabbse_approval_queue   utf8_general_ci
yabbse_attachments   utf8_general_ci
yabbse_background_tasks utf8_general_ci
yabbse_ban_groups   utf8_general_ci


EDIT: I ended up manually putting the code into the DB. Would like to see this resolved, though. :)
Title: Re: Ad Management mod
Post by: vbgamer45 on July 06, 2021, 10:12:50 PM
Yeah I probably should make it standard for all mods now
Title: Re: Ad Management mod
Post by: Gianluigi on August 14, 2021, 11:27:00 AM
Hi, I have this error when uninstalling the modification, I am using SMF 2.0.18.
Screenshot attached.
Title: Re: Ad Management mod
Post by: vbgamer45 on August 14, 2021, 11:36:04 AM
Open your sources/querystring.php find and remove that code first then uninstall.
Title: Re: Ad Management mod
Post by: Gianluigi on August 14, 2021, 12:01:00 PM
I tried, but it doesn't seem to work.
Another screenshot attached.
Thank you for your help.
Title: Re: Ad Management mod
Post by: vbgamer45 on August 14, 2021, 12:05:18 PM
After it's gone you can just uninstall with the error
Title: Re: Ad Management mod
Post by: swo0p on August 25, 2021, 01:04:48 PM
Hi there,

So i have a little problem with this mod. I have it before then I was putting new 2.0.18 script and install it once again. After that when i would like to add new ads i can see:

Request rejected by the server. You do not have access to  /index.php?action=admin;area=ads;sa=add on this server.
 
  You don't have permission to access /index.php?action=admin;area=ads;sa=add

Please help me to find a solution for that
Title: Re: Ad Management mod
Post by: vbgamer45 on August 25, 2021, 01:08:22 PM
Check out https://wiki.simplemachines.org/smf/Mod_security_-_Having_problems_with_mod_security
Title: Re: Ad Management mod
Post by: swo0p on August 25, 2021, 01:21:49 PM
Quote from: vbgamer45 on August 25, 2021, 01:08:22 PMCheck out https://wiki.simplemachines.org/smf/Mod_security_-_Having_problems_with_mod_security
tx, Ive found and fixed the problem
Title: Re: Ad Management mod
Post by: vbgamer45 on August 25, 2021, 01:31:59 PM
I would try contacting your host and see if they can disable mod_security just in case.
Title: Re: Ad Management mod
Post by: davo88 on September 21, 2021, 05:39:48 PM
Questions about up updating Ad Management mod.
SMF 2.0.17

Should an older version (3.2) of Ad Management be uninstalled before installing the latest 3.5 version?
Or can you just install the new version?

In either case, will the list of adverts be preserved or will they need to be re-entered?

Many thanks.
Title: Re: Ad Management mod
Post by: vbgamer45 on September 21, 2021, 05:47:32 PM
I would suggest if you can.
Yes all data is safe in the system on uninstall.
Title: Re: Ad Management mod
Post by: davo88 on September 21, 2021, 06:10:20 PM
Thank you for your quick reply vbgamer45... much appreciated.
Title: Re: Ad Management mod
Post by: vbgamer45 on September 21, 2021, 06:11:13 PM
Glad to help
Title: Re: Ad Management mod
Post by: swo0p on September 22, 2021, 04:28:47 PM
ok, so I have the some question like someone have before: I am using 2 layouts SMF Default Theme - Curve and RDD. Ive install plugin and on RDD everything works OK, but only on default the place "Display ads in the welcome user area" shows ads twice.

I was checking all the files manually and cant find any double code

Need help with this
Title: Re: Ad Management mod
Post by: vbgamer45 on September 22, 2021, 04:36:58 PM
Attach your index.template.php
Title: Re: Ad Management mod
Post by: swo0p on September 22, 2021, 04:46:37 PM
here You are but Ive just found problem .... cache/proxy :(

thank You for help anyway
Title: Re: Ad Management mod
Post by: vbgamer45 on September 22, 2021, 04:56:57 PM
Np. Glad you have it working.
Title: Re: Ad Management mod
Post by: spiros on December 23, 2021, 12:00:26 PM
I am adding a long line in "Which boards should this ad display in" and I get:

Data too long for column 'BOARDS' at row 1
File: /home/translat/public_html/forum/Sources/Ads.php
Line: 278

Ideally, I would use an option to exclude boards from the specific ad. What can I do now?

This is the line I used:
2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126

EDIT: I changed to varchar 500
Title: Re: Ad Management mod
Post by: vbgamer45 on December 23, 2021, 02:03:17 PM
Good to know for large boards!
Title: Re: Ad Management mod
Post by: dsanchez on January 08, 2022, 09:32:45 AM
Quote from: jerm on February 01, 2006, 06:14:10 PMSources/ModSettings.php
Themes/default/index.template.php
Themes/default/BoardIndex.template.php
Themes/default/MessageIndex.template.php
Themes/default/Display.template.php

Hello, can you please share the list of files that need to be writable for 2.1 RC4 installation? thanks a lot!
Title: Re: Ad Management mod
Post by: dsanchez on January 08, 2022, 09:34:05 AM
Quote from: spiros on December 23, 2021, 12:00:26 PMI am adding a long line in "Which boards should this ad display in" and I get:

I understand if you left it blank, it will show in all boards.
Title: Re: Ad Management mod
Post by: dsanchez on January 08, 2022, 10:31:22 AM
Quote from: dsanchez on January 08, 2022, 09:32:45 AM
Quote from: jerm on February 01, 2006, 06:14:10 PMSources/ModSettings.php
Themes/default/index.template.php
Themes/default/BoardIndex.template.php
Themes/default/MessageIndex.template.php
Themes/default/Display.template.php

Hello, can you please share the list of files that need to be writable for 2.1 RC4 installation? thanks a lot!


found them here https://custom.simplemachines.org/index.php?action=parse
Title: Re: Ad Management mod
Post by: Arantor on January 08, 2022, 10:42:03 AM
Think you mean https://custom.simplemachines.org/index.php?mod=255 in the 'packages' tab... action=parse is a generic link that doesn't contain any specific instructions.
Title: Re: Ad Management mod
Post by: txcas on January 23, 2022, 06:52:51 AM
Running version 3.5d on SMF 2.1 RC4. The permissions are not enforced correctly and ads show up for everyone including member groups where ads are not enabled. I had to turn on deny permissions on the forum and explicitly deny ads on some of the member groups.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 23, 2022, 08:30:47 AM
What setup do you have for permissions? Are the permissions on the primary membergroup? Or are they secondary groups?
Title: Re: Ad Management mod
Post by: txcas on January 23, 2022, 11:28:14 AM
Quote from: vbgamer45 on January 23, 2022, 08:30:47 AMWhat setup do you have for permissions? Are the permissions on the primary membergroup? Or are they secondary groups?
They are primary groups. One group is Global Moderators and the other is Donators. The "Enable ads" option is unchecked for both groups, but they still get ads. It was not until I used a deny that they stopped getting ads.
Title: Re: Ad Management mod
Post by: Kindred on January 24, 2022, 08:52:52 AM
that's because SMF has an INCLUSIVE permission system.
If a user is in *ANY* group which has the permission set to ALLOW, then the permission will be available for that user - regardless of how many groups the user is in that has a DISALLOW.

The exception if the DENY option, which is EXCLUSIVE.
If a user is in any group which has a permission set to DENY, then the permission will be UNavailable for that user - regardless of how many groups the user is in that has a ALLOW.

In other words, it sounds like the permissions are working exactly as expected based on SMF's design.
Title: Re: Ad Management mod
Post by: Pyrhel on March 14, 2022, 03:42:40 AM
Hello, I just wanted to say that the left padding on the odd elements is a bit strange :P
Title: Re: Ad Management mod
Post by: pikeman on March 15, 2022, 03:06:33 PM
Hi, I switched to script 2.1.1 and since then the mode does not display banners at the bottom of the forum properly. Banners are not visible to guests from Firefox only when they are in one of the topics, when they log in, everything is fine. On the other pages the display is as it should be.
Other browsers display banners well without any problems.
What could be the problem?

Title: Re: Ad Management mod
Post by: vbgamer45 on March 15, 2022, 03:33:46 PM
That would be strange. There is no browser checking code in the mod.
Title: Re: Ad Management mod
Post by: pikeman on March 15, 2022, 04:04:04 PM
Looks like they should be standing lower.

Chrome: https://i.postimg.cc/zqQzCxQn/1.png
Firefox: https://i.postimg.cc/r8t8QS67/2.png
Title: Re: Ad Management mod
Post by: hotrod007 on April 26, 2022, 08:24:15 AM
Years ago you did some custom work for me...   Gave me a location...  Show Ads Instead of news..   I upgraded.. can you do this again...     https://njsaltwaterfisherman.com/forums/index.php
Title: Re: Ad Management mod
Post by: Matthias on April 26, 2022, 07:00:19 PM
I see google ads on your page. This is not as simple as it used to be.

If you have enabled automatic ads in your Adsense account and specified a fixed place for a Google ad on your website, ads will still be placed automatically.
Title: Re: Ad Management mod
Post by: pikeman on April 27, 2022, 12:37:53 AM
Google ads are not related to mode (they were inserted manually and have an automatic display) and have nothing to do with this error.  With and without them, it appears described as I stated because of the drop-down menu in the right corner.
Title: Re: Ad Management mod
Post by: YouLechti on October 26, 2022, 02:16:54 AM
I installed on a test forum SMF 2.1.2 update upon SMF 2.0.18 and everything works well.

Now I tried to install Ad Management mod version 3.5d. But I get errors in installation. First six steps proceed fine, but then the installation stops.

If I install this mod, I'll get screen full of code (se below).

Where should I look a resolution?

Quotearray(14) {
  • => array(3) { ["file"]=> string(57) "/home/mlfoorumitest/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(590) ["function"]=> string(9) "log_error" } [1]=> array(3) { ["file"]=> string(57) "/home/mlfoorumitest/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(494) ["function"]=> string(12) "smf_db_error" } [2]=> array(3) { ["file"]=> string(50) "/home/mlfoorumitest/public_html/Sources/Errors.php" ["line"]=> int(138) ["function"]=> string(12) "smf_db_query" } [3]=> array(3) { ["file"]=> string(50) "/home/mlfoorumitest/public_html/Sources/Errors.php" ["line"]=> int(301) ["function"]=> string(9) "log_error" } [4]=> array(1) { ["function"]=> string(17) "smf_error_handler" } [5]=> array(3) { ["file"]=> string(57) "/home/mlfoorumitest/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(1027) ["function"]=> string(22) "mysqli_stmt_bind_param" } [6]=> array(3) { ["file"]=> string(50) "/home/mlfoorumitest/public_html/Sources/Errors.php" ["line"]=> int(129) ["function"]=> string(19) "smf_db_error_insert" } [7]=> array(3) { ["file"]=> string(57) "/home/mlfoorumitest/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(590) ["function"]=> string(9) "log_error" } [8]=> array(3) { ["file"]=> string(57) "/home/mlfoorumitest/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(494) ["function"]=> string(12) "smf_db_error" } [9]=> array(3) { ["file"]=> string(52) "/home/mlfoorumitest/public_html/Sources/Packages.php" ["line"]=> int(928) ["function"]=> string(12) "smf_db_query" } [10]=> array(3) { ["file"]=> string(48) "/home/mlfoorumitest/public_html/Sources/Subs.php" ["line"]=> int(6009) ["function"]=> string(14) "PackageInstall" } [11]=> array(3) { ["file"]=> string(52) "/home/mlfoorumitest/public_html/Sources/Packages.php" ["line"]=> int(91) ["function"]=> string(11) "call_helper" } [12]=> array(3) { ["file"]=> string(49) "/home/mlfoorumitest/public_html/Sources/Admin.php" ["line"]=> int(499) ["function"]=> string(8) "Packages" } [13]=> array(3) { ["file"]=> string(41) "/home/mlfoorumitest/public_html/index.php" ["line"]=> int(191) ["function"]=> string(9) "AdminMain" } } Error loop.array(5) {
  • => array(3) { ["file"]=> string(57) "/home/mlfoorumitest/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(590) ["function"]=> string(9) "log_error" } [1]=> array(3) { ["file"]=> string(57) "/home/mlfoorumitest/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(494) ["function"]=> string(12) "smf_db_error" } [2]=> array(3) { ["file"]=> string(57) "/home/mlfoorumitest/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(802) ["function"]=> string(12) "smf_db_query" } [3]=> array(3) { ["file"]=> string(51) "/home/mlfoorumitest/public_html/Sources/Session.php" ["line"]=> int(187) ["function"]=> string(13) "smf_db_insert" } [4]=> array(1) { ["function"]=> string(12) "sessionWrite" } } Error loop.
Title: Re: Ad Management mod
Post by: vbgamer45 on October 26, 2022, 11:39:18 AM
Strange error does it say a line and file number I see the breakdown.
 ... SMF 2.1.x right? the index.template.php you can see which part it fails on a try to do a manual edit in that location.
This normally happens if another mod edits the same code.
Title: Re: Ad Management mod
Post by: gevv on October 27, 2022, 03:41:25 AM
Hello,

How do I show the "Display ads after the last post" banner at the top of the post

can it be like "Display ads before the last post"

Title: Re: Ad Management mod
Post by: vbgamer45 on October 27, 2022, 08:08:53 AM
Do you want to move that location or add a new one?
Title: Re: Ad Management mod
Post by: gevv on October 27, 2022, 01:41:03 PM
i want to move location before the last post
Title: Re: Ad Management mod
Post by: gevv on October 28, 2022, 08:22:48 AM
@vbgamer45 In which php file are the ads display codes?

Can i make it show before the last post by adding a css class?
Title: Re: Ad Management mod
Post by: vbgamer45 on November 01, 2022, 08:49:16 AM
It's in the display.template.php for the theme it self.


Two ad function call options you can move or use
show_threadAds();
or
show_posts($adcounter)

Probably want to go with the last option if (function_exists("show_posts")) and readjust the code location
Title: Re: Ad Management mod
Post by: gevv on November 01, 2022, 11:43:30 AM
Thanks @vbgamer45

I moved the codes but it went inside the message content. It doesn't go higher, I tried many places

after.png

global $adcounter;
if (function_exists("show_posts") && empty($message['adpost']))
{

if ($adpost = show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
$message['adpost'] = 1;
$message['body'] = $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']);
template_single_post($message);

}
else
{
echo '
<div class="windowbg">


<div align="center">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>


</div>
<hr class="post_separator" />
';
}
}
}

if(function_exists("show_lastpostAds") && function_exists("show_posts") && empty($message['adpost'])  && ($context['topic_last_message'] == $message['id']   || ($message['counter']+1) % $context['messages_per_page'] == 0))
{
if(($adpost = show_lastpostAds()) && !show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
$message['adpost'] = 1;
$message['body'] = $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']);
template_single_post($message);


}
else
echo '
<div class="windowbg">

<div align="center">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) ,'</div>


</div>
<hr class="post_separator" />
';
}
}
Title: Re: Ad Management mod
Post by: vbgamer45 on November 01, 2022, 12:44:10 PM
Attach your display.template.php
Title: Re: Ad Management mod
Post by: gevv on November 01, 2022, 01:06:19 PM
Display.template.php
Title: Re: Ad Management mod
Post by: vbgamer45 on November 01, 2022, 01:11:23 PM
Try this to add first post
Title: Re: Ad Management mod
Post by: gevv on November 01, 2022, 01:43:08 PM
Thanks @vbgamer45

I'm trying to move it to the top of the last post.

Untitled 1.png




Opposite of "Display ads after the last post" property

Untitled 2.png
Title: Re: Ad Management mod
Post by: vbgamer45 on November 01, 2022, 04:04:07 PM
So the top of the last post page? And not anywhere else?
Title: Re: Ad Management mod
Post by: gevv on November 02, 2022, 03:59:55 AM
Yes as you say,

Quote from: vbgamer45 on November 01, 2022, 04:04:07 PMSo the top of the last post
Title: Re: Ad Management mod
Post by: vbgamer45 on November 03, 2022, 02:29:23 PM
Doesn't seem like that would be easy to do.. now that I think about  it.
Title: Re: Ad Management mod
Post by: -Rock Lee- on February 12, 2023, 11:10:13 AM
I want to report a bug with smf 2.1.3 / php 8.2 / MySQL 8.0

Field 'TITLE' doesn't have a default value
File: /www/Sources/Ads.php
Line: 118


Regards!
Title: Re: Ad Management mod
Post by: vbgamer45 on February 12, 2023, 11:25:20 AM
That must be from a really old version or something. Since title is not a database column in  the tables.
Drop that column called title from the ads table.
Title: Re: Ad Management mod
Post by: -Rock Lee- on February 12, 2023, 05:41:09 PM
It is what seems strange to me because I do not see anything related although the site was somewhat old (SMF 1.1.8) it was updated to 2.1.3 without problems and I updated the mod to the latest version 3.5d. Can there be any trace left? I'm going to take a better look at the database and see if I clean it up more then.


Regards!
Title: Re: Ad Management mod
Post by: vbgamer45 on February 12, 2023, 06:20:28 PM
Might be another ads mod too
Title: Re: Ad Management mod
Post by: -Rock Lee- on February 12, 2023, 09:05:44 PM
Yes I thought the same thing but I looked at the backup and this is it, it had version 2.3.5 before but it can install several mods at the time, I'm going to investigate more anything I'll come back!


Regards!
Title: Re: Ad Management mod
Post by: vicente127 on September 23, 2023, 04:42:27 AM
 :( Hello, I'm getting this error when installing the mod, i'm using the latest version.

Captura de pantalla 2023-09-23 104209.png
Title: Re: Ad Management mod
Post by: vbgamer45 on September 23, 2023, 09:11:59 AM
Are you sure it is this mod? That is core SMF code it looks like
Title: Re: Ad Management mod
Post by: vicente127 on September 23, 2023, 09:34:32 AM
Well, this started to happen after installing the mod (with errors on themes,

Captura de pantalla 2023-09-23 153610.png btw)

Title: Re: Ad Management mod
Post by: Doug Heffernan on September 23, 2023, 10:26:56 AM
Quote from: vicente127 on September 23, 2023, 09:34:32 AMWell, this started to happen after installing the mod (with errors on themes,

Captura de pantalla 2023-09-23 153610.png btw)



You will have to apply the edits manually to the custom themes.
Title: Re: Ad Management mod
Post by: Arskrigitsioniets on November 16, 2023, 04:13:50 PM
Hi!

Is there a way to show ads only to the guests (or disable them for anyone signed in)?
Title: Re: Ad Management mod
Post by: vbgamer45 on November 16, 2023, 04:17:29 PM
Yes uses SMF's permissions
Title: Re: Ad Management mod
Post by: cortez on January 23, 2024, 11:56:01 AM
Hi,

2.1.4 and latest mod version.

After creating necessary gdpr consents and screens in adsense and linking to privacy policy - ads are not showing/rendering anymore.

I created privacy policy as part of registration agreement:
https://autobusi.org/forum/index.php?action=signup

Is that ok or should I do something different?

Thank you.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 23, 2024, 12:59:16 PM
Check your javascript error console.

Turn off any ad blockers.
Make sure the adblock code is in the html view the source of the page.

By default ads are off for admins I belive.
Title: Re: Ad Management mod
Post by: cortez on January 23, 2024, 01:28:16 PM
Only enabled settings are:
Ads within posts look like actual posts
Display ads on every page right below the menu

But as you can see if you open website, it does not render for the guests, for anyone.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 23, 2024, 02:31:59 PM
I see ads.
Title: Re: Ad Management mod
Post by: cortez on January 24, 2024, 09:54:41 AM
I figured that also. This probably isn't linked to mod.

However, as soon as I created those screens and settings - my revenue dropped by 4x since that day. So, for some reason for most of the people is not rendering ads at all. Any ideas? Might be more people facing same issue.
Title: Re: Ad Management mod
Post by: vbgamer45 on January 24, 2024, 12:04:55 PM
Yeah its a dumb requirement, but yes if people don't consent i don't think ads or shown or they are limited ads.
Title: Re: Ad Management mod
Post by: lurkalot on January 24, 2024, 12:24:20 PM
I'm not seeing ads on there, just the big blank spaces where the ads should be. 

Quote from: vbgamer45 on January 24, 2024, 12:04:55 PMYeah its a dumb requirement, but yes if people don't consent i don't think ads or shown or they are limited ads.

Thing is, I'm not seeing the Privacy and Cookie consent controls either, so couldn't consent even if I wanted to.  It should be at bottom of page Like it is (hopefully) on my sites.
 
Title: Re: Ad Management mod
Post by: cortez on January 27, 2024, 12:44:18 PM
I can confirm after test deleting this google gdpr message ads are fully back immediately for EU/UK users.

So, issue is that this message is not rendering on ad space. I guess?