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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T13:06:30+00:00 2026-05-22T13:06:30+00:00

I have a plugin installed on my wordpress blog that takes the email address

  • 0

I have a plugin installed on my wordpress blog that takes the email address and message and creates a new user on my other CMS platform. Problem is this effects all comment boxes. I want to re-work this plugin to check if its on a particular page if so some values would be different. If not then proceed like usual.

function ifcj_createUser_SFI($comment_id) {

# determine commenters email
global $wpdb;
$sql = "SELECT comment_author_email FROM $wpdb->comments WHERE comment_ID = $comment_id";

$userEmail = $wpdb->get_var($sql);


if ( $userEmail == NULL ) {
    return false;
}


# pull in class file
require( ABSPATH . 'class.convio_api.php');

# create instance and connection with convio, ALWAYS REQUIRED
$c = new ConvioAPI('site_id=xxx&api_key=xxxxxx&login_name=xxx@xxx.org&login_password=xxxxx');

# add user to groups/interests (this can be done when creating the user also)
$c->createUpdateUser('primary_email='.$userEmail.'&add_group_ids=73663&add_interest_ids=3761');

return true;

}


add_action('comment_post','ifcj_createUser_SFI',0,1);

Thanks in advance.

  • 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-22T13:06:31+00:00Added an answer on May 22, 2026 at 1:06 pm

    Use conditional tags: http://codex.wordpress.org/Conditional_Tags

    Here is how you would test for a certain page: http://codex.wordpress.org/Conditional_Tags#A_PAGE_Page

    Like:

    if ( is_page( '2' ) ) {
        return false;
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a wordpress blog on a server, the admin portal is also on
I installed the "Tooltip Glossary " plugin on a Wordpress site, but after some
I am creating my first plugin and have a single function that controls the
I've installed WordPress 3.0.2 on my local box using MS Webmatrix (beta 3). Webmatrix
I installed Jquery for Wordpress in a Wordpress page in my localhost: http://localhost/brianfunshine.com2/ Images
quick question: i'm developing a wordpress theme for a client and have a heavy
I'm using a plugin for WordPress called NGG Gallery to deal with images. I
Preamble: This is very close to this question , and I have read this
I'm a Java/.NET developer but on my spare time I've started looking into WordPress
I would like to know of a good approach, or programming pattern to apply,

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.