Archive

Posts Tagged ‘the referrer’

WordPress Plugin

February 1st, 2012 Comments off

Looking for programmer to write a wordpress plugin which can show different things to different users based on the referrer.

here is the details:

-if a user click a link to my site e.g. mysite.com/someting/something/ the plugin should check the referrer, if the referrer match with some pattern e.g. (wp-admin), the plugin should show something under the post.

-the plugin should drop a cookie in that user browser, so next time he visit the page i.e. mysite.com/someting/something/ , he can…

Need Help With Php Redirect

August 11th, 2009 Comments off

Any help would be much appreciated.

I am trying to redirect users based on the referring url. I’ve got it working based one the referring domain, but I want it to work when a query string is attached to the domain.

This is what I have so far.

PHP Code:
<?
$referrer = $_SERVER['HTTP_REFERER'];
if (preg_match(“/google.com/”,$referrer)) {
header(‘Location: http://WebsiteA.com’);
} else {
header(‘Location: http://WebsiteB.com’);
};
?>

This is what I want to happen, but I know this is not how to do it:

PHP Code:
<?
$referrer = $_SERVER['HTTP_REFERER'];
if (preg_match(“/google.com/url?q=”,$referrer)) {
header(‘Location: http://WebsiteA.com’);
} else {
header(‘Location: http://WebsiteB.com’);
};
?>

I want to only show WebsiteA.com if the referrer is google.com/url?q=xxxxxx (which includes anything that follows ‘url?q=’)

If the referrer is anything other than google.com/url?q=xxxxx or even just google.com i want the user to go to WebsiteB.com

So, a recap:

I want user to go to WebsiteA if referrer is something like google.com/url?q=widgets&url=23KLNSDL

I want the user to go to WebsiteB if referrer is anything else, even if the referrer is only google.com i want them to go to WebsiteB

Thank you for your help!

Unostart – Tpo3

July 15th, 2009 Comments off

First Program:
The 1st programme which we call UnoStart which is a 3 X 2 cycler who has three or more Revolution or 3 X 2 cyclers
The cost to join is $15
How the cyclers work. And the payouts for each cyclers, 1 to 3 as below.
1st: Cycle the Members get $50 and Sponsor $25 and get a position in the second cycler when completed.
2nd: Cycle the Members get $100 and Sponsor $50 and get a position in the third cycler when completed.
3rd: Cycle the Members get $1200 and Sponsor $725
When he has completed the third cycle it starts again and he get a position back in the first cycler.
Members can have a few ways to pay for their membership but they will have to use 1 payout method which is PayItGlobal to get paid, which means we can do the payouts automatically, when they come due.
We have seen a few other programs which do this and I’m happy to give you links if you need for examples.

Second Program:
Which is used to help the first program can be done in two ways and I’m looking to what will be the best I will try to explain both.
Option1:
Pay it forward component which we call: TPO-3 = The Power of Three

1. There are 2 lists

Matrix 2×2 Follow The Referrer

May 18th, 2009 Comments off

I need a PHP/MySql script that does a 2×2 recycling “FOLLOW ME” matrix similar to Infinity800 or EZ2x2. You may check out how it works in www.infinity800.com or www.ez2x2.com, but this script is modified a little bit.

I need a programmer who has already done a matrix script, and who knows how they recycle via a follow the referrer basis.

Here are the rules.

1) Entry price is $30, but I must have ability to modify this automatically and easily via Admin login.

2) The $30 recurs every month. For every recurring payment, the customer gets a new header or account in a separate matrix from his previous matrix, thus, he will have 12 separate matrices a year for each of the 12 months. (Important Note: recurring payments always go to a new matrix, and NOT anywhere inside a persons previous matrix even if that matrix is not yet filled up. In the new matrix, he may follow his sponsor there, but he can never be under his previous month’s matrix).

3) Commissions are only paid out to a person who fills up his 2×2. Once a 2×2 is full, the person gets paid $100.

4) Here is where the recycling is vital… ALL NEW RECYCLED ACCOUNTS GO TO THE NEXT AVAILABLE OPEN SLOT IN THE MEMBERS REFERRER. Below is a diagram of how this works.

5) Spill over by a member’s account is possible but only within his active 2×2 and not beyond that.

6) Of course, if he has many spill overs, it will coz him to fill his matrix and produce a new slot. His other referrals will go to this new slot. If this new slot fills up with his many referrals, he will have a new slot again where the referrals will come in, and so on.

7) Admin can spill over anywhere in the matrix to help everyone.

8) Admin can also make unlimited company direct accounts

9) In the backend, the genealogy tree must be clear. People can select ‘MATRIX 1′ to see their 1st Matrix. Then if they have already recycled or recurred in payments, they can view ‘MATRIX 2′, and so on.

10) AlertPay will be the pay processor. Please make it easy to auto-activate entries (after payments) and mass payout commissions (automatically at the 7th day of the month in just 1 click, based on performance up to the last day of the previous month).

11) Cut off is every last day of the month and payout is every 7th day of the next month.

12) Product is a daily inspirational video package, so it’s viewable or downloadable. People must be sent a download link once they submit payment. Viewing or download system must be secured so not anyone can get its URL and download the products.

13) Members must be able to recruit new members using their sub-domain (i.e. subdomain.domain.com), and not just an affiliate link. So subdomains must automatically be created based on a new member’s username. When signing up, members must be able to check if subdomain is still available, so they can amend their choice username.

