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 Mod (https://custom.simplemachines.org/mods/index.php?mod=255)

Ad Management mod V 3.5

We also have Ad Seller Pro found at http://www.smfhacks.com/ad-seller-pro.php

Language Files
http://www.smfads.com/forums/index.php?board=11.0

This version of the Ad Management mod brings a lot of new features to the table. Version 2.3 includes placement for “Skyscraper” ads as well as individual placement on threads and in between posts. You can also view reports on your ads to see how often they are getting displayed. New placements such as: in-between categories, after child board and after the last post have all been included
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.

Edit Tab

In this section you can modify the ad code, change the placement or delete the ad code. This is why you want to give your ad code a good name. You click the name of the ad code you want to edit, then the rest is the same as adding an ad code.

Adding Ads

To 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.
Next is the content section, in here is where you place the ad code. In this version of the ad mod it can handle both HTML and PHP languages. Place your Google code in here or any other ad code you may have.
After 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.
The next option is “Display ads within posts”. This works the same way as our previous field, only here you are inputing were in between the posts you want the ads to be displayed. So if you want the ads to be displayed between the first and third posts, then in this field you would put “1,3” (no quotes). If you don’t want this ad to display inside any post, leave the input box empty.
Displaying ads after categories works much the same way. You need to put the category id in the input box of the category you want to display the ads after. If you hover over the link for the category you can find out what the ID is. If you want to display after multiple categories, put “1,2”(no quotes).
The following option is “type'. You can choose between “HTML” or “PHP” (google ads display as HTML). The rest of the options under this tab are pretty much self explanatory. One thing that is very important to remember, when placing “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.
Clicking the “Add” button at the bottom of this page will save your configuration for the ad.

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.

Settings Tab

You can now have various settings on how your ads appear. The settings are:
- Disable all ads if you are an admin
- Disable all ads on a global scale
- Disable reports
- Make post ads either look like actual posts or not

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.


Ad Management mod

This mod will install ads on the top of your page right under the toolbar. You can either choose to have it display on all the pages on your forum, or on three sections of you board. On the board index, thread index, and the thread itself. This mod allows you to turn on and off your ads as you wish. It also allows you to input your ad code in the features and settings section.
New features have been added so that you can install ads on the bottom of your forum and also after the first post. You are also able to disable ads on a per membergroup basis.

When you add your code into the section, remember that you should always open and close any HTML tags properly. Otherwise you might have issues.

Extra support can be found at: www.smfads.com

For SMF Version SMF 2.1.x, 2.0.x and 1.1.x
Version 3.5
+SMF 2.1 Beta 3 now supported!

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

Version 3.2
!Fixed bug in welcome ads for SMF 2.0. Requires reinstall or code edit to index.template.php to fix.

Version 3.1
+New easy copyright removal system!

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!

Version 2.6.3.1 Jan 19, 2010
+Spelling fixes and minor updates!

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 improvements

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
- Resolved an issue with TinyPortal (now works when you have 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
- Officially released on simplemachines.org. No official changes from previous version.

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

For SMF Version 1.0.9
--------------------------------------------------------------------------------
Version 1.0.2d October 30, 2006
- Now installs on SMF Version 1.0.9

Version 1.0.2c August 21, 2006
- Now installs on SMF version 1.0.8

Version 1.0.2b March 30, 2006
- Now installs on SMF version 1.0.7

Version 1.0.2 Feb 18, 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)
- Added the ability to disable ads according to their membergroup.

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
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
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.
adsense?
i assuming your asking if this works for adsense, and yes it does.

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
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
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
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
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
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
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:

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

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

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

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

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

note this line: document.write('alt=\"' + alt + '\" border=0></a><br>');
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
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
how does one make a banner rotation script to use with this mod?
as suggested in the next post, you can use phpadsnew.. so im not sure if i will put that functionality into the script.. phpadsnew does a lot of stuff for you.. then just stick in the javascript code it outputs for you

adsense?

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

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

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?

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
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?
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
Code: [Select]
$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

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
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
Quote
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

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

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?
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
Quote
thats 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
thats 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
Code: [Select]
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
thats 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
Code: [Select]
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
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
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
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.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv704%2Fbigguy982%2Ferro1.jpg&hash=0ab259050551fda089ab7a2707397bd3)

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
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..)

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..

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

