WordPress.org

Ready to get started?Download WordPress

Forums

Infolinks Official Plugin
Fix Infolinks Official Plugin v. 2.9.12 (1 post)

  1. anasmcguire
    Member
    Posted 3 years ago #

    there are some small errors infolinksintextads.php

    1. can't process jQuery from "h2", "h3", just process jQuery from "h1"
    2. Infolinks on comments not working properly, because $commentspage not processed

    Fix:
    change this: `for($k=0;$i<count($KeyArray);$i++){
    $keyJoin .= "jQuery('".$KeyArray[$k]."').before('<span><!--INFOLINKS_OFF--></span>');";
    $keyJoin .= "jQuery('".$KeyArray[$k]."').after('<span><!--INFOLINKS_ON--></span>');";`
    be:

    for($k=0;$k<count($KeyArray);$k++){
    					  $keyJoin .= "jQuery('".$KeyArray[$k]."').before('<span><!--INFOLINKS_OFF--></span>');";
    					  $keyJoin .= "jQuery('".$KeyArray[$k]."').after('<span><!--INFOLINKS_ON--></span>');";

    then add this script in line 311:

    if($commentspage == 0) {
    					  $commentsJoin .= "jQuery('#comments').before('<span><!--INFOLINKS_OFF--></span>');";
    					  $commentsJoin .= "jQuery('#comments').after('<span><!--INFOLINKS_ON--></span>');";
    				}

    in line 322
    change:
    .$cJoin.$idJoin.$keyJoin.
    be:
    .$cJoin.$idJoin.$keyJoin.$commentsJoin.

    http://wordpress.org/extend/plugins/infolinks-officlial-plugin/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by anasmcguire
  • This topic is not a support question
  • WordPress version: 3.0.1