Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: karlbenson on March 04, 2007, 01:53:33 PM

Title: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 04, 2007, 01:53:33 PM
Ad Revenue Sharing modification v1.0 by Karl Benson (BETA VERSION)

Warning: This is a beta

Tested & Works for 1.1.2 and Installs on the DEFAULT skin only.  I haven't written the manual edits out yet, until I get a finalised code.

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

Comments/Bug Reports/Errors/Improvements/Thoughts/Ideas/Better more efficient coding examples all welcome

Example Forum: http://www.adrevenuesharing.info

Download: LINK (40kb) (http://www.adrevenuesharing.info/Ad Revenue Sharing Mod.zip)

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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.adrevenuesharing.info%2Fads.png&hash=cfef7c1fa1fde49412f2210fc92dbae8)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.adrevenuesharing.info%2Fsettings.png&hash=6a5e14e904f23413b78788f66ca5d3f7)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.adrevenuesharing.info%2Fadsetup.png&hash=2f1c97a771d4604edadf7f16462414a9)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.adrevenuesharing.info%2Fadshare.png&hash=7530805575c0183f1ea04625d7c087be)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.adrevenuesharing.info%2Freports.png&hash=def89c547f30d5703a6653ac40f1ac79)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.adrevenuesharing.info%2Fprofile.png&hash=c0e59766d2b4ec99f46ff38835dae2cc)
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: nitins60 on March 04, 2007, 11:38:24 PM
Sounds great, it will help to increase traffic
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: nitins60 on March 04, 2007, 11:53:49 PM
It looks great! I didn't go throug all things! But i just want to share this idea!

Depending upon no of impressions, ask users to donate/pay some amount of money to forum!

Like, 1000-3000 pay 5%,3000-6000 pay 10%,6000-10000 pay 15% so on   
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: krus on March 05, 2007, 12:35:57 PM
ads shows fine as guest but it doesn't shows after login
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: jacobselby on March 05, 2007, 12:43:17 PM
I love it, great job Karl, perfect mod for my website... please notify me when you finalize it!!  
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 05, 2007, 02:22:27 PM
ads shows fine as guest but it doesn't shows after login

It WON'T show you your own ads.  (this is a security measure to prevent accidentally clicking your own ads)
If your an admin (and logged in), it will never show you the board ads.
If there are no other participants in the ad revenue sharing program, and your an admin, it can't show you the boards ads, so it won't show any.
 
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 05, 2007, 02:30:20 PM
It looks great! I didn't go throug all things! But i just want to share this idea!

Depending upon no of impressions, ask users to donate/pay some amount of money to forum!

Like, 1000-3000 pay 5%,3000-6000 pay 10%,6000-10000 pay 15% so on  

Hmmm.
a) It would be easy enough to have a field in the admin centre to enter your paypal/donate details/button. and have that appear in the users profile area to donate

b) as for selling impressions.  To be honest, transactions like this would probably be best done via the paid subscriptions mod.

Atm you could make a selling point of getting 100% adshare of own topics as part of your premium membership if you have the paid subs mod installed.

However I do have written on my features for future versions list to have a nominated membergroup.

Eg this could be your charter or premium membergroup.

Then the nominated group receives a share of all page views that would otherwise show board ads.

This way users who didnt have the paid subscriptions mod installed would still benefit.

What do you guys think?
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 05, 2007, 02:54:45 PM
I love it, great job Karl, perfect mod for my website... please notify me when you finalize it!! 

Sounds great, it will help to increase traffic

Thx guys, I hope it does too.

I was suprised that noone had done one before for smf.
This was my first MAJOR smf mod, so it was a big learning experience.
I was doing it to learn, not intending to put it on my own site, but after coding it, I changed my mind.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Exochat on March 05, 2007, 03:23:34 PM
MOD installed on my test forum perfectly on 1.1.2 and looks good but a couple of things

1) I already have a Google Adsense account with my main forum yet when I try and add the pub- ID in the box under the Admin CP it wont let me save it. I am putting it in the right box (and followed your screenshot to double check) and yet when I click SAVE it just blanks out the box so no ID appears. I have got the Adsense box enabled above it, so where am I going wrong?

2) Am I right in the way this mod works? That a member that wants to get paid signs up for their own google adsense account and if accepted they post the link into their profile. If so then how do Google work out to pay them a percentage? For example if I set the Moderators get 20% then how does google know to pay them 20% and me the 80% amount if someone clicks on their topic advert?
Could you try to explain it all in terms as how Google Adsense understands who to pay and what amount? Because to me it would seem that if their Google IDs are attached to the banner they would get the full amount, and alternatively if mine displays I would get the full amount so how is it worked out the share of it? Or is it all paid to the Admin and this mod just works out who's ads were clicked and their percentage like a big forum calculator and its then up to the Admin to pay out the correct amounts to whatever the profile says each one needs paid. 
 
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 05, 2007, 05:16:32 PM
1. if it fails the validation it wont save it.

(i need to add some error messages to tell users this)

publisher ids should start pub- then 16 digits is that correct?
(if its too short, could be failing length check)

could be a bug.

2. User needs to signup their own adsense account. (they will require a website to do this, and get accepted by google). Same goes for YPN (which is USA only at the moment).  Textlinkads you can just register as an affiliate
=> once they registered they need to go to the section to create their ads (in adsense/ypn/textlinkads, look into the html code they give you to find out their publisher/referrer id

The percentages are not in terms of pay.  They are in terms of chance/probability.
20% of the time, the moderators ad id will be used to show ads, the remainder of the time, board ads are used. (or in certain circumstances, random ids)

The moderator gets paid for the clicks when his ads are being shown.
The board admin gets paid for click when the board ads are being shown.

or put it simply in terms of a coin. if its heads, board ads are shown, if its tails, users ads are shown.  Any clicks when its heads will be paid to the admin.  Any clicks when its tails are paid to the user.

(Note the payments are between the programmes and yourself, this mod has nothing to do with payments, it just shows the ads)
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: nitins60 on March 05, 2007, 10:16:42 PM
* How about a feature to limit no of impressions? If they want more, ask admin about paying etc...
* How about limiting no of times showing ads of a user per topic! If he has 50replies for a topic, but limit member/ads/topic to 15, so it prevents spamming. Otherwise, users keep on posting short messages, just SPAM

* however, there must be a global ads of a forum!

Just ideas! I am really lookin for final release ;D
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Exochat on March 06, 2007, 06:13:00 AM
1. if it fails the validation it wont save it.

(i need to add some error messages to tell users this)

publisher ids should start pub- then 16 digits is that correct?
(if its too short, could be failing length check)

could be a bug.

2. User needs to signup their own adsense account. (they will require a website to do this, and get accepted by google). Same goes for YPN (which is USA only at the moment).  Textlinkads you can just register as an affiliate
=> once they registered they need to go to the section to create their ads (in adsense/ypn/textlinkads, look into the html code they give you to find out their publisher/referrer id

The percentages are not in terms of pay.  They are in terms of chance/probability.
20% of the time, the moderators ad id will be used to show ads, the remainder of the time, board ads are used. (or in certain circumstances, random ids)

The moderator gets paid for the clicks when his ads are being shown.
The board admin gets paid for click when the board ads are being shown.

or put it simply in terms of a coin. if its heads, board ads are shown, if its tails, users ads are shown.  Any clicks when its heads will be paid to the admin.  Any clicks when its tails are paid to the user.

(Note the payments are between the programmes and yourself, this mod has nothing to do with payments, it just shows the ads)

Thanks for the reply.

1) I have already been accepted by Google a long time ago and making significant money with them. The ID I tried to use was on my Google Account for Adsense Content and started cad-pub-############# with digits afterwards. I have tried entering it fully, without the cad- part, without the pub- part and without any of the beginning and just the digits only, and all dont want to save at all.

2) I think I got you, so it isnt a percentage of the revenue, the percentage is how LIKELY it is their advert link they get paid 100% for gets shown?
Cheers.  
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: findallinone on March 06, 2007, 06:38:22 AM
1. if it fails the validation it wont save it.

