Make all "HTML/PHP/CODE" code's inside the topic, from left to right

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • habili
    Senior Member
    • Jan 2018
    • 253
    • 4.2.x

    Make all "HTML/PHP/CODE" code's inside the topic, from left to right

    I use Arabic/Persian font for my forum. when i open a topic, all fonts and HTML/PHP codes inside of topic all are from right to left while i want just the text inside topic be from right to left and HTML/PHP codes all be displayed from left to right.

    Click image for larger version

Name:	topic.PNG
Views:	82
Size:	54.6 KB
ID:	4385937

    how can i do that : make all HTML/PHP codes inside the topic, from left to right
    please help me
    thanks and best regards
  • shining
    Member
    • Mar 2017
    • 56
    • 5.2.x

    #2
    Try adding this to your additional.css


    Code:
    .bbcode_container .bbcode_code  {
        direction: ltr !important;
    }

    Comment

    • Wayne Luke
      vBulletin Technical Support Lead
      • Aug 2000
      • 73981

      #3
      It is actually recommended to use the dir attribute in the HTML Markup - https://www.w3.org/TR/i18n-html-tech...30728.09474480

      Edit the bbcode_code, bbcode_html, and bbcode_php templates to add dir="ltr" to the opening <div> tags. You can see more here: https://www.w3.org/International/que...#blockelements
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API

      Comment

      • habili
        Senior Member
        • Jan 2018
        • 253
        • 4.2.x

        #4
        thanks for your reply
        my problem solved with edite below code in css
        PHP Code:
        .bbcode_container div.bbcode_code, .bbcode_container pre.bbcode_code {
            
        margin0;
            
        padding6px;
            
        border1px inset;
            
        text-alignleft;
            
        overflowscroll;
            
        directionltr;
            
        background#f2f6f8 none repeat-x;
            
        font-size12px;

        Comment

        • Wayne Luke
          vBulletin Technical Support Lead
          • Aug 2000
          • 73981

          #5
          If it is standard to always show code from left to right, you should create an issue to have this changed permanently. We don't currently have any staff members who use an RTL language so finding best practices can be difficult at times. You can create an improvement request JIRA here:
          http://tracker.vbulletin.com/secure/...91&issuetype=4
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...