Integrate “constantcontact” signup form in our website

Please follow the below steps to integrate “constantcontact” signup form in our website.

  1. Login into “constantcontact“.
  2. Go to “Contacts” in the menu.
  3.  Next go to “Sign-Up Tools” under contacts page.
  4. Within this page “Sign-Up Tools”  -> Web Sign-Up Forms -> Sign-Up Form.
  5. Click on Actions -> Embed Code option available, click on that.
  6. Copy “Embeddable Sign-Up Form” code and put in our website.
Advertisement

Manually send a Confirmed Opt-In campaign to your contacts to confirm their interest

Please follow below steps for Manually send a Confirmed Opt-In campaign to your contacts to confirm their interest

  1. Click the Profile Icon and then click My Settings.
  2. Click the link by Confirmed Opt-in. If you haven’t enabled Confirmed Opt-in yet, the link will say “OFF“. If you’ve previously enabled it, the link will say “ON.”
  3. Read through the detailed information and then scroll down and make sure that “Confirmed Opt-in – On” is selected.
  4. Click Next.
  5. Check the boxes indicating you understand and agree with each statement.
  6. Click Finish.
  7. Click “Send a Confirm Contacts Email (Optional).
  8. Enter an email campaign name and click Next.
  9. Continue clicking Next to fill out the:
    • Message Header – This includes information like the subject name, from name, and from email address. Make sure these are filled out appropriately so your contacts recognize the sender.
    • Introduction – Here you can add a logo and change the Title and Subtitle of the email.
    • Message – This includes pre-populated information that we don’t recommend changing. The message informs contacts that if they don’t respond, they won’t be able to receive mailings from you.
    • Email Signature – Here you can fill out your contact information.
    • Global Colors & Fonts – Customize the colors and fonts throughout the email here. We recommend keeping the color scheme simple.
    • Message Footer – This includes your physical business address and is required to be filled in.
  10. Click Save & Next to finish.
  11. Select the list that will receive the campaign and click Next.
  12. Choose the email campaign delivery date and click Finish.

Tip: Remember to turn Confirmed Opt-in off if you don’t want to make new contacts confirm their interest at signup.

Tip: Use fresh mail id for conformation testing…..

Global Ajax Event Handlers

These methods register handlers to be called when certain events, such as initialization or completion, take place for any Ajax request on the page.
.ajaxComplete()Register a handler to be called when Ajax requests complete. This is an AjaxEvent.

.ajaxError()

Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event.

.ajaxSend()

Attach a function to be executed before an Ajax request is sent. This is an Ajax Event.

.ajaxStart()

Register a handler to be called when the first Ajax request begins. This is an Ajax Event.

.ajaxStop()

Register a handler to be called when all Ajax requests have completed. This is an Ajax Event.

.ajaxSuccess()

Attach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event.

Example:

jQuery(document).ajaxSuccess(function() {
alert(‘success’);
});

wordpress custom theme not showing featured image in edit post / page

/* To support featured image */
add_theme_support( ‘post-thumbnails’ );

/* Set thumbnail size */
set_post_thumbnail_size( 672, 372, true );

/* Set full width image */
add_image_size( ‘image-full-width’, 1038, 576, true );

/* To activate widgets */
function test_theme_widgets_init() {
register_sidebar( array(
‘name’ => __( ‘Primary Sidebar’, ‘test_theme’ ),
‘id’ => ‘sidebar-1’,
‘description’ => __( ‘Main sidebar that appears on the left.’, ‘test_theme’ ),
‘before_widget’ => ‘<aside id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ‘</aside>’,
‘before_title’ => ‘<h1 class=”widget-title”>’,
‘after_title’ => ‘</h1>’,
) );
}
add_action( ‘widgets_init’, ‘test_theme_widgets_init’ );

What is PHP and Why do I need it?

PHP is probably the most popular scripting language on the web. It is used to enhance web pages. With PHP, you can do things like create username and password login pages, check details from a form, create forums, picture galleries, surveys, and a whole lot more. If you’ve come across a web page that ends in PHP, then the author has written some programming code to liven up the plain, old HTML.

PHP is known as a server-sided language. That’s because the PHP doesn’t get executed on your computer, but on the computer you requested the page from. The results are then handed over to you, and displayed in your browser. Other scripting languages you may have heard of are ASP, Python and Perl. (You don’t need to know any of these to make a start on PHP. In fact, these tutorials assume that you have no programming experience at all.)

The most popular explanation of just what PHP stands for is “Hypertext Pre-processor”. But that would make it HPP, surely? An alternative explanation is that the initials come from the earliest version of the program, which was called Personal Home Page Tools. At least you get the letters “PHP” in the right order!

But PHP is so popular that if you’re looking for a career in the web design/web scripting industry then you just have to know it! In these tutorials, we’ll get you up and running. And, hopefully, it will be a lot easier than you think.

To learn PHP follow below websites

http://www.homeandlearn.co.uk/php/php.html

http://www.w3schools.com/php/

Remove visual composer shortcodes from content in wordpress

<?php
/* Get only listed posts */
$test_array = array(‘335’, ‘328’, ‘970’);

$query = new WP_Query( array( ‘post_type’ => ‘testimonials’, ‘post__in’ => $test_array ) );

global $post;

/* Get Post url */
$page_url = get_permalink($post->ID);

/* Get Post congtent */
$content = $post->post_content;

/* Remove visual composer shortcode like [vc_row] link that */
$desc = strip_tags(do_shortcode($post->post_content));

/* Remove empty spaces */
$desc = trim(preg_replace(‘/\s+/’,’ ‘, $desc ));

/* Get content with limit */
$desc = mb_strimwidth($desc, 0, 200, ‘…’);

?>

Summary of Roles in WordPress

Super Admin – somebody with access to the site network administration features and all other features. See the Create a Network article.
Administrator – somebody who has access to all the administration features within a single site.
Editor – somebody who can publish and manage posts including the posts of other users.
Author – somebody who can publish and manage their own posts.
Contributor – somebody who can write and manage their own posts but cannot publish them.
Subscriber – somebody who can only manage their profile.

MySQL connect with old version of PHP

Please find below code for MySQL database connection within PHP old version.

$host = “localhost”;
$user = “dbuser”;
$password = “dbpass”;
$dbname = “dbname”;

$link = mysql_connect($host, $user, $password);
if (!$link) {
die(‘Could not connect: ‘ . mysql_error());
}
mysql_select_db($dbname, $link);

$query = “SELECT * FROM table_name”;

$r = mysql_query($query) or die(mysql_error());

Find your tracking ID or tracking code Google

Please find below steps to verify site and find Google tracking code….

  1. Sign in to your Analytics account.
  2. Select the Admin tab.
  3. Select an account from the drop-down menu in the ACCOUNT column.
  4. Select a property from the drop-down menu in the PROPERTY column.
  5. Under PROPERTY, click Tracking Info > Tracking Code.

Website verification using below link please find…

https://www.google.com/webmasters/verification/home?hl=en