(i need to add some error messages to tell users this)

publisher ids should start pub- then 16 digits is that correct?
(if its too short, could be failing length check)

could be a bug.

2. User needs to signup their own adsense account. (they will require a website to do this, and get accepted by google). Same goes for YPN (which is USA only at the moment).  Textlinkads you can just register as an affiliate
=> once they registered they need to go to the section to create their ads (in adsense/ypn/textlinkads, look into the html code they give you to find out their publisher/referrer id

The percentages are not in terms of pay.  They are in terms of chance/probability.
20% of the time, the moderators ad id will be used to show ads, the remainder of the time, board ads are used. (or in certain circumstances, random ids)

The moderator gets paid for the clicks when his ads are being shown.
The board admin gets paid for click when the board ads are being shown.

or put it simply in terms of a coin. if its heads, board ads are shown, if its tails, users ads are shown.  Any clicks when its heads will be paid to the admin.  Any clicks when its tails are paid to the user.

(Note the payments are between the programmes and yourself, this mod has nothing to do with payments, it just shows the ads)

Thanks for the reply.

1) I have already been accepted by Google a long time ago and making significant money with them. The ID I tried to use was on my Google Account for Adsense Content and started cad-pub-############# with digits afterwards. I have tried entering it fully, without the cad- part, without the pub- part and without any of the beginning and just the digits only, and all dont want to save at all.

2) I think I got you, so it isnt a percentage of the revenue, the percentage is how LIKELY it is their advert link they get paid 100% for gets shown?
Cheers. 

Same problem came in my forum http://www.findallinone.com/forums/ .How to save google adsense code?  
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 06, 2007, 01:56:00 PM
Same problem came in my forum http://www.findallinone.com/forums/ .How to save google adsense code? 

I've managed to post my mates adsense code on your forum pub-1111111111111111 (4 chars, 16 digits)

From all the ad revenue sites I've ever seen, they always say it follows the standard bit of pub- then 16 digits.  Thats why I set the validation to reject anything but something which followed that format.

I'll need to modify the validation to accept cad-pub- adsense ids, but how many digits are there after the cad-pub-

I can't find any cad-pub- references on the internet, only ca-pub
Also do you know of other variations (worldwide?)

I'll need to loosen the validation a bit.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 06, 2007, 02:23:51 PM
* How about a feature to limit no of impressions? If they want more, ask admin about paying etc...
I did initially have a similar idea,
As with before, I want to avoid any business of having to take payments. I've tried to write this mod to compliment the Paid Subscriptions mod which does an excellent job.
percentages as opposes to impressions means that it can cope with the forum starting off small and growing big.

I definately will try to add nominated groups for extra percentages from board ads share.
Again percentages are much easier to work with and work fine if you don't have the paid subs mod installed.

* How about limiting no of times showing ads of a user per topic! If he has 50replies for a topic, but limit member/ads/topic to 15, so it prevents spamming. Otherwise, users keep on posting short messages, just SPAM
Currently only the topic author benefits.  Posters in the topic gain nothing other than increasing their post count, which may entitle them to an increased percentage from their topics.

I will seriously consider allowing posters in the topic to benefit aswell.  However I am concerned with the extra load having additional mysql queries will have on big forums, especially when a topic reaches 1000 posts and having potentially selecting a random user from 500 posters in a topic.

* however, there must be a global ads of a forum!
I'm unsure what you mean, you can set the board ads via admin > ad revenue sharing panel > settings page in your admin area.

Just ideas! I am really lookin for final release ;D

me too
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Exochat on March 06, 2007, 04:32:20 PM
Same problem came in my forum http://www.findallinone.com/forums/ .How to save google adsense code? 

I've managed to post my mates adsense code on your forum pub-1111111111111111 (4 chars, 16 digits)

From all the ad revenue sites I've ever seen, they always say it follows the standard bit of pub- then 16 digits.  Thats why I set the validation to reject anything but something which followed that format.

I'll need to modify the validation to accept cad-pub- adsense ids, but how many digits are there after the cad-pub-

I can't find any cad-pub- references on the internet, only ca-pub
Also do you know of other variations (worldwide?)

I'll need to loosen the validation a bit.

Copied and pasted the Adsense Content from my google account, but changed four numbers in the sequence to different numbers to obviously protect anyone using my adsense code... but it is the correct AMOUNT of numbers.

ca-pub-8707302040758420

i believe it is 16 digits after the ca-pub- part. hope that helps.... like I said, I have tried on the ADMIN tab on the package part where you put your adsense code, and also on the Profile section.... and i have tried without the CA, without the PUB and just the digits only and none of it works as when you click save it just vanishes and the box is blank again.

By the way, if it also hopes then it is a 1.1.1 forum with the 1.1.2 upgrade package installed and no other Mod packages at all installed.  
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 06, 2007, 05:27:38 PM
pub-8707302040758420 would work, (just tested) but with ca- it won't
It would be pointless you entering it because I doubt it would still credit your account.

I'll work on adding support for ca-pub tomorrow.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: findallinone on March 07, 2007, 04:37:35 AM
Same problem came in my forum http://www.findallinone.com/forums/ .How to save google adsense code? 

I've managed to post my mates adsense code on your forum pub-1111111111111111 (4 chars, 16 digits)

From all the ad revenue sites I've ever seen, they always say it follows the standard bit of pub- then 16 digits.  Thats why I set the validation to reject anything but something which followed that format.

I'll need to modify the validation to accept cad-pub- adsense ids, but how many digits are there after the cad-pub-

I can't find any cad-pub- references on the internet, only ca-pub
Also do you know of other variations (worldwide?)

I'll need to loosen the validation a bit.

I think your format is correct pub-16digits.why it is not working sometimes i don't unstand.1st day i placed pub-16digits => not saved,2nd day i placed same code(pub-16 digits)=>saved,3rd day(today) same code=>not saved,i don't understand this. http://forums.findallinone.com/index.php
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: findallinone on March 07, 2007, 04:57:44 AM
Some questions and suggestions,
1.How to place 2 google adsense units after 1st post?
2.After user login,no ads are displaying,it is better to display admin ads instead of keeping it emty.eventhough user clicks that ad ,no problem,because it is admin's ad.
3.How to apply adrevenue sharing to other themes(skins)? manualedits.txt file is empty. suppose how to apply to this theme http://custom.simplemachines.org/themes/index.php?lemma=80 ? i would like to use this theme.
4.you have shown one example forum above,it is empty,it is better to make one forum,show that forum,it will be popularised,you will get some money from that.
5.if user does not have adsense account,he or she need to register,if he or she clicks register option,it is going directly,admin is not benefiting from it.it is better to display admin adsense 'Register' option,admin will get some income from that.
 http://forums.findallinone.com/index.php
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 07, 2007, 02:45:27 PM
Some questions and suggestions,
1.How to place 2 google adsense units after 1st post?
Currently its only possible to select one adsense unit.
I've got it on my list to explore adding more sizes.  What sort of units are we talking about (sizes?)

2.After user login,no ads are displaying,it is better to display admin ads instead of keeping it emty.eventhough user clicks that ad ,no problem,because it is admin's ad.
I logged in as a normal user and see ads fine.
Are you logging in as the admin?  if there are no other users participating or as I see from your board, newbies are not allowed to be selected randomly for non-topic pages and if you are logged in as admin, it can't show you ads.

If you were shown your own ads and you clicked them, you would get BANNED by google.
In this case it is ESSENTIAL that you are not shown ads.

3.How to apply adrevenue sharing to other themes(skins)? manualedits.txt file is empty. suppose how to apply to this theme http://custom.simplemachines.org/themes/index.php?lemma=80 ? i would like to use this theme.
I will post the manual edits once this mod is a released version and not a beta.  This is because I'm constantly changing things (even just to make the code more efficient), so I don't want to have to keep changing it

4.you have shown one example forum above,it is empty,it is better to make one forum,show that forum,it will be popularised,you will get some money from that.
Sorry, I've got a modified version of this running on my proper forums. http://www.youposted.com

