Previous Thread
Next Thread
Print Thread
Rate Thread
#270610 03/09/2004 4:16 PM
Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
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.

Sponsored Links
BrokenToy #270611 03/16/2004 10:26 AM
Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
*Bump*

Anyone got any thoughts on this?

BrokenToy #270612 03/16/2004 11:26 AM
Joined: Feb 2004
Posts: 48
Junior Member
Junior Member
Offline
Joined: Feb 2004
Posts: 48
You could try this, but I don't know if the search engine would pick it up or not.

Code
<div style="visibility: hidden;">TEXT HERE</div>


If that doesn't work for a search engine this *should* but also might not.

Code
<div style="width: 2px; height: 2px; visibility: visible; overflow: hidden;">TEXT HERE</div>

PaulTrapani #270613 03/16/2004 11:40 AM
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?

234234 #270614 03/16/2004 11:53 AM
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.

Sponsored Links
wilstephens #270615 03/16/2004 12:05 PM
Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
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.

BrokenToy #270616 03/20/2004 1:18 PM
Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
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.

BrokenToy #270617 03/20/2004 10:44 PM
Joined: Feb 2004
Posts: 48
Junior Member
Junior Member
Offline
Joined: Feb 2004
Posts: 48
No prob.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)