Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: karlbenson on March 31, 2007, 08:52:37 PM

Title: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on March 31, 2007, 08:52:37 PM
Link To Mod (http://custom.simplemachines.org/mods/index.php?mod=715)
Ad Revenue Sharing modification v1.0 by Karl Benson (BETA VERSION)

Warning: This is a beta ~ So ensure you take a full backup of your database AND files before installing this mod.

Tested & Works for 1.1.2 and Installs on the DEFAULT skin only.  I haven't written the manual edits out yet, as I'm re-writing loads of it.

This is a brand new mod with extensive coding.  I've been working on this for over a month on a clean fresh 1.1.1 and 1.1.2 forums.  I've tested it extensively to the point where I'm confident to install a modified version on my own forum.  Any bugs in this will probably be limited to a few index undefined errors.

Warning: You should NOT use this mod if you have the Ad Management Mod by Jerm installed, any other advertisement mod or if you have manually inserted adverts into your pages.

Description:

There are 3 advertising programs supported by this mod atm.  Google Adsense, Yahoo Publisher Network (a.k.a YPN) [atm is USA only] and TextLinkAds referral ads

This mod enables your users to signup to any or all of those programs and then enter there ID into the Ad Revenue Sharing area of their profile.

When anyone views a topic, there is a chance that the author of that topic will have his ID's used to show the ads.  The rest of the time, board ads are used.

For any non-topic pages, a user is selected at random or the board ads can be shown.

This mod includes tonnes of settings/options to control position/colors/size of ads, control which users can participate based on membergroup, those who can see ads, banned users, reports, stats, etc etc etc

Images:
(http://www.adrevenuesharing.info/ads.png)(http://www.adrevenuesharing.info/settings.png)(http://www.adrevenuesharing.info/adsetup.png)(http://www.adrevenuesharing.info/adshare.png)(http://www.adrevenuesharing.info/reports.png)(http://www.adrevenuesharing.info/profile.png)
Title: Re: Ad Revenue Sharing Mod
Post by: SticKer on March 31, 2007, 10:51:54 PM
i have installed this mod, but it doesnt seem to work.. has anyone tried it yet
Title: Re: Ad Revenue Sharing Mod
Post by: Niteblade on April 01, 2007, 01:37:57 PM
Does this have the option to appear in a user's profile after that user has made 50 posts ?
Title: Re: Ad Revenue Sharing Mod
Post by: karlbenson on April 01, 2007, 02:00:46 PM
This mod can be disabled/enabled on a per membergroup basis.
(its much better than doing it by minimum posts)
If it is disabled, the section still shows, but they get a message telling them they currently are not allowed to participate. (at least they then know that the section is there, and what they need to do to participate)

SticKer: Yes theres a beta thread in the coding section, where various people have tried it.  It does work.  I'm currently working on improving it considerably with more stuff.  Plus tonnes of tweaks.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: SticKer on April 01, 2007, 08:18:44 PM
this surely is a gr8 mod, i ll try it once more and also will chk the coding thread n see what m doing wrong
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Niteblade on April 02, 2007, 02:04:39 AM
I'm playing around with an a-typical adsense layout on my forum. Basically, I wanted to pattern my forum after successful & established revenue sharing communities, such as Digital Point.

I'm wondering..

Will this mod allow me to

Examine this post (http://forum.midessa.net/general-discussions/why-is-paris-hilton-popular-t2323.0.html) to see what I mean..
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on April 02, 2007, 02:27:39 PM
1. YES. Various positions including that one.
2. & 3 The 728x15 strips aren't currently supported.  I'm adding loads more sizes in the next version I'm working on (though its going to be a whiel before its ready)

Adding a 728x90 or other sizes after the first post is supported in this version.  It is not currently possible to have different banners whether there are replies or not.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: dxdonline on April 02, 2007, 11:34:41 PM
How to install this on TinyPortal v0.9.8. Package will not install with TinyPortal v0.9.8
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: freizeit on April 03, 2007, 01:49:40 AM
This is amazing. I have turned my SMF Webmaster Forum  (http://smfwebmasters.com/) into an ad revenue sharing forum. Thanks a lot!  :)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on April 03, 2007, 04:07:30 PM
Quote from: dxdonline on April 02, 2007, 11:34:41 PM
How to install this on TinyPortal v0.9.8. Package will not install with TinyPortal v0.9.8

Hmm.
Which bits does it fail on.

I will try to make sure for certain the next version installs on TP
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: dxdonline on April 03, 2007, 10:59:15 PM
Quote from: karlbenson on April 03, 2007, 04:07:30 PM
Quote from: dxdonline on April 02, 2007, 11:34:41 PM
How to install this on TinyPortal v0.9.8. Package will not install with TinyPortal v0.9.8

Hmm.
Which bits does it fail on.

I will try to make sure for certain the next version installs on TP

This one fails

./Themes/default/index.template.php
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: nibb on April 04, 2007, 11:52:26 AM
This MOd is ultra great. I installed it on a non english site replacing the variables english for my lenguage. Im so sad that it only works with the Default template. I really would love to change it so it works with my theme. This is mod is the one i was looking for so long, i wanted to donate via the paypal link but it doesnt work. Thanks Karl
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on April 04, 2007, 01:37:17 PM
lol Nibb. (re paypal link)

Once the next version is done, I'll post extra mods (add-ons/patches essentially) to install on different skins.

I've said somewhere I reckon it will be a month of work on this mod to get in all the requests/features that have been requested/I want to add.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: nibb on April 04, 2007, 06:46:30 PM
Great, I could install it perfectly on another lenguage, that was easy, just changed the english references to my lenguage as well as the ManageArs.lenguage

It installed fine but i just on the default skin. I hope to get this as soon as possible to my skin. I only need 1 banner to show.

This function would be great.

A user that post or replies a post has preference to his ads. So if the user that more responds to a topic or thread gets more points to display his banner, type of like a pay per post but in this case with banners.

Another good suggestion would be have the option to enable the mod to a certain group of users only.

I really would like to start using it before the next update, you could make a manual text file or instructions on how to integrate it with another skin. I see that 90% of users has asked on how to integrate it with his skin, i think nobody uses the default skins since they are very nice skins for SMF outhere. So i think that would be priority, a manual integration in the meantime would be great until the next update that could be integrate in other skins. I will try to do it myself just like i installed it on a non enlish forum, im not just an PHP programmer so i will this how where are the commands that use default and try to change them to my skink, the non english was as easy a search english and replace with Dreamweaver i guess template integration will not be as easy right.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Niteblade on April 04, 2007, 08:39:28 PM
Do you estimate that your future code will be so radically different that this mod will have to be un-installed first before upgrading? Or.. are you designing your modification in terms of manual additions that can be easily done? In other words, if this mod is one of many modifications installed on a forum, how hard is it going to be to upgrade ?

Thanks.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: nibb on April 04, 2007, 09:34:54 PM
Quote from: nite0859 on April 04, 2007, 08:39:28 PM
Do you estimate that your future code will be so radically different that this mod will have to be un-installed first before upgrading? Or.. are you designing your modification in terms of manual additions that can be easily done? In other words, if this mod is one of many modifications installed on a forum, how hard is it going to be to upgrade ?

Thanks.

I uninstalled it so i wait to the new version. It said uninstalled on SMF but the links are still there. i think it did not uninstalled completely, i hope that doesnt conflict when i install the new version.  :P
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Niteblade on April 07, 2007, 01:23:04 AM
Would it be possible to use images that adsense could be drawn upon?

(http://adclustr.com/wp-content/uploads/2007/01/whitewide.png) (http://adclustr.com/)(http://adclustr.com/wp-content/uploads/2006/12/blackslanted.jpg) (http://adclustr.com/)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: nibb on April 07, 2007, 04:32:43 AM
Quote from: nite0859 on April 07, 2007, 01:23:04 AM
Would it be possible to use images that adsense could be drawn upon?

(http://adclustr.com/wp-content/uploads/2007/01/whitewide.png) (http://adclustr.com/)(http://adclustr.com/wp-content/uploads/2006/12/blackslanted.jpg) (http://adclustr.com/)


Could you explain? You can post adsense codes for several sizes and shapes and forms.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on April 07, 2007, 01:17:58 PM
when people do that. they have placed the ads inside a table or div and set that image to the background.

It isnot and wont be possible to do that.  Unless you modify the code on installation.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ArkServer on April 07, 2007, 04:44:34 PM
Does this also work with other adcode?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: nibb on April 07, 2007, 05:57:50 PM
Any tips on how to install it on a non default template?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Niteblade on April 08, 2007, 09:56:39 PM
Quick question.

If one were to install this modification manually due to the desire to use a non-default template or to use the adsense background images, do you think the mod is easy enough to understand for the purpose of manipulating it to fit personal tastes?

PS ... How's the new version looking?  :P
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on April 09, 2007, 10:21:09 AM
From everyones requests (and some ideas of my own) and I've a massive list of things which I want to include in addition to what was available in the beta.

However with so many major changes I've had to put it all down on paper on how its going to work.

Especially with the custom board ads, multiple ad units, responders aswell as the topic creator getting a share. (and some secret features.

Rather than a beta 1.1, this feels more like a 2.0, and so its going to take me several weeks. All I can say is, that being well thought out means it should feel like a new mod rather than one cobbled together with add-ons.

With regards to installing a non-default theme, for the current version you have to do the manual edits.  Open the install.xml file and perform the alterations.

For the new version I'm working on, once its done, I will provide patches which will install it on specific themes that are available on smf.  For custom bespoke themes I'll provide the list of edits that you need to make.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: nibb on April 09, 2007, 10:24:38 PM
Thats great, doesnt it seem a bit complicated to have a patch for every theme? Isnt it easy somehow that you specify the theme path or name and it then install it? I use a theme from SMF but imagine every others that have their own, files actually are the same for every theme just looks changes.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on April 10, 2007, 02:09:14 PM
unfortunately nibb, as most themes are done by non-smf developers, the majority of the skins, it wont install on exactly the same.  The only times it won't need installing is if the theme doesnt have a custom version, then the default one is used.

Even with the babylon and classic themes, most likely, they will require modified patches to install on those skins.

Until SMF 2.0 (later this year) when its possible to install on multiple skins easily, i'm going to have to do patches, or it means all the people using this patch, doing manual edits on each skin.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: nibb on April 11, 2007, 12:56:48 PM
Quote from: karlbenson on April 10, 2007, 02:09:14 PM
unfortunately nibb, as most themes are done by non-smf developers, the majority of the skins, it wont install on exactly the same.  The only times it won't need installing is if the theme doesnt have a custom version, then the default one is used.

Even with the babylon and classic themes, most likely, they will require modified patches to install on those skins.

Until SMF 2.0 (later this year) when its possible to install on multiple skins easily, i'm going to have to do patches, or it means all the people using this patch, doing manual edits on each skin.

Are you the creator of the mod?
If so could you install it on my site until the new version comes out? I use the pdx-dk-09 theme.

I can pay you 10$ bucks via paypal.  ;D I know its not much but i think it will not take you that much either. Im kind of short on money now since im already putting money here for another mod called pay per  post but.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on April 11, 2007, 01:44:06 PM
yep, I created the mod.

nibb, I had a quick look at the skin your talkign about.
I don't have the time to install it for you on the skin, since it would take away time from working on redoing the mod.

You will only need to perform the edits on the index.template.php and the profile.template.php as far as I can see
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Niteblade on April 18, 2007, 08:24:25 PM
Hey, just taking a quick peek back in here to see how things are going.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on April 20, 2007, 09:54:41 AM
not very well atm. My internet has been down for most of the last week.  So I've not managed to do much more, since I can't test the php I'm writing.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Niteblade on April 20, 2007, 03:03:22 PM
Quote from: karlbenson on April 20, 2007, 09:54:41 AM
not very well atm. My internet has been down for most of the last week.  So I've not managed to do much more, since I can't test the php I'm writing.

Sorry to hear that.

Let me know if I can do anything to help you. I don't know much about coding or database manipulation, but I'm willing to do things that are in my power. You might want to consider installing XAMPP (http://www.apachefriends.org/en/xampp.html) so that you can install SMF on your local machine -- that way, you wouldn't be dependent upon your internet connection for testing purposes.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on April 21, 2007, 09:17:23 AM
thanks, I'll look into it
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: nibb on April 22, 2007, 04:52:05 AM
My offer is still up for the one that wants to install this for me. I use the PDX-DK Theme and spanish language. The offer is 20$ now send via paypal.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: nibb on April 24, 2007, 12:14:23 AM
I almost installed this thing but had 1 error, so for anyone intereste my bid is at the most 15$ to install this at:
https://www.scriptlance.com/cgi-bin/freelancers/project.cgi?id=1177387982
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: nibb on April 25, 2007, 02:21:54 AM
Your mod seems really complicated. A programmer was installing this on my forum and said he cannot do it since somehow it will not use the spanish file. Whats so wrong about that, isnt the spanish files just a copy of the english ones?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: nibb on April 25, 2007, 06:01:30 AM
Ok i did it. Fully working on PDX Theme and in a non english language. You just have to edit the mod itself and then some files on the theme. I did this myself without anyhelp. I saved myself 15$ bucks.  ;D

Now the second step. To full translate the mod. I found the text on install.xml so i guess it will not break anything.

PHP is very nice and it helped allot that on the code it was always the title of Ad Revenue mod so i could find it.

My question is another one now.

1. Is this mod legal? I mean doesnt it breake Adsense guidelines? Im afraid Google would cancell my Adsense account or the ones form users? Why because basically you are using tons of adsenses accounts on 1 webpage only and how will google know that it isnt just users clicking themself on the ads to get earnings. Anybody has tought about this?

2. What happens if a user gets to a membergroup for example where hes % is 30% and then disappears forever. He will then have earnings for life? I mean after 1 year the site could very big and the vanished user will just see his adsense incomes without posting anything more.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Niteblade on April 26, 2007, 01:35:00 PM
Quote from: nibb on April 25, 2007, 06:01:30 AM
1. Is this mod legal? I mean doesnt it breake Adsense guidelines? Im afraid Google would cancell my Adsense account or the ones form users? Why because basically you are using tons of adsenses accounts on 1 webpage only and how will google know that it isnt just users clicking themself on the ads to get earnings. Anybody has tought about this?

Mods like this are legal, and have been available for vBulletin for quite some time (http://forum.midessa.net/general-discussions/the-internets-biggest-google-whores-t2650.0.html).

Moreover, I believe this mod is coded in such a way that it is impossible for a person to click on their own ads. The ads will look the same, but the account number associated with the ad changes.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: nibb on April 26, 2007, 02:57:48 PM
That is great. I was just a little worried, not that Google then disables or sues me for making clic frauds.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: nibb on April 27, 2007, 01:38:37 PM
My mod is not counting impressions on the admin area.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on April 27, 2007, 03:03:54 PM
Are the logging of impressions turned on?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: nibb on April 27, 2007, 07:45:47 PM
Yes the option is on. Also could someone explain better what are Non Topic Pages?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: blueeye on May 13, 2007, 09:43:31 AM
When a member is a moderator of a board... and if the moderators membergroup is eligible for non-topic adshares...
1) will such members have the previlage of non-topic adshares globally or
2) will it be restricted to the board that he/she moderates?

If the MOD does not follow an algorthm to do the later fuction [ie., 2) ]... could someone suggest changes to the script... to get this done...

cheer!
and thanks in advance

Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: lwbbs on May 17, 2007, 04:46:57 PM
I just downloaded the SMF 1.1.2 and Ad Revenue Sharing 1.0. After installed, I can't see the setting options.
During install, the following information is displayed:

Installations actions for "Ad Revenue Sharing":
Installing this package will perform the following actions:

   Type   Action    Description
1.    Execute Code    install.php    
2.    Execute Modification    -    Modification parse error
3.    Extract File    ./Sources/ArsAds.php    
4.    Extract File    ./Sources/ArsTla.php    
5.    Extract File    ./Sources/ManageArs.php    
6.    Extract File    ./Themes/default/ManageArs.template.php    
7.    Extract File    ./Themes/default/languages/ManageArs.english.php    
Thanks.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: SticKer on May 17, 2007, 06:37:00 PM
whats the progress with the mod
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on May 18, 2007, 08:25:06 AM
would u believe it. my laptop developed a fault.

I've received it back from the manufacturers about an hour ago.

The two weeks without a computer have been a nightmare.  But I've managed to do some designs on papers of all the sections, trying to make it easy to use, but loads more features.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: SticKer on May 18, 2007, 10:10:14 PM
ah good to hear, hope to see the next version soon
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: lwbbs on May 21, 2007, 03:08:05 AM
I can't use the current version. I hope the new version is OK for me.
Waiting for your new version. Thanks.

Quote from: karlbenson on May 18, 2007, 08:25:06 AM
would u believe it. my laptop developed a fault.

I've received it back from the manufacturers about an hour ago.

The two weeks without a computer have been a nightmare.  But I've managed to do some designs on papers of all the sections, trying to make it easy to use, but loads more features.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: SticKer on May 22, 2007, 12:30:20 AM
will this mod work with TP installed ?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on May 25, 2007, 08:44:04 AM
I will try to make it compatible or provide a second mod for those with TP installed.

I have never looked at the modifications which TP makes to know how easy or difficult that that would be.

At the moment I'm focusing on the admin pages.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: lwbbs on May 25, 2007, 04:41:36 PM
Hi, karlbenson

What is your release schedule?

Thanks.

Quote from: karlbenson on May 25, 2007, 08:44:04 AM
I will try to make it compatible or provide a second mod for those with TP installed.

I have never looked at the modifications which TP makes to know how easy or difficult that that would be.

At the moment I'm focusing on the admin pages.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on May 25, 2007, 08:39:34 PM
I'm not giving myself any deadlines for it.

I've got alot going on at the moment (quit my job -> looking for new job) and other things in the RW.

I'm about 15% through.  I've got all the other designs done on paper.

This is a very large modification and such a re-write will take a considerable amount of time.

I think a month at least.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: lwbbs on May 25, 2007, 11:27:57 PM
OK. Thank you.

Quote from: karlbenson on May 25, 2007, 08:39:34 PM
I'm not giving myself any deadlines for it.

I've got alot going on at the moment (quit my job -> looking for new job) and other things in the RW.

I'm about 15% through.  I've got all the other designs done on paper.

This is a very large modification and such a re-write will take a considerable amount of time.

I think a month at least.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ishan on May 29, 2007, 04:21:41 AM
I need it installed for TP too ,
I am using TPStyle theme by bloc & latest TP version

I get this error
Execute Modification     -     Modification parse error
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: babjusi on May 29, 2007, 04:33:29 AM
Quote from: ishan on May 29, 2007, 04:21:41 AM
I need it installed for TP too ,
I am using TPStyle theme by bloc & latest TP version

I get this error
Execute Modification     -     Modification parse error


Switch back to the default theme, and try to install the mod again. Also make sure that the default language of your forum is english. But you have to keep in mind that the mods work only with the default theme. In order to make the mods work with custom themes, you must make some changes.

Also another thing to keep in mind, is always to make a back up of your forum prior to installing mods, especially those in beta versions
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: forumnet.be on June 06, 2007, 05:31:38 PM
QuoteWarning: You should NOT use this mod if you have the Ad Management Mod by Jerm installed, any other advertisement mod or if you have manually inserted adverts into your pages.

I think this should be mentioned very clearly in the Description of this mod in the SMF Mod Site!
I almost installed this mod but I also have the Ad Management mod on my forum.
People should not have to read through this thread to find this warning. It should be mentioned in the description ...

netwerker.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: EBK on June 07, 2007, 02:27:30 PM
Google allow Revenue Sharing but doesn't allow more than one publisher ads displayed in one page.

So this mod will display one Adsense publisher a time or what?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: babjusi on June 07, 2007, 05:13:42 PM
Quote from: EBK on June 07, 2007, 02:27:30 PM
Google allow Revenue Sharing but doesn't allow more than one publisher ads displayed in one page.

So this mod will display one Adsense publisher a time or what?

You can read all about what this mod does in the first page of the topic
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: EBK on June 07, 2007, 05:32:19 PM
Thanks babjusi but i didn't find something about this matter..

I believe that this mod could be break Google rules because non topic ads are choose randomly.

However "Boards ads" does it means "admin ads" (ads with admin's adsense code) ?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: babjusi on June 07, 2007, 05:48:02 PM
Quote from: EBK on June 07, 2007, 05:32:19 PM
Thanks babjusi but i didn't find something about this matter..

I believe that this mod could be break Google rules because non topic ads are choose randomly.

However "Boards ads" does it means "admin ads" (ads with admin's adsense code) ?


I wish I could tell you, but I have never used this mod. I use the ad managment mod
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: EBK on June 07, 2007, 06:05:10 PM
Quote from: babjusi on June 07, 2007, 05:48:02 PM
Quote from: EBK on June 07, 2007, 05:32:19 PM
Thanks babjusi but i didn't find something about this matter..

I believe that this mod could be break Google rules because non topic ads are choose randomly.

However "Boards ads" does it means "admin ads" (ads with admin's adsense code) ?


I wish I could tell you, but I have never used this mod. I use the ad managment mod

Thanks for support :)
I hope karlbenson will be reply ASAP..I like this mod and i want to install it but I want risk an adsense's ban for me and my forums members
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on June 07, 2007, 07:43:25 PM
ONLY ONE, Adsense or any other AD Network ID is shown on any page at the SAME TIME.

I thought i'd been very clear both in the documentation and in the ad revenuesharing help section (on install)

I am very aware of googles tos.

Depending on your settings it randomly selects to show either an admin(aka board ads) or to use participants.
This decision is made ONCE per page.

So if you have adverts in the header and footer.  Both adverts will use the same ID.

Also as a security precaution a user will NEVER be shown their own ads to prevent them from accidentally clicking their own ads.  So if your an admin, you won't ever be shown boards ads, and you won't be shown your own personal ads (if you've entered your own adsense id in your profile. (you must OBVIOUSLY be logged in for this feature to work)

I am more than happy to answer all your questions in relation to this, as the slow process of working on the new version proceeds.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: EBK on June 07, 2007, 11:22:26 PM
Quote from: karlbenson on June 07, 2007, 07:43:25 PM
Also as a security precaution a user will NEVER be shown their own ads to prevent them from accidentally clicking their own ads.  So if your an admin, you won't ever be shown boards ads, and you won't be shown your own personal ads (if you've entered your own adsense id in your profile. (you must OBVIOUSLY be logged in for this feature to work)


I know this and is very useful..Sorry if I not read all your documentation :)

Thanks for your answer..I discovered just 2 days ago that Google have this heavy limitation :(
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on June 08, 2007, 02:55:39 PM
^ yep, once you get banned from Adsense, the ban is for life.
(theres tonnes of people on webmaster sites who claim to be have been treated poorly by Google as a means for them not to pay out - any way thats another issue.)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: EBK on June 09, 2007, 03:08:11 PM
Hi Karlbenson, I've installed your mod manually and works fine,but "This is an Ad Sharing Forum [?]" is not display below ads..How can fix this mine mistake?What I could made wrong?

Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: giltron on June 11, 2007, 07:45:10 PM
Hello,

I just installed the script. All went well. But I dont see any ads display. I do see the link on top of my page, Adsense and YPN Revenue Sharing Forum  [?] but when I click on it I get:

An Error Has Occurred!
Unable to load the 'adrevenuesharing' template.

Thanks.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: dadaas on June 29, 2007, 12:27:14 PM
eh i installed upgrade to 1.1.3 and now when i try to installa d revenue sharing i get message:
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."
why at least dosent give me a list of erors or soemthing?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: babjusi on June 29, 2007, 12:51:10 PM
Unzip the package, add 1.1.3 after 1.1.2 in the install and uninstall actions then zip it back and you are all set to download it with the 1.1.3 version
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: dadaas on June 29, 2007, 01:23:21 PM
i found versions only in package info.xml, and i change it and zipped it but then it says that package is corrupt

Is there maybe some special way for ziping packages or something?
i highlight files and choose zip, i use linux ubuntu.

I tryed 20 times to zip it, but its saying this eror when trying to upload it:
"An Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted. "
And when i upload it manual its not shown on list.
So please can someone zip it for 1.1.3 version for me becouse i really dont understand why my zip is not working.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: dadaas on June 29, 2007, 04:36:44 PM
thanks mate i used tar.gz zip and it worked.

Now i would like to ask owner of this mode, how can i add text-ad-links on my site, i registered there and i got id number BUT ads are not showing after first post, so hmmm, give me tip, and text-ad-link company need to add code on site, so now im confused what should i do?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: dadaas on June 30, 2007, 11:38:33 AM
Your Ad Code is Ready for Installation!

The two final steps:

   1. Create a file named local_136686.xml that is writable by the web server. The file should be blank and it should be located in the same directory as the script below. On unix you would CHMOD 666 on windows you will need to access your custom control panel to set the permissions or contact your hosting company.
   2. Copy the code below and paste it into the appropriate pages on http://www.cashtalk.org. Because this site is set for site wide display, you must place the links so that they appear on ALL pages of the site. If you wish to change this inventory to a single page display, click here.

Important: Our advertisers monitor the traffic they receive from their text link ads diligently. To ensure maximum ad sales and high renewal rates for your website please place our ad code somewhere above the fold in a position that will receive clicks!

When the code has been successfully installed, you will automatically receive an email from Text Link Ads and we will start selling ad space on your site!

    *

      <?php function tla_ads() { // Number of seconds before connection to XML times out // (This can be left the way it is) $CONNECTION_TIMEOUT = 10; // Local file to store XML // This file MUST be writable by web server // You should create a blank file and CHMOD it to 666 $LOCAL_XML_FILENAME = "local_136686.xml"; if( !file_exists($LOCAL_XML_FILENAME) ) die("Text Link Ads script error: $LOCAL_XML_FILENAME does not exist. Please create a blank file named $LOCAL_XML_FILENAME."); if( !is_writable($LOCAL_XML_FILENAME) ) die("Text Link Ads script error: $LOCAL_XML_FILENAME is not writable. Please set write permissions on $LOCAL_XML_FILENAME."); if( filemtime($LOCAL_XML_FILENAME) < (time() - 3600) || filesize($LOCAL_XML_FILENAME) < 20) { $request_uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : ""; $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ""; tla_updateLocalXML("http://www.text-link-ads.com/xml.php?inventory_key=KNQ2LQNDC1VGAGP75OJK&referer=" . urlencode($request_uri) . "&user_agent=" . urlencode($user_agent), $LOCAL_XML_FILENAME, $CONNECTION_TIMEOUT); } $xml = tla_getLocalXML($LOCAL_XML_FILENAME); $arr_xml = tla_decodeXML($xml); if ( is_array($arr_xml) ) { echo "\n<ul style=\"padding: 0; margin: 0; overflow: hidden; width: 100%; border: 1px solid #000000; border-spacing: 0px; background-color: #F0F0F0; list-style: none;\">\n"; for ($i = 0; $i < count($arr_xml['URL']); $i++) { if( isset($arr_xml['PostID'][$i]) && $arr_xml['PostID'][$i] > 0 ) continue; echo "<li style=\"float: left; display: inline; padding: 0; margin: 0; clear: none; width: 100%;\"><span style=\"font-size: 12px; color: #000000; width: 100%; display: block; padding: 3px; margin: 0;\">".$arr_xml['BeforeText'][$i]." <a style=\"color: #000000; font-size: 12px;\" href=\"".$arr_xml['URL'][$i]."\">".$arr_xml['Text'][$i]."</a> ".$arr_xml['AfterText'][$i]."</span></li>\n"; } echo "</ul>"; } } function tla_updateLocalXML($url, $file, $time_out) { if($handle = fopen($file, "a")){ fwrite($handle, "\n"); fclose($handle); } if($xml = file_get_contents_tla($url, $time_out)) { $xml = substr($xml, strpos($xml,'<?')); if ($handle = fopen($file, "w")) { fwrite($handle, $xml); fclose($handle); } } } function tla_getLocalXML($file) { $contents = ""; if($handle = fopen($file, "r")){ $contents = fread($handle, filesize($file)+1); fclose($handle); } return $contents; } function file_get_contents_tla($url, $time_out) { $result = ""; $url = parse_url($url); if ($handle = @fsockopen ($url["host"], 80)) { if(function_exists("socket_set_timeout")) { socket_set_timeout($handle,$time_out,0); } else if(function_exists("stream_set_timeout")) { stream_set_timeout($handle,$time_out,0); } fwrite ($handle, "GET $url[path]?$url[query] HTTP/1.0\r\nHost: $url[host]\r\nConnection: Close\r\n\r\n"); while (!feof($handle)) { $result .= @fread($handle, 40960); } fclose($handle); } return $result; } function tla_decodeXML($xmlstg) { if( !function_exists('html_entity_decode') ){ function html_entity_decode($string) { // replace numeric entities $string = preg_replace('~&#38;#x([0-9a-f]+);~ei', 'chr(hexdec("\1"))', $string); $string = preg_replace('~&#38;#([0-9]+);~e', 'chr(\1)', $string); // replace literal entities $trans_tbl = get_html_translation_table(HTML_ENTITIES); $trans_tbl = array_flip($trans_tbl); return strtr($string, $trans_tbl); } } $out = ""; $retarr = ""; preg_match_all ("/<(.*?)>(.*?)</", $xmlstg, $out, PREG_SET_ORDER); $search_ar = array('&#38;#60;', '&#38;#62;', '&#38;#34;'); $replace_ar = array('<', '>', '"'); $n = 0; while (isset($out[$n])) { $retarr[$out[$n][1]][] = str_replace($search_ar, $replace_ar,html_entity_decode(strip_tags($out[$n][0]))); $n++; } return $retarr; } tla_ads(); ?>



This is what they told me at TLA company, now im not sure what i need to do?
Can someone who use it before with TLA tell me how to set it up?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Niteblade on July 01, 2007, 12:38:26 AM
I seriously doubt that the mod author is developing this anymore.

This mod was removed from his own personal website a few weeks back.

Karl, I suppose we need your permission to continue developing this. Personally, if the admin of SMFHacks were to take this up, I'm sure he could do it justice.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Pranav on July 06, 2007, 10:36:27 PM
Hmm...i can pay for further development of this mod.I will not pay more than 10$(payment by paypal).Anyone interested to develop it further?

And this should be made so it's compatible with Ad management mod. and should work with custom themes..

Anyone interested in developing it further?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Niteblade on July 06, 2007, 10:41:10 PM
Quote from: ulgaming.net on July 06, 2007, 10:36:27 PM
Hmm...i can pay for further development of this mod.I will not pay more than 10$(payment by paypal).Anyone interested to develop it further?

And this should be made so it's compatible with Ad management mod. and should work with custom themes..

Anyone interested in developing it further?

I think coders bite when the price is ~$200.00 ... Hopefully, someone'll come along and, from the goodness of their heart, will continue to develop it.. But, as of right now, it is working .. but you have to do some manual edits to index.template.php (for tinyportal..) ...
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Pranav on July 07, 2007, 04:16:05 AM
I have just pm'ed the mod author.Waiting for reply.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Pranav on July 07, 2007, 07:25:49 PM
Hello all i have pm'ed the author and he/she says that he/she is still developing the mod.I have replied him..waiting for his reply..
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: tsanko on July 10, 2007, 02:01:35 PM
Hello. When will be ready for 1.1.3 version?Thanks for the good mod :)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: JoshieDaMan on July 15, 2007, 08:40:49 AM
Hey, I really need this. But I have 1.1.3 SMF. Please make this possible to happen for 1.1.3 SMF, thanks!
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: JoshieDaMan on July 15, 2007, 08:44:22 AM
Quote from: karlbenson on June 08, 2007, 02:55:39 PM
^ yep, once you get banned from Adsense, the ban is for life.
(theres tonnes of people on webmaster sites who claim to be have been treated poorly by Google as a means for them not to pay out - any way thats another issue.)
Quote from: karlbenson on June 08, 2007, 02:55:39 PM
^ yep, once you get banned from Adsense, the ban is for life.
(theres tonnes of people on webmaster sites who claim to be have been treated poorly by Google as a means for them not to pay out - any way thats another issue.)

False.;)

My friend, once got banned from google. And they lift the ban and let them process using the adsense.;) By just e-mail to them and apologize for it and let them know what exactly happen that you don't meant to do that.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Rudolf on July 15, 2007, 09:07:44 AM
For 1.1.3, when you are on the Package Manager page add ;version_emulate=1.1.2 to your url.

http://your_site_here.com/index.php?action=packages (http://your_site_here.com/index.php?action=packages)
becomes
http://your_site_here.com/index.php?action=packages;version_emulate=1.1.2 (http://your_site_here.com/index.php?action=packages;version_emulate=1.1.2)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on July 22, 2007, 05:48:14 PM
Quote from: nite0859 on July 01, 2007, 12:38:26 AM
I seriously doubt that the mod author is developing this anymore.

This mod was removed from his own personal website a few weeks back.

Karl, I suppose we need your permission to continue developing this. Personally, if the admin of SMFHacks were to take this up, I'm sure he could do it justice.

I am still working on developing a much enhanced v2.0 of the modification
Progress came to a halt a while back due to personal/real life issues, and my lack of posts in this topic is down to continuing Internet issues. (I've getting 1/10th of the internet speed I've paid for over 2months)

Don't worry, i'm developing the modification with xammplite on my localhost.

As for the development, no time frames, (pretty much like smf 2.0).
As stated further above, as I've been forced to re-write it entirely to fit all the features requested (custom ads, more ad networks, tonnes more features), its just taking a long while.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ajay_sparklingboy on July 31, 2007, 12:41:18 PM
Thanks very much. I am the first to download your mod compatible with 2.0.0.3 . Works like a charm. Thanks very much !
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ajay_sparklingboy on August 04, 2007, 04:57:46 AM
Please help me I'm getting this error !

8: Undefined index: ars_showads
File: /home/*******/public_html/forum/Sources/ArsAds.php
Line: 38
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ajay_sparklingboy on August 04, 2007, 11:33:58 PM
New bug !

When Ad Revenue sharing tab in admin panel is clicked in top links section home tab is selected instead of admin tab.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on August 05, 2007, 11:31:28 AM
ajay_sparklingboy

The first bug is basically a php error due to my bad coding. Besides the error itself, there is no effect on the workings of the mod.

These bugs won't be found in the new 2.0 version which i'm working on.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ajay_sparklingboy on August 05, 2007, 01:15:50 PM
When will the new version available.

My feature request :

Allow users to add their own scripts in addition to adsense,yahoo,text links. So instead of adsense revenue sharing I will be happy if it is banner revenue sharing.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on August 05, 2007, 02:37:14 PM
The new version has a custom ads section. (for you to add non-adrevenuesharing ads of whatever adnetwork, size/shape whatever).

I've spent about 50 hours working on it and I'm probably 60% of the way through with version 2.0.
Its going to be at least another couple of weeks before I release a BETA. (Partly because I've worn myself working on it.)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Niteblade on August 06, 2007, 12:00:02 AM
BACKUP ORIGINAL FILES FIRST !!

Adding more colors to the random color scheme array.

Find ::

/**************************************************
    AD REVENUE SHARING MOD V1.0 - ArsAds.php
**************************************************/

// ZEROCOOL YOU ARE NOT! DIE DIE DIE
if (!defined('SMF'))
die('Hacking attempt...');

function setSchemes() {
global $modSettings, $scheme;
// This function loads the ads
$scheme = array();
// USES DIGIT IN ARRAY AS RANDOM FUNCTION WILL SELECT NO FROM 1-9
// IN THE ORDER OF BGCOLOR/BORDERCOLOR/URL/LINK/TEXT
$scheme['custom'] = array(
$modSettings['ars_adsetup_bgcolor'],
$modSettings['ars_adsetup_bordercolor'],
$modSettings['ars_adsetup_urlcolor'],
$modSettings['ars_adsetup_linkcolor'],
$modSettings['ars_adsetup_textcolor']);
$scheme['default'] = array('FFFFFF','336699','0000ff','009900','808080');
$scheme['red'] = array('FFCCCC','FF8888','000066','222222','222222');
$scheme['orange'] = array('FFD0AA','FFBB00','000066','222222','222222');
$scheme['yellow'] = array('FFFFFF','000000','000000','000000','FFFFFF');
$scheme['green'] = array('CCFFCC','88FF88','000066','222222','222222');
$scheme['blue'] = array('CCCCFF','8888FF','000066','222222','222222');
$scheme['pink'] = array('FFCCFF','FF88FF','000066','222222','222222');
$scheme['white'] = array('000000','FFFFFF','FFFFFF','FFFFFF','000000');
$scheme['black'] = array('FFFFFF','000000','000000','000000','FFFFFF');
}


After

$scheme['black'] = array('FFFFFF','000000','000000','000000','FFFFFF');


Add ::

$scheme['custom1'] = array('b90707','006390','FFFFFF','E1771E','F2984C');
$scheme['custom2'] = array('006390','b90707','FFFFFF','b90707','0066CC');
$scheme['custom3'] = array('fbfbd3','b90707','fbfbd3','006390','000000');
$scheme['custom4'] = array('ff893d','ff893d','ffffee','cc0000','303035');
$scheme['custom5'] = array('cc0000','b47b10','ffffcc','ffcc66','000000');
$scheme['custom6'] = array('c5e8fa','fbd95e','ffffff','32527a','0066cc');
$scheme['custom7'] = array('4fa9c4','c5e8fa','ffffff','32527a','0066cc');
$scheme['custom8'] = array('3377af','434343','ffffff','99c9ff','c3d9ff');
$scheme['custom9'] = array('383838','434343','ffffff','99c9ff','C3d9ff');


Final result ::

/**************************************************
    AD REVENUE SHARING MOD V1.0 - ArsAds.php
**************************************************/

// ZEROCOOL YOU ARE NOT! DIE DIE DIE
if (!defined('SMF'))
die('Hacking attempt...');

function setSchemes() {
global $modSettings, $scheme;
// This function loads the ads
$scheme = array();
// USES DIGIT IN ARRAY AS RANDOM FUNCTION WILL SELECT NO FROM 1-9
// IN THE ORDER OF BGCOLOR/BORDERCOLOR/URL/LINK/TEXT
$scheme['custom'] = array(
$modSettings['ars_adsetup_bgcolor'],
$modSettings['ars_adsetup_bordercolor'],
$modSettings['ars_adsetup_urlcolor'],
$modSettings['ars_adsetup_linkcolor'],
$modSettings['ars_adsetup_textcolor']);
$scheme['default'] = array('FFFFFF','336699','0000ff','009900','808080');
$scheme['red'] = array('FFCCCC','FF8888','000066','222222','222222');
$scheme['orange'] = array('FFD0AA','FFBB00','000066','222222','222222');
$scheme['yellow'] = array('FFFFFF','000000','000000','000000','FFFFFF');
$scheme['green'] = array('CCFFCC','88FF88','000066','222222','222222');
$scheme['blue'] = array('CCCCFF','8888FF','000066','222222','222222');
$scheme['pink'] = array('FFCCFF','FF88FF','000066','222222','222222');
$scheme['white'] = array('000000','FFFFFF','FFFFFF','FFFFFF','000000');
$scheme['black'] = array('FFFFFF','000000','000000','000000','FFFFFF');
$scheme['custom1'] = array('b90707','006390','FFFFFF','E1771E','F2984C');
$scheme['custom2'] = array('006390','b90707','FFFFFF','b90707','0066CC');
$scheme['custom3'] = array('fbfbd3','b90707','fbfbd3','006390','000000');
$scheme['custom4'] = array('ff893d','ff893d','ffffee','cc0000','303035');
$scheme['custom5'] = array('cc0000','b47b10','ffffcc','ffcc66','000000');
$scheme['custom6'] = array('c5e8fa','fbd95e','ffffff','32527a','0066cc');
$scheme['custom7'] = array('4fa9c4','c5e8fa','ffffff','32527a','0066cc');
$scheme['custom8'] = array('3377af','434343','ffffff','99c9ff','c3d9ff');
$scheme['custom9'] = array('383838','434343','ffffff','99c9ff','C3d9ff');
}


Share your custom color schemes!!

Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on August 06, 2007, 07:30:01 AM
Nice hack of the mod there Nite.

In the version I'm working on, you can have an UNLIMITED amount of custom color schemes.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Niteblade on August 09, 2007, 06:40:07 PM
Karl,
Will the new version of the mod make use of SSI in order for people to participate in the revenue sharing program on other, non-forum, sub-domains?

In other words, if someone had 6 sub-domains, will it be possible (or is it already possible) for those 6 sub-domains to tap into the forum's SSI in order for revenue sharing to be active across all 6 sub-domains?

Thanks!
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on August 09, 2007, 08:05:08 PM
It is unlikely for SSI to be in 2.0.

That is because I've never used SSI before and it would undoubtably hold up the release of 2.0 whilst I read up on it and did some testing.

It is on my list of things I want to add in the mod at some point.  So what I'll probably do is release 2.0 beta without SSI and then have a go at it.

Like SMF2.0, I'm not going to give a definite timeframe for releasing the beta.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: alo on August 13, 2007, 02:35:39 AM
QuoteThe new version has a custom ads section. (for you to add non-adrevenuesharing ads of whatever adnetwork, size/shape whatever).
Great news!
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ajay_sparklingboy on August 24, 2007, 08:11:34 AM
Text-link ads have changed the ad id format could you please post me a update here.

Now they are using www.tinyurl.com/id I have managed to change the urls to this. But I cannot save the id because only numbers are allowed now but the new id has mixture of letters and numbers moreover the length has been changed to 6

Please post as soon as possible.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ajay_sparklingboy on August 24, 2007, 01:45:39 PM
Well no ans to my question please help ?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on August 24, 2007, 02:01:20 PM
I'll post an upgrade patch later.
Its not a simple change. It will also require altering the db tables.

Don't worry, its not that urgent, you've got a week to patch it. ;)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: vipmoney on August 25, 2007, 01:27:29 AM

Hi karlbenson,

I have set limitations for recent users, so their banners wont show on Non-Topic zones... but this is not working... people with zero posts are getting impressions.

Any idea ?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ajay_sparklingboy on August 25, 2007, 07:02:00 AM
I am waiting for your new mod . Please make it ready by this month. I hope you will respond to my request.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on August 25, 2007, 11:05:23 AM
@vipmoney

@ajay_sparklingboy -
1) I'll try to have a patch for the above by the end of the weekend for the current version.
2) Text-Link-Ads will NOT be supported by the new mod. (for ad revenuesharing)
Although I'm pissed that any of the old referral links won't work, it not the reason why its been dropped.
Its because the TLA don't have banners that fit all standard ad sizes.
(however you will still be able to add your banners via the custom ads section);

3) New mod is 65-70% done. At the moment I'm juggling a few different things and doing some on it as and when I can.
It is a huge coding mission.  It will be done as soon as possible (but bearing in mind I've got alot on)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ajay_sparklingboy on August 25, 2007, 01:46:40 PM
Thanks karlbenson. If possible visit openads.org.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on August 25, 2007, 02:54:45 PM
@ajay_sparklingboy openads.org for?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Niteblade on August 25, 2007, 03:49:43 PM
Quote from: ajay_sparklingboy on August 24, 2007, 08:11:34 AM
Text-link ads have changed the ad id format could you please post me a update here.

Now they are using www.tinyurl.com/id I have managed to change the urls to this. But I cannot save the id because only numbers are allowed now but the new id has mixture of letters and numbers moreover the length has been changed to 6

Please post as soon as possible.

I got this email too. It seemed fishy to me and I forwarded it over to the team at TLA. Can you post a link on TLA main website where this announcement is posted?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on August 25, 2007, 04:17:32 PM
Go into your tla account
affiliates > links

all the links have tinyurl in them.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ajay_sparklingboy on August 26, 2007, 01:24:51 AM
openads.org is a ad server script which allows you to run a d server like Google adsense etc...
I have pointed you to it because you can get some idea regarding click monitoring , etc...
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: vipmoney on August 26, 2007, 01:58:01 AM
Hi Karlbenson, I think you were going to reply me, but then you forgot ;)

*************

Hi karlbenson,

I have set limitations for recent users, so their banners wont show on Non-Topic zones... but this is not working... people with zero posts are getting impressions.

Any idea ?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: jjyy2006 on August 26, 2007, 07:51:34 AM
is it can add adbrite ad coz some can't get google adsense account or already get ban by google.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ajay_sparklingboy on August 26, 2007, 08:09:51 AM
Quoteadd adbrite ad coz some can't get google adsense account or already get ban by google.

Will be available in next release...................
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ajay_sparklingboy on August 26, 2007, 08:11:48 AM
Karlbenson,

Feature Request :

Is it possible to add a new membergroup only for maintaining member ads.i need this option please. Also the members ads must also be displayed based on their posts on particular day.

Hope you will reply to me.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on August 26, 2007, 10:52:41 AM
@ vipmoney - sorry about that
I test a copy on a clean server and people with 0 posts didnt get any views.
I have to be honest, I'd rather not try to track down the bug at this stage (with 2.0 on the way).

@jjyy2006 - Unfortunately Adbrite hasnt made it into the next version.

Theres 4 supported programs in the next version
Adsense, YPN (US-Only), AuctionAds, Amazon Associates (Omakase)
I've chosen those 4 to give a variety of PPC, PPA
The first two require websites, the last two do not.

I did plan on having lots of other programs, Bidvertiser, Clicksor, Adbrite, TextLinkAds. But in a modified version of 1.0 which I tried on one of my site. TLA didnt support all the banner sizes, and Bidvertiser/Adbrite, Clicksor were the very low paying.

@ajay_sparklingboy (re last point), I always reply ;) within 24 hours (usually)

I'm not sure what you mean.
As with 1.0 I've tried to stay away from sharing on impressions and sharing based on post numbers.
This is because the algorithms would need to be over-complex and therefore resource comsuming to work out who can benefit.  It also wouldnt suit large forums or small forums.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on August 26, 2007, 10:54:12 AM
One final point (as I've been asked this by another user via pm)

Ad Revenue Sharing 2.0 beta will NOT support SMF2.0 beta.

Obvious reason. I'm not charter and hence do not have access to SMF 2.0 beta to test.

Although at some point in the future (probably once all the bugs are kicked out of 2.0 beta) I'll make it compatible.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: n971 on August 26, 2007, 12:40:50 PM
Thank for the answer (I asked about referrals code and languages). I actually don't need to translate mod, but I'm wondering why it doesn't appear in the menu in Profile if you select other language. I can use it by switching to english, enter my PID and swithc back. Does anone know how to get that Revenue Sharing link in menu (in profile) if other language is selected?

TIA
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on August 26, 2007, 02:38:17 PM
You need to copy all the language strings in the install.xml into your language versions

And create a copy of languages/ManageArs.{yourlanguage}.php from the english version
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on August 26, 2007, 02:42:15 PM
As promised.

Posted Upgrade Patch 1.1
http://custom.simplemachines.org/mods/index.php?mod=715

Fixes
Text-Link-Ads referral ids, since they are changing them
(note everyone with tla will need to upgrade their id)

Fix: Allows adsense ids starting ca-pub-
(I had to change some code for the above fix, which I ripped from 2.0 and that already had part of the ca-pub- fix)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: astawicki on August 26, 2007, 10:12:55 PM
Sound like a really cool mod but i get this error... what can I do to it fix it

Installing this package will perform the following actions:  Type Action Description
1. Execute Modification - Modification parse error
2. Delete File ./Sources/ManageArs.php 
3. Delete File ./Sources/ArsAds.php 
4. Delete File ./Sources/ArsTla.php 
5. Delete File ./Themes/default/ManageArs.template.php 
6. Delete File ./Themes/default/languages/ManageArs.english.php
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on August 26, 2007, 11:38:44 PM
its not an error with the mod.

Its an error with smf or your host.

Do you have the same issue when trying to install any other mods
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: astawicki on August 27, 2007, 04:44:37 AM
No But i will try something
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: astawicki on August 27, 2007, 05:37:14 AM
I uninstall the forum and retry but that did not work
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: jjyy2006 on August 27, 2007, 05:40:41 AM
why when i upload the patch1.1 zip file i get this error message :

The package you tried to upload either is not a valid package or has become corrupted.

is that need to do what setting before upload?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on August 27, 2007, 08:47:08 AM
@jjyy2006 

hmm? The download site is showing 0 downloads of the UPGRADE patch.

I've re-uploaded both zips (since I uploaded them when SMF was having some issues)
http://custom.simplemachines.org/mods/index.php?mod=715

@astawicki
I don't believe its caused by the mod.  I believe it could be your php running on your host.
Please could you ask about it in the general support area as someone there maybe able to help with your specific issue.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ajay_sparklingboy on August 27, 2007, 11:31:49 AM
QuoteTheres 4 supported programs in the next version

You have told me custom ads can be added ? Also please include text-links.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: jjyy2006 on August 27, 2007, 12:10:32 PM
now i got this error message:
You have an error in your SQL syntax near 'ON (m.ID_MEMBER = p.ID_MEMBER)
WHERE p.ID_MEMBER != 2 AND (p.adsenseid != ' at line 4
File: /virtual/revsharehosting.com/home/users/rev21340/sexytogo.net/forum/Sources/ArsAds.php
Line: 309
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on August 27, 2007, 01:09:29 PM
Quote from: ajay_sparklingboy on August 27, 2007, 11:31:49 AM
QuoteTheres 4 supported programs in the next version
You have told me custom ads can be added ? Also please include text-links.
[/quote]

Custom ads can be added (being the equivalent of Ad management mod) for the admin ONLY.
Custom ads play NO part in ad revenue sharing. (eg your users ads are never shown in or with custom ads)

Text link ads was dropped because it no doesnt support all the sizes and because it could only support the referral banners for ad revenue sharing.  You will be able to add YOUR banner codes to the custom ads area.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on August 27, 2007, 01:15:39 PM
jjyy2006
I've gone through the ArsAds file 3 times, can't find anything wrong. In fact afaik, I didnt alter any of that code.

Do you get that message on every page?

Can you check the smf_participants table that adsenseid column is there (and its structure is varchar(23))
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ajay_sparklingboy on August 28, 2007, 12:50:46 PM
It installed without any error . But only my error log gets filled up with

8: Undefined index: ars_showads
File: /home/*******/public_html/forum/Sources/ArsAds.php
Line: 38
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on August 28, 2007, 12:55:57 PM
@Ajax_sparkling boy - is it working as usual other than that error message in your log.
AFAIK, thats a bug with 1.0 what wasnt fixed as its kind of everywhere.

its one of the reasons why I had to re-write everything.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ajay_sparklingboy on August 29, 2007, 11:47:14 AM
Thanks for your fast reply. Hope the new revenue mod will be ready within next month!
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on August 29, 2007, 03:17:38 PM
apologies to everyone who upgraded to 1.1.

There was a bug preventing adsense channels from being saved.

I've now fixed it. 1.2 is up
(please choose the right install for your version).

Unless theres any more urgent bugs.  No more upgrades are intended until 2.0 (although that doesnt indicate that its nearly ready).

I'm recommending people upgrade.
For 1.1 to 1.2 - no theme edits will be required for any custom themes.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: stevency on August 30, 2007, 05:46:08 AM
The mod can't installed in utf-8 SMF, can u pls make some changes for the issue?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on August 30, 2007, 12:22:17 PM
I'm going to try to add utf-8 english support by default in 2.0

However for 1.2 you will need to make a copy of the ManageArs.english.php and rename it to ManageArs.english-utf8.php (in the Themes/default/languages folder)

And also add a copy of the all the other text strings which can be foundin the install.xml of this mod, to your respective utf-8 versions of profile/manual etc
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: alo on September 01, 2007, 04:29:39 PM
QuoteFor 1.1 to 1.2 - no theme edits will be required for any custom themes.
did u mean that 1.2 version work with any custom theme?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 01, 2007, 09:38:59 PM
If you are INSTALLING then theme edits will be required for custom themes.

If you are UPGRADING from 1.0 or 1.1 to 1.2, there are no changes to the theme edits. So if you have already made edits to install on custom themes, when you first installed then mod, there are no further them edits to make.  Let me be clear. The upgrade only alters some bugs in the source files.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ajay_sparklingboy on September 02, 2007, 01:47:01 AM
I hope you will add small square ads for the 2.0

Also could anyone explain me what is utf-8. please no links. I need a simple explanation in simple English
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 02, 2007, 03:57:47 PM
The adsizes supported by 2.0 are all the standard adsizes supported by each of the ad-networks
'728x90', '468x60', '234x60', '125x125', '120x600', '160x600','120x240', '180x150', '200x200', '250x250', '300x250', '336x280',
Theres also a setting for Adsense to choose between Text Ads | Image Ads | Video Ads

UTF-8 is an encoding format, which your browser/computer uses to know how to display any characters.
UTF-8 has a wider selection of characters and therefore makes it the chocie for forums with multiple languages.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: batman4444 on September 06, 2007, 07:06:18 PM
Hey,   thanks for a great mod,  im really anxious to get it working on my forum, however after i install and apply the mod,  i cant find where edit the setting or anything like that.
in the demo pix you posted in the first post it shows the admin panel,  and a link under "configuration" right under "themes and layout," there is a " Ad revenue sharing" link.  After i install this link does not show up
Any idea?
Thanks
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 06, 2007, 07:07:58 PM
you are probably using utf-8

you will need to copy the strings to your utf-8 versions of the language files.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: batman4444 on September 06, 2007, 07:10:33 PM
wow, that was a quick reply,   thanks a ton  also i just tried installing it again, and i go to my profile link and i get this error now

Fatal error: Cannot redeclare adrevenuesharing() (previously declared in /home/greensqu/public_html/dotaforums/Sources/Profile.php:106) in /home/greensqu/public_html/dotaforums/Sources/Profile.php on line 622

any ideas?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 06, 2007, 08:46:27 PM
it looks like you have installed the same function into the profile.php twice, hence why you are getting that error.

open the file profile.php
Find

function adrevenuesharing () {

The second iteration of that function will begin around 106.
Remove the duplocate copy of that function.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Niteblade on September 08, 2007, 05:42:21 PM
Hey, Karl..

What do you think about http://www.tacoda.net ?

Quote
TACODA® Audience Networks™, the first and largest behavioral targeting advertising network reaching more than 120 million people across 31 discrete audience segments every month. With our innovative programs, scale and reliability our partners can be confident that their advertising is working efficiently and delivering results.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 08, 2007, 06:31:29 PM
never heard of them. Had a look at their flashy site.
Seem to me to be middlemen. Besides they only do UK/USA.
Also they would be useless for anyone without a website. Yes Adsense/YPN require websites, but I can't not include them.


With regards to an update. I've just finished my non-smf project thats took up so much of my time recently, so hopefully with ernst, I can get back on track with ARS 2.0.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Niteblade on September 08, 2007, 06:43:46 PM
Quote from: karlbenson on September 08, 2007, 06:31:29 PM
never heard of them. Had a look at their flashy site.
Seem to me to be middlemen. Besides they only do UK/USA.
Also they would be useless for anyone without a website. Yes Adsense/YPN require websites, but I can't not include them.


With regards to an update. I've just finished my non-smf project thats took up so much of my time recently, so hopefully with ernst, I can get back on track with ARS 2.0.

Nevermind about them anyways. I applied for a publisher's account, and their response was :

Quote
Thank you for your interest in TACODA. In order for a publisher to get the full benefit of participating in TACODA Audience Networks, we require at least 100,000 unduplicated visitors per month. This is because TACODA targeting is based on anonymous behaviors which require an ample amount of audience overlap across our network to provide our partner with meaningful audience insights and revenue.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: batman4444 on September 08, 2007, 06:46:04 PM
Just wanted to let the mod is awesome, and works wonderfully,  thanks for such a great addition to the SMF
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: jjyy2006 on September 14, 2007, 06:38:50 AM
the Text Link Ads Affiliate  Links change again , can't find the id

this the Text Link Ads code:

Quote<script type="text/javascript">
function affiliateLink(str){ str = unescape(str); var r = ''; for(var i = 0; i < str.length; i++) r += String.fromCharCode(4^str.charCodeAt(i)); document.write(r); }
affiliateLink('8e%24lvab9%26qj%60abmja%60%26%3APa%7Cp%24Hmjo%24E%60w8+e%3A');
</script>
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 14, 2007, 07:46:20 AM
jjyy2006 thanks for making me aware of the change.

The code is obstructively hiding your old id.  Theres no email from TLA.
I'm unsure whether the crappy tinyurl'd links still count.  I among many complained about those.

However I do NOT intend to update the ARS mod again to reflect their new ids.
These new ids will NOT work with the latest version of the ars mod.  Therefore I'm recommending that TLA ads be disabled.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: astawicki on September 16, 2007, 11:12:36 PM
Hey...Whats the manual way to install the mod because the mod gets this eror when i install it the auto way

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    install.php    
2.    Execute Modification    -    Modification parse error
3.    Extract File    ./Sources/ArsAds.php    
4.    Extract File    ./Sources/ArsTla.php    
5.    Extract File    ./Sources/ManageArs.php    
6.    Extract File    ./Themes/default/ManageArs.template.php    
7.    Extract File    ./Themes/default/languages/ManageArs.english.php

Thanks
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: rockinaway on September 19, 2007, 08:59:33 AM
This doesn't work, my adverts don't actually show on any of my themes.. http://www.adminfuel.com/
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: rockinaway on September 19, 2007, 09:33:46 AM
Right my impressions are going up but no ads are actually showing.. I entered my AdSense id in 'pub-19 numbers', and I can even see a small area where the ad should be under the first post..: http://adminfuel.com/gratitude_forum-t733.0.html;msg8154#new
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: rockinaway on September 19, 2007, 09:44:54 AM
Fixed! I didn't know that I had to log out to view them and that you can't view your own ads ;) Excellent mod!
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Goad on September 20, 2007, 05:50:33 PM
i dont use the default theme so i tried to manually edit the code in the index.template.php by following the code found in the install.xml, but it seemed to kill my theme index (full page of errors when visiting the site).

can I post my index.template.php for you to edit it properly? let me know. I will try again in the mean time.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 20, 2007, 07:32:48 PM
@astawicki ~ Do you get that error when installing other modifications?  If it does can you please raise it as a topic in the general support area as I believe its not related.

@rockinaway ~ Glad you got it sorted. Yes there is built in protection to prevent logged in users from being shown their own ads.

@Goad ~ Unfortunately I do not do edits for people because I don't have the time.  However you may find another person willing to help by asking http://www.simplemachines.org/community/index.php?board=50.0 with a [free] or [paid] request for help.
I have only a limited amount of time at the moment and I'm focusing it on finishing/updating/bug fixing my other mods.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Goad on September 20, 2007, 09:07:43 PM
well, i figured it out enough so its not throwing code errors....but the mod isnt really working.....i have selected all the options (top, bottom, left, right, etc) and im using adsense....and the attached image is the only sign of the mod i see.

about adsense...do you just put in the number, or do you include pub-  ?

also, attached is my index.template.php renamed with a .txt extension...maybe someone can look in there and find out what im doing wrong.

thanks for the help.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 20, 2007, 10:22:17 PM
whats your forum url?

note: it won't show your own ads if your logged into your own account.
Admins aren't shown the admin ads either.

Loggout and see if you see ads.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Goad on September 21, 2007, 02:33:33 AM
Quote from: karlbenson on September 20, 2007, 10:22:17 PM
whats your forum url?

note: it won't show your own ads if your logged into your own account.
Admins aren't shown the admin ads either.

Loggout and see if you see ads.

ahhhhhh.........there they are.

now i just want ads displayed across the bottom...near the copywrite stuff.....but the ads are showing under the welcome box when i only have "bottom" selected.

www.socaljetboats.com is the site, but ads are disabled until i figure it out.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: rockinaway on September 21, 2007, 01:43:18 PM
yeah I had the same problem.. fiddled around with the code in the template files and achieved what I wanted: http://www.adminfuel.com
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Goad on September 21, 2007, 01:49:30 PM
Quote from: rockinaway on September 21, 2007, 01:43:18 PM
yeah I had the same problem.. fiddled around with the code in the template files and achieved what I wanted: http://www.adminfuel.com

so what did you do? im not a coder by any means, but i can figure out the basic stuff....do you have any suggestions on where i should start lookin within the code?

cool site....i like it.

just a heads up....when i go to it, as a guest (not logged in) i see this instead of the ads:

"This is an Ad Revenue Sharing Forum [?]"
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ajay_sparklingboy on September 22, 2007, 10:38:58 AM
Also Google adsense policies allow only 3 text/image ads per page. BEWARE OF IT
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 22, 2007, 03:47:36 PM
Thanks ASB, I've just noticed the updated policy which they changed in June.

https://www.google.com/adsense/support/bin/answer.py?answer=48182&sourceid=aso&subid=ww-en-et-asblog_2007-06-05&medium=link
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: rockinaway on September 22, 2007, 03:56:49 PM
Yeah,, thanks for letting me know that :)

And Goad thanks for the ino ;) Will be launching the site soon. As for the code, I found the code which had been put in by the modification and copied it and moved it around the template file, uploaded the file and saw where it was placed or the effects. Trial and error is the best way with this stuff in my opinion :) PM me if you want :)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on September 22, 2007, 06:23:22 PM
Karl

I'm having the "link not show in Configuration" bug

It's a new install of SMF 1.1.3 via Fantastico on an Apache server with php 4.4.7
The only installed mod is your "Buy me a Beer" (priorities first - right? ;-) )
I did have the Ad Management mod installed but took it out in favour or ARS (uninstalled and deleted)

The Theme is the Default (Core?) theme with user permission "off" for changing theme.

I've done the ManageArs.english.php -> ManageArs.english-utf8.php copy & rename

Still don't get the menu item in configuration in SMF admin cpanel - there's an extra blank line for where it should be, but no name or link.

Any ideas?

Gaz
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 22, 2007, 06:59:21 PM
there are more language strings that need copyright to their Utf-8 equivalent.

<file name="$languagedir/Admin.english.php">
<file name="$languagedir/Modifications.english.php">
<file name="$languagedir/Profile.english.php">
<file name="$languagedir/Manual.english.php">
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on September 23, 2007, 04:33:36 AM
Quote from: karlbenson on September 22, 2007, 06:59:21 PM
there are more language strings that need copyright to their Utf-8 equivalent.

<file name="$languagedir/Admin.english.php">
<file name="$languagedir/Modifications.english.php">
<file name="$languagedir/Profile.english.php">
<file name="$languagedir/Manual.english.php">

So if I read that right - I do the same to those 4 files (in the themes/default/languages folder) as I did to the ManageArs.english.php ?

Is that correct?  (sorry but when I see $ in front of something that isn't related to money, I have palpitations about having to do a SQL edit or something)
[edit] - OK, I've looked at the files existing (already on server) and have some queriesAs you can see, the existing utf-8 version of Admin.english is a larger file than the non-utf-8 version.  For the other three, the non-utf-8 version is the bigger file.
Q1 - Do I have to manually edit the differences into the utf-8 versions (where the non-utf is bigger) or do I just overwrite the utf-8 version?
Q2 - Do I have to "write-back" whatever is making the Admin.english utf-8 file bigger than the non-utf-8 version, or just ignore it, or do a manual diff and edit to make them both the same?
Q3 - is all of this going to get automated in the script for the next release (if so then I can uninstall and wait) or will this bit always need manual edits?
-------------------- sidestep to expected next issue ---------------------
Q4 - I understand this mod does not work if the ad management mod is installed, but your OP warns about other ad tools shouldn't be used at the same time - does that also apply (specifically) to the mods -What I'm thinking of there is getting eBay Tag working first (and telling users they can input listing numbers then hit the BBcode button for the system to sort the URL for them.  But then when they post their post, the Convert eBay ads mod picks up that URL, and adds my affiliate code  8)   ;D
And something similar for the Amazon stuff if the eBay stuff works  ;)
Will ARS have issues with that?

Gaz
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 23, 2007, 08:24:56 AM
1) No you don't copy those files over.  You need to copy all the strings relevant to this mod from those files.
You will find ALL the strings to copy inside the install.xml of the mod.zip.