5.if user does not have adsense account,he or she need to register,if he or she clicks register option,it is going directly,admin is not benefiting from it.it is better to display admin adsense 'Register' option,admin will get some income from that.
 http://forums.findallinone.com/index.php
I didnt know they did those sorts of referrals.  I will look to add that into the next release.
(On searching I just discovered https://www.google.com/adsense/support/bin/answer.py?answer=25889&ctx=sibling )
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: nitins60 on March 07, 2007, 06:15:58 PM
Even i agree with the above referral idea! You are offering text-link-ads.com, which got affiliate program! So if you add option of inserting administ refer code will be good. But i would like to know, what about bugs in beta? Any bugs? Because i am going to install it in live environment
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: findallinone on March 08, 2007, 06:04:56 AM
Some questions and suggestions,
1.How to place 2 google adsense units after 1st post?
Currently its only possible to select one adsense unit.
I've got it on my list to explore adding more sizes.  What sort of units are we talking about (sizes?)

2.After user login,no ads are displaying,it is better to display admin ads instead of keeping it emty.eventhough user clicks that ad ,no problem,because it is admin's ad.
I logged in as a normal user and see ads fine.
Are you logging in as the admin?  if there are no other users participating or as I see from your board, newbies are not allowed to be selected randomly for non-topic pages and if you are logged in as admin, it can't show you ads.

If you were shown your own ads and you clicked them, you would get BANNED by google.
In this case it is ESSENTIAL that you are not shown ads.

3.How to apply adrevenue sharing to other themes(skins)? manualedits.txt file is empty. suppose how to apply to this theme http://custom.simplemachines.org/themes/index.php?lemma=80 ? i would like to use this theme.
I will post the manual edits once this mod is a released version and not a beta.  This is because I'm constantly changing things (even just to make the code more efficient), so I don't want to have to keep changing it

4.you have shown one example forum above,it is empty,it is better to make one forum,show that forum,it will be popularised,you will get some money from that.
Sorry, I've got a modified version of this running on my proper forums. http://www.youposted.com

5.if user does not have adsense account,he or she need to register,if he or she clicks register option,it is going directly,admin is not benefiting from it.it is better to display admin adsense 'Register' option,admin will get some income from that.
 http://forums.findallinone.com/index.php
I didnt know they did those sorts of referrals.  I will look to add that into the next release.
(On searching I just discovered https://www.google.com/adsense/support/bin/answer.py?answer=25889&ctx=sibling )
Some questions and suggestions,
1.How to place 2 google adsense units after 1st post?
Currently its only possible to select one adsense unit.
I've got it on my list to explore adding more sizes.  What sort of units are we talking about (sizes?)

2.After user login,no ads are displaying,it is better to display admin ads instead of keeping it emty.eventhough user clicks that ad ,no problem,because it is admin's ad.
I logged in as a normal user and see ads fine.
Are you logging in as the admin?  if there are no other users participating or as I see from your board, newbies are not allowed to be selected randomly for non-topic pages and if you are logged in as admin, it can't show you ads.

If you were shown your own ads and you clicked them, you would get BANNED by google.
In this case it is ESSENTIAL that you are not shown ads.

3.How to apply adrevenue sharing to other themes(skins)? manualedits.txt file is empty. suppose how to apply to this theme http://custom.simplemachines.org/themes/index.php?lemma=80 ? i would like to use this theme.
I will post the manual edits once this mod is a released version and not a beta.  This is because I'm constantly changing things (even just to make the code more efficient), so I don't want to have to keep changing it

4.you have shown one example forum above,it is empty,it is better to make one forum,show that forum,it will be popularised,you will get some money from that.
Sorry, I've got a modified version of this running on my proper forums. http://www.youposted.com

5.if user does not have adsense account,he or she need to register,if he or she clicks register option,it is going directly,admin is not benefiting from it.it is better to display admin adsense 'Register' option,admin will get some income from that.
 http://forums.findallinone.com/index.php
I didnt know they did those sorts of referrals.  I will look to add that into the next release.
(On searching I just discovered https://www.google.com/adsense/support/bin/answer.py?answer=25889&ctx=sibling )

1.I am talking about number of ad units not sizes.adding more different sizes is also good.
2.I am talking about user other than admin.after other users(not admin) login,if they save google adsense code,their ads will not be displayed,forum is empty without ads,it is beeter to display admin's ad instead of keeping it empty.even though other users(not admin) click that ad,no problem,because it is admin's ad.
 http://forums.findallinone.com/index.php
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 08, 2007, 02:24:36 PM
1.I am talking about number of ad units not sizes.adding more different sizes is also good.
I appreciate your talking about number of ad units.
Atm I'm trying to keep control of the system to prevent people screwing up their forums.  They could do this by putting 2x 468x90 banners on the same line (which would screw up on 800x600 resolutions)

By gaging what sort of ad units you would double up on and whereabouts, I can decide
a) if people would use it (or whether i should leave it upto the individual to customise the mod if they so wish)
b) if i can do it in the current setup of the mod

2.I am talking about user other than admin.after other users(not admin) login,if they save google adsense code,their ads will not be displayed,forum is empty without ads,it is beeter to display admin's ad instead of keeping it empty.even though other users(not admin) click that ad,no problem,because it is admin's ad. http://forums.findallinone.com/index.php
This is currently the case.
If a user is logged in, they will NEVER be shown their own ads
They will shown other users ads or board ads.
if no other users ads are availablel they will ALWAYS be shown board ads providing you have set them up.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Chris369 on March 10, 2007, 03:43:45 PM
Sorry if this is a stupid question but how do I install it? I've downloaded it and extracted it to my desktop so far, not sure where to go from there.

I only installed SMF today :)
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: nitins60 on March 10, 2007, 08:05:13 PM
Go to admin->package manager->download

now upload this package, click on install. That's all
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Daniel15 on March 11, 2007, 06:29:58 AM
Sorry if this is a stupid question but how do I install it? I've downloaded it and extracted it to my desktop so far, not sure where to go from there.

I only installed SMF today :)
You basically do what nitins60 said :)
There's some help available at http://docs.simplemachines.org/index.php?board=49.0;sort=subject, or if you "learn by seeing", I've got a tutorial at http://www.daniel15.com/smfshop_wiki/Installation (the tutorial was made for SMFShop, but can be generalised) :)
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Chris369 on March 11, 2007, 06:56:52 AM
Hi Daniel, I posted a thread on your forum about SMF Shop because I install that two but seems it's not compatible.

Anyway, I uploaded this ad revenue sharing mod and clicked "Apply Mod" and it was successful but I can't see any options to configure it?
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: nitins60 on March 11, 2007, 10:26:00 PM
Small Error!
When i send an announcement to members, my forum error log s filled up with this error
Code: [Select]
http://blabla.com/forum/index.php?action=announce;sa=send
Undefined index: ars_showads
File: /home/xxx/Sources/ArsAds.php
Line: 38
;D
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: nitins60 on March 12, 2007, 04:41:55 AM
One more error, when user downloads any file
Code: [Select]
http://blabla.com/forum/index.php?action=dlattach;topic=1186;attach=2289

Unfined index: ars_showads
File: /home/xxx/Sources/ArsAds.php

it's repeating for every downloa
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 12, 2007, 05:24:35 AM
hey guys, I've just managed to snag a few seconds on the internet at work.

not managed to worked on this at all this weekend. My home internet has been offline since thursday, getting the engineers out asap.

nitins60 - I realise where the bug is occuring, will add to my bug list.

Thx everyone for all the bugs/suggestions.  I've a long list to work on, when my internet finally is back online.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: nitins60 on March 12, 2007, 05:31:27 AM
hey guys, I've just managed to snag a few seconds on the internet at work.

not managed to worked on this at all this weekend. My home internet has been offline since thursday, getting the engineers out asap.

nitins60 - I realise where the bug is occuring, will add to my bug list.

