The Arcive of vBulletin Modifications Site. |
|
BBCode - Real Fractions !!!! Math (UPDATED x2) Details »»
|
|||||||||||||||||||||||||||
|
BBCode - Real Fractions !!!! Math (UPDATED x2)
Developer Last Online: Sep 2011
I did it finally! After hours of trying to figure out how to format a real fraction I came up with the code! Please see the screenshot below and judge for yourself.. It is a real post from my forum and it is all selectable text.. no images involved...
***** ********** *******Please leave feedback, and mark as installed if you used this, thanks!** YAY!!! Here is how: Admin CP > BBCode > New: Title: Code:
Fraction Code:
frc Code:
<button style="background-color:transparent;border-width:0;font-size:inherit;font-family:inherit;font-style:inherit;font:inherit;font-variant:inherit;font-weight:inherit;text-decoration:inherit;text-transform:inherit;text-shadow:inherit;color:inherit">
<center>
<sub><font style="text-decoration: underline; line-height:110%">{option}</font></sub><br>
<sup><font style="text-decoration: overline; line-height:110%">{param}</font></sup>
</center>
</button>
Code:
[frc=1]10[/frc]˙[frc=12.343](10*a+b)[/frc] Code:
Puts a value, a, over a value, b. (a/b) Code:
Yes. ![]() Enjoy! ***** *******Please leave feedback, and mark as installed if you used this, thanks!** Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
tagged and thanks
a Maths forum might find it useful |
|
#3
|
|||
|
|||
|
Unfortunately it is not working with me
see the screenshots (RTL language) |
|
#4
|
||||
|
||||
|
It works just fine on RTL
Just change the Tag name from frac to frc |
|
#5
|
|||
|
|||
|
oh
![]() Thanks =) I have two more issues ![]() see the screen-shot - How to reverse the direction (for RTL lang.) - As you see, It is very small, how can I increase the font size just to be clear to read? |
|
#6
|
||||
|
||||
|
I am not sure what you mean by reverse direction.. If you mean to have 1/10 before the rest then you just need to switch things around. like this maybe
PHP Code:
For the font you can insert font size right after the center tag. something like this PHP Code:
|
|
#7
|
|||
|
|||
|
Ahh, yes... There is a slight problem I realized.. The font for the fractions is not the same as the font that you are currently typing in.... I will fix it today after I'm done skiing.. but we leave in like 5 min...
Sorry! haha It will work though...
|
|
#8
|
|||
|
|||
|
EDIT:
Okay! I added the new code that fixes all the font size, color, style, face, weight, etc issues... Here is the new replacement code.. it is also in the original post now: Code:
<button style="background-color:transparent;border-width:0;font-size:inherit;font-family:inherit;font-style:inherit;font:inherit;font-variant:inherit;font-weight:inherit;text-decoration:inherit;text-transform:inherit;text-shadow:inherit;color:inherit">
<center>
<sub><font style="text-decoration: underline;">{option}</font></sub><br>
<sup><font style="text-decoration: overline;">{param}</font></sup>
</center>
</button>
|
|
#9
|
|||
|
|||
|
Quote:
Quote:
About the font size, I just merged the two codes to get this awesome result :up: About the direction, hmmmm see the previous screenshot (1/10) should be first like your example Quote:
https://vborg.vbsupport.ru/showpost....10&postcount=3 |
|
#10
|
|||
|
|||
|
I know the code. I'm on my phone now skiing. Post it when I'm back
|
![]() |
|
|