vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vbBux / vbPlaza (https://vborg.vbsupport.ru/forumdisplay.php?f=171)
-   -   Points per Ad click (https://vborg.vbsupport.ru/showthread.php?t=112344)

gavinzac 04-06-2006 10:50 PM

Points per Ad click
 
i'll tell you what i want, what i really really want.

nobody seems to take any notice of my google ads. i get a few pennies for impressions but the real money maker is clicks.

would it be possible to set up a way that users clicking an ad would recieve X amount of points?

the flip side to this would be buying "no ads for X days" with your points.

xspazx 04-07-2006 03:24 PM

That would break TOS for offering incentives for clicking ads.

But that sounds like a good idea if you have individually sponsored adverts.

:)

gavinzac 04-08-2006 09:11 AM

yeah, obviously it could be used for stuff other than google's ads. rotated banners & such.

CMX_CMGSCCC 04-08-2006 05:10 PM

Like xspazx said, google would frown upon that and it may or may not be legal to actually do.

But, its entirely possible to make a feature add x points inside of a php script that then redirects for a banner ad that is not google.

All u'd have to do is make a simple php file something like:

redirect.php
Code:

<?php
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'redirect');

// #################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array();

// pre-cache templates used by specific actions
$actiontemplates = array();

// ########################## REQUIRE BACK-END ############################
require_once('./global.php');
require_once('./includes/functions_vbplaza.php');

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

// increase the user's points
vbplaza_quick_add_points($vbulletin->userinfo, 100, '');

// jump to the url
header("Location: " . $_REQUEST['url']);
exit;
?>

I havent tested that, but it should work. Then when the link is created for ur ads, it will need to jump to this php file like so... <a href="redirect.php?url=linktogoto"><img src="...."></a>

-CMX

ET240 06-19-2006 04:35 PM

Sorry could u take google for example how to implement it into it?

Pro Jordan 06-20-2006 07:49 AM

Quote:

Originally Posted by ET240
Sorry could u take google for example how to implement it into it?

bump :)

Wynand 06-20-2006 08:05 AM

Quote:

Originally Posted by Pro Jordan
bump :)

That google ad link is different for everyone.

ET240 06-20-2006 10:37 AM

ya i know is different i just wanna have a look on an example =]
so from there i can modify it... hehehe =X

CMX_CMGSCCC 06-20-2006 08:30 PM

Again, google would be mad about any abuse of TOS, please read them before doing any kind of hacks like this.

-CMX

gonecountry 06-22-2006 03:16 AM

Just so I understand the redirect link I put the php link first (where the file is on my site) then the website link second (ad site) correct?


All times are GMT. The time now is 02:58 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01010 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete