Qbasicnews.com
December 15, 2019, 09:27:48 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: dont know if this is possible  (Read 6832 times)
speedlemon
I hold this place together
*****
Posts: 874



« on: September 04, 2004, 07:13:58 PM »

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.
Logged
Jofers
Been there, done that
*****
Posts: 1040



WWW
« Reply #1 on: September 04, 2004, 07:55:13 PM »

That's not impossible, but it requires javascript and a bit of work that's probably not worth it.
Logged
speedlemon
I hold this place together
*****
Posts: 874



« Reply #2 on: September 04, 2004, 08:37:48 PM »

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?
Logged
potato
Ancient QBer
****
Posts: 409



WWW
« Reply #3 on: September 04, 2004, 09:18:31 PM »

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
Logged

ammit potato!
speedlemon
I hold this place together
*****
Posts: 874



« Reply #4 on: September 04, 2004, 10:05:20 PM »

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. Cool
Logged
TheBigBasicQ
*/-\*
*****
Posts: 4550



WWW
« Reply #5 on: September 05, 2004, 02:55:06 AM »

He can set the tooltip text (i think)
Logged
speedlemon
I hold this place together
*****
Posts: 874



« Reply #6 on: September 05, 2004, 11:25:06 AM »

Quote from: "TheBigBasicQ"
He can set the tooltip text (i think)

really? because i didnt know that. because thats not what this whole thread is about.
Logged
Neo
Na_th_an
*****
Posts: 2150



« Reply #7 on: September 05, 2004, 11:47:23 AM »

Quote from: "speedlemon"
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.
Logged
TheBigBasicQ
*/-\*
*****
Posts: 4550



WWW
« Reply #8 on: September 05, 2004, 03:33:25 PM »

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.
Logged
speedlemon
I hold this place together
*****
Posts: 874



« Reply #9 on: September 05, 2004, 04:42:39 PM »

Quote from: "Neo"
Quote from: "speedlemon"
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.
Logged
wildcard
*.*
Administrator
__/--\__
*****
Posts: 2369



« Reply #10 on: September 05, 2004, 04:58:09 PM »

I'll look into adding it if theres enough demand? So who would like to see it, or not see it? Bearing in mind it will add to the size of stuff to download so may be bad for people on slower connections? Thoughts?
Logged
Zap
Been there, done that
*****
Posts: 1124


« Reply #11 on: September 05, 2004, 05:11:16 PM »

Quote from: "Neo"
[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.


One thing.. the ALT tag is NOT the tooltip text... TITLE is. ALT means alternate, as in if the image somehow cant be displayed.

Another thing IE did for html...

Nothing personal Wink Just clearing out a common mistake.
Logged

url=http://www.copy-pasta.com]CopyPasta[/url] - FilePasta
speedlemon
I hold this place together
*****
Posts: 874



« Reply #12 on: September 05, 2004, 05:22:19 PM »

Quote from: "wildcard"
I'll look into adding it if theres enough demand? So who would like to see it, or not see it? Bearing in mind it will add to the size of stuff to download so may be bad for people on slower connections? Thoughts?

i say 1 week trial. after that, we'll see. :wink:
Logged
Jofers
Been there, done that
*****
Posts: 1040



WWW
« Reply #13 on: September 05, 2004, 06:24:07 PM »

The downside to using the title attribute is that you have you have to download the first 5 sentences of every post in the page.  It might be acceptable with broadband, but it's a lot of text to store in each link tag.
Logged
Zap
Been there, done that
*****
Posts: 1124


« Reply #14 on: September 06, 2004, 02:32:11 AM »

Adn it only shows like 64 chars anyway I think.
Logged

url=http://www.copy-pasta.com]CopyPasta[/url] - FilePasta
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!