PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 03-31-2004, 11:52 PM   #1
herberth
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 &amp; 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
herberth is offline   Reply With Quote
Old 04-01-2004, 12:16 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
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>
To change this behavior, the phpdigExplore and/or phpdigIndexFile functions in robot_functions.php could be modified.
__________________
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.
Charter is offline   Reply With Quote
Old 04-01-2004, 01:58 AM   #3
herberth
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
herberth is offline   Reply With Quote
Old 04-01-2004, 02:14 AM   #4
Charter
Head Mole
 
Charter's Avatar
 
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.
Charter is offline   Reply With Quote
Old 04-01-2004, 02:29 AM   #5
herberth
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.
herberth is offline   Reply With Quote
Old 04-01-2004, 02:31 AM   #6
Charter
Head Mole
 
Charter's Avatar
 
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.
Charter is offline   Reply With Quote
Old 04-01-2004, 02:35 AM   #7
herberth
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".
herberth is offline   Reply With Quote
Old 04-01-2004, 02:42 AM   #8
Charter
Head Mole
 
Charter's Avatar
 
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.
Charter is offline   Reply With Quote
Old 04-01-2004, 02:52 AM   #9
herberth
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
herberth is offline   Reply With Quote
Old 04-01-2004, 03:54 AM   #10
herberth
Green Mole
 
Join Date: Feb 2004
Posts: 18
Dear Charter.

Now it works.

Thank you very much.
herberth is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT -8. The time now is 03:42 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.