14) The admin and backend system must have the features present in the other 2×2 systems out there.

15) New recruits cannot join free. They must pay first before getting into the system. But Admin can give free accounts.

Below is a sample on how the recycling works:

1) Assuming it starts with Soul, who joins by paying $30…

SOUL

2) Soul recruits John, who also pays $30…

….Soul
..|
John

Soul doesn’t any commissions yet until his 2×2 is full

3) Soul recruits Sue, who also pays $30…

……..Soul
..|……………|
John……….Sue

Soul doesn’t any commissions yet until his 2×2 is full

4) John recruits Bill, who pays $30…

……………Soul
……..|……………|
……John……….Sue
..|
Bill

5) John recruits Ken, who pays $30…

……………Soul
……..|……………|
……John……….Sue
..|……….|
Bill……..Ken

No one gets any commissions yet.

6) Sue doesn’t work out

7) Bill recruits Bob, who also pays $30…

……………….Soul
………….|……………|
………..John……….Sue
……..|……….|
……Bill……..Ken
.|
Bob

No one gets any commissions yet.

8) John recruits Sally, who also pays $30, and “spills her over” to Bill…

……………….Soul
…………|……………|
………..John……….Sue
……|………..|
…..Bill……..Ken
.|………|
Bob…..Sally

No one gets any commissions yet.

9) Ken recruits Peter and James, who EACH pay $30…

…………………….Soul
…………….|………………..|
…………..John……………Sue
……..|……………|
……Bill………….Ken
.|……….|…….|…….|
Bob…..Sally…Peter…James

John completes a 2×2, so he gets $100 and gets a new slot in the next vacant slot under his sponsor’s triangle.

…………………….Soul
…………….|………………………|
…………..John………………….Sue
……..|……………|…………….|
……Bill………….Ken………..John (2nd)
.|……….|…….|…….|
Bob…..Sally…Peter…James

Then if John again fills up his 2nd matrix before everyone else,
he goes to the next available slot of his referrer, which is still
under Sue….

………………………….Soul
…………….|……………………………..|
…………..John………………………..Sue
……..|……………|………………..|……………..|
……Bill………….Ken……………John (2nd)…John (3rd)
.|……….|…….|…….|…………..|…..|
Bob…..Sally…Peter…James……Sam…Nick
……………………………………|..|…|..|
…………………………………..A..B…C.D

10) Now look at this very carefully. Once John gets his 3rd account, SOUL WILL HAVE A COMPLETE 2×2, SO SOUL WILL HAVE A NEW ACOUNT IN THE NEXT AVAILABLE SLOT OF HIS SPONSOR. If he is company direct, a new company direct head for Soul will be created.

11) Then if John completes his 3rd account, he will go to the next available open slot of his sponsor Soul, which is at the 2nd account of Soul…

…Soul (2nd acct)
….|
John (4th acct)

12) Now here’s the vital mechanic about the recurring payment… if Soul recurs payment after the examply in (11), his new slot will not go under Soul 02 because our rule is RECURRING PAYMENTS DO NOT GO UNDER A MEMBER’S PREVIOUS TRIANGLE. Thus for the recurring payment, Soul will have a new separate 03. The same is true with John. His new slot from recurring payment (his 5th slot), will not go under Soul’s 2nd account, but in the account of Soul that recurred for the second time, which is Soul 03. So the recurred diagram for them is…

…Soul (3rd acct)
….|
John (5th acct)

In other words, a person’s 2nd month recurring will follow his sponsor’s 2nd month slot as well. A person’s 3rd month recurring will follow his sponsor’s 3rd month recurring as well, and so on.

I hope the above scenario is clear in developing the logic and algorithms for this script. Please message me if you have any questions. Thank you.

Parse Referrer Str Variables

March 19th, 2009 No comments

I require a PHP script to parse variables from the referrer. It will then write parsed data to a table in a mySQL db. It will also pass the parsed kw variable to a redirect I use in the format $kw= “KEYWORD”

The parts of the referrer I require written to the db are ‘referring domain’ and ‘keyword’. The query construction will be in various formats, depending on the referrer.

Some examples (not exhaustive)
‘q,query,?_nkw,form_keyword,buscar,search_query,field-keywords,search/q/,satitle,KW,k,OVKEY,keyword,searchfor’ The end delimiter will be usaully ‘&amp;’

Special considerations are queries from best-price.com &amp; dogpile. For best-price.com, if the query is from Yahoo the delimiters will be ‘OVKEY=KEYWORD&amp;’
If from google it will be ‘search/q/KEYWORD/s/google/’
If dogpile ‘results/keyword/KEYWORD/

See attached file for url examples.

For the db you will need to create a table in an existing db. The table will have 2 fields, one for referring domain, one for the kw.
EG:
CREATE TABLE `DB_NAME`.`TABLE_NAME` (
field parameters
) ENGINE = InnoDB DEFAULT CHARSET = latin1;

then write

I assume thee flow of logic will be:

Check if referrer string
if not
then set $kw variable to default ‘keyword’ and redirect visitor
if set
then parse domain and check for query string
if no query string
then set $kw variable to default ‘keyword’ and redirect visitor
if query string set $kw variable &amp; redirect and write the domain &amp; kw to db
&lt;=======================================================================&gt;
Do not bid without reading and understanding my requirements fully. If you have any questions, please ask.
I’ll only respond to bids accompanied by a PM. If you leave a bid without a corresponding PM, then the bid will be ignored.
Thank you.

Bear