Code: [Select]
<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
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
Code: [Select]
<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
If I use html it works, but if I use the code given above as an example
Code: [Select]
<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".

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
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
Quote
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)

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
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?

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

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
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
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.

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
Sorry, its late here and I didnt completely understand what you meant.

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
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
Quote
seeing 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
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

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
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
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
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 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
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:
Code: [Select]
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:
Code: [Select]
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
Code: [Select]
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
Code: [Select]
if ($modSettings['ad_management_thread'] && allowedTo('ad_manageperm'))
echo '<br /><div align="center">',$modSettings['ad_management_content'],'</div>';

MessageIndex.template.php
Code: [Select]
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
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
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
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
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
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
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
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
Code: [Select]
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
@ 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
Code: [Select]
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

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

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

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:
Code: [Select]
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
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:

Quote
Parse 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
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:

Quote
Parse 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
Code: [Select]
&& 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
Code: [Select]
<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:

Quote
Fatal 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
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:

Quote
Fatal 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
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
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 :)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.retrolution.com%2Fbanner.jpg&hash=47d17e4d0f70b06d9b5a8c022d8cdeb9)
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.

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
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
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
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
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
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
Quote
something 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
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.

Code: [Select]
<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

Quote
as 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
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.)

Code: [Select]
<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
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.

Code: [Select]
<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?

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
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
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
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 :)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.retrolution.com%2Fbanner.jpg&hash=47d17e4d0f70b06d9b5a8c022d8cdeb9)

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


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
Code: [Select]
//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
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
Code: [Select]
if ($modSettings['ad_management_index'] && allowedTo('ad_manageperm'))
echo '<br /><div align="center">',$modSettings['ad_management_content'],'</div>';
and put
Code: [Select]
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
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:

Code: [Select]
<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
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.

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
Quote
theres a post right on this page that helps explain how to install on a custom theme..
can't find can you link to it

Quote
My 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:

Quote
8: 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!!!!!!!
Quote
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    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
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
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
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

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

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

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
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.


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
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.

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.

Code: [Select]
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


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
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 :)



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
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
Quote
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

No worries sounds good.
Title: Re: Ad Management mod
Post by: hartiberlin on May 12, 2006, 07:01:04 AM


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:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.harti.com%2Fmods%2Fadmod_no01.jpg&hash=0b80a5c1eb1863d3f9dd0e9c1ac052df)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.harti.com%2Fmods%2Fadmod_no02.jpg&hash=d2dabfd2e35905deb91e007125db4482)


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
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:


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.harti.com%2Fmods%2Fadmod_no03.jpg&hash=d4ab17d8a7c43e29d1a04f23956969bb)

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


Code: [Select]

<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.

codyheit@sacotech.com.au
Title: Re: Ad Management mod
Post by: zole on May 19, 2006, 06:08:57 AM
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
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
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
Code: [Select]
<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
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
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
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
Code: [Select]
<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
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
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
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
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
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:

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

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

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


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
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.
adsense?
i assuming your asking if this works for adsense, and yes it does.

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:

Quote
   template_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:

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

and replace with:

Quote
function 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:

Quote
   global $context, $settings, $options, $txt, $scripturl, $modSettings;

and replace with:

Quote
   global $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:

Quote
global $context, $settings, $options, $txt, $scripturl, $modSettings;

and replace with:

Quote
global $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:

Quote
global $context, $settings, $options, $scripturl, $modSettings, $txt;

and replace with:

Quote
global $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
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
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

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
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
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 ???


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.

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
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
Do you have any other mods installed ???


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
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
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.

 
Quote
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 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

