Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
BBCode - Real Fractions !!!! Math (UPDATED x2) Details »»
BBCode - Real Fractions !!!! Math (UPDATED x2)
Version: 1.00, by orange gold orange gold is offline
Developer Last Online: Sep 2011 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.1.0 Rating:
Released: 12-24-2010 Last Update: Never Installs: 8
 
No support by the author.

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
BBCode Tag Name:
Code:
frc
Replacement(The code below is improved compared to the code when this post first came out):
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>
Example:
Code:
[frc=1]10[/frc]˙[frc=12.343](10*a+b)[/frc]
Description:
Code:
Puts a value, a, over a value, b. (a/b)
Use {Option}:
Code:
Yes.
Leave everything else default...

Enjoy!

**********

**Please leave feedback, and mark as installed if you used this, thanks!**

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-25-2010, 08:05 PM
orange gold orange gold is offline
 
Join Date: Dec 2007
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sorry.. I don't understand what you mean now either....
On the other example.. He just moved my code in reverse order to get it to work.. You fractions are still fine.. You just need to type the 1/10 after the other fraction since your forum is formated in that language... There is nothing wrong with the code... Your forum types from right to left so you need to type the order of the fractions right to left... Or choose a font that doesn't go left to right such as times new romans and set that for your font on the code...
Reply With Quote
  #13  
Old 12-26-2010, 04:47 AM
sadiq6210 sadiq6210 is offline
 
Join Date: Sep 2005
Posts: 684
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by orange gold View Post
I'm sorry.. I don't understand what you mean now either....
On the other example.. He just moved my code in reverse order to get it to work.. You fractions are still fine.. You just need to type the 1/10 after the other fraction since your forum is formated in that language... There is nothing wrong with the code... Your forum types from right to left so you need to type the order of the fractions right to left... Or choose a font that doesn't go left to right such as times new romans and set that for your font on the code...
Thanks for your effort =)
I will explain this issue more

If I want to write (3/4) ? (1/4) (which is equal 3), It will appear in my forum with RTL language (1/4) ? (3/4) (which is equal 0.33).

I can't tell all users to write (1/4) ? (3/4) when they want to write (3/4) ? (1/4), and when we have a long equation it will be difficult to get right answer due to this issue.

I know the code is true and this issue is something should happen logically when we write from right to left with something should be written from left to right. But I am looking for a smart solution for that. i.e: Can we fix the direction (LTR) just we use this code or ......
Reply With Quote
  #14  
Old 12-26-2010, 12:54 PM
orange gold orange gold is offline
 
Join Date: Dec 2007
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unfortunatley.. my code isn't what is causing it to write left to right... If I were to add code to mine that would make it write right to left it wouldn't do anything because the fraction tags are all closed after you write one fraction... What you would have to do is create another tag.. say. then the stuff inside the math tags will write left to right.. I think I can create the math tag for you..
It would be something like this in the end to get your desired effect..
[math][frc=3]4[/frc]÷[frc=1]4[/frc][/math]
Reply With Quote
  #15  
Old 12-26-2010, 01:01 PM
orange gold orange gold is offline
 
Join Date: Dec 2007
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try making a new BBCode:

Title: Math

BBCode Tag Name: Math

Replacement:
Code:
<textarea dir="ltr">{param}</textarea>
Example:
Code:
[math][frc=3]4[/frc]?[frc=1]4[/frc][/math]
Description: Makes things go from left to right, for math equations.

Use {option}: no

Everything else the same..

Should work then if you post something like this..
Code:
[math][frc=3]4[/frc]?[frc=1]4[/frc][/math]
Reply With Quote
  #16  
Old 09-23-2011, 06:01 PM
miahjoerad miahjoerad is offline
 
Join Date: Jun 2011
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! It Works Wonderfully For Mee :d
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:44 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04063 seconds
  • Memory Usage 2,272KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (9)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete