|
03-31-2004, 11:52 PM | #1 |
Green Mole
Join Date: Feb 2004
Posts: 18
|
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 |
04-01-2004, 12:16 AM | #2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
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> <body> This text is indexed. <!-- phpdigExclude --> <a href="http://www.this_link.com/is_followed.html">This text is ignored.</a> This text is ignored. <!-- phpdigInclude --> This text is indexed. </body> </html>
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
04-01-2004, 01:58 AM | #3 |
Green Mole
Join Date: Feb 2004
Posts: 18
|
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 |
04-01-2004, 02:14 AM | #4 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hi. Did you do a reindex?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
04-01-2004, 02:29 AM | #5 |
Green Mole
Join Date: Feb 2004
Posts: 18
|
Yes, I have deleted the whole website with all Keywords, etc.
Then I have indexed the site new. |
04-01-2004, 02:31 AM | #6 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hi. Do you use the delete button from the admin panel when you deleted the site?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
04-01-2004, 02:35 AM | #7 |
Green Mole
Join Date: Feb 2004
Posts: 18
|
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". |
04-01-2004, 02:42 AM | #8 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hi. That all sounds good. Are the following set in the config file?
Code:
define('PHPDIG_EXCLUDE_COMMENT','<!-- phpdigExclude -->'); //comment to exclude a page part define('PHPDIG_INCLUDE_COMMENT','<!-- phpdigInclude -->'); //comment to include a page part
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
04-01-2004, 02:52 AM | #9 |
Green Mole
Join Date: Feb 2004
Posts: 18
|
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 |
04-01-2004, 03:54 AM | #10 |
Green Mole
Join Date: Feb 2004
Posts: 18
|
Dear Charter.
Now it works. Thank you very much. |
Thread Tools | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
<!-- phpdigInclude --> and <!-- phpdigExclude --> doesn`t work | Paka76 | How-to Forum | 0 | 12-06-2005 05:44 AM |
not work | isababa | Troubleshooting | 3 | 08-30-2005 04:54 PM |
It doesn't work | humanitaire.ws | Script Installation | 8 | 12-15-2004 03:37 AM |
Statistic don't work... | Dmitry Lukjanov | Troubleshooting | 2 | 07-16-2004 11:19 AM |
Install won't work | webcat | Script Installation | 1 | 02-28-2004 02:48 PM |