Quote
Installing 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
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
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
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
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
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.

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
@ 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. ???

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
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
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
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
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.

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
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
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
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
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
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
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.
Code: [Select]
</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
Code: [Select]
<search position="replace"><![CDATA[ </td></tr>';
}]]>
</search>

here is the code that gets added

Code: [Select]
</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
I see that smfads.com (http://smfads.com) is down.
I can't reach the site. Whats the problem?
changing servers

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
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
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
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
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
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..

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.

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
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
Code: [Select]
//Ad management code to display ads after the first posttwo 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
Code: [Select]
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  ;)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg59.imageshack.us%2Fimg59%2F7467%2Fthemis5rk.jpg&hash=f7fb4cbf1249568ca068f793291ea35b)
Title: Re: Ad Management mod
Post by: ArkServer on June 25, 2006, 06:57:13 AM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Farkserver.servehttp.com%2Fweird.JPG&hash=4a6c1762b6be2790237d9e7d33ead67d)
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
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
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
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.

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
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
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
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
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.

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
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"....

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
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
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.

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

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
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
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...

Code: [Select]
<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
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?

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...

Code: [Select]
<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
I downloaded it today, i downloaded ad_mod_rc2_v2.zip

you can add this code to your page:
Code: [Select]
$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:
Quote
Display 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:
Code: [Select]
require_once($sourcedir . '/LoadAds.php');
Code: [Select]
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
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
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

Code: [Select]
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.


Code: [Select]
<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
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
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
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
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
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
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.

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

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
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
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??


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?



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:
Code: [Select]
<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:

Code: [Select]
//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:

Code: [Select]
//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
Just use this:
Code: [Select]
<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
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
This should work. Try this in place of that code:

Code: [Select]
//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
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.

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
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:

Code: [Select]
<div align="center">ADCODE</div>
Title: Re: Ad Management mod
Post by: edi67 on September 04, 2006, 02:00:14 PM
Try putting this around the code:

Code: [Select]
<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
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
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
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 ;)

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
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
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
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:

Code: [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings;
BEFORE that add:

Code: [Select]
//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:

Code: [Select]
// Get all the messages...
And REPLACE with:

Code: [Select]
//Ad Counter
$adcounter =0;
// Get all the messages...
while ($message = $context['get_message']())
{
$adcounter++;

In the same file find:

Code: [Select]
</td></tr>';
}

And REPLACE with:

Code: [Select]
</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?

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
Anyone knows the answer to this question?

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:

Code: [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings;
BEFORE that add:
Code: [Select]
//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:

Code: [Select]
// Get all the messages...
and replace it with:

Code: [Select]
//Ad Counter
$adcounter =0;
// Get all the messages...
while ($message = $context['get_message']())
{
$adcounter++;

Lastly in the same file find:

Code: [Select]
</td></tr>';
}

and replace with:

Code: [Select]
</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
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
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
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
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
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
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
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
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
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..
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.lagubaru.net%2Fforum%2Fsmf.jpg&hash=a785f38fdec3d3584d3379dfc0a6c8b3)

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
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:

Code: [Select]
<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: [Select]
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
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
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.

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

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. ???

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
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
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
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:

Code: [Select]
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
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
Code: [Select]
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
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
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
@ 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
@ 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
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
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
Change your permissions on those 2 folders to 777

Ok, now I keep getting this error when I try to install it.

Code: [Select]
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
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...

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.


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

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 :

Code: [Select]
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:

Quote
Parse 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:

Code: [Select]
<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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F5666%2Fsmf1ry.th.jpg&hash=4b50aaf23d4eee1ace6ad8a732bd2a49) (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
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
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
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:

Code: [Select]
<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
Quote
template_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.

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
Quote
template_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
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

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
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.
adsense?
i assuming your asking if this works for adsense, and yes it does.

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
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
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.

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
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:

Code: [Select]
<?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(