|
Joined: Jun 2003
Posts: 1,025
Junior Member
|
Junior Member
Joined: Jun 2003
Posts: 1,025 |
Hi guys,
I am wanting to have text that is searchable for the built in search engine, but that can't be seen by a user. I use my threads install as, among other things, a knowledge repository. We have a summary of the document along with the attached document. I would like to be able paste the text of the document into the post so that the search engine can pick up, but not be visible(like an html comment). I have played with using the html comment a little bit and had gotten mixed results. If use the following format:
blurb <body> <!---text of the document---> </body>
The commented section is both invisible, and will be picked up by the search engine. However, it kills the post extras and post buttons like edit, reply, etc. If I use the following format:
blurb <body> <!---text of the doc---> </body> <body>
or:
blurb <body> <!---text of doc--->
or even:
blurb <!---text of doc--->
it eats the comment. The comment don't even show up when you edit.
I've tried posting with both UUB and HTML, and just HTML alone. Anyone got any ideas on how to get this to work? Or why it keeps eating the HTML comment?
Any input would be appreciated.
|
|
|
|
Joined: Jun 2003
Posts: 1,025
Junior Member
|
Junior Member
Joined: Jun 2003
Posts: 1,025 |
*Bump*
Anyone got any thoughts on this?
|
|
|
|
Joined: Feb 2004
Posts: 48
Junior Member
|
Junior Member
Joined: Feb 2004
Posts: 48 |
You could try this, but I don't know if the search engine would pick it up or not. <div style="visibility: hidden;">TEXT HERE</div> If that doesn't work for a search engine this *should* but also might not. <div style="width: 2px; height: 2px; visibility: visible; overflow: hidden;">TEXT HERE</div>
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
or why not add it to the meta tag isn't it what it's for?
|
|
|
|
Joined: Apr 2002
Posts: 610
Code Monkey
|
Code Monkey
Joined: Apr 2002
Posts: 610 |
this is something I was thinking of as well. I was wanting "invisible" text that shows up only if you highlight the blank area.
I wanted it, because I wanted to prove a point. I would make a post, and in it, predict the comments that a certain person would make. Then, after that person makes their comment I would say, "really? Why don't you, and everyone else highlight the blank space in my post that shows exactly what I thought you'd respond with".
That way, I can prove my theory.
|
|
|
|
Joined: Jun 2003
Posts: 1,025
Junior Member
|
Junior Member
Joined: Jun 2003
Posts: 1,025 |
Shortbus, you can probally update this Spoiler Tag Hack pretty easily to do what you want to do. I've played with the meta tags a little bit, but it doesn't seem to work right(I can't remember the exact problem). I don't care if the web search engines see it as long as threads engine does. I don't want it to be seen if some highlights it, I want the post to display like the text isn't there. Like it is just a comment. Thanks for the suggestions Lane, I will play with those when I get a chance.
|
|
|
|
Joined: Jun 2003
Posts: 1,025
Junior Member
|
Junior Member
Joined: Jun 2003
Posts: 1,025 |
Lane, thanks for that code.  It works perfectly. Both of them hide it but allow the search engine to see it. The pixel dot is especially nice. Thanks again. You da man. 
|
|
|
|
Joined: Feb 2004
Posts: 48
Junior Member
|
Junior Member
Joined: Feb 2004
Posts: 48 |
No prob. 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|