Welcome! Log In Create A New Profile

Advanced

Page renamed to Untitled in search results.

Posted by MN73 
Page renamed to Untitled in search results.
May 31, 2012 04:02PM
As the heading suggests, I keep getting web pages in my search results with the name of 'Untitled document'.
Very frustrating. Could someone lend me a hand please to get this solved. Many thanks.

(could it have something to do with the use of <!--sphider_noindex--> and <!--/sphider_noindex-->?)

Here is the code I'm using in "search_results.html":

Quote

<br/>
<?php
extract($search_results);
?>

<?php if ($search_results['did_you_mean']){?>
<div id="did_you_mean">
<?php echo $sph_messages['DidYouMean'];?>: <a href="<?php print 'search.php?query='.quote_replace(addmarks($search_results['did_you_mean']))?>"><?php print $search_results['did_you_mean_b']; ?></a>?
</div>
<?php }?>

<?php if ($search_results['ignore_words']){?>
<div id="common_report">
<?php while ($thisword=each($ignore_words)) {
$ignored .= " ".$thisword[1];
}
$msg = str_replace ('%ignored_words', $ignored, $sph_messages["ignoredWords"]);
echo $msg; ?>
</div>
<?php }?>


<?php if ($search_results['total_results']==0){?>
<div id ="result_report">
<?php
$msg = str_replace ('%query', $ent_query, $sph_messages["noMatch"]);
echo $msg;
?>
</div>
<?php }?>


<?php if ($total_results != 0 && $from <= $to){?>
<div id ="result_report">
<?php
$result = $sph_messages['Results'];
$result = str_replace ('%from', $from, $result);
$result = str_replace ('%to', $to, $result);
$result = str_replace ('%all', $total_results, $result);
$matchword = $sph_messages["matches"];
if ($total_results== 1) {
$matchword= $sph_messages["match"];
} else {
$matchword= $sph_messages["matches"];
}

$result = str_replace ('%matchword', $matchword, $result);
$result = str_replace ('%secs', $time, $result);
echo $result;
?>
</div>
<?php }?>


<?php if (isset($qry_results)) {
?>

<div id="results">

<!-- results listing -->

<?php foreach ($qry_results as $_key => $_row){
$last_domain = $domain_name;
extract($_row);
if ($show_query_scores == 0) {
$weight = '';
} else {
$weight = "[$weight%]";
}
?>
<?php if ($domain_name==$last_domain && $merge_site_results == 1 && $domain == ""winking smiley {?>
<div class="idented">
<?php }?>
<b><?php print $num?>.</b> <?php print $weight?>
<a href="<?php print $url?>" class="title"> <?php print ($title?$title:$sph_messages['Untitled'])?></a><br/>
<div class="description"><?php print $fulltxt?></div>
<div class="url"><?php print $url2?> - <?php print $page_size?></div>
<?php if ($domain_name==$last_domain && $merge_site_results == 1 && $domain == ""winking smiley {?>
[ <a href="<?php print 'search.php?query='.quote_replace(addmarks($query)).'&search=1&results='.$results_per_page.'&domain='.$domain_name?>">More results from <?php print $domain_name?></a> ]
</div class="idented">
<?php }?>
<br/>
<?php }?>
</div>
<?php }?>

<!-- links to other result pages-->
<?php if (isset($other_pages)) {
if ($adv==1) {
$adv_qry = "&adv=1";
}
if ($type != ""winking smiley {
$type_qry = "&type=$type";
}
?>
<div id="other_pages">
<?php print $sph_messages["Result page"]?>:
<?php if ($start >1){?>
<a href="<?php print 'search.php?query='.quote_replace(addmarks($query)).'&start='.$prev.'&search=1&results='.$results_per_page.$type_qry.$adv_qry.'&domain='.$domain?>"><?php print $sph_messages['Previous']?></a>
<?php }?>

<?php foreach ($other_pages as $page_num) {
if ($page_num !=$start){?>
<a href="<?php print 'search.php?query='.quote_replace(addmarks($query)).'&start='.$page_num.'&search=1&results='.$results_per_page.$type_qry.$adv_qry.'&domain='.$domain?>"><?php print $page_num?></a>
<?php } else {?>
<b><?php print $page_num?></b>
<?php }?>
<?php }?>

<?php if ($next <= $pages){?>
<a href="<?php print 'search.php?query='.quote_replace(addmarks($query)).'&start='.$next.'&search=1&results='.$results_per_page.$type_qry.$adv_qry.'&domain='.$domain?>"><?php print $sph_messages['Next']?></a>
<?php }?>

</div>

<?php }?>



Edited 1 time(s). Last edit at 05/31/2012 04:04PM by MN73.
Re: Page renamed to Untitled in search results.
May 31, 2012 04:14PM
Never mind, it seems to be working now. I had the <!--sphider_noindex--> beginning to high up in the page (before the page title even) so I'm guessing that was the problem. Deleted all pages in admin, cleaned everything, then re-indexed. Problem solved.
cct
Re: Page renamed to Untitled in search results.
February 16, 2013 08:10AM
It seems working now!
Sorry, only registered users may post in this forum.

Click here to login