2) same as above.  Some characters when stored as utf-8 are bigger eg & = &amp ;
The reason the differences in size is because some of your mods will have added some strings to the non-utf8 version which you haven't added to the full version.

3) The new version will install automatically on default theme in English. I'm hoping to add utf-8 english version aswel.
As you will be aware, smf 2.0 will TRY to install mods on all themes. (if you select to do so). However if there are issues like with the default theme and conflicts then some manual edits will always be required.

4) The Amazon/AuctionAds stuff should be ok with Adsense because they are NOT contextual ads.
I haven't tested they work together.  I probably wouldn't recommend it either.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on September 23, 2007, 09:45:49 AM
Hi - me again

And hit problem attempting first step of 1st instruction
in the install.xml file, the strings are written as (for admin.english.php) -

<!-- // ADMIN.ENGLISH.PHP  //-->
<file name="$languagedir/Admin.english.php">
<!-- adds the txt string for use on the manage admin area -->
<operation>
   <search position="before"><![CDATA[$txt['theme_admin'] = 'Themes and Layout';]]></search>
<add><![CDATA[
$txt['managears_admin'] = 'Ad Revenue Sharing';
]]></add>
</operation>
</file>

Inside the Admin.english-utf8.php file they are written as -

$txt[4] = 'Boards';
$txt[5] = 'Members';
$txt[6] = 'Newsletters';
$txt[7] = 'News';
$txt[8] = 'Membergroups';
$txt[9] = 'Manage members';
etc
etc

