![]() |
PHPDIG_EXCLUDE_COMMENT doesn’t work
I wanted to exclude some text out of the search engine of phpdig:
<!-- phpdigExclude --><table width="100%" border="0" cellpadding="0" cellspacing="0" id="subnav"> <tr> <td valign="top"><div align="right"> <a href="e_artauth_intro.html" class="artistssub1" onfocus="this.blur()">About our<br /> Artists & Authors</a><br /> <br /> <a href="e_artists_zwerger.html" class="artistssub2" onfocus="this.blur()">Lisbeth Zwerger</a><br /> <br /> <a href="e_authors_bardill.html" class="artistssub1" onfocus="this.blur()">Authors</a><br /> </div></td> </tr> </table><!-- phpdigInclude --> This is the code of the subnavigation and I don’t want that phpdig index the names in this table. Why doesn’t it work? Thank you for help. Herbert |
Hi. It's not working because the exclude/include comments need to each be on their own line. If generating HTML from a script, use \n to place newlines and check the HTML source to make sure the comments are on their own lines prior to index. The comments work as follows:
Code:
<html> |
Dear Charter,
thank you for your help. I have made the corrections but it doesn’t still work. Link for Search: http://www.minedition.com/english/ Result Nr. 4 (I have searched for "Gantschev"): http://www.minedition.com/english/6a...ists_chen.html There still comes a link where "Gantschev" is only in the Navigation Bar. Thank you for helping. Herbert |
Hi. Did you do a reindex?
|
Yes, I have deleted the whole website with all Keywords, etc.
Then I have indexed the site new. |
Hi. Do you use the delete button from the admin panel when you deleted the site?
|
Yes,
I clicked on the domain and clicked "Delete site". Then I clicked on "Clean dictionary" to delete all Keywords. All parameters on DataBase status were on "0". |
Hi. That all sounds good. Are the following set in the config file?
Code:
define('PHPDIG_EXCLUDE_COMMENT','<!-- phpdigExclude -->'); |
Yes, but there were linebreaks (see below).
Now I try it again. define('PHPDIG_EXCLUDE_COMMENT',' <!-- phpdigExclude --> '); //comment to exclude a page part define('PHPDIG_INCLUDE_COMMENT',' <!-- phpdigInclude --> '); //comment to include a page part |
Dear Charter.
Now it works. Thank you very much. |
All times are GMT -8. The time now is 05:05 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.