Announcement

Collapse
No announcement yet.

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

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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:	1
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

  • #2
    Try adding this to your additional.css


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

    Comment


    • #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 customization and demonstration site.
      vBulletin 5 Documentation - Updated every Friday. Report issues here.
      vBulletin 5 API - Full / Mobile
      I am not currently available for vB Messenger Chats.

      Comment


      • #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


        • #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 customization and demonstration site.
          vBulletin 5 Documentation - Updated every Friday. Report issues here.
          vBulletin 5 API - Full / Mobile
          I am not currently available for vB Messenger Chats.

          Comment

          Working...
          X