vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - BBCode - Real Fractions !!!! Math (UPDATED x2) (https://vborg.vbsupport.ru/showthread.php?t=255875)

orange gold 12-25-2010 08:05 PM

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...

sadiq6210 12-26-2010 04:47 AM

Quote:

Originally Posted by orange gold (Post 2138996)
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 ......

orange gold 12-26-2010 12:54 PM

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]

orange gold 12-26-2010 01:01 PM

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]

miahjoerad 09-23-2011 06:01 PM

Thanks! It Works Wonderfully For Mee :d


All times are GMT. The time now is 05:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01045 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete