Advertisement:

Author Topic: Ad Revenue Sharing Mod  (Read 69208 times)

Offline mghq

  • Jr. Member
  • **
  • Posts: 194
    • Mega Gaming Hq
Ad Revenue Sharing Mod
« on: April 25, 2009, 07:38:25 PM »
Link to Mod

AD REVENUE SHARING MOD 1.5
By mghq

--------------------------------------------------------------------------------
Link to Mod | Support Topic | Donate
--------------------------------------------------------------------------------


Compatibility
For SMF 1.1.X (1.1.2 through 1.1.10 )
It will not work for ANY earlier versions.
Working on SMF 2.0

Introduction
Adds the ability for your members to add their own ads to your forum and be able to make their money on your forum which will attract many visitors. There is also permissions and admin settings that allow you to set the percentage of how much the ads will show for each membergroup. This way it will keep people from registering, posting once or no times and then leaving their ad.

This is a very advanced new feature! See for yourself!

Features
o List coming soon!
- Taken over by mghq(awaiting approval from brianjw as he no longer supports the older version ).

Installation
Any previous versions of this mod MUST be uninstalled BEFORE installing this version UNLESS we have an upgrade package [we currently don't].

Simply install the package to install on the SMF Default Core Theme ONLY.
Manual edits will be required for ALL themes (other than SMF Default Core Theme). Instructions are coming very soon!

If your website has a different language then english, you will have to manually edit the ManageArs.english.php and translate it to your language and then save "as" as ManageArs.{language}.php


Donate
Has this modification helped you? Support the developer by Donating on the donation tab.

Support
You may pm mghq or use the topic for help

Changelog
1.5
o Fixed install completely. It will now work properly on any forum.

1.4
o Fixed it to install versions 1.1.2 - 1.1.8
o Fixed an error when installing it
o Fixed a problem with the edit for index.template.php
Supported by mghq
No longer supported by brianjw
o I am looking for someone to take over this mod.
o You must have knowledge of some php and html.
o Download is still available
1.3
o XHTML Errors have been fixed.
o Taken over by brianjw.
o Previous versions of this mod are no longer supported. To get support please update to the latest version!
1.2
o Fixes adsense channel not saving
1.1 - FIXES
o Alters Text-Link-Ads referrals links (since they've changed them)
o Allows Adesnse id's starting ca-pub aswell as pub-

If you like this mod please donate.
« Last Edit: September 27, 2009, 01:23:22 AM by mghq »

Offline mghq

  • Jr. Member
  • **
  • Posts: 194
    • Mega Gaming Hq
Re: Ad Revenue Sharing Mod
« Reply #1 on: April 25, 2009, 08:08:28 PM »
One custom edit I believe yall currently might have to make is under Themes>Default>index.template.php .

Search for:
Code: [Select]
</head>
<body>';

Add this before it:
Code: [Select]
if ($modSettings["ars_enabled"]) {
$context['arsadscount'] = 0;
showArsAds("top");
showArsMessage("top");
}

Search For:
Code: [Select]
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;

echo '
</div>';

Replace with
Code: [Select]
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

echo '</div>';

if ($modSettings['ars_enabled']) {
if ($modSettings['ars_adsetup_right_enabled']) {
echo '</td><td valign="top">';
showArsAds("right");
}
if (($modSettings['ars_adsetup_left_enabled']) || ($modSettings['ars_adsetup_right_enabled'])) {
echo '</td></tr></table>';
}
showArsAds("bottom");

logImpressions();
}


Search for:
Code: [Select]
echo '
</td>
</tr>
</table>
</td>
</tr>
</table>';

Add after:
Code: [Select]
if (($modSettings['ars_enabled']) && ($modSettings['ars_adsetup_welcome_enabled'])) {
echo '</td>
<td class="windowbg2">';
showArsAds("welcome");
showArsMessage("top");
}


Search for:
Code: [Select]
template_menu();

Add before:
Code: [Select]
if ($modSettings['ars_enabled']) {

showArsAds("links");


if (($modSettings['ars_adsetup_left_enabled']) || ($modSettings['ars_adsetup_right_enabled'])) {
echo '<table cellspacing="3" cellpadding="0" width="100%"><tr><td valign="top">';
}
if ($modSettings['ars_adsetup_left_enabled']) {
showArsAds("left");
echo '</td><td valign="top">';
}
}


These edits are required for this mod to work. The rest of it can be dealt with the package installer.
« Last Edit: May 05, 2009, 06:00:10 PM by mghq »

Offline MaXiForum.cz

  • Senior Translator
  • Full Member
  • *
  • Posts: 690
  • Gender: Male
  • Czech SMF support
    • MaxiF√≥rum
Re: Ad Revenue Sharing Mod
« Reply #2 on: April 26, 2009, 05:12:17 AM »
Hmm nice!
Demo, screen? :)

Offline daveaite

  • Semi-Newbie
  • *
  • Posts: 88
    • The BuyPoe Network
Re: Ad Revenue Sharing Mod
« Reply #3 on: April 26, 2009, 02:22:03 PM »
Sounds like a good idea! Any chance we can go 2.0?
The BuyPoe Network!


http://vBSocial.com: Forum Styles for vBulletin and SMF

Offline mghq

  • Jr. Member
  • **
  • Posts: 194
    • Mega Gaming Hq
Re: Ad Revenue Sharing Mod
« Reply #4 on: April 26, 2009, 04:21:04 PM »
Working on it.

Offline mghq

  • Jr. Member
  • **
  • Posts: 194
    • Mega Gaming Hq
Re: Ad Revenue Sharing Mod
« Reply #5 on: April 26, 2009, 05:05:12 PM »
Here is a screenie of the advertisements in different areas.


Offline heavyccasey

  • Jr. Member
  • **
  • Posts: 212
Re: Ad Revenue Sharing Mod
« Reply #6 on: April 26, 2009, 05:56:34 PM »
Here's a suggestion. Under the link tree works very well for me.

Offline mghq

  • Jr. Member
  • **
  • Posts: 194
    • Mega Gaming Hq
Re: Ad Revenue Sharing Mod
« Reply #7 on: April 26, 2009, 06:03:31 PM »
Here's a suggestion. Under the link tree works very well for me.
K might ad that section in a future release of this mod? Have you tested this mod?

Offline Goodman854

  • Jr. Member
  • **
  • Posts: 179
  • Gender: Male
    • @goodman854 on Twitter
Re: Ad Revenue Sharing Mod
« Reply #8 on: April 26, 2009, 08:49:24 PM »
Can you make it work with Adbrite? PLEASE! Because the other Ad programs don't work on my site.

Offline mghq

  • Jr. Member
  • **
  • Posts: 194
    • Mega Gaming Hq
Re: Ad Revenue Sharing Mod
« Reply #9 on: April 26, 2009, 09:07:03 PM »
Why do they not work? adsense all you need is the pub number.

Offline Goodman854

  • Jr. Member
  • **
  • Posts: 179
  • Gender: Male
    • @goodman854 on Twitter
Re: Ad Revenue Sharing Mod
« Reply #10 on: April 26, 2009, 11:24:09 PM »
I don't have Adsense account. I have an adbrite.com account. Adbrite works best for me there really good!

Offline alex30

  • Full Member
  • ***
  • Posts: 605
  • Gender: Male
Re: Ad Revenue Sharing Mod
« Reply #11 on: April 27, 2009, 12:33:29 AM »
I like this idea, this mod will be one of those popular ones.

Well done!

Offline gsawiris

  • Newbie
  • *
  • Posts: 2
Re: Ad Revenue Sharing Mod
« Reply #12 on: April 27, 2009, 05:31:17 AM »
I installed it on my hxxp:science-query.com/free_forum/ [nonactive] using default skin but I don't see where you access it.

Offline ellion

  • Jr. Member
  • **
  • Posts: 203
Re: Ad Revenue Sharing Mod
« Reply #13 on: April 27, 2009, 08:03:04 AM »
so good that someone is carrying on this mod.

are there any bugs with this mod as i have it installed on one forum but ads are not showing where i selected them?

Offline mghq

  • Jr. Member
  • **
  • Posts: 194
    • Mega Gaming Hq
Re: Ad Revenue Sharing Mod
« Reply #14 on: April 27, 2009, 04:46:20 PM »
I installed it on my free forum using default skin but I don't see where you access it.
Some likely reasons for this are 1)that you have not enabled the ad spots in the Admin Panel. 2) You have not made the edits i stated above, 3) You are the only person with the ads. It will more than likely be reason 1 or 2.

