Ignore:
Timestamp:
Mar 21, 2011, 8:51:25 PM (13 years ago)
Author:
rvelices
Message:

2.2.b avoid google bot retrieving ajax pages used by rv_tscroller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_tscroller/main.inc.php

    r8935 r9813  
    11<?php /*
    22Plugin Name: RV Thumb Scroller
    3 Version: 2.2.a
     3Version: 2.2.b
    44Plugin URI: http://piwigo.org/ext/extension_view.php?eid=493
    55Description: Loads async using ajax thumbnails on index page as you scroll down the page
     
    77Author URI: http://www.modusoptimus.com
    88*/
    9 define('RVTS_VERSION', '2.2.a');
     9define('RVTS_VERSION', '2.2.b');
    1010
    1111class RVTS
     
    6565        $per_page = $page['nb_image_page'];
    6666        $url_model = str_replace('123456789', '%start%', duplicate_index_url( array('start'=>123456789) ) );
    67         $ajax_url_model = add_url_params($url_model, array( 'rvts'=>'' ) );
     67        $ajax_url_model = add_url_params($url_model, array( 'rvts'=>'%per%' ) );
    6868
    6969        $url_model = str_replace('&amp;', '&', $url_model);
     
    9191        }
    9292        $repeat=false;
     93        // the String.fromCharCode comes from google bot which somehow manage to get these urls
    9394        $template->block_footer_script(null,
    9495                "var RVTS = {
    95 ajaxUrlModel: '$ajax_url_model'+'%per%',
     96ajaxUrlModel: String.fromCharCode(".ord($ajax_url_model[0]).")+'".substr($ajax_url_model,1)."',
    9697start: $per_page,
    9798total: $total,
    9899perPage: $per_page,
    99 urlModel: '$url_model',
     100moreUrlModel: String.fromCharCode(".ord($url_model[0]).")+'".substr($url_model,1)."',
    100101moreMsg: '$moreMsg',
    101102ajaxLoaderImage: '$ajax_loader_image'
Note: See TracChangeset for help on using the changeset viewer.