Qbasicnews.com

Full Version: dont know if this is possible
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
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.
That's not impossible, but it requires javascript and a bit of work that's probably not worth it.
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?
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
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)
He can set the tooltip text (i think)
Quote:He can set the tooltip text (i think)
really? because i didnt know that. because thats not what this whole thread is about.
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.
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.
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.
Pages: 1 2 3