No where in those files you named (plain or utf versions) can I find the < or the > symbols to show where to put the code in your install.xml file.

Also the header of the install.xml file says -

<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>karlbenson:AdRevenueSharing</id>
<version>1.2</version>

So this is version 1.2 and not the version 2.3 which was selected from the SMF mods site download page?

Way back in this forum somewhere, were notes about the need for utf8 files by default in all mods for smf 1.1.x, and you stated that from ARS 2.x you would be installing native support for that.  I'm wondering why it's therefore not included, or at least not working.

Although I'm fairly computer savvy, I'm neither a coder nor a programmer, and what you're instructing seems to be way beyond my skills - but then in the modern computer world, 30 years of CPm-DOS-basic-VB-html etc knowledge, is now pretty useless with regards to all this new-fangled php-SQL-xml stuff.

Obvious question is therefore, again, why wasn't this sorted in the switch up from ARS 1.x to ARS 2.x?

Obvious 2nd question is - just how on earth does anyone get this installed and working?

At this point, I'm severely tempted to pull the plug and switch over to phpBB for the easier integration with WordPress, osCommerce, and phpAuctions.  In the long run it may be a lot less costly time wise to do that.  This is the 2nd mod on the list of over 40 mods that have to go into this install of "a forum - any forum that works" and already it's cost me 4 days - that's about 45 hours over allocation.

