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 installed a plugin in wordpress that creates image thumbnails and displays links
I just installed the jQuery Lightbox Plugin on my wordpress blog. But that totally
i have installed WP About Author plugin on my wordpress blog now here as
I've installed a plugin for Wordpress Titled CMS Press onto my Site. I have
I have to upgrade a running wordpress site's wordpress CMS and some installed plugins.and
I have this installed on my wordpress website; http://sharethis.com/ The plugin works great and
I have recently installed and modified a certain template on my wordpress blog. All
I installed a new wordpress blog today (v3.4.2, Windows 2008 R2, IIS7.5, SQL Server
I have installed Easy Nivo Slider plugin for WordPress in order to show a
I am using wordpress for my website like a CMS, also have installed ALL

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.