Thx everyone for all the bugs/suggestions.  I've a long list to work on, when my internet finally is back online.
:)
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: findallinone on March 17, 2007, 07:45:10 AM
Add information in manualedits.txt file to use SMF Ad Revenue Sharing Mod in other skins(templates) as early as possible.Because,the most of the guests don't like to join in SMF overall forum deafult. OR Say here how to use it in other skins(templates). http://forums.findallinone.com/index.php
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Daniel15 on March 17, 2007, 08:09:26 AM
Quote
Add information in manualedits.txt file to use SMF Ad Revenue Sharing Mod in other skins(templates)
You can use my package parser (see my signature) to see how to do this :)
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: findallinone on March 17, 2007, 09:17:27 AM
Quote
Add information in manualedits.txt file to use SMF Ad Revenue Sharing Mod in other skins(templates)
You can use my package parser (see my signature) to see how to do this :)
I have seen your package parser,i don't understand it well,i would like to use ad revenue sharing mod in this theme http://custom.simplemachines.org/themes/index.php?lemma=80 .How?
 http://www.findallinone.com/forums/
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: findallinone on March 18, 2007, 09:05:59 AM
Quote
Add information in manualedits.txt file to use SMF Ad Revenue Sharing Mod in other skins(templates)
You can use my package parser (see my signature) to see how to do this :)

It is good,but takes more time.is it possible to install a mode automatically? is it possible to search and add code in any file easily?

When i make this theme http://custom.simplemachines.org/themes/index.php?lemma=80 my forum default theme,automatically SMForum places the code wherever you(package parser) suggested,after placing the code also ads are not displaying in all places(only displaying after 1st post correctly).What are the reasons? How to display ads in all places? http://findallinone.com/forums/   
 
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 18, 2007, 01:35:47 PM
Sorry for the lack of updates.

My internet has been down now for 10 days. The engineer is coming monday.  I'm not holding up much hope.

Anyway.  I can't do much PHP offline since I can test it.  However I have produced a long to do list. And making some changes to it.

Re Manual Edits, I intend to do them, its just the code is changing.  At the next version I should have them done.
I'll also try to make it install on the Classic and Babylon themes by default.

For other skins I'm thinking of doing some add-on mods to install on loads of different skins.  Again theres no point doing them just yet as my code is changing, and the theme authors are no doubt tweaking there themes aswell.

Re adverts in posts.  In this beta, I had a set list of the features I wanted to include and so I decided just to add the advert below the first post.  However I've got on my list to enable you to show ads in multiple posts and on specific boards.  Following your request for multiple ad units, I'm going to have to rework alot of the code.

Anyways, fingers crossed I can finally work on this mod later next week once my internet is back online.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: nitins60 on March 18, 2007, 06:13:22 PM
Probably, give text area to add HTML/PHP code to use for other adnetworks (like admanagement). This will be very handy for administrator/users (who don't wish to apply for Google Adsense! Yahoo s not available, Text links only supports Referrals!). So i strongly request to add HTML/PHP code area for users/board ads! Option to enable/disable!
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 19, 2007, 04:50:32 AM
^ I was thinking along the same lines

however what concerns me is showing google ads or ypn ads and non-google/ypn ads on the same page (at the same time).  Or showing two adsense ads with different ids on the same page at the same time.

what other ad networks are you talking about?  I'd like to add some others as standard.

Anyways I'll see what I can do, though seeing as it looks like I'll also have to modify the admin area of this mod to fit the other stuff on, it will be easier to plan ahead and work it into my plans now.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: nitins60 on March 19, 2007, 06:54:27 AM
You have added text-link-ads, where affiliate program s only possible! You can't use thier publishers code! The same way, there must be code place to use text-link-ads, advolcano, adbrite etc.... Instead of adding all things, leave a text box for users to enter thier desired ads!
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 19, 2007, 03:04:16 PM
yes, however what I'm concerned about is that

a) ads are set to show at the top of the forum - contains adverts for Company A

b) ads are set to show at the bottom of the forum - contains adverts for Company B

How can my mod know if its ok to show company A's ads on the same page as company B's.  Especially since I don't know what in it.

Whilst with Jerms ad management mod it doesnt matter because only the admins ads are ever shown.  With this mod hundreds of different people could become involved and all of them could get banned for having mixed ads.

My starting point has always been to make sure that two different ID/programs can never be shown at the same time.  (and preventing the admin from ever doing it accidentally aswell)

Unless someone can suggest a solution to this conundrum?
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: .Darkman on March 20, 2007, 01:19:17 AM
I get this error while installing :-

Quote
   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    
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 20, 2007, 02:31:40 PM
what version of smf are you running?
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: .Darkman on March 20, 2007, 09:20:35 PM
Version 1.1.1
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Daniel15 on March 21, 2007, 01:02:25 AM
.Darkman, are you using PHP 5.2.0 or higher (you may check this on a phpinfo page)? This is a known problem with PHP 5.2.0 and 5.2.1, and a fix is currently being developed.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: .Darkman on March 21, 2007, 01:14:15 AM
I am running PHP 5.2.0
How long would it take for the fix ? This is really a good mod. I love it.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: findallinone on March 21, 2007, 12:58:12 PM
After entering text-link-ads ref id (5 digit number),whenever google ads are not available,this message (Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.) is coming instead of displaying ads.Why? http://forums.findallinone.com/index.php
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 21, 2007, 03:22:54 PM
i think thats a problem at google and not with the mod.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: nitins60 on March 21, 2007, 11:19:32 PM
yes, however what I'm concerned about is that

a) ads are set to show at the top of the forum - contains adverts for Company A

b) ads are set to show at the bottom of the forum - contains adverts for Company B

Quote
How can my mod know if its ok to show company A's ads on the same page as company B's.  Especially since I don't know what in it.

Quote
i didn't get you! Suppose, if id 1 user placed custom ads as per his html/php code! Now another user id 2 user did the same thing with different html/php adcode of same company (assume). Still id 1 can't see his own ads, id 2 can't see his own ads. What's the point of knowing from same company or different company! If you are supposed to show different users ads in same page, still thier internal codes are different, doesn't matter from same company or different company! Right!
Quote

My starting point has always been to make sure that two different ID/programs can never be shown at the same time.  (and preventing the admin from ever doing it accidentally aswell)

so call ad code from the only 1user per page. Then how can ads of two users will be displayed! If he is not available, call board ads!
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 22, 2007, 02:48:38 PM
I've drawn up plans (on paper) to allow the admin to add custom ads in a new section for editing/adding board ads.

sorry I probably wasnt clear.

I didnt mean two users.  I mean't in relation to board ads.
What I'm seeking to prevent is if the admin places ads

Google Ads in the the box for custom ads in the header

Yahoo Ads in the box for custom ads in the footer.

With both set on.  It would contravene Both ad programmes policy.

My task is to prevent the admin (even accidentally) doing that.

Basically my point is, I wouldn't know what code (from whatever companies) is being used.
So i could only allow the admin to have either the header ads or the footer ads on at any one time to ensure that they are not breaching any ad programme tos's

Hope that clears it up.
 
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: GPGrieco on March 22, 2007, 04:19:41 PM
Am definitly getting this when the final version is relesed. Is there any way of making some of the user's profits go to the owner of the site? So say a user makes $100.00, the admin would get $5.00.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: .Darkman on March 22, 2007, 09:56:58 PM
Am definitly getting this when the final version is relesed. Is there any way of making some of the user's profits go to the owner of the site? So say a user makes $100.00, the admin would get $5.00.
If a user makes $100, you'd make definitely more than that.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: nitins60 on March 22, 2007, 11:15:37 PM
I've drawn up plans (on paper) to allow the admin to add custom ads in a new section for editing/adding board ads.

sorry I probably wasnt clear.

I didnt mean two users.  I mean't in relation to board ads.
What I'm seeking to prevent is if the admin places ads

Google Ads in the the box for custom ads in the header

Yahoo Ads in the box for custom ads in the footer.

With both set on.  It would contravene Both ad programmes policy.

My task is to prevent the admin (even accidentally) doing that.