so good that someone is carrying on this mod.

are there any bugs with this mod as i have it installed on one forum but ads are not showing where i selected them?
Yes. Thank you.  As I stated before you will have to make some small edits to index.template.php. She above.
I like this idea, this mod will be one of those popular ones.

Well done!
Thank you
« Last Edit: April 27, 2009, 04:57:46 PM by mghq »

Offline mghq

  • Jr. Member
  • **
  • Posts: 194
    • Mega Gaming Hq
Re: Ad Revenue Sharing Mod
« Reply #15 on: April 27, 2009, 05:13:17 PM »
Note: If you do not make the changes to index.template.php the only ad area that will display is Below Boards/Topic/Post Tables. Also you will NEVER be shown your own ads.

Offline gsawiris

  • Newbie
  • *
  • Posts: 2
Re: Ad Revenue Sharing Mod
« Reply #16 on: April 27, 2009, 07:28:13 PM »
I thought you did not need to do the mods using the default skin. I don't see any ad spots option in the admin panel. thanks.

Offline mghq

  • Jr. Member
  • **
  • Posts: 194
    • Mega Gaming Hq
Re: Ad Revenue Sharing Mod
« Reply #17 on: April 27, 2009, 07:32:58 PM »
I thought you did not need to do the mods using the default skin. I don't see any ad spots option in the admin panel. thanks.
You do for this one for one reason. It is because it will not execute properly when installing. And the button will say "Ad Revenue Sharing" under configuration, under the Themes link

Trust me it works. See here http://gaminghubs.com/test4mod/
« Last Edit: April 27, 2009, 07:38:39 PM by mghq »

Offline damnitmike

  • Semi-Newbie
  • *
  • Posts: 95
  • Gender: Male
Re: Ad Revenue Sharing Mod
« Reply #18 on: April 27, 2009, 07:40:17 PM »
I started to install this, but there was a warning in the description....Something like, if you use another ad management  (jerms), you shouldn't use this.....

I am wondering what the conflict is, or might be with the 2 installed on the same forum?

Thanks!

Offline mghq

  • Jr. Member
  • **
  • Posts: 194
    • Mega Gaming Hq
Re: Ad Revenue Sharing Mod
« Reply #19 on: April 27, 2009, 07:41:36 PM »
I started to install this, but there was a warning in the description....Something like, if you use another ad management  (jerms), you shouldn't use this.....

I am wondering what the conflict is, or might be with the 2 installed on the same forum?

Thanks!
It is just saying if you have that ad management mod installed the two might conflict. If you do not use that mod just disregard that