Page 1 of 1
Gain Cash/Points on bannerclick

Posted:
Tue Apr 25, 2006 8:33 am
Author: Dj-Harem
Hi @ll, i'm back <img>
i there a mod which let's my users gain points on clicking my banners.
I have the cash mod and the complete banner mod.
i tried to register at the [url=http]author's page[/url] but i
always get an error.
would be nice if you can help me!
big thx
Dj-Harem

Posted:
Tue Apr 25, 2006 2:06 pm
Author: gcomfx.com
Oh.... that would be a nice mod. :nice:
Re: Gain Cash/Points on bannerclick

Posted:
Sun Apr 30, 2006 10:35 pm
Author: weehong
hey yeah nice idea... i saw this thread on the previous integramod portal.. hmm.. if the banner is a graphic, it may be easy... i just need to add a onClick event for the graphic but for ads such as Google Adsense, i have totally no idea how to attach an onClick event to the script <img>
Re: Gain Cash/Points on bannerclick

Posted:
Sun Apr 30, 2006 10:42 pm
Author: Helter
you sould be able to display a Google Adsense ad using the bannermod and selecting "custom html" You should then be able to edit the banner mod to add points
Re: Gain Cash/Points on bannerclick

Posted:
Sun Apr 30, 2006 10:49 pm
Author: weehong
please point me in the right direction <img>
My google ad script
<script><google_ad_client></script>
<script>
</script>
how do you attach a onClick to each of the links, when the thing is displayed using javascript?

Posted:
Mon May 01, 2006 8:36 am
Author: Jason Sanborn
I may be wrong, but because Google dynamically generates the script, I don't believe it is possible.
Re: Gain Cash/Points on bannerclick

Posted:
Mon May 01, 2006 1:03 pm
Author: Dj-Harem
[quote=""weehong";p="3863""]hey yeah nice idea... i saw this thread on the previous integramod portal.. hmm.. if the banner is a graphic, it may be easy... i just need to add a onClick event for the graphic but for ads such as Google Adsense, i have totally no idea how to attach an onClick event to the script

so let's do that <img>
because there aren't so many bannercodes like Google Adsense
Would be nice if anyone can do that!
Re: Gain Cash/Points on bannerclick

Posted:
Wed May 03, 2006 2:55 am
Author: weehong
hmm. maybe i should read in the google adsense script, and rewrite all thr urls <img>
Re: Gain Cash/Points on bannerclick

Posted:
Mon May 08, 2006 8:08 am
Author: Dj-Harem
i am not a programmer, but i need that function! <img>
what about the following code? only an idea, i know
that the code is wrong!
and i don't know how to get the user_id or username
from the logged in user!
- Code: Select all
$sql = "UPDATE " . USER_TABLE . " MODIFY user_points = user_points + '5' WHERE user_id = ??logged in user id??; if ( !$db->sql_query($sql) ) { message_die(CRITICAL_ERROR, "Failed to update", "", __LINE__, __FILE__, $sql);

Posted:
Mon May 08, 2006 5:13 pm
Author: weehong
hmm... i tink its {USERNAME} ... not too sure either.. tell u wad... i shall check it out after my chemistry paper today <img>
Re: Gain Cash/Points on bannerclick

Posted:
Sat May 13, 2006 10:08 am
Author: Dj-Harem
hi weehong,
how was your chemistry paper?
and did you check out how it works?
thanks Dj-Harem

Posted:
Fri May 19, 2006 4:01 pm
Author: weehong
check ur p.m... lucky i didn fail my chem paper.. wells, i will be in malaysia for 1 week for my school camp... sorry...
Re: Gain Cash/Points on bannerclick

Posted:
Sun May 21, 2006 10:29 am
Author: Dj-Harem
ok, no problem

the only problem i have is to run 2 sql command in the $sql variable.
how can i do that? do i have to do it in an array?
- Code: Select all
$sql="UPDATE ".BANNERS_TABLE." SET banner_click=banner_click+1 WHEREbanner_id='".$banner_id."', UPDATE ".USERS_TABLE." SET user_points=user_points+5 WHEREuser_id='". $userdata['user_id'] ."'";
thanks Dj-Harem
Re: Gain Cash/Points on bannerclick

Posted:
Tue Jun 13, 2006 4:43 pm
Author: weehong
sry.. late reply..
great! be sure to post it up!
uhh... just use the same variable to execute the second bit of sql..