Hi all!
I've made some changes for this Message-Hide-Hack. You all know the problem with the cached Forum pages. User 1 posts a new Topic with a hidden Text inside. After that user 2 opens the Topic and will see the whole Text, not the message "This message contains hidden text... bla bla".
The reason for this is, that the whole page is stored in a so called cached-file. The cachefiles are stored in plain html-text because it is faster to display a stored (cached) file than to build the page on the fly.
Now we have the problem that UBB automaticly builds the cached message file when this file does not exist (and of course UBB is configured to use the build-in cache-system).
User 1 postst the message and because he's the owner of the message he will see the plain text, not the "This message contains hidden text... bla bla" and UBB generates the cache file with the plain text at this point!
Now, here is the workaround for our cache-problem:
file to modify: ubb_get_topic.cgi (cgi-bin-directory)
locate this:
[/code]
replace with this:
</pre></div></div><br><br>locate this:<br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre>
add this right behind:
</pre></div></div><br><br>locate this:<br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre>
replace it with this:
[code]
that's all!!!
This code first test if there is a an existing cached file. Than it looks for the typical "plain-hide-text". And if a quoted "Hide:" is found the cached file is NOT read and the page is build from scratch.
Have fun with the workaround and
cu all @
FiReBoArD SilverSurfer (Admin of
FiReBoArD )
[ August 16, 2001: Message edited by: SilverSurfer ]