Technical issues/questions of an intermediate or advanced nature.
-
Rava
- Contributor
- Posts: 5416
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.01 x86_64 + 4.0 i586
- Location: Forests of Germany
Post#1
by Rava » 17 Sep 2023, 03:29
I know I saw on several phpBB based forums the following:
A text posted gets an underlined
dotted text markup and when the user hovers the mouse on that text a small popup would come up giving the explanation, e.g. for having an unusual / rare abbreviation explained.
Example:
ROFL in the text and as popup "rolling on floor laughing"
I did not find the bbcode here:
app.php/help/bbcode
And I also searched on
https://www.phpbb.com/ - probably my used search term is not really correct? Or too broad?
https://www.phpbb.com/search/?q=popup (it gives "
About 688,000 results" - too many to
catch browse them all.)
Nor did I find it on
https://www.bbcode.org/reference.php
Nor on
BBCode
And tips?
BTW, which phpBB are we currently running? (I looked into this page's HTML source code but found no reference to the
phpbb version [
many unrelated hits for phpBB])
Last edited by
Rava on 23 Sep 2023, 19:23, edited 1 time in total.
Reason: changed subject title
Cheers!
Yours Rava
Rava
-
donald
- Full of knowledge
- Posts: 2073
- Joined: 17 Jun 2013, 13:17
- Distribution: Porteus 3.2.2 XFCE 32bit
- Location: Germany
Post#2
by donald » 17 Sep 2023, 18:18
Rava wrote: ↑17 Sep 2023, 03:29
BTW, which phpBB are we currently running? (I looked into this page's HTML source code but found no reference to the
phpbb version [
many unrelated hits for phpBB])
URL/styles/prosilver/style.cfg
It isn’t always 100% accurate but good enough in most cases.
donald
-
Rava
- Contributor
- Posts: 5416
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.01 x86_64 + 4.0 i586
- Location: Forests of Germany
Post#3
by Rava » 23 Sep 2023, 11:09
I was correct with my recollection that saw this feature at bbcode based forums.
Mike_Walsh (who is moderator @ puppy forum) connected me with Erik Schoepplenberg @puppylinux.com who sent me two emails explaining the details and gave me his written permission to quote from his emails, so here we go:
We do have a tool tip BBCode function on the Puppy Linux Forum. This is our BBCode:
BBCode usage -> [TT={TEXT1}]{TEXT2}[/TT]
HTML replacement:
<style>
.ttmark {
position: relative;
display: inline-block;
border-bottom: 2px dotted black;
cursor: pointer;
}
.ttmark .tttext {
visibility: hidden;
width: 200px;
color: #000;
background-color: #ffc;
padding: 3px;
position: absolute;
cursor: text;
/* white-space:pre; Palemoon does not word wrap , spills over edge */
/* display: inline-block; Opera would trigger word wrap */
z-index: 1;
}
.ttmark:hover .tttext {
visibility: visible;
top: 1em;
left: 0px;}
</style>
<span class="ttmark"">{TEXT2}
<span class="tttext">{TEXT1}
</span></span>
Create Tooltip [TT=tooltiptext]marked text[/TT]Help line
these lines go in the BBCode section in the /ACP->Posting/ section
example phpBB ACP page
The tooltip this BBCode makes is with the dotted line underneath the selected text and will display a tooltip when the cursor hovers over the dotted underline.
Let me know how it goes!
I really would love to have that little functionality added to the Porteus forum. <B
Cheers!
Yours Rava
Rava