Basically my point is, I wouldn't know what code (from whatever companies) is being used.
So i could only allow the admin to have either the header ads or the footer ads on at any one time to ensure that they are not breaching any ad programme tos's

Hope that clears it up.
 
atleast custom code place for Admin will be the most desirable option! When board ads are called, don't call other users ads! We already have percentage of showing! So don't have to bother about any other things! :)
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 23, 2007, 02:32:53 PM
Am definitly getting this when the final version is relesed. Is there any way of making some of the user's profits go to the owner of the site? So say a user makes $100.00, the admin would get $5.00.
All the profits/earnings aspect is dealt with my Google/Yahoo etc.
If you want a slice, in the new version i'm working on you can ask them to donate.

You can earn directly simply from your share. If you show users ads 50% of the time, you potentially will warn from the other 50% if you have registered with Google.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 23, 2007, 02:34:08 PM
atleast custom code place for Admin will be the most desirable option! When board ads are called, don't call other users ads! We already have percentage of showing! So don't have to bother about any other things! :)
Again, I wasnt referring to the users ads.  Users ads are never called if board ads are shown, and vice versa.

What I was saying, is the ADMIN may be registered with both Google and Yahoo.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: nitins60 on March 23, 2007, 11:10:50 PM
atleast custom code place for Admin will be the most desirable option! When board ads are called, don't call other users ads! We already have percentage of showing! So don't have to bother about any other things! :)
Again, I wasnt referring to the users ads.  Users ads are never called if board ads are shown, and vice versa.

What I was saying, is the ADMIN may be registered with both Google and Yahoo.
it's quite easy for admin! He must know the terms before signing up @adcompanies! So endup admin(boardads) by calling any one code(yahoo/Google/Custom Code). But he is also a normal member, where he can use his profile to use yahoo/google codes, instead of using boards for them
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: edwardsiow on March 26, 2007, 01:46:33 AM
anyone has test in real-life?

i am interested in this mod also....

good idea.....
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 26, 2007, 02:15:47 PM
I use this on my forum. (a large forum)

http://www.youposted.com
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: edwardsiow on March 27, 2007, 04:50:01 AM
karlbenson, do we have options to turn on or turn off the placement of ads on top and bottom of the page?



 
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 27, 2007, 02:06:17 PM
yes you can turn on/off about 6 placements at the moment.

I plan to add another 6 at least.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: findallinone on March 28, 2007, 12:45:13 PM
Sorry for the lack of updates.

My internet has been down now for 10 days. The engineer is coming monday.  I'm not holding up much hope.

Anyway.  I can't do much PHP offline since I can test it.  However I have produced a long to do list. And making some changes to it.

Re Manual Edits, I intend to do them, its just the code is changing.  At the next version I should have them done.
I'll also try to make it install on the Classic and Babylon themes by default.

For other skins I'm thinking of doing some add-on mods to install on loads of different skins.  Again theres no point doing them just yet as my code is changing, and the theme authors are no doubt tweaking there themes aswell.

Re adverts in posts.  In this beta, I had a set list of the features I wanted to include and so I decided just to add the advert below the first post.  However I've got on my list to enable you to show ads in multiple posts and on specific boards.  Following your request for multiple ad units, I'm going to have to rework alot of the code.

Anyways, fingers crossed I can finally work on this mod later next week once my internet is back online.

If different codes work in different themes,write different codes,give choice to forum's admin to select correct code(suitable to theme) for displaying ads in all places. http://www.findallinone.com/forums/
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 28, 2007, 01:42:21 PM
I think I've settled on having the main installer which installs on the three default skins

Then having an additional add-on to install on any smf skin. (eg ones from tiny portal or from the mod section)
And then having the manual edits written out for manual adding to any custom theme (eg ones you make)

I just wanted to make clear here, the status of this mod is that I'm working on making fundamental mental changes.  My todo list currently stands at 50+ things, some which may take quite a while, alot of re-writing and re-working.

Once I've finished ALL of them, I will post a new beta.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: edwardsiow on March 29, 2007, 11:00:54 AM
hi,

i love this mod very much... can i know is this method against the rules of google ads?

because a lot of ID accounts displaying in the same site....
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: .Darkman on March 29, 2007, 11:03:46 AM
can i know is this method against the rules of google ads?
Definitely not.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 29, 2007, 03:30:33 PM
hi,

i love this mod very much... can i know is this method against the rules of google ads?

because a lot of ID accounts displaying in the same site....

Google ALLOW ad revenue sharing.

They do not allow however clickfraud/encouraging users to click ads etc.

Also note that although many different Google Adsense ID's are shown on one site.  They NEVER EVER appear on the SAME PAGE at the SAME TIME.

I would suggest however that if you are still in doubt, feel free to drop Google an email.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: edwardsiow on March 29, 2007, 10:18:26 PM
thanks for your explanation....
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: gjhough on March 30, 2007, 03:07:12 AM
Hi Karl

I have been reading this quite interesting thread and would like to give you a boost for the day.

You have been working on something many people can use to get their sites profitable and I just wanted to tell you to keep going.

You are doing a great "job".    :)

While you are on your coffee break I have a suggestion to run by you.

I recently purchased a script that I can set to show (adsense) ads a limited number of times to a viewer.  It is not very clearly defined for the user and I thought of making a video of it sometime when I've figured out how to use it properly.

Anyhow, what I meant to say was that I figured it would be a first (I think) if you could enable your mod (or another new mod) to check for clicks so that any viewer (per IP) have say 1 or 2 clicks a day or so to keep one's site free from click-bombing.

Now take something for the headache you suddenly have, make a note of this idea and get back to work - we all are watching your every move like a bunch of autocratic managers.

So coffee break is over...

 :)
 
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on March 30, 2007, 11:46:27 AM
I've seen the click monitors around.
AFAIK, they are not perfect and alot of time miss tonnes of clicks.
And since its javascript.  Its very difficult to make it work cross browser.

However I'll add it to my list of features to investigate.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: 911 on March 31, 2007, 12:51:24 PM
Hey, great work on the Mod. Cant wait for your final release!

Good Idea. I thought of an Adsense Clicktracker implementation too. Basicaly to prevent clickfraud.
Take a look at Adlogger (http://"http://www.adlogger.org/"). Simmilar like this or just an option to Use the Adlogger script togeter with your mod :)

I would suggest to integrate the Amazon Affiliate Programm in the Mod too. It is useble for a large range of forums (Sports, electronics, books,..). There are the Amazon Self optimising Links which would do a great job. Its not PPC but the conversation is good :)

Hope to see Amazon in the final Mod

Cheers

 
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: 911 on March 31, 2007, 07:03:28 PM
Just naother thought:

What do you think about a referral system. A user referal system. Member <A> can use a little form with their custom text to recommend this forum to a friend <B> by email. This email includes a (refferal) link with the User ID from Member <A>. If friend <B> now signs up to the forum, the Ads from referrer Member <A> will be displayed 5% in friend  <b>s Posts.
So if <B> has an Adsense ID set up too and his ads are shown for example 50% in his threads, <A> gets 5% from the other 50% and the rest 45% get admin. ;)

What do you guys think?!

Best Regards
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on April 01, 2007, 06:30:25 AM
to be honest a referral system is probably best done as a separate mod due to the amount of work involved.  Once there is a separate mod I can add stuff to it like this.

In the new version I'm working on.  the people who have replied in the topic also get a slice (much less), but still an incentive to post. (with 3 settings, every post counts, or 1 post per topic or x amount per topic count.)

Its going to take a while to reach final release.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: kenlapz on April 01, 2007, 08:28:13 AM
Good Job Karl

:)

I still waiting your final Ads Rev. Sharing Modul

Thanks A lots
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: findallinone on April 01, 2007, 01:15:04 PM
Just naother thought:

What do you think about a referral system. A user referal system. Member <A> can use a little form with their custom text to recommend this forum to a friend <B> by email. This email includes a (refferal) link with the User ID from Member <A>. If friend <B> now signs up to the forum, the Ads from referrer Member <A> will be displayed 5% in friend  <b>s Posts.
So if <B> has an Adsense ID set up too and his ads are shown for example 50% in his threads, <A> gets 5% from the other 50% and the rest 45% get admin. ;)

