Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4265172
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:35:16+00:00 2026-05-21T06:35:16+00:00

I am building a website with a referral system. Users who get their friends

  • 0

I am building a website with a referral system.
Users who get their friends to sign up to the website gets 5 points.
Users who get their friends to buy from the website gets 1 points.
I do this by giving each user a special referral link that they can send to their friends.
When the friends go through that link and sign up/buy, the user gets points.

The website also features products that can be facebook ‘liked’ or tweeted.
I’d like to give the user points if they refer friends through the link posted on their facebook walls when they click ‘like’.
I have 10 products on a page and each have their own like button.
The problem is when user click ‘like’, all 10 products got liked and when user click ‘unlike’, all 10 got unliked. I’d like it to be 1 like/unlike for 1 product.

I think the problem lies in the code below:

session_start();
include (“./include/koneksi.inc”);
require_once (“./include/global.inc”);

$id = mysql_real_escape_string($_REQUEST[‘id’]);

header(“Location: detaildeal.php?id=$id”);

Your help is very very appreciated.
Thanks in advance
David

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T06:35:16+00:00Added an answer on May 21, 2026 at 6:35 am

    Somewhere on the page I suppose you have

    <iframe src="http://www.facebook.com/plugins/like.php?href= ...
    

    Make sure that href is unique for each product. Also to make sure that these likes actually end up promoting the products, each product page should have the meta properties as described in the documentation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a website with points system, similar to Stackoverflow; This is the code
I am building a website templating system where multiple user can create their own
I am building a website that remembers the users choices from a navigation menu
Building a website that has English & Japanese speaking users, with the Japanese users
I'm currently building a website which contains video material from a YouTube channel. The
I am building new website in this website client required 24/7 live customer support.
Building a website. When I order my tags like this, LightCycle works but Lightbox
I am building a website that uses facebook connect for users to log in,
I'm building a website for a friends's art exhibition. I currently define a model
I'm building a website for a client (I'm a designer who's trying to learn

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.