Qbasicnews.com

QbasicNews.Com => Site/Forum Issues => Topic started by: speedlemon on September 04, 2004, 07:13:58 PM



Title: dont know if this is possible
Post by: speedlemon 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.


Title: dont know if this is possible
Post by: Jofers 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.


Title: dont know if this is possible
Post by: speedlemon 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?


Title: dont know if this is possible
Post by: potato 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


Title: dont know if this is possible
Post by: speedlemon 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. 8)


Title: dont know if this is possible
Post by: TheBigBasicQ on September 05, 2004, 02:55:06 AM
He can set the tooltip text (i think)


Title: dont know if this is possible
Post by: speedlemon 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.


Title: dont know if this is possible
Post by: Neo 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... ;)

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.


Title: dont know if this is possible
Post by: TheBigBasicQ 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.


Title: dont know if this is possible
Post by: speedlemon 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... ;)

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.


Title: dont know if this is possible
Post by: wildcard 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?


Title: dont know if this is possible
Post by: Zap 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 ;) Just clearing out a common mistake.


Title: dont know if this is possible
Post by: speedlemon 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:


Title: dont know if this is possible
Post by: Jofers 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.


Title: dont know if this is possible
Post by: Zap on September 06, 2004, 02:32:11 AM
Adn it only shows like 64 chars anyway I think.


Title: dont know if this is possible
Post by: TheBigBasicQ on September 06, 2004, 09:10:27 AM
No, i think it can show more than that. But I am unsure =(.


Title: dont know if this is possible
Post by: speedlemon on September 06, 2004, 11:10:16 AM
Quote from: "Jofers"
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.

the sites i went to that had this only showed the first couple sentences of the very first post... that way, if someone had a thread name, that really didnt tell you what it was about, you could get the basic idea of it. then decide if you want to go there or not. you see?


Title: dont know if this is possible
Post by: oracle on September 09, 2004, 07:20:43 PM
I could probably whip this up pretty easily. And I could make it so that you could turn it on/off via your profile panel. How does that sound? :)


Title: dont know if this is possible
Post by: Rokkuman on September 09, 2004, 09:01:25 PM
That's not a bad idea. :)


Title: dont know if this is possible
Post by: TheBigBasicQ on September 10, 2004, 02:54:08 PM
Quote from: "oracle"
I could probably whip this up pretty easily. And I could make it so that you could turn it on/off via your profile panel. How does that sound? :)


Go Oracle! Thats a perfect option =).


Title: dont know if this is possible
Post by: oracle on September 11, 2004, 01:43:21 AM
Alright, I'll whip something up, it'll probably be ready on Tuesday.


Title: dont know if this is possible
Post by: TheBigBasicQ on September 11, 2004, 06:22:32 AM
we'll be waiting =P


Title: dont know if this is possible
Post by: oracle on September 14, 2004, 02:54:56 AM
Mod made/installed :D

Go to your profile to turn it on :)

It's all optimised - if you don't have it on the sql isn't done.


Title: dont know if this is possible
Post by: HQSneaker on September 14, 2004, 04:54:54 AM
Heh, I don't really see the use of it... but I'll turn it on anyway, won't hurt :wink:


Title: dont know if this is possible
Post by: Rokkuman on September 14, 2004, 11:06:11 AM
Actually, (he might have meant the last post, but...) it might be more useful if it shows the tooltop for the first post so we know what it's about. I'm sure people won't mind the extra wait of clicking it to find out what everone's talking about... :)


Title: dont know if this is possible
Post by: TheBigBasicQ on September 14, 2004, 11:15:27 AM
The pages take a bit longer to load. And it displays only a bit of post =(. We want more =). Here are two nice javascript tooltips that I like. If you could implement something similar then it would be great :D

http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm
http://www.dynamicdrive.com/dynamicindex5/popinfo.htm


Title: dont know if this is possible
Post by: oracle on September 16, 2004, 06:17:50 PM
OK, when I get the time I'll try to modify it to make you able to specify:

* whether you use a tooltip or javascript tooltip (for non-javascript browsers)
* whether you want to see the first or latest post
* how many characters you want to see of the post

Though this isn't very high priority for me. Any other features?