What do you guys think?!

Best Regards

Your idea is good,but it is better to display 5% ads for 6months or 1 year like that.After that time period admin's ads[no 5%] will be displayed.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: findallinone on April 02, 2007, 12:41:59 PM
it is better to give some empty place in this mode to show other ads[permission is given to the forum's admin only to show other ads in the forum] like ad managemant mode.other ads means not google adsense ads,yahoo API ads,textlinkads.if you give permission to the admin to show other ads with clear instructions,no problem to ad revenue sharing mode.i would like to display other ads in my forum http://www.findallinone.com/forums/ .How?   
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: nibb on April 04, 2007, 11:34:02 AM
Hi Karl, i think this mod is the best made. I really was looking for a pay per post or answer or some kind of pay mod for users, this is it !!! This is the one, i feel it. I tried to donate a something but the paypal link doesnt work. This mod is great. I just installed. I have installed it on a non english SMF.

I dont have the default themes but i change from the admin and ads show ok, i will see how to integrate it into my current theme. Like i said i installed it on a non lenguage temaplate, i modified the mod myself for this and it was very easy, i only get 1 error. What i did was on Dreamweaver look for the references to English files and change it to the lenguage i use. I als renamed the english file to my lenguage. The admin works perfect as far as i tested, even ads shows, the only proble i have is that at the end user profile when he clicks on the Ad Revenue Sharing link i get a error that i it could not load adrevenuesharing, i will see what it conflicts.

My suggestions go here, let user to show his banner to his reply, if someone posted a topic the first person to reply or the one that most replies has preferences to show there his ads, this would be faiur to user that posted more on a topic, like a pay per answer. If someone can guide me how to fix the little error and how to integrate into a non default theme it would be great. It just has to be codes that i have to put right? I only need 1 banner to show its more then enought for me.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: GPGrieco on April 07, 2007, 07:43:44 PM
First I want to say that you have been doing a great job on this mod. I was wondering, when you come out with a new version (or the final), would I be able to upgrade without losing any of the members info (IDs)? Just wondering. I want to enable it, but I don't want any of my members to have to constintly re-submit their data. (Not that its a big deal, but you know how lazy people can be, and how they can be if you take the lazyness away from them!)
Thanks

Can't wait for the final relese


Edit: Where do you put the text strings for help file. Not the ones in the admin pannel, the ones on the help page.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: GPGrieco on April 12, 2007, 01:03:47 PM
hello?
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on April 13, 2007, 09:51:59 AM
sorry, my internet is down at the moment again.
Grabbing a few moments online at work where I can.

No user information will be lost.

Settings should also be saved.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: GPGrieco on April 13, 2007, 12:07:34 PM
Where do you put the text strings for help file? Not the ones in the admin pannel, the ones on the help page.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on April 14, 2007, 11:33:42 AM
<file name="$languagedir/Manual.english.php">
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: QueenTiye on April 18, 2007, 01:37:01 AM
I'm trying to follow along with the thread, but I'm not clear on if this mod does what I want, so I figure I'll just describe and see what you guys say!

What I want to do is recruit contributors to the site who contribute specific content and therefore get a share of the revenue generated by the ads.  It would be ideal if they got more if their own content generated more traffic but at minumum I want those who are designated content contributors to get a big share of the revenue. 

Separately, I want a SECOND mod to share revenues with members outside of the adsense system - that is - I don't want them to have to be adsense members to share.  Maybe like a cash credit system that allows them to buy stuff in the long term, or download to paypal in the short term. 

QT

QT
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on April 18, 2007, 07:56:40 AM
QueenTire,

With this mod you can set different membergroups to get a larger or smaller share of the ads from 0% to 100% for their own topics. (and in the newer version, from replying to topics.  However they must be a member of adsense to do this.  All money/revenue is dealt with at Adsenses end.  This mod plays no part in payment/revenue/money, and it is impossible for it to.

Your second request is a request for a separate mod altogether.  Which may be more closely related to Grudges Paid Subscriptions mod.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: QueenTiye on April 18, 2007, 09:07:49 AM
Thank you.  How does this work/integrate with TinyPortal?

QT
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: QueenTiye on April 20, 2007, 02:56:59 PM
Sorry to bump again - but does this mod work with Tiny Portal?
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on April 21, 2007, 09:21:17 AM
sorry my internet has been down. Its back at the moment. I just hope it stays.

I'm told the current version may not work with tiny portal.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: GPGrieco on April 21, 2007, 01:41:39 PM
I keep getting this error in the error log

 Guest   Today at 01:38:41 AM 
 66.249.66.16     71780a7e93af2f4f028f8d7d3131468f 
 http://www.awsomeforum.com/forum/smf/index.php?topic=85.msg380;topicseen 
8: Undefined index: ars_showads
File: /home/content/G/P/G/GPGrieco/html/forum/smf/Sources/ArsAds.php
Line: 38

how do I fix it
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on April 21, 2007, 02:54:16 PM
looks like you've spotted a bug when trying to access a topic which you have no access to.

All it means is that a variable isnt set.  It nothing major, except the user wont see ads.

I'll make sure this problem is resolved in the next version.

Thankyou for reporting it.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: GPGrieco on April 21, 2007, 02:56:09 PM
no problem. So your saying that no one is seeing the ads?
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on April 21, 2007, 03:59:09 PM
just when they click a link to a topic which they have no rights to access.  very uncommon, otherwise you'd be getting hundreds of them.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Niteblade on April 22, 2007, 07:00:32 PM
Karl,
Just wanted to let you know that I joined your forum, and have contributed $10 toward your forum. Actually, I just wanted to donate as a way of showing appreciation that you're developing the ad-revenue sharing mod for SMF.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: nitins60 on April 22, 2007, 10:39:52 PM
How about a feature showing adrevenue percentage of impressions (10% 20% etc...) and total no of impressions below users post count in topics page, i mean below user avatar. It reminder users to increase thier posts to increase thier percentage of displaying ads :)
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: preddy25 on April 23, 2007, 11:49:31 PM
love this mod and its potential! pls keeep up the good work! waitin impatiently for the next release!

btw , can we manual edit the size of the ad banners to fit our site themes ?which file do i have to edit?

thanks!
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: QueenTiye on April 24, 2007, 06:18:30 PM
OK - I'm doing as much research as my limited understanding will allow.  It looks like this mod works with AdSense API, yes?  When inquiring about API, I got the following response:

Quote
The answer to (1) I'm afraid is that you'll need some level of programming
knowledge. I am not familiar with Simple Machine Forum or TinyPortal, but my
guess is that you would need to write a plug-in in PHP to handle AdSense API
sign-up and implementation of ad display.

The answer to (2) is that normally the AdSense API is used on pages that
contain a single contributor's content, say a blog on a blogging site or
profile page on a social networking site. The AdSense code that appears on
these pages is specific to a given user and this is how he sharing works. We
do not have a method whereby basically you can portion out revenue from a
single AdSense account equally to a group of people.

From a quick look at your site, it appears that it is basically a forum, is
this correct? If so, monetization is a bit tricky because no single user
"owns" a given forum thread. Right now we don't have a good recommendation
on how to safely and easily monetize forums, but its something we are
working on as we realize many people want to use the AdSense API with
forum-based sites.

SO, my questions are as follows:

1. How does Ad Revenue Sharing Mod portion out the revenue?  What does it base it on, and why does everyone need their own AdSense account (or do they? Am I mixing up my sources of information?)

2. What are the reported problems working with TinyPortal?

3. Does sharing work based on thread starter or something else?

Thanks!

QT
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: preddy25 on April 27, 2007, 02:37:29 AM
if u actually did some research and read up some of the previous posts , you already got your answers
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on April 27, 2007, 03:02:26 PM
SO, my questions are as follows:

1. How does Ad Revenue Sharing Mod portion out the revenue?  What does it base it on, and why does everyone need their own AdSense account (or do they? Am I mixing up my sources of information?)

Every user must have their own adsense account. Unfortunately that means they also need their own adsense website (or have had one when they register with adsense).  The new version fo this mod will also support a couple of networks which dont require a website.

This mod does not deal with revenue.  That is ALL handled by Adsense. All this mod does is decide on who's ads to show.

2. What are the reported problems working with TinyPortal?
It might not install.  I never tested my install whether it would work with tinyportal. Those who have tried have said it wont.
I'll try to make the version I'll working on compatible with tiny portal.

3. Does sharing work based on thread starter or something else?

Thanks!

QT
In the current version, the topic creator only.  For non-topic pages, random users can be selected.

In the newer version I'm adding the sharing to anyone who replies in a topic.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: QueenTiye on April 27, 2007, 11:15:26 PM
OK - priorities for me are: Works with TinyPortal (I think lots of people will appreciate that), and networks that don't require one to have their own site, since some may not want ads on their site.  The "Topic Starter" idea is ideal, in my opinion, but I think that for portal use the random user option is good, unless there's some way to tell who's content is shown on the front page.   

In the case of sharing with everyone who posts, I hope that's optional. 

QT
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on April 28, 2007, 07:20:31 AM
- Working with TP.
I'll try my best. I haven't looked at the architecture of tp and the changes it makes to smf.
It may be a couple of changes only which could either be a separate mod for tp installed being clever with the edits.

- Other Ad Networks
I'm planning on supporting several others which don't require a website, but they are less profitable.  A few will only be supported for their referral banners. The reason I include those is they can be additional source of revenue for you and your users.

- Sharing - deciding who?
There are tonnes of settings in the current version to control on a per membergroup basis who benefits.
There are new settings in the new version that I'm working on to control whether posters benefit, how they benefit and some bonus settings.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: QueenTiye on April 28, 2007, 04:20:36 PM
Thanks so much! :)