Sorry for the rant Karl, but right now I am one very unhappy bunny.

Gaz

p.s. - edit (an important one) - knowing this is such an issue for so many people since SMF 1.1.x went native on utf8 files, are you going to issue a "patch install" that fixes the utf issue for those 4 files?
Please say yes, and please say "sometime in the next 2 minutes"  ;)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: owvvwo on September 23, 2007, 10:15:00 AM
hi your mod is great, that is very useful mod,
i have one doubt....
In my forum one chitchat (adult )zone is there. i want to prevent or restrict google ads on some boards so any board wise permission available?.....
other wise take it as a suggestion... thank you
(waiting for reply) 
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 23, 2007, 02:27:18 PM
Its not currently possible

But I've already got per-board, AND per-theme permissions worked into 2.0
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on September 23, 2007, 02:36:20 PM
Quote from: karlbenson on September 23, 2007, 02:27:18 PM
Its not currently possible

But I've already got per-board, AND per-theme permissions worked into 2.0

That sounds great, but what about the utf file updates?
Remember I said the only other mod installed is your "Buy me a beer" mod - that still remains true - I really want a fix for this that I can implement - I'm in no way confident when it comes to extracting code from one language structure to hack it into a different one.

Thanks
Gaz
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 23, 2007, 02:45:46 PM
Where you have
<!-- // ADMIN.ENGLISH.PHP  //-->
<file name="$languagedir/Admin.english.php">
<!-- adds the txt string for use on the manage admin area -->
<operation>
   <search position="before"><![CDATA[$txt['theme_admin'] = 'Themes and Layout';]]></search>
<add><![CDATA[
$txt['managears_admin'] = 'Ad Revenue Sharing';
]]></add>
</operation>
</file>

The bit you try to find in your file is BETWEEN
<search position="before"><![CDATA[ <-- -->   ]]></search>

So you look for
$txt['theme_admin'] = 'Themes and Layout';

According to the above, where it says BEFORE, you place it AFTER.
eg
$txt['theme_admin'] = 'Themes and Layout';
$txt['managears_admin'] = 'Ad Revenue Sharing';

For more info see
http://docs.simplemachines.org/index.php?topic=402.msg531
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on September 24, 2007, 10:38:36 AM
Quote from: karlbenson on September 23, 2007, 02:45:46 PM
Where you have
<!-- // ADMIN.ENGLISH.PHP  //-->
<file name="$languagedir/Admin.english.php">
<!-- adds the txt string for use on the manage admin area -->
<operation>
   <search position="before"><![CDATA[$txt['theme_admin'] = 'Themes and Layout';]]></search>
<add><![CDATA[
$txt['managears_admin'] = 'Ad Revenue Sharing';
]]></add>
</operation>
</file>

The bit you try to find in your file is BETWEEN
<search position="before"><![CDATA[ <-- -->   ]]></search>

So you look for
$txt['theme_admin'] = 'Themes and Layout';

According to the above, where it says BEFORE, you place it AFTER.
eg
$txt['theme_admin'] = 'Themes and Layout';
$txt['managears_admin'] = 'Ad Revenue Sharing';

For more info see
http://docs.simplemachines.org/index.php?topic=402.msg531

Would it work if I simply changed the xml file to show the names with utf8 extended names and deleted anything that doesn't apply to those 4 files (from inside the xml file)?
e.g.
<!-- // ADMIN.ENGLISH-UTF8.PHP  //-->
<file name="$languagedir/Admin.english-utf8.php">
<!-- adds the txt string for use on the manage admin area -->
<operation>
   <search position="before"><![CDATA[$txt['theme_admin'] = 'Themes and Layout';]]></search>
<add><![CDATA[
$txt['managears_admin'] = 'Ad Revenue Sharing';
]]></add>
</operation>
</file>


I don't have the time or experience (or patience) to be mucking around translating one set of coding language into another

Gaz
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 24, 2007, 10:49:01 AM
See Manual Installation of mods
http://docs.simplemachines.org/index.php?topic=402.msg531
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on September 24, 2007, 11:19:19 AM
Did do, still no further forward

Never mind - thanks anyway - will remove SMF and switch to phpBB

Shame as I liked the look of this one and it seemed to have a better range of add-ins

Gaz
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 24, 2007, 11:20:52 AM
:(

If you leave SMF, I'd recommend anything but PHPBB.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on September 24, 2007, 11:57:32 AM
Quote from: karlbenson on September 24, 2007, 11:20:52 AM
:(

If you leave SMF, I'd recommend anything but PHPBB.

Why's that then?  (PM me if you don't want to post it publicly)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 24, 2007, 12:04:45 PM
Because PHPBB is insecure.  Their software is a bug-ridden pile of ****.  Their software has more exploits than a celebrity in a tabloid newspaper.

Basically. You could create a nice forum, until the second sometimes decides to hack it via any of the million and one exploits than can be found via Google.

Unlike PHPBB, SMF takes security very seriously.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on September 24, 2007, 12:12:24 PM
OK - appreciate your frankness

Lets go around this a different way then.....

Does anyone have the english-utf8 files from a clean install of SMF 1.1.3 WITH the manual edits for ARS done, and could they zip and email them to me so I can use them as an overwrite after removing ARS & Buy-me-a-beer from an otherwise clean install?

then I can add back the buy me a beer add-in.

I want to move on quickly from this as there are 30+ other mods to do before putting it live
Simultaneously with this is an osC and a WordPress build to do in this domain, then it has to be cloned to another 16 domains, then the individualising graphics and other stuff has to be done.  I really can't afford too much time to be wasted on any one mod on any one package.

Gaz
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 24, 2007, 12:15:38 PM
you could ask in this forum http://www.simplemachines.org/community/index.php?board=50.0
for someone to do the manual edits/mod installing for you.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on September 24, 2007, 12:28:16 PM
 ;D
PMSL LOL
Funny that ..... let me tell you a story .....
I live in a country that is not my own, many years ago I was trying to extend my work permit so that I wasn't restricted to working in just the town where I live - have wheels can travel - can travel can work - right?
Not in this country.  The response from the foreign employment officer was "No can do, you have to pay one of us to do the work for you"
On the osCommerce forum, I have a similar problem to this one with a PayPal IPN contribution, except that the contribution matches your opinion of phpBB and the developers have swanned off to form their own support forum and basically held the entire osC user base, using that contribution, to ransom - "pay us for support or we won't support it" sort of attitude.
Bit like Microsoft releasing a bug ridden OS, then demanding $150 paid up front by credit card for every support call, even if the question has a one word answer (like what they did regularly between 1995 and 2000)
..... can you see where my line of thinking is going here?
Don't take it personally - I talk bluntly and directly.
Gaz
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 24, 2007, 12:32:55 PM
It doesn't have to be a [paid] request.  Some people do it for [free].

Its not a bug that its not working.  Manual edits are required by most forum software for mods.

Most people are able to follow the documentation to be able to make the edits.
No offense, but in fact you're the only person I've come across unable to follow the simple well explained instructions how to make the manual edits.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on September 24, 2007, 12:47:36 PM
OK - I'll have another look at them - time is my biggest curse, I literally have a thousand things on the go right now and they all have overlapping deadlines - I'm robbing time from Peter to use for Paul so to speak, and getting nothing finished.

And like everyone else, I have to find time to make a daily crust as well.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Niteblade on September 24, 2007, 01:01:42 PM
Karl,

I have a demo forum to help you test out v2.0 of the revenue sharing mod.  O:)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on September 24, 2007, 01:07:50 PM
Karl - if you're still there (and speaking to me)

The code line -

  <search position="after"><![CDATA[?>]]></search>

Do I interpret this as meaning
"scroll to bottom of file and click in front of the ?>
hit return to create an empty line above the ?>
copy all the strings (following the code line above) from the xml file and paste them into the empty line just created"

(http://www.simplemachines.org/community/Smileys/simple/huh.gif)(http://www.simplemachines.org/community/Smileys/simple/huh.gif)

(If so, I think I can manage it  ;) )

Gaz
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 24, 2007, 01:11:08 PM
@nite ~ lol

@GazOutEast

Yes, you are correct

FIND
?>

After means put it before.

so it should look like

insertedstuff
?>
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on September 24, 2007, 01:20:44 PM
OOOOh - it's a lot easier than I thought then

If you want, I can even spare the 40 seconds needed to make a " manual-mods-readme.txt " file for you to add into the zip package, using plain language instructions for those of us that can't speak squiggly-bracket-square-bracket-slash-dot-chevronese ;)

Gaz
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 24, 2007, 01:22:28 PM
Gaz,don't bother.

The reason I haven't typed them out is that I'm 70% through a complete re-write.
So everything will change.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on September 24, 2007, 01:52:20 PM
Too late - it's done (you just need to add the usual top of file credits and burblings)

Where do I send it?

Gaz
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on September 24, 2007, 02:17:13 PM
attach it to a post in here if you must.

(go to full reply, additional options)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on September 24, 2007, 02:21:12 PM
Done  O:)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ross1234# on September 30, 2007, 03:49:39 PM
I get this error
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."
(version 1.14)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Ricky. on October 03, 2007, 11:22:54 AM
this mode is either not valid or corrupted..

I got above message when tried to install..



I tried other modes to do test install and they are working.. !! I can't even upload this mode. DId through ftp then its not appearing in mod list.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 03, 2007, 05:09:15 PM
i've uploaded the mod again and done a quick test.
I'm not having an issue with it.

1) Try downloading it again (make sure you choose Install 1.2)
2) Upload via package manager

Hopefully won't be too long before 2.0 is finished, so if you still can't get it to work you may want to wait for the new version from scratch.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Ricky. on October 04, 2007, 05:55:53 AM
seems I need to figure out if this problem is at my end.. still same. Anyways. I can wait for 2.0

as I hav not used can anyone verify that does it support ads as POST as in "Ad management mode" has ?

Also, can user upload their own image which can be used as ad for those who don't want to use adsense and yahoo etc ?

Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 04, 2007, 08:50:47 AM
In the current 1.2 version
You can choose to have an ad after the first post only
In 2.0 you can choose which post to have ads shown after

Ads do not appear as a full post, just between posts.

Users cannot upload their own ads.

In 2.0 admins will be able to add custom ads.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Ricky. on October 04, 2007, 12:41:39 PM
so in 2.0, is not possible to have ads appear as full post?
btw, if its possible, can you include to have another ad place in which ad shall appear in first post itself floating to right side of the post.
I tested it with a phpBB forum and thats pretty high CTR area.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 04, 2007, 01:32:06 PM
they don't appear as a fake post if thats what you mean.
Eg with fake poster profile to the left and the quote/reply etc buttons in the post.

But it is inside a box.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Sakae on October 04, 2007, 04:43:27 PM
I managed to installed it on SMF 1.1.4, despite the fact my package was "corrupted" too.

Just download the MOD, open up and repack it (I repacked as "karls-mod.zip" lol) and worked.

If someone still got problems, I'll be glad to help.

ps.: Still got some problems with my Adsense colors, since I choose Yellow but all banner shown white and black.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 04, 2007, 06:18:26 PM
hmmm.

I had a problem yesterday with winzip pro 11.1
It was compressing my archives when I told it not to.  I've had to switch to winrar.

I'll decompress it and recompress the mod myself now.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: vipmoney on October 04, 2007, 07:10:49 PM
Hi Guys,

I'm using this mod for a while with no trouble, but today after I made a server reboot I get this error when trying to access the members adrevenue on profile:

An Error Has Occurred!
Unable to load the 'adrevenuesharing' template.

Any ideas what could be causing this ?

thanks
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 04, 2007, 07:12:15 PM
have you changed any files?

do you get this every time?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: vipmoney on October 04, 2007, 07:22:52 PM
Quote from: karlbenson on October 04, 2007, 07:12:15 PM
have you changed any files?

do you get this every time?

No... 
The mod was working 100% a few hours ago... But I had to reboot my server, and do a mysql table repair after that (just routine), and now the mod is working except that page.

How can I fix this ? what is the 'adrevenuesharing' template ?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 04, 2007, 07:26:06 PM
its a function that should be in profile.template.php
called adrevenuesharing

basically its the template for the profile adrevenuesharing bit (html etc)

Are you using the default theme?  if not, does your theme have a custom profile.template.php?
If so was it manually edited?

Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: vipmoney on October 04, 2007, 07:37:03 PM
Yes, it was manually edited today with the «Karma Description Mod»... could it be the reason ?

If so, what do I have to edit to put that working again ?

thanks a lot for the quick replies !
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 04, 2007, 08:13:56 PM
you will need to make sure that profile.template.php has the adrevenuesharing function that is in the install.xml of the mod. (its quite a long one)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: vipmoney on October 04, 2007, 08:30:29 PM
found and fixed !

thanks a lot karl ! ;)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 04, 2007, 10:24:16 PM
glad we got it sorted.

Btw, to those further up, i've just reuploaded this mod to hopefully fix the problems you guys have been having apply the mod.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Ricky. on October 06, 2007, 05:20:59 PM
I actually mean to include ADSENSE square block or medium rectangle inside very first post. floating to left.

--------------------------------------------------------
| ......................................|...........................|
|...........This is POST.........|........This is ........|
|.......................................|......Adsense.......|
|.......................................l...... ...Block.........|
--------------------------------------------------------

I hope I am clear now. Btw, making it as look post should be easy, Ad Manager has an option to ad in post look like post or rectangle as you said.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 06, 2007, 06:14:09 PM
Neither of those options will be in 2.0.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: www.jbi.in on October 07, 2007, 02:41:10 AM
Well I am none but ajay_sparklingboy --> www.jbi.in so i want to know when will the new mod available
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 07, 2007, 01:10:09 PM
I'm not posting a timeframe.

Its taken months to get to 80%.  I have alot of other mods which have also required bug fixed and other RL and no-smf things/issues/projects that take up my time.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Niteblade on October 11, 2007, 02:08:57 AM
Karl,

Google is now allowing the possibility for revenue to be generated through Youtube videos.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 11, 2007, 08:55:00 AM
Thanks, I already saw an article on it.

I have yet to see the sizes they support for it.

If they don't support the 'standard' adsizes with them, I won't be able to add them to the mod.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: elragal_30 on October 15, 2007, 06:09:18 PM
hello
i'm intersted with this mod and  test it at my PC
but i want to know
i now use "Ad mangment MOD" so, i can't use your mod untill i remove  this MOD ??

if yes , can i put Bidvertiser , adbrit ,..etc  any other ads
or some HTML ,PHP code
replay me as i wnat to use this mod ,but i need to run my other ads and codes that monitor my site
thanks
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 15, 2007, 06:11:42 PM
This mod needs to be removed before using ad management mod.

Both mods cannot be installed at the same time.
And for security reasons I wouldn't recommend trying to.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: elragal_30 on October 15, 2007, 06:25:40 PM
Quote from: karlbenson on October 15, 2007, 06:11:42 PM
This mod needs to be removed before using ad management mod.

Both mods cannot be installed at the same time.
And for security reasons I wouldn't recommend trying to.
so what about my other codes and ads ,how i can use them
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 15, 2007, 06:30:01 PM
Its one or the other.

The mods are not compatible with each other (and the data which is saved is not transferrable).

The current version of the ad revenue sharing mod does not support any custom ads. In future this will change.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: jxk777 on October 25, 2007, 11:06:45 AM
Hi,
It seems all my ads that were working before now only show [ads] where the ads were. I haven't changed anything at all on the forums and it stopped working. How can I fix this?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 25, 2007, 11:36:03 AM
What is [ads]? Is that the line underneath which says [this is an ad revenue sharing forum?]
If not, that is not a part of this mod.  (and is probably to part of the ad network instead)

Check how many other participants there are.
Remember if there aren't any other non-admin participants that admins won't see any ads (for security reasons).
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: jxk777 on October 25, 2007, 11:40:32 AM
Hi Karl,
Every place I had adsense ads now shows just this text: [ads]

I am only using adsense ads and I don't see this on any of my other sites. Only my one forum that is using this mod. I will PM you with the forum details
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on October 25, 2007, 11:49:10 AM
Quote from: jxk777 on October 25, 2007, 11:40:32 AM
Hi Karl,
Every place I had adsense ads now shows just this text: [ads]

