Hover preview of post message. - Posted (4259 Views)
Starting Member
TAF
Posts: 18
18
I have completed what I think is a great adjustment to Snitz.
The code adjustment allows users to hover over a topic title and view the first 200 characters of the post (or however many characters you want) in a 'title' box.
It works as a html title="Message of the Post..." in the <a> tag.
It adds about 4 snips of code to forum.asp, active.asp, and search.asp.
I will be happy to provide line numbers/code or full page code if anyone is interested in this. Please Email me if you would like the code posted.<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Forum Moderator
AnonJr
Posts: 5768
5768
If memory serves, it should be FormatStr() - which I believe is in inc_func_common.asp

I'm short on time at the moment, or I'd double-check.<
Posted
Average Member
SiSL
Posts: 671
671
I did it earlier for www.chip.com.tr/forum but thought getting entire post would be memory and CPU inefficient if long...
So I used that method:
1. CAST
2. RemoveHTML and forum codes

CAST is good feature in MS SQL (not sure if would work with others) such as:

Code:
 CAST(T.T_MESSAGE AS nvarchar(100)) AS PREVMSG "

strSql2 = " FROM " & strMemberTablePrefix & "MEMBERS M, "

etc.
Then I get this into a function of removing HTML's inside along with quotes... Voila...
http://www.chip.com.tr/forum/CHIP-Online-Haber_f95.html

Edit: Interesting this URL is parsed weird...<
You Must enter a message