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 7676531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:13:14+00:00 2026-05-31T17:13:14+00:00

Here is the code .. I would like to clone that code for another

  • 0

Here is the code..

I would like to clone that code for another module called “reputation”.

This is what i done so far. But when i click update it actually updates points instead of reputation.

Here is the difference of two files.

I never worked with ajax. So I’m confused in that ajax part.

So can anyone tell me which lines responsible for database update?..

Thanks

  • 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-31T17:13:15+00:00Added an answer on May 31, 2026 at 5:13 pm

    /wp-admin/admin-ajax.php is doing the update with the parameters sent to it.

    here’s the part of the code.

     jQuery.post('<?php echo bloginfo('url').'/wp-admin/admin-ajax.php'; ?>',
         {
             action: 'cp_manage_form_submit',
             user_id: user_id,
             points: points
         }
    

    and here’s the code which sets the “points” variable:

     points = jQuery(this).children('input[name=cp_manage_form_points]').val();
    

    it means get the value of <input name="cp_manage_form_points"> inside the submitted form.

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

Sidebar

Related Questions

I would like to play/pause video using jquery. Here is my code: (function ($)
I'm searching for the cleanest solution here. I would like to code a stored
Here my code: $(document).ready(function() { $('#mid_select').live('click', function(e){ $('#middle').load( $(this).attr('href') + ' #middle'); var page
Have a look here: In the following code, what would be the type of
Ok the error is showing up somewhere in this here code if($error==false) { $query
I'm hoping that i'm simply overlooking something simple. But here the scenario. I have
I would like to call an R script from Java. I have done google
Here is a snippet that gets the job done on Android (v2.2) and various
I have a method that looks like this: try { doStuff(); } catch (Exception
This is a followup to this question. Here's the code I'm trying to understand

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.