Qbasicnews.com
dont know if this is possible - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: QbasicNews.Com (http://qbasicnews.com/newforum/forum-3.html)
+--- Forum: Site/Forum Issues (http://qbasicnews.com/newforum/forum-9.html)
+--- Thread: dont know if this is possible (/thread-4622.html)

Pages: 1 2 3


dont know if this is possible - speedlemon - 09-05-2004

to make it so if i hold my mouse over the tread name, it will show the first 5 or so sentences or something. so before i click it, i know exactly what im in for and what ill be reading... i saw it at another forum once.


dont know if this is possible - Jofers - 09-05-2004

That's not impossible, but it requires javascript and a bit of work that's probably not worth it.


dont know if this is possible - speedlemon - 09-05-2004

well, theres probably someplace where you can just get that code for free. so then, all you have to do is copy it somewhere so it works! so it wouldnt be that much of a work?


dont know if this is possible - potato - 09-05-2004

you can do it with php, just query for the first/last post (whichever you want), cut the post down to a few sentences, and put it in the TITLE of the link to the thread . . .

pseudo-code
$selectPost = mysql_query("SELECT * FROM posts ORDER BY postdate DESC LIMIT 1");

# you can use DESC for the first post, not entirely sure of phpBB or whatever's table name and postdate name, but it's got one.

$postData = mysql_fetch_array($selectPost);
# put the stuff into an array

$postMessage = $postData['message'];
#get the post's content, you can do something here to chop it up, limit the amount of characters to 100 or something.

and where it's linked from the forum --

<A HREF="viewpost.php" TITLE="<?=$postMessage; ?>This Post Title</A>

and that will give you a tooltip with the post's first/last message


dont know if this is possible - speedlemon - 09-05-2004

awesome. well. now we just need oracle to do this for us. it will save me a lot of time because i have a slow internet connection. 8)


dont know if this is possible - TheBigBasicQ - 09-05-2004

He can set the tooltip text (i think)


dont know if this is possible - speedlemon - 09-05-2004

Quote:He can set the tooltip text (i think)
really? because i didnt know that. because thats not what this whole thread is about.


dont know if this is possible - Neo - 09-05-2004

Quote:really? because i didnt know that. because thats not what this whole thread is about.
Er... I think it has very much to do with this thread actually... Wink

A tooltip text is a (usually yellow) box that may appear when you hover your mouse pointer over a certain object that has a tooltip text installed. Consider the following:
[syntax="HTML"]<IMG SRC="myniceimg.gif" ALT="This is my nice picture">[/syntax]
The ALT tag here is the tooltip text. When you hover your mouse over the image, you'll see some text in a yellow box. You can add multiple lines in the TTT box, so maybe it's applicable to the matter in this thread.


dont know if this is possible - TheBigBasicQ - 09-05-2004

my thoughts exactly! you explained them very well neo =). BTW I think you can set TTT for plain text links too, but I am not sure. Hope the php wiz, a.k.a Oracle, knows(no pun indented) something about it =P.


dont know if this is possible - speedlemon - 09-06-2004

Quote:
speedlemon Wrote:really? because i didnt know that. because thats not what this whole thread is about.
Er... I think it has very much to do with this thread actually... Wink

A tooltip text is a (usually yellow) box that may appear when you hover your mouse pointer over a certain object that has a tooltip text installed. Consider the following:
[syntax="HTML"]<IMG SRC="myniceimg.gif" ALT="This is my nice picture">[/syntax]
The ALT tag here is the tooltip text. When you hover your mouse over the image, you'll see some text in a yellow box. You can add multiple lines in the TTT box, so maybe it's applicable to the matter in this thread.

you guys! i was being sarcastic. i just couldnt believe it when, after potato posted all that code on exactlly how to do it, and tbbq comes in and points out the obvious.