QT
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Niteblade on April 29, 2007, 11:00:29 AM
Personally, I like the idea that all of those who participate on a thread will have a chance to receive credit. That's an excellent idea.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: QueenTiye on April 29, 2007, 02:25:16 PM
I like the idea too, but it doesn't fit the framework of what I'm trying to do.  That's why I'd like it to be optional.

QT
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on April 29, 2007, 05:32:30 PM
Karl,
Just wanted to let you know that I joined your forum, and have contributed $10 toward your forum. Actually, I just wanted to donate as a way of showing appreciation that you're developing the ad-revenue sharing mod for SMF.
Thx, I saw. Thx Again, sorry hadnt said thankyou sooner. Been busy with this mod and other things

How about a feature showing adrevenue percentage of impressions (10% 20% etc...) and total no of impressions below users post count in topics page, i mean below user avatar. It reminder users to increase thier posts to increase thier percentage of displaying ads :)
Nice idea, I've already got plans to show an icon (which I've yet to design) to show participants
I'm keen to avoid users spamming to get higher ratios. So I'm working on the carrot and the stick method.

I'll certainly look into it (whether it would create to much additional overhead with queries) vs the benefit.

I like the idea too, but it doesn't fit the framework of what I'm trying to do.  That's why I'd like it to be optional.

QT
I confirm that Posters who participate in a topic benefit by default for every post, but it can be changed to one post per topic or no benefit via a dropdown setting.

Seriously in this thing, theres so many new settings.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Niteblade on April 29, 2007, 09:18:26 PM
I'm frothing.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Niteblade on May 02, 2007, 08:48:06 PM
How goes the progress?
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: asdrhyme on May 03, 2007, 05:48:57 AM
Hi,

I love this mod but when i install it gives me this error

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

I am using smf 1.1.2.

It will be great if some one can help me.

Best Regards
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: blueeye on May 13, 2007, 10:30:21 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: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Niteblade on May 17, 2007, 01:02:18 PM
Is this going to be another modification that stopped of reaching greatness?
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on May 18, 2007, 10:52:48 AM
Seems like someone is conspiring to stop me doing this mod.

First my internet goes down for a month
Second my laptop broke

I've just got my laptop back today. (faulty ac adaptor) luckily i was within 15 days of my 3 year warranty.

Anyways while I've been away I've designed most of the areas on paper, trying to make them as intuitive and simple as possible. (theres so many settings i can't fit most of them on the tablular design).

I'm going to work on this right away, but it will take alot of time. please bear with me.

p.S if you have any more ideas, please dont hesitate to mention them.

Re: Blueeye, I answered your question by pm.
No recognition is made of which forums Forum moderators are moderators of.  Just that they are a forum moderator entitles them to the higher adshare.  Thats in the current mod.  In the one i'm working on, i promise to include an extra setting for it.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: blueeye on May 18, 2007, 12:54:33 PM
Thanx dude! Looking forward to the next version...

the current version is really cool...
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Niteblade on May 21, 2007, 02:26:15 PM
Suggestion::

After XX (30, 45, 60, 90?) days of inactivity, the user's adsense account enters a lottery mode whereby others have a greater chance to earn from their post. Active members are rewarded -- (#1.) Their accounts do not enter lottery mode. (#2.) while inactivity is discouraged from former contributing members.

In this manner, someone WON'T profit for very long from posting a popular article while NOT continuing their regular forum contributions, yet those who remain posting will eventually benefit from an inactive member's former popular contributions.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: SticKer on May 23, 2007, 12:03:35 AM
would you be making a patch or an upgrade feature when you release the next version so that people using it currently can simple upgrade instead of installing the complete new setup.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: findallinone on May 24, 2007, 11:02:56 AM
it is better to give some empty place in this mode to show other ads[permission is given to the forum's admin only to show other ads in the forum] like ad managemant mode.other ads means not google adsense ads,yahoo API ads,textlinkads.if you give permission to the admin to show other ads with clear instructions,no problem to ad revenue sharing mode.i would like to display other ads in my forum http://www.findallinone.com/forums/ .How?  

No reply to the above suggestion? if both modes adrevenue sharing and ad management worked separately is also good,but it is not working.why?
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on May 24, 2007, 11:22:56 AM
Re: Findallinone:
I have made it so that it will NOT work with the ad management mod. Because if it did, there could be adrevenuesharing and non-adrevenuesharing ads on the same page at the same time.  This could lead to getting banned from Adsense/YPN.
There is a section for NON-Adrevenuesharing ads in my designs for the new version.

Sticker: Unfortunately because this was a beta, it will require complete uninstall and re-install for the first proper version v1.0. This is because theres so many new settings, I'm having to move the settings to new tables and change the column details.

nite0859:  There is a setting in the new version to remove persons after X months from the programme aswell as automatically removing banned users.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: 911 on May 24, 2007, 05:32:57 PM
- Other Ad Networks
I'm planning on supporting several others which don't require a website, but they are less profitable.  A few will only be supported for their referral banners. The reason I include those is they can be additional source of revenue for you and your users.
Think of Amazons self optimising Links too ;) This is beside adsense and yahoo one of the biggest und popular Ad Network. I would love to see this in a future version.

Is the new Version you talk about near to come? And I would like it too if you integrate a update function instead of uninstall/install for future releases.

And a simple faq how to integrate the Ad Revenu Sharing in a custom Template (or is there still one?)

Best Regards
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on May 25, 2007, 08:33:08 AM
I'm trying to include Amazon Omakase.

I'm about 15% through doing the new mod. It is a large mod and may take a month or two.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Niteblade on May 27, 2007, 10:21:42 AM
It is a large mod and may take a month or two.

Wow.

Are you working at it alone on purpose, or are you willing to accept help from other coders?
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on May 27, 2007, 11:37:11 AM
Hey Nite0859,

yes it is a very large mod (with a hell of alot of settings).

At the moment there isnt much that anyone else can do because most of the code ties lots of sections together.
Like you (or someone else) suggested I'm know finding it alot easier to develop my mods with Xammp and Notepad++

When the modification is nearer done I will be grateful for bug/error testing.
I suppose one other thing which takes a long time to do is to do all the helptxt strings.

Unfortunately I'm also going to have to stop with this mod for a couple of days soon to sort out my server which needs formatting and the buggy linux reinstalling.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: SticKer on May 28, 2007, 08:05:22 PM
one thing that i noticed with the beta version that i am currently using in my forum, even though i have activated adsense and tla. i see the PSA ads when there are no relavent keywords, and the tla ads dont show to avoid psa. and after some research i found that the psa ads appear only on those user account those who have not activated tla.

now i dont think all my users would be using tla so is to avoid this you can do something were in such case you can run alternate ads or maybe the default forum tla ad.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on May 28, 2007, 11:51:24 PM
^ I was aware of it.

More so I believe is that if your the only person using TLA as the admin, then it MUST show PSAs because the mod prevents showing your own ads to yourself for security reasons.

I'll try to do something, although until I come to that part, I'm unsure which of about 10 different ways to do it, which one I'm going to choose.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: SticKer on May 29, 2007, 01:27:39 AM
hmm i will check if there are others who have tla activated in their profiles
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: CanadianDots on June 09, 2007, 12:00:49 PM
Thinking of attempting manual install of the current version of this mod on my SMF/Tiny Portal forum. A quick look at the install.xml leads me to believe that there are going to be a few places where the presence of TP will require some changes.

before I start - has anyone successfully got this mod to work with Tiny Portal?
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Blabla2018 on June 15, 2007, 06:45:06 AM
I installed this in my forum .. default template ... It installed successfully .. but it is not showing the options anywhere. How to find that ?

Plz help. I need it. Thanks in advance ...
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Niteblade on June 18, 2007, 01:56:15 AM
karlbenson,

Will you update the beta in order to successfully install with Tinyportal?
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: 911 on June 28, 2007, 07:08:35 PM
Any updates on this? Still working on the Mod Karl?
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Niteblade on July 01, 2007, 08:51:09 AM
I got it to work with TP, but had to fudge it. It's a sloppy fix.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: dadaas on July 08, 2007, 05:14:17 AM
What if we have integrated forum into portal and adsense ads are on portal and other suers ads are on forum, will this still be against rules of google?
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Noddegamra on July 11, 2007, 11:23:52 AM
I use this mod on my forum with a few others installed. Works fine! Thanks! :)
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: CanadianDots on July 13, 2007, 11:52:00 PM
I got it to work with TP, but had to fudge it. It's a sloppy fix.
Care to share? I've been wanting to implement this mod with my smf / tp site and simply can't find the time to figure it out.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: Niteblade on July 14, 2007, 11:26:53 AM
I got it to work with TP, but had to fudge it. It's a sloppy fix.
Care to share? I've been wanting to implement this mod with my smf / tp site and simply can't find the time to figure it out.

