News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Ad Revenue Sharing Mod 1.3

Started by brianjw, June 14, 2008, 08:19:46 PM

Previous topic - Next topic

dmacdonald111

I've just installed this mod. Didn't get any problems, except I had to install the Load Language mod mentioned previously in this post. I can see all the relevant information but there are a couple of issues;

1) When I try to enter my adsense id and click save, the box goes blank again. This happens both in my profile and in the admin section, although I'm mentioned as a user on my admin section.

2) Ads are not showing up anywhere even though, in 1) it does say I'm an adshare member.

ruipedrola

 :-[
I dont know whats happen. I try everything. I make lot of fresh intalls, in mysql 4.0, mysql 5.0, parsing board in php4, parsing in php5, with with two series of 10 numbers of adsense ( slot and ID chanel ) and in no one save the adsense channel.

Please be my guest and try in http://gestor.planetaportugal.com    It´s my test board, its fresh and clean install with only your mod. It´s very important to me. Thanks in advance

Rui

www.jbi.in

To solve adsense channel saving problem :

Look (in sources/profile.php)

// TO PREVENT MULTIPLE SIGNUPS - EXCEPT IF EMPTY OR CHANNEL/SECTON
if(($c != "") && ($b != "ypnsection") && ($b != "adsensechannel")) {
$query = db_query("
SELECT count(*) as num
FROM {$db_prefix}ars_participants
WHERE $b = '$c'
AND ID_MEMBER != '$ID_MEMBER'
LIMIT 1", __FILE__, __LINE__);
list($exists) = mysql_fetch_row($query);
mysql_free_result($query);
// IF EXISTS, THEN RESET TO SAVED VAR, IF DOESNT SET IT
$c = ($exists != 1) ? $c : $row[$b];
// tidy up
unset($exists);
} else {
// ITS EMPTY, SO SET AS EMPTY TO SAVE IT
$c = '';
}


Replace with :

// TO PREVENT MULTIPLE SIGNUPS - EXCEPT IF EMPTY OR CHANNEL/SECTON
if(($c != "") && ($b != "ypnsection") && ($b != "adsensechannel")) {
$query = db_query("
SELECT count(*) as num
FROM {$db_prefix}ars_participants
WHERE $b = '$c'
AND ID_MEMBER != '$ID_MEMBER'
LIMIT 1", __FILE__, __LINE__);
list($exists) = mysql_fetch_row($query);
mysql_free_result($query);
// IF EXISTS, THEN RESET TO SAVED VAR, IF DOESNT SET IT
$c = ($exists != 1) ? $c : $row[$b];
// tidy up
unset($exists);
}


See here for help regarding adsense channel id :

http://www.forums.jbi.in/index.php?topic=102.0




If you are interested in maintaining my forum at www.forums.jbi.in. Please pm me within 2 days. I'll make you global moderator.

OR

If someone wants my forum for their site usage pls pm. I'll give all necessary space and bandwidth.But your site must be related to computers/internet and you should use the existing boards for new topics no new boards will be created for you.



ruipedrola

And it works :) Many Many Many thanks for this fix. :)

khokon

I use 1.2  how can i  upgrade it in 1.3? Pls help me.
Best forum for sharing adsense revenue so far in the world http://forum.alljobsbd.com [nofollow]

brianjw

@khokon: Uninstall the old version, install the new version here.

Please remember, I am no longer providing support for this mod.

If you're interested on taking this mod over and have skills of the following:
  • PHP
  • Some MYSQL queries written in PHP
  • Some HTML
  • Ability to upgrade for compatibility of latest SMF versions like 2.0

    Then please PM me. It would be a shame for such a great mod originally written by karlbenson to fall back in the dust.

khokon

Dear when i try to uninstall 1.2
it show

!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.


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


now, is it safe to uninstall 1.2 ?

Pls help me, i want to install 1.3
Best forum for sharing adsense revenue so far in the world http://forum.alljobsbd.com [nofollow]

brianjw

I apologize but I am no longer supporting this mod.

khokon

Best forum for sharing adsense revenue so far in the world http://forum.alljobsbd.com [nofollow]

khokon

is the code work on 1.2?
Quote from: www.jbi.in on September 07, 2008, 05:08:14 AM
To solve adsense channel saving problem :

Look (in sources/profile.php)

// TO PREVENT MULTIPLE SIGNUPS - EXCEPT IF EMPTY OR CHANNEL/SECTON
if(($c != "") && ($b != "ypnsection") && ($b != "adsensechannel")) {
$query = db_query("
SELECT count(*) as num
FROM {$db_prefix}ars_participants
WHERE $b = '$c'
AND ID_MEMBER != '$ID_MEMBER'
LIMIT 1", __FILE__, __LINE__);
list($exists) = mysql_fetch_row($query);
mysql_free_result($query);
// IF EXISTS, THEN RESET TO SAVED VAR, IF DOESNT SET IT
$c = ($exists != 1) ? $c : $row[$b];
// tidy up
unset($exists);
} else {
// ITS EMPTY, SO SET AS EMPTY TO SAVE IT
$c = '';
}


Replace with :

// TO PREVENT MULTIPLE SIGNUPS - EXCEPT IF EMPTY OR CHANNEL/SECTON
if(($c != "") && ($b != "ypnsection") && ($b != "adsensechannel")) {
$query = db_query("
SELECT count(*) as num
FROM {$db_prefix}ars_participants
WHERE $b = '$c'
AND ID_MEMBER != '$ID_MEMBER'
LIMIT 1", __FILE__, __LINE__);
list($exists) = mysql_fetch_row($query);
mysql_free_result($query);
// IF EXISTS, THEN RESET TO SAVED VAR, IF DOESNT SET IT
$c = ($exists != 1) ? $c : $row[$b];
// tidy up
unset($exists);
}


See here for help regarding adsense channel id :

http://www.forums.jbi.in/index.php?topic=102.0 [nofollow]




If you are interested in maintaining my forum at www.forums.jbi.in [nofollow]. Please pm me within 2 days. I'll make you global moderator.

OR

If someone wants my forum for their site usage pls pm. I'll give all necessary space and bandwidth.But your site must be related to computers/internet and you should use the existing boards for new topics no new boards will be created for you.



Best forum for sharing adsense revenue so far in the world http://forum.alljobsbd.com [nofollow]

mghq

I have made the mod work for SMF 1.1.2-1.1.8. I am awaiting brianjw to reply to my pm. Once I recieve permision to take over it I will make a new thread with it.

brianjw

It will be taken over by mghq.

Fustrate

Steven Hoffman
Former Team Member, 2009-2012

mghq

#113
Yes. I am the developer of the new mod. If you find any errors please post in this thread.

See this thread http://www.simplemachines.org/community/index.php?topic=306738.0

Fustrate

Your modification has its own thread. This one will be closed as soon I can get someone to do it (I don't have many permissions :P ).

http://www.simplemachines.org/community/index.php?topic=306738.0
Steven Hoffman
Former Team Member, 2009-2012

Advertisement: