Gain Cash/Points on bannerclick

Mods etc.

Moderator: Integra Moderator

Gain Cash/Points on bannerclick

PostAuthor: Dj-Harem » Tue Apr 25, 2006 7:33 am

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
Last edited by Dj-Harem on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://www.antiaggro.de/images/banners/banner.gif[/img][/url]

Dj-Harem
Newbie
Newbie
 
Posts: 11
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 25, 2006 7:28 am
Cash on hand: 0.00

PostAuthor: gcomfx.com » Tue Apr 25, 2006 1:06 pm

Oh.... that would be a nice mod. :nice:
Last edited by gcomfx.com on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Paul (gcomfx) - 100mphclub.com originator
[size=99px]
User avatar
gcomfx.com
Sr Integra Member
Sr Integra Member
 
Posts: 251
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 12, 2006 8:34 am
Cash on hand: 0.00

Re: Gain Cash/Points on bannerclick

PostAuthor: weehong » Sun Apr 30, 2006 9:35 pm

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>
Last edited by weehong on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

weehong
Members
Members
 
Posts: 31
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 30, 2006 5:21 am
Cash on hand: 0.00

Re: Gain Cash/Points on bannerclick

PostAuthor: Helter » Sun Apr 30, 2006 9:42 pm

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
Last edited by Helter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Gain Cash/Points on bannerclick

PostAuthor: weehong » Sun Apr 30, 2006 9:49 pm

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?
Last edited by weehong on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

weehong
Members
Members
 
Posts: 31
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 30, 2006 5:21 am
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Mon May 01, 2006 7:36 am

I may be wrong, but because Google dynamically generates the script, I don't believe it is possible.
Last edited by Jason Sanborn on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 9:40 am
Cash on hand: 0.00
Location: Marina, CA

Re: Gain Cash/Points on bannerclick

PostAuthor: Dj-Harem » Mon May 01, 2006 12:03 pm

[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 :D so let's do that <img>
because there aren't so many bannercodes like Google Adsense

Would be nice if anyone can do that!
Last edited by Dj-Harem on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://www.antiaggro.de/images/banners/banner.gif[/img][/url]

Dj-Harem
Newbie
Newbie
 
Posts: 11
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 25, 2006 7:28 am
Cash on hand: 0.00

Re: Gain Cash/Points on bannerclick

PostAuthor: weehong » Wed May 03, 2006 1:55 am

hmm. maybe i should read in the google adsense script, and rewrite all thr urls <img>
Last edited by weehong on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

weehong
Members
Members
 
Posts: 31
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 30, 2006 5:21 am
Cash on hand: 0.00

Re: Gain Cash/Points on bannerclick

PostAuthor: Dj-Harem » Mon May 08, 2006 7:08 am

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);  
Last edited by Dj-Harem on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://www.antiaggro.de/images/banners/banner.gif[/img][/url]

Dj-Harem
Newbie
Newbie
 
Posts: 11
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 25, 2006 7:28 am
Cash on hand: 0.00

PostAuthor: weehong » Mon May 08, 2006 4:13 pm

hmm... i tink its {USERNAME} ... not too sure either.. tell u wad... i shall check it out after my chemistry paper today <img>
Last edited by weehong on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

weehong
Members
Members
 
Posts: 31
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 30, 2006 5:21 am
Cash on hand: 0.00

Re: Gain Cash/Points on bannerclick

PostAuthor: Dj-Harem » Sat May 13, 2006 9:08 am

hi weehong,

how was your chemistry paper?
and did you check out how it works?

thanks Dj-Harem
Last edited by Dj-Harem on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://www.antiaggro.de/images/banners/banner.gif[/img][/url]

Dj-Harem
Newbie
Newbie
 
Posts: 11
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 25, 2006 7:28 am
Cash on hand: 0.00

PostAuthor: weehong » Fri May 19, 2006 3:01 pm

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...
Last edited by weehong on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

weehong
Members
Members
 
Posts: 31
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 30, 2006 5:21 am
Cash on hand: 0.00

Re: Gain Cash/Points on bannerclick

PostAuthor: Dj-Harem » Sun May 21, 2006 9:29 am

ok, no problem :D
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
Last edited by Dj-Harem on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://www.antiaggro.de/images/banners/banner.gif[/img][/url]

Dj-Harem
Newbie
Newbie
 
Posts: 11
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 25, 2006 7:28 am
Cash on hand: 0.00

Re: Gain Cash/Points on bannerclick

PostAuthor: weehong » Tue Jun 13, 2006 3:43 pm

sry.. late reply..

great! be sure to post it up!

uhh... just use the same variable to execute the second bit of sql..
Last edited by weehong on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

weehong
Members
Members
 
Posts: 31
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 30, 2006 5:21 am
Cash on hand: 0.00


Return to IntegraMOD Modifications

Who is online

Registered users: Majestic-12 [Bot]