Google indexed my calendar/index.php

Help with installation and general calendar setttings

Google indexed my calendar/index.php

Postby itchy » Thu Oct 13, 2011 2:04 pm

Google indexed my calendar/index.php.

I inserted <meta name="robots" content="noindex"> in the head section of my index.php file but it broke the whole thing and my calendar did not work.

Could you please tell me how do I prevent my index.php file being indexed by search engines.

Thank you.
itchy
 
Posts: 11
Joined: Tue Oct 04, 2011 6:56 pm

Re: Google indexed my calendar/index.php

Postby chris » Thu Oct 13, 2011 2:39 pm

Hi,
I can't think of any reason why adding that meta tag would break the calendar :?:
I have just tested it on my version and it made no difference (ie the calendar still worked correctly)
What is your calendar url?

Anyway, you could try adding the url that you want to block to the robots.txt file.

Chris
User avatar
chris
Site Admin
 
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: Google indexed my calendar/index.php

Postby itchy » Thu Oct 13, 2011 6:11 pm

Hi Chris,

It is... ayvalikholidayhouse.com/availabilitychart.html

I have added it just above the body, in head section...??

Thank you
itchy
 
Posts: 11
Joined: Tue Oct 04, 2011 6:56 pm

Re: Google indexed my calendar/index.php

Postby chris » Thu Oct 13, 2011 6:59 pm

Hi,
I can't see the meta tag anywhere in that url (which by the way doesn't appear to work without the "www" at the beginning).
Have you removed it again?

You can see here in my demo that adding the meta tag doesn't affect the calendar:
http://www.ajaxavailabilitycalendar.com/demos/v3.03.04/

Chris
User avatar
chris
Site Admin
 
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: Google indexed my calendar/index.php

Postby itchy » Thu Oct 13, 2011 11:26 pm

I am sorry Chris, I had to remove it...but I published it again now...for me it simply is not working, as you might be able to see from below url.

http://www.ayvalikholidayhouse.com/avai ... chart.html

Yours is working fine...well, I must be doing something wrong :oops:
itchy
 
Posts: 11
Joined: Tue Oct 04, 2011 6:56 pm

Re: Google indexed my calendar/index.php

Postby chris » Fri Oct 14, 2011 12:12 am

Strange that you are getting a php error.
Can you paste the first 20 lines of code here so I can take a look?

Chris
User avatar
chris
Site Admin
 
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: Google indexed my calendar/index.php

Postby itchy » Fri Oct 14, 2011 8:44 am

I have published my calendar back again...just incase some people look at it!!!

But the code you wish to see is below...Thank you again.

Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en-gb"><head>
<?php // include the calendar file
$the_file="ac-includes/cal.inc.php";
if(!file_exists($the_file)) die("<b>".$the_file."</b> not found");
else require_once($the_file);
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>AjaxAvailabilityCalendar.com - &lt;?php echo
AC_TITLE; ?&gt;</title>
<link rel="stylesheet" href="<?php echo AC_DIR_CSS; ?>avail-calendar.css">
<meta name="robots" content="noindex">
</head>
<body>
<div id="cal_wrapper">
<div id="cal_controls">
<div id="cal_prev" title="<?php echo $lang[" prev_x_months="" ]="" ?="">"&gt;<img src="<?php echo AC_DIR_IMAGES; ?>icon_prev.gif" class="cal_button"></div>
<div id="cal_next" title="<?php echo $lang[" next_x_months="" ]="" ?="">"&gt;<img src="<?php echo AC_DIR_IMAGES; ?>icon_next.gif" class="cal_button"></div>
<!-- optional calendar change options -->
<div id="cal_admin">
<form method="get">
<select name="id_item" class="select" onchange="this.form.submit();"><?php echo sel_list_items($_REQUEST["id_item"]); ?></select>
<select name="lang" class="select" onchange="this.form.submit();"><?php echo $list_languages_web; ?></select>
</form>
</div>
<!-- end options --> </div>
<div id="the_months"><?php echo $calendar_months; ?>
</div>
<div id="key_wrapper"><?php echo $calendar_states; ?>
<div id="footer_data" style="clear: both;"><?php echo $lang["last_update"].': '.get_cal_update_date(ID_ITEM); ?>
</div>
</div>
</div>
<script type="text/javascript">   // define vars
var url_ajax_cal = '<?php echo AC_DIR_AJAX; ?>calendar.ajax.php'; // ajax file for loading calendar via ajax
var img_loading_day = '<?php echo AC_DIR_IMAGES; ?>ajax-loader-day.gif'; // animated gif for loading var img_loading_month = '<?php echo AC_DIR_IMAGES; ?>ajax-loader-month.gif'; // animated gif for loading // don't change these values
var id_item = '<?php echo ID_ITEM; ?>'; // id of item to be modified (via ajax)
var lang = '<?php echo LANG; ?>'; // language
var months_to_show = <?php echo AC_NUM_MONTHS; ?>; // number of months to show
var clickable_past = '<?php echo AC_ACTIVE_PAST_DATES; ?>'; // previous dates
</script>
<script type="text/javascript" src="<?php echo AC_DIR_JS; ?>mootools-core-1.3.2-full-compat-yc.js"></script>
<script type="text/javascript" src="<?php echo AC_DIR_JS; ?>mootools-cal-public.js"></script>
</body></html>
itchy
 