I am only using adsense ads and I don't see this on any of my other sites. Only my one forum that is using this mod. I will PM you with the forum details

Have you tried looking at in when logged out as well as logged in?

If you're logged out, you should see ads normally, but when logged in, you'll onlyy see a blank line of white space.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 25, 2007, 12:00:25 PM
Its the ads not the mod.

a) could be a problem with adsense ads
b) could be that adsense changed their ads
c) could be that the adsense account has been banned/suspended
(try to login to your adsense account, if you can successfully login and browse your account etc then you havent been banned)

The ads are in the source, just not showing.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: jxk777 on October 25, 2007, 12:48:56 PM
Hi Karl,
I can get into my adsense account with no problems, it even shows todays earnings so I know I am not banned or suspended. My adsense ads show on other web sites but on the other websites the adsense code is directly inserted into the templates.

Ok, I just checked and my programmer does see my adsense, my guess is that for some reason my member ads are not showing, I checked the stats and all members stats show as 0, but what confuses me is I have tried looking at the site when not logged in and I still don't see the ads, is there a cookie or something? I have also tried both firefox and IE.

Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 25, 2007, 03:05:29 PM
The mod appears to be functioning properly in the sense that if you browse to any page and view the source, you will be able to find the adsense code. (and it appears fully formed).

The issue would appear to be with adsense itself, something which this mod doesnt have control over.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Niteblade on October 25, 2007, 06:31:33 PM
Quote from: jxk777 on October 25, 2007, 11:06:45 AM
Hi,
It seems all my ads that were working before now only show [ads] where the ads were. I haven't changed anything at all on the forums and it stopped working. How can I fix this?

Sounds like your browser is Maxathon, and it sounds like the browser is blocking Google Ads. You need to whitelist Google in order to see ads.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: jxk777 on October 25, 2007, 07:24:16 PM
I found the problem with the ads. My firewall is Outpost Firewall Pro and it is blocking the ads.

But I still don't know why the stats are not updating in the ad revenue sharing. All my members still show as 0, no stats are updating. But at least now I know why the ads were not showing.

Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 25, 2007, 07:32:49 PM
The stats issue is almost certainly a bug with the mod. (if logging of stats is definately enabled).

My concentration at the moment is bug fixing all my other mods and doing bits on 2.0 as and when i can.
I certainly don't want to spend any more time bug fixing 1.0 version of the mod.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: www.jbi.in on October 28, 2007, 12:41:49 PM
Also Google has introduced a new option "ALLOWED SITES" . So please check whether you have added your site which doesn't show ads.

To Karlbenson :
Will the new mod be available within next march ? Brecauce at present I have closed my website and running a blog (www.jbi.in).I am hoping to publish my new site next year.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 28, 2007, 12:45:03 PM
Almost certainly before March (unless something like I die ;P)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on October 28, 2007, 12:57:15 PM
Let's hope that doesn't happen Karl ;)

While I'm here ..... noticed when setting member group permissions, I have a permission with no caption, and have no idea what it is - does ARS add a permission to the group permissions template by any chance, or the Buy me a beer mod - the other one of yours I've got active right now?

Just trying to narrow down possibilities

Gaz
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 28, 2007, 04:44:32 PM
those mods don't have utf-8 strings.

so if your using utf-8, you need to copy all the strings added by this mod to standard language files, to your utf-8 version.
And make a copy of the language files and rename with a -utf8 in the filename
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on October 28, 2007, 11:07:51 PM
Hi Karl

Yup - did that ages ago (you had to teach me how to identify the relevant lines)

This is just one of those little fine-tuning exercises and the main question is whether or not BMAB and/or ARS inserts a permissions switch into the permissions-by-usergroup panels in admin.

If they don't I have to check other mods, if they do, then I have to find out why this bit of UTF-8 didn't convert when everything else for the same mods did do.

Cheers
Gaz
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 28, 2007, 11:12:19 PM
oh sorry, nope, the ars mod (current or future) does not use the smf permissions system.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on October 28, 2007, 11:23:59 PM
Thanks - what about Buy-me-a-beer ?

(and don't you ever sleep?)

Gaz
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 28, 2007, 11:39:29 PM
i don't think it has any permissions whatsoever.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on October 29, 2007, 12:22:32 AM
That's what I thought

.... having just trawled through lots of different php files .... in Sources directory, Manage Permissions is pointing the finger at GoogleTagged as the most likely candidate - just about to go into the languages folder (and wait 10 minutes for the files list to appear on screen) so that I can test that theory.

Gaz
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on October 29, 2007, 01:25:42 AM
Thought so - it is the GoogleTagged mod - and loads of issues re the GroupPermissions admin screen

..... off to find the thread for it

Gaz
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on October 29, 2007, 12:59:31 PM
indeed, I have seen it.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on October 29, 2007, 04:03:45 PM
Stares at Karl's avatar, opens eyes to widest and begins chanting

"Sleep - you need sleeeeepppp, sleeepp nowww, goooo sllleeepppppp"

;)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Aileen on November 13, 2007, 09:22:23 PM
I have SMF adsense manager installed in my forum. You said that I cannot install an adsense manager. I would like to ask if installing this mod will also show ads after uninstalling my adsense manager. thanks
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: asd1 on November 18, 2007, 07:18:24 AM
I have a big problem. I can install it but I cant do anything with it. Look at picture there isnt link... http://img520.imageshack.us/img520/3873/24894284ov8.jpg
SMF 1.1.4
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: asd1 on November 18, 2007, 07:40:53 AM
anyone
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on November 18, 2007, 12:58:37 PM
you are missing the language strings.

a) If your using utf-8 you need to temporarily switch to english (non-utf8)

or

b) You need to copy all the language strings added by this mod to your utf-8 versions (including making a copy of the language string files added by this mod and renaming them with -utf8 before the .php part
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Aileen on November 18, 2007, 02:23:17 PM
Will there be a TOS Violation with this mod
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on November 18, 2007, 05:01:31 PM
Revenue Sharing is permitted by Google

But incentive/asking users to click (clickfraud) is not.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Neol on November 18, 2007, 06:36:42 PM
When will be this mod out of beta?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: asd1 on November 19, 2007, 01:38:43 PM
Quote from: karlbenson on November 18, 2007, 12:58:37 PM
you are missing the language strings.

a) If your using utf-8 you need to temporarily switch to english (non-utf8)

or

b) You need to copy all the language strings added by this mod to your utf-8 versions (including making a copy of the language string files added by this mod and renaming them with -utf8 before the .php part
my default language is english-utf8
I dont know how to do b) thing
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on November 19, 2007, 02:28:55 PM
This mod only adds the language strings for the english (Not english-utf8).

As you would for other mods, you need to add the language strings from the mod file, to your utf-8 versions of the file.

I do not have the time to explain step by step how to do manual edits.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: PrizeLive.com on November 19, 2007, 11:50:27 PM
I just installed this on my forum at http://www.makethatdollar.net. The ads show if I logout, but not when I'm logged in as the administrator. Why not? And yes the " Show Ads " is checked for Administrator.

Also, how can I change the "Register" link to be my referral link?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on November 20, 2007, 12:08:36 AM
Quote from: MoneyTalkPro.com on November 19, 2007, 11:50:27 PM
I just installed this on my forum at http://www.makethatdollar.net. The ads show if I logout, but not when I'm logged in as the administrator. Why not? And yes the " Show Ads " is checked for Administrator.


The answer is in the readme file and in this forum (many times)

Your own ads do not show so that you do not click on them - Google consider that to be click-fraud and would suspend your Adsense account.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: PrizeLive.com on November 20, 2007, 12:09:56 AM
Yeah just read that actually. Thanks.

One other question though.. how can I change the "Register" link to be my referral link?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: GazOutEast on November 20, 2007, 12:30:00 AM
In admin - configuration - ARS admin
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Aileen on November 24, 2007, 12:16:11 PM
How can we enter the new adsense code roll out
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on November 24, 2007, 12:42:48 PM
I don't understand / am not aware of what your referring to
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: naveenkumar on November 24, 2007, 09:40:44 PM
Adsense now changed the code where you can control the appearance of ad within the Adsense account.  Now the code does not come with color codes like url color, background color, etc.  Instead it ads an ad serial number.  That is what will888 referring to.

Still the old code works, so I think that it does work.

It's a great mod karlbenson  :)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on November 24, 2007, 10:59:29 PM
ouch thats crap. Bass ackwards.

The best thing about adsense was that you customize in html, not having to get some serial number (like bidvertiser etc).
its a pain in the ass when you have tonnes of sites.

Going forward, I don't know how this affects this mod. But I doubt I will support serial numbers.
If Adsense drop support for the current way of coloruing, I may drop Adsense from the mod altogether
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: naveenkumar on November 24, 2007, 11:07:03 PM
Quote from: karlbenson on November 24, 2007, 10:59:29 PM
The best thing about adsense was that you customize in html

I concur with that.

I thought to develop a site with this mod  :(
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Aileen on November 25, 2007, 12:14:48 AM
there is a new adsense code. but nevermind I think it will still work. you really have a nice mod. :)

Can we put ads on the last post for this? :)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: www.jbi.in on November 25, 2007, 01:38:58 AM
ouch thats crap. Bass ackwards.
Quote
The best thing about adsense was that you customize in html, not having to get some serial number (like bidvertiser etc).
its a pain in the ass when you have tonnes of sites.

Going forward, I don't know how this affects this mod. But I doubt I will support serial numbers.
If Adsense drop support for the current way of coloring, I may drop Adsense from the mod altogether

Please don't drop it. You should face the challenges ahead of you.

What's about the new mod ? Make it sooner.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on November 25, 2007, 01:21:06 PM
At the moment I cannot get to work on the new version of the ARS mod.
I'm stuck in the process of updating/bug fixing my other released mods.

My concern is that the serial number would pass control over the design of the ad to the user.

Like I said above, because the mod supports multiple sites, if adsense drop support for customizing the ad colors in the html, then it will be dropped.  If they don't, there is no reason to drop it.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: ISRalien on November 26, 2007, 01:24:49 PM
Even if they do what's the trouble?
You said earlier that in the new versions there will be an option for custom ads, what about pasting the adsense code in it and using it as a custom ad? :)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on November 26, 2007, 10:32:58 PM
Custom ads do not form part of ad revenuesharing (for security reasons).
So in that case ONLY the admin would be able to have ads.

For adrevenuesharing purposes, each ad network MUST have the ability to set the colors/size of ad in the html code.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: khokon on December 08, 2007, 01:59:57 PM
hello,
i just install the mod now.
but i could not see in "Configuration" ad revenue share option to eanble the mod.

some day ago i installed the same mod in my friends forum. there the mod working poperley.

help me
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Apllicmz on December 08, 2007, 02:51:24 PM
try to change to default theme and see ..
and update to you theme
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Aileen on December 09, 2007, 02:34:02 PM
Cant wait for the next version karl
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on December 09, 2007, 05:12:40 PM
The mod only installs on the default theme, and ONLY contains language strings for english.
(not English-utf8)

At the moment I can't even get to work it, with all the bug fixing I've got for other mods.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: clanny on December 15, 2007, 04:47:12 PM
Hello,
www.easyfreezone.com is my forum but I want it like adrevenueonline.com

I also receievd a new problem, when i download the mod "ad revenue sharing" by uploading the mod into my package and apply for the mod installing thru the admin center , after that it says install completed!

But I dont see any link or anything to the ad revenue sharing mod anywhere but adrevenueonline.com have the same mod as me and theirs is working correctly.

Do you know why?  also how do i set all the theme images to -ut something i forgot.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: netridge on December 31, 2007, 05:58:06 PM
So this mod works like an ad revenue mod, or do you still need the ad revenue mod installed along with this mod?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on December 31, 2007, 07:16:54 PM
it is an ad revenue sharing mod.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: grvsunny on January 01, 2008, 01:37:36 AM
hello all I have recently uploaded SMF to make my forum and I have added this mod but after installing I am not getting any option for it in my control pannel even though I am using default theme and english language so can you people please tell me what to do to get that option in my control pannel
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on January 01, 2008, 10:29:54 AM
are you using utf8?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: grvsunny on January 01, 2008, 11:57:03 AM
I don't know I have uploaded it with the help of  Fantastico    how to know that and what is the effect of it
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Heartlander on January 08, 2008, 06:33:58 PM
I'm trying to install this, but have found no instructions anywhere on where to upload the files.

Tried an install folder, and without.

Error message:

Fatal error: Call to undefined function: db_query() in /home/content/f/i/s/fish423/html/install/install.php on line 7
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on January 08, 2008, 06:35:45 PM
it won't install outside of smf and the package.

You upload the mod via the Package Manager > Browse Packages
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Heartlander on January 08, 2008, 07:12:38 PM
Never mind- just found the Packages feature (I'm new to the SMF interface).
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: rockinaway on January 09, 2008, 02:58:48 PM
Can this not be made to work with the Ad Management Mod? What is the problem with using them together?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on January 09, 2008, 04:52:30 PM
Because you could potentially be showing Content from AdManagementMod at the same time as the AdRevenueSharing.

For example showing more than ONE adsense ID on ANY page AT THE SAME can get you banned from the programme.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: rockinaway on January 10, 2008, 12:23:41 PM
So you can still use the Ad Management MOD if you are using other adverts? There are no issues between the mods?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on January 10, 2008, 04:14:50 PM
As far as I'm aware. I tried to make it so that they WOULD NOT both install at the same time.
This was a protection for potential users of your adrevenuesharing module.

Since this is protection, I hope you can understand that I cannot provide support for getting them both installed at the same time.

I will also point at this stage, in the next version (should I ever finish it), there are more permanent checks in place to detect the ad management mod is inactive.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: grvsunny on January 10, 2008, 04:30:40 PM
I have uploaded it successfully here
http://forum.crazy-wallpapers.info
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Aileen on January 11, 2008, 12:24:44 PM
karl, do you make customized ad sharing mod. I would like to render your services. If you do, can you PM me

Thanks
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on January 11, 2008, 12:28:25 PM
I don't i'm afraid.

With all my mods I don't have the time to do paid jobs.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: rockinaway on January 11, 2008, 01:33:42 PM
Quote from: karlbenson on January 10, 2008, 04:14:50 PM
As far as I'm aware. I tried to make it so that they WOULD NOT both install at the same time.
This was a protection for potential users of your adrevenuesharing module.

Since this is protection, I hope you can understand that I cannot provide support for getting them both installed at the same time.

I will also point at this stage, in the next version (should I ever finish it), there are more permanent checks in place to detect the ad management mod is inactive.


In the next version will it support custom board ads? Like HTML added by the admin themselves so they can add other adverts... also more locations?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: khokon on January 11, 2008, 03:40:37 PM
Quote from: karlbenson on December 09, 2007, 05:12:40 PM
The mod only installs on the default theme, and ONLY contains language strings for english.
(not English-utf8)

At the moment I can't even get to work it, with all the bug fixing I've got for other mods.

yep, after change the English-utf8, it working properly.

i have a query, can i show adsense image ads using this MOD?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on January 11, 2008, 05:06:50 PM
at the moment only text ads blocks are supported.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: khokon on January 12, 2008, 08:58:49 AM
Quote from: karlbenson on January 11, 2008, 05:06:50 PM
at the moment only text ads blocks are supported.

Is it possible by editing the mod?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Heartlander on January 12, 2008, 12:10:22 PM
I haven't read every post in 14 pages, but have sort of an obvious question.

How are YPN versus Adsense banners differentiated?
Is it in a random manner they are displayed?

Also-
Using the Custom feature for banners, if I use a light background (which works with the Adsense format), YPN shows only a white text/url that is indistinguishable from the light background.
Is there a way to format YPN custom banners?

Thanks much.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on January 12, 2008, 12:35:32 PM
@khokon
It wouldn't be impossible to do.  But I cannot provide support/help in customizing the mod to that.

@ Heartlander
YPN ads should use the exact same color scheme as google.

YPN ads are 'attempted' to be geolocated and only shown to US visitors (as required by YPN TOS).

It will generally try to show YPN ads first to US visitors, and then adsense, then TextLinkAds
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Heartlander on January 12, 2008, 12:47:24 PM
Is it a random showing of banners?
Per visit, or per refresh?

Also- my YPN banners are not taking to the Custom modifications and I see no way to rectify that anywhere....
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on January 12, 2008, 12:51:57 PM
Different ads (with different people's ids) are shown on Each page.
The 'adshare' is done 'per-page'.
It is random(to a point).
I tried to make it take YPN colors (it did at the time).

For the moment Heartlander, I am not bugfixing this mod, because I was working on a complete re-write of this mod.
Although when I'll get the time to finish that mod is unknown.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Aileen on January 13, 2008, 10:59:06 AM
Quote from: Aileen on January 11, 2008, 12:24:44 PM
karl, do you make customized ad sharing mod. I would like to render your services. If you do, can you PM me

Thanks

do you? karl?

thanks
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on January 13, 2008, 11:01:02 AM
Quote from: karlbenson on January 11, 2008, 12:28:25 PM
I don't i'm afraid.

With all my mods I don't have the time to do paid jobs.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: khokon on January 14, 2008, 05:46:07 AM
i think, if i change the adsense code with (google_ad_type = "text_image";)
it may be show text and image ads.
am i right?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: albertvn on January 14, 2008, 08:38:12 AM
Hi Karl,

Thank you very much for your nice mod. I had to build another website in English to use the mod because my original website is in Vietnamese and I could not install the mod.
I would like to know the following points:

- If I do not put the board's adsense Id in Ad Revenue Sharing setting in admin area, will the ads of my members be displayed?
- What should my member do to check if their ads are working on my site?
- I am acting as an administrator of the website and as a moderator but I have only one Adsense account. If I put my Adsense ID in board's setting and also in my moderator's profile. Is it possible?
- I also noticed that when I signed in as a newbie and put the Adsense id in the profile. Then I clicked the button "save", after that, I did not see the adsense id in the profile. What's the matter with it?

Once again, thank you very much for the mod and wish to hear from you soon.

With warm regards,
Albert
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on January 14, 2008, 01:31:48 PM
1. You need to enable each Ad Network, although the 'board ads' don't necessarily have to use Adsense.
2. They should get logs of pageviews in ARS.  Alternatively if they used Adsense/YPN, (and with a Channel) they should be able to see how many hits/clicks via the individual ad networks.
3. The same adsense id as used by the board can't be used by any other users.  Its security precaution.
4. If its invalid adsense id then it won't save.  Otherwise it should save.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: albertvn on January 15, 2008, 08:19:26 AM
Thank so much for the answer. Now I understand!

Have a nice day!
Albert
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on January 18, 2008, 11:07:42 PM
I have reuploaded this mod and screenshots for it.

I am in the process of doing it for ALL my other mods aswell.  Please bear with me.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: sam.friend on February 01, 2008, 02:18:45 PM
It shows this while installing ....

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.

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

Y is it so??
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on February 01, 2008, 02:38:06 PM
Conflicts with another mod you have installed.

If you have the Ad Management Mod installed, you need to UNINSTALL that mod before using this mod.

If your using TinyPortal it may not work with it.

If the installation still won't do automatically. You would have to do the edits manually (eg with help from the SmF Package Parser (http://www.adrevenueshare.com/parser)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: sam.friend on February 01, 2008, 11:20:48 PM
Quote from: karlbenson on February 01, 2008, 02:38:06 PM
Conflicts with another mod you have installed.

If you have the Ad Management Mod installed, you need to UNINSTALL that mod before using this mod.

If your using TinyPortal it may not work with it.

If the installation still won't do automatically. You would have to do the edits manually (eg with help from the SmF Package Parser (http://www.adrevenueshare.com/parser)

Thnks for the quick reply.
I use AD mgt mode. but that is necessary to keep ads on my webpage. If i remove Ad mgt mode and use ARS mode how will google ads will appear??
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on February 02, 2008, 03:04:05 AM
You can't use both Ad Management and ARS mods at the same time.

This is security reason. Because if even by aciddent you ended up with two google adsense ids used on the same page at the same time, both adsense ids would get banned by google.
Title: No impressions' log...and other questions
Post by: mariolone on February 06, 2008, 06:02:11 AM
Hello,

first I would like to tell you thanks for this great mod!

But 4 questions:

1) I set to log impressions of ads but statistics indicated "0", ever: why?

2) I tried to put Adsense channel on related field but, after pushing on Save button, the code channel disappear (?) and it is not saved;

3) is there any control message saying the user that the Adsense code put in the field is already in use by another user?

4) relating to Adsense: which is the format to put the code? "ca-pub-XXXXXXXXXX", "pub-XXXXXXXX" or "XXXXXXXX" (without "pub-");

5) statistics: what means "Boars vs Users 50:50" (in the admin panel of Ad Revenue Sharing)?

6) have I to put my Adsense code also in my profile page? Or it is sufficient in Admin panel?

Thanks a lot!!!
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: darcyjohnperkins on February 10, 2008, 12:16:02 AM
Okay, i'm new to SMF, so i've probably missed something very obvious...but here's my problem:

I installed SMF 1.1.4, and then uploaded a "Package" of Ad Revenue Sharing Mod 1.2...

It "installed" and everything, but the both the admin menu item, and the user profile menu item (for ad revenue sharing mod) don't appear. as you can see here:
(http://img136.imageshack.us/img136/6466/smfscreenmy1.png)

There is a gap/linebreak, but no link to a settings page...
Title: 4. Execute Modification ./Themes/default/index.template.php Test failed
Post by: lookang on February 10, 2008, 10:15:02 AM
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Installation Readme
**************************************************
AD REVENUE SHARING MOD V1.2
**************************************************
Installation Notes:
+++++++++++++++++++

Ad Revenue Sharing modification v1.1 by Karl Benson

Tested & Works for 1.1.3, 1.1.2 and Installs on the DEFAULT skin only.

This is a brand new mod with extensive coding. All features have been extensively tested to the point where I am confident enough to install on my own forum. If any bugs are discovered, I'll try to release fixed versions asap.

Enjoy!

Warning: You should NOT use this mod if you have the Ad Management Mod by Jerm installed, any other advertisement mod or if you have manually inserted adverts into your pages.

FIX: 1.1
Fixed bug not saving Users Adsense Channels

FIX: 1.0
Due to TextLinkAds poor decision to change their referer links to tinyurl ones. I've had to fix it up.
Fixed allowing of ca-pub adsense ids.
No other fixes. V2.0 is in progress and on the way.

Install Actions
Installations actions for "Ad Revenue Sharing":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    install.php    
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Themes/default/Display.template.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test failed
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
6.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
7.    Execute Modification    ./Themes/default/PersonalMessage.template.php    Test successful
8.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
9.    Execute Modification    ./Themes/default/Help.template.php    Test successful
10.    Execute Modification    ./Sources/Subs.php    Test successful
11.    Execute Modification    ./Sources/Post.php    Test successful
12.    Execute Modification    ./Sources/Profile.php    Test successful
13.    Execute Modification    ./Sources/Display.php    Test successful
14.    Execute Modification    ./Sources/Help.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Admin.english.php    Test successful
16.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
17.    Execute Modification    ./Themes/default/languages/Profile.english.php    Test successful
18.    Execute Modification    ./Themes/default/languages/Manual.english.php    Test successful
19.    Extract File    ./Sources/ArsAds.php    
20.    Extract File    ./Sources/ArsTla.php    
21.    Extract File    ./Sources/ManageArs.php    
22.    Extract File    ./Themes/default/ManageArs.template.php    
23.    Extract File    ./Themes/default/languages/ManageArs.english.php

how do i solve this ?

thanks
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on February 10, 2008, 10:16:18 AM
you would need to do the edits manually on the Index.template.php.

Note: Do not install this mod if you already have Ad Management Mod installed.
The mods are not compatible.


Use a mod parser to do the edits
http://www.adrevenueshare.com/parser
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: lookang on February 11, 2008, 05:18:27 AM
afraid i am a novice in php coding.


chance to show the quotes to copy and paste and where to paste? :D
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on February 11, 2008, 11:26:47 AM
Thats what the mod parser does.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: simplyg123 on March 17, 2008, 08:05:51 PM
can someone please post the manual edits, im having trouble reading the xml file
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on March 17, 2008, 08:06:54 PM
Please don't post them all in the forum, theres so many.

Download the mod to your computer and extract all the files from the .zip file.
Then you'll be able to read the files.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: simplyg123 on March 17, 2008, 08:10:56 PM
i did that but this is what i see

<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>karlbenson:AdRevenueSharing</id>
<version>1.2</version>
<!-- // INDEX.PHP  //-->
<file name="$boarddir/index.php">
<!-- adds the new action for the admin section to manage this ad revenue sharing mod -->
<operation>
   <search position="before"><![CDATA[      'trackip' => array('Profile.php', 'trackIP'),]]></search>
<add><![CDATA[
      'managears' => array('ManageArs.php', 'ManageArs'),]]></add>
</operation>
<!-- loads the ArsAds.php once so all my functions are available-->
<operation>
   <search position="before"><![CDATA[require_once($sourcedir . '/Security.php');]]></search>
<add><![CDATA[
if (file_exists($sourcedir . '/ArsAds.php'))
   require_once($sourcedir . '/ArsAds.php');]]></add>
</operation>

<operation>
<!-- sets up the ArsAds function function-->
   <search position="before"><![CDATA[   loadPermissions();]]></search>
<add><![CDATA[
   // SETUP ARS - EXCEPT IF ITS DISPLAY, AS WE SET THAT IN DISPLAY.PHP (SO WE CAN USE THE TOPIC INFO WITHOUT HAVING TO RUN EXTRA QUERIES
   if ((empty($board) || empty($topic)) || (empty($board) && empty($topic)))
   {
      if ($modSettings['ars_enabled'] == 1) {
         if (function_exists("setArsUser")) {
            setArsUser();
         }
      }
   }
]]></add>
</operation>
</file>

<!-- DISPLAY.TEMPLATE.PHP -->
<file name="$themedir/Display.template.php">
   <!-- write ad after 1st post -->
   <operation>
      <search position="after"><![CDATA[   }
   echo '
   <tr><td style="padding: 0 0 1px 0;"></td></tr>
</table>
<a name="lastPost"></a>';]]></search>
      
<add><![CDATA[   
      // AD REVENUE SHARING - PLACEMENT OF ARS ADS AFTER FIRST POST
      if (($message['id'] == $context['first_message']) && ($modSettings['ars_enabled']) && ($modSettings['ars_adsetup_post_enabled'])) {
         echo '<tr>
            <td style="padding: 1px 1px 0 1px;">
               <table width="100%" cellpadding="3" cellspacing="0" border="0">
                  <tr>
                     <td class="windowbg">
                        <table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
                           <tr>
                              <td valign="top" width="16%" rowspan="2" style="overflow: hidden;">';
                                 showArsAds("post");   
            echo'               </td>
                           </tr>
                        </table>
                     </td>
                  </tr>
               </table>
            </td>
         </tr>';
      }
      // END OF ARS PLACEMENT OF ARS ADS
]]>
</add>
   </operation>
   <!-- write ads after the topic & messages table on each page -->
   <operation>
      <search position="before"><![CDATA[<table border="0" width="100%" cellpadding="0" cellspacing="0" style="margin-bottom: 1ex;">
      <tr>';
   if ($settings['linktree_inline'])
         echo '
            <td valign="top">', theme_linktree(), '</td> ';
   echo '
            <td valign="top" align="', !$context['right_to_left'] ? 'right' : 'left', '" class="nav"> ', $context['previous_next'], '</td>
      </tr>
</table>';]]></search>
      
<add><![CDATA[   
      // AD REVENUE SHARING - PLACEMENT OF ARS ADS AT TOP OF THE PAGE (CENTERED)
      if ($modSettings['ars_enabled']) {
         showArsAds("tables");
      }
      // END OF ARS PLACEMENT OF ARS ADS
      echo '<br/>';
]]>
</add>
   </operation>
</file>

<!-- INDEX.TEMPLATE.PHP -->
<file name="$themedir/index.template.php">
   <!-- write ads at the top of the forum -->
   <operation>
      <search position="before"><![CDATA[</head>
<body>';]]></search>
      
<add><![CDATA[   
      // AD REVENUE SHARING - PLACEMENT OF ARS ADS AT TOP OF THE PAGE (CENTERED)
      if ($modSettings['ars_enabled']) {
         // START COUNTING THE NUMBER OF ADS
         $context['arsadscount'] = 0;
         showArsAds("top");
         showArsMessage("top");
      }
      // END OF ARS PLACEMENT OF ARS ADS
]]>
</add>
   </operation>
   <!-- write ads at bottom and right column/sidebar -->
   <operation>
      <search position="replace"><![CDATA[function template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '
   </div>';]]></search>
      
<add><![CDATA[function template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;

   echo '</div>';
   
   // AD REVENUE SHARING - PLACEMENT OF ARS ADS
   if ($modSettings['ars_enabled']) {
      // ADS IN RIGHT TOWER/COLUMN
      if ($modSettings['ars_adsetup_right_enabled']) {
         echo '</td><td valign="top">';
         showArsAds("right");
      }
      // CLOSE THE TABLE WE CREATED IF LEFT OR RIGHT TOWER ADS ARE ENABLED
      if (($modSettings['ars_adsetup_left_enabled']) || ($modSettings['ars_adsetup_right_enabled'])) {
         echo '</td></tr></table>';
      }
      // ARS ADS AT BOTTOM OF THE PAGE (CENTERED)
      showArsAds("bottom");
      
      // LOG/RECORD ADS IMPRESSIONS
      logImpressions();
   }
   // END OF ARS PLACEMENT OF ARS ADS
]]>
</add>
   </operation>
   <!-- write ads at the welcome of the forum -->
   <operation>
      <search position="after"><![CDATA[   echo '
                     </td>
                  </tr>
               </table>
            </td>
         </tr>
      </table>';]]></search>
<add><![CDATA[

      // AD REVENUE SHARING - PLACEMENT OF ARS ADS IN THE WELCOME AREA BOX (CENTERED)
      if (($modSettings['ars_enabled']) && ($modSettings['ars_adsetup_welcome_enabled'])) {
      echo '</td>
            <td class="windowbg2">';
         showArsAds("welcome");
         showArsMessage("top");
      }
      // END OF ARS PLACEMENT OF ARS ADS
]]>
</add>
</operation>
   <!-- write ads at under links area of the forum -->
   <operation>
      <search position="before"><![CDATA[   // Show the menu here, according to the menu sub template.
   template_menu();

]]></search>
<add><![CDATA[
      // AD REVENUE SHARING - PLACEMENT OF ARS ADS
      if ($modSettings['ars_enabled']) {
         // PLACEMENT OF ARS ADS UNDER LINKS
         showArsAds("links");
   
         // CREATE TABLE IF LEFT OR RIGHT TOWER ADS ARE ENABLED, ALSO WRITE LEFT TOWER/COLUMN ADS
         if (($modSettings['ars_adsetup_left_enabled']) || ($modSettings['ars_adsetup_right_enabled'])) {
            echo '<table cellspacing="3" cellpadding="0" width="100%"><tr><td valign="top">';
         }
         // PLACEMENT OF ARS ADS IN A LEFT COLUMN (CENTERED)
         if ($modSettings['ars_adsetup_left_enabled']) {
            showArsAds("left");
            echo '</td><td valign="top">';
         }
      }
      // END OF ARS PLACEMENT OF ARS ADS
]]>
</add>
</operation>
</file>

<!-- // BOARDINDEX.TEMPLATE.PHP //-->
<file name="$themedir/BoardIndex.template.php">
   <!-- adds ars ads below the boards list table & just above stats -->
   <operation>
      <search position="after"><![CDATA[   // Here's where the "Info Center" starts...
   echo '<br />]]></search>
<add><![CDATA[

      // AD REVENUE SHARING - PLACEMENT OF ARS ADS BELOW PERSONAL MESSAGES SIDEMENU
      if ($modSettings['ars_enabled']) {
         showArsAds("tables");
      }
      // END OF ARS PLACEMENT OF ARS ADS   
   
]]></add>
</operation>
</file>

<!-- // MESSAGEINDEX.TEMPLATE.PHP //-->
<file name="$themedir/MessageIndex.template.php">
   <!-- adds ars ads below the topic table -->
   <operation>
      <search position="before"><![CDATA[// Show breadcrumbs at the bottom too?
   echo '
   <div>', theme_linktree(), '<br /></div>';]]></search>
<add><![CDATA[

      // AD REVENUE SHARING - PLACEMENT OF ARS ADS BELOW PERSONAL MESSAGES SIDEMENU
      if ($modSettings['ars_enabled']) {
         showArsAds("tables");
      }
      // END OF ARS PLACEMENT OF ARS ADS   
   
]]></add>
</operation>
</file>

<!-- // PERSONALMESSAGE.TEMPLATE.PHP  //-->
<file name="$themedir/PersonalMessage.template.php">
<!-- ads the placement of the ads below the PersonalMessage sidemenu -->
<operation>
   <search position="after"><![CDATA[               <br />
            </td>
            <td valign="top">';
}

// Just the end of the index bar, nothing special.]]></search>
<add><![CDATA[
      <br/>';
      // AD REVENUE SHARING - PLACEMENT OF ARS ADS BELOW PERSONAL MESSAGES SIDEMENU
      if ($modSettings['ars_enabled']) {
         showArsAds("sidebars");
      }
      // END OF ARS PLACEMENT OF ARS ADS

echo '
]]></add>
</operation>
<!-- ads $modsettings to the template_pm_above function of the PersonalMessage.template.php -->
<operation>
   <search position="before"><![CDATA[function template_pm_above()
{
   global $context, $settings, $options, $txt]]></search>
<add><![CDATA[,$modSettings]]></add>
</operation>
</file>

<!-- // PROFILE.TEMPLATE.PHP  //-->
<file name="$themedir/Profile.template.php">
<!-- ads the placement of the ads below the profile sidemenu -->
<operation>
   <search position="after"><![CDATA[</td>
            <td width="100%" valign="top">';
   }
   // If no areas exist just open up a containing table.
   else]]></search>
<add><![CDATA[
   <br/>';
      // AD REVENUE SHARING - PLACEMENT OF ARS ADS BELOW PROFILE SIDEMENU
      if ($modSettings['ars_enabled']) {
         showArsAds("sidebars");
      }
      // END OF ARS PLACEMENT OF ARS ADS

echo '
]]></add>
</operation>
<!-- adds the template for the ad revenue sharing mod in the users profile area -->
<operation>
   <search position="before"><![CDATA[
// Template for the profile side bar - goes before any other profile template.
]]></search>
<add><![CDATA[

// Adds the adrevenue sharing page
function template_adrevenuesharing()
{
   global $context, $settings, $options, $scripturl, $modSettings, $txt, $db_prefix, $membergroups;

   // INFORM THE USER THEY ARE BANNED
   if ($context['ars_banned']) {
      echo '<table border="0" cellspacing="0" cellpadding="3" align="center" width="80%" class="tborder">
            <tr class="titlebg">
                  <td>'.$txt['ars_profile_name'].'</td>
            </tr>
            <tr class="windowbg2">
               <td>'.$txt['ars_profile_banned'].'</td>
            </tr>
         </table>
            ';
   
   // THEY ARENT BANNED SO SHOW THEM THE TABLE
   } else {
   
      // IF NOT ELIGIBLE THEN TELL THE USER
      if ($context['ars']['enabled'] != 1) {

         echo '<table border="0" cellspacing="0" cellpadding="3" align="center" width="80%" class="tborder">
               <tr class="titlebg">
                  <td>'.$txt['ars_profile_name'].' ';
                  
         if ($modSettings['ars_enabled'] == 1) {
            echo '<span style="color:green">'.$txt['ars_profile_enabled'].'</span>';
         } else {
            echo '<span style="color:red">'.$txt['ars_profile_disabled'].'</span>';
         }
                  
         echo '   </td>
            </tr>
            <tr class="windowbg2">
               <td>'.$txt['ars_profile_noteligible'].'</td>
            </tr>
         </table>
            ';

      } else {
         // WRITE STATS TABLE
         echo '<table border="0" cellspacing="1" cellpadding="3" align="center" width="80%" class="bordercolor">
            <tr class="titlebg">
               <td colspan="3">'.$txt['ars_profile_stats'].'</td>
            </tr>
            <tr class="windowbg2">
               <td>'.$txt['ars_profile_impressions'].': ';
               
            if ($modSettings['ars_logimpressions']) {
               echo $context['ars']['impressions'];
            } else {
               echo $txt['ars_profile_disabled'];
            }
            
            echo '</td>
               <td>'.$txt['ars_profile_share'].': '.$context['ars']['share'].'%</td>
               <td>'.$txt['ars_profile_random'].': '.$context['ars']['random'].'</td>
            </tr>
            <tr class="windowbg">
               <td colspan="3" align="center">'.$txt['ars_profile_statsnotes'].'</td>
            </tr>
            </table><p>'.$txt['ars_profile_help'].'</p>';



         // WRITE THE FORM WITH ALL THE SETTINGS IN
         echo '<form action="' . $scripturl . '?action=profile;sa=adrevenuesharing;save" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
            <table border="0" cellspacing="0" cellpadding="3" align="center" width="80%" class="tborder">
               <tr class="titlebg">
                  <td colspan="3">'.$txt['ars_profile_name'].' ';

         // IF ALL EITHER ARS IS DISABLED OR ALL THREE AD TYPES SETTINGS ARE OFF, SHOW AS DISABLED
         if (($modSettings['ars_enabled'] == 0) || (($modSettings['ars_useadsense'] == 0) && ($modSettings['ars_useypn'] == 0) && ($modSettings['ars_usetextlinkads'] == 0))) {
            echo '<span style="color:red">'.$txt['ars_profile_disabled'].'</span>
               </td>
            </tr><tr class="windowbg2">
                  <td colspan="3" align="center">'.$txt['ars_profile_disablednotes'].'
               </td>
            </tr>';
         } else {
            echo '<span style="color:green">'.$txt['ars_profile_enabled'].'</span>
            </td>
            </tr>';
   
         
            // WRITE THE ADSENSE SECTION IF IT IS ENABLED
            if($modSettings['ars_useadsense']) {
            echo '<tr class="windowbg2">
                  <td>'.$txt['ars_profile_adsenseid'].'</td>
                  <td><input type="text" value="'.$context['ars']['adsenseid'].'" name="ars_profile_adsenseid" size="15" maxlength="23"/></td>
                  <td><a href="http://www.google.com/adsense/" target="_blank">'.$txt['ars_profile_register'].'</a></td>
               </tr>
               <tr class="windowbg2">
                  <td>'.$txt['ars_profile_adsensechannel'].'</td>
                  <td><input type="text" value="'.$context['ars']['adsensechannel'].'" name="ars_profile_adsensechannel" size="15" maxlength="10"/></td>
                  <td></td>
               </tr>';
            }
            // WRITE THE YPN SECTION IF IT IS ENABLED
            if($modSettings['ars_useypn']) {
            echo '<tr class="windowbg2">
                  <td>'.$txt['ars_profile_ypnid'].'</td>
                  <td><input type="text" value="'.$context['ars']['ypnid'].'" name="ars_profile_ypnid" size="15" maxlength="10"/></td>
                  <td><a href="http://publisher.yahoo.com/" target="_blank">'.$txt['ars_profile_register'].'</a></td>
               </tr>
               <tr class="windowbg2">
                  <td>'.$txt['ars_profile_ypnsection'].'</td>
                  <td><input type="text" value="'.$context['ars']['ypnsection'].'" name="ars_profile_ypnsection" size="15" maxlength="5"/></td>
                  <td></td>
               </tr>
               <tr class="windowbg2">
                  <td colspan="4" align="center">'.$txt['ars_profile_ypnusonly'].'</td>
               </tr>';
            }
            // WRITE THE TEXTLINKADS SECTION IF IT IS ENABLED
            if($modSettings['ars_usetextlinkads']) {
               echo '<tr class="windowbg2">
                     <td>'.$txt['ars_profile_textlinkadsid'].'</td>
                     <td><input type="text" value="'.$context['ars']['textlinkadsid'].'" name="ars_profile_textlinkadsid" size="15" maxlength="6"/></td>
                     <td><a href="http://tinyurl.com/35koyy" target="_blank">'.$txt['ars_profile_register'].'</a></td>
                  </tr>';
            }
   
            // ADD THE SAVE BUTTON
               echo '<tr class="windowbg">
                     <td colspan="4" align="center" style="padding-top: 1ex; padding-bottom: 1ex;">
                        <input type="submit" name="save" value="', $txt['ars_save'], '" style="margin: 2px;" />
                        <input type="hidden" name="ars_memId" value="'.$context['member']['id'].'" />
                     </td>
                  </tr>';
         }
            echo '</table>
               </form>';

      }
   }
   
   // WRITE THE TABLE SHOWING RATES/ELIGIBILITY/SHOWADS
   echo '<br/><table border="0" cellspacing="1" cellpadding="4" align="center" width="80%" class="bordercolor">
            <tr class="titlebg"><td colspan="7" style="padding: 4px;">', $txt['ars_adshare'], '</td></tr>
            <tr class="catbg3">
               <td width="10%" align="center">'.$txt['ars_adshare_idgroup'].'</td>
               <td width="25%" align="center">'.$txt['ars_adshare_membergroup'].'</td>
               <td width="11%" align="center">'.$txt['ars_adshare_posts'].'</td>
               <td width="15%" align="center">'.$txt['ars_adshare_share'].'</td>
               <td width="15%" align="center">'.$txt['ars_adshare_random'].'</td>
               <td width="12%" align="center">'.$txt['ars_adshare_showads'].'</td>
               <td width="12%" align="center">'.$txt['ars_adshare_enabled'].'</td>
            </tr>';
            
      // FETCH EACH MEMBERGROUP, ONE BY ONE & WRITE THE INFO
   foreach($membergroups as $row) {
   
      echo '<tr><td align="center" class="windowbg">'.$row['ID_GROUP'].'</td><td align="center" class="windowbg2">'.$row['groupName'].'</td>';
      
      // FOR NON-POST BASED WE WONT SHOW THIS BIT
      if ($row['minPosts'] == -1) {
         echo '<td align="center" class="windowbg2">-</td>';
      } else {
         echo '<td align="center" class="windowbg2">'.$row['minPosts'].'</td>';
      }
      
      // WRITE THE SHARE RATIO BIT
      echo '<td align="center" class="windowbg2">
            '.$row['ars_share'].'%</td>
      <td align="center" class="windowbg2">';
         
      $a = ($row['ars_random'] == 1) ? $txt['ars_adshare_yes'] : $txt['ars_adshare_no'];
      echo $a;
      unset($a);
      
      echo '</td>
      <td align="center" class="windowbg2">';
      
      $a = ($row['ars_showads'] == 1) ? $txt['ars_adshare_yes'] : $txt['ars_adshare_no'];
      echo $a;
      unset($a);
      
      echo '</td>
      <td align="center" class="windowbg2">';
         
      $a = ($row['ars_enabled'] == 1) ? $txt['ars_adshare_yes'] : $txt['ars_adshare_no'];
      echo $a;
      unset($a);
      
      echo '</td></tr>';
      
   }
   echo '</table>';
   // tidy up
   unset($membergroups, $row);
}

]]></add>
</operation>
</file>

<!-- // HELP.TEMPLATE.PHP  //-->
<file name="$themedir/Help.template.php">
<!-- adds all the ars help pages to the help section-->
<operation>
   <search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// THE AD REVENUE SHARING HELP PAGE TEMPLATE
function template_manual_adrevenuesharing()
{
   global $context, $settings, $options, $txt, $scripturl, $modSettings;

   // ARRAY TO CREATE THE SECTIONS ON THE FLY
   $titles = array(
               'basics'=>'topics,nontopics',
               'participate'=>'',
               'networks'=>'adsense,ypn,textlinkads',
               'banned'=>'',
               'faqs'=>'',
               'tips'=>'',
               'bugs'=>'',
               'credit'=>''
            );

   echo '<h2 id="intro">'.$txt['manual_adrevenuesharing_title_intro'].'</h2>';
   echo $txt['manual_adrevenuesharing_notes_intro'];

   // WRITE THE FAQ MENU FOR ADREVENUE SHARING
   echo '<ol>';

   foreach ($titles as $title => $subtitle) {
      // WRITE EACH LINK
      echo '<li><a href="'.$scripturl.'?action=help;page=adrevenuesharing#'.$title.'">', $txt['manual_adrevenuesharing_title_'.$title], '</a></li>';
      // DON'T FORGET TO WRITE ANY SUBTITLES IF THEY EXIST
      if ($subtitle != '') {
         echo '<ol class="la">';
         $subs = explode(',',$subtitle);
         foreach($subs as $sub) {
            echo '<li><a href="'.$scripturl.'?action=help;page=adrevenuesharing#'.$sub.'">', $txt['manual_adrevenuesharing_title_'.$sub], '</a></li>';
         }
         echo '</ol>';
      }   
   }
   echo '</ol>';
   // tidy up
   unset($title,$subtitle,$sub,$subs);

   // WRITE THE EACH FAQ SECTION
   foreach ($titles as $title => $subtitle) {
   echo '<h2 id="'.$title.'">'.$txt['manual_adrevenuesharing_title_'.$title].'</h2>';
   echo '<p>'.$txt['manual_adrevenuesharing_notes_'.$title].'</p>';
      
      // DON'T FORGET TO WRITE ANY SUBTITLE FAQ PAGES
      if ($subtitle != '') {
         $subs = explode(',',$subtitle);
         foreach($subs as $sub) {
            echo '<h3 id="'.$sub.'">'.$txt['manual_adrevenuesharing_title_'.$sub].'</h3>';
            echo '<p>'.$txt['manual_adrevenuesharing_notes_'.$sub].'</p>';
         }
      }   
   }
   // tidy up
   unset($title,$subtitle,$sub,$subs);
}

]]></add>
</operation>
</file>

<!-- // SUBS.PHP  //-->
<file name="$sourcedir/Subs.php">
<!-- adds the new link in the list of the admin section below the theme link -->
<operation>
   <search position="before"><![CDATA[            'manage_themes' => '<a href="' . $scripturl . '?action=theme;sa=admin;sesc=' . $sc . '">' . $txt['theme_admin'] . '</a>',]]></search>
<add><![CDATA[
            'manage_ars' => '<a href="' . $scripturl . '?action=managears">'.$txt['managears_admin'].'</a>',]]></add>
</operation>
</file>

<!-- // POST.PHP  //-->
<file name="$sourcedir/Post.php">
<!-- adds enables adds to be shown on Post/reply page -->
<operation>
   <search position="before"><![CDATA[loadLanguage('Post');]]></search>
   <add><![CDATA[
   // SETUP THE ARS FUNCTIONS FOR THIS PAGE
   if ($modSettings['ars_enabled'] == 1) {
      if (function_exists("setArsUser")) {
         setArsUser();
      }
   }
   ]]></add>
</operation>
</file>

<!-- // PROFILE.PHP  //-->
<file name="$sourcedir/Profile.php">
<!-- adds the required info to call the subaction -->
<operation>
   <search position="before"><![CDATA['theme' => array(array('profile_extra_any', 'profile_extra_own'), array('profile_extra_any')),]]></search>
   <add><![CDATA['adrevenuesharing' => array(array('profile_extra_any', 'profile_extra_own'), array('profile_extra_any')),]]></add>
</operation>
<!-- adds the required info to call the subaction on submit of form (data is posted) -->
<operation>
   <search position="before"><![CDATA['theme' => array(array('profile_extra_any', 'profile_extra_own'), array('profile_extra_any'), 'post'),]]></search>
   <add><![CDATA['adrevenuesharing' => array(array('profile_extra_any', 'profile_extra_own'), array('profile_extra_any'), 'post'),]]></add>
</operation>
<!-- adds the link-->
<operation>
   <search position="before"><![CDATA[$context['profile_areas']['edit_profile']['areas']['theme'] = '<a href="' . $scripturl . '?action=profile;u=' . $memID . ';sa=theme">' . $txt['theme'] . '</a>';]]></search>
   <add><![CDATA[$context['profile_areas']['edit_profile']['areas']['adrevenuesharing'] = '<a href="' . $scripturl . '?action=profile;u=' . $memID . ';sa=adrevenuesharing">'.$txt['adrevenuesharing'].'</a>';]]></add>
</operation>
<!-- adds the function to call the template, load the language etc-->
<operation>
   <search position="after"><![CDATA[// Allow the change or view of profiles...
]]></search>
   <add><![CDATA[
// Ad Revenue Sharing Function
function adrevenuesharing()
{
   global $context, $txt, $sourcedir, $db_prefix, $modSettings, $membergroups;

   // LOAD THE PROFILE TEMPLATE AND LANGUAGE
   loadTemplate('Profile');
   loadLanguage('Profile');
   
   // TRY TO SAVE USERS ARS DATA FUNCTION IF POST DATA WAS SENT
   if (isset($_POST['save']))
   {
      // WHICH MEMBERS DETAILS ARE BEING CHANGED
      $ID_MEMBER = $_POST['ars_memId'];

      // QUERY ARS_PARTICIPANTS TABLE AND SEE IF ALREADY IS PARTICIPATING
      // get all the info, cos we will need it
      $query = db_query("
               SELECT *
               FROM {$db_prefix}ars_participants
               WHERE ID_MEMBER = '$ID_MEMBER'
               LIMIT 1", __FILE__, __LINE__);

      // RETRIEVE THE RECORD IF EXISTS
      $row = mysql_fetch_assoc($query);

      // FREE THE QUERY
      mysql_free_result($query);

      // NOT A PARTICIPANT - THEN SETUP BLANK ARRAY FOR EACH
       if ($row == NULL) {
         // NEW, SO WE KNOW LATER TO INSERT DATA RATHER THAN UPDATE
         $newparticipant = 1;
         unset($row);
         // CREATE ROW ARRAY WHICH WE WILL ADD DATA TO
         $row = array();

      } else {
         // NOT NEW, SO WE KNOW LATER TO UPDATE DATA RATHER THAN INSERT
         $newparticipant = 0;
      }


      $a = array();
      // ALL THE VALIDATION STRINGS FOR THE EREGI - VERY WELL DONE IF I SAY SO MYSELF
      $a['adsenseid'] = '^(ca-pub-|pub-)+([0-9]{16}$)';
      $a['adsensechannel'] = '^[0-9]{10}$';
      $a['ypnid'] = '^[0-9]{10}$';
      $a['ypnsection'] = '^[0-9]{5}$';
      $a['textlinkadsid'] = '^[0-9a-zA-Z]{6}$';

      
      // SET BLANK VAR
      $blank = 0;

      // RUN THROUGH EACH SETTING AND TRY TO SAVE
      foreach($a as $b => $v) {

         // CHECK NOT BLANK - TO HELP AVOID INDEX UNDEFINED ERRORS
         if (!empty($_POST['ars_profile_'.$b])) {
            // VALIDATE
            $c = !empty($_POST['ars_profile_'.$b]) ? strtolower($_POST['ars_profile_'.$b]) : '' ;
            $c = eregi($v, $c) ? $c : $row[$b] ;
         } else {
            // IF USER WANTS TO REMOVE IT, LET THEM DO SO
            $c = '';
         }
               
         // TO PREVENT MULTIPLE SIGNUPS - EXCEPT IF EMPTY OR CHANNEL/SECTON
         if(($c != "") && ($b != "ypnsection") && ($b != "adsensechannel")) {
            $query = db_query("
                     SELECT count(*) as num
                     FROM {$db_prefix}ars_participants
                     WHERE $b = '$c'
                     AND ID_MEMBER != '$ID_MEMBER'
                     LIMIT 1", __FILE__, __LINE__);
            list($exists) = mysql_fetch_row($query);
            mysql_free_result($query);
            // IF EXISTS, THEN RESET TO SAVED VAR, IF DOESNT SET IT
            $c = ($exists != 1) ? $c : $row[$b];
            // tidy up
            unset($exists);
         } else {
            // ITS EMPTY, SO SET AS EMPTY TO SAVE IT
            $c = '';
         }

         // DIFFERENT WAY OF SAVING WHETHER NEW OR CURRENT PARTICIPANT
         if ($newparticipant == 1) {
            $row[$b] = $c;
         } else {
            $saveSettings[] = $b." = '".$c."'";
         }

         $e = array('adsenseid','ypnid','textlinkadsid');
         // IF IS ONE OF THE IDS AND ARE BLANK, THEN
         if ((in_array($b,$e)) && ($c == "")) {
            $blank++;
         }
         
         // tidy up
         unset($c,$e);
      }
      // tidy up
      unset($a,$b);

      // IF ALL 3 ID ROWS WERE BLANK, AND THEY WERE PARTICIPATING, WE SHOULD DELETE THEM.
      if (($blank == 3) && ($newparticipant == 0))
      {
         // REMOVE ROW
         db_query("
               DELETE FROM {$db_prefix}ars_participants
               WHERE ID_MEMBER='$ID_MEMBER'", __FILE__, __LINE__);


      // WE HAVE AT LEAST SOME DATA TO SAVE
      } else {
         // INSERT OR UPDATE DEPENDING ON WHETHER EXISTING OR NEW PARTICIPANT
         if ($newparticipant == 1) {
            db_query("
                  INSERT IGNORE
                  INTO {$db_prefix}ars_participants (
                                 `ID_MEMBER`,
                                 `adsenseid`,
                                 `adsensechannel`,
                                 `ypnid`,
                                 `ypnsection`,
                                 `textlinkadsid`,
                                 `impressions`
                              ) VALUES (
                                 '$ID_MEMBER',
                                 '".$row['adsenseid']."',
                                 '".$row['adsensechannel']."',
                                 '".$row['ypnid']."',
                                 '".$row['ypnsection']."',
                                 '".$row['textlinkadsid']."',
                                 '0'
                              )", __FILE__, __LINE__);
         } else {
            // IF ALREADY PARTICIPATING, JUST UPDATE
            db_query("
                  UPDATE {$db_prefix}ars_participants
                  SET ". implode(", ", $saveSettings) . "
                  WHERE ID_MEMBER='$ID_MEMBER'", __FILE__, __LINE__);
         }
      }
   // tidy up
   unset($a,$b,$changes,$saveSettings,$newparticipant,$blank);

   // NOW DATA IS SAVED, REDIRECT EXIT TO AVOID REFRESH, RESENDING POST DATA JUNK
   redirectexit('action=profile;u='.$ID_MEMBER.';sa=adrevenuesharing');
   }
   
   //   PREPARE DATA FOR USE IN THE TEMPLATE
   
   // WHICH USERS PROFILE ARE WE VIEWING
   $memID = $context['member']['id'];
      
   // CHECK THAT THE USER ISNT BANNED, IF THEY ARE, THEY ARE NOT ALLOWED TO PARTICIPATE
   // START FROM POSITION THAT USER ISNT BANNED
   $context['ars_banned'] = 0;
   if(!empty($modSettings['ars_bannedusers'])) {
      // IF CONTAINS COMMA SPLIT BY IT, ELSE SET IN ARRAY SO FOREACH LOOP DOESNT CAUSE ERROR
      $bannedusers = (stristr($modSettings['ars_bannedusers'],',')) ? explode(',',$modSettings['ars_bannedusers']) : array($modSettings['ars_bannedusers']);
      // CHECK IF USER IS BANNED
      if (in_array($memID, $bannedusers))  {
         // SET USER IS BANNED FROM PARTICIPATING
         $context['ars_banned'] = 1;
      }
   }
   
   // PREPARE ALL THE OTHER INFORMATION IF NOT BANNED
   if ($context['ars_banned'] != 1) {
   
      // STORE ALL THE DATA IN A CONTEXT ARRAY
      $context['ars'] = array();
   
      $query = db_query("
                  SELECT m.ID_MEMBER, m.ID_GROUP, m.ID_POST_GROUP, m.additionalGroups, p.adsenseid, p.adsensechannel, p.ypnid, p.ypnsection, p.textlinkadsid, p.impressions
                  FROM {$db_prefix}members as m
                     LEFT JOIN {$db_prefix}ars_participants AS p ON (p.ID_MEMBER = m.ID_MEMBER)
                  WHERE m.ID_MEMBER=".$memID."
                  LIMIT 1", __FILE__, __LINE__);
                  
      $row = mysql_fetch_assoc($query);
      mysql_free_result($query);
   
      // THE GROUPS STRING COMPRISES OF THREE PARTS, SET IT UP WITH THE POST GROUP
      $groups = $row['ID_POST_GROUP'];
      // THERE IS NO GROUP ID ZERO SO DONT BOTHER INCLUDING IT
      if ($row['ID_GROUP'] != 0) {
         $groups .=  ','.$row['ID_GROUP'];
      }
      // ADD ALL THE ADDITIONAL GROUPS
      if ($row['additionalGroups'] != "") {
         $groups .= ','.$row['additionalGroups'];
      }
      $groups = explode(',',$groups);

      // IF THE KEY DOESNT EXIST, CREATE IT (THIS WOULD OCCUR IF NOT PARTICIPATING)
      $context['ars']['adsenseid'] = (isset($row['adsenseid'])) ? $row['adsenseid'] : '';
      $context['ars']['adsensechannel'] = (isset($row['adsensechannel'])) ? $row['adsensechannel'] : '';
      $context['ars']['ypnid'] = (isset($row['ypnid'])) ? $row['ypnid'] : '';
      $context['ars']['ypnsection'] = (isset($row['ypnsection'])) ? $row['ypnsection'] : '';
      $context['ars']['textlinkadsid'] = (isset($row['textlinkadsid'])) ? $row['textlinkadsid'] : '';
      $context['ars']['impressions'] = (isset($row['impressions'])) ? $row['impressions'] : '-';

      // SHOW ADS TO THIS USER?
      $query = db_query("
                  SELECT ars_share, ars_random, ars_enabled
                  FROM {$db_prefix}membergroups
                  WHERE ID_GROUP = '". implode("' OR ID_GROUP = '", $groups) ."'", __FILE__, __LINE__);

      // tidy up
      unset($groups);
                  
      // SET DEFAULT FOR SHARE
      $context['ars']['share'] = 0;
      $context['ars']['random'] = $txt['ars_profile_no'];
      $context['ars']['enabled'] = 0;
      // GOT THROUGH EACH MEMBERGROUP
      while($group = mysql_fetch_assoc($query)) {
            // SHARE RATE IS SET TO THE HIGHEST OF ALL THE USERS MEMBERGROUPS
            if ($group['ars_share'] >= $context['ars']['share']) {
               $context['ars']['share'] = $group['ars_share'];
            }
            // ARE THEY ELIGIBLE TO BE RANDOMLY SELECTE FOR NON-TOPIC PAGES
            if ($group['ars_random'] == 1) {
               $context['ars']['random'] = $txt['ars_profile_yes'];
            }
            // CHECK WHETHER THE ARS AREA SHOULD BE UNLOCKED/SHOWN IF THEY ARE ALLOWED.
            if ($group['ars_enabled'] == 1) {
               $context['ars']['enabled'] = 1;
            }
      }
      mysql_free_result($query);
      unset($groups,$group);
   
   
         // QUERY DB FOR MEMBERGROUP INFO WE REQUIRE
      $query = db_query("
      SELECT *
      FROM {$db_prefix}membergroups
      ORDER BY minPosts", __FILE__, __LINE__);
      
      $membergroups = array();
      while($row = mysql_fetch_assoc($query)) {
         $membergroups[] = $row;
      }
      mysql_free_result($query);

   
   }
      
   $context['page_title'] = 'Ad Revenue Sharing';
      // Change the template.
   $context['sub_template'] = 'adrevenuesharing';

}

]]></add>
</operation>
</file>

<!-- // DISPLAY.PHP  //-->
<file name="$sourcedir/Display.php">
<!-- includes the ars setup function at a point at the display where we know about the topic -->
<operation>
   <search position="before"><![CDATA[// Start this off for quick moderation - it will be or'd for each post.
   $context['can_remove_post'] = allowedTo('delete_any') || (allowedTo('delete_replies') && $context['user']['started']);
]]></search>
<add><![CDATA[

   // SETUP THE ARS FUNCTIONS FOR THIS PAGE
   if ($modSettings['ars_enabled'] == 1) {
      if (function_exists("setArsUser")) {
         setArsUser();
      }
   }

]]></add>
</operation>
</file>

<!-- // HELP.PHP  //-->
<file name="$sourcedir/Help.php">
<!-- adds all the ars help pages to the help section-->
<operation>
   <search position="before"><![CDATA['searching' => 'search',]]></search>
<add><![CDATA[
      'adrevenuesharing' => 'adrevenuesharing',]]></add>
</operation>
</file>

<!-- // ADMIN.ENGLISH.PHP  //-->
<file name="$languagedir/Admin.english.php">
<!-- adds the txt string for use on the manage admin area -->
<operation>
   <search position="before"><![CDATA[$txt['theme_admin'] = 'Themes and Layout';]]></search>
<add><![CDATA[
$txt['managears_admin'] = 'Ad Revenue Sharing';
]]></add>
</operation>
</file>

<!-- // MODIFICATIONS.ENGLISH.PHP  //-->
<file name="$languagedir/Modifications.english.php">
<!-- adds the txt strings used below the ads for participation -->
<operation>
   <search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
//ARS ADS TXT STRINGS
$txt['ars_ads_mod'] = 'Ad Revenue Sharing Mod';
$txt['ars_ads_message_1'] = 'This is an Ad Revenue Sharing Forum';
$txt['ars_ads_message_2'] = 'Revenue Sharing Forum';
$txt['ars_ads_message_adsense'] = 'Adsense';
$txt['ars_ads_message_ypn'] = 'YPN';
$txt['ars_ads_message_and'] = 'and';
$txt['ars_ads_participate'] = 'Participate';
$txt['ars_ads_questionmark'] = '[?]';
]]></add>
</operation>
</file>

<!-- // PROFILE.ENGLISH.PHP  //-->
<file name="$languagedir/Profile.english.php">
<!-- adds the txt strings for use on the profile template -->
<operation>
   <search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['ars_save'] = 'Save';
$txt['adrevenuesharing'] = 'Ad Revenue Sharing';
$txt['ars_profile_modlongname'] = 'Ad Revenue Sharing Mod';
$txt['ars_profile_modshortname'] = 'ARS Mod';
$txt['ars_profile_name'] = 'Ad Revenue Sharing';
$txt['ars_profile_welcome'] = 'Welcome to the Ad Revenue Sharing area';
$txt['ars_profile_register'] = 'Register';
$txt['ars_profile_copyright'] = '<br/><div align="center"><a href="http://www.youposted.com">ARS Mod - &copy; KarlBenson 2007</a></div>';
$txt['ars_profile_adsenseid'] = 'Your Adsense ID';
$txt['ars_profile_adsensechannel'] = 'Your Adsense Channel (Optional)';
$txt['ars_profile_ypnid'] = 'Your YPN Id (US Only)';
$txt['ars_profile_ypnsection'] = 'Your YPN Section (Optional)';
$txt['ars_profile_ypnusonly'] = 'YPN ads are geotargetted by your browsers language settings to be shown to US visitors/users only as per YPNs terms of use.';
$txt['ars_profile_textlinkadsid'] = 'Your TextLinkAds Id';
$txt['ars_profile_enabled'] = '[Currently Enabled]';
$txt['ars_profile_disabled'] = '[Currently Disabled]';
$txt['ars_profile_disablednotes'] = 'Ad Revenue Sharing is completely disabled at the moment.';
$txt['ars_profile_pleaseread'] = 'Please read the notes below on Ad Revenue Sharing on this forum.';
$txt['ars_profile_notes'] = '1) If you are logged into your user account you will NEVER be shown an ad with your Adsense/YPN/TextLinkAds Id.<br/> This is a security measure as the Google/Yahoo/TextLinkAds people may suspend your account for clicking your own ads.
<br/>2) You agree to follow the ad policies of Google Adsense and/or Yahoo Publisher Network and/or TextLinkAds
<br/>3) Clickfraud harms the advertising programs for everyone (publisher, advertiser and provider). Don\'t do It.
<br/>4) The same Adsense/YPN/TextlinkAds IDs CANNOT be used by multiple users.
';
$txt['ars_profile_help'] = '<center>For guides/faqs on Ad Revenue Sharing please see <a href="'.$scripturl.'?action=help;page=adrevenuesharing">[help]</a></center>';
$txt['ars_profile_stats'] = 'My Ars Stats';
$txt['ars_profile_statsnotes'] = 'Impressions might not be counted if the boards admins have decided not to log impressions.';
$txt['ars_profile_impressions'] = 'My Total Impressions';
$txt['ars_profile_share'] = 'My Topic Share';
$txt['ars_profile_random'] = 'Can Be Randomly Selected?';
$txt['ars_profile_banned'] = 'You have been banned from ad revenue sharing.  If you feel this is in error, please contact the boards admins to ask why.';
$txt['ars_profile_noteligible'] = 'You are not currently eligible to participate in ad revenue sharing.  If you look at the [Help] section, you should be able to see which membergroups are eligible.  It may simply be that you do not have enough posts.';
$txt['ars_profile_yes'] = 'Yes';
$txt['ars_profile_no'] = 'No';
$txt['ars_profile_error1'] = 'At least one of the settings failed validation and could not be saved.<br/>Those settings will revert to the saved versions or appear blank';
$txt['ars_profile_error2'] = 'Either your Adsense, YPN or TextLinkAds ID settings could not be saved as that ID is already being used by another user.';

// THESE STRING FORM PART OF THE TABLE SHOWING THE ADSHARE TABLE IN THE PROFILE AREA
$txt['ars_adshare_idgroup'] = 'Group ID';
$txt['ars_adshare_membergroup'] = 'Group Name';
$txt['ars_adshare_posts'] = 'Posts Level';
$txt['ars_adshare_share'] = 'Own Topics AdShare';
$txt['ars_adshare_random'] = 'Non-Topic Pages?';
$txt['ars_adshare_showads'] = 'Show Ads?';
$txt['ars_adshare_enabled'] = 'Unlock ARS Area?';
$txt['ars_adshare_yes'] = 'Yes';
$txt['ars_adshare_no'] = 'No';
$txt['ars_adshare'] = 'ARS Settings On Per Membergroup Basis';

]]></add>
</operation>
</file>

<!-- // MANUAL.ENGLISH.PHP  //-->
<file name="$languagedir/Manual.english.php">
<!-- adds the txt strings for use on help section help.template -->
<operation>
   <search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// STRINGS FOR THE HELP SECTION ON AD REVENUE SHARING
// WE WILL BE DOING A FOREACH LOOP TO QUICK WRITE THE HELP, WITHOUT MUCH HTML
// MAKING IT EASILY MODIFYABLE IN FUTURE WITH LITTLE HTML MODIFICATION

// STRING WHICH APPEARS AS A LINK IN THE HELP SECTION
$txt['manual_index_adrevenuesharing'] = 'Ad Revenue Sharing';
// THE TITLE STRINGS WHICH SHOW IN A LIST AND AS THE TITLE OF EACH SUBSECTION ON THE HELP
$txt['manual_adrevenuesharing_title_intro'] = 'Intro To Ad Revenue Sharing';
$txt['manual_adrevenuesharing_title_basics'] = 'Basics';
$txt['manual_adrevenuesharing_title_topics'] = 'Topics';
$txt['manual_adrevenuesharing_title_nontopics'] = 'Non-Topics';
$txt['manual_adrevenuesharing_title_participate'] = 'Participate';
$txt['manual_adrevenuesharing_title_networks'] = 'Ad Networks';
$txt['manual_adrevenuesharing_title_adsense'] = 'Google Adsense';
$txt['manual_adrevenuesharing_title_ypn'] = 'Yahoo Publisher Network (YPN)';
$txt['manual_adrevenuesharing_title_textlinkads'] = 'TextLinkAds Referrals';
$txt['manual_adrevenuesharing_title_banned'] = 'Banned';
$txt['manual_adrevenuesharing_title_faqs'] = 'Frequently Asked Questions (FAQ\'s)';
$txt['manual_adrevenuesharing_title_tips'] = 'Tips';
$txt['manual_adrevenuesharing_title_bugs'] = 'Bugs Reporting & Errors';
$txt['manual_adrevenuesharing_title_credit'] = 'Credit';

// THE IMPORTANT NOTES WHICH EXPLAIN EVERYTHING IN THE HELP AREA
$txt['manual_adrevenuesharing_notes_intro'] = 'Welcome to the Ad Revenue Sharing [help] section.  I hope I have explained it clear enough so that even the uninitiated can understand.';

$txt['manual_adrevenuesharing_notes_basics'] = 'Users are the heart and soul of a great forum.  They/you put in time and effort and so deserve to be rewarded.  This Ad Revenue Sharing mod hopefully works towards that goal.<br/>
<br/>Usually you need to own your own website to get an income from advertising, but no more.  With this mod, an extra section is added to users profile area entitled Ad Revenue Sharing where they can enter their Publisher ID for 3 ad networks.
There are two slightly different ways a users ads may be shown, either for topics or non-topics.';

$txt['manual_adrevenuesharing_notes_topics'] = 'When anyone views a topic, if the author of the topic is participating in ad revenue sharing, there is a chance the that the author advertising ID\'s used to show the ads.  When anyone clicks the said ads, they will of course reep the rewards.
<p>The \'chance\' that the authors ad ID\'s will be used can be altered by the administrators on a per membergroup basis.  Where a user is a member of multiple membergroups, the highest adshare is always the one used. For example new members may only get 10%, whilst veteran members may get 80%.  So it pays to be a regular poster.</p>
<p>For the rest of the \'chance\', boards ads are shown</p>If a logged in user views his own topic, ads will be shown as if it was a non-topic page.';

$txt['manual_adrevenuesharing_notes_nontopics'] = 'Whenever a non-topic page is viewed, either boards ads will be shown, or the ad ID\'s of a randomly selected participant will be shown.
<p>The admin can alter whether particular membergroups can benefit from being randomly selected.  If a user is a member of multiple membergroups, if any of those groups are have it set to allowed, then they can be selected.</p>';

$txt['manual_adrevenuesharing_notes_participate'] = 'If you want to participate, goto the ad revenue sharing panel of your profile area.  However the administrators can control who can participate on a per membergroup basis. If you are not allowed to participate you will be shown a message. 
<p>For example new members may not be able to join in until they reach a membergroup which allows them to participate.</p>
The Ad Revenue Sharing mod is designed in such a way to reward long term posters.  For Topic pages, the chance of the topic authors ad ID\'s being used can be altered from 0% to 100% for every membergroup.';

$txt['manual_adrevenuesharing_notes_networks'] = 'There are 3 advertising programs by default supported by this SMF modification at the moment.  Google Adsense, Yahoo Publisher Network (a.k.a YPN) and TextLinkAds referral ads.
<p>The administrators of the board may have disabled a particular network.</p><p><strong>As a security precaution a logged in user will NEVER be shown ads with their ID\'s.</strong></p>The same Adsense/YPN/TextlinkAds ID\'s CANNOT be used by multiple users.';

$txt['manual_adrevenuesharing_notes_adsense'] = 'Google Adsense (by default) is supported by this Ad Revenue Sharing Modification and their ads are on a pay-per-click basis. If Adsense revenue sharing is enabled, on the ad revenue sharing panel of your profile area, there will be an input box for your Adsense ID which starts \'pub-\' followed by 17 digits.  There is also an optional Adsense Channel which you can use to track the number of ad impressions/clicks you are receiving in your Google Adsense area.
<p>If you don\'t have an Adsense account already, you can register for free <strong><a href="http://www.google.com/adsense/">Register</a></strong></p><br/>';

$txt['manual_adrevenuesharing_notes_ypn'] = 'This is Yahoo\'s equivalent to Google Adsense which you may be more familar with and are also on a pay-per-click basis.  YPN has been stuck in BETA (work in progress) for many months and is currently only open to persons with a US Tax ID (essentially, it is USA only program).
<p>In addition they only pay for clicks by USA visitors. Furthermore, they have removed people from the beta program for having high numbers of international visitors.  This modification contains a filtering technique based on your browsers language which will filter out 99% of international visitors.</p>
<p>YPN ads will ONLY be shown to USA visitors to the forum. For international visitors or for USA visitors who haven\'t set a language in their browser, they will be shown alternative ads, either adsense or textlinkads, depending on settings.</p>
<br/>It is hoped YPN will become international in the months to come.
<p>If you don\'t have a YPN account already, you can register for free <strong><a href="http://publisher.yahoo.com/">Register</a></strong></p><br/>';

$txt['manual_adrevenuesharing_notes_textlinkads'] = 'TextLinkAds referral ads are not pay-per-click unlike Google Adsense and YPN.  They pay a flat $25.00 for any referred visitor that results in a sale or gets accepted into their publisher program. (subject to terms and conditions)
<p>TextLinkAds pay by Paypal.</p>
<p>If you don\'t have a TextLinkAds.com account already, you can register for free <strong><a href="http://tinyurl.com/35koyy">Register</a></strong></p><br/>';

$txt['manual_adrevenuesharing_notes_banned'] = 'If when you go into the ad revenue sharing panel of your profile area it gives you a message that you are banned, it means that your ID has been added by an admin to their list of users banned from being included in the program.
<p>It could be because you have been abusing the generosity of the modification.</p> If you feel this is error, please contact one of the admins.';

$txt['manual_adrevenuesharing_notes_faqs'] = '<strong>Will I Be Shown Ads With My Own ID\'s?</strong><br/>A user who is logged in, will NEVER be shown an advertisement using their own ID.  This is a security precaution as clicking your own ads would likely result in you being banned from Google Adsense/Yahoo Publisher Network and/or Textlinkads.
<p><strong>I Can\'t See Ads?</strong><br/>The administrator can alter which membergroups see ads.  Where a user is a member of multiple membergroups, if one of those groups has ads set to be off, they will not be shown ads.</p>
<p><strong>I\'m An Admin, I Shouldn\'t Be Shown Board Ads</strong><br/>Logged in administrators are never shown, board ads.  They are always shown a users ads or none at all.</p><p><strong>How Do I Find My TextLinkAds ID?</strong><br/>To find out your TextLinkAds Affiliate/Referrer ID
Either;
> Login to your textlinkads account
> click \'Affiliate Program\'
> Click \'Get banners &amp; text links\'
> Click the button \'Text Links\'
In the textarea is a link which looks like <a href="http://tinyurl.com/35koyy">Text Link Ads</a>
The 5 digit number after the ref= part is your ID which you can enter into your profile area.

or

> Login and then copy to your browser window
http://www.text-link-ads.com/my_account.php?view=affiliate_text_links
In the textarea is a link which looks like <a href="http://tinyurl.com/35koyy">Text Link Ads</a>
The 5 digit number after the ref= part is your ID which you can enter into your profile area.

</p>';

$txt['manual_adrevenuesharing_notes_tips'] = '<strong>Tip #1</strong><br/>This is a tip for admins, setting different adsharing levels for different membergroups is a good idea. For example new members to a 5% and increase it for every post level.  It will dissuad new users from trying to create lots of topics whilst rewarding the longer serving members.
<p><strong>Tip #2</strong><br/>If Adsense can\'t find an ad to show, it will show Public Service Ads (PSA\'s) for which they don\'t pay for clicks.  Therefore registering for TextLinkAds can maximise potential earnings as they are shown instead of PSA\'s.
<p><strong>Tip #3</strong><br/>Another tips for admins, this mod will work well with the paid subscriptions mod by grudge.  Why not create a 100% sharing membergroup and then sell it as part of your charter/premium/upgraded membership.</p>';

$txt['manual_adrevenuesharing_notes_bugs'] = 'Please report any bugs you find with this modification via the topic on Simple Machines Forum <a href="http://custom.simplemachines.org/mods/index.php?mod=715">ARS Mod Topic</a>';

$txt['manual_adrevenuesharing_notes_credit'] = 'SMF Ad Revenue Sharing Modification by Karl Benson &copy; 2007 <a href="http://www.youposted.com/">[website]</a><p>
Donate to the author of this modification.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0" name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHZwYJKoZIhvcNAQcEoIIHWDCCB1QCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkq
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on March 17, 2008, 08:13:53 PM
Those are all the edits you will need to make.
+ copying the other files.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: simplyg123 on March 17, 2008, 08:15:17 PM
is there a way to view this text where it isnt coded?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on March 17, 2008, 08:28:24 PM
Only through the package parser.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: simplyg123 on March 17, 2008, 08:32:21 PM
I tried that too, but had an error, i may have done something wrong. Ill try again. By the way great mod, it was working wonderful on default. ;)

just out of curiosity why write it in xml but not text?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on March 17, 2008, 08:37:44 PM
Because thats how its does the edits.

I don't write out all the edits.

See Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: simplyg123 on March 17, 2008, 08:46:10 PM
i got the parser to work , i think i understand now, thanks for the quick responses
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: germz on April 14, 2008, 11:39:12 AM
Is there any way to make this work with another theme? I mean aren't you only supossed to do a call php in one theme to make it appear there?
I am really trying to get this to work on another theme please help me out.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on April 14, 2008, 12:55:54 PM
you will need to do manual edits.

use a package parser to provide you with the theme edits that you need to make.
http://www.adrevenueshare.com/parser
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: germz on April 14, 2008, 03:37:20 PM
I did it but it made my menu go to the top of the page, it made the ads appear completely weird.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: PrizeLive.com on April 21, 2008, 04:37:25 PM
I just made the manual edits for this mod on my forum that is running version 1.1 RC2. Everything is setup correctly but when I try to make changes in Admin to it, like check the box next to Enable this mod and click Save, it doesn't save. Nothing I change takes effect. How can I get this to work?

EDIT: Do the settings get saved in a database table? If so, which one?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Aileen on April 25, 2008, 12:24:18 AM
Can we use the manual installation for this mod using 2.0 beta 3

thanks
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: PrizeLive.com on April 25, 2008, 09:37:04 AM
Quote from: MoneyTalkPro.com on April 21, 2008, 04:37:25 PM
I just made the manual edits for this mod on my forum that is running version 1.1 RC2. Everything is setup correctly but when I try to make changes in Admin to it, like check the box next to Enable this mod and click Save, it doesn't save. Nothing I change takes effect. How can I get this to work?

EDIT: Do the settings get saved in a database table? If so, which one?

This works now by the way.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: jerseyjoe on April 30, 2008, 01:07:05 PM
I have the same problem as previously described aaand if it was answered i can't find it.

I have a new installation of SMF1.1.4, default theme in which I have only edited the color of some of the graPhic elements. The only other mod is the one to display posts in chronological order.

The system reported I'd made a good installation of this ARS package (1.2) . But all I have is a blank line in the Profile menu.

Advice, please on fixing?

Thanks
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on April 30, 2008, 02:46:48 PM
Are you using english utf8?
if so you'll need to treat the mod as if you were using french etc.
And copy all the language strings to your english-utf8 version of the language files.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: jerseyjoe on April 30, 2008, 04:08:26 PM
Karl, vielen dank for the response but I am embarrassed to admit that your advice is way beyond my knowledge. I don't know where or how to start applying your suggestion.

I am the stage where I need to be told things like

go to xyz/folder/file and find these lines of code. Replace them with this. Or go here and click in the following sequence.

I respect that you are being bombarded with questions so if someone else here could please lean down to my level and help me with baby-steps advice Id sincerely appreciate it.

TIA
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on April 30, 2008, 04:12:24 PM
If afraid I don't have the time nor desire to be providing step by step how to edits.

The best way is to look at all the edits.
http://custom.simplemachines.org/mods/index.php?action=parse;mod=715;attach=46629;smf_version=1.1.4

Any which affect files in the language files
Themes/default/languages/
You'll need to replicate the changes made to eg Modifications.english.php
to your utf8 version of the file Modifications.english-utf8.php
(same if your not using english, but french).

Also note, where it says to move the file
Move the included file "ManageArs.english.php" to "./Themes/default/languages".
You'll need to copy and rename ManageArs.english.php to ManageArs.english-utf8.php or ManageArs.french.php
(or as required).
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: spiros on May 01, 2008, 11:45:23 AM
Does anyone know what modification should be done in order to have an ad position inside the actual post (i.e. either at the bottom or at the top, right aligned) and not underneath it?

Also, if a user does not have a site and wants to use google ads with this mod, is it a good idea to apply for google ads using the forum URL?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on May 01, 2008, 11:55:50 AM
Probably not.
You need to have your own site for Google. Applying under your url would probably be bad.
But I'm not certain, you would have to check that directly with Google.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: www.jbi.in on May 01, 2008, 12:07:35 PM
Karl , Mod version 2.0 ???
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on May 01, 2008, 12:08:46 PM
as per my pm.

I haven't had the chance to work on it.
I was sort of waiting for 2.x

It is unknown when it will be finished. Probably if i do I might have to scale back the sites.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: spiros on May 01, 2008, 12:31:11 PM
Thanks Karl!
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Sickthing on May 23, 2008, 01:18:07 AM
Karl,

I really need this mod but I'm not going to use the default theme.  Is there any reason someone else would be restricted from using the mod to customize it for me?

Thanks
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Elia on May 26, 2008, 10:20:43 PM
Hey , ive installed your Mod.. but all i can get is a Blank space in the Admin page and User Profile Page... why is that?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on May 27, 2008, 02:57:25 PM
Are you using English?  The mod only contains English language strings.

if your using English-utf8 or any other language you'll need to (translate as necessary and) copy the language strings into your equivalent file for the language which you are using.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Elia on May 27, 2008, 05:55:56 PM
I'm using english .. and the normal english ... and still get the problem...
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: karlbenson on May 27, 2008, 08:24:38 PM
Are you using the SMF Default Core Theme?
If your not, have you made the manual edits for your theme?
Does your custom theme also have custom language files in it its folder
eg
Themes/{customthemename}/languages/
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: Elia on May 27, 2008, 10:39:30 PM
nope i'm using a different theme called Metallica Abyss and yes it contains the Languages folder, but how can i edit my theme?
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: www.jbi.in on June 10, 2008, 05:25:43 AM
Help me pls ! My error log shows this :

Undefined index: arsadscount

File: /public_html/forums/Sources/ArsAds.php

Line: 566
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: www.jbi.in on June 10, 2008, 06:39:46 AM
Ok, Fixed it myself.........
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: spiros on June 14, 2008, 07:41:22 PM
Sorry if this had already been answered, is there a way to have the ads appear in a position within the actual post? I.e. on the top left with text from the post wrapping around it?

I have it installed on default them 1.1.5.
Title: Re: Ad Revenue Sharing Mod (Beta)
Post by: brianjw on June 14, 2008, 08:35:47 PM
I have taken over this mod!

You can find the NEW Ad Revenue Sharing Mod at http://custom.simplemachines.org/mods/index.php?mod=1222

Thank you.