Forum Themes:
Welcome !

 Right To Left

Author Message
Guest
Right To Left Mon. Nov 19, '07 2:53 AM (permalink)
0
Is it possible to configure the application so that when the administrator adds a new forum he can set the forum direction, i.e. Left To Right or Right To Left?
I am planning to build a forum web site that uses both Arabic and English languages. So, I can have the Arabic forums RTL oriented and the English forum LTR oriented.
 
 
#1
    a.rahman

    • Total Posts : 20
    • Reward points : 450
    • Joined: Nov 19 '07
    • Status: offline
    RE: Right To Left Mon. Nov 19, '07 3:01 AM (permalink)
    0
    This message was posted by me (a.rahman), I don't know why it is showing Guest!
     
     
    #2
    Samuel

    • Total Posts : 11786
    • Reward points : 168350
    • Joined: May 23 '01
    • Status: offline
    RE: Right To Left Mon. Nov 19, '07 8:00 PM (permalink)
    0
    Hi a.rahman,

    unfortunately, no, forum direction cannot be changed individually.
    ASPPlayground.NET
    ~ see our Version 4 plans here

     
    #3
    a.rahman

    • Total Posts : 20
    • Reward points : 450
    • Joined: Nov 19 '07
    • Status: offline
    RE: Right To Left Mon. Nov 19, '07 10:49 PM (permalink)
    0
    Thanks, Samuel, for your reply.
    I know this feature is not available, but my question is:
    How difficult is it to add a check box that will switch the direction of the whole page, or just one part of the page?
    How much code is required?
    How many source files will be modified?
    What development skills do I need to add this feature? VB.NET, HTML?
     
    <message edited by a.rahman on Tue. Nov 20, '07 12:09 AM>
     
    #4
    Samuel

    • Total Posts : 11786
    • Reward points : 168350
    • Joined: May 23 '01
    • Status: offline
    RE: Right To Left Tue. Nov 20, '07 8:54 AM (permalink)
    0
    We are using VB.NET.

    hm... you can control the direction of the whole page by changing the CSS file. So, what I am thinking now is you can add a CSS file that has RTL specification in the body element, and use a querystring to change which CSS file the software loads. The CSS is loaded dynamically by the software with a call to the sub OutputCSS. so, if you capture the querystring in this sub, you can change the CSS file to load for the page.

    1) create a button that adds a query string (e.g. "RTL") to the current page
    2) capture the querystring in the outputCSS function and change the CSS file to load based on the query string
    3) remember the querystring in a session variable
    4) outputCSS will check for the existence of the session variable, if it doesn't see the querystring.

    Hope this is clear enough for you. however, it will change the direction of the whole page, so you have to take it into consideration and see whether it meets your need.


    ASPPlayground.NET
    ~ see our Version 4 plans here

     
    #5
    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9