Posts: 11
Joined: Tue Oct 04, 2011 6:56 pm

Re: Google indexed my calendar/index.php

Postby chris » Fri Oct 14, 2011 10:34 am

Hi,
there are all sorts of errors in that code but quite possibly pasting them in this forum may have corrupted them (though it doesn't normally do so).

I suggest that you reupload just the index.php file (the one that you are including in your iframe) and try adding the norobots meta to a fresh copy.

Chris
User avatar
chris
Site Admin
 
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: Google indexed my calendar/index.php

Postby chris » Fri Oct 14, 2011 10:41 am

This is your code with the php errors fixed:
Code: Select all
<?php
// include the calendar file
$the_file="ac-includes/cal.inc.php";
if(!file_exists($the_file)) die("<b>".$the_file."</b> not found");
else require_once($the_file);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en-gb">
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <title>AjaxAvailabilityCalendar.com - <?php echo AC_TITLE; ?></title>
      <link rel="stylesheet" href="<?php echo AC_DIR_CSS; ?>avail-calendar.css">
      <meta name="robots" content="noindex">
   </head>
   <body>
      <div id="cal_wrapper">
         <div id="cal_controls">
         <div id="cal_prev" title="<?php echo $lang["prev_x_months"]; ?><img src="<?php echo AC_DIR_IMAGES; ?>icon_prev.gif" class="cal_button"></div>
         <div id="cal_next" title="<?php echo $lang["next_x_months"]; ?><img src="<?php echo AC_DIR_IMAGES; ?>icon_next.gif" class="cal_button"></div>
         <!-- optional calendar change options -->
         <div id="cal_admin">
            <form method="get">
               <select name="id_item" class="select" onchange="this.form.submit();">
                  <?php echo sel_list_items($_REQUEST["id_item"]); ?>
               </select>
               <select name="lang" class="select" onchange="this.form.submit();">
                  <?php echo $list_languages_web; ?>
               </select>
            </form>
         </div>
         <!-- end options -->
      </div>
      <div id="the_months"><?php echo $calendar_months; ?></div>
      <div id="key_wrapper">
         <?php echo $calendar_states; ?>
         <div id="footer_data" style="clear: both;"><?php echo $lang["last_update"].': '.get_cal_update_date(ID_ITEM); ?></div>
      </div>
   </div>
   <script type="text/javascript"> // define vars
   var url_ajax_cal = '<?php echo AC_DIR_AJAX; ?>calendar.ajax.php'; // ajax file for loading calendar via ajax
   var img_loading_day = '<?php echo AC_DIR_IMAGES; ?>ajax-loader-day.gif'; // animated gif for loading var img_loading_month = '<?php echo AC_DIR_IMAGES; ?>ajax-loader-month.gif'; // animated gif for loading // don't change these values
   var id_item = '<?php echo ID_ITEM; ?>'; // id of item to be modified (via ajax)
   var lang = '<?php echo LANG; ?>'; // language
   var months_to_show = <?php echo AC_NUM_MONTHS; ?>; // number of months to show
   var clickable_past = '<?php echo AC_ACTIVE_PAST_DATES; ?>'; // previous dates
   </script>
   <script type="text/javascript" src="<?php echo AC_DIR_JS; ?>mootools-core-1.3.2-full-compat-yc.js"></script>
   <script type="text/javascript" src="<?php echo AC_DIR_JS; ?>mootools-cal-public.js"></script>
   </body>
</html>


Chris
User avatar
chris
Site Admin
 
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: Google indexed my calendar/index.php

Postby itchy » Fri Oct 14, 2011 4:26 pm

I have selected and saved your fixed code as index.php and uploaded it. It works fine now.

Please accept my small donation...

Thank you so much Chris.
itchy
 
Posts: 11
Joined: Tue Oct 04, 2011 6:56 pm

Next

Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron