![]() |
BBCode - Real Fractions !!!! Math (UPDATED x2)
1 Attachment(s)
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...
*****https://vborg.vbsupport.ru/external/2010/12/9.jpg***** *****https://vborg.vbsupport.ru/external/2010/12/9.jpg***** **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"> 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!** |
tagged and thanks
a Maths forum might find it useful |
1 Attachment(s)
Unfortunately it is not working with me
see the screenshots (RTL language) |
It works just fine on RTL
Just change the Tag name from frac to frc |
1 Attachment(s)
oh :D
Thanks =) I have two more issues :rolleyes: 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? |
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:
|
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... :D |
1 Attachment(s)
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"> |
1 Attachment(s)
Quote:
Quote:
About the font size, I just merged the two codes to get this awesome result :up: https://vborg.vbsupport.ru/attachmen...1&d=1293290207 About the direction, hmmmm see the previous screenshot (1/10) should be first like your example https://vborg.vbsupport.ru/attachmen...1&d=1293254369 Quote:
https://vborg.vbsupport.ru/showpost....10&postcount=3 |
I know the code. I'm on my phone now skiing. Post it when I'm back
|
All times are GMT. The time now is 09:02 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|