BACKUP ORIGINAL FILES FIRST

Sure.

When you attempt to install this mod, you'll notice that it fails with index.template.php. For the most part, all the other files it attempts to modify will not throw up an error message. So the issue is with index.template.php.

What I did was remove all references to index.template.php in the installer XML file. Now, when I re-installed, everything worked. Index.template.php is a template file, so all it's really doing is controlling the looks of the modification -- not the function. So, technically, you can have a working modification without running anything in index.template.php.

Index.template.php is useful for rendering ads on ALL pages.

So, what I did was this.

I looked at what functions were being called through index.template.php.
Code: [Select]
// 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

I placed that piece of code where I wanted TOP ads to display. In the bigger picture, the code block looks like this (for me)..

Code: [Select]
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>

<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="43200">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select>
<input type="submit" value="', $txt[34], '" /><br />
<span class="middletext">', $txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}

echo '
</td>

<td width="50%" class="windowbg2" valign="middle" align="right"><div id="sponsored-links-468x60">';

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

echo '</div><br /></td>

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

echo '
<table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', ' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>';

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td width="90%" class="titlebg2">
<span class="smalltext"><b>', $txt[102], '</b>: ', $context['random_news_line'], '</span>
</td>';
echo '
<td class="titlebg2" align="right" nowrap="nowrap" valign="top">
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
<a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 190px;" />&nbsp;
<input type="submit" name="submit" value="', $txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />';

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

echo '
</form>
</td>
</tr>
</table>
';
// TinyPortal
       }
//  end
echo '
</div>';

What I also did here is make a 468x60 image and use a div element to call it out -- it is the background image for the adsense units that is rendered even if someone uses firefox to block all ads.

Anyhow, the most important thing is to pay attention to the code that calls out the function.

Code: [Select]
// 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
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: anakmacan on July 15, 2007, 12:58:50 AM
Waiting for a version that works in 1.1.3
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: tsanko on July 24, 2007, 12:02:03 PM
The mod works great with 1.1.3 :) I use it from 3-4 days and have no problems.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: igauresh on August 09, 2007, 01:48:02 AM
I tried to install te mod on 1.1.3 and even though the mod is installed without any errors it doesnt show me any options in the admin panel to edit the settings for it.
Please help me with this installation.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on August 09, 2007, 10:05:02 AM
Try uninstalling/reinstalling

There admin link should be below Themes & Layout
http://custom.simplemachines.org/mods/index.php?action=download;mod=715;id=28553;image
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: igauresh on August 10, 2007, 02:46:45 AM
hi,
I tried uninstalling and reinstalling but it was all in vain and I couldnt get those options. So i installed the 1.1.2 version of smf manually and now its working on that version.
Also I suspect that since i installed the previous version thru fantastico tools of my hosting there was some problem in the installation which was causing the malfunction ...
Still I am really happy that it works...
A small suggestion would be that .. is it possible to have a point system and the points can then be used to buy impressions of ad units by the members of the forum.
This will make sure that only the currently posting members are the ones who earn points and use them to show their google ads to others.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on August 10, 2007, 08:08:13 AM
I'm deliberately staying away from dealing with impressions.

For the new 2.0 I'm working on.  Inactive users get disabled and/or removed from participating after a period of time.
So only currently active posters will benefit.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: vipmoney on August 16, 2007, 01:57:14 AM
Sounds like a great mod, I will try
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: n971 on August 19, 2007, 06:35:49 PM
Just installed. Grat mod. I have a suggestion/question:

Instead of 'register' to register with adsense link, can we have our AdSense referral ad?

AdRevenue Sharing doesn't work with other languages. What can I do in order to make it work? Actually, you can switch to english, enter your PID, and switch back to your language.

Tnx
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on August 19, 2007, 07:14:21 PM
in the new version I'm working on, it uses the referral ad for the register

I don't have any other translations than the english version. (once the new version is ready I'll be asked for help with translations)
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: vipmoney on August 23, 2007, 06:04:37 AM
Are the Impressions on the Admin / Report, posted in real time ?

For some reason, my impressions are stucked, and everything is working, I'm showing banners, i got the «Log Impressions» checked, etc, but impressions don't grow...

Why ?

Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on August 23, 2007, 09:51:37 AM
Impressions should be real time.
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: vipmoney on August 23, 2007, 04:42:36 PM
Impressions should be real time.

Hum.... I copy the ad placement codes from index.template.php to the inde.template.php of my theme, is there any part of the code that says to impressions to be logged ?
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on August 23, 2007, 04:45:31 PM
no the counter isnt in the themes, its in ArsAds.php
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: vipmoney on August 23, 2007, 05:33:52 PM
no the counter isnt in the themes, its in ArsAds.php


Hum.... when I use the default theme, the counter works, but with my theme it doesnt work... the banners are being shown, but the count doesnt rise.

Any idea ?

thanks ;)
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: vipmoney on August 23, 2007, 05:50:27 PM
Ok I found the problem... it was on my theme ;)

I manually changed the index.template.php, and forgot to add a line on function template_main_below()

Working great ;)
Title: Re: SMF Ad Revenue Sharing Mod (Official Beta Testing Thread)
Post by: karlbenson on August 24, 2007, 02:26:31 PM
I'm closing this topic in here now (as there is the actual mod topic)

http://www.simplemachines.org/community/index.php?topic=161676.0